.class public final Lcom/google/android/gms/internal/ads/p9;
.super Lcom/google/android/gms/internal/ads/o9;
.source ""


# instance fields
.field public n:Lz5/ox1;

.field public o:I

.field public p:Z

.field public q:Lz5/iu1;

.field public r:Lz5/ll0;


# direct methods
.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Lcom/google/android/gms/internal/ads/o9;-><init>()V

    return-void
.end method


# virtual methods
.method public final a(Z)V
    .registers 2

    invoke-super {p0, p1}, Lcom/google/android/gms/internal/ads/o9;->a(Z)V

    if-eqz p1, :cond_c

    const/4 p1, 0x0

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/p9;->n:Lz5/ox1;

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/p9;->q:Lz5/iu1;

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/p9;->r:Lz5/ll0;

    :cond_c
    const/4 p1, 0x0

    iput p1, p0, Lcom/google/android/gms/internal/ads/p9;->o:I

    iput-boolean p1, p0, Lcom/google/android/gms/internal/ads/p9;->p:Z

    return-void
.end method

.method public final b(Lz5/j7;)J
    .registers 14

    .line 1
    iget-object v0, p1, Lz5/j7;->b:[B

    const/4 v1, 0x0

    .line 2
    aget-byte v2, v0, v1

    const/4 v3, 0x1

    and-int/2addr v2, v3

    if-ne v2, v3, :cond_c

    const-wide/16 v0, -0x1

    return-wide v0

    :cond_c
    aget-byte v0, v0, v1

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/p9;->n:Lz5/ox1;

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

    iget v4, v2, Lz5/ox1;->u:I

    iget-object v5, v2, Lz5/ox1;->v:Ljava/lang/Object;

    check-cast v5, [Lz5/xd;

    shr-int/2addr v0, v3

    const/16 v6, 0xff

    const/16 v7, 0x8

    rsub-int/lit8 v4, v4, 0x8

    ushr-int v4, v6, v4

    and-int/2addr v0, v4

    aget-object v0, v5, v0

    iget-boolean v0, v0, Lz5/xd;->s:Z

    if-nez v0, :cond_30

    iget-object v0, v2, Lz5/ox1;->r:Ljava/lang/Object;

    check-cast v0, Lz5/iu1;

    iget v0, v0, Lz5/iu1;->f:I

    goto :goto_36

    :cond_30
    iget-object v0, v2, Lz5/ox1;->r:Ljava/lang/Object;

    check-cast v0, Lz5/iu1;

    iget v0, v0, Lz5/iu1;->g:I

    :goto_36
    iget-boolean v2, p0, Lcom/google/android/gms/internal/ads/p9;->p:Z

    if-eqz v2, :cond_3f

    iget v1, p0, Lcom/google/android/gms/internal/ads/p9;->o:I

    add-int/2addr v1, v0

    div-int/lit8 v1, v1, 0x4

    :cond_3f
    int-to-long v1, v1

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

    array-length v4, v4

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

    move-result v5

    add-int/lit8 v5, v5, 0x4

    if-ge v4, v5, :cond_5c

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

    .line 6
    invoke-virtual {p1}, Lz5/j7;->m()I

    move-result v5

    add-int/lit8 v5, v5, 0x4

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

    move-result-object v4

    array-length v5, v4

    invoke-virtual {p1, v4, v5}, Lz5/j7;->j([BI)V

    goto :goto_65

    :cond_5c
    invoke-virtual {p1}, Lz5/j7;->m()I

    move-result v4

    add-int/lit8 v4, v4, 0x4

    invoke-virtual {p1, v4}, Lz5/j7;->n(I)V

    .line 7
    :goto_65
    iget-object v4, p1, Lz5/j7;->b:[B

    .line 8
    invoke-virtual {p1}, Lz5/j7;->m()I

    move-result v5

    add-int/lit8 v5, v5, -0x4

    const-wide/16 v8, 0xff

    and-long v10, v1, v8

    long-to-int v6, v10

    int-to-byte v6, v6

    aput-byte v6, v4, v5

    invoke-virtual {p1}, Lz5/j7;->m()I

    move-result v5

    add-int/lit8 v5, v5, -0x3

    ushr-long v6, v1, v7

    and-long/2addr v6, v8

    long-to-int v6, v6

    int-to-byte v6, v6

    aput-byte v6, v4, v5

    invoke-virtual {p1}, Lz5/j7;->m()I

    move-result v5

    add-int/lit8 v5, v5, -0x2

    const/16 v6, 0x10

    ushr-long v6, v1, v6

    and-long/2addr v6, v8

    long-to-int v6, v6

    int-to-byte v6, v6

    aput-byte v6, v4, v5

    invoke-virtual {p1}, Lz5/j7;->m()I

    move-result p1

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

    const/16 v5, 0x18

    ushr-long v5, v1, v5

    and-long/2addr v5, v8

    long-to-int v5, v5

    int-to-byte v5, v5

    aput-byte v5, v4, p1

    iput-boolean v3, p0, Lcom/google/android/gms/internal/ads/p9;->p:Z

    iput v0, p0, Lcom/google/android/gms/internal/ads/p9;->o:I

    return-wide v1
.end method

.method public final c(Lz5/j7;JLz5/ll0;)Z
    .registers 29
    .annotation runtime Lorg/checkerframework/checker/nullness/qual/EnsuresNonNullIf;
        expression = {
            "#3.format"
        }
        result = false
    .end annotation

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p4

    iget-object v3, v0, Lcom/google/android/gms/internal/ads/p9;->n:Lz5/ox1;

    const/4 v4, 0x0

    if-eqz v3, :cond_13

    iget-object v1, v2, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast v1, Lz5/x2;

    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    return v4

    :cond_13
    iget-object v6, v0, Lcom/google/android/gms/internal/ads/p9;->q:Lz5/iu1;

    const/4 v5, 0x4

    const/4 v11, 0x1

    if-nez v6, :cond_6f

    invoke-static {v11, v1, v4}, Lcom/google/android/gms/internal/ads/f;->l(ILz5/j7;Z)Z

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

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

    move-result v13

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

    move-result v14

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

    move-result v4

    if-gtz v4, :cond_2f

    const/4 v15, -0x1

    goto :goto_30

    :cond_2f
    move v15, v4

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

    move-result v4

    if-gtz v4, :cond_39

    const/16 v16, -0x1

    goto :goto_3b

    :cond_39
    move/from16 v16, v4

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

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

    move-result v3

    and-int/lit8 v4, v3, 0xf

    int-to-double v8, v4

    const-wide/high16 v11, 0x4000000000000000L    # 2.0

    invoke-static {v11, v12, v8, v9}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v8

    double-to-int v4, v8

    and-int/lit16 v3, v3, 0xf0

    shr-int/2addr v3, v5

    int-to-double v5, v3

    invoke-static {v11, v12, v5, v6}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v5

    double-to-int v3, v5

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

    .line 1
    iget-object v5, v1, Lz5/j7;->b:[B

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

    move-result v1

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

    move-result-object v19

    new-instance v1, Lz5/iu1;

    move-object v12, v1

    move/from16 v17, v4

    move/from16 v18, v3

    invoke-direct/range {v12 .. v19}, Lz5/iu1;-><init>(IIIIII[B)V

    iput-object v1, v0, Lcom/google/android/gms/internal/ads/p9;->q:Lz5/iu1;

    goto :goto_7a

    :cond_6f
    iget-object v8, v0, Lcom/google/android/gms/internal/ads/p9;->r:Lz5/ll0;

    if-nez v8, :cond_7d

    const/4 v9, 0x1

    invoke-static {v1, v9, v9}, Lcom/google/android/gms/internal/ads/f;->h(Lz5/j7;ZZ)Lz5/ll0;

    move-result-object v1

    iput-object v1, v0, Lcom/google/android/gms/internal/ads/p9;->r:Lz5/ll0;

    :goto_7a
    const/4 v7, 0x0

    goto/16 :goto_3e3

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

    move-result v9

    new-array v9, v9, [B

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

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

    move-result v11

    invoke-static {v10, v4, v9, v4, v11}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget v10, v6, Lz5/iu1;->a:I

    const/4 v11, 0x5

    invoke-static {v11, v1, v4}, Lcom/google/android/gms/internal/ads/f;->l(ILz5/j7;Z)Z

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

    move-result v12

    const/4 v13, 0x1

    add-int/2addr v12, v13

    new-instance v13, Lz5/i7;

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

    .line 6
    invoke-direct {v13, v14}, Lz5/i7;-><init>([B)V

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

    move-result v1

    const/16 v14, 0x8

    mul-int/2addr v1, v14

    invoke-virtual {v13, v1}, Lz5/i7;->k(I)V

    move v1, v4

    :goto_aa
    const/16 v15, 0x18

    const/16 v3, 0x10

    if-ge v1, v12, :cond_1c9

    invoke-virtual {v13, v15}, Lz5/i7;->f(I)I

    move-result v14

    const v7, 0x564342

    if-ne v14, v7, :cond_1ac

    invoke-virtual {v13, v3}, Lz5/i7;->f(I)I

    move-result v3

    invoke-virtual {v13, v15}, Lz5/i7;->f(I)I

    move-result v7

    new-array v14, v7, [J

    invoke-virtual {v13}, Lz5/i7;->d()Z

    move-result v15

    const-wide/16 v18, 0x0

    if-nez v15, :cond_108

    invoke-virtual {v13}, Lz5/i7;->d()Z

    move-result v15

    const/4 v4, 0x0

    :goto_d0
    if-ge v4, v7, :cond_105

    if-eqz v15, :cond_f0

    invoke-virtual {v13}, Lz5/i7;->d()Z

    move-result v20

    if-eqz v20, :cond_e8

    invoke-virtual {v13, v11}, Lz5/i7;->f(I)I

    move-result v20

    const/16 v21, 0x1

    add-int/lit8 v5, v20, 0x1

    move/from16 v22, v12

    int-to-long v11, v5

    aput-wide v11, v14, v4

    goto :goto_ee

    :cond_e8
    move/from16 v22, v12

    const/16 v21, 0x1

    aput-wide v18, v14, v4

    :goto_ee
    const/4 v5, 0x5

    goto :goto_fe

    :cond_f0
    move v5, v11

    move/from16 v22, v12

    const/16 v21, 0x1

    invoke-virtual {v13, v5}, Lz5/i7;->f(I)I

    move-result v11

    add-int/lit8 v11, v11, 0x1

    int-to-long v11, v11

    aput-wide v11, v14, v4

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

    move v11, v5

    move/from16 v12, v22

    const/4 v5, 0x4

    goto :goto_d0

    :cond_105
    move/from16 v22, v12

    goto :goto_140

    :cond_108
    move v5, v11

    move/from16 v22, v12

    const/16 v21, 0x1

    invoke-virtual {v13, v5}, Lz5/i7;->f(I)I

    move-result v4

    add-int/lit8 v4, v4, 0x1

    const/4 v5, 0x0

    :goto_114
    if-ge v5, v7, :cond_140

    sub-int v11, v7, v5

    invoke-static {v11}, Lcom/google/android/gms/internal/ads/f;->a(I)I

    move-result v11

    invoke-virtual {v13, v11}, Lz5/i7;->f(I)I

    move-result v11

    const/4 v12, 0x0

    :goto_121
    if-ge v12, v11, :cond_135

    if-ge v5, v7, :cond_135

    move-object/from16 v21, v8

    move-object/from16 v23, v9

    int-to-long v8, v4

    aput-wide v8, v14, v5

    add-int/lit8 v5, v5, 0x1

    add-int/lit8 v12, v12, 0x1

    move-object/from16 v8, v21

    move-object/from16 v9, v23

    goto :goto_121

    :cond_135
    move-object/from16 v21, v8

    move-object/from16 v23, v9

    add-int/lit8 v4, v4, 0x1

    move-object/from16 v8, v21

    move-object/from16 v9, v23

    goto :goto_114

    :cond_140
    :goto_140
    move-object/from16 v21, v8

    move-object/from16 v23, v9

    const/4 v4, 0x4

    invoke-virtual {v13, v4}, Lz5/i7;->f(I)I

    move-result v5

    const/4 v8, 0x2

    if-gt v5, v8, :cond_193

    const/4 v9, 0x1

    if-eq v5, v9, :cond_152

    if-ne v5, v8, :cond_184

    const/4 v5, 0x2

    :cond_152
    const/16 v8, 0x20

    invoke-virtual {v13, v8}, Lz5/i7;->k(I)V

    invoke-virtual {v13, v8}, Lz5/i7;->k(I)V

    invoke-virtual {v13, v4}, Lz5/i7;->f(I)I

    move-result v8

    add-int/2addr v8, v9

    invoke-virtual {v13, v9}, Lz5/i7;->k(I)V

    if-ne v5, v9, :cond_179

    if-eqz v3, :cond_17d

    int-to-long v4, v7

    long-to-double v4, v4

    const-wide/high16 v11, 0x3ff0000000000000L    # 1.0

    int-to-long v14, v3

    long-to-double v14, v14

    div-double/2addr v11, v14

    invoke-static {v4, v5, v11, v12}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Math;->floor(D)D

    move-result-wide v3

    double-to-long v3, v3

    move-wide/from16 v18, v3

    goto :goto_17d

    :cond_179
    int-to-long v4, v7

    int-to-long v11, v3

    mul-long v18, v4, v11

    :cond_17d
    :goto_17d
    int-to-long v3, v8

    mul-long v3, v3, v18

    long-to-int v3, v3

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

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

    move-object/from16 v8, v21

    move/from16 v12, v22

    move-object/from16 v9, v23

    const/4 v4, 0x0

    const/4 v5, 0x4

    const/4 v11, 0x5

    const/16 v14, 0x8

    goto/16 :goto_aa

    :cond_193
    new-instance v1, Ljava/lang/StringBuilder;

    const/16 v2, 0x35

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

    const-string v2, "lookup type greater than 2 not decodable: "

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

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

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

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object v1

    throw v1

    :cond_1ac
    const/4 v2, 0x0

    invoke-virtual {v13}, Lz5/i7;->l()I

    move-result v1

    new-instance v3, Ljava/lang/StringBuilder;

    const/16 v4, 0x42

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

    const-string v4, "expected code book to start with [0x56, 0x43, 0x42] at "

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

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

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

    move-result-object v1

    invoke-static {v1, v2}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object v1

    throw v1

    :cond_1c9
    move-object/from16 v21, v8

    move-object/from16 v23, v9

    const/4 v1, 0x6

    invoke-virtual {v13, v1}, Lz5/i7;->f(I)I

    move-result v4

    const/4 v5, 0x1

    add-int/2addr v4, v5

    const/4 v5, 0x0

    :goto_1d5
    if-ge v5, v4, :cond_1e8

    invoke-virtual {v13, v3}, Lz5/i7;->f(I)I

    move-result v7

    if-nez v7, :cond_1e0

    add-int/lit8 v5, v5, 0x1

    goto :goto_1d5

    :cond_1e0
    const-string v1, "placeholder of time domain transforms not zeroed out"

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object v1

    throw v1

    :cond_1e8
    invoke-virtual {v13, v1}, Lz5/i7;->f(I)I

    move-result v4

    const/4 v5, 0x1

    add-int/2addr v4, v5

    const/4 v7, 0x0

    :goto_1ef
    const/16 v8, 0x34

    const/4 v9, 0x3

    if-ge v7, v4, :cond_2a8

    invoke-virtual {v13, v3}, Lz5/i7;->f(I)I

    move-result v11

    if-eqz v11, :cond_27c

    if-ne v11, v5, :cond_265

    const/4 v5, 0x5

    invoke-virtual {v13, v5}, Lz5/i7;->f(I)I

    move-result v8

    new-array v5, v8, [I

    const/4 v11, 0x0

    const/4 v12, -0x1

    :goto_205
    if-ge v11, v8, :cond_216

    const/4 v14, 0x4

    invoke-virtual {v13, v14}, Lz5/i7;->f(I)I

    move-result v15

    aput v15, v5, v11

    if-le v15, v12, :cond_211

    move v12, v15

    :cond_211
    add-int/lit8 v11, v11, 0x1

    const/16 v15, 0x18

    goto :goto_205

    :cond_216
    add-int/lit8 v12, v12, 0x1

    new-array v11, v12, [I

    const/4 v14, 0x0

    :goto_21b
    if-ge v14, v12, :cond_247

    invoke-virtual {v13, v9}, Lz5/i7;->f(I)I

    move-result v15

    const/16 v19, 0x1

    add-int/lit8 v15, v15, 0x1

    aput v15, v11, v14

    const/4 v15, 0x2

    invoke-virtual {v13, v15}, Lz5/i7;->f(I)I

    move-result v22

    const/16 v15, 0x8

    if-lez v22, :cond_233

    invoke-virtual {v13, v15}, Lz5/i7;->k(I)V

    :cond_233
    const/4 v9, 0x0

    :goto_234
    shl-int v1, v19, v22

    if-ge v9, v1, :cond_242

    invoke-virtual {v13, v15}, Lz5/i7;->k(I)V

    add-int/lit8 v9, v9, 0x1

    const/16 v15, 0x8

    const/16 v19, 0x1

    goto :goto_234

    :cond_242
    add-int/lit8 v14, v14, 0x1

    const/4 v1, 0x6

    const/4 v9, 0x3

    goto :goto_21b

    :cond_247
    const/4 v1, 0x2

    invoke-virtual {v13, v1}, Lz5/i7;->k(I)V

    const/4 v1, 0x4

    invoke-virtual {v13, v1}, Lz5/i7;->f(I)I

    move-result v9

    const/4 v1, 0x0

    const/4 v12, 0x0

    const/4 v14, 0x0

    :goto_253
    if-ge v1, v8, :cond_2a0

    aget v15, v5, v1

    aget v15, v11, v15

    add-int/2addr v12, v15

    :goto_25a
    if-ge v14, v12, :cond_262

    invoke-virtual {v13, v9}, Lz5/i7;->k(I)V

    add-int/lit8 v14, v14, 0x1

    goto :goto_25a

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

    goto :goto_253

    :cond_265
    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "floor type greater than 1 not decodable: "

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

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

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

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object v1

    throw v1

    :cond_27c
    const/16 v1, 0x8

    invoke-virtual {v13, v1}, Lz5/i7;->k(I)V

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

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

    const/4 v5, 0x6

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

    invoke-virtual {v13, v1}, Lz5/i7;->k(I)V

    const/4 v5, 0x4

    invoke-virtual {v13, v5}, Lz5/i7;->f(I)I

    move-result v8

    const/4 v5, 0x1

    add-int/2addr v8, v5

    const/4 v5, 0x0

    :goto_296
    if-ge v5, v8, :cond_2a0

    invoke-virtual {v13, v1}, Lz5/i7;->k(I)V

    add-int/lit8 v5, v5, 0x1

    const/16 v1, 0x8

    goto :goto_296

    :cond_2a0
    add-int/lit8 v7, v7, 0x1

    const/4 v1, 0x6

    const/4 v5, 0x1

    const/16 v15, 0x18

    goto/16 :goto_1ef

    :cond_2a8
    invoke-virtual {v13, v1}, Lz5/i7;->f(I)I

    move-result v4

    const/4 v5, 0x1

    add-int/2addr v4, v5

    const/4 v7, 0x0

    :goto_2af
    if-ge v7, v4, :cond_31a

    invoke-virtual {v13, v3}, Lz5/i7;->f(I)I

    move-result v9

    const/4 v11, 0x2

    if-gt v9, v11, :cond_312

    const/16 v9, 0x18

    invoke-virtual {v13, v9}, Lz5/i7;->k(I)V

    invoke-virtual {v13, v9}, Lz5/i7;->k(I)V

    invoke-virtual {v13, v9}, Lz5/i7;->k(I)V

    invoke-virtual {v13, v1}, Lz5/i7;->f(I)I

    move-result v11

    add-int/2addr v11, v5

    const/16 v1, 0x8

    invoke-virtual {v13, v1}, Lz5/i7;->k(I)V

    new-array v5, v11, [I

    const/4 v12, 0x0

    :goto_2d0
    if-ge v12, v11, :cond_2ef

    const/4 v14, 0x3

    invoke-virtual {v13, v14}, Lz5/i7;->f(I)I

    move-result v15

    invoke-virtual {v13}, Lz5/i7;->d()Z

    move-result v14

    if-eqz v14, :cond_2e3

    const/4 v14, 0x5

    invoke-virtual {v13, v14}, Lz5/i7;->f(I)I

    move-result v18

    goto :goto_2e6

    :cond_2e3
    const/4 v14, 0x5

    const/16 v18, 0x0

    :goto_2e6
    mul-int/lit8 v18, v18, 0x8

    add-int v18, v18, v15

    aput v18, v5, v12

    add-int/lit8 v12, v12, 0x1

    goto :goto_2d0

    :cond_2ef
    const/4 v14, 0x5

    const/4 v12, 0x0

    :goto_2f1
    if-ge v12, v11, :cond_30d

    const/4 v15, 0x0

    :goto_2f4
    if-ge v15, v1, :cond_308

    aget v18, v5, v12

    const/16 v19, 0x1

    shl-int v20, v19, v15

    and-int v18, v18, v20

    if-eqz v18, :cond_303

    invoke-virtual {v13, v1}, Lz5/i7;->k(I)V

    :cond_303
    add-int/lit8 v15, v15, 0x1

    const/16 v1, 0x8

    goto :goto_2f4

    :cond_308
    add-int/lit8 v12, v12, 0x1

    const/16 v1, 0x8

    goto :goto_2f1

    :cond_30d
    add-int/lit8 v7, v7, 0x1

    const/4 v1, 0x6

    const/4 v5, 0x1

    goto :goto_2af

    :cond_312
    const-string v1, "residueType greater than 2 is not decodable"

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object v1

    throw v1

    :cond_31a
    invoke-virtual {v13, v1}, Lz5/i7;->f(I)I

    move-result v4

    const/4 v1, 0x1

    add-int/2addr v4, v1

    const/4 v1, 0x0

    :goto_321
    if-ge v1, v4, :cond_3a6

    invoke-virtual {v13, v3}, Lz5/i7;->f(I)I

    move-result v5

    if-eqz v5, :cond_342

    new-instance v7, Ljava/lang/StringBuilder;

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

    const-string v9, "mapping type other than 0 not supported: "

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

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

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

    move-result-object v5

    const-string v7, "VorbisUtil"

    invoke-static {v7, v5}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v5, 0x2

    const/4 v11, 0x4

    goto :goto_39b

    :cond_342
    invoke-virtual {v13}, Lz5/i7;->d()Z

    move-result v5

    if-eqz v5, :cond_350

    const/4 v5, 0x4

    invoke-virtual {v13, v5}, Lz5/i7;->f(I)I

    move-result v7

    const/4 v5, 0x1

    add-int/2addr v7, v5

    goto :goto_352

    :cond_350
    const/4 v5, 0x1

    move v7, v5

    :goto_352
    invoke-virtual {v13}, Lz5/i7;->d()Z

    move-result v9

    if-eqz v9, :cond_375

    const/16 v9, 0x8

    invoke-virtual {v13, v9}, Lz5/i7;->f(I)I

    move-result v11

    add-int/2addr v11, v5

    const/4 v5, 0x0

    :goto_360
    if-ge v5, v11, :cond_375

    add-int/lit8 v9, v10, -0x1

    invoke-static {v9}, Lcom/google/android/gms/internal/ads/f;->a(I)I

    move-result v12

    invoke-virtual {v13, v12}, Lz5/i7;->k(I)V

    invoke-static {v9}, Lcom/google/android/gms/internal/ads/f;->a(I)I

    move-result v9

    invoke-virtual {v13, v9}, Lz5/i7;->k(I)V

    add-int/lit8 v5, v5, 0x1

    goto :goto_360

    :cond_375
    const/4 v5, 0x2

    invoke-virtual {v13, v5}, Lz5/i7;->f(I)I

    move-result v9

    if-nez v9, :cond_39e

    const/4 v9, 0x1

    if-le v7, v9, :cond_389

    const/4 v9, 0x0

    :goto_380
    if-ge v9, v10, :cond_389

    const/4 v11, 0x4

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

    add-int/lit8 v9, v9, 0x1

    goto :goto_380

    :cond_389
    const/4 v11, 0x4

    const/4 v9, 0x0

    :goto_38b
    if-ge v9, v7, :cond_39b

    const/16 v12, 0x8

    invoke-virtual {v13, v12}, Lz5/i7;->k(I)V

    invoke-virtual {v13, v12}, Lz5/i7;->k(I)V

    invoke-virtual {v13, v12}, Lz5/i7;->k(I)V

    add-int/lit8 v9, v9, 0x1

    goto :goto_38b

    :cond_39b
    :goto_39b
    add-int/lit8 v1, v1, 0x1

    goto :goto_321

    :cond_39e
    const-string v1, "to reserved bits must be zero after mapping coupling steps"

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object v1

    throw v1

    :cond_3a6
    const/4 v1, 0x6

    invoke-virtual {v13, v1}, Lz5/i7;->f(I)I

    move-result v1

    const/4 v4, 0x1

    add-int/2addr v1, v4

    new-array v9, v1, [Lz5/xd;

    const/4 v4, 0x0

    :goto_3b0
    if-ge v4, v1, :cond_3cc

    invoke-virtual {v13}, Lz5/i7;->d()Z

    move-result v5

    invoke-virtual {v13, v3}, Lz5/i7;->f(I)I

    invoke-virtual {v13, v3}, Lz5/i7;->f(I)I

    const/16 v7, 0x8

    invoke-virtual {v13, v7}, Lz5/i7;->f(I)I

    new-instance v8, Lz5/xd;

    const/4 v10, 0x3

    invoke-direct {v8, v5, v10}, Lz5/xd;-><init>(ZI)V

    aput-object v8, v9, v4

    add-int/lit8 v4, v4, 0x1

    goto :goto_3b0

    :cond_3cc
    invoke-virtual {v13}, Lz5/i7;->d()Z

    move-result v3

    if-eqz v3, :cond_424

    new-instance v3, Lz5/ox1;

    const/4 v4, -0x1

    add-int/2addr v1, v4

    invoke-static {v1}, Lcom/google/android/gms/internal/ads/f;->a(I)I

    move-result v10

    move-object v5, v3

    move-object/from16 v7, v21

    move-object/from16 v8, v23

    invoke-direct/range {v5 .. v10}, Lz5/ox1;-><init>(Lz5/iu1;Lz5/ll0;[B[Lz5/xd;I)V

    move-object v7, v3

    :goto_3e3
    iput-object v7, v0, Lcom/google/android/gms/internal/ads/p9;->n:Lz5/ox1;

    if-nez v7, :cond_3e9

    const/4 v1, 0x1

    return v1

    :cond_3e9
    iget-object v1, v7, Lz5/ox1;->r:Ljava/lang/Object;

    check-cast v1, Lz5/iu1;

    new-instance v3, Ljava/util/ArrayList;

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

    iget-object v4, v1, Lz5/iu1;->b:Ljava/lang/Object;

    check-cast v4, [B

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v4, v7, Lz5/ox1;->t:Ljava/lang/Object;

    check-cast v4, [B

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v4, Lz5/w2;

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

    const-string v5, "audio/vorbis"

    .line 7
    iput-object v5, v4, Lz5/w2;->j:Ljava/lang/String;

    .line 8
    iget v5, v1, Lz5/iu1;->e:I

    .line 9
    iput v5, v4, Lz5/w2;->e:I

    .line 10
    iget v5, v1, Lz5/iu1;->d:I

    .line 11
    iput v5, v4, Lz5/w2;->f:I

    .line 12
    iget v5, v1, Lz5/iu1;->a:I

    .line 13
    iput v5, v4, Lz5/w2;->w:I

    .line 14
    iget v1, v1, Lz5/iu1;->c:I

    .line 15
    iput v1, v4, Lz5/w2;->x:I

    .line 16
    iput-object v3, v4, Lz5/w2;->l:Ljava/util/List;

    .line 17
    new-instance v1, Lz5/x2;

    .line 18
    invoke-direct {v1, v4}, Lz5/x2;-><init>(Lz5/w2;)V

    .line 19
    iput-object v1, v2, Lz5/ll0;->s:Ljava/lang/Object;

    const/4 v1, 0x1

    return v1

    :cond_424
    const-string v1, "framing bit after modes not set as expected"

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object v1

    throw v1
.end method

.method public final e(J)V
    .registers 5

    .line 1
    iput-wide p1, p0, Lcom/google/android/gms/internal/ads/o9;->g:J

    const-wide/16 v0, 0x0

    cmp-long p1, p1, v0

    const/4 p2, 0x0

    if-eqz p1, :cond_b

    const/4 p1, 0x1

    goto :goto_c

    :cond_b
    move p1, p2

    .line 2
    :goto_c
    iput-boolean p1, p0, Lcom/google/android/gms/internal/ads/p9;->p:Z

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/p9;->q:Lz5/iu1;

    if-eqz p1, :cond_14

    iget p2, p1, Lz5/iu1;->f:I

    :cond_14
    iput p2, p0, Lcom/google/android/gms/internal/ads/p9;->o:I

    return-void
.end method
