i.smali

.class public Lcom/masala/share/stat/c/i;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field private static volatile b:Lcom/masala/share/stat/c/i;


# instance fields
.field a:Landroid/util/SparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/SparseArray<",
            "Lcom/masala/share/stat/c/h;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method private constructor <init>()V
    .registers 3

    .line 47
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 64
    new-instance v0, Landroid/util/SparseArray;

    const/16 v1, 0xa

    invoke-direct {v0, v1}, Landroid/util/SparseArray;-><init>(I)V

    iput-object v0, p0, Lcom/masala/share/stat/c/i;->a:Landroid/util/SparseArray;

    return-void
.end method

.method public static a(B)B
    .registers 5

    const/4 v0, 0x2

    const/4 v1, 0x1

    if-eq p0, v1, :cond_1e

    const/4 v2, 0x4

    if-eq p0, v0, :cond_1d

    if-eq p0, v2, :cond_1b

    const/4 v2, 0x5

    if-eq p0, v2, :cond_1a

    const/4 v3, 0x6

    if-eq p0, v3, :cond_1a

    const/16 v1, 0x8

    if-eq p0, v1, :cond_1e

    const/16 v0, 0x9

    if-eq p0, v0, :cond_19

    const/4 p0, 0x0

    return p0

    :cond_19
    return v2

    :cond_1a
    return v1

    :cond_1b
    const/4 p0, 0x3

    return p0

    :cond_1d
    return v2

    :cond_1e
    return v0
.end method

.method public static a()Lcom/masala/share/stat/c/i;
    .registers 2

    .line 51
    sget-object v0, Lcom/masala/share/stat/c/i;->b:Lcom/masala/share/stat/c/i;

    if-nez v0, :cond_17

    .line 52
    const-class v0, Lcom/masala/share/stat/c/i;

    monitor-enter v0

    .line 53
    :try_start_7
    sget-object v1, Lcom/masala/share/stat/c/i;->b:Lcom/masala/share/stat/c/i;

    if-nez v1, :cond_12

    .line 54
    new-instance v1, Lcom/masala/share/stat/c/i;

    invoke-direct {v1}, Lcom/masala/share/stat/c/i;-><init>()V

    sput-object v1, Lcom/masala/share/stat/c/i;->b:Lcom/masala/share/stat/c/i;

    .line 56
    :cond_12
    monitor-exit v0

    goto :goto_17

    :catchall_14
    move-exception v1

    monitor-exit v0
    :try_end_16
    .catchall {:try_start_7 .. :try_end_16} :catchall_14

    throw v1

    .line 59
    :cond_17
    :goto_17
    sget-object v0, Lcom/masala/share/stat/c/i;->b:Lcom/masala/share/stat/c/i;

    return-object v0
.end method

.method static a([I)Ljava/lang/String;
    .registers 4

    if-eqz p0, :cond_2c

    .line 551
    array-length v0, p0

    if-gtz v0, :cond_6

    goto :goto_2c

    .line 554
    :cond_6
    new-instance v0, Ljava/lang/StringBuilder;

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

    const/4 v1, 0x0

    .line 555
    :goto_c
    array-length v2, p0

    if-ge v1, v2, :cond_27

    .line 556
    array-length v2, p0

    add-int/lit8 v2, v2, -0x1

    if-ne v1, v2, :cond_1a

    .line 557
    aget v2, p0, v1

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

    goto :goto_24

    .line 559
    :cond_1a
    aget v2, p0, v1

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

    const-string v2, ","

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

    :goto_24
    add-int/lit8 v1, v1, 0x1

    goto :goto_c

    .line 562
    :cond_27
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0

    :cond_2c
    :goto_2c
    const-string p0, ""

    return-object p0
.end method

.method static a([S)Ljava/lang/String;
    .registers 4

    if-eqz p0, :cond_2c

    .line 566
    array-length v0, p0

    if-gtz v0, :cond_6

    goto :goto_2c

    .line 569
    :cond_6
    new-instance v0, Ljava/lang/StringBuilder;

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

    const/4 v1, 0x0

    .line 570
    :goto_c
    array-length v2, p0

    if-ge v1, v2, :cond_27

    .line 571
    array-length v2, p0

    add-int/lit8 v2, v2, -0x1

    if-ne v1, v2, :cond_1a

    .line 572
    aget-short v2, p0, v1

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

    goto :goto_24

    .line 574
    :cond_1a
    aget-short v2, p0, v1

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

    const-string v2, ","

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

    :goto_24
    add-int/lit8 v1, v1, 0x1

    goto :goto_c

    .line 577
    :cond_27
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0

    :cond_2c
    :goto_2c
    const-string p0, ""

    return-object p0
.end method

.method public static h(I)B
    .registers 2

    const/4 v0, 0x1

    if-eq p0, v0, :cond_2c

    const/16 v0, 0xa

    if-eq p0, v0, :cond_2a

    packed-switch p0, :pswitch_data_2e

    const/4 p0, -0x1

    return p0

    :pswitch_c
    const/16 p0, 0xf

    return p0

    :pswitch_f
    const/16 p0, 0xe

    return p0

    :pswitch_12
    const/16 p0, 0xd

    return p0

    :pswitch_15
    const/16 p0, 0xc

    return p0

    :pswitch_18
    const/16 p0, 0xb

    return p0

    :pswitch_1b
    return v0

    :pswitch_1c
    const/16 p0, 0x8

    return p0

    :pswitch_1f
    const/4 p0, 0x7

    return p0

    :pswitch_21
    const/4 p0, 0x6

    return p0

    :pswitch_23
    const/4 p0, 0x5

    return p0

    :pswitch_25
    const/4 p0, 0x3

    return p0

    :pswitch_27
    const/16 p0, 0x9

    return p0

    :cond_2a
    :pswitch_2a
    const/4 p0, 0x2

    return p0

    :cond_2c
    return v0

    nop

    :pswitch_data_2e
    .packed-switch 0x2c
        :pswitch_27
        :pswitch_25
        :pswitch_2a
        :pswitch_23
        :pswitch_21
        :pswitch_1f
        :pswitch_1c
        :pswitch_1b
        :pswitch_18
        :pswitch_15
        :pswitch_12
        :pswitch_f
        :pswitch_c
    .end packed-switch
.end method

.method public static i(I)I
    .registers 3

    const/4 v0, 0x1

    if-eq p0, v0, :cond_36

    const/4 v1, 0x2

    if-eq p0, v1, :cond_33

    const/4 v1, 0x3

    if-eq p0, v1, :cond_30

    const/4 v1, 0x4

    if-eq p0, v1, :cond_2d

    packed-switch p0, :pswitch_data_3a

    const/4 p0, -0x1

    return p0

    :pswitch_11
    const/16 p0, 0x38

    return p0

    :pswitch_14
    const/16 p0, 0x37

    return p0

    :pswitch_17
    const/16 p0, 0x36

    return p0

    :pswitch_1a
    const/16 p0, 0x35

    return p0

    :pswitch_1d
    const/16 p0, 0x34

    return p0

    :pswitch_20
    const/16 p0, 0x33

    return p0

    :pswitch_23
    return v0

    :pswitch_24
    const/16 p0, 0x2c

    return p0

    :pswitch_27
    const/16 p0, 0x2d

    return p0

    :pswitch_2a
    const/16 p0, 0x2e

    return p0

    :cond_2d
    const/16 p0, 0x32

    return p0

    :cond_30
    const/16 p0, 0x31

    return p0

    :cond_33
    const/16 p0, 0x30

    return p0

    :cond_36
    const/16 p0, 0x2f

    return p0

    nop

    :pswitch_data_3a
    .packed-switch 0xb
        :pswitch_2a
        :pswitch_27
        :pswitch_24
        :pswitch_23
        :pswitch_20
        :pswitch_1d
        :pswitch_1a
        :pswitch_17
        :pswitch_14
        :pswitch_11
    .end packed-switch
.end method

.method public static j(I)V
    .registers 1

    int-to-byte p0, p0

    .line 1249
    sput-byte p0, Lcom/masala/share/stat/c/h;->aw:B

    return-void
.end method


# virtual methods
.method public final a(I)Lcom/masala/share/stat/c/h;
    .registers 6

    .line 79
    iget-object v0, p0, Lcom/masala/share/stat/c/i;->a:Landroid/util/SparseArray;

    monitor-enter v0

    .line 80
    :try_start_3
    iget-object v1, p0, Lcom/masala/share/stat/c/i;->a:Landroid/util/SparseArray;

    invoke-virtual {v1, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/masala/share/stat/c/h;

    if-nez v1, :cond_34

    .line 82
    iget-object v1, p0, Lcom/masala/share/stat/c/i;->a:Landroid/util/SparseArray;

    const/4 v2, -0x1

    invoke-virtual {v1, v2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/masala/share/stat/c/h;

    if-nez v1, :cond_1b

    const/4 p1, 0x0

    .line 84
    monitor-exit v0

    return-object p1

    .line 86
    :cond_1b
    iget-object v3, p0, Lcom/masala/share/stat/c/i;->a:Landroid/util/SparseArray;

    invoke-virtual {v3, p1, v1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 87
    iget-object v3, p0, Lcom/masala/share/stat/c/i;->a:Landroid/util/SparseArray;

    invoke-virtual {v3, v2}, Landroid/util/SparseArray;->delete(I)V

    const-string v2, "SDKVideoPlayerStat"

    const-string v3, "updatePlayerStat sessionId to "

    .line 88
    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p1

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

    move-result-object p1

    invoke-static {v2, p1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 91
    :cond_34
    monitor-exit v0

    return-object v1

    :catchall_36
    move-exception p1

    .line 92
    monitor-exit v0
    :try_end_38
    .catchall {:try_start_3 .. :try_end_38} :catchall_36

    throw p1
.end method

.method public final a(IJ)Lcom/masala/share/stat/c/h;
    .registers 6

    const-string v0, "SDKVideoPlayerStat"

    const-string v1, "markVideoStartClick"

    .line 144
    invoke-static {v0, v1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v1, -0x1

    .line 145
    invoke-virtual {p0, v1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object v1

    if-eqz v1, :cond_13

    const-string v1, "call markVideoStartClick when mCurPlayStat is \'NOT\' null"

    .line 147
    invoke-static {v0, v1}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 150
    :cond_13
    invoke-virtual {p0}, Lcom/masala/share/stat/c/i;->b()Lcom/masala/share/stat/c/h;

    move-result-object v0

    .line 151
    iput-wide p2, v0, Lcom/masala/share/stat/c/h;->G:J

    .line 152
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide p2

    iput-wide p2, v0, Lcom/masala/share/stat/c/h;->bn:J

    .line 153
    invoke-static {p1}, Lcom/masala/share/stat/c/i;->h(I)B

    move-result p1

    iput-byte p1, v0, Lcom/masala/share/stat/c/h;->ax:B

    return-object v0
.end method

.method public final a(IB)V
    .registers 3

    .line 1241
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-eqz p1, :cond_8

    .line 1243
    iput-byte p2, p1, Lcom/masala/share/stat/c/h;->bK:B

    :cond_8
    return-void
.end method

.method public final declared-synchronized a(II)V
    .registers 3

    monitor-enter p0

    .line 134
    :try_start_1
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1
    :try_end_5
    .catchall {:try_start_1 .. :try_end_5} :catchall_10

    if-eqz p1, :cond_9

    .line 136
    monitor-exit p0

    return-void

    .line 138
    :cond_9
    :try_start_9
    iput p2, p1, Lcom/masala/share/stat/c/h;->e:I

    const/4 p2, 0x1

    .line 139
    iput p2, p1, Lcom/masala/share/stat/c/h;->n:I
    :try_end_e
    .catchall {:try_start_9 .. :try_end_e} :catchall_10

    .line 140
    monitor-exit p0

    return-void

    :catchall_10
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public final a(IIIJ)V
    .registers 8

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

    const-string v1, "markSwipeStart "

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

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

    const-string v1, ";"

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

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

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

    move-result-object v0

    const-string v1, "SDKVideoPlayerStat"

    invoke-static {v1, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 244
    invoke-virtual {p0, p2}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p2

    if-eqz p2, :cond_29

    const-string v0, "markSwipeStart oldStat != null"

    .line 246
    invoke-static {v1, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v0, 0x5

    .line 247
    iput v0, p2, Lcom/masala/share/stat/c/h;->ay:I

    .line 249
    :cond_29
    invoke-virtual {p0, p3}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p3

    if-nez p3, :cond_4f

    const-string p3, "markSwipeStart stat = null"

    .line 251
    invoke-static {v1, p3}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 252
    invoke-virtual {p0}, Lcom/masala/share/stat/c/i;->b()Lcom/masala/share/stat/c/h;

    move-result-object p3

    .line 253
    iput-wide p4, p3, Lcom/masala/share/stat/c/h;->G:J

    const/4 p4, 0x0

    .line 254
    iput p4, p3, Lcom/masala/share/stat/c/h;->W:I

    .line 255
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide p4

    iput-wide p4, p3, Lcom/masala/share/stat/c/h;->bn:J

    if-eqz p2, :cond_49

    const/4 p1, 0x4

    .line 257
    iput-byte p1, p3, Lcom/masala/share/stat/c/h;->ax:B

    return-void

    .line 260
    :cond_49
    invoke-static {p1}, Lcom/masala/share/stat/c/i;->h(I)B

    move-result p1

    iput-byte p1, p3, Lcom/masala/share/stat/c/h;->ax:B

    :cond_4f
    return-void
.end method

.method public final a(ILjava/lang/String;)V
    .registers 5

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

    const-string v1, "markMediaStart "

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

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

    const-string v1, ";"

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

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

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

    move-result-object v0

    const-string v1, "SDKVideoPlayerStat"

    invoke-static {v1, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 268
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-nez p1, :cond_22

    return-void

    .line 273
    :cond_22
    iput-object p2, p1, Lcom/masala/share/stat/c/h;->a:Ljava/lang/String;

    return-void
.end method

.method public final a(IZ)V
    .registers 3

    .line 1374
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-nez p1, :cond_7

    return-void

    .line 1378
    :cond_7
    iput-boolean p2, p1, Lcom/masala/share/stat/c/h;->bX:Z

    return-void
.end method

.method public final b(IJ)I
    .registers 11

    .line 1077
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_8

    return v1

    .line 1082
    :cond_8
    iget-wide v2, v0, Lcom/masala/share/stat/c/h;->bn:J

    const-wide/16 v4, 0x0

    cmp-long v6, v2, v4

    if-gtz v6, :cond_11

    return v1

    .line 1087
    :cond_11
    iget-wide v0, v0, Lcom/masala/share/stat/c/h;->bn:J

    sub-long v0, p2, v0

    .line 1088
    invoke-virtual {p0, p1, p2, p3}, Lcom/masala/share/stat/c/i;->c(IJ)I

    move-result p1

    int-to-long p1, p1

    sub-long/2addr v0, p1

    long-to-int p1, v0

    return p1
.end method

.method public final b()Lcom/masala/share/stat/c/h;
    .registers 6

    .line 68
    iget-object v0, p0, Lcom/masala/share/stat/c/i;->a:Landroid/util/SparseArray;

    monitor-enter v0

    .line 69
    :try_start_3
    new-instance v1, Lcom/masala/share/stat/c/h;

    invoke-direct {v1}, Lcom/masala/share/stat/c/h;-><init>()V

    .line 70
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iput-wide v2, v1, Lcom/masala/share/stat/c/h;->bh:J

    .line 71
    invoke-static {}, Lcom/masala/share/proto/b/c;->d()I

    move-result v2

    iput v2, v1, Lcom/masala/share/stat/c/h;->L:I

    const-string v2, "tokenhit"

    const-string v3, "1"

    .line 1504
    iget-object v4, v1, Lcom/masala/share/stat/c/h;->bM:Ljava/util/Map;

    invoke-interface {v4, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 73
    iget-object v2, p0, Lcom/masala/share/stat/c/i;->a:Landroid/util/SparseArray;

    const/4 v3, -0x1

    invoke-virtual {v2, v3, v1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 74
    monitor-exit v0

    return-object v1

    :catchall_25
    move-exception v1

    .line 75
    monitor-exit v0
    :try_end_27
    .catchall {:try_start_3 .. :try_end_27} :catchall_25

    throw v1
.end method

.method public final b(I)V
    .registers 6

    .line 187
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-nez p1, :cond_e

    const-string p1, "SDKVideoPlayerStat"

    const-string v0, "markOnCreatEnd: stat is null,may be not call markVideoStartClick"

    .line 189
    invoke-static {p1, v0}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    return-void

    .line 192
    :cond_e
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    iget-wide v2, p1, Lcom/masala/share/stat/c/h;->bn:J

    sub-long/2addr v0, v2

    iput-wide v0, p1, Lcom/masala/share/stat/c/h;->bu:J

    return-void
.end method

.method public final b(II)V
    .registers 5

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

    const-string v1, "markExit, "

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

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

    const-string v1, ", "

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

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

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

    move-result-object v0

    const-string v1, "SDKVideoPlayerStat"

    invoke-static {v1, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 946
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-nez p1, :cond_22

    return-void

    .line 951
    :cond_22
    iput p2, p1, Lcom/masala/share/stat/c/h;->ay:I

    return-void
.end method

.method public final b(ILjava/lang/String;)V
    .registers 3

    .line 1366
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-nez p1, :cond_7

    return-void

    .line 1370
    :cond_7
    iput-object p2, p1, Lcom/masala/share/stat/c/h;->br:Ljava/lang/String;

    return-void
.end method

.method public final c(IJ)I
    .registers 11

    .line 1095
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object v0

    if-eqz v0, :cond_4a

    .line 1096
    iget-object v1, v0, Lcom/masala/share/stat/c/h;->ca:Lcom/masala/share/stat/c/g;

    if-nez v1, :cond_b

    goto :goto_4a

    .line 1101
    :cond_b
    iget-object v1, v0, Lcom/masala/share/stat/c/h;->ca:Lcom/masala/share/stat/c/g;

    iget v1, v1, Lcom/masala/share/stat/c/g;->d:I

    .line 1102
    iget-object v2, v0, Lcom/masala/share/stat/c/h;->ca:Lcom/masala/share/stat/c/g;

    iget-wide v2, v2, Lcom/masala/share/stat/c/g;->f:J

    const-wide/16 v4, 0x0

    cmp-long v6, v2, v4

    if-lez v6, :cond_22

    int-to-long v1, v1

    .line 1103
    iget-object v3, v0, Lcom/masala/share/stat/c/h;->ca:Lcom/masala/share/stat/c/g;

    iget-wide v3, v3, Lcom/masala/share/stat/c/g;->f:J

    sub-long v3, p2, v3

    add-long/2addr v1, v3

    long-to-int v1, v1

    .line 1106
    :cond_22
    iget v2, v0, Lcom/masala/share/stat/c/h;->X:I

    if-lez v2, :cond_2a

    .line 1107
    iget p2, v0, Lcom/masala/share/stat/c/h;->X:I

    add-int/2addr p2, v1

    goto :goto_2e

    .line 1109
    :cond_2a
    iget-wide v0, v0, Lcom/masala/share/stat/c/h;->bn:J

    sub-long/2addr p2, v0

    long-to-int p2, p2

    .line 1112
    :goto_2e
    new-instance p3, Ljava/lang/StringBuilder;

    const-string v0, "getWaitTime "

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

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

    const-string p1, ", return "

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

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

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

    move-result-object p1

    const-string p3, "SDKVideoPlayerStat"

    invoke-static {p3, p1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    return p2

    :cond_4a
    :goto_4a
    const/4 p1, 0x0

    return p1
.end method

.method public final c()V
    .registers 7

    const-string v0, "SDKVideoPlayerStat"

    const-string v1, "markOnStartActivityEnd"

    .line 161
    invoke-static {v0, v1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 162
    iget-object v1, p0, Lcom/masala/share/stat/c/i;->a:Landroid/util/SparseArray;

    const/4 v2, -0x1

    invoke-virtual {v1, v2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/masala/share/stat/c/h;

    if-nez v1, :cond_18

    const-string v1, "markOnStartActivityEnd: stat is null,may be not call markVideoStartClick"

    .line 164
    invoke-static {v0, v1}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    return-void

    .line 167
    :cond_18
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    iget-wide v4, v1, Lcom/masala/share/stat/c/h;->bn:J

    sub-long/2addr v2, v4

    iput-wide v2, v1, Lcom/masala/share/stat/c/h;->bs:J

    return-void
.end method

.method public final c(I)V
    .registers 4

    .line 685
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-nez p1, :cond_7

    return-void

    .line 690
    :cond_7
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    iput-wide v0, p1, Lcom/masala/share/stat/c/h;->bp:J

    return-void
.end method

.method public final c(II)V
    .registers 4

    .line 968
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-nez p1, :cond_7

    return-void

    :cond_7
    const/4 v0, 0x1

    packed-switch p2, :pswitch_data_2e

    goto :goto_2c

    .line 1009
    :pswitch_c
    iput v0, p1, Lcom/masala/share/stat/c/h;->au:I

    goto :goto_2c

    .line 1006
    :pswitch_f
    iput v0, p1, Lcom/masala/share/stat/c/h;->at:I

    return-void

    .line 1003
    :pswitch_12
    iput v0, p1, Lcom/masala/share/stat/c/h;->as:I

    return-void

    .line 1000
    :pswitch_15
    iput-byte v0, p1, Lcom/masala/share/stat/c/h;->bg:B

    return-void

    .line 996
    :pswitch_18
    iput-byte v0, p1, Lcom/masala/share/stat/c/h;->bf:B

    return-void

    .line 993
    :pswitch_1b
    iput v0, p1, Lcom/masala/share/stat/c/h;->av:I

    return-void

    .line 989
    :pswitch_1e
    iput-byte v0, p1, Lcom/masala/share/stat/c/h;->be:B

    return-void

    .line 985
    :pswitch_21
    iput-byte v0, p1, Lcom/masala/share/stat/c/h;->bd:B

    return-void

    .line 981
    :pswitch_24
    iput-byte v0, p1, Lcom/masala/share/stat/c/h;->bc:B

    return-void

    .line 978
    :pswitch_27
    iput-byte v0, p1, Lcom/masala/share/stat/c/h;->bb:B

    return-void

    .line 975
    :pswitch_2a
    iput-byte v0, p1, Lcom/masala/share/stat/c/h;->ba:B

    :goto_2c
    return-void

    nop

    :pswitch_data_2e
    .packed-switch 0x1
        :pswitch_2a
        :pswitch_27
        :pswitch_24
        :pswitch_21
        :pswitch_1e
        :pswitch_1b
        :pswitch_18
        :pswitch_15
        :pswitch_12
        :pswitch_f
        :pswitch_c
    .end packed-switch
.end method

.method public final d()V
    .registers 7

    const-string v0, "SDKVideoPlayerStat"

    const-string v1, "markOnCreateStart"

    .line 174
    invoke-static {v0, v1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 175
    invoke-static {}, Lcom/masala/share/sdkvideoplayer/b/a;->a()Lcom/masala/share/sdkvideoplayer/b/b;

    move-result-object v1

    invoke-interface {v1}, Lcom/masala/share/sdkvideoplayer/b/b;->j()I

    move-result v1

    invoke-virtual {p0, v1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object v1

    if-nez v1, :cond_1b

    const-string v1, "markOnCreateStart: stat is null,may be not call markVideoStartClick"

    .line 177
    invoke-static {v0, v1}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    return-void

    .line 180
    :cond_1b
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    iget-wide v4, v1, Lcom/masala/share/stat/c/h;->bn:J

    sub-long/2addr v2, v4

    iput-wide v2, v1, Lcom/masala/share/stat/c/h;->bt:J

    return-void
.end method

.method public final d(I)V
    .registers 8

    .line 717
    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    const-string v1, "markOnUIRender "

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

    move-result-object v0

    const-string v1, "SDKVideoPlayerStat"

    invoke-static {v1, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 718
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-nez p1, :cond_16

    return-void

    .line 723
    :cond_16
    iget-wide v0, p1, Lcom/masala/share/stat/c/h;->bq:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-lez v4, :cond_28

    .line 724
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    iget-wide v4, p1, Lcom/masala/share/stat/c/h;->bq:J

    sub-long/2addr v0, v4

    long-to-int v1, v0

    iput v1, p1, Lcom/masala/share/stat/c/h;->aV:I

    .line 726
    :cond_28
    iput-wide v2, p1, Lcom/masala/share/stat/c/h;->bq:J

    return-void
.end method

.method public final d(IJ)V
    .registers 6

    .line 1357
    invoke-static {p2, p3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    const-string v1, "markThumbRenderTime cost = "

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

    move-result-object v0

    const-string v1, "SDKVideoPlayerStat"

    invoke-static {v1, v0}, Lsg/bigo/log/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 1358
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-nez p1, :cond_16

    return-void

    .line 1362
    :cond_16
    iput-wide p2, p1, Lcom/masala/share/stat/c/h;->bW:J

    return-void
.end method

.method public final e(I)I
    .registers 3

    .line 1117
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-eqz p1, :cond_10

    .line 1118
    iget-object v0, p1, Lcom/masala/share/stat/c/h;->ca:Lcom/masala/share/stat/c/g;

    if-nez v0, :cond_b

    goto :goto_10

    .line 1123
    :cond_b
    iget-object p1, p1, Lcom/masala/share/stat/c/h;->ca:Lcom/masala/share/stat/c/g;

    iget p1, p1, Lcom/masala/share/stat/c/g;->e:I

    return p1

    :cond_10
    :goto_10
    const/4 p1, 0x0

    return p1
.end method

.method public final f(I)I
    .registers 3

    .line 1129
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-eqz p1, :cond_10

    .line 1130
    iget-object v0, p1, Lcom/masala/share/stat/c/h;->ca:Lcom/masala/share/stat/c/g;

    if-nez v0, :cond_b

    goto :goto_10

    .line 1135
    :cond_b
    iget-object p1, p1, Lcom/masala/share/stat/c/h;->ca:Lcom/masala/share/stat/c/g;

    iget p1, p1, Lcom/masala/share/stat/c/g;->c:I

    return p1

    :cond_10
    :goto_10
    const/4 p1, 0x0

    return p1
.end method

.method public final g(I)I
    .registers 2

    .line 1153
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-nez p1, :cond_8

    const/4 p1, 0x0

    return p1

    .line 1159
    :cond_8
    iget p1, p1, Lcom/masala/share/stat/c/h;->M:I

    .line 1161
    div-int/lit8 p1, p1, 0x8

    return p1
.end method

.method public final k(I)V
    .registers 3

    .line 1274
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-eqz p1, :cond_c

    .line 1276
    iget v0, p1, Lcom/masala/share/stat/c/h;->aq:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p1, Lcom/masala/share/stat/c/h;->aq:I

    :cond_c
    return-void
.end method

.method public final l(I)V
    .registers 3

    .line 1281
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    if-eqz p1, :cond_c

    .line 1283
    iget v0, p1, Lcom/masala/share/stat/c/h;->ar:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p1, Lcom/masala/share/stat/c/h;->ar:I

    :cond_c
    return-void
.end method

.method public final m(I)Z
    .registers 7

    .line 1348
    invoke-virtual {p0, p1}, Lcom/masala/share/stat/c/i;->a(I)Lcom/masala/share/stat/c/h;

    move-result-object p1

    const/4 v0, 0x0

    if-nez p1, :cond_f

    const-string p1, "SDKVideoPlayerStat"

    const-string v1, "markActivityOnCreateEnd: stat is null,may be not call markVideoStartClick"

    .line 1350
    invoke-static {p1, v1}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    return v0

    .line 1353
    :cond_f
    iget-wide v1, p1, Lcom/masala/share/stat/c/h;->bW:J

    const-wide/16 v3, -0x1

    cmp-long p1, v1, v3

    if-eqz p1, :cond_19

    const/4 p1, 0x1

    return p1

    :cond_19
    return v0
.end method