.class public final Lz5/wz0;
.super Lz5/db1;
.source ""

# interfaces
.implements Lz5/b7;


# instance fields
.field public final P0:Landroid/content/Context;

.field public final Q0:Landroidx/appcompat/widget/n;

.field public final R0:Lz5/uq0;

.field public S0:I

.field public T0:Z

.field public U0:Lz5/x2;

.field public V0:J

.field public W0:Z

.field public X0:Z

.field public Y0:Z

.field public Z0:Lz5/d4;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lz5/q91;Lz5/ac1;Landroid/os/Handler;Lz5/do0;Lz5/uq0;)V
    .registers 9

    const/4 v0, 0x1

    const v1, 0x472c4400    # 44100.0f

    invoke-direct {p0, v0, p2, p3, v1}, Lz5/db1;-><init>(ILz5/q91;Lz5/ac1;F)V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lz5/wz0;->P0:Landroid/content/Context;

    iput-object p6, p0, Lz5/wz0;->R0:Lz5/uq0;

    new-instance p1, Landroidx/appcompat/widget/n;

    invoke-direct {p1, p4, p5}, Landroidx/appcompat/widget/n;-><init>(Landroid/os/Handler;Lz5/do0;)V

    iput-object p1, p0, Lz5/wz0;->Q0:Landroidx/appcompat/widget/n;

    new-instance p1, Lz5/fz0;

    invoke-direct {p1, p0}, Lz5/fz0;-><init>(Lz5/wz0;)V

    check-cast p6, Lz5/ky0;

    .line 1
    iput-object p1, p6, Lz5/ky0;->k:Lz5/fz0;

    return-void
.end method


# virtual methods
.method public final B(ZZ)V
    .registers 5

    .line 1
    new-instance p1, Lz5/lg;

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

    iput-object p1, p0, Lz5/db1;->H0:Lz5/lg;

    .line 2
    iget-object p2, p0, Lz5/wz0;->Q0:Landroidx/appcompat/widget/n;

    .line 3
    iget-object v0, p2, Landroidx/appcompat/widget/n;->s:Ljava/lang/Object;

    check-cast v0, Landroid/os/Handler;

    if-eqz v0, :cond_17

    new-instance v1, Ll5/l;

    invoke-direct {v1, p2, p1}, Ll5/l;-><init>(Landroidx/appcompat/widget/n;Lz5/lg;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 4
    :cond_17
    iget-object p1, p0, Lz5/u1;->t:Lz5/f4;

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

    return-void
.end method

.method public final D(JZ)V
    .registers 4

    invoke-super {p0, p1, p2, p3}, Lz5/db1;->D(JZ)V

    iget-object p3, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast p3, Lz5/ky0;

    invoke-virtual {p3}, Lz5/ky0;->t()V

    iput-wide p1, p0, Lz5/wz0;->V0:J

    const/4 p1, 0x1

    iput-boolean p1, p0, Lz5/wz0;->W0:Z

    iput-boolean p1, p0, Lz5/wz0;->X0:Z

    return-void
.end method

.method public final E()V
    .registers 2

    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

    invoke-virtual {v0}, Lz5/ky0;->q()V

    return-void
.end method

.method public final F()V
    .registers 8

    invoke-virtual {p0}, Lz5/wz0;->r0()V

    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

    const/4 v1, 0x0

    .line 1
    iput-boolean v1, v0, Lz5/ky0;->G:Z

    invoke-virtual {v0}, Lz5/ky0;->k()Z

    move-result v2

    if-eqz v2, :cond_3d

    iget-object v2, v0, Lz5/ky0;->f:Lz5/ls0;

    const-wide/16 v3, 0x0

    .line 2
    iput-wide v3, v2, Lz5/ls0;->k:J

    iput v1, v2, Lz5/ls0;->u:I

    iput v1, v2, Lz5/ls0;->t:I

    iput-wide v3, v2, Lz5/ls0;->l:J

    iput-wide v3, v2, Lz5/ls0;->A:J

    iput-wide v3, v2, Lz5/ls0;->D:J

    iput-boolean v1, v2, Lz5/ls0;->j:Z

    .line 3
    iget-wide v3, v2, Lz5/ls0;->v:J

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

    cmp-long v3, v3, v5

    if-nez v3, :cond_36

    iget-object v1, v2, Lz5/ls0;->f:Lz5/or0;

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

    invoke-virtual {v1}, Lz5/or0;->a()V

    const/4 v1, 0x1

    :cond_36
    if-eqz v1, :cond_3d

    .line 4
    iget-object v0, v0, Lz5/ky0;->n:Landroid/media/AudioTrack;

    invoke-virtual {v0}, Landroid/media/AudioTrack;->pause()V

    :cond_3d
    return-void
.end method

.method public final G()V
    .registers 4

    const/4 v0, 0x1

    iput-boolean v0, p0, Lz5/wz0;->Y0:Z

    :try_start_3
    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

    invoke-virtual {v0}, Lz5/ky0;->t()V
    :try_end_a
    .catchall {:try_start_3 .. :try_end_a} :catchall_1e

    :try_start_a
    invoke-super {p0}, Lz5/db1;->G()V
    :try_end_d
    .catchall {:try_start_a .. :try_end_d} :catchall_15

    iget-object v0, p0, Lz5/wz0;->Q0:Landroidx/appcompat/widget/n;

    iget-object v1, p0, Lz5/db1;->H0:Lz5/lg;

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/n;->y(Lz5/lg;)V

    return-void

    :catchall_15
    move-exception v0

    iget-object v1, p0, Lz5/wz0;->Q0:Landroidx/appcompat/widget/n;

    iget-object v2, p0, Lz5/db1;->H0:Lz5/lg;

    invoke-virtual {v1, v2}, Landroidx/appcompat/widget/n;->y(Lz5/lg;)V

    throw v0

    :catchall_1e
    move-exception v0

    :try_start_1f
    invoke-super {p0}, Lz5/db1;->G()V
    :try_end_22
    .catchall {:try_start_1f .. :try_end_22} :catchall_2a

    iget-object v1, p0, Lz5/wz0;->Q0:Landroidx/appcompat/widget/n;

    iget-object v2, p0, Lz5/db1;->H0:Lz5/lg;

    invoke-virtual {v1, v2}, Landroidx/appcompat/widget/n;->y(Lz5/lg;)V

    throw v0

    :catchall_2a
    move-exception v0

    iget-object v1, p0, Lz5/wz0;->Q0:Landroidx/appcompat/widget/n;

    iget-object v2, p0, Lz5/db1;->H0:Lz5/lg;

    invoke-virtual {v1, v2}, Landroidx/appcompat/widget/n;->y(Lz5/lg;)V

    throw v0
.end method

.method public final H()V
    .registers 4

    const/4 v0, 0x0

    :try_start_1
    invoke-super {p0}, Lz5/db1;->H()V
    :try_end_4
    .catchall {:try_start_1 .. :try_end_4} :catchall_12

    iget-boolean v1, p0, Lz5/wz0;->Y0:Z

    if-eqz v1, :cond_11

    iput-boolean v0, p0, Lz5/wz0;->Y0:Z

    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

    invoke-virtual {v0}, Lz5/ky0;->u()V

    :cond_11
    return-void

    :catchall_12
    move-exception v1

    iget-boolean v2, p0, Lz5/wz0;->Y0:Z

    if-nez v2, :cond_18

    goto :goto_21

    :cond_18
    iput-boolean v0, p0, Lz5/wz0;->Y0:Z

    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

    invoke-virtual {v0}, Lz5/ky0;->u()V

    :goto_21
    throw v1
.end method

.method public final J(Lcom/google/android/gms/internal/ads/b;)V
    .registers 6

    iget-boolean v0, p0, Lz5/wz0;->W0:Z

    if-eqz v0, :cond_21

    invoke-virtual {p1}, Lcom/google/android/gms/internal/ads/b;->b()Z

    move-result v0

    if-nez v0, :cond_21

    iget-wide v0, p1, Lcom/google/android/gms/internal/ads/b;->e:J

    iget-wide v2, p0, Lz5/wz0;->V0:J

    sub-long/2addr v0, v2

    invoke-static {v0, v1}, Ljava/lang/Math;->abs(J)J

    move-result-wide v0

    const-wide/32 v2, 0x7a120

    cmp-long v0, v0, v2

    if-lez v0, :cond_1e

    iget-wide v0, p1, Lcom/google/android/gms/internal/ads/b;->e:J

    iput-wide v0, p0, Lz5/wz0;->V0:J

    :cond_1e
    const/4 p1, 0x0

    iput-boolean p1, p0, Lz5/wz0;->W0:Z

    :cond_21
    return-void
.end method

.method public final K()V
    .registers 3

    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

    const/4 v1, 0x1

    .line 1
    iput-boolean v1, v0, Lz5/ky0;->t:Z

    return-void
.end method

.method public final L()V
    .registers 5

    :try_start_0
    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

    .line 1
    iget-boolean v1, v0, Lz5/ky0;->E:Z

    if-nez v1, :cond_1a

    invoke-virtual {v0}, Lz5/ky0;->k()Z

    move-result v1

    if-eqz v1, :cond_1a

    invoke-virtual {v0}, Lz5/ky0;->e()Z

    move-result v1

    if-eqz v1, :cond_1a

    invoke-virtual {v0}, Lz5/ky0;->n()V

    const/4 v1, 0x1

    iput-boolean v1, v0, Lz5/ky0;->E:Z
    :try_end_1a
    .catch Lz5/iq0; {:try_start_0 .. :try_end_1a} :catch_1b

    :cond_1a
    return-void

    :catch_1b
    move-exception v0

    .line 2
    iget-object v1, v0, Lz5/iq0;->s:Lz5/x2;

    iget-boolean v2, v0, Lz5/iq0;->r:Z

    const/16 v3, 0x138a

    invoke-virtual {p0, v0, v1, v2, v3}, Lz5/u1;->z(Ljava/lang/Throwable;Lz5/x2;ZI)Lz5/c2;

    move-result-object v0

    throw v0
.end method

.method public final M(JJLz5/tl1;Ljava/nio/ByteBuffer;IIIJZZLz5/x2;)Z
    .registers 15

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

    iget-object p1, p0, Lz5/wz0;->U0:Lz5/x2;

    const/4 p2, 0x1

    const/4 p3, 0x0

    if-eqz p1, :cond_16

    and-int/lit8 p1, p8, 0x2

    if-eqz p1, :cond_16

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

    .line 1
    iget-object p1, p5, Lz5/tl1;->a:Landroid/media/MediaCodec;

    invoke-virtual {p1, p7, p3}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V

    return p2

    :cond_16
    if-eqz p12, :cond_2d

    if-eqz p5, :cond_1f

    iget-object p1, p5, Lz5/tl1;->a:Landroid/media/MediaCodec;

    invoke-virtual {p1, p7, p3}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V

    .line 2
    :cond_1f
    iget-object p1, p0, Lz5/db1;->H0:Lz5/lg;

    iget p3, p1, Lz5/lg;->f:I

    add-int/2addr p3, p9

    iput p3, p1, Lz5/lg;->f:I

    iget-object p1, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast p1, Lz5/ky0;

    .line 3
    iput-boolean p2, p1, Lz5/ky0;->t:Z

    return p2

    .line 4
    :cond_2d
    :try_start_2d
    iget-object p1, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast p1, Lz5/ky0;

    invoke-virtual {p1, p6, p10, p11, p9}, Lz5/ky0;->r(Ljava/nio/ByteBuffer;JI)Z

    move-result p1
    :try_end_35
    .catch Lz5/fp0; {:try_start_2d .. :try_end_35} :catch_51
    .catch Lz5/iq0; {:try_start_2d .. :try_end_35} :catch_47

    if-eqz p1, :cond_46

    if-eqz p5, :cond_3e

    .line 5
    iget-object p1, p5, Lz5/tl1;->a:Landroid/media/MediaCodec;

    invoke-virtual {p1, p7, p3}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V

    .line 6
    :cond_3e
    iget-object p1, p0, Lz5/db1;->H0:Lz5/lg;

    iget p3, p1, Lz5/lg;->e:I

    add-int/2addr p3, p9

    iput p3, p1, Lz5/lg;->e:I

    return p2

    :cond_46
    return p3

    :catch_47
    move-exception p1

    iget-boolean p2, p1, Lz5/iq0;->r:Z

    const/16 p3, 0x138a

    invoke-virtual {p0, p1, p14, p2, p3}, Lz5/u1;->z(Ljava/lang/Throwable;Lz5/x2;ZI)Lz5/c2;

    move-result-object p1

    throw p1

    :catch_51
    move-exception p1

    iget-object p2, p1, Lz5/fp0;->r:Lz5/x2;

    const/16 p4, 0x1389

    invoke-virtual {p0, p1, p2, p3, p4}, Lz5/u1;->z(Ljava/lang/Throwable;Lz5/x2;ZI)Lz5/c2;

    move-result-object p1

    throw p1
.end method

.method public final c(ILjava/lang/Object;)V
    .registers 4

    const/4 v0, 0x2

    if-eq p1, v0, :cond_74

    const/4 v0, 0x3

    if-eq p1, v0, :cond_5f

    const/4 v0, 0x6

    if-eq p1, v0, :cond_41

    packed-switch p1, :pswitch_data_8a

    return-void

    :pswitch_d
    check-cast p2, Lz5/d4;

    iput-object p2, p0, Lz5/wz0;->Z0:Lz5/d4;

    return-void

    :pswitch_12
    iget-object p1, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast p2, Ljava/lang/Integer;

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    check-cast p1, Lz5/ky0;

    .line 1
    iget v0, p1, Lz5/ky0;->I:I

    if-eq v0, p2, :cond_2c

    iput p2, p1, Lz5/ky0;->I:I

    if-eqz p2, :cond_26

    const/4 p2, 0x1

    goto :goto_27

    :cond_26
    const/4 p2, 0x0

    :goto_27
    iput-boolean p2, p1, Lz5/ky0;->H:Z

    invoke-virtual {p1}, Lz5/ky0;->t()V

    :cond_2c
    return-void

    .line 2
    :pswitch_2d
    iget-object p1, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast p2, Ljava/lang/Boolean;

    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p2

    check-cast p1, Lz5/ky0;

    .line 3
    invoke-virtual {p1}, Lz5/ky0;->h()Lz5/qv0;

    move-result-object v0

    iget-object v0, v0, Lz5/qv0;->a:Lz5/u3;

    invoke-virtual {p1, v0, p2}, Lz5/ky0;->g(Lz5/u3;Z)V

    return-void

    .line 4
    :cond_41
    check-cast p2, Lz5/op1;

    iget-object p1, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast p1, Lz5/ky0;

    .line 5
    iget-object v0, p1, Lz5/ky0;->J:Lz5/op1;

    invoke-virtual {v0, p2}, Lz5/op1;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_50

    goto :goto_5e

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

    iget-object v0, p1, Lz5/ky0;->n:Landroid/media/AudioTrack;

    if-eqz v0, :cond_5c

    iget-object v0, p1, Lz5/ky0;->J:Lz5/op1;

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

    :cond_5c
    iput-object p2, p1, Lz5/ky0;->J:Lz5/op1;

    :goto_5e
    return-void

    .line 6
    :cond_5f
    check-cast p2, Lz5/ch1;

    iget-object p1, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast p1, Lz5/ky0;

    .line 7
    iget-object v0, p1, Lz5/ky0;->o:Lz5/ch1;

    invoke-virtual {v0, p2}, Lz5/ch1;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6e

    goto :goto_73

    :cond_6e
    iput-object p2, p1, Lz5/ky0;->o:Lz5/ch1;

    invoke-virtual {p1}, Lz5/ky0;->t()V

    :goto_73
    return-void

    .line 8
    :cond_74
    iget-object p1, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast p2, Ljava/lang/Float;

    invoke-virtual {p2}, Ljava/lang/Float;->floatValue()F

    move-result p2

    check-cast p1, Lz5/ky0;

    .line 9
    iget v0, p1, Lz5/ky0;->w:F

    cmpl-float v0, v0, p2

    if-eqz v0, :cond_89

    iput p2, p1, Lz5/ky0;->w:F

    invoke-virtual {p1}, Lz5/ky0;->f()V

    :cond_89
    return-void

    :pswitch_data_8a
    .packed-switch 0x9
        :pswitch_2d
        :pswitch_12
        :pswitch_d
    .end packed-switch
.end method

.method public final d0(Lz5/ac1;Lz5/x2;)I
    .registers 12

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

    invoke-static {v0}, Lz5/d7;->a(Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_a

    return v1

    :cond_a
    sget v0, Lz5/r7;->a:I

    const/16 v2, 0x15

    if-lt v0, v2, :cond_13

    const/16 v0, 0x20

    goto :goto_14

    :cond_13
    move v0, v1

    :goto_14
    iget v2, p2, Lz5/x2;->D:I

    const/4 v3, 0x1

    if-eqz v2, :cond_1b

    move v4, v1

    goto :goto_1c

    :cond_1b
    move v4, v3

    :goto_1c
    const-string v5, "audio/raw"

    if-eqz v4, :cond_3b

    iget-object v6, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v6, Lz5/ky0;

    .line 1
    invoke-virtual {v6, p2}, Lz5/ky0;->o(Lz5/x2;)I

    move-result v6

    if-eqz v6, :cond_2c

    move v6, v3

    goto :goto_2d

    :cond_2c
    move v6, v1

    :goto_2d
    if-eqz v6, :cond_3b

    if-eqz v2, :cond_38

    .line 2
    invoke-static {v5}, Lz5/jj1;->a(Ljava/lang/String;)Lz5/ja1;

    move-result-object v2

    if-nez v2, :cond_38

    goto :goto_3b

    :cond_38
    or-int/lit8 p1, v0, 0xc

    return p1

    .line 3
    :cond_3b
    :goto_3b
    iget-object v2, p2, Lz5/x2;->k:Ljava/lang/String;

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

    move-result v2

    if-eqz v2, :cond_54

    iget-object v2, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v2, Lz5/ky0;

    .line 4
    invoke-virtual {v2, p2}, Lz5/ky0;->o(Lz5/x2;)I

    move-result v2

    if-eqz v2, :cond_4f

    move v2, v3

    goto :goto_50

    :cond_4f
    move v2, v1

    :goto_50
    if-eqz v2, :cond_53

    goto :goto_54

    :cond_53
    return v3

    .line 5
    :cond_54
    :goto_54
    iget-object v2, p0, Lz5/wz0;->R0:Lz5/uq0;

    iget v6, p2, Lz5/x2;->x:I

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

    .line 6
    new-instance v8, Lz5/w2;

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

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

    .line 8
    iput v6, v8, Lz5/w2;->w:I

    .line 9
    iput v7, v8, Lz5/w2;->x:I

    const/4 v5, 0x2

    .line 10
    iput v5, v8, Lz5/w2;->y:I

    .line 11
    new-instance v6, Lz5/x2;

    .line 12
    invoke-direct {v6, v8}, Lz5/x2;-><init>(Lz5/w2;)V

    .line 13
    check-cast v2, Lz5/ky0;

    .line 14
    invoke-virtual {v2, v6}, Lz5/ky0;->o(Lz5/x2;)I

    move-result v2

    if-eqz v2, :cond_77

    move v2, v3

    goto :goto_78

    :cond_77
    move v2, v1

    :goto_78
    if-nez v2, :cond_7b

    return v3

    .line 15
    :cond_7b
    invoke-virtual {p0, p1, p2, v1}, Lz5/wz0;->e0(Lz5/ac1;Lz5/x2;Z)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v2

    if-eqz v2, :cond_86

    return v3

    :cond_86
    if-nez v4, :cond_89

    return v5

    :cond_89
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lz5/ja1;

    invoke-virtual {p1, p2}, Lz5/ja1;->c(Lz5/x2;)Z

    move-result v1

    const/16 v2, 0x8

    if-eqz v1, :cond_9f

    invoke-virtual {p1, p2}, Lz5/ja1;->d(Lz5/x2;)Z

    move-result p1

    if-eqz p1, :cond_9f

    const/16 v2, 0x10

    :cond_9f
    if-eq v3, v1, :cond_a3

    const/4 p1, 0x3

    goto :goto_a4

    :cond_a3
    const/4 p1, 0x4

    :goto_a4
    or-int/2addr p1, v2

    or-int/2addr p1, v0

    return p1
.end method

.method public final e0(Lz5/ac1;Lz5/x2;Z)Ljava/util/List;
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/ac1;",
            "Lz5/x2;",
            "Z)",
            "Ljava/util/List<",
            "Lz5/ja1;",
            ">;"
        }
    .end annotation

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

    if-nez p1, :cond_9

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

    move-result-object p1

    return-object p1

    :cond_9
    iget-object p3, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast p3, Lz5/ky0;

    .line 1
    invoke-virtual {p3, p2}, Lz5/ky0;->o(Lz5/x2;)I

    move-result p3

    const/4 v0, 0x0

    if-eqz p3, :cond_16

    const/4 p3, 0x1

    goto :goto_17

    :cond_16
    move p3, v0

    :goto_17
    if-eqz p3, :cond_27

    const-string p3, "audio/raw"

    .line 2
    invoke-static {p3}, Lz5/jj1;->a(Ljava/lang/String;)Lz5/ja1;

    move-result-object p3

    if-nez p3, :cond_22

    goto :goto_27

    .line 3
    :cond_22
    invoke-static {p3}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object p1

    return-object p1

    :cond_27
    :goto_27
    invoke-static {p1, v0, v0}, Lz5/jj1;->b(Ljava/lang/String;ZZ)Ljava/util/List;

    move-result-object p3

    .line 4
    new-instance v1, Ljava/util/ArrayList;

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

    new-instance p3, Lz5/i51;

    invoke-direct {p3, p2}, Lz5/i51;-><init>(Lz5/x2;)V

    invoke-static {v1, p3}, Lz5/jj1;->g(Ljava/util/List;Lz5/wi1;)V

    const-string p2, "audio/eac3-joc"

    .line 5
    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_4f

    new-instance p1, Ljava/util/ArrayList;

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

    const-string p2, "audio/eac3"

    invoke-static {p2, v0, v0}, Lz5/jj1;->b(Ljava/lang/String;ZZ)Ljava/util/List;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    move-object v1, p1

    :cond_4f
    invoke-static {v1}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;

    move-result-object p1

    return-object p1
.end method

.method public final f0(Lz5/x2;)Z
    .registers 3

    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

    .line 1
    invoke-virtual {v0, p1}, Lz5/ky0;->o(Lz5/x2;)I

    move-result p1

    if-eqz p1, :cond_c

    const/4 p1, 0x1

    goto :goto_d

    :cond_c
    const/4 p1, 0x0

    :goto_d
    return p1
.end method

.method public final g()Z
    .registers 5

    .line 1
    iget-boolean v0, p0, Lz5/db1;->F0:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_21

    .line 2
    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

    .line 3
    invoke-virtual {v0}, Lz5/ky0;->k()Z

    move-result v2

    const/4 v3, 0x1

    if-eqz v2, :cond_1d

    iget-boolean v2, v0, Lz5/ky0;->E:Z

    if-eqz v2, :cond_1b

    invoke-virtual {v0}, Lz5/ky0;->s()Z

    move-result v0

    if-nez v0, :cond_1b

    goto :goto_1d

    :cond_1b
    move v0, v1

    goto :goto_1e

    :cond_1d
    :goto_1d
    move v0, v3

    :goto_1e
    if-eqz v0, :cond_21

    return v3

    :cond_21
    return v1
.end method

.method public final g0(Lz5/ja1;Lz5/x2;Landroid/media/MediaCrypto;F)Lz5/x;
    .registers 12

    .line 1
    iget-object p3, p0, Lz5/u1;->x:[Lz5/x2;

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

    .line 2
    invoke-virtual {p0, p1, p2}, Lz5/wz0;->q0(Lz5/ja1;Lz5/x2;)I

    move-result v0

    array-length v1, p3

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-ne v1, v2, :cond_f

    goto :goto_27

    :cond_f
    move v4, v3

    :goto_10
    if-ge v4, v1, :cond_27

    aget-object v5, p3, v4

    invoke-virtual {p1, p2, v5}, Lz5/ja1;->e(Lz5/x2;Lz5/x2;)Lz5/dh;

    move-result-object v6

    iget v6, v6, Lz5/dh;->d:I

    if-eqz v6, :cond_24

    invoke-virtual {p0, p1, v5}, Lz5/wz0;->q0(Lz5/ja1;Lz5/x2;)I

    move-result v5

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

    move-result v0

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

    goto :goto_10

    :cond_27
    :goto_27
    iput v0, p0, Lz5/wz0;->S0:I

    iget-object p3, p1, Lz5/ja1;->a:Ljava/lang/String;

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

    const/16 v1, 0x18

    if-ge v0, v1, :cond_5f

    const-string v4, "OMX.SEC.aac.dec"

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

    move-result p3

    if-eqz p3, :cond_5f

    sget-object p3, Lz5/r7;->c:Ljava/lang/String;

    const-string v4, "samsung"

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

    move-result p3

    if-eqz p3, :cond_5f

    sget-object p3, Lz5/r7;->b:Ljava/lang/String;

    const-string v4, "zeroflte"

    invoke-virtual {p3, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_5d

    const-string v4, "herolte"

    invoke-virtual {p3, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_5d

    const-string v4, "heroqlte"

    invoke-virtual {p3, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p3

    if-eqz p3, :cond_5f

    :cond_5d
    move p3, v2

    goto :goto_60

    :cond_5f
    move p3, v3

    :goto_60
    iput-boolean p3, p0, Lz5/wz0;->T0:Z

    iget-object p3, p1, Lz5/ja1;->c:Ljava/lang/String;

    iget v4, p0, Lz5/wz0;->S0:I

    new-instance v5, Landroid/media/MediaFormat;

    invoke-direct {v5}, Landroid/media/MediaFormat;-><init>()V

    const-string v6, "mime"

    invoke-virtual {v5, v6, p3}, Landroid/media/MediaFormat;->setString(Ljava/lang/String;Ljava/lang/String;)V

    iget p3, p2, Lz5/x2;->x:I

    const-string v6, "channel-count"

    invoke-virtual {v5, v6, p3}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V

    iget p3, p2, Lz5/x2;->y:I

    const-string v6, "sample-rate"

    invoke-virtual {v5, v6, p3}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V

    iget-object p3, p2, Lz5/x2;->m:Ljava/util/List;

    invoke-static {v5, p3}, Lcom/google/android/gms/internal/ads/h8;->f(Landroid/media/MediaFormat;Ljava/util/List;)V

    const-string p3, "max-input-size"

    invoke-static {v5, p3, v4}, Lcom/google/android/gms/internal/ads/h8;->l(Landroid/media/MediaFormat;Ljava/lang/String;I)V

    const/16 p3, 0x17

    if-lt v0, p3, :cond_b0

    const-string v4, "priority"

    invoke-virtual {v5, v4, v3}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V

    const/high16 v3, -0x40800000    # -1.0f

    cmpl-float v3, p4, v3

    if-eqz v3, :cond_b0

    if-ne v0, p3, :cond_ab

    sget-object p3, Lz5/r7;->d:Ljava/lang/String;

    const-string v3, "ZTE B2017G"

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

    move-result v3

    if-nez v3, :cond_b0

    const-string v3, "AXON 7 mini"

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

    move-result p3

    if-nez p3, :cond_b0

    :cond_ab
    const-string p3, "operating-rate"

    invoke-virtual {v5, p3, p4}, Landroid/media/MediaFormat;->setFloat(Ljava/lang/String;F)V

    :cond_b0
    const/16 p3, 0x1c

    if-gt v0, p3, :cond_c3

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

    const-string p4, "audio/ac4"

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

    move-result p3

    if-eqz p3, :cond_c3

    const-string p3, "ac4-is-sync"

    invoke-virtual {v5, p3, v2}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V

    :cond_c3
    const-string p3, "audio/raw"

    if-lt v0, v1, :cond_ee

    iget-object p4, p0, Lz5/wz0;->R0:Lz5/uq0;

    iget v0, p2, Lz5/x2;->x:I

    iget v1, p2, Lz5/x2;->y:I

    .line 3
    new-instance v2, Lz5/w2;

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

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

    .line 5
    iput v0, v2, Lz5/w2;->w:I

    .line 6
    iput v1, v2, Lz5/w2;->x:I

    const/4 v0, 0x4

    .line 7
    iput v0, v2, Lz5/w2;->y:I

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

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

    .line 10
    check-cast p4, Lz5/ky0;

    invoke-virtual {p4, v1}, Lz5/ky0;->o(Lz5/x2;)I

    move-result p4

    const/4 v1, 0x2

    if-ne p4, v1, :cond_ee

    const-string p4, "pcm-encoding"

    invoke-virtual {v5, p4, v0}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V

    :cond_ee
    iget-object p4, p1, Lz5/ja1;->b:Ljava/lang/String;

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

    move-result p4

    const/4 v0, 0x0

    if-eqz p4, :cond_101

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

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

    move-result p3

    if-nez p3, :cond_101

    move-object p3, p2

    goto :goto_102

    :cond_101
    move-object p3, v0

    :goto_102
    iput-object p3, p0, Lz5/wz0;->U0:Lz5/x2;

    .line 11
    new-instance p3, Lz5/x;

    invoke-direct {p3, p1, v5, p2, v0}, Lz5/x;-><init>(Lz5/ja1;Landroid/media/MediaFormat;Lz5/x2;Landroid/view/Surface;)V

    return-object p3
.end method

.method public final h0(Lz5/ja1;Lz5/x2;Lz5/x2;)Lz5/dh;
    .registers 13

    invoke-virtual {p1, p2, p3}, Lz5/ja1;->e(Lz5/x2;Lz5/x2;)Lz5/dh;

    move-result-object v0

    iget v1, v0, Lz5/dh;->e:I

    invoke-virtual {p0, p1, p3}, Lz5/wz0;->q0(Lz5/ja1;Lz5/x2;)I

    move-result v2

    iget v3, p0, Lz5/wz0;->S0:I

    if-le v2, v3, :cond_10

    or-int/lit8 v1, v1, 0x40

    :cond_10
    new-instance v8, Lz5/dh;

    iget-object v3, p1, Lz5/ja1;->a:Ljava/lang/String;

    const/4 p1, 0x0

    if-eqz v1, :cond_1a

    move v6, p1

    move v7, v1

    goto :goto_1e

    :cond_1a
    iget v0, v0, Lz5/dh;->d:I

    move v7, p1

    move v6, v0

    :goto_1e
    move-object v2, v8

    move-object v4, p2

    move-object v5, p3

    invoke-direct/range {v2 .. v7}, Lz5/dh;-><init>(Ljava/lang/String;Lz5/x2;Lz5/x2;II)V

    return-object v8
.end method

.method public final i0(FLz5/x2;[Lz5/x2;)F
    .registers 8

    array-length p2, p3

    const/4 v0, -0x1

    const/4 v1, 0x0

    move v2, v0

    :goto_4
    if-ge v1, p2, :cond_13

    aget-object v3, p3, v1

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

    if-eq v3, v0, :cond_10

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

    move-result v2

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

    goto :goto_4

    :cond_13
    if-ne v2, v0, :cond_18

    const/high16 p1, -0x40800000    # -1.0f

    return p1

    :cond_18
    int-to-float p2, v2

    mul-float/2addr p2, p1

    return p2
.end method

.method public final j0(Ljava/lang/String;JJ)V
    .registers 15

    iget-object v1, p0, Lz5/wz0;->Q0:Landroidx/appcompat/widget/n;

    .line 1
    iget-object v0, v1, Landroidx/appcompat/widget/n;->s:Ljava/lang/Object;

    move-object v7, v0

    check-cast v7, Landroid/os/Handler;

    if-eqz v7, :cond_15

    new-instance v8, Lz5/yi0;

    move-object v0, v8

    move-object v2, p1

    move-wide v3, p2

    move-wide v5, p4

    invoke-direct/range {v0 .. v6}, Lz5/yi0;-><init>(Landroidx/appcompat/widget/n;Ljava/lang/String;JJ)V

    invoke-virtual {v7, v8}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_15
    return-void
.end method

.method public final k0(Ljava/lang/String;)V
    .registers 3

    iget-object v0, p0, Lz5/wz0;->Q0:Landroidx/appcompat/widget/n;

    invoke-virtual {v0, p1}, Landroidx/appcompat/widget/n;->v(Ljava/lang/String;)V

    return-void
.end method

.method public final l0(Ljava/lang/Exception;)V
    .registers 6

    const-string v0, "MediaCodecAudioRenderer"

    const-string v1, "Audio codec error"

    invoke-static {v0, v1, p1}, Lcom/google/android/gms/internal/ads/f;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    iget-object v0, p0, Lz5/wz0;->Q0:Landroidx/appcompat/widget/n;

    .line 1
    iget-object v1, v0, Landroidx/appcompat/widget/n;->s:Ljava/lang/Object;

    check-cast v1, Landroid/os/Handler;

    if-eqz v1, :cond_18

    new-instance v2, Lz5/qm0;

    const/4 v3, 0x1

    invoke-direct {v2, v0, p1, v3}, Lz5/qm0;-><init>(Landroidx/appcompat/widget/n;Ljava/lang/Exception;I)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_18
    return-void
.end method

.method public final m0(Landroidx/appcompat/widget/n;)Lz5/dh;
    .registers 6

    invoke-super {p0, p1}, Lz5/db1;->m0(Landroidx/appcompat/widget/n;)Lz5/dh;

    move-result-object v0

    iget-object v1, p0, Lz5/wz0;->Q0:Landroidx/appcompat/widget/n;

    iget-object p1, p1, Landroidx/appcompat/widget/n;->s:Ljava/lang/Object;

    check-cast p1, Lz5/x2;

    .line 1
    iget-object v2, v1, Landroidx/appcompat/widget/n;->s:Ljava/lang/Object;

    check-cast v2, Landroid/os/Handler;

    if-eqz v2, :cond_18

    new-instance v3, Lz5/i3;

    invoke-direct {v3, v1, p1, v0}, Lz5/i3;-><init>(Landroidx/appcompat/widget/n;Lz5/x2;Lz5/dh;)V

    invoke-virtual {v2, v3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_18
    return-object v0
.end method

.method public final n0(Lz5/x2;Landroid/media/MediaFormat;)V
    .registers 8

    iget-object v0, p0, Lz5/wz0;->U0:Lz5/x2;

    const/4 v1, 0x0

    const/4 v2, 0x0

    if-eqz v0, :cond_9

    move-object p1, v0

    goto/16 :goto_8a

    .line 1
    :cond_9
    iget-object v0, p0, Lz5/db1;->L0:Lz5/tl1;

    if-nez v0, :cond_f

    goto/16 :goto_8a

    .line 2
    :cond_f
    iget-object v0, p1, Lz5/x2;->k:Ljava/lang/String;

    const-string v3, "audio/raw"

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

    move-result v0

    if-eqz v0, :cond_1c

    :goto_19
    iget v0, p1, Lz5/x2;->z:I

    goto :goto_4a

    :cond_1c
    sget v0, Lz5/r7;->a:I

    const/16 v4, 0x18

    if-lt v0, v4, :cond_2f

    const-string v0, "pcm-encoding"

    invoke-virtual {p2, v0}, Landroid/media/MediaFormat;->containsKey(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_2f

    invoke-virtual {p2, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v0

    goto :goto_4a

    :cond_2f
    const-string v0, "v-bits-per-sample"

    invoke-virtual {p2, v0}, Landroid/media/MediaFormat;->containsKey(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_40

    invoke-virtual {p2, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v0

    invoke-static {v0}, Lz5/r7;->g(I)I

    move-result v0

    goto :goto_4a

    :cond_40
    iget-object v0, p1, Lz5/x2;->k:Ljava/lang/String;

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

    move-result v0

    if-eqz v0, :cond_49

    goto :goto_19

    :cond_49
    const/4 v0, 0x2

    :goto_4a
    new-instance v4, Lz5/w2;

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

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

    .line 4
    iput v0, v4, Lz5/w2;->y:I

    .line 5
    iget v0, p1, Lz5/x2;->A:I

    .line 6
    iput v0, v4, Lz5/w2;->z:I

    .line 7
    iget v0, p1, Lz5/x2;->B:I

    .line 8
    iput v0, v4, Lz5/w2;->A:I

    const-string v0, "channel-count"

    .line 9
    invoke-virtual {p2, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v0

    .line 10
    iput v0, v4, Lz5/w2;->w:I

    const-string v0, "sample-rate"

    .line 11
    invoke-virtual {p2, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result p2

    .line 12
    iput p2, v4, Lz5/w2;->x:I

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

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

    .line 15
    iget-boolean v0, p0, Lz5/wz0;->T0:Z

    if-eqz v0, :cond_89

    iget v0, p2, Lz5/x2;->x:I

    const/4 v3, 0x6

    if-ne v0, v3, :cond_89

    iget v0, p1, Lz5/x2;->x:I

    if-ge v0, v3, :cond_89

    new-array v2, v0, [I

    move v0, v1

    :goto_80
    iget v3, p1, Lz5/x2;->x:I

    if-ge v0, v3, :cond_89

    aput v0, v2, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_80

    :cond_89
    move-object p1, p2

    :goto_8a
    :try_start_8a
    iget-object p2, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast p2, Lz5/ky0;

    invoke-virtual {p2, p1, v1, v2}, Lz5/ky0;->p(Lz5/x2;I[I)V
    :try_end_91
    .catch Lz5/no0; {:try_start_8a .. :try_end_91} :catch_92

    return-void

    :catch_92
    move-exception p1

    iget-object p2, p1, Lz5/no0;->r:Lz5/x2;

    const/16 v0, 0x1389

    invoke-virtual {p0, p1, p2, v1, v0}, Lz5/u1;->z(Ljava/lang/Throwable;Lz5/x2;ZI)Lz5/c2;

    move-result-object p1

    throw p1
.end method

.method public final p(Lz5/u3;)V
    .registers 7

    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

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

    .line 1
    new-instance v1, Lz5/u3;

    iget v2, p1, Lz5/u3;->a:F

    const v3, 0x3dcccccd    # 0.1f

    const/high16 v4, 0x41000000    # 8.0f

    invoke-static {v2, v3, v4}, Lz5/r7;->x(FFF)F

    move-result v2

    iget p1, p1, Lz5/u3;->b:F

    invoke-static {p1, v3, v4}, Lz5/r7;->x(FFF)F

    move-result p1

    invoke-direct {v1, v2, p1}, Lz5/u3;-><init>(FF)V

    invoke-virtual {v0}, Lz5/ky0;->h()Lz5/qv0;

    move-result-object p1

    iget-boolean p1, p1, Lz5/qv0;->b:Z

    invoke-virtual {v0, v1, p1}, Lz5/ky0;->g(Lz5/u3;Z)V

    return-void
.end method

.method public final q0(Lz5/ja1;Lz5/x2;)I
    .registers 4

    iget-object p1, p1, Lz5/ja1;->a:Ljava/lang/String;

    const-string v0, "OMX.google.raw.decoder"

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

    move-result p1

    if-eqz p1, :cond_1e

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

    const/16 v0, 0x18

    if-ge p1, v0, :cond_1e

    const/16 v0, 0x17

    if-ne p1, v0, :cond_1c

    iget-object p1, p0, Lz5/wz0;->P0:Landroid/content/Context;

    invoke-static {p1}, Lz5/r7;->j(Landroid/content/Context;)Z

    move-result p1

    if-nez p1, :cond_1e

    :cond_1c
    const/4 p1, -0x1

    return p1

    :cond_1e
    iget p1, p2, Lz5/x2;->l:I

    return p1
.end method

.method public final r0()V
    .registers 24

    move-object/from16 v0, p0

    iget-object v1, v0, Lz5/wz0;->R0:Lz5/uq0;

    invoke-virtual/range {p0 .. p0}, Lz5/wz0;->g()Z

    move-result v2

    check-cast v1, Lz5/ky0;

    .line 1
    invoke-virtual {v1}, Lz5/ky0;->k()Z

    move-result v3

    if-eqz v3, :cond_3f3

    iget-boolean v3, v1, Lz5/ky0;->u:Z

    if-eqz v3, :cond_16

    goto/16 :goto_3f3

    :cond_16
    iget-object v3, v1, Lz5/ky0;->f:Lz5/ls0;

    .line 2
    iget-object v4, v3, Lz5/ls0;->c:Landroid/media/AudioTrack;

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

    invoke-virtual {v4}, Landroid/media/AudioTrack;->getPlayState()I

    move-result v4

    const/4 v5, 0x3

    const-wide/16 v6, 0x0

    const-wide/16 v8, 0x3e8

    if-ne v4, v5, :cond_261

    invoke-virtual {v3}, Lz5/ls0;->c()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Lz5/ls0;->b(J)J

    move-result-wide v4

    cmp-long v10, v4, v6

    if-nez v10, :cond_36

    goto/16 :goto_261

    :cond_36
    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v10

    div-long/2addr v10, v8

    iget-wide v12, v3, Lz5/ls0;->l:J

    sub-long v12, v10, v12

    const-wide/16 v14, 0x7530

    cmp-long v12, v12, v14

    if-ltz v12, :cond_76

    iget-object v12, v3, Lz5/ls0;->b:[J

    iget v13, v3, Lz5/ls0;->t:I

    sub-long v14, v4, v10

    aput-wide v14, v12, v13

    add-int/lit8 v13, v13, 0x1

    const/16 v12, 0xa

    rem-int/2addr v13, v12

    iput v13, v3, Lz5/ls0;->t:I

    iget v13, v3, Lz5/ls0;->u:I

    if-ge v13, v12, :cond_5c

    add-int/lit8 v13, v13, 0x1

    iput v13, v3, Lz5/ls0;->u:I

    :cond_5c
    iput-wide v10, v3, Lz5/ls0;->l:J

    iput-wide v6, v3, Lz5/ls0;->k:J

    const/4 v6, 0x0

    :goto_61
    iget v7, v3, Lz5/ls0;->u:I

    if-ge v6, v7, :cond_76

    iget-wide v12, v3, Lz5/ls0;->k:J

    iget-object v14, v3, Lz5/ls0;->b:[J

    aget-wide v15, v14, v6

    int-to-long v8, v7

    div-long/2addr v15, v8

    add-long v7, v15, v12

    iput-wide v7, v3, Lz5/ls0;->k:J

    add-int/lit8 v6, v6, 0x1

    const-wide/16 v8, 0x3e8

    goto :goto_61

    :cond_76
    iget-object v6, v3, Lz5/ls0;->f:Lz5/or0;

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

    .line 3
    iget-object v7, v6, Lz5/or0;->a:Lz5/er0;

    if-eqz v7, :cond_116

    iget-wide v8, v6, Lz5/or0;->e:J

    sub-long v8, v10, v8

    iget-wide v12, v6, Lz5/or0;->d:J

    cmp-long v8, v8, v12

    if-gez v8, :cond_8b

    goto/16 :goto_116

    :cond_8b
    iput-wide v10, v6, Lz5/or0;->e:J

    .line 4
    iget-object v8, v7, Lz5/er0;->a:Ljava/lang/Object;

    check-cast v8, Landroid/media/AudioTrack;

    iget-object v9, v7, Lz5/er0;->b:Ljava/lang/Object;

    check-cast v9, Landroid/media/AudioTimestamp;

    invoke-virtual {v8, v9}, Landroid/media/AudioTrack;->getTimestamp(Landroid/media/AudioTimestamp;)Z

    move-result v8

    if-eqz v8, :cond_b9

    iget-object v9, v7, Lz5/er0;->b:Ljava/lang/Object;

    check-cast v9, Landroid/media/AudioTimestamp;

    iget-wide v12, v9, Landroid/media/AudioTimestamp;->framePosition:J

    iget-wide v14, v7, Lz5/er0;->d:J

    cmp-long v9, v14, v12

    if-lez v9, :cond_af

    iget-wide v14, v7, Lz5/er0;->c:J

    const-wide/16 v18, 0x1

    add-long v14, v14, v18

    iput-wide v14, v7, Lz5/er0;->c:J

    :cond_af
    iput-wide v12, v7, Lz5/er0;->d:J

    iget-wide v14, v7, Lz5/er0;->c:J

    const/16 v9, 0x20

    shl-long/2addr v14, v9

    add-long/2addr v12, v14

    iput-wide v12, v7, Lz5/er0;->e:J

    .line 5
    :cond_b9
    iget v7, v6, Lz5/or0;->b:I

    if-eqz v7, :cond_e8

    const/4 v9, 0x1

    if-eq v7, v9, :cond_d5

    const/4 v9, 0x2

    if-eq v7, v9, :cond_ce

    const/4 v9, 0x3

    if-eq v7, v9, :cond_c7

    goto :goto_117

    :cond_c7
    if-nez v8, :cond_ca

    goto :goto_117

    :cond_ca
    invoke-virtual {v6}, Lz5/or0;->a()V

    goto :goto_104

    :cond_ce
    if-eqz v8, :cond_d1

    goto :goto_117

    :cond_d1
    invoke-virtual {v6}, Lz5/or0;->a()V

    goto :goto_116

    :cond_d5
    if-eqz v8, :cond_e4

    iget-object v7, v6, Lz5/or0;->a:Lz5/er0;

    .line 6
    iget-wide v12, v7, Lz5/er0;->e:J

    .line 7
    iget-wide v14, v6, Lz5/or0;->f:J

    cmp-long v7, v12, v14

    if-gtz v7, :cond_e2

    goto :goto_117

    :cond_e2
    const/4 v7, 0x2

    goto :goto_101

    :cond_e4
    invoke-virtual {v6}, Lz5/or0;->a()V

    goto :goto_117

    :cond_e8
    if-eqz v8, :cond_106

    iget-object v7, v6, Lz5/or0;->a:Lz5/er0;

    .line 8
    iget-object v8, v7, Lz5/er0;->b:Ljava/lang/Object;

    check-cast v8, Landroid/media/AudioTimestamp;

    iget-wide v8, v8, Landroid/media/AudioTimestamp;->nanoTime:J

    const-wide/16 v12, 0x3e8

    div-long/2addr v8, v12

    .line 9
    iget-wide v12, v6, Lz5/or0;->c:J

    cmp-long v8, v8, v12

    if-gez v8, :cond_fc

    goto :goto_116

    .line 10
    :cond_fc
    iget-wide v7, v7, Lz5/er0;->e:J

    .line 11
    iput-wide v7, v6, Lz5/or0;->f:J

    const/4 v7, 0x1

    :goto_101
    invoke-virtual {v6, v7}, Lz5/or0;->b(I)V

    :goto_104
    const/4 v8, 0x1

    goto :goto_117

    :cond_106
    iget-wide v12, v6, Lz5/or0;->c:J

    sub-long v12, v10, v12

    const-wide/32 v14, 0x7a120

    cmp-long v7, v12, v14

    if-gtz v7, :cond_112

    goto :goto_117

    :cond_112
    const/4 v7, 0x3

    invoke-virtual {v6, v7}, Lz5/or0;->b(I)V

    :cond_116
    :goto_116
    const/4 v8, 0x0

    :goto_117
    const-string v7, "DefaultAudioSink"

    const-wide/32 v12, 0x4c4b40

    if-nez v8, :cond_126

    move-object/from16 v16, v1

    move/from16 v18, v2

    move-object v0, v3

    move-object v12, v7

    goto/16 :goto_201

    .line 12
    :cond_126
    iget-object v8, v6, Lz5/or0;->a:Lz5/er0;

    if-eqz v8, :cond_135

    .line 13
    iget-object v9, v8, Lz5/er0;->b:Ljava/lang/Object;

    check-cast v9, Landroid/media/AudioTimestamp;

    iget-wide v14, v9, Landroid/media/AudioTimestamp;->nanoTime:J

    const-wide/16 v16, 0x3e8

    div-long v14, v14, v16

    goto :goto_13a

    :cond_135
    const-wide v14, -0x7fffffffffffffffL    # -4.9E-324

    :goto_13a
    if-eqz v8, :cond_13f

    .line 14
    iget-wide v8, v8, Lz5/er0;->e:J

    goto :goto_141

    :cond_13f
    const-wide/16 v8, -0x1

    :goto_141
    sub-long v18, v14, v10

    .line 15
    invoke-static/range {v18 .. v19}, Ljava/lang/Math;->abs(J)J

    move-result-wide v18

    cmp-long v12, v18, v12

    const-string v13, ", "

    if-lez v12, :cond_194

    iget-object v12, v3, Lz5/ls0;->a:Lz5/zw0;

    iget-object v0, v12, Lz5/zw0;->a:Lz5/ky0;

    move-object/from16 v16, v1

    .line 16
    iget-object v1, v0, Lz5/ky0;->m:Lz5/su0;

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

    move/from16 v18, v2

    move-object/from16 v19, v3

    iget-wide v2, v0, Lz5/ky0;->r:J

    iget v0, v1, Lz5/su0;->b:I

    int-to-long v0, v0

    div-long/2addr v2, v0

    .line 17
    iget-object v0, v12, Lz5/zw0;->a:Lz5/ky0;

    .line 18
    invoke-virtual {v0}, Lz5/ky0;->l()J

    move-result-wide v0

    .line 19
    new-instance v12, Ljava/lang/StringBuilder;

    move-object/from16 v20, v6

    const/16 v6, 0xb4

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

    const-string v6, "Spurious audio timestamp (system clock mismatch): "

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

    invoke-virtual {v12, v8, v9}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

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

    invoke-virtual {v12, v14, v15}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-static {v12, v13, v10, v11, v13}, Li/c;->a(Ljava/lang/StringBuilder;Ljava/lang/String;JLjava/lang/String;)V

    invoke-virtual {v12, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-static {v12, v13, v2, v3, v13}, Li/c;->a(Ljava/lang/StringBuilder;Ljava/lang/String;JLjava/lang/String;)V

    invoke-virtual {v12, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

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

    move-result-object v0

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

    move-object v12, v7

    goto :goto_1eb

    :cond_194
    move-object/from16 v16, v1

    move/from16 v18, v2

    move-object v0, v3

    move-object/from16 v20, v6

    invoke-virtual {v0, v8, v9}, Lz5/ls0;->b(J)J

    move-result-wide v1

    sub-long/2addr v1, v4

    invoke-static {v1, v2}, Ljava/lang/Math;->abs(J)J

    move-result-wide v1

    const-wide/32 v21, 0x4c4b40

    cmp-long v1, v1, v21

    if-lez v1, :cond_1f2

    iget-object v1, v0, Lz5/ls0;->a:Lz5/zw0;

    iget-object v2, v1, Lz5/zw0;->a:Lz5/ky0;

    .line 20
    iget-object v3, v2, Lz5/ky0;->m:Lz5/su0;

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

    move-object v12, v7

    iget-wide v6, v2, Lz5/ky0;->r:J

    iget v2, v3, Lz5/su0;->b:I

    int-to-long v2, v2

    div-long/2addr v6, v2

    .line 21
    iget-object v1, v1, Lz5/zw0;->a:Lz5/ky0;

    .line 22
    invoke-virtual {v1}, Lz5/ky0;->l()J

    move-result-wide v1

    .line 23
    new-instance v3, Ljava/lang/StringBuilder;

    move-object/from16 v19, v0

    const/16 v0, 0xb6

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

    const-string v0, "Spurious audio timestamp (frame position mismatch): "

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

    invoke-virtual {v3, v8, v9}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

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

    invoke-virtual {v3, v14, v15}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-static {v3, v13, v10, v11, v13}, Li/c;->a(Ljava/lang/StringBuilder;Ljava/lang/String;JLjava/lang/String;)V

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

    invoke-static {v3, v13, v6, v7, v13}, Li/c;->a(Ljava/lang/StringBuilder;Ljava/lang/String;JLjava/lang/String;)V

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

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

    move-result-object v0

    invoke-static {v12, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    :goto_1eb
    const/4 v0, 0x4

    move-object/from16 v1, v20

    .line 24
    invoke-virtual {v1, v0}, Lz5/or0;->b(I)V

    goto :goto_1ff

    :cond_1f2
    move-object/from16 v19, v0

    move-object v12, v7

    move-object/from16 v1, v20

    const/4 v0, 0x4

    .line 25
    iget v2, v1, Lz5/or0;->b:I

    if-ne v2, v0, :cond_1ff

    invoke-virtual {v1}, Lz5/or0;->a()V

    :cond_1ff
    :goto_1ff
    move-object/from16 v0, v19

    .line 26
    :goto_201
    iget-boolean v1, v0, Lz5/ls0;->p:Z

    if-eqz v1, :cond_266

    iget-object v1, v0, Lz5/ls0;->m:Ljava/lang/reflect/Method;

    if-eqz v1, :cond_266

    iget-wide v2, v0, Lz5/ls0;->q:J

    sub-long v2, v10, v2

    const-wide/32 v4, 0x7a120

    cmp-long v2, v2, v4

    if-ltz v2, :cond_266

    :try_start_214
    iget-object v2, v0, Lz5/ls0;->c:Landroid/media/AudioTrack;
    :try_end_216
    .catch Ljava/lang/Exception; {:try_start_214 .. :try_end_216} :catch_25b

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

    const/4 v3, 0x0

    :try_start_21a
    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

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

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    int-to-long v1, v1

    const-wide/16 v3, 0x3e8

    mul-long/2addr v1, v3

    iget-wide v3, v0, Lz5/ls0;->h:J

    sub-long/2addr v1, v3

    iput-wide v1, v0, Lz5/ls0;->n:J

    const-wide/16 v3, 0x0

    invoke-static {v1, v2, v3, v4}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v1

    iput-wide v1, v0, Lz5/ls0;->n:J

    const-wide/32 v3, 0x4c4b40

    cmp-long v3, v1, v3

    if-lez v3, :cond_25e

    new-instance v3, Ljava/lang/StringBuilder;

    const/16 v4, 0x3d

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

    const-string v4, "Ignoring impossibly large audio latency: "

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

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

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

    move-result-object v1

    invoke-static {v12, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    const-wide/16 v1, 0x0

    iput-wide v1, v0, Lz5/ls0;->n:J
    :try_end_25a
    .catch Ljava/lang/Exception; {:try_start_21a .. :try_end_25a} :catch_25b

    goto :goto_25e

    :catch_25b
    const/4 v1, 0x0

    iput-object v1, v0, Lz5/ls0;->m:Ljava/lang/reflect/Method;

    :cond_25e
    :goto_25e
    iput-wide v10, v0, Lz5/ls0;->q:J

    goto :goto_266

    :cond_261
    :goto_261
    move-object/from16 v16, v1

    move/from16 v18, v2

    move-object v0, v3

    :cond_266
    :goto_266
    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v1

    const-wide/16 v3, 0x3e8

    div-long/2addr v1, v3

    iget-object v3, v0, Lz5/ls0;->f:Lz5/or0;

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

    .line 27
    iget v4, v3, Lz5/or0;->b:I

    const/4 v5, 0x2

    if-ne v4, v5, :cond_279

    const/4 v4, 0x1

    goto :goto_27a

    :cond_279
    const/4 v4, 0x0

    :goto_27a
    if-eqz v4, :cond_2a6

    .line 28
    iget-object v5, v3, Lz5/or0;->a:Lz5/er0;

    if-eqz v5, :cond_283

    .line 29
    iget-wide v5, v5, Lz5/er0;->e:J

    goto :goto_285

    :cond_283
    const-wide/16 v5, -0x1

    .line 30
    :goto_285
    invoke-virtual {v0, v5, v6}, Lz5/ls0;->b(J)J

    move-result-wide v5

    .line 31
    iget-object v3, v3, Lz5/or0;->a:Lz5/er0;

    if-eqz v3, :cond_297

    .line 32
    iget-object v3, v3, Lz5/er0;->b:Ljava/lang/Object;

    check-cast v3, Landroid/media/AudioTimestamp;

    iget-wide v7, v3, Landroid/media/AudioTimestamp;->nanoTime:J

    const-wide/16 v9, 0x3e8

    div-long/2addr v7, v9

    goto :goto_29c

    :cond_297
    const-wide v7, -0x7fffffffffffffffL    # -4.9E-324

    :goto_29c
    sub-long v7, v1, v7

    .line 33
    iget v3, v0, Lz5/ls0;->i:F

    invoke-static {v7, v8, v3}, Lz5/r7;->f(JF)J

    move-result-wide v7

    add-long/2addr v7, v5

    goto :goto_2c2

    :cond_2a6
    iget v3, v0, Lz5/ls0;->u:I

    if-nez v3, :cond_2b3

    invoke-virtual {v0}, Lz5/ls0;->c()J

    move-result-wide v5

    invoke-virtual {v0, v5, v6}, Lz5/ls0;->b(J)J

    move-result-wide v5

    goto :goto_2b6

    :cond_2b3
    iget-wide v5, v0, Lz5/ls0;->k:J

    add-long/2addr v5, v1

    :goto_2b6
    move-wide v7, v5

    if-nez v18, :cond_2c2

    iget-wide v5, v0, Lz5/ls0;->n:J

    sub-long/2addr v7, v5

    const-wide/16 v5, 0x0

    invoke-static {v5, v6, v7, v8}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v7

    :cond_2c2
    :goto_2c2
    iget-boolean v3, v0, Lz5/ls0;->B:Z

    if-eq v3, v4, :cond_2ce

    iget-wide v5, v0, Lz5/ls0;->A:J

    iput-wide v5, v0, Lz5/ls0;->D:J

    iget-wide v5, v0, Lz5/ls0;->z:J

    iput-wide v5, v0, Lz5/ls0;->C:J

    :cond_2ce
    iget-wide v5, v0, Lz5/ls0;->D:J

    sub-long v5, v1, v5

    const-wide/32 v9, 0xf4240

    cmp-long v3, v5, v9

    if-gez v3, :cond_2ee

    const-wide/16 v11, 0x3e8

    mul-long v13, v5, v11

    div-long/2addr v13, v9

    mul-long/2addr v7, v13

    sub-long v9, v11, v13

    iget-wide v13, v0, Lz5/ls0;->C:J

    iget v3, v0, Lz5/ls0;->i:F

    invoke-static {v5, v6, v3}, Lz5/r7;->f(JF)J

    move-result-wide v5

    add-long/2addr v5, v13

    mul-long/2addr v5, v9

    add-long/2addr v5, v7

    div-long v7, v5, v11

    :cond_2ee
    iget-boolean v3, v0, Lz5/ls0;->j:Z

    if-nez v3, :cond_336

    iget-wide v5, v0, Lz5/ls0;->z:J

    cmp-long v3, v7, v5

    if-lez v3, :cond_336

    const/4 v3, 0x1

    iput-boolean v3, v0, Lz5/ls0;->j:Z

    sub-long v5, v7, v5

    invoke-static {v5, v6}, Lz5/v1;->a(J)J

    move-result-wide v5

    iget v3, v0, Lz5/ls0;->i:F

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

    const/high16 v9, 0x3f800000    # 1.0f

    cmpl-float v9, v3, v9

    if-nez v9, :cond_30c

    goto :goto_313

    :cond_30c
    long-to-double v5, v5

    float-to-double v9, v3

    div-double/2addr v5, v9

    .line 34
    invoke-static {v5, v6}, Ljava/lang/Math;->round(D)J

    move-result-wide v5

    .line 35
    :goto_313
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v9

    invoke-static {v5, v6}, Lz5/v1;->a(J)J

    move-result-wide v5

    sub-long/2addr v9, v5

    iget-object v3, v0, Lz5/ls0;->a:Lz5/zw0;

    iget-object v3, v3, Lz5/zw0;->a:Lz5/ky0;

    .line 36
    iget-object v3, v3, Lz5/ky0;->k:Lz5/fz0;

    if-eqz v3, :cond_336

    .line 37
    iget-object v3, v3, Lz5/fz0;->a:Lz5/wz0;

    .line 38
    iget-object v3, v3, Lz5/wz0;->Q0:Landroidx/appcompat/widget/n;

    .line 39
    iget-object v5, v3, Landroidx/appcompat/widget/n;->s:Ljava/lang/Object;

    check-cast v5, Landroid/os/Handler;

    if-eqz v5, :cond_336

    new-instance v6, Lz5/xj0;

    invoke-direct {v6, v3, v9, v10}, Lz5/xj0;-><init>(Landroidx/appcompat/widget/n;J)V

    invoke-virtual {v5, v6}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 40
    :cond_336
    iput-wide v1, v0, Lz5/ls0;->A:J

    iput-wide v7, v0, Lz5/ls0;->z:J

    iput-boolean v4, v0, Lz5/ls0;->B:Z

    move-object/from16 v1, v16

    .line 41
    iget-object v0, v1, Lz5/ky0;->m:Lz5/su0;

    invoke-virtual {v1}, Lz5/ky0;->l()J

    move-result-wide v2

    invoke-virtual {v0, v2, v3}, Lz5/su0;->a(J)J

    move-result-wide v2

    invoke-static {v7, v8, v2, v3}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v2

    :goto_34c
    iget-object v0, v1, Lz5/ky0;->g:Ljava/util/ArrayDeque;

    invoke-virtual {v0}, Ljava/util/ArrayDeque;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_36d

    iget-object v0, v1, Lz5/ky0;->g:Ljava/util/ArrayDeque;

    invoke-virtual {v0}, Ljava/util/ArrayDeque;->getFirst()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lz5/qv0;

    iget-wide v4, v0, Lz5/qv0;->d:J

    cmp-long v0, v2, v4

    if-ltz v0, :cond_36d

    iget-object v0, v1, Lz5/ky0;->g:Ljava/util/ArrayDeque;

    invoke-virtual {v0}, Ljava/util/ArrayDeque;->remove()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lz5/qv0;

    iput-object v0, v1, Lz5/ky0;->q:Lz5/qv0;

    goto :goto_34c

    :cond_36d
    iget-object v0, v1, Lz5/ky0;->q:Lz5/qv0;

    iget-wide v4, v0, Lz5/qv0;->d:J

    sub-long v6, v2, v4

    iget-object v0, v0, Lz5/qv0;->a:Lz5/u3;

    sget-object v4, Lz5/u3;->d:Lz5/u3;

    invoke-virtual {v0, v4}, Lz5/u3;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_383

    iget-object v0, v1, Lz5/ky0;->q:Lz5/qv0;

    iget-wide v2, v0, Lz5/qv0;->c:J

    add-long/2addr v2, v6

    goto :goto_3e3

    :cond_383
    iget-object v0, v1, Lz5/ky0;->g:Ljava/util/ArrayDeque;

    invoke-virtual {v0}, Ljava/util/ArrayDeque;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_3ca

    iget-object v0, v1, Lz5/ky0;->M:Lcom/google/android/gms/internal/ads/d1;

    .line 42
    iget-object v0, v0, Lcom/google/android/gms/internal/ads/d1;->u:Ljava/lang/Object;

    check-cast v0, Lz5/m11;

    .line 43
    iget-wide v2, v0, Lz5/m11;->o:J

    const-wide/16 v4, 0x400

    cmp-long v4, v2, v4

    if-ltz v4, :cond_3be

    iget-wide v4, v0, Lz5/m11;->n:J

    iget-object v8, v0, Lz5/m11;->j:Lz5/z01;

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

    .line 44
    iget v9, v8, Lz5/z01;->k:I

    iget v8, v8, Lz5/z01;->b:I

    mul-int/2addr v9, v8

    add-int/2addr v9, v9

    int-to-long v8, v9

    sub-long/2addr v4, v8

    .line 45
    iget-object v8, v0, Lz5/m11;->h:Lz5/rg0;

    iget v8, v8, Lz5/rg0;->a:I

    iget-object v0, v0, Lz5/m11;->g:Lz5/rg0;

    iget v0, v0, Lz5/rg0;->a:I

    if-ne v8, v0, :cond_3b3

    goto :goto_3b7

    :cond_3b3
    int-to-long v8, v8

    mul-long/2addr v4, v8

    int-to-long v8, v0

    mul-long/2addr v2, v8

    :goto_3b7
    move-wide v10, v2

    move-wide v8, v4

    invoke-static/range {v6 .. v11}, Lz5/r7;->d(JJJ)J

    move-result-wide v2

    goto :goto_3c4

    :cond_3be
    iget v0, v0, Lz5/m11;->c:F

    float-to-double v2, v0

    long-to-double v4, v6

    mul-double/2addr v2, v4

    double-to-long v2, v2

    .line 46
    :goto_3c4
    iget-object v0, v1, Lz5/ky0;->q:Lz5/qv0;

    iget-wide v4, v0, Lz5/qv0;->c:J

    add-long/2addr v2, v4

    goto :goto_3e3

    :cond_3ca
    iget-object v0, v1, Lz5/ky0;->g:Ljava/util/ArrayDeque;

    invoke-virtual {v0}, Ljava/util/ArrayDeque;->getFirst()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lz5/qv0;

    iget-wide v4, v0, Lz5/qv0;->d:J

    iget-object v6, v1, Lz5/ky0;->q:Lz5/qv0;

    iget-object v6, v6, Lz5/qv0;->a:Lz5/u3;

    iget v6, v6, Lz5/u3;->a:F

    sub-long/2addr v4, v2

    invoke-static {v4, v5, v6}, Lz5/r7;->f(JF)J

    move-result-wide v2

    iget-wide v4, v0, Lz5/qv0;->c:J

    sub-long v2, v4, v2

    :goto_3e3
    iget-object v0, v1, Lz5/ky0;->m:Lz5/su0;

    iget-object v1, v1, Lz5/ky0;->M:Lcom/google/android/gms/internal/ads/d1;

    .line 47
    iget-object v1, v1, Lcom/google/android/gms/internal/ads/d1;->t:Ljava/lang/Object;

    check-cast v1, Lz5/t01;

    .line 48
    iget-wide v4, v1, Lz5/t01;->q:J

    .line 49
    invoke-virtual {v0, v4, v5}, Lz5/su0;->a(J)J

    move-result-wide v0

    add-long/2addr v0, v2

    goto :goto_3f5

    :cond_3f3
    :goto_3f3
    const-wide/high16 v0, -0x8000000000000000L

    :goto_3f5
    const-wide/high16 v2, -0x8000000000000000L

    cmp-long v2, v0, v2

    if-eqz v2, :cond_40e

    move-object/from16 v2, p0

    .line 50
    iget-boolean v3, v2, Lz5/wz0;->X0:Z

    if-eqz v3, :cond_402

    goto :goto_408

    :cond_402
    iget-wide v3, v2, Lz5/wz0;->V0:J

    invoke-static {v3, v4, v0, v1}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v0

    :goto_408
    iput-wide v0, v2, Lz5/wz0;->V0:J

    const/4 v0, 0x0

    iput-boolean v0, v2, Lz5/wz0;->X0:Z

    return-void

    :cond_40e
    move-object/from16 v2, p0

    return-void
.end method

.method public final zzA()Lz5/u3;
    .registers 2

    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

    .line 1
    invoke-virtual {v0}, Lz5/ky0;->h()Lz5/qv0;

    move-result-object v0

    iget-object v0, v0, Lz5/qv0;->a:Lz5/u3;

    return-object v0
.end method

.method public final zzc()Ljava/lang/String;
    .registers 2

    const-string v0, "MediaCodecAudioRenderer"

    return-object v0
.end method

.method public final zzi()Lz5/b7;
    .registers 1

    return-object p0
.end method

.method public final zzx()Z
    .registers 2

    iget-object v0, p0, Lz5/wz0;->R0:Lz5/uq0;

    check-cast v0, Lz5/ky0;

    invoke-virtual {v0}, Lz5/ky0;->s()Z

    move-result v0

    if-nez v0, :cond_13

    invoke-super {p0}, Lz5/db1;->zzx()Z

    move-result v0

    if-eqz v0, :cond_11

    goto :goto_13

    :cond_11
    const/4 v0, 0x0

    return v0

    :cond_13
    :goto_13
    const/4 v0, 0x1

    return v0
.end method

.method public final zzy()J
    .registers 3

    .line 1
    iget v0, p0, Lz5/u1;->v:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_8

    .line 2
    invoke-virtual {p0}, Lz5/wz0;->r0()V

    :cond_8
    iget-wide v0, p0, Lz5/wz0;->V0:J

    return-wide v0
.end method
