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

# interfaces
.implements Lz5/zt1;


# instance fields
.field public final a:[B

.field public final b:Lz5/j7;

.field public final c:Lz5/p8;

.field public d:Lz5/bu1;

.field public e:Lz5/ou1;

.field public f:I

.field public g:Lz5/u4;

.field public h:Lz5/fu1;

.field public i:I

.field public j:I

.field public k:Lz5/qu1;

.field public l:I

.field public m:J


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

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

    const/16 p1, 0x2a

    new-array p1, p1, [B

    iput-object p1, p0, Lz5/ru1;->a:[B

    new-instance p1, Lz5/j7;

    const v0, 0x8000

    new-array v0, v0, [B

    const/4 v1, 0x0

    invoke-direct {p1, v0, v1}, Lz5/j7;-><init>([BI)V

    iput-object p1, p0, Lz5/ru1;->b:Lz5/j7;

    new-instance p1, Lz5/p8;

    const/4 v0, 0x3

    invoke-direct {p1, v0}, Lz5/p8;-><init>(I)V

    iput-object p1, p0, Lz5/ru1;->c:Lz5/p8;

    iput v1, p0, Lz5/ru1;->f:I

    return-void
.end method


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

    iget-wide v0, p0, Lz5/ru1;->m:J

    iget-object v2, p0, Lz5/ru1;->h:Lz5/fu1;

    sget v3, Lz5/r7;->a:I

    iget v2, v2, Lz5/fu1;->e:I

    const-wide/32 v3, 0xf4240

    mul-long/2addr v0, v3

    int-to-long v2, v2

    div-long v5, v0, v2

    iget-object v4, p0, Lz5/ru1;->e:Lz5/ou1;

    iget v8, p0, Lz5/ru1;->l:I

    const/4 v7, 0x1

    const/4 v9, 0x0

    const/4 v10, 0x0

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

    return-void
.end method

.method public final c(Lz5/au1;)Z
    .registers 14

    const/4 v0, 0x0

    invoke-static {p1, v0}, Lz5/s8;->c(Lz5/au1;Z)Lz5/u4;

    const/4 v1, 0x4

    new-array v2, v1, [B

    check-cast p1, Lz5/vt1;

    invoke-virtual {p1, v2, v0, v1, v0}, Lz5/vt1;->k([BIIZ)Z

    const/4 p1, 0x0

    const/4 v1, 0x1

    add-int/2addr p1, v1

    .line 1
    aget-byte v3, v2, v0

    add-int/lit8 v4, p1, 0x1

    aget-byte p1, v2, p1

    add-int/lit8 v5, v4, 0x1

    aget-byte v4, v2, v4

    int-to-long v6, v3

    const-wide/16 v8, 0xff

    and-long/2addr v6, v8

    const/16 v3, 0x18

    shl-long/2addr v6, v3

    int-to-long v10, p1

    and-long/2addr v10, v8

    const/16 p1, 0x10

    shl-long/2addr v10, p1

    or-long/2addr v6, v10

    int-to-long v3, v4

    and-long/2addr v3, v8

    const/16 p1, 0x8

    shl-long/2addr v3, p1

    or-long/2addr v3, v6

    aget-byte p1, v2, v5

    int-to-long v5, p1

    and-long/2addr v5, v8

    or-long v2, v3, v5

    const-wide/32 v4, 0x664c6143

    cmp-long p1, v2, v4

    if-nez p1, :cond_3a

    return v1

    :cond_3a
    return v0
.end method

.method public final d(Lz5/au1;Lz5/p8;)I
    .registers 30

    move-object/from16 v0, p0

    move-object/from16 v1, p1

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

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-eqz v2, :cond_3a0

    const/4 v5, 0x2

    if-eq v2, v3, :cond_38f

    const/16 v6, 0x8

    const/16 v7, 0x10

    const/16 v8, 0x18

    const/4 v9, 0x0

    const/4 v10, 0x4

    const/4 v11, 0x3

    if-eq v2, v5, :cond_356

    const/4 v12, 0x6

    const/4 v13, 0x7

    if-eq v2, v11, :cond_1f6

    const-wide/16 v14, 0x0

    const-wide/16 v16, -0x1

    if-eq v2, v10, :cond_18b

    iget-object v2, v0, Lz5/ru1;->e:Lz5/ou1;

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

    iget-object v2, v0, Lz5/ru1;->h:Lz5/fu1;

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

    iget-object v2, v0, Lz5/ru1;->k:Lz5/qu1;

    const/4 v6, -0x1

    if-eqz v2, :cond_41

    invoke-virtual {v2}, Lcom/google/android/gms/internal/ads/g;->e()Z

    move-result v2

    if-eqz v2, :cond_41

    iget-object v2, v0, Lz5/ru1;->k:Lz5/qu1;

    move-object/from16 v3, p2

    invoke-virtual {v2, v1, v3}, Lcom/google/android/gms/internal/ads/g;->f(Lz5/au1;Lz5/p8;)I

    move-result v4

    goto/16 :goto_16a

    :cond_41
    iget-wide v10, v0, Lz5/ru1;->m:J

    cmp-long v2, v10, v16

    if-nez v2, :cond_90

    iget-object v2, v0, Lz5/ru1;->h:Lz5/fu1;

    .line 1
    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzl()V

    move-object v6, v1

    check-cast v6, Lz5/vt1;

    invoke-virtual {v6, v3, v4}, Lz5/vt1;->i(IZ)Z

    new-array v7, v3, [B

    invoke-virtual {v6, v7, v4, v3, v4}, Lz5/vt1;->k([BIIZ)Z

    aget-byte v7, v7, v4

    and-int/2addr v7, v3

    invoke-virtual {v6, v5, v4}, Lz5/vt1;->i(IZ)Z

    if-eq v3, v7, :cond_60

    goto :goto_61

    :cond_60
    move v12, v13

    :goto_61
    new-instance v5, Lz5/j7;

    invoke-direct {v5, v12, v4}, Lz5/j7;-><init>(II)V

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

    .line 3
    invoke-static {v1, v6, v4, v12}, Lcom/google/android/gms/internal/ads/g9;->c(Lz5/au1;[BII)I

    move-result v6

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

    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzl()V

    if-eq v3, v7, :cond_76

    move v1, v4

    goto :goto_77

    :cond_76
    move v1, v3

    .line 4
    :goto_77
    :try_start_77
    invoke-virtual {v5}, Lz5/j7;->h()J

    move-result-wide v5
    :try_end_7b
    .catch Ljava/lang/NumberFormatException; {:try_start_77 .. :try_end_7b} :catch_84

    if-eqz v1, :cond_7e

    goto :goto_82

    :cond_7e
    iget v1, v2, Lz5/fu1;->b:I

    int-to-long v1, v1

    mul-long/2addr v5, v1

    :goto_82
    move-wide v14, v5

    goto :goto_85

    :catch_84
    move v3, v4

    :goto_85
    if-eqz v3, :cond_8b

    .line 5
    iput-wide v14, v0, Lz5/ru1;->m:J

    goto/16 :goto_16a

    .line 6
    :cond_8b
    invoke-static {v9, v9}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object v1

    throw v1

    .line 7
    :cond_90
    iget-object v2, v0, Lz5/ru1;->b:Lz5/j7;

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

    move-result v2

    const v5, 0x8000

    if-ge v2, v5, :cond_bf

    iget-object v8, v0, Lz5/ru1;->b:Lz5/j7;

    .line 8
    iget-object v8, v8, Lz5/j7;->b:[B

    sub-int/2addr v5, v2

    .line 9
    invoke-interface {v1, v8, v2, v5}, Lz5/au1;->a([BII)I

    move-result v1

    if-ne v1, v6, :cond_a7

    goto :goto_a8

    :cond_a7
    move v3, v4

    :goto_a8
    if-nez v3, :cond_b1

    iget-object v5, v0, Lz5/ru1;->b:Lz5/j7;

    add-int/2addr v2, v1

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

    goto :goto_c0

    :cond_b1
    iget-object v1, v0, Lz5/ru1;->b:Lz5/j7;

    invoke-virtual {v1}, Lz5/j7;->l()I

    move-result v1

    if-nez v1, :cond_c0

    invoke-virtual/range {p0 .. p0}, Lz5/ru1;->a()V

    move v4, v6

    goto/16 :goto_16a

    :cond_bf
    move v3, v4

    :cond_c0
    :goto_c0
    iget-object v1, v0, Lz5/ru1;->b:Lz5/j7;

    invoke-virtual {v1}, Lz5/j7;->o()I

    move-result v1

    iget v2, v0, Lz5/ru1;->l:I

    iget v5, v0, Lz5/ru1;->i:I

    if-ge v2, v5, :cond_da

    iget-object v6, v0, Lz5/ru1;->b:Lz5/j7;

    sub-int/2addr v5, v2

    invoke-virtual {v6}, Lz5/j7;->l()I

    move-result v2

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

    move-result v2

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

    :cond_da
    iget-object v2, v0, Lz5/ru1;->b:Lz5/j7;

    .line 10
    iget-object v5, v0, Lz5/ru1;->h:Lz5/fu1;

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

    invoke-virtual {v2}, Lz5/j7;->o()I

    move-result v5

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

    move-result v6

    add-int/lit8 v6, v6, -0x10

    if-gt v5, v6, :cond_100

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

    iget-object v6, v0, Lz5/ru1;->h:Lz5/fu1;

    iget v8, v0, Lz5/ru1;->j:I

    iget-object v9, v0, Lz5/ru1;->c:Lz5/p8;

    invoke-static {v2, v6, v8, v9}, Lcom/google/android/gms/internal/ads/d;->f(Lz5/j7;Lz5/fu1;ILz5/p8;)Z

    move-result v6

    if-eqz v6, :cond_fd

    goto :goto_127

    :cond_fd
    add-int/lit8 v5, v5, 0x1

    goto :goto_e5

    :cond_100
    if-eqz v3, :cond_13a

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

    move-result v3

    iget v6, v0, Lz5/ru1;->i:I

    sub-int/2addr v3, v6

    if-gt v5, v3, :cond_132

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

    :try_start_10e
    iget-object v3, v0, Lz5/ru1;->h:Lz5/fu1;

    iget v6, v0, Lz5/ru1;->j:I

    iget-object v8, v0, Lz5/ru1;->c:Lz5/p8;

    invoke-static {v2, v3, v6, v8}, Lcom/google/android/gms/internal/ads/d;->f(Lz5/j7;Lz5/fu1;ILz5/p8;)Z

    move-result v3
    :try_end_118
    .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_10e .. :try_end_118} :catch_119

    goto :goto_11a

    :catch_119
    move v3, v4

    :goto_11a
    invoke-virtual {v2}, Lz5/j7;->o()I

    move-result v6

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

    move-result v8

    if-le v6, v8, :cond_125

    goto :goto_12f

    :cond_125
    if-eqz v3, :cond_12f

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

    iget-object v2, v0, Lz5/ru1;->c:Lz5/p8;

    iget-wide v2, v2, Lz5/p8;->a:J

    goto :goto_13f

    :cond_12f
    :goto_12f
    add-int/lit8 v5, v5, 0x1

    goto :goto_102

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

    move-result v3

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

    goto :goto_13d

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

    :goto_13d
    move-wide/from16 v2, v16

    .line 11
    :goto_13f
    iget-object v5, v0, Lz5/ru1;->b:Lz5/j7;

    invoke-virtual {v5}, Lz5/j7;->o()I

    move-result v5

    sub-int/2addr v5, v1

    iget-object v6, v0, Lz5/ru1;->b:Lz5/j7;

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

    iget-object v1, v0, Lz5/ru1;->e:Lz5/ou1;

    iget-object v6, v0, Lz5/ru1;->b:Lz5/j7;

    .line 12
    invoke-interface {v1, v6, v5, v4}, Lz5/ou1;->e(Lz5/j7;II)V

    .line 13
    iget v1, v0, Lz5/ru1;->l:I

    add-int/2addr v1, v5

    iput v1, v0, Lz5/ru1;->l:I

    cmp-long v1, v2, v16

    if-eqz v1, :cond_162

    invoke-virtual/range {p0 .. p0}, Lz5/ru1;->a()V

    iput v4, v0, Lz5/ru1;->l:I

    iput-wide v2, v0, Lz5/ru1;->m:J

    :cond_162
    iget-object v1, v0, Lz5/ru1;->b:Lz5/j7;

    invoke-virtual {v1}, Lz5/j7;->l()I

    move-result v1

    if-lt v1, v7, :cond_16b

    :goto_16a
    return v4

    :cond_16b
    iget-object v1, v0, Lz5/ru1;->b:Lz5/j7;

    invoke-virtual {v1}, Lz5/j7;->l()I

    move-result v1

    iget-object v2, v0, Lz5/ru1;->b:Lz5/j7;

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

    .line 15
    invoke-virtual {v2}, Lz5/j7;->o()I

    move-result v2

    iget-object v5, v0, Lz5/ru1;->b:Lz5/j7;

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

    .line 17
    invoke-static {v3, v2, v5, v4, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget-object v2, v0, Lz5/ru1;->b:Lz5/j7;

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

    iget-object v2, v0, Lz5/ru1;->b:Lz5/j7;

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

    return v4

    :cond_18b
    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzl()V

    new-array v2, v5, [B

    move-object v7, v1

    check-cast v7, Lz5/vt1;

    invoke-virtual {v7, v2, v4, v5, v4}, Lz5/vt1;->k([BIIZ)Z

    .line 18
    aget-byte v5, v2, v4

    and-int/lit16 v5, v5, 0xff

    shl-int/2addr v5, v6

    aget-byte v2, v2, v3

    and-int/lit16 v2, v2, 0xff

    or-int/2addr v2, v5

    shr-int/lit8 v3, v2, 0x2

    const/16 v5, 0x3ffe

    .line 19
    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzl()V

    if-ne v3, v5, :cond_1ef

    iput v2, v0, Lz5/ru1;->j:I

    iget-object v2, v0, Lz5/ru1;->d:Lz5/bu1;

    sget v3, Lz5/r7;->a:I

    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzn()J

    move-result-wide v8

    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzo()J

    move-result-wide v10

    iget-object v6, v0, Lz5/ru1;->h:Lz5/fu1;

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

    iget-object v1, v6, Lz5/fu1;->k:Lz5/n50;

    if-eqz v1, :cond_1c6

    new-instance v1, Lz5/eu1;

    invoke-direct {v1, v6, v8, v9}, Lz5/eu1;-><init>(Lz5/fu1;J)V

    goto :goto_1e8

    :cond_1c6
    cmp-long v1, v10, v16

    if-eqz v1, :cond_1df

    iget-wide v12, v6, Lz5/fu1;->j:J

    cmp-long v1, v12, v14

    if-lez v1, :cond_1df

    new-instance v1, Lz5/qu1;

    iget v7, v0, Lz5/ru1;->j:I

    move-object v5, v1

    invoke-direct/range {v5 .. v11}, Lz5/qu1;-><init>(Lz5/fu1;IJJ)V

    iput-object v1, v0, Lz5/ru1;->k:Lz5/qu1;

    .line 20
    iget-object v1, v1, Lcom/google/android/gms/internal/ads/g;->r:Ljava/lang/Object;

    check-cast v1, Lz5/pt1;

    goto :goto_1e8

    .line 21
    :cond_1df
    new-instance v1, Lz5/eu1;

    invoke-virtual {v6}, Lz5/fu1;->a()J

    move-result-wide v5

    invoke-direct {v1, v5, v6, v14, v15}, Lz5/eu1;-><init>(JJ)V

    :goto_1e8
    invoke-interface {v2, v1}, Lz5/bu1;->i(Lz5/lu1;)V

    const/4 v1, 0x5

    iput v1, v0, Lz5/ru1;->f:I

    return v4

    :cond_1ef
    const-string v1, "First frame does not start with sync code."

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

    move-result-object v1

    throw v1

    :cond_1f6
    iget-object v2, v0, Lz5/ru1;->h:Lz5/fu1;

    :goto_1f8
    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzl()V

    new-instance v3, Lz5/i7;

    new-array v5, v10, [B

    invoke-direct {v3, v5, v10, v4}, Lz5/i7;-><init>([BII)V

    iget-object v5, v3, Lz5/i7;->b:[B

    move-object v6, v1

    check-cast v6, Lz5/vt1;

    invoke-virtual {v6, v5, v4, v10, v4}, Lz5/vt1;->k([BIIZ)Z

    invoke-virtual {v3}, Lz5/i7;->u()Z

    move-result v5

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

    move-result v7

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

    move-result v3

    add-int/2addr v3, v10

    if-nez v7, :cond_226

    const/16 v2, 0x26

    new-array v3, v2, [B

    invoke-virtual {v6, v3, v4, v2, v4}, Lz5/vt1;->j([BIIZ)Z

    new-instance v2, Lz5/fu1;

    invoke-direct {v2, v3, v10}, Lz5/fu1;-><init>([BI)V

    goto :goto_23c

    :cond_226
    if-eqz v2, :cond_350

    if-ne v7, v11, :cond_240

    new-instance v7, Lz5/j7;

    invoke-direct {v7, v3, v4}, Lz5/j7;-><init>(II)V

    .line 22
    iget-object v9, v7, Lz5/j7;->b:[B

    .line 23
    invoke-virtual {v6, v9, v4, v3, v4}, Lz5/vt1;->j([BIIZ)Z

    invoke-static {v7}, Lz5/s8;->f(Lz5/j7;)Lz5/n50;

    move-result-object v3

    invoke-virtual {v2, v3}, Lz5/fu1;->e(Lz5/n50;)Lz5/fu1;

    move-result-object v2

    :goto_23c
    move/from16 p2, v5

    goto/16 :goto_325

    :cond_240
    if-ne v7, v10, :cond_294

    new-instance v7, Lz5/j7;

    invoke-direct {v7, v3, v4}, Lz5/j7;-><init>(II)V

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

    .line 25
    invoke-virtual {v6, v9, v4, v3, v4}, Lz5/vt1;->j([BIIZ)Z

    invoke-virtual {v7, v10}, Lz5/j7;->u(I)V

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

    move-result-object v3

    iget-object v3, v3, Lz5/ll0;->t:Ljava/lang/Object;

    check-cast v3, [Ljava/lang/String;

    invoke-static {v3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v3

    .line 26
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v6

    invoke-static {v3, v6}, Lz5/fu1;->h(Ljava/util/List;Ljava/util/List;)Lz5/u4;

    move-result-object v3

    invoke-virtual {v2, v3}, Lz5/fu1;->d(Lz5/u4;)Lz5/u4;

    move-result-object v25

    new-instance v3, Lz5/fu1;

    iget v15, v2, Lz5/fu1;->a:I

    iget v6, v2, Lz5/fu1;->b:I

    iget v7, v2, Lz5/fu1;->c:I

    iget v9, v2, Lz5/fu1;->d:I

    iget v14, v2, Lz5/fu1;->e:I

    iget v13, v2, Lz5/fu1;->g:I

    iget v11, v2, Lz5/fu1;->h:I

    move/from16 p2, v5

    iget-wide v4, v2, Lz5/fu1;->j:J

    iget-object v2, v2, Lz5/fu1;->k:Lz5/n50;

    move/from16 v19, v14

    move-object v14, v3

    move/from16 v16, v6

    move/from16 v17, v7

    move/from16 v18, v9

    move/from16 v20, v13

    move/from16 v21, v11

    move-wide/from16 v22, v4

    move-object/from16 v24, v2

    invoke-direct/range {v14 .. v25}, Lz5/fu1;-><init>(IIIIIIIJLz5/n50;Lz5/u4;)V

    :goto_291
    move-object v2, v3

    goto/16 :goto_325

    :cond_294
    move/from16 p2, v5

    if-ne v7, v12, :cond_321

    .line 27
    new-instance v4, Lz5/j7;

    const/4 v5, 0x0

    invoke-direct {v4, v3, v5}, Lz5/j7;-><init>(II)V

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

    .line 29
    invoke-virtual {v6, v7, v5, v3, v5}, Lz5/vt1;->j([BIIZ)Z

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

    invoke-virtual {v4}, Lz5/j7;->K()I

    move-result v14

    invoke-virtual {v4}, Lz5/j7;->K()I

    move-result v3

    sget-object v5, Lz5/m91;->a:Ljava/nio/charset/Charset;

    invoke-virtual {v4, v3, v5}, Lz5/j7;->e(ILjava/nio/charset/Charset;)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v4}, Lz5/j7;->K()I

    move-result v3

    sget-object v5, Lz5/m91;->b:Ljava/nio/charset/Charset;

    invoke-virtual {v4, v3, v5}, Lz5/j7;->e(ILjava/nio/charset/Charset;)Ljava/lang/String;

    move-result-object v16

    invoke-virtual {v4}, Lz5/j7;->K()I

    move-result v17

    invoke-virtual {v4}, Lz5/j7;->K()I

    move-result v18

    invoke-virtual {v4}, Lz5/j7;->K()I

    move-result v19

    invoke-virtual {v4}, Lz5/j7;->K()I

    move-result v20

    invoke-virtual {v4}, Lz5/j7;->K()I

    move-result v3

    new-array v5, v3, [B

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

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

    const/4 v9, 0x0

    invoke-static {v6, v7, v5, v9, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget v6, v4, Lz5/j7;->c:I

    add-int/2addr v6, v3

    iput v6, v4, Lz5/j7;->c:I

    .line 31
    new-instance v3, Lz5/a5;

    move-object v13, v3

    move-object/from16 v21, v5

    invoke-direct/range {v13 .. v21}, Lz5/a5;-><init>(ILjava/lang/String;Ljava/lang/String;IIII[B)V

    invoke-static {v3}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v3

    .line 32
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v4

    invoke-static {v4, v3}, Lz5/fu1;->h(Ljava/util/List;Ljava/util/List;)Lz5/u4;

    move-result-object v3

    invoke-virtual {v2, v3}, Lz5/fu1;->d(Lz5/u4;)Lz5/u4;

    move-result-object v24

    new-instance v3, Lz5/fu1;

    iget v14, v2, Lz5/fu1;->a:I

    iget v15, v2, Lz5/fu1;->b:I

    iget v4, v2, Lz5/fu1;->c:I

    iget v5, v2, Lz5/fu1;->d:I

    iget v6, v2, Lz5/fu1;->e:I

    iget v7, v2, Lz5/fu1;->g:I

    iget v9, v2, Lz5/fu1;->h:I

    iget-wide v10, v2, Lz5/fu1;->j:J

    iget-object v2, v2, Lz5/fu1;->k:Lz5/n50;

    move-object v13, v3

    move/from16 v16, v4

    move/from16 v17, v5

    move/from16 v18, v6

    move/from16 v19, v7

    move/from16 v20, v9

    move-wide/from16 v21, v10

    move-object/from16 v23, v2

    invoke-direct/range {v13 .. v24}, Lz5/fu1;-><init>(IIIIIIIJLz5/n50;Lz5/u4;)V

    goto/16 :goto_291

    :cond_321
    const/4 v4, 0x0

    .line 33
    invoke-virtual {v6, v3, v4}, Lz5/vt1;->c(IZ)Z

    :goto_325
    sget v3, Lz5/r7;->a:I

    iput-object v2, v0, Lz5/ru1;->h:Lz5/fu1;

    if-eqz p2, :cond_34a

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

    iget v1, v2, Lz5/fu1;->c:I

    invoke-static {v1, v12}, Ljava/lang/Math;->max(II)I

    move-result v1

    iput v1, v0, Lz5/ru1;->i:I

    iget-object v1, v0, Lz5/ru1;->e:Lz5/ou1;

    iget-object v2, v0, Lz5/ru1;->h:Lz5/fu1;

    iget-object v3, v0, Lz5/ru1;->a:[B

    iget-object v4, v0, Lz5/ru1;->g:Lz5/u4;

    invoke-virtual {v2, v3, v4}, Lz5/fu1;->c([BLz5/u4;)Lz5/x2;

    move-result-object v2

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

    const/4 v4, 0x4

    iput v4, v0, Lz5/ru1;->f:I

    const/4 v10, 0x0

    return v10

    :cond_34a
    const/4 v4, 0x0

    const/4 v10, 0x4

    const/4 v11, 0x3

    const/4 v13, 0x7

    goto/16 :goto_1f8

    :cond_350
    new-instance v1, Ljava/lang/IllegalArgumentException;

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

    throw v1

    :cond_356
    move/from16 v26, v10

    move v10, v4

    move/from16 v4, v26

    new-array v2, v4, [B

    check-cast v1, Lz5/vt1;

    invoke-virtual {v1, v2, v10, v4, v10}, Lz5/vt1;->j([BIIZ)Z

    .line 34
    aget-byte v1, v2, v10

    aget-byte v3, v2, v3

    aget-byte v4, v2, v5

    int-to-long v10, v1

    const-wide/16 v12, 0xff

    and-long/2addr v10, v12

    shl-long/2addr v10, v8

    int-to-long v14, v3

    and-long/2addr v14, v12

    shl-long v7, v14, v7

    or-long/2addr v7, v10

    int-to-long v3, v4

    and-long/2addr v3, v12

    shl-long/2addr v3, v6

    or-long/2addr v3, v7

    const/4 v1, 0x3

    aget-byte v2, v2, v1

    int-to-long v5, v2

    and-long/2addr v5, v12

    or-long v2, v5, v3

    const-wide/32 v4, 0x664c6143

    cmp-long v2, v2, v4

    if-nez v2, :cond_388

    .line 35
    iput v1, v0, Lz5/ru1;->f:I

    const/4 v2, 0x0

    return v2

    :cond_388
    const-string v1, "Failed to read FLAC stream marker."

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

    move-result-object v1

    throw v1

    :cond_38f
    move v2, v4

    iget-object v3, v0, Lz5/ru1;->a:[B

    move-object v4, v1

    check-cast v4, Lz5/vt1;

    const/16 v6, 0x2a

    invoke-virtual {v4, v3, v2, v6, v2}, Lz5/vt1;->k([BIIZ)Z

    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzl()V

    iput v5, v0, Lz5/ru1;->f:I

    return v2

    :cond_3a0
    move v2, v4

    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzl()V

    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzm()J

    move-result-wide v4

    invoke-static {v1, v3}, Lz5/s8;->c(Lz5/au1;Z)Lz5/u4;

    move-result-object v6

    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzm()J

    move-result-wide v7

    check-cast v1, Lz5/vt1;

    sub-long/2addr v7, v4

    long-to-int v4, v7

    invoke-virtual {v1, v4, v2}, Lz5/vt1;->c(IZ)Z

    iput-object v6, v0, Lz5/ru1;->g:Lz5/u4;

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

    return v2
.end method

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

    iput-object p1, p0, Lz5/ru1;->d:Lz5/bu1;

    const/4 v0, 0x0

    const/4 v1, 0x1

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

    move-result-object v0

    iput-object v0, p0, Lz5/ru1;->e:Lz5/ou1;

    invoke-interface {p1}, Lz5/bu1;->zzC()V

    return-void
.end method

.method public final f(JJ)V
    .registers 7

    const-wide/16 v0, 0x0

    cmp-long p1, p1, v0

    const/4 p2, 0x0

    if-nez p1, :cond_a

    iput p2, p0, Lz5/ru1;->f:I

    goto :goto_11

    :cond_a
    iget-object p1, p0, Lz5/ru1;->k:Lz5/qu1;

    if-eqz p1, :cond_11

    invoke-virtual {p1, p3, p4}, Lcom/google/android/gms/internal/ads/g;->b(J)V

    :cond_11
    :goto_11
    cmp-long p1, p3, v0

    if-nez p1, :cond_16

    goto :goto_18

    :cond_16
    const-wide/16 v0, -0x1

    :goto_18
    iput-wide v0, p0, Lz5/ru1;->m:J

    iput p2, p0, Lz5/ru1;->l:I

    iget-object p1, p0, Lz5/ru1;->b:Lz5/j7;

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

    return-void
.end method
