n.smali

.class public Lcom/iflytek/thirdparty/n;
.super Lcom/iflytek/thirdparty/m;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/iflytek/thirdparty/n$b;,
        Lcom/iflytek/thirdparty/n$a;,
        Lcom/iflytek/thirdparty/n$c;
    }
.end annotation


# static fields
.field private static d:Lcom/iflytek/thirdparty/n;

.field private static final e:Ljava/lang/Object;


# instance fields
.field private final a:I

.field private final b:I

.field private final c:I

.field private final f:Ljava/lang/Object;

.field private g:Z

.field private final h:[B

.field private final i:Lcom/iflytek/thirdparty/p;

.field private final j:Lcom/iflytek/thirdparty/n$c;

.field private k:I

.field private final l:Lcom/iflytek/thirdparty/n$a;

.field private m:I

.field private final n:I

.field private final o:I

.field private final p:I

.field private q:Lcom/iflytek/thirdparty/o;

.field private final r:Lcom/iflytek/thirdparty/n$b;

.field private s:I

.field private t:I

.field private u:I

.field private v:I

.field private w:Z


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 34
    const/4 v0, 0x0

    sput-object v0, Lcom/iflytek/thirdparty/n;->d:Lcom/iflytek/thirdparty/n;

    .line 35
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    sput-object v0, Lcom/iflytek/thirdparty/n;->e:Ljava/lang/Object;

    return-void
.end method

.method private constructor <init>(Ljava/lang/String;)V
    .registers 14
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/UnsatisfiedLinkError;,
            Lcom/iflytek/cloud/SpeechError;,
            Ljava/lang/Throwable;
        }
    .end annotation

    .prologue
    const/16 v11, 0x3e80

    const/16 v10, 0x600

    const/4 v8, 0x0

    const/4 v9, 0x2

    const/4 v6, 0x0

    .line 61
    invoke-direct {p0}, Lcom/iflytek/thirdparty/m;-><init>()V

    .line 30
    const v0, 0xc000

    iput v0, p0, Lcom/iflytek/thirdparty/n;->a:I

    .line 31
    const v0, 0x78000

    iput v0, p0, Lcom/iflytek/thirdparty/n;->b:I

    .line 32
    const/high16 v0, 0xf0000

    iput v0, p0, Lcom/iflytek/thirdparty/n;->c:I

    .line 36
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    .line 37
    iput-boolean v6, p0, Lcom/iflytek/thirdparty/n;->g:Z

    .line 39
    const/16 v0, 0x100

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/iflytek/thirdparty/n;->h:[B

    .line 40
    new-instance v0, Lcom/iflytek/thirdparty/p;

    const-wide/32 v1, 0x78000

    const v3, 0xc000

    const-wide/32 v4, 0x3c000

    move v7, v6

    invoke-direct/range {v0 .. v7}, Lcom/iflytek/thirdparty/p;-><init>(JIJZZ)V

    iput-object v0, p0, Lcom/iflytek/thirdparty/n;->i:Lcom/iflytek/thirdparty/p;

    .line 41
    new-instance v0, Lcom/iflytek/thirdparty/n$c;

    const-string v1, "AIMicAudioWritingThread"

    invoke-direct {v0, p0, v1}, Lcom/iflytek/thirdparty/n$c;-><init>(Lcom/iflytek/thirdparty/n;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/iflytek/thirdparty/n;->j:Lcom/iflytek/thirdparty/n$c;

    .line 42
    iput v9, p0, Lcom/iflytek/thirdparty/n;->k:I

    .line 44
    new-instance v0, Lcom/iflytek/thirdparty/n$a;

    invoke-direct {v0, v8}, Lcom/iflytek/thirdparty/n$a;-><init>(Lcom/iflytek/thirdparty/n$1;)V

    iput-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    .line 45
    const/16 v0, 0xfa0

    iput v0, p0, Lcom/iflytek/thirdparty/n;->m:I

    .line 47
    iput v11, p0, Lcom/iflytek/thirdparty/n;->n:I

    .line 48
    iput v9, p0, Lcom/iflytek/thirdparty/n;->o:I

    .line 49
    iput v10, p0, Lcom/iflytek/thirdparty/n;->p:I

    .line 51
    iput-object v8, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    .line 52
    new-instance v0, Lcom/iflytek/thirdparty/n$b;

    invoke-direct {v0, p0, v8}, Lcom/iflytek/thirdparty/n$b;-><init>(Lcom/iflytek/thirdparty/n;Lcom/iflytek/thirdparty/n$1;)V

    iput-object v0, p0, Lcom/iflytek/thirdparty/n;->r:Lcom/iflytek/thirdparty/n$b;

    .line 53
    iput v11, p0, Lcom/iflytek/thirdparty/n;->s:I

    .line 54
    iput v9, p0, Lcom/iflytek/thirdparty/n;->t:I

    .line 56
    iput v10, p0, Lcom/iflytek/thirdparty/n;->u:I

    .line 58
    const/4 v0, -0x3

    iput v0, p0, Lcom/iflytek/thirdparty/n;->v:I

    .line 59
    iput-boolean v6, p0, Lcom/iflytek/thirdparty/n;->w:Z

    .line 62
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "aimic constructor enter: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 64
    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2}, Ljava/lang/StringBuffer;-><init>()V

    .line 65
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_8c

    .line 66
    invoke-virtual {v2, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 69
    :cond_8c
    invoke-static {}, Lcom/iflytek/msc/AIMIC;->isLoaded()Z

    move-result v0

    if-nez v0, :cond_c1

    .line 71
    if-eqz p1, :cond_12b

    .line 72
    const-string v0, "lib_name"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v3

    .line 73
    if-ltz v3, :cond_12b

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-ge v3, v0, :cond_12b

    .line 75
    const/16 v0, 0x2c

    invoke-virtual {p1, v0, v3}, Ljava/lang/String;->indexOf(II)I

    move-result v0

    .line 76
    if-gez v0, :cond_ae

    .line 77
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    .line 81
    :cond_ae
    const/16 v1, 0x3d

    invoke-virtual {p1, v1, v3}, Ljava/lang/String;->indexOf(II)I

    move-result v1

    .line 82
    add-int/lit8 v1, v1, 0x1

    invoke-virtual {p1, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    .line 83
    invoke-virtual {v2, v3, v0}, Ljava/lang/StringBuffer;->delete(II)Ljava/lang/StringBuffer;

    move-object v0, v1

    .line 87
    :goto_be
    invoke-static {v0}, Lcom/iflytek/msc/AIMIC;->loadLibrary(Ljava/lang/String;)V

    .line 90
    :cond_c1
    invoke-static {}, Lcom/iflytek/msc/AIMIC;->isValid()Z

    move-result v0

    if-nez v0, :cond_f4

    .line 92
    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    .line 93
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/DataUtil;->getNativeByteArray(Ljava/lang/String;)[B

    move-result-object v0

    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    invoke-static {v0, v1}, Lcom/iflytek/msc/AIMIC;->AIMICNew([BLcom/iflytek/msc/AIMIC$Listener;)I

    move-result v6

    .line 94
    if-eqz v6, :cond_f4

    .line 95
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "AIMICNew return error: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/String;)V

    .line 96
    invoke-static {}, Lcom/iflytek/msc/AIMIC;->getHandler()J

    move-result-wide v0

    invoke-static {v0, v1}, Lcom/iflytek/msc/AIMIC;->AIMICDestroy(J)I

    .line 100
    :cond_f4
    if-eqz v6, :cond_fc

    .line 101
    new-instance v0, Lcom/iflytek/cloud/SpeechError;

    invoke-direct {v0, v6}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V

    throw v0

    .line 103
    :cond_fc
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/iflytek/thirdparty/n;->g:Z

    .line 104
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->j:Lcom/iflytek/thirdparty/n$c;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/n$c;->start()V

    .line 106
    iget v0, p0, Lcom/iflytek/thirdparty/n;->k:I

    if-eqz v0, :cond_10c

    iget v0, p0, Lcom/iflytek/thirdparty/n;->k:I

    if-ne v9, v0, :cond_114

    .line 107
    :cond_10c
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->i:Lcom/iflytek/thirdparty/p;

    const-wide/32 v2, 0x78000

    invoke-virtual {v0, v2, v3}, Lcom/iflytek/thirdparty/p;->a(J)V

    .line 111
    :cond_114
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "aimic constructor leave: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 112
    return-void

    :cond_12b
    move-object v0, v8

    goto :goto_be
.end method

.method static synthetic a(Lcom/iflytek/thirdparty/n;)Lcom/iflytek/thirdparty/p;
    .registers 2

    .prologue
    .line 22
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->i:Lcom/iflytek/thirdparty/p;

    return-object v0
.end method

.method private b([BII)I
    .registers 8

    .prologue
    const/4 v1, 0x0

    .line 487
    .line 490
    :try_start_1
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->i:Lcom/iflytek/thirdparty/p;

    invoke-virtual {v0, p1, p2, p3}, Lcom/iflytek/thirdparty/p;->a([BII)V

    .line 492
    iget-object v2, p0, Lcom/iflytek/thirdparty/n;->j:Lcom/iflytek/thirdparty/n$c;

    monitor-enter v2
    :try_end_9
    .catch Ljava/lang/OutOfMemoryError; {:try_start_1 .. :try_end_9} :catch_2e
    .catch Ljava/lang/IllegalArgumentException; {:try_start_1 .. :try_end_9} :catch_4d
    .catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_9} :catch_54
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_9} :catch_5b

    .line 493
    :try_start_9
    sget-object v0, Ljava/lang/Thread$State;->WAITING:Ljava/lang/Thread$State;

    iget-object v3, p0, Lcom/iflytek/thirdparty/n;->j:Lcom/iflytek/thirdparty/n$c;

    invoke-virtual {v3}, Lcom/iflytek/thirdparty/n$c;->getState()Ljava/lang/Thread$State;

    move-result-object v3

    if-ne v0, v3, :cond_18

    .line 494
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->j:Lcom/iflytek/thirdparty/n$c;

    invoke-virtual {v0}, Ljava/lang/Object;->notify()V

    .line 496
    :cond_18
    monitor-exit v2
    :try_end_19
    .catchall {:try_start_9 .. :try_end_19} :catchall_2b

    .line 498
    :try_start_19
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->j:Lcom/iflytek/thirdparty/n$c;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/n$c;->a()Lcom/iflytek/cloud/SpeechError;

    move-result-object v0

    .line 499
    if-eqz v0, :cond_43

    .line 500
    invoke-virtual {v0}, Lcom/iflytek/cloud/SpeechError;->getErrorCode()I

    move-result v0

    .line 501
    iget-object v2, p0, Lcom/iflytek/thirdparty/n;->j:Lcom/iflytek/thirdparty/n$c;

    invoke-virtual {v2}, Lcom/iflytek/thirdparty/n$c;->b()V
    :try_end_2a
    .catch Ljava/lang/OutOfMemoryError; {:try_start_19 .. :try_end_2a} :catch_2e
    .catch Ljava/lang/IllegalArgumentException; {:try_start_19 .. :try_end_2a} :catch_4d
    .catch Ljava/lang/NullPointerException; {:try_start_19 .. :try_end_2a} :catch_54
    .catch Ljava/lang/Throwable; {:try_start_19 .. :try_end_2a} :catch_5b

    .line 527
    :goto_2a
    return v0

    .line 496
    :catchall_2b
    move-exception v0

    :try_start_2c
    monitor-exit v2
    :try_end_2d
    .catchall {:try_start_2c .. :try_end_2d} :catchall_2b

    :try_start_2d
    throw v0
    :try_end_2e
    .catch Ljava/lang/OutOfMemoryError; {:try_start_2d .. :try_end_2e} :catch_2e
    .catch Ljava/lang/IllegalArgumentException; {:try_start_2d .. :try_end_2e} :catch_4d
    .catch Ljava/lang/NullPointerException; {:try_start_2d .. :try_end_2e} :catch_54
    .catch Ljava/lang/Throwable; {:try_start_2d .. :try_end_2e} :catch_5b

    .line 505
    :catch_2e
    move-exception v0

    .line 506
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    .line 507
    const/4 v0, 0x2

    iget v2, p0, Lcom/iflytek/thirdparty/n;->k:I

    if-ne v0, v2, :cond_45

    .line 508
    const-string v0, "write audio too soon, current audios  in buffer will be ignored!"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/String;)V

    .line 509
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->i:Lcom/iflytek/thirdparty/p;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/p;->d()V

    :goto_41
    move v0, v1

    .line 525
    goto :goto_2a

    :cond_43
    move v0, v1

    .line 503
    goto :goto_2a

    .line 512
    :cond_45
    const-string v0, "write audio too soon, please wait for a second, and try again!"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/String;)V

    .line 513
    const/16 v1, 0x6986

    goto :goto_41

    .line 515
    :catch_4d
    move-exception v0

    .line 516
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    .line 517
    const/16 v0, 0x6985

    .line 525
    goto :goto_2a

    .line 518
    :catch_54
    move-exception v0

    .line 519
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    .line 520
    const/16 v0, 0x697e

    .line 525
    goto :goto_2a

    .line 521
    :catch_5b
    move-exception v0

    .line 522
    const-string v1, "write audio too soon, please wait for a second, and try again!"

    invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/String;)V

    .line 523
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    .line 524
    const/16 v0, 0x5207

    goto :goto_2a
.end method

.method static synthetic b(Lcom/iflytek/thirdparty/n;)Z
    .registers 2

    .prologue
    .line 22
    invoke-direct {p0}, Lcom/iflytek/thirdparty/n;->k()Z

    move-result v0

    return v0
.end method

.method static synthetic c(Lcom/iflytek/thirdparty/n;)Lcom/iflytek/thirdparty/n$a;
    .registers 2

    .prologue
    .line 22
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    return-object v0
.end method

.method public static c(Ljava/lang/String;)Lcom/iflytek/thirdparty/n;
    .registers 4

    .prologue
    .line 128
    const-string v0, "aimic createAIMic enter"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 132
    sget-object v1, Lcom/iflytek/thirdparty/n;->e:Ljava/lang/Object;

    monitor-enter v1

    .line 133
    :try_start_8
    sget-object v0, Lcom/iflytek/thirdparty/n;->d:Lcom/iflytek/thirdparty/n;
    :try_end_a
    .catchall {:try_start_8 .. :try_end_a} :catchall_32

    if-nez v0, :cond_13

    .line 135
    :try_start_c
    new-instance v0, Lcom/iflytek/thirdparty/n;

    invoke-direct {v0, p0}, Lcom/iflytek/thirdparty/n;-><init>(Ljava/lang/String;)V

    sput-object v0, Lcom/iflytek/thirdparty/n;->d:Lcom/iflytek/thirdparty/n;
    :try_end_13
    .catch Lcom/iflytek/cloud/SpeechError; {:try_start_c .. :try_end_13} :catch_2d
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_c .. :try_end_13} :catch_35
    .catch Ljava/lang/Throwable; {:try_start_c .. :try_end_13} :catch_3a
    .catchall {:try_start_c .. :try_end_13} :catchall_32

    .line 145
    :cond_13
    :goto_13
    :try_start_13
    sget-object v0, Lcom/iflytek/thirdparty/n;->d:Lcom/iflytek/thirdparty/n;

    .line 146
    monitor-exit v1
    :try_end_16
    .catchall {:try_start_13 .. :try_end_16} :catchall_32

    .line 148
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "aimic createAIMic leave: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 149
    return-object v0

    .line 136
    :catch_2d
    move-exception v0

    .line 137
    :try_start_2e
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    goto :goto_13

    .line 146
    :catchall_32
    move-exception v0

    monitor-exit v1
    :try_end_34
    .catchall {:try_start_2e .. :try_end_34} :catchall_32

    throw v0

    .line 138
    :catch_35
    move-exception v0

    .line 139
    :try_start_36
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    goto :goto_13

    .line 140
    :catch_3a
    move-exception v0

    .line 141
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
    :try_end_3e
    .catchall {:try_start_36 .. :try_end_3e} :catchall_32

    goto :goto_13
.end method

.method static synthetic d(Lcom/iflytek/thirdparty/n;)I
    .registers 2

    .prologue
    .line 22
    iget v0, p0, Lcom/iflytek/thirdparty/n;->k:I

    return v0
.end method

.method private d(Ljava/lang/String;)Z
    .registers 3

    .prologue
    .line 531
    if-eqz p1, :cond_14

    const-string v0, "true"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_12

    const-string v0, "1"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_14

    :cond_12
    const/4 v0, 0x1

    :goto_13
    return v0

    :cond_14
    const/4 v0, 0x0

    goto :goto_13
.end method

.method public static h()Lcom/iflytek/thirdparty/n;
    .registers 3

    .prologue
    .line 115
    const-string v0, "aimic getAIMic enter"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 119
    sget-object v1, Lcom/iflytek/thirdparty/n;->e:Ljava/lang/Object;

    monitor-enter v1

    .line 120
    :try_start_8
    sget-object v0, Lcom/iflytek/thirdparty/n;->d:Lcom/iflytek/thirdparty/n;

    .line 121
    monitor-exit v1
    :try_end_b
    .catchall {:try_start_8 .. :try_end_b} :catchall_22

    .line 123
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "aimic getAIMic leave: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 124
    return-object v0

    .line 121
    :catchall_22
    move-exception v0

    :try_start_23
    monitor-exit v1
    :try_end_24
    .catchall {:try_start_23 .. :try_end_24} :catchall_22

    throw v0
.end method

.method public static i()Ljava/lang/String;
    .registers 3

    .prologue
    .line 443
    const/4 v1, 0x0

    .line 444
    sget-object v2, Lcom/iflytek/thirdparty/n;->e:Ljava/lang/Object;

    monitor-enter v2

    .line 446
    :try_start_4
    invoke-static {}, Lcom/iflytek/msc/AIMIC;->AIMICGetVersion()[B

    move-result-object v0

    .line 447
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/DataUtil;->getStringFromNativeByteArray([B)Ljava/lang/String;
    :try_end_b
    .catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_b} :catch_e
    .catchall {:try_start_4 .. :try_end_b} :catchall_14

    move-result-object v0

    .line 451
    :goto_c
    :try_start_c
    monitor-exit v2

    .line 452
    return-object v0

    .line 448
    :catch_e
    move-exception v0

    .line 449
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    move-object v0, v1

    goto :goto_c

    .line 451
    :catchall_14
    move-exception v0

    monitor-exit v2
    :try_end_16
    .catchall {:try_start_c .. :try_end_16} :catchall_14

    throw v0
.end method

.method public static j()I
    .registers 2

    .prologue
    .line 471
    const/4 v0, -0x1

    .line 474
    :try_start_1
    invoke-static {}, Lcom/iflytek/msc/AIMIC;->AIMICGetChannel()I
    :try_end_4
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_4} :catch_6

    move-result v0

    .line 479
    :goto_5
    return v0

    .line 475
    :catch_6
    move-exception v1

    .line 476
    invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    goto :goto_5
.end method

.method private k()Z
    .registers 2

    .prologue
    .line 483
    iget-boolean v0, p0, Lcom/iflytek/thirdparty/n;->g:Z

    return v0
.end method

.method private l()I
    .registers 5

    .prologue
    const/4 v1, 0x0

    .line 535
    const/16 v0, 0x6980

    .line 537
    invoke-direct {p0}, Lcom/iflytek/thirdparty/n;->k()Z

    move-result v2

    if-eqz v2, :cond_b4

    .line 538
    invoke-static {}, Lcom/iflytek/thirdparty/o;->a()Lcom/iflytek/thirdparty/o;

    move-result-object v0

    iput-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    .line 539
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    if-eqz v0, :cond_31

    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    .line 540
    invoke-virtual {v0}, Lcom/iflytek/thirdparty/o;->d()I

    move-result v0

    iget v2, p0, Lcom/iflytek/thirdparty/n;->t:I

    if-ne v0, v2, :cond_31

    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    .line 541
    invoke-virtual {v0}, Lcom/iflytek/thirdparty/o;->e()I

    move-result v0

    iget v2, p0, Lcom/iflytek/thirdparty/n;->s:I

    if-ne v0, v2, :cond_31

    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    .line 542
    invoke-virtual {v0}, Lcom/iflytek/thirdparty/o;->f()I

    move-result v0

    iget v2, p0, Lcom/iflytek/thirdparty/n;->u:I

    if-eq v0, v2, :cond_53

    .line 543
    :cond_31
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    if-eqz v0, :cond_42

    .line 544
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/o;->c()V

    .line 545
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/o;->h()V

    .line 546
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    .line 549
    :cond_42
    const-string v0, "create new audio recorder"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 550
    iget v0, p0, Lcom/iflytek/thirdparty/n;->t:I

    iget v2, p0, Lcom/iflytek/thirdparty/n;->s:I

    iget v3, p0, Lcom/iflytek/thirdparty/n;->u:I

    invoke-static {v0, v2, v3}, Lcom/iflytek/thirdparty/o;->a(III)Lcom/iflytek/thirdparty/o;

    move-result-object v0

    iput-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    .line 553
    :cond_53
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    if-eqz v0, :cond_b1

    .line 554
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/o;->b()Z

    move-result v0

    if-eqz v0, :cond_77

    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->r:Lcom/iflytek/thirdparty/n$b;

    iget-object v2, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    .line 555
    invoke-virtual {v2}, Lcom/iflytek/thirdparty/o;->g()Lcom/iflytek/thirdparty/o$b;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_77

    .line 556
    const-string v0, "Current record listener is not this, recorder will be stoped."

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 557
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/o;->c()V

    .line 560
    :cond_77
    iget-object v2, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    invoke-static {}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->getShowLog()Z

    move-result v0

    if-eqz v0, :cond_a9

    sget-object v0, Lcom/iflytek/cloud/msc/util/log/DebugLog$LOG_LEVEL;->detail:Lcom/iflytek/cloud/msc/util/log/DebugLog$LOG_LEVEL;

    invoke-virtual {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog$LOG_LEVEL;->ordinal()I

    move-result v0

    invoke-static {}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->getLogLevel()Lcom/iflytek/cloud/msc/util/log/DebugLog$LOG_LEVEL;

    move-result-object v3

    invoke-virtual {v3}, Lcom/iflytek/cloud/msc/util/log/DebugLog$LOG_LEVEL;->ordinal()I

    move-result v3

    if-lt v0, v3, :cond_a9

    const/4 v0, 0x1

    :goto_90
    invoke-virtual {v2, v0}, Lcom/iflytek/thirdparty/o;->a(Z)V

    .line 562
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/o;->b()Z

    move-result v0

    if-nez v0, :cond_ab

    .line 563
    const-string v0, "start audio recording."

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 564
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->r:Lcom/iflytek/thirdparty/n$b;

    invoke-virtual {v0, v1}, Lcom/iflytek/thirdparty/o;->a(Lcom/iflytek/thirdparty/o$b;)I

    move-result v1

    .line 574
    :goto_a8
    return v1

    :cond_a9
    move v0, v1

    .line 560
    goto :goto_90

    .line 566
    :cond_ab
    const-string v0, "audio recorder is recording."

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    goto :goto_a8

    .line 570
    :cond_b1
    const/16 v1, 0x697d

    goto :goto_a8

    :cond_b4
    move v1, v0

    goto :goto_a8
.end method

.method private m()V
    .registers 2

    .prologue
    .line 578
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    if-eqz v0, :cond_16

    .line 579
    const-string v0, "stop audio record"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 580
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/o;->c()V

    .line 581
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->r:Lcom/iflytek/thirdparty/n$b;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/n$b;->a()V

    .line 582
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    .line 584
    :cond_16
    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;Ljava/lang/String;)I
    .registers 11

    .prologue
    const/16 v1, 0x6980

    .line 241
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "aimic  setParameter enter key="

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, ", value="

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 242
    const/4 v0, 0x0

    .line 245
    :try_start_23
    iget-object v2, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v2
    :try_end_26
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_23 .. :try_end_26} :catch_6a
    .catch Ljava/lang/Throwable; {:try_start_23 .. :try_end_26} :catch_153

    .line 246
    :try_start_26
    const-string v3, "aimic  setParameter sync"

    invoke-static {v3}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 247
    const-string v3, "aimic_asr_buffer_time"

    invoke-virtual {v3, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_58

    .line 248
    invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/iflytek/thirdparty/n;->m:I

    .line 249
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    iget v3, p0, Lcom/iflytek/thirdparty/n;->m:I

    invoke-virtual {v1, v3}, Lcom/iflytek/thirdparty/n$a;->a(I)V

    .line 301
    :goto_40
    monitor-exit v2
    :try_end_41
    .catchall {:try_start_26 .. :try_end_41} :catchall_67

    .line 310
    :goto_41
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "aimic  setParameter leave: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 311
    return v0

    .line 250
    :cond_58
    :try_start_58
    const-string v3, "alsa_rate"

    invoke-virtual {v3, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_71

    .line 251
    invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/iflytek/thirdparty/n;->s:I

    goto :goto_40

    .line 301
    :catchall_67
    move-exception v0

    monitor-exit v2
    :try_end_69
    .catchall {:try_start_58 .. :try_end_69} :catchall_67

    :try_start_69
    throw v0
    :try_end_6a
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_69 .. :try_end_6a} :catch_6a
    .catch Ljava/lang/Throwable; {:try_start_69 .. :try_end_6a} :catch_153

    .line 302
    :catch_6a
    move-exception v0

    .line 303
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    .line 304
    const/16 v0, 0x4e35

    .line 308
    goto :goto_41

    .line 252
    :cond_71
    :try_start_71
    const-string v3, "alsa_card"

    invoke-virtual {v3, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_80

    .line 253
    invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/iflytek/thirdparty/n;->t:I

    goto :goto_40

    .line 254
    :cond_80
    const-string v3, "alsa_per_size"

    invoke-virtual {v3, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_8f

    .line 255
    invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/iflytek/thirdparty/n;->u:I

    goto :goto_40

    .line 256
    :cond_8f
    const-string v3, "alsa_save"

    invoke-virtual {v3, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_a1

    .line 257
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->r:Lcom/iflytek/thirdparty/n$b;

    invoke-direct {p0, p2}, Lcom/iflytek/thirdparty/n;->d(Ljava/lang/String;)Z

    move-result v3

    invoke-virtual {v1, v3}, Lcom/iflytek/thirdparty/n$b;->a(Z)V

    goto :goto_40

    .line 258
    :cond_a1
    const-string v3, "audio_source"

    invoke-virtual {v3, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_b0

    .line 259
    invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/iflytek/thirdparty/n;->v:I

    goto :goto_40

    .line 260
    :cond_b0
    const-string v0, "buf_mode"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_102

    .line 261
    invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/iflytek/thirdparty/n;->k:I

    .line 262
    iget v0, p0, Lcom/iflytek/thirdparty/n;->k:I

    packed-switch v0, :pswitch_data_15c

    .line 268
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->i:Lcom/iflytek/thirdparty/p;

    const-wide/32 v4, 0xf0000

    iget-object v3, p0, Lcom/iflytek/thirdparty/n;->i:Lcom/iflytek/thirdparty/p;

    invoke-virtual {v3}, Lcom/iflytek/thirdparty/p;->a()J

    move-result-wide v6

    sub-long/2addr v4, v6

    invoke-virtual {v0, v4, v5}, Lcom/iflytek/thirdparty/p;->a(J)V

    .line 271
    :goto_d2
    invoke-direct {p0}, Lcom/iflytek/thirdparty/n;->k()Z

    move-result v0

    if-eqz v0, :cond_ff

    .line 272
    const-string v0, "aimic  setParameter Native"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 273
    invoke-static {}, Lcom/iflytek/msc/AIMIC;->getHandler()J

    move-result-wide v0

    .line 274
    invoke-static {p1}, Lcom/iflytek/cloud/msc/util/DataUtil;->getNativeByteArray(Ljava/lang/String;)[B

    move-result-object v3

    .line 275
    invoke-static {p2}, Lcom/iflytek/cloud/msc/util/DataUtil;->getNativeByteArray(Ljava/lang/String;)[B

    move-result-object v4

    .line 273
    invoke-static {v0, v1, v3, v4}, Lcom/iflytek/msc/AIMIC;->AIMICSetParam(J[B[B)I

    move-result v0

    goto/16 :goto_40

    .line 264
    :pswitch_ef
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->i:Lcom/iflytek/thirdparty/p;

    const-wide/32 v4, 0x78000

    iget-object v3, p0, Lcom/iflytek/thirdparty/n;->i:Lcom/iflytek/thirdparty/p;

    invoke-virtual {v3}, Lcom/iflytek/thirdparty/p;->a()J

    move-result-wide v6

    sub-long/2addr v4, v6

    invoke-virtual {v0, v4, v5}, Lcom/iflytek/thirdparty/p;->a(J)V

    goto :goto_d2

    :cond_ff
    move v0, v1

    .line 277
    goto/16 :goto_40

    .line 279
    :cond_102
    const-string v0, "thread_priority"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_133

    .line 280
    invoke-direct {p0}, Lcom/iflytek/thirdparty/n;->k()Z

    move-result v0

    if-eqz v0, :cond_130

    .line 281
    const-string v0, "aimic  setParameter Native"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 282
    invoke-static {}, Lcom/iflytek/msc/AIMIC;->getHandler()J

    move-result-wide v0

    .line 283
    invoke-static {p1}, Lcom/iflytek/cloud/msc/util/DataUtil;->getNativeByteArray(Ljava/lang/String;)[B

    move-result-object v3

    .line 284
    invoke-static {p2}, Lcom/iflytek/cloud/msc/util/DataUtil;->getNativeByteArray(Ljava/lang/String;)[B

    move-result-object v4

    .line 282
    invoke-static {v0, v1, v3, v4}, Lcom/iflytek/msc/AIMIC;->AIMICSetParam(J[B[B)I

    move-result v0

    .line 286
    invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    .line 287
    iget-object v3, p0, Lcom/iflytek/thirdparty/n;->j:Lcom/iflytek/thirdparty/n$c;

    invoke-virtual {v3, v1}, Lcom/iflytek/thirdparty/n$c;->a(I)V

    goto/16 :goto_40

    :cond_130
    move v0, v1

    .line 289
    goto/16 :goto_40

    .line 292
    :cond_133
    invoke-direct {p0}, Lcom/iflytek/thirdparty/n;->k()Z

    move-result v0

    if-eqz v0, :cond_150

    .line 293
    const-string v0, "aimic  setParameter Native"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 294
    invoke-static {}, Lcom/iflytek/msc/AIMIC;->getHandler()J

    move-result-wide v0

    .line 295
    invoke-static {p1}, Lcom/iflytek/cloud/msc/util/DataUtil;->getNativeByteArray(Ljava/lang/String;)[B

    move-result-object v3

    .line 296
    invoke-static {p2}, Lcom/iflytek/cloud/msc/util/DataUtil;->getNativeByteArray(Ljava/lang/String;)[B

    move-result-object v4

    .line 294
    invoke-static {v0, v1, v3, v4}, Lcom/iflytek/msc/AIMIC;->AIMICSetParam(J[B[B)I
    :try_end_14d
    .catchall {:try_start_71 .. :try_end_14d} :catchall_67

    move-result v0

    goto/16 :goto_40

    :cond_150
    move v0, v1

    .line 298
    goto/16 :goto_40

    .line 305
    :catch_153
    move-exception v0

    .line 306
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    .line 307
    const/16 v0, 0x5207

    goto/16 :goto_41

    .line 262
    nop

    :pswitch_data_15c
    .packed-switch 0x1
        :pswitch_ef
    .end packed-switch
.end method

.method public a([BII)I
    .registers 7

    .prologue
    .line 428
    .line 430
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v1

    .line 431
    :try_start_3
    invoke-direct {p0}, Lcom/iflytek/thirdparty/n;->k()Z

    move-result v0

    if-eqz v0, :cond_f

    .line 432
    invoke-direct {p0, p1, p2, p3}, Lcom/iflytek/thirdparty/n;->b([BII)I

    move-result v0

    .line 437
    :goto_d
    monitor-exit v1

    .line 439
    return v0

    .line 434
    :cond_f
    const/16 v0, 0x6980

    .line 435
    const-string v2, "write audio while not init!"

    invoke-static {v2}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/String;)V

    goto :goto_d

    .line 437
    :catchall_17
    move-exception v0

    monitor-exit v1
    :try_end_19
    .catchall {:try_start_3 .. :try_end_19} :catchall_17

    throw v0
.end method

.method public a(Lcom/iflytek/thirdparty/m$a;)V
    .registers 4

    .prologue
    .line 203
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "aimic  registerListener enter: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 205
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v1

    .line 206
    :try_start_19
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    invoke-virtual {v0, p1}, Lcom/iflytek/thirdparty/n$a;->a(Lcom/iflytek/thirdparty/m$a;)V

    .line 207
    monitor-exit v1
    :try_end_1f
    .catchall {:try_start_19 .. :try_end_1f} :catchall_25

    .line 209
    const-string v0, "aimic  registerListener leave"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 210
    return-void

    .line 207
    :catchall_25
    move-exception v0

    :try_start_26
    monitor-exit v1
    :try_end_27
    .catchall {:try_start_26 .. :try_end_27} :catchall_25

    throw v0
.end method

.method public a(Lcom/iflytek/thirdparty/m$b;)V
    .registers 4

    .prologue
    .line 193
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "aimic  registerListener enter: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 195
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v1

    .line 196
    :try_start_19
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    invoke-virtual {v0, p1}, Lcom/iflytek/thirdparty/n$a;->a(Lcom/iflytek/thirdparty/m$b;)V

    .line 197
    monitor-exit v1
    :try_end_1f
    .catchall {:try_start_19 .. :try_end_1f} :catchall_25

    .line 199
    const-string v0, "aimic  setParameter leave"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 200
    return-void

    .line 197
    :catchall_25
    move-exception v0

    :try_start_26
    monitor-exit v1
    :try_end_27
    .catchall {:try_start_26 .. :try_end_27} :catchall_25

    throw v0
.end method

.method public a(ZI)V
    .registers 6

    .prologue
    .line 456
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v1

    .line 458
    :try_start_3
    invoke-static {p1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->setShowLog(Z)V

    .line 459
    invoke-static {}, Lcom/iflytek/cloud/msc/util/log/DebugLog$LOG_LEVEL;->values()[Lcom/iflytek/cloud/msc/util/log/DebugLog$LOG_LEVEL;

    move-result-object v0

    aget-object v0, v0, p2

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->setLogLevel(Lcom/iflytek/cloud/msc/util/log/DebugLog$LOG_LEVEL;)V

    .line 460
    invoke-static {p1, p2}, Lcom/iflytek/msc/AIMIC;->AIMICDebugLog(ZI)V

    .line 461
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    if-eqz v0, :cond_26

    .line 462
    iget-object v2, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    if-eqz p1, :cond_28

    sget-object v0, Lcom/iflytek/cloud/msc/util/log/DebugLog$LOG_LEVEL;->detail:Lcom/iflytek/cloud/msc/util/log/DebugLog$LOG_LEVEL;

    invoke-virtual {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog$LOG_LEVEL;->ordinal()I

    move-result v0

    if-lt v0, p2, :cond_28

    const/4 v0, 0x1

    :goto_23
    invoke-virtual {v2, v0}, Lcom/iflytek/thirdparty/o;->a(Z)V
    :try_end_26
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_26} :catch_2a
    .catchall {:try_start_3 .. :try_end_26} :catchall_2f

    .line 467
    :cond_26
    :goto_26
    :try_start_26
    monitor-exit v1

    .line 468
    return-void

    .line 462
    :cond_28
    const/4 v0, 0x0

    goto :goto_23

    .line 464
    :catch_2a
    move-exception v0

    .line 465
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    goto :goto_26

    .line 467
    :catchall_2f
    move-exception v0

    monitor-exit v1
    :try_end_31
    .catchall {:try_start_26 .. :try_end_31} :catchall_2f

    throw v0
.end method

.method public b(Ljava/lang/String;)Ljava/lang/String;
    .registers 8

    .prologue
    .line 315
    const-string v0, "aimic  getParameter enter"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 317
    const/4 v0, 0x0

    .line 318
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->h:[B

    .line 320
    iget-object v2, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v2

    .line 321
    :try_start_b
    invoke-direct {p0}, Lcom/iflytek/thirdparty/n;->k()Z
    :try_end_e
    .catchall {:try_start_b .. :try_end_e} :catchall_57

    move-result v3

    if-eqz v3, :cond_23

    .line 323
    :try_start_11
    invoke-static {}, Lcom/iflytek/msc/AIMIC;->getHandler()J

    move-result-wide v4

    invoke-static {p1}, Lcom/iflytek/cloud/msc/util/DataUtil;->getNativeByteArray(Ljava/lang/String;)[B

    move-result-object v3

    invoke-static {v4, v5, v3, v1}, Lcom/iflytek/msc/AIMIC;->AIMICGetParam(J[B[B)I

    move-result v3

    .line 324
    if-nez v3, :cond_3b

    .line 325
    invoke-static {v1}, Lcom/iflytek/cloud/msc/util/DataUtil;->getStringFromNativeByteArray([B)Ljava/lang/String;
    :try_end_22
    .catch Ljava/lang/Throwable; {:try_start_11 .. :try_end_22} :catch_52
    .catchall {:try_start_11 .. :try_end_22} :catchall_57

    move-result-object v0

    .line 333
    :cond_23
    :goto_23
    :try_start_23
    monitor-exit v2
    :try_end_24
    .catchall {:try_start_23 .. :try_end_24} :catchall_57

    .line 335
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "aimic  getParameter leave: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 336
    return-object v0

    .line 327
    :cond_3b
    :try_start_3b
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "get parameter error: "

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/String;)V
    :try_end_51
    .catch Ljava/lang/Throwable; {:try_start_3b .. :try_end_51} :catch_52
    .catchall {:try_start_3b .. :try_end_51} :catchall_57

    goto :goto_23

    .line 329
    :catch_52
    move-exception v1

    .line 330
    :try_start_53
    invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    goto :goto_23

    .line 333
    :catchall_57
    move-exception v0

    monitor-exit v2
    :try_end_59
    .catchall {:try_start_53 .. :try_end_59} :catchall_57

    throw v0
.end method

.method public b()V
    .registers 5

    .prologue
    .line 153
    const-string v0, "aimic destroy enter"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 155
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v1

    .line 156
    const/4 v0, 0x0

    :try_start_9
    iput-boolean v0, p0, Lcom/iflytek/thirdparty/n;->g:Z

    .line 158
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    if-eqz v0, :cond_14

    .line 159
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/n$a;->b()V

    .line 162
    :cond_14
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    if-eqz v0, :cond_25

    .line 163
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/o;->c()V

    .line 164
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/o;->h()V

    .line 165
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    .line 167
    :cond_25
    monitor-exit v1
    :try_end_26
    .catchall {:try_start_9 .. :try_end_26} :catchall_52

    .line 169
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->j:Lcom/iflytek/thirdparty/n$c;

    monitor-enter v1

    .line 170
    :try_start_29
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->j:Lcom/iflytek/thirdparty/n$c;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/n$c;->isAlive()Z

    move-result v0

    if-eqz v0, :cond_36

    .line 171
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->j:Lcom/iflytek/thirdparty/n$c;

    invoke-virtual {v0}, Ljava/lang/Object;->notify()V

    .line 173
    :cond_36
    monitor-exit v1
    :try_end_37
    .catchall {:try_start_29 .. :try_end_37} :catchall_55

    .line 175
    sget-object v1, Lcom/iflytek/thirdparty/n;->e:Ljava/lang/Object;

    monitor-enter v1

    .line 176
    :try_start_3a
    sget-object v0, Lcom/iflytek/thirdparty/n;->d:Lcom/iflytek/thirdparty/n;
    :try_end_3c
    .catchall {:try_start_3a .. :try_end_3c} :catchall_5d

    if-eqz v0, :cond_48

    .line 178
    :try_start_3e
    invoke-static {}, Lcom/iflytek/msc/AIMIC;->getHandler()J

    move-result-wide v2

    invoke-static {v2, v3}, Lcom/iflytek/msc/AIMIC;->AIMICDestroy(J)I
    :try_end_45
    .catch Ljava/lang/Throwable; {:try_start_3e .. :try_end_45} :catch_58
    .catchall {:try_start_3e .. :try_end_45} :catchall_5d

    .line 183
    :goto_45
    const/4 v0, 0x0

    :try_start_46
    sput-object v0, Lcom/iflytek/thirdparty/n;->d:Lcom/iflytek/thirdparty/n;

    .line 185
    :cond_48
    monitor-exit v1
    :try_end_49
    .catchall {:try_start_46 .. :try_end_49} :catchall_5d

    .line 187
    invoke-static {}, Ljava/lang/System;->gc()V

    .line 189
    const-string v0, "aimic destroy leave"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 190
    return-void

    .line 167
    :catchall_52
    move-exception v0

    :try_start_53
    monitor-exit v1
    :try_end_54
    .catchall {:try_start_53 .. :try_end_54} :catchall_52

    throw v0

    .line 173
    :catchall_55
    move-exception v0

    :try_start_56
    monitor-exit v1
    :try_end_57
    .catchall {:try_start_56 .. :try_end_57} :catchall_55

    throw v0

    .line 179
    :catch_58
    move-exception v0

    .line 180
    :try_start_59
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    goto :goto_45

    .line 185
    :catchall_5d
    move-exception v0

    monitor-exit v1
    :try_end_5f
    .catchall {:try_start_59 .. :try_end_5f} :catchall_5d

    throw v0
.end method

.method public b(Lcom/iflytek/thirdparty/m$a;)V
    .registers 4

    .prologue
    .line 227
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "aimic  unregisterListener enter: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 229
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v1

    .line 230
    :try_start_19
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    invoke-virtual {v0, p1}, Lcom/iflytek/thirdparty/n$a;->b(Lcom/iflytek/thirdparty/m$a;)V

    .line 232
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/n$a;->a()Z

    move-result v0

    if-eqz v0, :cond_29

    .line 233
    invoke-virtual {p0}, Lcom/iflytek/thirdparty/n;->e()V

    .line 235
    :cond_29
    monitor-exit v1
    :try_end_2a
    .catchall {:try_start_19 .. :try_end_2a} :catchall_30

    .line 237
    const-string v0, "aimic  unregisterListener leave"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 238
    return-void

    .line 235
    :catchall_30
    move-exception v0

    :try_start_31
    monitor-exit v1
    :try_end_32
    .catchall {:try_start_31 .. :try_end_32} :catchall_30

    throw v0
.end method

.method public b(Lcom/iflytek/thirdparty/m$b;)V
    .registers 4

    .prologue
    .line 213
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "aimic  unregisterListener enter: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 215
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v1

    .line 216
    :try_start_19
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    invoke-virtual {v0, p1}, Lcom/iflytek/thirdparty/n$a;->b(Lcom/iflytek/thirdparty/m$b;)V

    .line 218
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/n$a;->a()Z

    move-result v0

    if-eqz v0, :cond_29

    .line 219
    invoke-virtual {p0}, Lcom/iflytek/thirdparty/n;->e()V

    .line 221
    :cond_29
    monitor-exit v1
    :try_end_2a
    .catchall {:try_start_19 .. :try_end_2a} :catchall_30

    .line 223
    const-string v0, "aimic  unregisterListener leave"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 224
    return-void

    .line 221
    :catchall_30
    move-exception v0

    :try_start_31
    monitor-exit v1
    :try_end_32
    .catchall {:try_start_31 .. :try_end_32} :catchall_30

    throw v0
.end method

.method public c()I
    .registers 5

    .prologue
    .line 340
    const-string v0, "aimic  reset enter"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 343
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v1

    .line 345
    :try_start_8
    invoke-direct {p0}, Lcom/iflytek/thirdparty/n;->k()Z

    move-result v0

    if-eqz v0, :cond_2e

    .line 346
    invoke-static {}, Lcom/iflytek/msc/AIMIC;->getHandler()J

    move-result-wide v2

    invoke-static {v2, v3}, Lcom/iflytek/msc/AIMIC;->AIMICResetEng(J)I
    :try_end_15
    .catch Lcom/iflytek/cloud/SpeechError; {:try_start_8 .. :try_end_15} :catch_31
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_8 .. :try_end_15} :catch_3a
    .catch Ljava/lang/Throwable; {:try_start_8 .. :try_end_15} :catch_41
    .catchall {:try_start_8 .. :try_end_15} :catchall_48

    move-result v0

    .line 360
    :goto_16
    :try_start_16
    monitor-exit v1
    :try_end_17
    .catchall {:try_start_16 .. :try_end_17} :catchall_48

    .line 362
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "aimic  reset leave: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 363
    return v0

    .line 348
    :cond_2e
    const/16 v0, 0x6980

    goto :goto_16

    .line 350
    :catch_31
    move-exception v0

    .line 351
    :try_start_32
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    .line 352
    invoke-virtual {v0}, Lcom/iflytek/cloud/SpeechError;->getErrorCode()I

    move-result v0

    goto :goto_16

    .line 353
    :catch_3a
    move-exception v0

    .line 354
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    .line 355
    const/16 v0, 0x4e35

    .line 359
    goto :goto_16

    .line 356
    :catch_41
    move-exception v0

    .line 357
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    .line 358
    const/16 v0, 0x5207

    goto :goto_16

    .line 360
    :catchall_48
    move-exception v0

    monitor-exit v1
    :try_end_4a
    .catchall {:try_start_32 .. :try_end_4a} :catchall_48

    throw v0
.end method

.method public d()I
    .registers 6

    .prologue
    const/4 v0, 0x0

    .line 367
    const-string v1, "aimic  startListening enter"

    invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 369
    const/16 v1, 0x6980

    .line 371
    iget-object v2, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v2

    .line 372
    :try_start_b
    iget-boolean v3, p0, Lcom/iflytek/thirdparty/n;->w:Z

    if-nez v3, :cond_19

    .line 373
    const-string v3, "aimic  startListening clear old datas."

    invoke-static {v3}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 374
    iget-object v3, p0, Lcom/iflytek/thirdparty/n;->i:Lcom/iflytek/thirdparty/p;

    invoke-virtual {v3}, Lcom/iflytek/thirdparty/p;->d()V

    .line 377
    :cond_19
    invoke-direct {p0}, Lcom/iflytek/thirdparty/n;->k()Z

    move-result v3

    if-eqz v3, :cond_28

    .line 378
    const/4 v1, -0x3

    iget v3, p0, Lcom/iflytek/thirdparty/n;->v:I

    if-ne v1, v3, :cond_45

    .line 379
    invoke-direct {p0}, Lcom/iflytek/thirdparty/n;->l()I

    move-result v1

    .line 393
    :cond_28
    :goto_28
    if-nez v1, :cond_2b

    const/4 v0, 0x1

    :cond_2b
    iput-boolean v0, p0, Lcom/iflytek/thirdparty/n;->w:Z

    .line 394
    monitor-exit v2
    :try_end_2e
    .catchall {:try_start_b .. :try_end_2e} :catchall_56

    .line 396
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "aimic  startListening leave: "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 397
    return v1

    .line 380
    :cond_45
    const/4 v1, -0x1

    :try_start_46
    iget v3, p0, Lcom/iflytek/thirdparty/n;->v:I

    if-ne v1, v3, :cond_5b

    .line 381
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->q:Lcom/iflytek/thirdparty/o;

    if-eqz v1, :cond_59

    .line 382
    const/16 v1, 0x6986

    .line 383
    const-string v3, "startListening failed, current internal recorder is not stoped!"

    invoke-static {v3}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/String;)V

    goto :goto_28

    .line 394
    :catchall_56
    move-exception v0

    monitor-exit v2
    :try_end_58
    .catchall {:try_start_46 .. :try_end_58} :catchall_56

    throw v0

    :cond_59
    move v1, v0

    .line 385
    goto :goto_28

    .line 388
    :cond_5b
    const/16 v1, 0x6984

    .line 389
    :try_start_5d
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "startListening failed, invalid audio source: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget v4, p0, Lcom/iflytek/thirdparty/n;->v:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/String;)V
    :try_end_75
    .catchall {:try_start_5d .. :try_end_75} :catchall_56

    goto :goto_28
.end method

.method public e()V
    .registers 3

    .prologue
    .line 401
    const-string v0, "aimic  stopListening enter"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 403
    iget-object v1, p0, Lcom/iflytek/thirdparty/n;->f:Ljava/lang/Object;

    monitor-enter v1

    .line 404
    :try_start_8
    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    if-eqz v0, :cond_14

    iget-object v0, p0, Lcom/iflytek/thirdparty/n;->l:Lcom/iflytek/thirdparty/n$a;

    invoke-virtual {v0}, Lcom/iflytek/thirdparty/n$a;->a()Z

    move-result v0

    if-eqz v0, :cond_1f

    .line 405
    :cond_14
    const-string v0, "AIMic Listener is empty, audio recorder will stop recording."

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 407
    invoke-direct {p0}, Lcom/iflytek/thirdparty/n;->m()V

    .line 408
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/iflytek/thirdparty/n;->w:Z

    .line 410
    :cond_1f
    monitor-exit v1
    :try_end_20
    .catchall {:try_start_8 .. :try_end_20} :catchall_26

    .line 412
    const-string v0, "aimic  stopListening leave"

    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V

    .line 413
    return-void

    .line 410
    :catchall_26
    move-exception v0

    :try_start_27
    monitor-exit v1
    :try_end_28
    .catchall {:try_start_27 .. :try_end_28} :catchall_26

    throw v0
.end method