bj.smali

.class final Lcom/google/obf/bj;
.super Ljava/lang/Object;
.source "IMASDK"


# static fields
.field private static final a:[I


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

    const/16 v0, 0x18

    new-array v0, v0, [I

    const-string v1, "isom"

    .line 60
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/4 v2, 0x0

    aput v1, v0, v2

    const-string v1, "iso2"

    .line 61
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/4 v2, 0x1

    aput v1, v0, v2

    const-string v1, "iso3"

    .line 62
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/4 v2, 0x2

    aput v1, v0, v2

    const-string v1, "iso4"

    .line 63
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/4 v2, 0x3

    aput v1, v0, v2

    const-string v1, "iso5"

    .line 64
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/4 v2, 0x4

    aput v1, v0, v2

    const-string v1, "iso6"

    .line 65
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/4 v2, 0x5

    aput v1, v0, v2

    const-string v1, "avc1"

    .line 66
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/4 v2, 0x6

    aput v1, v0, v2

    const-string v1, "hvc1"

    .line 67
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/4 v2, 0x7

    aput v1, v0, v2

    const-string v1, "hev1"

    .line 68
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0x8

    aput v1, v0, v2

    const-string v1, "mp41"

    .line 69
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0x9

    aput v1, v0, v2

    const-string v1, "mp42"

    .line 70
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0xa

    aput v1, v0, v2

    const-string v1, "3g2a"

    .line 71
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0xb

    aput v1, v0, v2

    const-string v1, "3g2b"

    .line 72
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0xc

    aput v1, v0, v2

    const-string v1, "3gr6"

    .line 73
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0xd

    aput v1, v0, v2

    const-string v1, "3gs6"

    .line 74
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0xe

    aput v1, v0, v2

    const-string v1, "3ge6"

    .line 75
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0xf

    aput v1, v0, v2

    const-string v1, "3gg6"

    .line 76
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0x10

    aput v1, v0, v2

    const-string v1, "M4V "

    .line 77
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0x11

    aput v1, v0, v2

    const-string v1, "M4A "

    .line 78
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0x12

    aput v1, v0, v2

    const-string v1, "f4v "

    .line 79
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0x13

    aput v1, v0, v2

    const-string v1, "kddi"

    .line 80
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0x14

    aput v1, v0, v2

    const-string v1, "M4VP"

    .line 81
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0x15

    aput v1, v0, v2

    const-string v1, "qt  "

    .line 82
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0x16

    aput v1, v0, v2

    const-string v1, "MSNV"

    .line 83
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/16 v2, 0x17

    aput v1, v0, v2

    sput-object v0, Lcom/google/obf/bj;->a:[I

    return-void
.end method

.method private static a(I)Z
    .registers 7

    ushr-int/lit8 v0, p0, 0x8

    const-string v1, "3gp"

    .line 52
    invoke-static {v1}, Lcom/google/obf/ea;->c(Ljava/lang/String;)I

    move-result v1

    const/4 v2, 0x1

    if-ne v0, v1, :cond_c

    return v2

    .line 54
    :cond_c
    sget-object v0, Lcom/google/obf/bj;->a:[I

    array-length v1, v0

    const/4 v3, 0x0

    const/4 v4, 0x0

    :goto_11
    if-ge v4, v1, :cond_1b

    aget v5, v0, v4

    if-ne v5, p0, :cond_18

    return v2

    :cond_18
    add-int/lit8 v4, v4, 0x1

    goto :goto_11

    :cond_1b
    return v3
.end method

.method public static a(Lcom/google/obf/ak;)Z
    .registers 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Ljava/lang/InterruptedException;
        }
    .end annotation

    const/4 v0, 0x1

    .line 1
    invoke-static {p0, v0}, Lcom/google/obf/bj;->a(Lcom/google/obf/ak;Z)Z

    move-result p0

    return p0
.end method

.method private static a(Lcom/google/obf/ak;Z)Z
    .registers 20
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Ljava/lang/InterruptedException;
        }
    .end annotation

    move-object/from16 v0, p0

    .line 3
    invoke-interface/range {p0 .. p0}, Lcom/google/obf/ak;->d()J

    move-result-wide v1

    const-wide/16 v3, 0x1000

    const-wide/16 v5, -0x1

    cmp-long v7, v1, v5

    if-eqz v7, :cond_12

    cmp-long v5, v1, v3

    if-lez v5, :cond_13

    :cond_12
    move-wide v1, v3

    :cond_13
    long-to-int v2, v1

    .line 6
    new-instance v1, Lcom/google/obf/dw;

    const/16 v3, 0x40

    invoke-direct {v1, v3}, Lcom/google/obf/dw;-><init>(I)V

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, 0x0

    :cond_1e
    :goto_1e
    if-ge v4, v2, :cond_ae

    .line 12
    iget-object v7, v1, Lcom/google/obf/dw;->a:[B

    const/16 v8, 0x8

    invoke-interface {v0, v7, v3, v8}, Lcom/google/obf/ak;->c([BII)V

    .line 13
    invoke-virtual {v1, v3}, Lcom/google/obf/dw;->c(I)V

    .line 14
    invoke-virtual {v1}, Lcom/google/obf/dw;->k()J

    move-result-wide v9

    .line 15
    invoke-virtual {v1}, Lcom/google/obf/dw;->m()I

    move-result v7

    const-wide/16 v11, 0x1

    cmp-long v13, v9, v11

    if-nez v13, :cond_47

    const/16 v9, 0x10

    .line 18
    iget-object v10, v1, Lcom/google/obf/dw;->a:[B

    invoke-interface {v0, v10, v8, v8}, Lcom/google/obf/ak;->c([BII)V

    .line 19
    invoke-virtual {v1}, Lcom/google/obf/dw;->u()J

    move-result-wide v10

    move-wide v9, v10

    const/16 v11, 0x10

    goto :goto_49

    :cond_47
    const/16 v11, 0x8

    :goto_49
    int-to-long v12, v11

    cmp-long v14, v9, v12

    if-gez v14, :cond_4f

    return v3

    :cond_4f
    add-int/2addr v4, v11

    .line 23
    sget v11, Lcom/google/obf/bc;->B:I

    if-ne v7, v11, :cond_55

    goto :goto_1e

    .line 25
    :cond_55
    sget v11, Lcom/google/obf/bc;->K:I

    if-eq v7, v11, :cond_ab

    sget v11, Lcom/google/obf/bc;->M:I

    if-ne v7, v11, :cond_5e

    goto :goto_ab

    :cond_5e
    int-to-long v14, v4

    add-long/2addr v14, v9

    sub-long/2addr v14, v12

    move/from16 v16, v7

    int-to-long v6, v2

    cmp-long v17, v14, v6

    if-ltz v17, :cond_69

    goto :goto_ae

    :cond_69
    sub-long/2addr v9, v12

    long-to-int v6, v9

    add-int/2addr v4, v6

    .line 32
    sget v7, Lcom/google/obf/bc;->a:I

    move/from16 v9, v16

    if-ne v9, v7, :cond_a4

    if-ge v6, v8, :cond_75

    return v3

    .line 35
    :cond_75
    invoke-virtual {v1}, Lcom/google/obf/dw;->e()I

    move-result v7

    if-ge v7, v6, :cond_80

    .line 36
    new-array v7, v6, [B

    invoke-virtual {v1, v7, v6}, Lcom/google/obf/dw;->a([BI)V

    .line 37
    :cond_80
    iget-object v7, v1, Lcom/google/obf/dw;->a:[B

    invoke-interface {v0, v7, v3, v6}, Lcom/google/obf/ak;->c([BII)V

    .line 38
    div-int/lit8 v6, v6, 0x4

    const/4 v7, 0x0

    :goto_88
    if-ge v7, v6, :cond_a1

    const/4 v8, 0x1

    if-ne v7, v8, :cond_92

    const/4 v9, 0x4

    .line 41
    invoke-virtual {v1, v9}, Lcom/google/obf/dw;->d(I)V

    goto :goto_9e

    .line 42
    :cond_92
    invoke-virtual {v1}, Lcom/google/obf/dw;->m()I

    move-result v9

    invoke-static {v9}, Lcom/google/obf/bj;->a(I)Z

    move-result v9

    if-eqz v9, :cond_9e

    const/4 v5, 0x1

    goto :goto_a1

    :cond_9e
    :goto_9e
    add-int/lit8 v7, v7, 0x1

    goto :goto_88

    :cond_a1
    :goto_a1
    if-nez v5, :cond_1e

    return v3

    :cond_a4
    if-eqz v6, :cond_1e

    .line 49
    invoke-interface {v0, v6}, Lcom/google/obf/ak;->c(I)V

    goto/16 :goto_1e

    :cond_ab
    :goto_ab
    const/4 v8, 0x1

    const/4 v0, 0x1

    goto :goto_b0

    :cond_ae
    :goto_ae
    const/4 v8, 0x1

    const/4 v0, 0x0

    :goto_b0
    if-eqz v5, :cond_b7

    move/from16 v1, p1

    if-ne v1, v0, :cond_b7

    const/4 v3, 0x1

    :cond_b7
    return v3
.end method

.method public static b(Lcom/google/obf/ak;)Z
    .registers 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Ljava/lang/InterruptedException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 2
    invoke-static {p0, v0}, Lcom/google/obf/bj;->a(Lcom/google/obf/ak;Z)Z

    move-result p0

    return p0
.end method