.class public final Lz5/rw1;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/uw1;


# instance fields
.field public final a:Lz5/j7;

.field public final b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:Lz5/ou1;

.field public e:I

.field public f:I

.field public g:I

.field public h:J

.field public i:Lz5/x2;

.field public j:I

.field public k:J


# direct methods
.method public constructor <init>(Ljava/lang/String;)V
    .registers 6

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

    new-instance v0, Lz5/j7;

    const/16 v1, 0x12

    new-array v1, v1, [B

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-direct {v0, v1, v2, v3}, Lz5/j7;-><init>([BILp/b;)V

    iput-object v0, p0, Lz5/rw1;->a:Lz5/j7;

    iput v2, p0, Lz5/rw1;->e:I

    const-wide v0, -0x7fffffffffffffffL    # -4.9E-324

    iput-wide v0, p0, Lz5/rw1;->k:J

    iput-object p1, p0, Lz5/rw1;->b:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public final a(Lz5/j7;)V
    .registers 23

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    iget-object v2, v0, Lz5/rw1;->d:Lz5/ou1;

    invoke-static {v2}, Lcom/google/android/gms/internal/ads/d;->p(Ljava/lang/Object;)Ljava/lang/Object;

    :cond_9
    :goto_9
    invoke-virtual/range {p1 .. p1}, Lz5/j7;->l()I

    move-result v2

    if-lez v2, :cond_2d9

    iget v2, v0, Lz5/rw1;->e:I

    const/16 v4, 0x8

    const/4 v5, 0x2

    const/4 v6, 0x0

    const/4 v8, 0x1

    if-eqz v2, :cond_286

    if-eq v2, v8, :cond_52

    invoke-virtual/range {p1 .. p1}, Lz5/j7;->l()I

    move-result v2

    iget v3, v0, Lz5/rw1;->j:I

    iget v4, v0, Lz5/rw1;->f:I

    sub-int/2addr v3, v4

    invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I

    move-result v2

    iget-object v3, v0, Lz5/rw1;->d:Lz5/ou1;

    .line 1
    invoke-interface {v3, v1, v2, v6}, Lz5/ou1;->e(Lz5/j7;II)V

    .line 2
    iget v3, v0, Lz5/rw1;->f:I

    add-int/2addr v3, v2

    iput v3, v0, Lz5/rw1;->f:I

    iget v11, v0, Lz5/rw1;->j:I

    if-ne v3, v11, :cond_9

    iget-wide v8, v0, Lz5/rw1;->k:J

    const-wide v2, -0x7fffffffffffffffL    # -4.9E-324

    cmp-long v2, v8, v2

    if-eqz v2, :cond_4f

    iget-object v7, v0, Lz5/rw1;->d:Lz5/ou1;

    const/4 v10, 0x1

    const/4 v12, 0x0

    const/4 v13, 0x0

    invoke-interface/range {v7 .. v13}, Lz5/ou1;->d(JIIILz5/nu1;)V

    iget-wide v2, v0, Lz5/rw1;->k:J

    iget-wide v4, v0, Lz5/rw1;->h:J

    add-long/2addr v2, v4

    iput-wide v2, v0, Lz5/rw1;->k:J

    :cond_4f
    iput v6, v0, Lz5/rw1;->e:I

    goto :goto_9

    :cond_52
    iget-object v2, v0, Lz5/rw1;->a:Lz5/j7;

    .line 3
    iget-object v2, v2, Lz5/j7;->b:[B

    .line 4
    invoke-virtual/range {p1 .. p1}, Lz5/j7;->l()I

    move-result v9

    iget v10, v0, Lz5/rw1;->f:I

    const/16 v11, 0x12

    rsub-int/lit8 v10, v10, 0x12

    invoke-static {v9, v10}, Ljava/lang/Math;->min(II)I

    move-result v9

    iget v10, v0, Lz5/rw1;->f:I

    invoke-virtual {v1, v2, v10, v9}, Lz5/j7;->z([BII)V

    iget v2, v0, Lz5/rw1;->f:I

    add-int/2addr v2, v9

    iput v2, v0, Lz5/rw1;->f:I

    if-ne v2, v11, :cond_9

    iget-object v2, v0, Lz5/rw1;->a:Lz5/j7;

    .line 5
    iget-object v2, v2, Lz5/j7;->b:[B

    .line 6
    iget-object v9, v0, Lz5/rw1;->i:Lz5/x2;

    const/16 v10, 0xe

    const/16 v12, 0x1f

    const/4 v13, -0x2

    const/4 v14, -0x1

    if-nez v9, :cond_1a7

    iget-object v9, v0, Lz5/rw1;->c:Ljava/lang/String;

    iget-object v15, v0, Lz5/rw1;->b:Ljava/lang/String;

    .line 7
    aget-byte v7, v2, v6

    const/16 v3, 0x7f

    if-ne v7, v3, :cond_92

    new-instance v3, Lz5/i7;

    array-length v7, v2

    invoke-direct {v3, v2, v7, v6}, Lz5/i7;-><init>([BII)V

    :goto_8e
    const/16 v4, 0x3c

    goto/16 :goto_14b

    :cond_92
    array-length v3, v2

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

    move-result-object v3

    aget-byte v7, v3, v6

    if-eq v7, v13, :cond_9d

    if-ne v7, v14, :cond_af

    :cond_9d
    move v7, v6

    :goto_9e
    array-length v13, v3

    add-int/2addr v13, v14

    if-ge v7, v13, :cond_af

    aget-byte v13, v3, v7

    add-int/lit8 v16, v7, 0x1

    aget-byte v17, v3, v16

    aput-byte v17, v3, v7

    aput-byte v13, v3, v16

    add-int/lit8 v7, v7, 0x2

    goto :goto_9e

    :cond_af
    new-instance v7, Lz5/i7;

    array-length v13, v3

    invoke-direct {v7, v3, v13, v6}, Lz5/i7;-><init>([BII)V

    aget-byte v11, v3, v6

    if-ne v11, v12, :cond_13e

    new-instance v11, Lz5/i7;

    invoke-direct {v11, v3, v13, v6}, Lz5/i7;-><init>([BII)V

    :goto_be
    invoke-virtual {v11}, Lz5/i7;->e()I

    move-result v13

    const/16 v12, 0x10

    if-lt v13, v12, :cond_13e

    invoke-virtual {v11, v5}, Lz5/i7;->s(I)V

    invoke-virtual {v11, v10}, Lz5/i7;->x(I)I

    move-result v12

    and-int/lit16 v12, v12, 0x3fff

    .line 8
    iget v13, v7, Lz5/i7;->d:I

    rsub-int/lit8 v13, v13, 0x8

    invoke-static {v13, v10}, Ljava/lang/Math;->min(II)I

    move-result v13

    iget v5, v7, Lz5/i7;->d:I

    rsub-int/lit8 v18, v5, 0x8

    sub-int v18, v18, v13

    iget-object v6, v7, Lz5/i7;->b:[B

    iget v4, v7, Lz5/i7;->c:I

    aget-byte v19, v6, v4

    const v20, 0xff00

    shr-int v5, v20, v5

    shl-int v20, v8, v18

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

    or-int v5, v5, v20

    and-int v5, v5, v19

    int-to-byte v5, v5

    aput-byte v5, v6, v4

    rsub-int/lit8 v13, v13, 0xe

    ushr-int v19, v12, v13

    shl-int v18, v19, v18

    or-int v5, v5, v18

    int-to-byte v5, v5

    aput-byte v5, v6, v4

    add-int/2addr v4, v8

    const/16 v5, 0x8

    :goto_101
    if-le v13, v5, :cond_114

    add-int/lit8 v5, v4, 0x1

    add-int/lit8 v13, v13, -0x8

    iget-object v6, v7, Lz5/i7;->b:[B

    ushr-int v10, v12, v13

    int-to-byte v10, v10

    aput-byte v10, v6, v4

    move v4, v5

    const/16 v5, 0x8

    const/16 v10, 0xe

    goto :goto_101

    :cond_114
    rsub-int/lit8 v5, v13, 0x8

    iget-object v6, v7, Lz5/i7;->b:[B

    aget-byte v10, v6, v4

    shl-int v19, v8, v5

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

    and-int v10, v10, v19

    int-to-byte v10, v10

    aput-byte v10, v6, v4

    shl-int v13, v8, v13

    add-int/2addr v13, v14

    and-int/2addr v12, v13

    shl-int v5, v12, v5

    or-int/2addr v5, v10

    int-to-byte v5, v5

    aput-byte v5, v6, v4

    const/16 v4, 0xe

    invoke-virtual {v7, v4}, Lz5/i7;->s(I)V

    invoke-virtual {v7}, Lz5/i7;->D()V

    const/16 v4, 0x8

    const/4 v5, 0x2

    const/4 v6, 0x0

    const/16 v10, 0xe

    const/16 v12, 0x1f

    goto :goto_be

    .line 9
    :cond_13e
    array-length v4, v3

    .line 10
    iput-object v3, v7, Lz5/i7;->b:[B

    const/4 v3, 0x0

    iput v3, v7, Lz5/i7;->c:I

    iput v3, v7, Lz5/i7;->d:I

    iput v4, v7, Lz5/i7;->e:I

    move-object v3, v7

    goto/16 :goto_8e

    .line 11
    :goto_14b
    invoke-virtual {v3, v4}, Lz5/i7;->s(I)V

    const/4 v4, 0x6

    invoke-virtual {v3, v4}, Lz5/i7;->x(I)I

    move-result v5

    sget-object v4, Lz5/xt1;->a:[I

    aget v4, v4, v5

    const/4 v5, 0x4

    invoke-virtual {v3, v5}, Lz5/i7;->x(I)I

    move-result v6

    sget-object v5, Lz5/xt1;->b:[I

    aget v5, v5, v6

    const/4 v6, 0x5

    invoke-virtual {v3, v6}, Lz5/i7;->x(I)I

    move-result v7

    const/16 v6, 0x1d

    if-lt v7, v6, :cond_16c

    move v6, v14

    const/4 v7, 0x2

    goto :goto_174

    :cond_16c
    sget-object v6, Lz5/xt1;->c:[I

    aget v6, v6, v7

    mul-int/lit16 v6, v6, 0x3e8

    const/4 v7, 0x2

    div-int/2addr v6, v7

    :goto_174
    const/16 v10, 0xa

    invoke-virtual {v3, v10}, Lz5/i7;->s(I)V

    invoke-virtual {v3, v7}, Lz5/i7;->x(I)I

    move-result v3

    if-lez v3, :cond_181

    move v3, v8

    goto :goto_182

    :cond_181
    const/4 v3, 0x0

    :goto_182
    new-instance v7, Lz5/w2;

    invoke-direct {v7}, Lz5/w2;-><init>()V

    .line 12
    iput-object v9, v7, Lz5/w2;->a:Ljava/lang/String;

    const-string v9, "audio/vnd.dts"

    .line 13
    iput-object v9, v7, Lz5/w2;->j:Ljava/lang/String;

    .line 14
    iput v6, v7, Lz5/w2;->e:I

    add-int/2addr v4, v3

    .line 15
    iput v4, v7, Lz5/w2;->w:I

    .line 16
    iput v5, v7, Lz5/w2;->x:I

    const/4 v3, 0x0

    .line 17
    iput-object v3, v7, Lz5/w2;->m:Lcom/google/android/gms/internal/ads/f9;

    .line 18
    iput-object v15, v7, Lz5/w2;->c:Ljava/lang/String;

    .line 19
    new-instance v3, Lz5/x2;

    .line 20
    invoke-direct {v3, v7}, Lz5/x2;-><init>(Lz5/w2;)V

    .line 21
    iput-object v3, v0, Lz5/rw1;->i:Lz5/x2;

    iget-object v4, v0, Lz5/rw1;->d:Lz5/ou1;

    invoke-interface {v4, v3}, Lz5/ou1;->a(Lz5/x2;)V

    const/4 v3, 0x0

    goto :goto_1a8

    :cond_1a7
    move v3, v6

    :goto_1a8
    aget-byte v4, v2, v3

    const/4 v3, 0x7

    const/4 v5, -0x2

    if-eq v4, v5, :cond_1fd

    if-eq v4, v14, :cond_1e2

    const/16 v5, 0x1f

    if-eq v4, v5, :cond_1ca

    const/4 v4, 0x5

    aget-byte v5, v2, v4

    const/4 v4, 0x3

    and-int/2addr v4, v5

    shl-int/lit8 v4, v4, 0xc

    const/4 v5, 0x6

    aget-byte v6, v2, v5

    and-int/lit16 v6, v6, 0xff

    const/4 v7, 0x4

    shl-int/2addr v6, v7

    or-int/2addr v4, v6

    aget-byte v6, v2, v3

    and-int/lit16 v6, v6, 0xf0

    shr-int/2addr v6, v7

    or-int/2addr v4, v6

    goto :goto_211

    :cond_1ca
    const/4 v5, 0x6

    const/4 v7, 0x4

    aget-byte v4, v2, v5

    const/4 v5, 0x3

    and-int/2addr v4, v5

    shl-int/lit8 v4, v4, 0xc

    aget-byte v5, v2, v3

    and-int/lit16 v5, v5, 0xff

    shl-int/2addr v5, v7

    or-int/2addr v4, v5

    const/16 v5, 0x8

    aget-byte v5, v2, v5

    const/16 v6, 0x3c

    and-int/2addr v5, v6

    const/4 v6, 0x2

    shr-int/2addr v5, v6

    goto :goto_1f9

    :cond_1e2
    aget-byte v4, v2, v3

    const/4 v5, 0x3

    and-int/2addr v4, v5

    shl-int/lit8 v4, v4, 0xc

    const/4 v5, 0x6

    aget-byte v6, v2, v5

    and-int/lit16 v5, v6, 0xff

    const/4 v6, 0x4

    shl-int/2addr v5, v6

    or-int/2addr v4, v5

    const/16 v5, 0x9

    aget-byte v5, v2, v5

    const/16 v7, 0x3c

    and-int/2addr v5, v7

    const/4 v7, 0x2

    shr-int/2addr v5, v7

    :goto_1f9
    or-int/2addr v4, v5

    add-int/2addr v4, v8

    move v5, v8

    goto :goto_213

    :cond_1fd
    const/4 v6, 0x4

    aget-byte v4, v2, v6

    const/4 v5, 0x3

    and-int/2addr v4, v5

    shl-int/lit8 v4, v4, 0xc

    aget-byte v5, v2, v3

    and-int/lit16 v5, v5, 0xff

    shl-int/2addr v5, v6

    or-int/2addr v4, v5

    const/4 v5, 0x6

    aget-byte v7, v2, v5

    and-int/lit16 v5, v7, 0xf0

    shr-int/2addr v5, v6

    or-int/2addr v4, v5

    :goto_211
    add-int/2addr v4, v8

    const/4 v5, 0x0

    :goto_213
    if-eqz v5, :cond_21a

    mul-int/lit8 v4, v4, 0x10

    const/16 v5, 0xe

    div-int/2addr v4, v5

    :cond_21a
    iput v4, v0, Lz5/rw1;->j:I

    const/4 v4, 0x0

    aget-byte v5, v2, v4

    const/4 v4, -0x2

    if-eq v5, v4, :cond_252

    if-eq v5, v14, :cond_243

    const/16 v4, 0x1f

    if-eq v5, v4, :cond_235

    const/4 v4, 0x4

    aget-byte v3, v2, v4

    and-int/2addr v3, v8

    const/4 v5, 0x6

    shl-int/2addr v3, v5

    const/4 v6, 0x5

    aget-byte v2, v2, v6

    and-int/lit16 v2, v2, 0xfc

    const/4 v7, 0x2

    goto :goto_25e

    :cond_235
    const/4 v4, 0x4

    const/4 v5, 0x6

    const/4 v6, 0x5

    const/4 v7, 0x2

    aget-byte v6, v2, v6

    and-int/2addr v3, v6

    shl-int/2addr v3, v4

    aget-byte v2, v2, v5

    const/16 v5, 0x3c

    and-int/2addr v2, v5

    goto :goto_25e

    :cond_243
    const/4 v4, 0x4

    const/16 v5, 0x3c

    const/4 v7, 0x2

    aget-byte v6, v2, v4

    and-int/2addr v6, v3

    shl-int/lit8 v4, v6, 0x4

    aget-byte v2, v2, v3

    and-int/2addr v2, v5

    shr-int/2addr v2, v7

    or-int/2addr v2, v4

    goto :goto_260

    :cond_252
    const/4 v3, 0x5

    const/4 v4, 0x4

    const/4 v7, 0x2

    aget-byte v3, v2, v3

    and-int/2addr v3, v8

    const/4 v5, 0x6

    shl-int/2addr v3, v5

    aget-byte v2, v2, v4

    and-int/lit16 v2, v2, 0xfc

    :goto_25e
    shr-int/2addr v2, v7

    or-int/2addr v2, v3

    :goto_260
    add-int/2addr v2, v8

    mul-int/lit8 v2, v2, 0x20

    int-to-long v2, v2

    const-wide/32 v4, 0xf4240

    mul-long/2addr v2, v4

    iget-object v4, v0, Lz5/rw1;->i:Lz5/x2;

    iget v4, v4, Lz5/x2;->y:I

    int-to-long v4, v4

    div-long/2addr v2, v4

    long-to-int v2, v2

    int-to-long v2, v2

    iput-wide v2, v0, Lz5/rw1;->h:J

    iget-object v2, v0, Lz5/rw1;->a:Lz5/j7;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lz5/j7;->q(I)V

    iget-object v2, v0, Lz5/rw1;->d:Lz5/ou1;

    iget-object v4, v0, Lz5/rw1;->a:Lz5/j7;

    const/16 v5, 0x12

    .line 22
    invoke-interface {v2, v4, v5, v3}, Lz5/ou1;->e(Lz5/j7;II)V

    const/4 v2, 0x2

    .line 23
    iput v2, v0, Lz5/rw1;->e:I

    goto/16 :goto_9

    :cond_286
    invoke-virtual/range {p1 .. p1}, Lz5/j7;->l()I

    move-result v2

    if-lez v2, :cond_9

    iget v2, v0, Lz5/rw1;->g:I

    const/16 v3, 0x8

    shl-int/2addr v2, v3

    iput v2, v0, Lz5/rw1;->g:I

    invoke-virtual/range {p1 .. p1}, Lz5/j7;->A()I

    move-result v4

    or-int/2addr v2, v4

    iput v2, v0, Lz5/rw1;->g:I

    const v4, 0x7ffe8001

    if-eq v2, v4, :cond_2ae

    const v4, -0x180fe80

    if-eq v2, v4, :cond_2ae

    const v4, 0x1fffe800

    if-eq v2, v4, :cond_2ae

    const v4, -0xe0ff18

    if-ne v2, v4, :cond_286

    :cond_2ae
    iget-object v3, v0, Lz5/rw1;->a:Lz5/j7;

    .line 24
    iget-object v3, v3, Lz5/j7;->b:[B

    shr-int/lit8 v4, v2, 0x18

    and-int/lit16 v4, v4, 0xff

    int-to-byte v4, v4

    const/4 v5, 0x0

    .line 25
    aput-byte v4, v3, v5

    shr-int/lit8 v4, v2, 0x10

    and-int/lit16 v4, v4, 0xff

    int-to-byte v4, v4

    aput-byte v4, v3, v8

    shr-int/lit8 v4, v2, 0x8

    and-int/lit16 v4, v4, 0xff

    int-to-byte v4, v4

    const/4 v5, 0x2

    aput-byte v4, v3, v5

    and-int/lit16 v2, v2, 0xff

    int-to-byte v2, v2

    const/4 v4, 0x3

    aput-byte v2, v3, v4

    const/4 v2, 0x4

    iput v2, v0, Lz5/rw1;->f:I

    const/4 v2, 0x0

    iput v2, v0, Lz5/rw1;->g:I

    iput v8, v0, Lz5/rw1;->e:I

    goto/16 :goto_9

    :cond_2d9
    return-void
.end method

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

    const-wide v0, -0x7fffffffffffffffL    # -4.9E-324

    cmp-long p3, p1, v0

    if-eqz p3, :cond_b

    iput-wide p1, p0, Lz5/rw1;->k:J

    :cond_b
    return-void
.end method

.method public final c(Lz5/bu1;Lz5/rx1;)V
    .registers 4

    invoke-virtual {p2}, Lz5/rx1;->a()V

    invoke-virtual {p2}, Lz5/rx1;->c()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lz5/rw1;->c:Ljava/lang/String;

    invoke-virtual {p2}, Lz5/rx1;->b()I

    move-result p2

    const/4 v0, 0x1

    invoke-interface {p1, p2, v0}, Lz5/bu1;->c(II)Lz5/ou1;

    move-result-object p1

    iput-object p1, p0, Lz5/rw1;->d:Lz5/ou1;

    return-void
.end method

.method public final zza()V
    .registers 3

    const/4 v0, 0x0

    iput v0, p0, Lz5/rw1;->e:I

    iput v0, p0, Lz5/rw1;->f:I

    iput v0, p0, Lz5/rw1;->g:I

    const-wide v0, -0x7fffffffffffffffL    # -4.9E-324

    iput-wide v0, p0, Lz5/rw1;->k:J

    return-void
.end method

.method public final zze()V
    .registers 1

    return-void
.end method
