h.smali

.class final Lf/b/b/b/k1/e0/h;
.super Lf/b/b/b/k1/e0/i;
.source ""


# static fields
.field private static final o:[B


# instance fields
.field private n:Z


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

    const/16 v0, 0x8

    new-array v0, v0, [B

    fill-array-data v0, :array_a

    sput-object v0, Lf/b/b/b/k1/e0/h;->o:[B

    return-void

    :array_a
    .array-data 1
        0x4ft
        0x70t
        0x75t
        0x73t
        0x48t
        0x65t
        0x61t
        0x64t
    .end array-data
.end method

.method constructor <init>()V
    .registers 1

    invoke-direct {p0}, Lf/b/b/b/k1/e0/i;-><init>()V

    return-void
.end method

.method private l([B)J
    .registers 8

    const/4 v0, 0x0

    aget-byte v0, p1, v0

    and-int/lit16 v0, v0, 0xff

    and-int/lit8 v1, v0, 0x3

    const/4 v2, 0x2

    const/4 v3, 0x1

    if-eqz v1, :cond_14

    if-eq v1, v3, :cond_15

    if-eq v1, v2, :cond_15

    aget-byte p1, p1, v3

    and-int/lit8 v2, p1, 0x3f

    goto :goto_15

    :cond_14
    const/4 v2, 0x1

    :cond_15
    :goto_15
    const/4 p1, 0x3

    shr-int/2addr v0, p1

    and-int/lit8 v1, v0, 0x3

    const/16 v4, 0x10

    if-lt v0, v4, :cond_21

    const/16 p1, 0x9c4

    shl-int/2addr p1, v1

    goto :goto_34

    :cond_21
    const/16 v4, 0xc

    const/16 v5, 0x2710

    if-lt v0, v4, :cond_2c

    and-int/lit8 p1, v1, 0x1

    shl-int p1, v5, p1

    goto :goto_34

    :cond_2c
    if-ne v1, p1, :cond_32

    const p1, 0xea60

    goto :goto_34

    :cond_32
    shl-int p1, v5, v1

    :goto_34
    int-to-long v0, v2

    int-to-long v2, p1

    mul-long v0, v0, v2

    return-wide v0
.end method

.method private m(Ljava/util/List;I)V
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "[B>;I)V"
        }
    .end annotation

    int-to-long v0, p2

    const-wide/32 v2, 0x3b9aca00

    mul-long v0, v0, v2

    const-wide/32 v2, 0xbb80

    div-long/2addr v0, v2

    const/16 p2, 0x8

    invoke-static {p2}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object p2

    invoke-static {}, Ljava/nio/ByteOrder;->nativeOrder()Ljava/nio/ByteOrder;

    move-result-object v2

    invoke-virtual {p2, v2}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;

    move-result-object p2

    invoke-virtual {p2, v0, v1}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object p2

    invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public static n(Lf/b/b/b/s1/y;)Z
    .registers 5

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

    move-result v0

    sget-object v1, Lf/b/b/b/k1/e0/h;->o:[B

    array-length v2, v1

    const/4 v3, 0x0

    if-ge v0, v2, :cond_b

    return v3

    :cond_b
    array-length v0, v1

    new-array v0, v0, [B

    array-length v2, v1

    invoke-virtual {p0, v0, v3, v2}, Lf/b/b/b/s1/y;->h([BII)V

    invoke-static {v0, v1}, Ljava/util/Arrays;->equals([B[B)Z

    move-result p0

    return p0
.end method


# virtual methods
.method protected e(Lf/b/b/b/s1/y;)J
    .registers 4

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

    invoke-direct {p0, p1}, Lf/b/b/b/k1/e0/h;->l([B)J

    move-result-wide v0

    invoke-virtual {p0, v0, v1}, Lf/b/b/b/k1/e0/i;->b(J)J

    move-result-wide v0

    return-wide v0
.end method

.method protected h(Lf/b/b/b/s1/y;JLf/b/b/b/k1/e0/i$b;)Z
    .registers 16

    iget-boolean p2, p0, Lf/b/b/b/k1/e0/h;->n:Z

    const/4 p3, 0x1

    if-nez p2, :cond_4a

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

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

    move-result p1

    invoke-static {p2, p1}, Ljava/util/Arrays;->copyOf([BI)[B

    move-result-object p1

    const/16 p2, 0x9

    aget-byte p2, p1, p2

    and-int/lit16 v5, p2, 0xff

    const/16 p2, 0xb

    aget-byte p2, p1, p2

    and-int/lit16 p2, p2, 0xff

    shl-int/lit8 p2, p2, 0x8

    const/16 v0, 0xa

    aget-byte v0, p1, v0

    and-int/lit16 v0, v0, 0xff

    or-int/2addr p2, v0

    new-instance v7, Ljava/util/ArrayList;

    const/4 v0, 0x3

    invoke-direct {v7, v0}, Ljava/util/ArrayList;-><init>(I)V

    invoke-interface {v7, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-direct {p0, v7, p2}, Lf/b/b/b/k1/e0/h;->m(Ljava/util/List;I)V

    const/16 p1, 0xf00

    invoke-direct {p0, v7, p1}, Lf/b/b/b/k1/e0/h;->m(Ljava/util/List;I)V

    const/4 v0, 0x0

    const/4 v2, 0x0

    const/4 v3, -0x1

    const/4 v4, -0x1

    const v6, 0xbb80

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    const-string v1, "audio/opus"

    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 p1

    iput-object p1, p4, Lf/b/b/b/k1/e0/i$b;->a:Lf/b/b/b/f0;

    iput-boolean p3, p0, Lf/b/b/b/k1/e0/h;->n:Z

    return p3

    :cond_4a
    invoke-virtual {p1}, Lf/b/b/b/s1/y;->k()I

    move-result p2

    const p4, 0x4f707573

    const/4 v0, 0x0

    if-ne p2, p4, :cond_55

    goto :goto_56

    :cond_55
    const/4 p3, 0x0

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

    return p3
.end method

.method protected j(Z)V
    .registers 2

    invoke-super {p0, p1}, Lf/b/b/b/k1/e0/i;->j(Z)V

    if-eqz p1, :cond_8

    const/4 p1, 0x0

    iput-boolean p1, p0, Lf/b/b/b/k1/e0/h;->n:Z

    :cond_8
    return-void
.end method