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

# interfaces
.implements Lz5/uw1;


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

.field public final b:Lz5/j7;

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

.field public d:Ljava/lang/String;

.field public e:Lz5/ou1;

.field public f:I

.field public g:I

.field public h:Z

.field public i:J

.field public j:Lz5/x2;

.field public k:I

.field public l: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/i7;

    const/16 v1, 0x10

    new-array v2, v1, [B

    const/4 v3, 0x0

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

    iput-object v0, p0, Lz5/ow1;->a:Lz5/i7;

    new-instance v1, Lz5/j7;

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

    const/4 v2, 0x0

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

    iput-object v1, p0, Lz5/ow1;->b:Lz5/j7;

    iput v3, p0, Lz5/ow1;->f:I

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

    iput-boolean v3, p0, Lz5/ow1;->h:Z

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

    iput-wide v0, p0, Lz5/ow1;->l:J

    iput-object p1, p0, Lz5/ow1;->c:Ljava/lang/String;

    return-void
.end method


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

    iget-object v0, p0, Lz5/ow1;->e: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_19c

    iget v0, p0, Lz5/ow1;->f:I

    const/4 v1, 0x0

    const/4 v2, 0x1

    const/4 v3, 0x2

    if-eqz v0, :cond_157

    if-eq v0, v2, :cond_4c

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

    move-result v0

    iget v2, p0, Lz5/ow1;->k:I

    iget v3, p0, Lz5/ow1;->g:I

    sub-int/2addr v2, v3

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

    move-result v0

    iget-object v2, p0, Lz5/ow1;->e:Lz5/ou1;

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

    .line 2
    iget v2, p0, Lz5/ow1;->g:I

    add-int/2addr v2, v0

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

    iget v7, p0, Lz5/ow1;->k:I

    if-ne v2, v7, :cond_5

    iget-wide v4, p0, Lz5/ow1;->l:J

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

    cmp-long v0, v4, v2

    if-eqz v0, :cond_49

    iget-object v3, p0, Lz5/ow1;->e:Lz5/ou1;

    const/4 v6, 0x1

    const/4 v8, 0x0

    const/4 v9, 0x0

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

    iget-wide v2, p0, Lz5/ow1;->l:J

    iget-wide v4, p0, Lz5/ow1;->i:J

    add-long/2addr v2, v4

    iput-wide v2, p0, Lz5/ow1;->l:J

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

    goto :goto_5

    :cond_4c
    iget-object v0, p0, Lz5/ow1;->b:Lz5/j7;

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

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

    move-result v4

    iget v5, p0, Lz5/ow1;->g:I

    const/16 v6, 0x10

    rsub-int/lit8 v5, v5, 0x10

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

    move-result v4

    iget v5, p0, Lz5/ow1;->g:I

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

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

    add-int/2addr v0, v4

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

    if-ne v0, v6, :cond_5

    iget-object v0, p0, Lz5/ow1;->a:Lz5/i7;

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

    iget-object v0, p0, Lz5/ow1;->a:Lz5/i7;

    .line 5
    invoke-virtual {v0, v6}, Lz5/i7;->x(I)I

    move-result v4

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

    move-result v5

    const/4 v7, 0x4

    const v8, 0xffff

    if-ne v5, v8, :cond_87

    const/16 v5, 0x18

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

    move-result v5

    const/4 v8, 0x7

    goto :goto_88

    :cond_87
    move v8, v7

    :goto_88
    add-int/2addr v5, v8

    const v8, 0xac41

    if-ne v4, v8, :cond_90

    add-int/lit8 v5, v5, 0x2

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

    move-result v4

    const/4 v8, 0x3

    if-ne v4, v8, :cond_a0

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

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

    move-result v4

    if-nez v4, :cond_97

    :cond_a0
    const/16 v4, 0xa

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

    move-result v4

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

    move-result v9

    if-eqz v9, :cond_b5

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

    move-result v9

    if-lez v9, :cond_b5

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

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

    move-result v9

    const v10, 0xac44

    const v11, 0xbb80

    if-eq v2, v9, :cond_c3

    move v9, v10

    goto :goto_c4

    :cond_c3
    move v9, v11

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

    move-result v0

    if-ne v9, v10, :cond_d3

    const/16 v10, 0xd

    if-ne v0, v10, :cond_d3

    sget-object v0, Lz5/nt1;->a:[I

    aget v0, v0, v10

    goto :goto_103

    :cond_d3
    if-ne v9, v11, :cond_102

    const/16 v10, 0xe

    if-ge v0, v10, :cond_102

    sget-object v10, Lz5/nt1;->a:[I

    aget v10, v10, v0

    rem-int/lit8 v4, v4, 0x5

    const/16 v11, 0x8

    if-eq v4, v2, :cond_f8

    const/16 v2, 0xb

    if-eq v4, v3, :cond_f3

    if-eq v4, v8, :cond_f8

    if-eq v4, v7, :cond_ec

    goto :goto_fd

    :cond_ec
    if-eq v0, v8, :cond_ff

    if-eq v0, v11, :cond_ff

    if-ne v0, v2, :cond_fd

    goto :goto_ff

    :cond_f3
    if-eq v0, v11, :cond_ff

    if-ne v0, v2, :cond_fd

    goto :goto_ff

    :cond_f8
    if-eq v0, v8, :cond_ff

    if-ne v0, v11, :cond_fd

    goto :goto_ff

    :cond_fd
    :goto_fd
    move v0, v10

    goto :goto_103

    :cond_ff
    :goto_ff
    add-int/lit8 v0, v10, 0x1

    goto :goto_103

    :cond_102
    move v0, v1

    .line 6
    :goto_103
    iget-object v2, p0, Lz5/ow1;->j:Lz5/x2;

    const-string v4, "audio/ac4"

    if-eqz v2, :cond_119

    iget v7, v2, Lz5/x2;->x:I

    if-ne v7, v3, :cond_119

    iget v7, v2, Lz5/x2;->y:I

    if-ne v9, v7, :cond_119

    iget-object v2, v2, Lz5/x2;->k:Ljava/lang/String;

    invoke-virtual {v4, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_138

    :cond_119
    new-instance v2, Lz5/w2;

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

    iget-object v7, p0, Lz5/ow1;->d:Ljava/lang/String;

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

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

    .line 9
    iput v3, v2, Lz5/w2;->w:I

    .line 10
    iput v9, v2, Lz5/w2;->x:I

    .line 11
    iget-object v4, p0, Lz5/ow1;->c:Ljava/lang/String;

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

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

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

    .line 15
    iput-object v4, p0, Lz5/ow1;->j:Lz5/x2;

    iget-object v2, p0, Lz5/ow1;->e:Lz5/ou1;

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

    :cond_138
    iput v5, p0, Lz5/ow1;->k:I

    int-to-long v4, v0

    const-wide/32 v7, 0xf4240

    mul-long/2addr v4, v7

    iget-object v0, p0, Lz5/ow1;->j:Lz5/x2;

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

    int-to-long v7, v0

    div-long/2addr v4, v7

    iput-wide v4, p0, Lz5/ow1;->i:J

    iget-object v0, p0, Lz5/ow1;->b:Lz5/j7;

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

    iget-object v0, p0, Lz5/ow1;->e:Lz5/ou1;

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

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

    .line 17
    iput v3, p0, Lz5/ow1;->f:I

    goto/16 :goto_5

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

    move-result v0

    if-lez v0, :cond_5

    iget-boolean v0, p0, Lz5/ow1;->h:Z

    const/16 v4, 0xac

    if-nez v0, :cond_16f

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

    move-result v0

    if-ne v0, v4, :cond_16b

    move v0, v2

    goto :goto_16c

    :cond_16b
    move v0, v1

    :goto_16c
    iput-boolean v0, p0, Lz5/ow1;->h:Z

    goto :goto_157

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

    move-result v0

    if-ne v0, v4, :cond_177

    move v4, v2

    goto :goto_178

    :cond_177
    move v4, v1

    :goto_178
    iput-boolean v4, p0, Lz5/ow1;->h:Z

    const/16 v4, 0x40

    const/16 v5, 0x41

    if-eq v0, v4, :cond_183

    if-ne v0, v5, :cond_157

    goto :goto_187

    :cond_183
    if-eq v0, v5, :cond_187

    move v0, v1

    goto :goto_188

    :cond_187
    :goto_187
    move v0, v2

    :goto_188
    iput v2, p0, Lz5/ow1;->f:I

    iget-object v6, p0, Lz5/ow1;->b:Lz5/j7;

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

    const/16 v7, -0x54

    .line 19
    aput-byte v7, v6, v1

    if-eq v2, v0, :cond_195

    goto :goto_196

    :cond_195
    move v4, v5

    :goto_196
    aput-byte v4, v6, v2

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

    goto/16 :goto_5

    :cond_19c
    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/ow1;->l: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/ow1;->d: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/ow1;->e:Lz5/ou1;

    return-void
.end method

.method public final zza()V
    .registers 3

    const/4 v0, 0x0

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

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

    iput-boolean v0, p0, Lz5/ow1;->h:Z

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

    iput-wide v0, p0, Lz5/ow1;->l:J

    return-void
.end method

.method public final zze()V
    .registers 1

    return-void
.end method
