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

# interfaces
.implements Lz5/uw1;


# instance fields
.field public final a:Ljava/lang/String;

.field public final b:Lz5/j7;

.field public final c:Lz5/i7;

.field public d:Lz5/ou1;

.field public e:Ljava/lang/String;

.field public f:Lz5/x2;

.field public g:I

.field public h:I

.field public i:I

.field public j:I

.field public k:J

.field public l:Z

.field public m:I

.field public n:I

.field public o:I

.field public p:Z

.field public q:J

.field public r:I

.field public s:J

.field public t:I

.field public u:Ljava/lang/String;


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

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

    iput-object p1, p0, Lz5/dx1;->a:Ljava/lang/String;

    new-instance p1, Lz5/j7;

    const/16 v0, 0x400

    const/4 v1, 0x0

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

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

    new-instance v0, Lz5/i7;

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

    .line 2
    array-length v2, p1

    invoke-direct {v0, p1, v2, v1}, Lz5/i7;-><init>([BII)V

    iput-object v0, p0, Lz5/dx1;->c:Lz5/i7;

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

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

    return-void
.end method

.method public static e(Lz5/i7;)J
    .registers 3

    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lz5/i7;->x(I)I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    mul-int/lit8 v0, v0, 0x8

    invoke-virtual {p0, v0}, Lz5/i7;->x(I)I

    move-result p0

    int-to-long v0, p0

    return-wide v0
.end method


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

    iget-object v0, p0, Lz5/dx1;->d:Lz5/ou1;

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

    :cond_5
    :goto_5
    invoke-virtual {p1}, Lz5/j7;->l()I

    move-result v0

    if-lez v0, :cond_20f

    iget v0, p0, Lz5/dx1;->g:I

    const/16 v1, 0x56

    const/4 v2, 0x1

    if-eqz v0, :cond_205

    const/4 v3, 0x2

    const/4 v4, 0x0

    if-eq v0, v2, :cond_1ef

    const/4 v1, 0x3

    const/16 v5, 0x8

    if-eq v0, v3, :cond_1c4

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

    move-result v0

    iget v3, p0, Lz5/dx1;->i:I

    iget v6, p0, Lz5/dx1;->h:I

    sub-int/2addr v3, v6

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

    move-result v0

    iget-object v3, p0, Lz5/dx1;->c:Lz5/i7;

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

    iget v6, p0, Lz5/dx1;->h:I

    invoke-virtual {p1, v3, v6, v0}, Lz5/j7;->z([BII)V

    iget v3, p0, Lz5/dx1;->h:I

    add-int/2addr v3, v0

    iput v3, p0, Lz5/dx1;->h:I

    iget v0, p0, Lz5/dx1;->i:I

    if-ne v3, v0, :cond_5

    iget-object v0, p0, Lz5/dx1;->c:Lz5/i7;

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

    iget-object v0, p0, Lz5/dx1;->c:Lz5/i7;

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

    move-result v3

    const/4 v6, 0x0

    if-nez v3, :cond_14c

    iput-boolean v2, p0, Lz5/dx1;->l:Z

    invoke-virtual {v0, v2}, Lz5/i7;->x(I)I

    move-result v3

    if-ne v3, v2, :cond_56

    invoke-virtual {v0, v2}, Lz5/i7;->x(I)I

    move-result v3

    move v7, v2

    goto :goto_58

    :cond_56
    move v7, v3

    move v3, v4

    :goto_58
    iput v3, p0, Lz5/dx1;->m:I

    if-nez v3, :cond_147

    if-ne v7, v2, :cond_62

    invoke-static {v0}, Lz5/dx1;->e(Lz5/i7;)J

    move v7, v2

    :cond_62
    invoke-virtual {v0}, Lz5/i7;->u()Z

    move-result v3

    if-eqz v3, :cond_142

    const/4 v3, 0x6

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

    move-result v8

    iput v8, p0, Lz5/dx1;->n:I

    const/4 v8, 0x4

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

    move-result v9

    invoke-virtual {v0, v1}, Lz5/i7;->x(I)I

    move-result v10

    if-nez v9, :cond_13d

    if-nez v10, :cond_13d

    if-nez v7, :cond_d2

    invoke-virtual {v0}, Lz5/i7;->i()I

    move-result v9

    invoke-virtual {p0, v0}, Lz5/dx1;->d(Lz5/i7;)I

    move-result v10

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

    add-int/lit8 v9, v10, 0x7

    div-int/2addr v9, v5

    new-array v9, v9, [B

    invoke-virtual {v0, v9, v4, v10}, Lz5/i7;->z([BII)V

    new-instance v10, Lz5/w2;

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

    iget-object v11, p0, Lz5/dx1;->e:Ljava/lang/String;

    .line 1
    iput-object v11, v10, Lz5/w2;->a:Ljava/lang/String;

    const-string v11, "audio/mp4a-latm"

    .line 2
    iput-object v11, v10, Lz5/w2;->j:Ljava/lang/String;

    .line 3
    iget-object v11, p0, Lz5/dx1;->u:Ljava/lang/String;

    .line 4
    iput-object v11, v10, Lz5/w2;->g:Ljava/lang/String;

    .line 5
    iget v11, p0, Lz5/dx1;->t:I

    .line 6
    iput v11, v10, Lz5/w2;->w:I

    .line 7
    iget v11, p0, Lz5/dx1;->r:I

    .line 8
    iput v11, v10, Lz5/w2;->x:I

    .line 9
    invoke-static {v9}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v9

    .line 10
    iput-object v9, v10, Lz5/w2;->l:Ljava/util/List;

    .line 11
    iget-object v9, p0, Lz5/dx1;->a:Ljava/lang/String;

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

    .line 13
    new-instance v9, Lz5/x2;

    .line 14
    invoke-direct {v9, v10}, Lz5/x2;-><init>(Lz5/w2;)V

    .line 15
    iget-object v10, p0, Lz5/dx1;->f:Lz5/x2;

    invoke-virtual {v9, v10}, Lz5/x2;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-nez v10, :cond_df

    iput-object v9, p0, Lz5/dx1;->f:Lz5/x2;

    const-wide/32 v10, 0x3d090000

    iget v12, v9, Lz5/x2;->y:I

    int-to-long v12, v12

    div-long/2addr v10, v12

    iput-wide v10, p0, Lz5/dx1;->s:J

    iget-object v10, p0, Lz5/dx1;->d:Lz5/ou1;

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

    goto :goto_df

    :cond_d2
    invoke-static {v0}, Lz5/dx1;->e(Lz5/i7;)J

    move-result-wide v9

    long-to-int v9, v9

    invoke-virtual {p0, v0}, Lz5/dx1;->d(Lz5/i7;)I

    move-result v10

    sub-int/2addr v9, v10

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

    :cond_df
    :goto_df
    invoke-virtual {v0, v1}, Lz5/i7;->x(I)I

    move-result v9

    iput v9, p0, Lz5/dx1;->o:I

    if-eqz v9, :cond_10a

    if-eq v9, v2, :cond_104

    if-eq v9, v1, :cond_100

    if-eq v9, v8, :cond_100

    const/4 v1, 0x5

    if-eq v9, v1, :cond_100

    if-eq v9, v3, :cond_fc

    const/4 v1, 0x7

    if-ne v9, v1, :cond_f6

    goto :goto_fc

    :cond_f6
    new-instance p1, Ljava/lang/IllegalStateException;

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

    throw p1

    :cond_fc
    :goto_fc
    invoke-virtual {v0, v2}, Lz5/i7;->s(I)V

    goto :goto_10d

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

    goto :goto_10d

    :cond_104
    const/16 v1, 0x9

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

    goto :goto_10d

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

    :goto_10d
    invoke-virtual {v0}, Lz5/i7;->u()Z

    move-result v1

    iput-boolean v1, p0, Lz5/dx1;->p:Z

    const-wide/16 v8, 0x0

    iput-wide v8, p0, Lz5/dx1;->q:J

    if-eqz v1, :cond_133

    if-eq v7, v2, :cond_12d

    :cond_11b
    invoke-virtual {v0}, Lz5/i7;->u()Z

    move-result v1

    iget-wide v2, p0, Lz5/dx1;->q:J

    shl-long/2addr v2, v5

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

    move-result v7

    int-to-long v7, v7

    add-long/2addr v2, v7

    iput-wide v2, p0, Lz5/dx1;->q:J

    if-nez v1, :cond_11b

    goto :goto_133

    :cond_12d
    invoke-static {v0}, Lz5/dx1;->e(Lz5/i7;)J

    move-result-wide v1

    iput-wide v1, p0, Lz5/dx1;->q:J

    :cond_133
    :goto_133
    invoke-virtual {v0}, Lz5/i7;->u()Z

    move-result v1

    if-eqz v1, :cond_152

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

    goto :goto_152

    :cond_13d
    invoke-static {v6, v6}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object p1

    throw p1

    :cond_142
    invoke-static {v6, v6}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object p1

    throw p1

    :cond_147
    invoke-static {v6, v6}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object p1

    throw p1

    :cond_14c
    iget-boolean v1, p0, Lz5/dx1;->l:Z

    if-nez v1, :cond_152

    goto/16 :goto_201

    :cond_152
    :goto_152
    iget v1, p0, Lz5/dx1;->m:I

    if-nez v1, :cond_1bf

    iget v1, p0, Lz5/dx1;->n:I

    if-nez v1, :cond_1ba

    iget v1, p0, Lz5/dx1;->o:I

    if-nez v1, :cond_1b5

    move v1, v4

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

    move-result v2

    add-int v10, v1, v2

    const/16 v1, 0xff

    if-eq v2, v1, :cond_1b3

    invoke-virtual {v0}, Lz5/i7;->i()I

    move-result v1

    and-int/lit8 v2, v1, 0x7

    if-nez v2, :cond_179

    iget-object v2, p0, Lz5/dx1;->b:Lz5/j7;

    shr-int/lit8 v1, v1, 0x3

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

    goto :goto_187

    :cond_179
    iget-object v1, p0, Lz5/dx1;->b:Lz5/j7;

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

    mul-int/lit8 v2, v10, 0x8

    .line 17
    invoke-virtual {v0, v1, v4, v2}, Lz5/i7;->z([BII)V

    iget-object v1, p0, Lz5/dx1;->b:Lz5/j7;

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

    :goto_187
    iget-object v1, p0, Lz5/dx1;->d:Lz5/ou1;

    iget-object v2, p0, Lz5/dx1;->b:Lz5/j7;

    .line 18
    invoke-interface {v1, v2, v10, v4}, Lz5/ou1;->e(Lz5/j7;II)V

    .line 19
    iget-wide v7, p0, Lz5/dx1;->k:J

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

    cmp-long v1, v7, v1

    if-eqz v1, :cond_1a8

    iget-object v6, p0, Lz5/dx1;->d:Lz5/ou1;

    const/4 v9, 0x1

    const/4 v11, 0x0

    const/4 v12, 0x0

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

    iget-wide v1, p0, Lz5/dx1;->k:J

    iget-wide v5, p0, Lz5/dx1;->s:J

    add-long/2addr v1, v5

    iput-wide v1, p0, Lz5/dx1;->k:J

    :cond_1a8
    iget-boolean v1, p0, Lz5/dx1;->p:Z

    if-eqz v1, :cond_201

    iget-wide v1, p0, Lz5/dx1;->q:J

    long-to-int v1, v1

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

    goto :goto_201

    :cond_1b3
    move v1, v10

    goto :goto_15f

    :cond_1b5
    invoke-static {v6, v6}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object p1

    throw p1

    :cond_1ba
    invoke-static {v6, v6}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object p1

    throw p1

    :cond_1bf
    invoke-static {v6, v6}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object p1

    throw p1

    :cond_1c4
    iget v0, p0, Lz5/dx1;->j:I

    and-int/lit16 v0, v0, -0xe1

    shl-int/2addr v0, v5

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

    move-result v2

    or-int/2addr v0, v2

    iput v0, p0, Lz5/dx1;->i:I

    iget-object v2, p0, Lz5/dx1;->b:Lz5/j7;

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

    .line 21
    array-length v3, v3

    if-le v0, v3, :cond_1e9

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

    iget-object v0, p0, Lz5/dx1;->c:Lz5/i7;

    iget-object v2, p0, Lz5/dx1;->b:Lz5/j7;

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

    .line 23
    array-length v3, v2

    .line 24
    iput-object v2, v0, Lz5/i7;->b:[B

    iput v4, v0, Lz5/i7;->c:I

    iput v4, v0, Lz5/i7;->d:I

    iput v3, v0, Lz5/i7;->e:I

    .line 25
    :cond_1e9
    iput v4, p0, Lz5/dx1;->h:I

    iput v1, p0, Lz5/dx1;->g:I

    goto/16 :goto_5

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

    move-result v0

    and-int/lit16 v2, v0, 0xe0

    const/16 v5, 0xe0

    if-ne v2, v5, :cond_1ff

    iput v0, p0, Lz5/dx1;->j:I

    iput v3, p0, Lz5/dx1;->g:I

    goto/16 :goto_5

    :cond_1ff
    if-eq v0, v1, :cond_5

    :cond_201
    :goto_201
    iput v4, p0, Lz5/dx1;->g:I

    goto/16 :goto_5

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

    move-result v0

    if-ne v0, v1, :cond_5

    iput v2, p0, Lz5/dx1;->g:I

    goto/16 :goto_5

    :cond_20f
    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/dx1;->k:J

    :cond_b
    return-void
.end method

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

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

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

    move-result v0

    const/4 v1, 0x1

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

    move-result-object p1

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

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

    move-result-object p1

    iput-object p1, p0, Lz5/dx1;->e:Ljava/lang/String;

    return-void
.end method

.method public final d(Lz5/i7;)I
    .registers 5

    invoke-virtual {p1}, Lz5/i7;->e()I

    move-result v0

    const/4 v1, 0x1

    invoke-static {p1, v1}, Lz5/lt1;->b(Lz5/i7;Z)Lz5/qa;

    move-result-object v1

    iget-object v2, v1, Lz5/qa;->d:Ljava/lang/Object;

    check-cast v2, Ljava/lang/String;

    iput-object v2, p0, Lz5/dx1;->u:Ljava/lang/String;

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

    iput v2, p0, Lz5/dx1;->r:I

    iget v1, v1, Lz5/qa;->c:I

    iput v1, p0, Lz5/dx1;->t:I

    invoke-virtual {p1}, Lz5/i7;->e()I

    move-result p1

    sub-int/2addr v0, p1

    return v0
.end method

.method public final zza()V
    .registers 4

    const/4 v0, 0x0

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

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

    iput-wide v1, p0, Lz5/dx1;->k:J

    iput-boolean v0, p0, Lz5/dx1;->l:Z

    return-void
.end method

.method public final zze()V
    .registers 1

    return-void
.end method
