h.smali

.class public final Lf/b/b/b/f1/h;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lf/b/b/b/f1/h$b;
    }
.end annotation


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


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

    const/16 v0, 0xe

    new-array v0, v0, [I

    fill-array-data v0, :array_a

    sput-object v0, Lf/b/b/b/f1/h;->a:[I

    return-void

    :array_a
    .array-data 4
        0x7d2
        0x7d0
        0x780
        0x641
        0x640
        0x3e9
        0x3e8
        0x3c0
        0x320
        0x320
        0x1e0
        0x190
        0x190
        0x800
    .end array-data
.end method

.method public static a(ILf/b/b/b/s1/y;)V
    .registers 4

    const/4 v0, 0x7

    invoke-virtual {p1, v0}, Lf/b/b/b/s1/y;->J(I)V

    iget-object p1, p1, Lf/b/b/b/s1/y;->a:[B

    const/4 v0, 0x0

    const/16 v1, -0x54

    aput-byte v1, p1, v0

    const/4 v0, 0x1

    const/16 v1, 0x40

    aput-byte v1, p1, v0

    const/4 v0, 0x2

    const/4 v1, -0x1

    aput-byte v1, p1, v0

    const/4 v0, 0x3

    aput-byte v1, p1, v0

    shr-int/lit8 v0, p0, 0x10

    and-int/lit16 v0, v0, 0xff

    int-to-byte v0, v0

    const/4 v1, 0x4

    aput-byte v0, p1, v1

    shr-int/lit8 v0, p0, 0x8

    and-int/lit16 v0, v0, 0xff

    int-to-byte v0, v0

    const/4 v1, 0x5

    aput-byte v0, p1, v1

    and-int/lit16 p0, p0, 0xff

    int-to-byte p0, p0

    const/4 v0, 0x6

    aput-byte p0, p1, v0

    return-void
.end method

.method public static b(Lf/b/b/b/s1/y;Ljava/lang/String;Ljava/lang/String;Lf/b/b/b/i1/n;)Lf/b/b/b/f0;
    .registers 15

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lf/b/b/b/s1/y;->O(I)V

    invoke-virtual {p0}, Lf/b/b/b/s1/y;->A()I

    move-result p0

    and-int/lit8 p0, p0, 0x20

    shr-int/lit8 p0, p0, 0x5

    if-ne p0, v0, :cond_15

    const p0, 0xbb80

    const v6, 0xbb80

    goto :goto_1b

    :cond_15
    const p0, 0xac44

    const v6, 0xac44

    :goto_1b
    const/4 v2, 0x0

    const/4 v3, -0x1

    const/4 v4, -0x1

    const/4 v5, 0x2

    const/4 v7, 0x0

    const/4 v9, 0x0

    const-string v1, "audio/ac4"

    move-object v0, p1

    move-object v8, p3

    move-object v10, p2

    invoke-static/range {v0 .. v10}, Lf/b/b/b/f0;->r(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIILjava/util/List;Lf/b/b/b/i1/n;ILjava/lang/String;)Lf/b/b/b/f0;

    move-result-object p0

    return-object p0
.end method

.method public static c(Ljava/nio/ByteBuffer;)I
    .registers 3

    const/16 v0, 0x10

    new-array v0, v0, [B

    invoke-virtual {p0}, Ljava/nio/ByteBuffer;->position()I

    move-result v1

    invoke-virtual {p0, v0}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;

    invoke-virtual {p0, v1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    new-instance p0, Lf/b/b/b/s1/x;

    invoke-direct {p0, v0}, Lf/b/b/b/s1/x;-><init>([B)V

    invoke-static {p0}, Lf/b/b/b/f1/h;->d(Lf/b/b/b/s1/x;)Lf/b/b/b/f1/h$b;

    move-result-object p0

    iget p0, p0, Lf/b/b/b/f1/h$b;->d:I

    return p0
.end method

.method public static d(Lf/b/b/b/s1/x;)Lf/b/b/b/f1/h$b;
    .registers 11

    const/16 v0, 0x10

    invoke-virtual {p0, v0}, Lf/b/b/b/s1/x;->h(I)I

    move-result v1

    invoke-virtual {p0, v0}, Lf/b/b/b/s1/x;->h(I)I

    move-result v0

    const/4 v2, 0x4

    const v3, 0xffff

    if-ne v0, v3, :cond_18

    const/16 v0, 0x18

    invoke-virtual {p0, v0}, Lf/b/b/b/s1/x;->h(I)I

    move-result v0

    const/4 v3, 0x7

    goto :goto_19

    :cond_18
    const/4 v3, 0x4

    :goto_19
    add-int/2addr v0, v3

    const v3, 0xac41

    if-ne v1, v3, :cond_21

    add-int/lit8 v0, v0, 0x2

    :cond_21
    move v7, v0

    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lf/b/b/b/s1/x;->h(I)I

    move-result v1

    const/4 v3, 0x3

    if-ne v1, v3, :cond_2f

    invoke-static {p0, v0}, Lf/b/b/b/f1/h;->f(Lf/b/b/b/s1/x;I)I

    move-result v4

    add-int/2addr v1, v4

    :cond_2f
    move v4, v1

    const/16 v1, 0xa

    invoke-virtual {p0, v1}, Lf/b/b/b/s1/x;->h(I)I

    move-result v1

    invoke-virtual {p0}, Lf/b/b/b/s1/x;->g()Z

    move-result v5

    if-eqz v5, :cond_45

    invoke-virtual {p0, v3}, Lf/b/b/b/s1/x;->h(I)I

    move-result v5

    if-lez v5, :cond_45

    invoke-virtual {p0, v0}, Lf/b/b/b/s1/x;->q(I)V

    :cond_45
    invoke-virtual {p0}, Lf/b/b/b/s1/x;->g()Z

    move-result v5

    const v6, 0xbb80

    const v8, 0xac44

    if-eqz v5, :cond_55

    const v9, 0xbb80

    goto :goto_58

    :cond_55
    const v9, 0xac44

    :goto_58
    invoke-virtual {p0, v2}, Lf/b/b/b/s1/x;->h(I)I

    move-result p0

    const/4 v5, 0x0

    if-ne v9, v8, :cond_69

    const/16 v8, 0xd

    if-ne p0, v8, :cond_69

    sget-object v0, Lf/b/b/b/f1/h;->a:[I

    aget p0, v0, p0

    move v8, p0

    goto :goto_99

    :cond_69
    if-ne v9, v6, :cond_98

    sget-object v6, Lf/b/b/b/f1/h;->a:[I

    array-length v8, v6

    if-ge p0, v8, :cond_98

    aget v5, v6, p0

    rem-int/lit8 v1, v1, 0x5

    const/16 v6, 0x8

    const/4 v8, 0x1

    if-eq v1, v8, :cond_8e

    const/16 v8, 0xb

    if-eq v1, v0, :cond_89

    if-eq v1, v3, :cond_8e

    if-eq v1, v2, :cond_82

    goto :goto_93

    :cond_82
    if-eq p0, v3, :cond_95

    if-eq p0, v6, :cond_95

    if-ne p0, v8, :cond_93

    goto :goto_95

    :cond_89
    if-eq p0, v6, :cond_95

    if-ne p0, v8, :cond_93

    goto :goto_95

    :cond_8e
    if-eq p0, v3, :cond_95

    if-ne p0, v6, :cond_93

    goto :goto_95

    :cond_93
    :goto_93
    move v8, v5

    goto :goto_99

    :cond_95
    :goto_95
    add-int/lit8 v5, v5, 0x1

    goto :goto_93

    :cond_98
    const/4 v8, 0x0

    :goto_99
    new-instance p0, Lf/b/b/b/f1/h$b;

    const/4 v5, 0x2

    const/4 v0, 0x0

    move-object v3, p0

    move v6, v9

    move-object v9, v0

    invoke-direct/range {v3 .. v9}, Lf/b/b/b/f1/h$b;-><init>(IIIIILf/b/b/b/f1/h$a;)V

    return-object p0
.end method

.method public static e([BI)I
    .registers 6

    array-length v0, p0

    const/4 v1, 0x7

    if-ge v0, v1, :cond_6

    const/4 p0, -0x1

    return p0

    :cond_6
    const/4 v0, 0x2

    aget-byte v0, p0, v0

    and-int/lit16 v0, v0, 0xff

    shl-int/lit8 v0, v0, 0x8

    const/4 v2, 0x3

    aget-byte v2, p0, v2

    and-int/lit16 v2, v2, 0xff

    or-int/2addr v0, v2

    const v2, 0xffff

    const/4 v3, 0x4

    if-ne v0, v2, :cond_2e

    aget-byte v0, p0, v3

    and-int/lit16 v0, v0, 0xff

    shl-int/lit8 v0, v0, 0x10

    const/4 v2, 0x5

    aget-byte v2, p0, v2

    and-int/lit16 v2, v2, 0xff

    shl-int/lit8 v2, v2, 0x8

    or-int/2addr v0, v2

    const/4 v2, 0x6

    aget-byte p0, p0, v2

    and-int/lit16 p0, p0, 0xff

    or-int/2addr v0, p0

    goto :goto_2f

    :cond_2e
    const/4 v1, 0x4

    :goto_2f
    const p0, 0xac41

    if-ne p1, p0, :cond_36

    add-int/lit8 v1, v1, 0x2

    :cond_36
    add-int/2addr v0, v1

    return v0
.end method

.method private static f(Lf/b/b/b/s1/x;I)I
    .registers 4

    const/4 v0, 0x0

    :goto_1
    invoke-virtual {p0, p1}, Lf/b/b/b/s1/x;->h(I)I

    move-result v1

    add-int/2addr v0, v1

    invoke-virtual {p0}, Lf/b/b/b/s1/x;->g()Z

    move-result v1

    if-nez v1, :cond_d

    return v0

    :cond_d
    add-int/lit8 v0, v0, 0x1

    shl-int/2addr v0, p1

    goto :goto_1
.end method