.class public abstract Lz5/db1;
.super Lz5/u1;
.source ""


# static fields
.field public static final O0:[B


# instance fields
.field public A0:Z

.field public B0:Z

.field public final C:Lz5/ac1;

.field public C0:J

.field public final D:F

.field public D0:J

.field public final E:Lcom/google/android/gms/internal/ads/b;

.field public E0:Z

.field public final F:Lcom/google/android/gms/internal/ads/b;

.field public F0:Z

.field public final G:Lcom/google/android/gms/internal/ads/b;

.field public G0:Z

.field public final H:Lz5/d81;

.field public H0:Lz5/lg;

.field public final I:Lz5/o7;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lz5/o7<",
            "Lz5/x2;",
            ">;"
        }
    .end annotation
.end field

.field public I0:J

.field public final J:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Ljava/lang/Long;",
            ">;"
        }
    .end annotation
.end field

.field public J0:J

.field public final K:Landroid/media/MediaCodec$BufferInfo;

.field public K0:I

.field public final L:[J

.field public L0:Lz5/tl1;

.field public final M:[J

.field public M0:Lz5/g61;

.field public final N:[J

.field public N0:Lz5/g61;

.field public O:Lz5/x2;

.field public P:Lz5/x2;

.field public Q:J

.field public R:F

.field public S:F

.field public T:Lz5/x2;

.field public U:Landroid/media/MediaFormat;

.field public V:Z

.field public W:F

.field public X:Ljava/util/ArrayDeque;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayDeque<",
            "Lz5/ja1;",
            ">;"
        }
    .end annotation
.end field

.field public Y:Lz5/ua1;

.field public Z:Lz5/ja1;

.field public a0:I

.field public b0:Z

.field public c0:Z

.field public d0:Z

.field public e0:Z

.field public f0:Z

.field public g0:Z

.field public h0:Z

.field public i0:Z

.field public j0:Z

.field public k0:Z

.field public l0:Lz5/c60;

.field public m0:J

.field public n0:I

.field public o0:I

.field public p0:Ljava/nio/ByteBuffer;

.field public q0:Z

.field public r0:Z

.field public s0:Z

.field public t0:Z

.field public u0:Z

.field public v0:Z

.field public w0:I

.field public x0:I

.field public y0:I

.field public z0:Z


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

    const/16 v0, 0x26

    new-array v0, v0, [B

    fill-array-data v0, :array_a

    sput-object v0, Lz5/db1;->O0:[B

    return-void

    :array_a
    .array-data 1
        0x0t
        0x0t
        0x1t
        0x67t
        0x42t
        -0x40t
        0xbt
        -0x26t
        0x25t
        -0x70t
        0x0t
        0x0t
        0x1t
        0x68t
        -0x32t
        0xft
        0x13t
        0x20t
        0x0t
        0x0t
        0x1t
        0x65t
        -0x78t
        -0x7ct
        0xdt
        -0x32t
        0x71t
        0x18t
        -0x60t
        0x0t
        0x2ft
        -0x41t
        0x1ct
        0x31t
        -0x3dt
        0x27t
        0x5dt
        0x78t
    .end array-data
.end method

.method public constructor <init>(ILz5/q91;Lz5/ac1;F)V
    .registers 7

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

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

    iput-object p3, p0, Lz5/db1;->C:Lz5/ac1;

    iput p4, p0, Lz5/db1;->D:F

    new-instance p1, Lcom/google/android/gms/internal/ads/b;

    const/4 p2, 0x0

    invoke-direct {p1, p2, p2}, Lcom/google/android/gms/internal/ads/b;-><init>(II)V

    iput-object p1, p0, Lz5/db1;->E:Lcom/google/android/gms/internal/ads/b;

    new-instance p1, Lcom/google/android/gms/internal/ads/b;

    invoke-direct {p1, p2, p2}, Lcom/google/android/gms/internal/ads/b;-><init>(II)V

    iput-object p1, p0, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    new-instance p1, Lcom/google/android/gms/internal/ads/b;

    const/4 p3, 0x2

    invoke-direct {p1, p3, p2}, Lcom/google/android/gms/internal/ads/b;-><init>(II)V

    iput-object p1, p0, Lz5/db1;->G:Lcom/google/android/gms/internal/ads/b;

    new-instance p1, Lz5/d81;

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

    iput-object p1, p0, Lz5/db1;->H:Lz5/d81;

    new-instance p3, Lz5/o7;

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

    iput-object p3, p0, Lz5/db1;->I:Lz5/o7;

    new-instance p3, Ljava/util/ArrayList;

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

    iput-object p3, p0, Lz5/db1;->J:Ljava/util/ArrayList;

    new-instance p3, Landroid/media/MediaCodec$BufferInfo;

    invoke-direct {p3}, Landroid/media/MediaCodec$BufferInfo;-><init>()V

    iput-object p3, p0, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    const/high16 p3, 0x3f800000    # 1.0f

    iput p3, p0, Lz5/db1;->R:F

    iput p3, p0, Lz5/db1;->S:F

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

    iput-wide p3, p0, Lz5/db1;->Q:J

    const/16 v0, 0xa

    new-array v1, v0, [J

    iput-object v1, p0, Lz5/db1;->L:[J

    new-array v1, v0, [J

    iput-object v1, p0, Lz5/db1;->M:[J

    new-array v0, v0, [J

    iput-object v0, p0, Lz5/db1;->N:[J

    iput-wide p3, p0, Lz5/db1;->I0:J

    iput-wide p3, p0, Lz5/db1;->J0:J

    invoke-virtual {p1, p2}, Lcom/google/android/gms/internal/ads/b;->e(I)V

    iget-object p1, p1, Lcom/google/android/gms/internal/ads/b;->c:Ljava/nio/ByteBuffer;

    invoke-static {}, Ljava/nio/ByteOrder;->nativeOrder()Ljava/nio/ByteOrder;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;

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

    iput p1, p0, Lz5/db1;->W:F

    iput p2, p0, Lz5/db1;->a0:I

    iput p2, p0, Lz5/db1;->w0:I

    const/4 p1, -0x1

    iput p1, p0, Lz5/db1;->n0:I

    iput p1, p0, Lz5/db1;->o0:I

    iput-wide p3, p0, Lz5/db1;->m0:J

    iput-wide p3, p0, Lz5/db1;->C0:J

    iput-wide p3, p0, Lz5/db1;->D0:J

    iput p2, p0, Lz5/db1;->x0:I

    iput p2, p0, Lz5/db1;->y0:I

    return-void
.end method

.method private final W()V
    .registers 3

    const/4 v0, 0x0

    iput-boolean v0, p0, Lz5/db1;->u0:Z

    iget-object v1, p0, Lz5/db1;->H:Lz5/d81;

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

    iget-object v1, p0, Lz5/db1;->G:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v1}, Lcom/google/android/gms/internal/ads/b;->a()V

    iput-boolean v0, p0, Lz5/db1;->t0:Z

    iput-boolean v0, p0, Lz5/db1;->s0:Z

    return-void
.end method

.method private final c0()V
    .registers 2

    :try_start_0
    iget-object v0, p0, Lz5/db1;->L0:Lz5/tl1;

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

    invoke-virtual {v0}, Landroid/media/MediaCodec;->flush()V
    :try_end_7
    .catchall {:try_start_0 .. :try_end_7} :catchall_b

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

    return-void

    :catchall_b
    move-exception v0

    invoke-virtual {p0}, Lz5/db1;->R()V

    throw v0
.end method


# virtual methods
.method public D(JZ)V
    .registers 6

    const/4 p1, 0x0

    iput-boolean p1, p0, Lz5/db1;->E0:Z

    iput-boolean p1, p0, Lz5/db1;->F0:Z

    iget-boolean p2, p0, Lz5/db1;->s0:Z

    if-eqz p2, :cond_16

    iget-object p2, p0, Lz5/db1;->H:Lz5/d81;

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

    iget-object p2, p0, Lz5/db1;->G:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {p2}, Lcom/google/android/gms/internal/ads/b;->a()V

    iput-boolean p1, p0, Lz5/db1;->t0:Z

    goto :goto_1f

    .line 1
    :cond_16
    invoke-virtual {p0}, Lz5/db1;->Q()Z

    move-result p2

    if-eqz p2, :cond_1f

    invoke-virtual {p0}, Lz5/db1;->N()V

    .line 2
    :cond_1f
    :goto_1f
    iget-object p2, p0, Lz5/db1;->I:Lz5/o7;

    .line 3
    monitor-enter p2

    :try_start_22
    iget p3, p2, Lz5/o7;->d:I
    :try_end_24
    .catchall {:try_start_22 .. :try_end_24} :catchall_44

    monitor-exit p2

    if-lez p3, :cond_2a

    const/4 p2, 0x1

    .line 4
    iput-boolean p2, p0, Lz5/db1;->G0:Z

    :cond_2a
    iget-object p2, p0, Lz5/db1;->I:Lz5/o7;

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

    iget p2, p0, Lz5/db1;->K0:I

    if-eqz p2, :cond_43

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

    iget-object p3, p0, Lz5/db1;->M:[J

    aget-wide v0, p3, p2

    iput-wide v0, p0, Lz5/db1;->J0:J

    iget-object p3, p0, Lz5/db1;->L:[J

    aget-wide p2, p3, p2

    iput-wide p2, p0, Lz5/db1;->I0:J

    iput p1, p0, Lz5/db1;->K0:I

    :cond_43
    return-void

    :catchall_44
    move-exception p1

    .line 5
    monitor-exit p2

    throw p1
.end method

.method public G()V
    .registers 3

    const/4 v0, 0x0

    iput-object v0, p0, Lz5/db1;->O:Lz5/x2;

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

    iput-wide v0, p0, Lz5/db1;->I0:J

    iput-wide v0, p0, Lz5/db1;->J0:J

    const/4 v0, 0x0

    iput v0, p0, Lz5/db1;->K0:I

    invoke-virtual {p0}, Lz5/db1;->Q()Z

    return-void
.end method

.method public H()V
    .registers 3

    const/4 v0, 0x0

    :try_start_1
    invoke-direct {p0}, Lz5/db1;->W()V

    invoke-virtual {p0}, Lz5/db1;->P()V
    :try_end_7
    .catchall {:try_start_1 .. :try_end_7} :catchall_a

    iput-object v0, p0, Lz5/db1;->N0:Lz5/g61;

    return-void

    :catchall_a
    move-exception v1

    iput-object v0, p0, Lz5/db1;->N0:Lz5/g61;

    throw v1
.end method

.method public final I()V
    .registers 3

    const/4 v0, -0x1

    iput v0, p0, Lz5/db1;->n0:I

    iget-object v0, p0, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    const/4 v1, 0x0

    iput-object v1, v0, Lcom/google/android/gms/internal/ads/b;->c:Ljava/nio/ByteBuffer;

    return-void
.end method

.method public abstract J(Lcom/google/android/gms/internal/ads/b;)V
.end method

.method public abstract K()V
.end method

.method public L()V
    .registers 1

    return-void
.end method

.method public abstract M(JJLz5/tl1;Ljava/nio/ByteBuffer;IIIJZZLz5/x2;)Z
.end method

.method public final N()V
    .registers 24

    move-object/from16 v7, p0

    iget-object v0, v7, Lz5/db1;->L0:Lz5/tl1;

    if-nez v0, :cond_3b9

    iget-boolean v0, v7, Lz5/db1;->s0:Z

    if-nez v0, :cond_3b9

    iget-object v0, v7, Lz5/db1;->O:Lz5/x2;

    if-nez v0, :cond_10

    goto/16 :goto_3b9

    :cond_10
    iget-object v1, v7, Lz5/db1;->N0:Lz5/g61;

    const/4 v8, 0x1

    if-nez v1, :cond_48

    invoke-virtual {v7, v0}, Lz5/db1;->f0(Lz5/x2;)Z

    move-result v0

    if-eqz v0, :cond_48

    iget-object v0, v7, Lz5/db1;->O:Lz5/x2;

    invoke-direct/range {p0 .. p0}, Lz5/db1;->W()V

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

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

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

    move-result v1

    if-nez v1, :cond_3f

    const-string v1, "audio/mpeg"

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

    move-result v1

    if-nez v1, :cond_3f

    const-string v1, "audio/opus"

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

    move-result v0

    if-nez v0, :cond_3f

    iget-object v0, v7, Lz5/db1;->H:Lz5/d81;

    .line 1
    iput v8, v0, Lz5/d81;->j:I

    goto :goto_45

    .line 2
    :cond_3f
    iget-object v0, v7, Lz5/db1;->H:Lz5/d81;

    const/16 v1, 0x20

    .line 3
    iput v1, v0, Lz5/d81;->j:I

    .line 4
    :goto_45
    iput-boolean v8, v7, Lz5/db1;->s0:Z

    return-void

    :cond_48
    iget-object v0, v7, Lz5/db1;->N0:Lz5/g61;

    iput-object v0, v7, Lz5/db1;->M0:Lz5/g61;

    iget-object v1, v7, Lz5/db1;->O:Lz5/x2;

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

    const/4 v9, 0x0

    if-eqz v0, :cond_63

    sget-boolean v2, Lz5/u61;->a:Z

    if-nez v2, :cond_58

    goto :goto_63

    .line 5
    :cond_58
    iget-object v0, v0, Lz5/g61;->r:Ljava/lang/Object;

    check-cast v0, Lz5/t21;

    .line 6
    iget v2, v0, Lz5/t21;->r:I

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

    move-result-object v0

    throw v0

    :cond_63
    :goto_63
    :try_start_63
    iget-object v0, v7, Lz5/db1;->X:Ljava/util/ArrayDeque;
    :try_end_65
    .catch Lz5/ua1; {:try_start_63 .. :try_end_65} :catch_3ae

    const/4 v10, 0x0

    if-nez v0, :cond_98

    :try_start_68
    iget-object v0, v7, Lz5/db1;->C:Lz5/ac1;

    invoke-virtual {v7, v0, v1, v9}, Lz5/db1;->e0(Lz5/ac1;Lz5/x2;Z)Ljava/util/List;

    move-result-object v0

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

    new-instance v1, Ljava/util/ArrayDeque;

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

    iput-object v1, v7, Lz5/db1;->X:Ljava/util/ArrayDeque;

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

    move-result v1

    if-nez v1, :cond_89

    iget-object v1, v7, Lz5/db1;->X:Ljava/util/ArrayDeque;

    invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lz5/ja1;

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

    :cond_89
    iput-object v10, v7, Lz5/db1;->Y:Lz5/ua1;
    :try_end_8b
    .catch Lz5/uf1; {:try_start_68 .. :try_end_8b} :catch_8c
    .catch Lz5/ua1; {:try_start_68 .. :try_end_8b} :catch_3ae

    goto :goto_98

    :catch_8c
    move-exception v0

    :try_start_8d
    new-instance v1, Lz5/ua1;

    iget-object v2, v7, Lz5/db1;->O:Lz5/x2;

    const v3, -0xc34e

    invoke-direct {v1, v2, v0, v9, v3}, Lz5/ua1;-><init>(Lz5/x2;Ljava/lang/Throwable;ZI)V

    throw v1

    :cond_98
    :goto_98
    iget-object v0, v7, Lz5/db1;->X:Ljava/util/ArrayDeque;

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

    move-result v0

    if-nez v0, :cond_3a1

    :goto_a0
    iget-object v0, v7, Lz5/db1;->L0:Lz5/tl1;

    if-nez v0, :cond_39d

    iget-object v0, v7, Lz5/db1;->X:Ljava/util/ArrayDeque;

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

    move-result-object v0

    move-object v11, v0

    check-cast v11, Lz5/ja1;

    invoke-virtual {v7, v11}, Lz5/db1;->O(Lz5/ja1;)Z

    move-result v0
    :try_end_b1
    .catch Lz5/ua1; {:try_start_8d .. :try_end_b1} :catch_3ae

    if-nez v0, :cond_b4

    return-void

    :cond_b4
    :try_start_b4
    iget-object v2, v11, Lz5/ja1;->a:Ljava/lang/String;

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

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

    const/16 v3, 0x17

    if-ge v0, v3, :cond_c0

    move v4, v1

    goto :goto_cd

    :cond_c0
    iget v4, v7, Lz5/db1;->S:F

    iget-object v5, v7, Lz5/db1;->O:Lz5/x2;

    .line 7
    iget-object v6, v7, Lz5/u1;->x:[Lz5/x2;

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

    .line 8
    invoke-virtual {v7, v4, v5, v6}, Lz5/db1;->i0(FLz5/x2;[Lz5/x2;)F

    move-result v4

    :goto_cd
    iget v5, v7, Lz5/db1;->D:F

    cmpg-float v5, v4, v5

    if-gtz v5, :cond_d4

    goto :goto_d5

    :cond_d4
    move v1, v4

    :goto_d5
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v4

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v12
    :try_end_e1
    .catch Ljava/lang/Exception; {:try_start_b4 .. :try_end_e1} :catch_348

    const-string v13, "createCodec:"

    if-eqz v12, :cond_ea

    :try_start_e5
    invoke-virtual {v13, v6}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    goto :goto_ef

    :cond_ea
    new-instance v6, Ljava/lang/String;

    invoke-direct {v6, v13}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    :goto_ef
    invoke-static {v6}, Lz5/bd1;->b(Ljava/lang/String;)V

    iget-object v6, v7, Lz5/db1;->O:Lz5/x2;

    invoke-virtual {v7, v11, v6, v10, v1}, Lz5/db1;->g0(Lz5/ja1;Lz5/x2;Landroid/media/MediaCrypto;F)Lz5/x;

    move-result-object v6
    :try_end_f8
    .catch Ljava/lang/Exception; {:try_start_e5 .. :try_end_f8} :catch_348

    :try_start_f8
    iget-object v12, v6, Lz5/x;->s:Ljava/lang/Object;

    check-cast v12, Lz5/ja1;
    :try_end_fc
    .catch Ljava/io/IOException; {:try_start_f8 .. :try_end_fc} :catch_340
    .catch Ljava/lang/RuntimeException; {:try_start_f8 .. :try_end_fc} :catch_33e
    .catch Ljava/lang/Exception; {:try_start_f8 .. :try_end_fc} :catch_348

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

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

    invoke-static {v12}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/String;->length()I

    move-result v15

    if-eqz v15, :cond_110

    invoke-virtual {v13, v14}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    goto :goto_116

    :cond_110
    new-instance v14, Ljava/lang/String;

    invoke-direct {v14, v13}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    move-object v13, v14

    :goto_116
    invoke-static {v13}, Lz5/bd1;->b(Ljava/lang/String;)V

    invoke-static {v12}, Landroid/media/MediaCodec;->createByCodecName(Ljava/lang/String;)Landroid/media/MediaCodec;

    move-result-object v12

    invoke-static {}, Lz5/bd1;->d()V
    :try_end_120
    .catch Ljava/io/IOException; {:try_start_ff .. :try_end_120} :catch_340
    .catch Ljava/lang/RuntimeException; {:try_start_ff .. :try_end_120} :catch_33e
    .catch Ljava/lang/Exception; {:try_start_ff .. :try_end_120} :catch_348

    :try_start_120
    const-string v13, "configureCodec"

    invoke-static {v13}, Lz5/bd1;->b(Ljava/lang/String;)V

    iget-object v13, v6, Lz5/x;->t:Ljava/lang/Object;

    check-cast v13, Landroid/media/MediaFormat;

    iget-object v6, v6, Lz5/x;->v:Ljava/lang/Object;

    check-cast v6, Landroid/view/Surface;

    invoke-virtual {v12, v13, v6, v10, v9}, Landroid/media/MediaCodec;->configure(Landroid/media/MediaFormat;Landroid/view/Surface;Landroid/media/MediaCrypto;I)V

    invoke-static {}, Lz5/bd1;->d()V

    const-string v6, "startCodec"

    invoke-static {v6}, Lz5/bd1;->b(Ljava/lang/String;)V

    invoke-virtual {v12}, Landroid/media/MediaCodec;->start()V

    invoke-static {}, Lz5/bd1;->d()V

    new-instance v6, Lz5/tl1;

    invoke-direct {v6, v12}, Lz5/tl1;-><init>(Landroid/media/MediaCodec;)V
    :try_end_143
    .catch Ljava/io/IOException; {:try_start_120 .. :try_end_143} :catch_33c
    .catch Ljava/lang/RuntimeException; {:try_start_120 .. :try_end_143} :catch_33a
    .catch Ljava/lang/Exception; {:try_start_120 .. :try_end_143} :catch_348

    :try_start_143
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v12

    iput-object v6, v7, Lz5/db1;->L0:Lz5/tl1;

    iput-object v11, v7, Lz5/db1;->Z:Lz5/ja1;

    iput v1, v7, Lz5/db1;->W:F

    iget-object v1, v7, Lz5/db1;->O:Lz5/x2;

    iput-object v1, v7, Lz5/db1;->T:Lz5/x2;
    :try_end_151
    .catch Ljava/lang/Exception; {:try_start_143 .. :try_end_151} :catch_348

    const-string v1, "OMX.Exynos.avc.dec.secure"

    const/16 v14, 0x19

    if-gt v0, v14, :cond_181

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

    move-result v15

    if-eqz v15, :cond_181

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

    const-string v10, "SM-T585"

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

    move-result v10

    if-nez v10, :cond_17f

    const-string v10, "SM-A510"

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

    move-result v10

    if-nez v10, :cond_17f

    const-string v10, "SM-A520"

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

    move-result v10

    if-nez v10, :cond_17f

    const-string v10, "SM-J700"

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

    move-result v10

    if-eqz v10, :cond_181

    :cond_17f
    const/4 v10, 0x2

    goto :goto_1ba

    :cond_181
    const/16 v10, 0x18

    if-ge v0, v10, :cond_1b9

    const-string v10, "OMX.Nvidia.h264.decode"

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

    move-result v10

    if-nez v10, :cond_195

    const-string v10, "OMX.Nvidia.h264.decode.secure"

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

    move-result v10

    if-eqz v10, :cond_1b9

    :cond_195
    const-string v10, "flounder"

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

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

    move-result v10

    if-nez v10, :cond_1b7

    const-string v10, "flounder_lte"

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

    move-result v10

    if-nez v10, :cond_1b7

    const-string v10, "grouper"

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

    move-result v10

    if-nez v10, :cond_1b7

    const-string v10, "tilapia"

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

    move-result v10

    if-eqz v10, :cond_1b9

    :cond_1b7
    move v10, v8

    goto :goto_1ba

    :cond_1b9
    move v10, v9

    :goto_1ba
    iput v10, v7, Lz5/db1;->a0:I

    iget-object v10, v7, Lz5/db1;->T:Lz5/x2;

    const/16 v15, 0x15

    if-ge v0, v15, :cond_1d4

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

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

    move-result v10

    if-eqz v10, :cond_1d4

    const-string v10, "OMX.MTK.VIDEO.DECODER.AVC"

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

    move-result v10

    if-eqz v10, :cond_1d4

    move v10, v8

    goto :goto_1d5

    :cond_1d4
    move v10, v9

    :goto_1d5
    iput-boolean v10, v7, Lz5/db1;->b0:Z

    const/16 v10, 0x13

    const/16 v9, 0x12

    if-lt v0, v9, :cond_20c

    if-ne v0, v9, :cond_1ef

    const-string v6, "OMX.SEC.avc.dec"

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

    move-result v6

    if-nez v6, :cond_20c

    const-string v6, "OMX.SEC.avc.dec.secure"

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

    move-result v6

    if-nez v6, :cond_20c

    :cond_1ef
    if-ne v0, v10, :cond_20a

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

    const-string v14, "SM-G800"

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

    move-result v6

    if-eqz v6, :cond_20a

    const-string v6, "OMX.Exynos.avc.dec"

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

    move-result v6

    if-nez v6, :cond_20c

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

    move-result v1

    if-eqz v1, :cond_20a

    goto :goto_20c

    :cond_20a
    const/4 v1, 0x0

    goto :goto_20d

    :cond_20c
    :goto_20c
    move v1, v8

    :goto_20d
    iput-boolean v1, v7, Lz5/db1;->c0:Z

    const/16 v1, 0x1d

    if-ne v0, v1, :cond_21d

    const-string v6, "c2.android.aac.decoder"

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

    move-result v6

    if-eqz v6, :cond_21d

    move v6, v8

    goto :goto_21e

    :cond_21d
    const/4 v6, 0x0

    :goto_21e
    iput-boolean v6, v7, Lz5/db1;->d0:Z

    if-gt v0, v3, :cond_22a

    const-string v3, "OMX.google.vorbis.decoder"

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

    move-result v3

    if-nez v3, :cond_24e

    :cond_22a
    if-gt v0, v10, :cond_250

    const-string v3, "hb2000"

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

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

    move-result v3

    if-nez v3, :cond_23e

    const-string v3, "stvm8"

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

    move-result v3

    if-eqz v3, :cond_250

    :cond_23e
    const-string v3, "OMX.amlogic.avc.decoder.awesome"

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

    move-result v3

    if-nez v3, :cond_24e

    const-string v3, "OMX.amlogic.avc.decoder.awesome.secure"

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

    move-result v3

    if-eqz v3, :cond_250

    :cond_24e
    move v3, v8

    goto :goto_251

    :cond_250
    const/4 v3, 0x0

    :goto_251
    iput-boolean v3, v7, Lz5/db1;->e0:Z

    if-ne v0, v15, :cond_25f

    const-string v3, "OMX.google.aac.decoder"

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

    move-result v3

    if-eqz v3, :cond_25f

    move v3, v8

    goto :goto_260

    :cond_25f
    const/4 v3, 0x0

    :goto_260
    iput-boolean v3, v7, Lz5/db1;->f0:Z

    if-ge v0, v15, :cond_2aa

    const-string v3, "OMX.SEC.mp3.dec"

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

    move-result v3

    if-eqz v3, :cond_2aa

    const-string v3, "samsung"

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

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

    move-result v3

    if-eqz v3, :cond_2aa

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

    const-string v6, "baffin"

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

    move-result v6

    if-nez v6, :cond_2a8

    const-string v6, "grand"

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

    move-result v6

    if-nez v6, :cond_2a8

    const-string v6, "fortuna"

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

    move-result v6

    if-nez v6, :cond_2a8

    const-string v6, "gprimelte"

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

    move-result v6

    if-nez v6, :cond_2a8

    const-string v6, "j2y18lte"

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

    move-result v6

    if-nez v6, :cond_2a8

    const-string v6, "ms01"

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

    move-result v3

    if-eqz v3, :cond_2aa

    :cond_2a8
    move v3, v8

    goto :goto_2ab

    :cond_2aa
    const/4 v3, 0x0

    :goto_2ab
    iput-boolean v3, v7, Lz5/db1;->g0:Z

    iget-object v3, v7, Lz5/db1;->T:Lz5/x2;

    if-gt v0, v9, :cond_2bf

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

    if-ne v3, v8, :cond_2bf

    const-string v3, "OMX.MTK.AUDIO.DECODER.MP3"

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

    move-result v3

    if-eqz v3, :cond_2bf

    move v3, v8

    goto :goto_2c0

    :cond_2bf
    const/4 v3, 0x0

    :goto_2c0
    iput-boolean v3, v7, Lz5/db1;->h0:Z

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

    const/16 v6, 0x19

    if-gt v0, v6, :cond_2d0

    const-string v6, "OMX.rk.video_decoder.avc"

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

    move-result v6

    if-nez v6, :cond_306

    :cond_2d0
    const/16 v6, 0x11

    if-gt v0, v6, :cond_2dc

    const-string v6, "OMX.allwinner.video.decoder.avc"

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

    move-result v6

    if-nez v6, :cond_306

    :cond_2dc
    if-gt v0, v1, :cond_2ee

    const-string v0, "OMX.broadcom.video_decoder.tunnel"

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

    move-result v0

    if-nez v0, :cond_306

    const-string v0, "OMX.broadcom.video_decoder.tunnel.secure"

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

    move-result v0

    if-nez v0, :cond_306

    :cond_2ee
    const-string v0, "Amazon"

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

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

    move-result v0

    if-eqz v0, :cond_308

    const-string v0, "AFTS"

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

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

    move-result v0

    if-eqz v0, :cond_308

    iget-boolean v0, v11, Lz5/ja1;->f:Z

    if-eqz v0, :cond_308

    :cond_306
    move v0, v8

    goto :goto_309

    :cond_308
    const/4 v0, 0x0

    :goto_309
    iput-boolean v0, v7, Lz5/db1;->k0:Z

    const-string v0, "c2.android.mp3.decoder"

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

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

    move-result v0

    if-eqz v0, :cond_31c

    new-instance v0, Lz5/c60;

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

    iput-object v0, v7, Lz5/db1;->l0:Lz5/c60;

    .line 9
    :cond_31c
    iget v0, v7, Lz5/u1;->v:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_32a

    .line 10
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    const-wide/16 v9, 0x3e8

    add-long/2addr v0, v9

    iput-wide v0, v7, Lz5/db1;->m0:J

    :cond_32a
    iget-object v0, v7, Lz5/db1;->H0:Lz5/lg;

    iget v1, v0, Lz5/lg;->a:I

    add-int/2addr v1, v8

    iput v1, v0, Lz5/lg;->a:I

    sub-long v5, v12, v4

    move-object/from16 v1, p0

    move-wide v3, v12

    invoke-virtual/range {v1 .. v6}, Lz5/db1;->j0(Ljava/lang/String;JJ)V

    goto :goto_396

    :catch_33a
    move-exception v0

    goto :goto_342

    :catch_33c
    move-exception v0

    goto :goto_342

    :catch_33e
    move-exception v0

    goto :goto_341

    :catch_340
    move-exception v0

    :goto_341
    const/4 v12, 0x0

    :goto_342
    if-eqz v12, :cond_347

    invoke-virtual {v12}, Landroid/media/MediaCodec;->release()V

    :cond_347
    throw v0
    :try_end_348
    .catch Ljava/lang/Exception; {:try_start_157 .. :try_end_348} :catch_348

    :catch_348
    move-exception v0

    :try_start_349
    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "MediaCodecRenderer"

    const-string v3, "Failed to initialize decoder: "

    invoke-virtual {v3, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

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

    iget-object v1, v7, Lz5/db1;->X:Ljava/util/ArrayDeque;

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

    new-instance v1, Lz5/ua1;

    iget-object v2, v7, Lz5/db1;->O:Lz5/x2;

    const/4 v3, 0x0

    invoke-direct {v1, v2, v0, v3, v11}, Lz5/ua1;-><init>(Lz5/x2;Ljava/lang/Throwable;ZLz5/ja1;)V

    invoke-virtual {v7, v1}, Lz5/db1;->l0(Ljava/lang/Exception;)V

    iget-object v0, v7, Lz5/db1;->Y:Lz5/ua1;

    if-nez v0, :cond_36f

    iput-object v1, v7, Lz5/db1;->Y:Lz5/ua1;

    goto :goto_38e

    .line 11
    :cond_36f
    new-instance v2, Lz5/ua1;

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v17

    invoke-virtual {v0}, Ljava/lang/Exception;->getCause()Ljava/lang/Throwable;

    move-result-object v18

    iget-object v3, v0, Lz5/ua1;->r:Ljava/lang/String;

    iget-object v4, v0, Lz5/ua1;->s:Lz5/ja1;

    iget-object v0, v0, Lz5/ua1;->t:Ljava/lang/String;

    move-object/from16 v16, v2

    move-object/from16 v19, v3

    move-object/from16 v20, v4

    move-object/from16 v21, v0

    move-object/from16 v22, v1

    invoke-direct/range {v16 .. v22}, Lz5/ua1;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Ljava/lang/String;Lz5/ja1;Ljava/lang/String;Lz5/ua1;)V

    .line 12
    iput-object v2, v7, Lz5/db1;->Y:Lz5/ua1;

    :goto_38e
    iget-object v0, v7, Lz5/db1;->X:Ljava/util/ArrayDeque;

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

    move-result v0

    if-nez v0, :cond_39a

    :goto_396
    const/4 v9, 0x0

    const/4 v10, 0x0

    goto/16 :goto_a0

    :cond_39a
    iget-object v0, v7, Lz5/db1;->Y:Lz5/ua1;

    throw v0

    :cond_39d
    move-object v1, v10

    iput-object v1, v7, Lz5/db1;->X:Ljava/util/ArrayDeque;

    return-void

    :cond_3a1
    new-instance v0, Lz5/ua1;

    iget-object v1, v7, Lz5/db1;->O:Lz5/x2;

    const v2, -0xc34f

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-direct {v0, v1, v3, v4, v2}, Lz5/ua1;-><init>(Lz5/x2;Ljava/lang/Throwable;ZI)V

    throw v0
    :try_end_3ae
    .catch Lz5/ua1; {:try_start_349 .. :try_end_3ae} :catch_3ae

    :catch_3ae
    move-exception v0

    iget-object v1, v7, Lz5/db1;->O:Lz5/x2;

    const/16 v2, 0xfa1

    const/4 v3, 0x0

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

    move-result-object v0

    throw v0

    :cond_3b9
    :goto_3b9
    return-void
.end method

.method public O(Lz5/ja1;)Z
    .registers 2

    const/4 p1, 0x1

    return p1
.end method

.method public final P()V
    .registers 4

    const/4 v0, 0x0

    :try_start_1
    iget-object v1, p0, Lz5/db1;->L0:Lz5/tl1;

    if-eqz v1, :cond_1d

    .line 1
    iput-object v0, v1, Lz5/tl1;->b:[Ljava/nio/ByteBuffer;

    iput-object v0, v1, Lz5/tl1;->c:[Ljava/nio/ByteBuffer;

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

    invoke-virtual {v1}, Landroid/media/MediaCodec;->release()V

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

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

    add-int/lit8 v2, v2, 0x1

    iput v2, v1, Lz5/lg;->b:I

    iget-object v1, p0, Lz5/db1;->Z:Lz5/ja1;

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

    invoke-virtual {p0, v1}, Lz5/db1;->k0(Ljava/lang/String;)V
    :try_end_1d
    .catchall {:try_start_1 .. :try_end_1d} :catchall_25

    :cond_1d
    iput-object v0, p0, Lz5/db1;->L0:Lz5/tl1;

    iput-object v0, p0, Lz5/db1;->M0:Lz5/g61;

    invoke-virtual {p0}, Lz5/db1;->S()V

    return-void

    :catchall_25
    move-exception v1

    iput-object v0, p0, Lz5/db1;->L0:Lz5/tl1;

    iput-object v0, p0, Lz5/db1;->M0:Lz5/g61;

    invoke-virtual {p0}, Lz5/db1;->S()V

    throw v1
.end method

.method public final Q()Z
    .registers 4

    iget-object v0, p0, Lz5/db1;->L0:Lz5/tl1;

    const/4 v1, 0x0

    if-nez v0, :cond_6

    return v1

    :cond_6
    iget v0, p0, Lz5/db1;->y0:I

    const/4 v2, 0x3

    if-eq v0, v2, :cond_24

    iget-boolean v0, p0, Lz5/db1;->c0:Z

    if-nez v0, :cond_24

    iget-boolean v0, p0, Lz5/db1;->d0:Z

    if-eqz v0, :cond_17

    iget-boolean v0, p0, Lz5/db1;->B0:Z

    if-eqz v0, :cond_24

    :cond_17
    iget-boolean v0, p0, Lz5/db1;->e0:Z

    if-eqz v0, :cond_20

    iget-boolean v0, p0, Lz5/db1;->A0:Z

    if-eqz v0, :cond_20

    goto :goto_24

    :cond_20
    invoke-direct {p0}, Lz5/db1;->c0()V

    return v1

    :cond_24
    :goto_24
    invoke-virtual {p0}, Lz5/db1;->P()V

    const/4 v0, 0x1

    return v0
.end method

.method public R()V
    .registers 5

    invoke-virtual {p0}, Lz5/db1;->I()V

    const/4 v0, -0x1

    .line 1
    iput v0, p0, Lz5/db1;->o0:I

    const/4 v0, 0x0

    iput-object v0, p0, Lz5/db1;->p0:Ljava/nio/ByteBuffer;

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

    .line 2
    iput-wide v0, p0, Lz5/db1;->m0:J

    const/4 v2, 0x0

    iput-boolean v2, p0, Lz5/db1;->A0:Z

    iput-boolean v2, p0, Lz5/db1;->z0:Z

    iput-boolean v2, p0, Lz5/db1;->i0:Z

    iput-boolean v2, p0, Lz5/db1;->j0:Z

    iput-boolean v2, p0, Lz5/db1;->q0:Z

    iput-boolean v2, p0, Lz5/db1;->r0:Z

    iget-object v3, p0, Lz5/db1;->J:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->clear()V

    iput-wide v0, p0, Lz5/db1;->C0:J

    iput-wide v0, p0, Lz5/db1;->D0:J

    iget-object v0, p0, Lz5/db1;->l0:Lz5/c60;

    if-eqz v0, :cond_2d

    invoke-virtual {v0}, Lz5/c60;->a()V

    :cond_2d
    iput v2, p0, Lz5/db1;->x0:I

    iput v2, p0, Lz5/db1;->y0:I

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

    iput v0, p0, Lz5/db1;->w0:I

    return-void
.end method

.method public final S()V
    .registers 3

    invoke-virtual {p0}, Lz5/db1;->R()V

    const/4 v0, 0x0

    iput-object v0, p0, Lz5/db1;->l0:Lz5/c60;

    iput-object v0, p0, Lz5/db1;->X:Ljava/util/ArrayDeque;

    iput-object v0, p0, Lz5/db1;->Z:Lz5/ja1;

    iput-object v0, p0, Lz5/db1;->T:Lz5/x2;

    iput-object v0, p0, Lz5/db1;->U:Landroid/media/MediaFormat;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lz5/db1;->V:Z

    iput-boolean v0, p0, Lz5/db1;->B0:Z

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

    iput v1, p0, Lz5/db1;->W:F

    iput v0, p0, Lz5/db1;->a0:I

    iput-boolean v0, p0, Lz5/db1;->b0:Z

    iput-boolean v0, p0, Lz5/db1;->c0:Z

    iput-boolean v0, p0, Lz5/db1;->d0:Z

    iput-boolean v0, p0, Lz5/db1;->e0:Z

    iput-boolean v0, p0, Lz5/db1;->f0:Z

    iput-boolean v0, p0, Lz5/db1;->g0:Z

    iput-boolean v0, p0, Lz5/db1;->h0:Z

    iput-boolean v0, p0, Lz5/db1;->k0:Z

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

    iput v0, p0, Lz5/db1;->w0:I

    return-void
.end method

.method public T(Ljava/lang/Throwable;Lz5/ja1;)Lz5/x91;
    .registers 4

    new-instance v0, Lz5/x91;

    invoke-direct {v0, p1, p2}, Lz5/x91;-><init>(Ljava/lang/Throwable;Lz5/ja1;)V

    return-object v0
.end method

.method public U(Lcom/google/android/gms/internal/ads/b;)V
    .registers 2

    return-void
.end method

.method public V(J)V
    .registers 9

    :goto_0
    iget v0, p0, Lz5/db1;->K0:I

    if-eqz v0, :cond_33

    iget-object v1, p0, Lz5/db1;->N:[J

    const/4 v2, 0x0

    aget-wide v3, v1, v2

    cmp-long v1, p1, v3

    if-ltz v1, :cond_33

    iget-object v1, p0, Lz5/db1;->L:[J

    aget-wide v3, v1, v2

    iput-wide v3, p0, Lz5/db1;->I0:J

    iget-object v3, p0, Lz5/db1;->M:[J

    aget-wide v4, v3, v2

    iput-wide v4, p0, Lz5/db1;->J0:J

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

    iput v0, p0, Lz5/db1;->K0:I

    const/4 v3, 0x1

    invoke-static {v1, v3, v1, v2, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget-object v0, p0, Lz5/db1;->M:[J

    iget v1, p0, Lz5/db1;->K0:I

    invoke-static {v0, v3, v0, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget-object v0, p0, Lz5/db1;->N:[J

    iget v1, p0, Lz5/db1;->K0:I

    invoke-static {v0, v3, v0, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    invoke-virtual {p0}, Lz5/db1;->K()V

    goto :goto_0

    :cond_33
    return-void
.end method

.method public final X(Lz5/x2;)Z
    .registers 6

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

    const/4 v1, 0x1

    const/16 v2, 0x17

    if-ge v0, v2, :cond_8

    return v1

    :cond_8
    iget-object v0, p0, Lz5/db1;->L0:Lz5/tl1;

    if-eqz v0, :cond_52

    iget v0, p0, Lz5/db1;->y0:I

    const/4 v2, 0x3

    if-eq v0, v2, :cond_52

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

    if-nez v0, :cond_16

    goto :goto_52

    .line 2
    :cond_16
    iget v0, p0, Lz5/db1;->S:F

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

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

    .line 4
    invoke-virtual {p0, v0, p1, v2}, Lz5/db1;->i0(FLz5/x2;[Lz5/x2;)F

    move-result p1

    iget v0, p0, Lz5/db1;->W:F

    cmpl-float v2, v0, p1

    if-nez v2, :cond_28

    return v1

    :cond_28
    const/high16 v2, -0x40800000    # -1.0f

    cmpl-float v3, p1, v2

    if-nez v3, :cond_33

    invoke-virtual {p0}, Lz5/db1;->Z()V

    const/4 p1, 0x0

    return p1

    :cond_33
    cmpl-float v0, v0, v2

    if-nez v0, :cond_3f

    iget v0, p0, Lz5/db1;->D:F

    cmpl-float v0, p1, v0

    if-lez v0, :cond_3e

    goto :goto_3f

    :cond_3e
    return v1

    :cond_3f
    :goto_3f
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    const-string v2, "operating-rate"

    invoke-virtual {v0, v2, p1}, Landroid/os/Bundle;->putFloat(Ljava/lang/String;F)V

    iget-object v2, p0, Lz5/db1;->L0:Lz5/tl1;

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

    invoke-virtual {v2, v0}, Landroid/media/MediaCodec;->setParameters(Landroid/os/Bundle;)V

    .line 6
    iput p1, p0, Lz5/db1;->W:F

    :cond_52
    :goto_52
    return v1
.end method

.method public final Y()Z
    .registers 5
    .annotation build Landroid/annotation/TargetApi;
        value = 0x17
    .end annotation

    iget-boolean v0, p0, Lz5/db1;->z0:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_19

    const/4 v0, 0x1

    iput v0, p0, Lz5/db1;->x0:I

    iget-boolean v2, p0, Lz5/db1;->c0:Z

    if-nez v2, :cond_15

    iget-boolean v2, p0, Lz5/db1;->e0:Z

    if-eqz v2, :cond_11

    goto :goto_15

    :cond_11
    const/4 v1, 0x2

    iput v1, p0, Lz5/db1;->y0:I

    return v0

    :cond_15
    :goto_15
    const/4 v0, 0x3

    iput v0, p0, Lz5/db1;->y0:I

    return v1

    :cond_19
    const/4 v0, 0x0

    .line 1
    :try_start_1a
    throw v0
    :try_end_1b
    .catch Landroid/media/MediaCryptoException; {:try_start_1a .. :try_end_1b} :catch_1b

    :catch_1b
    move-exception v0

    iget-object v2, p0, Lz5/db1;->O:Lz5/x2;

    const/16 v3, 0x1776

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

    move-result-object v0

    throw v0
.end method

.method public final Z()V
    .registers 2

    iget-boolean v0, p0, Lz5/db1;->z0:Z

    if-eqz v0, :cond_b

    const/4 v0, 0x1

    iput v0, p0, Lz5/db1;->x0:I

    const/4 v0, 0x3

    iput v0, p0, Lz5/db1;->y0:I

    return-void

    :cond_b
    invoke-virtual {p0}, Lz5/db1;->P()V

    invoke-virtual {p0}, Lz5/db1;->N()V

    return-void
.end method

.method public final a0()V
    .registers 5
    .annotation build Landroid/annotation/TargetApi;
        value = 0x17
    .end annotation

    iget v0, p0, Lz5/db1;->y0:I

    const/4 v1, 0x1

    if-eq v0, v1, :cond_28

    const/4 v2, 0x2

    if-eq v0, v2, :cond_18

    const/4 v2, 0x3

    if-eq v0, v2, :cond_11

    iput-boolean v1, p0, Lz5/db1;->F0:Z

    invoke-virtual {p0}, Lz5/db1;->L()V

    return-void

    :cond_11
    invoke-virtual {p0}, Lz5/db1;->P()V

    invoke-virtual {p0}, Lz5/db1;->N()V

    return-void

    :cond_18
    invoke-direct {p0}, Lz5/db1;->c0()V

    const/4 v0, 0x0

    .line 1
    :try_start_1c
    throw v0
    :try_end_1d
    .catch Landroid/media/MediaCryptoException; {:try_start_1c .. :try_end_1d} :catch_1d

    :catch_1d
    move-exception v0

    iget-object v1, p0, Lz5/db1;->O:Lz5/x2;

    const/4 v2, 0x0

    const/16 v3, 0x1776

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

    move-result-object v0

    throw v0

    .line 2
    :cond_28
    invoke-direct {p0}, Lz5/db1;->c0()V

    return-void
.end method

.method public final b0()Z
    .registers 20

    move-object/from16 v1, p0

    iget-object v0, v1, Lz5/db1;->L0:Lz5/tl1;

    const/4 v2, 0x0

    if-eqz v0, :cond_340

    iget v3, v1, Lz5/db1;->x0:I

    const/4 v4, 0x2

    if-eq v3, v4, :cond_340

    iget-boolean v3, v1, Lz5/db1;->E0:Z

    if-eqz v3, :cond_12

    goto/16 :goto_340

    :cond_12
    iget v3, v1, Lz5/db1;->n0:I

    const-wide/16 v5, 0x0

    if-gez v3, :cond_42

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

    invoke-virtual {v0, v5, v6}, Landroid/media/MediaCodec;->dequeueInputBuffer(J)I

    move-result v0

    .line 2
    iput v0, v1, Lz5/db1;->n0:I

    if-gez v0, :cond_23

    return v2

    :cond_23
    iget-object v3, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    iget-object v7, v1, Lz5/db1;->L0:Lz5/tl1;

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

    .line 3
    sget v8, Lz5/r7;->a:I

    const/16 v9, 0x15

    if-lt v8, v9, :cond_37

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

    invoke-virtual {v7, v0}, Landroid/media/MediaCodec;->getInputBuffer(I)Ljava/nio/ByteBuffer;

    move-result-object v0

    goto :goto_3b

    :cond_37
    iget-object v7, v7, Lz5/tl1;->b:[Ljava/nio/ByteBuffer;

    aget-object v0, v7, v0

    .line 4
    :goto_3b
    iput-object v0, v3, Lcom/google/android/gms/internal/ads/b;->c:Ljava/nio/ByteBuffer;

    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/b;->a()V

    :cond_42
    iget v0, v1, Lz5/db1;->x0:I

    const/4 v3, 0x1

    if-ne v0, v3, :cond_5e

    iget-boolean v0, v1, Lz5/db1;->k0:Z

    if-nez v0, :cond_5b

    iput-boolean v3, v1, Lz5/db1;->A0:Z

    iget-object v5, v1, Lz5/db1;->L0:Lz5/tl1;

    iget v6, v1, Lz5/db1;->n0:I

    const/4 v7, 0x0

    const-wide/16 v8, 0x0

    const/4 v10, 0x4

    invoke-virtual/range {v5 .. v10}, Lz5/tl1;->b(IIJI)V

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

    :cond_5b
    iput v4, v1, Lz5/db1;->x0:I

    return v2

    :cond_5e
    iget-boolean v0, v1, Lz5/db1;->i0:Z

    if-eqz v0, :cond_7f

    iput-boolean v2, v1, Lz5/db1;->i0:Z

    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    iget-object v0, v0, Lcom/google/android/gms/internal/ads/b;->c:Ljava/nio/ByteBuffer;

    sget-object v2, Lz5/db1;->O0:[B

    invoke-virtual {v0, v2}, Ljava/nio/ByteBuffer;->put([B)Ljava/nio/ByteBuffer;

    iget-object v4, v1, Lz5/db1;->L0:Lz5/tl1;

    iget v5, v1, Lz5/db1;->n0:I

    const/16 v6, 0x26

    const-wide/16 v7, 0x0

    const/4 v9, 0x0

    invoke-virtual/range {v4 .. v9}, Lz5/tl1;->b(IIJI)V

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

    iput-boolean v3, v1, Lz5/db1;->z0:Z

    return v3

    :cond_7f
    iget v0, v1, Lz5/db1;->w0:I

    if-ne v0, v3, :cond_a4

    move v0, v2

    :goto_84
    iget-object v7, v1, Lz5/db1;->T:Lz5/x2;

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

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    if-ge v0, v7, :cond_a2

    iget-object v7, v1, Lz5/db1;->T:Lz5/x2;

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

    invoke-interface {v7, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, [B

    iget-object v8, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    iget-object v8, v8, Lcom/google/android/gms/internal/ads/b;->c:Ljava/nio/ByteBuffer;

    invoke-virtual {v8, v7}, Ljava/nio/ByteBuffer;->put([B)Ljava/nio/ByteBuffer;

    add-int/lit8 v0, v0, 0x1

    goto :goto_84

    :cond_a2
    iput v4, v1, Lz5/db1;->w0:I

    :cond_a4
    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    iget-object v0, v0, Lcom/google/android/gms/internal/ads/b;->c:Ljava/nio/ByteBuffer;

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->position()I

    move-result v0

    invoke-virtual/range {p0 .. p0}, Lz5/u1;->y()Landroidx/appcompat/widget/n;

    move-result-object v7

    :try_start_b0
    iget-object v8, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v1, v7, v8, v2}, Lz5/u1;->A(Landroidx/appcompat/widget/n;Lcom/google/android/gms/internal/ads/b;I)I

    move-result v8
    :try_end_b6
    .catch Lz5/x1; {:try_start_b0 .. :try_end_b6} :catch_335

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

    move-result v9

    if-eqz v9, :cond_c0

    iget-wide v9, v1, Lz5/db1;->C0:J

    iput-wide v9, v1, Lz5/db1;->D0:J

    :cond_c0
    const/4 v9, -0x3

    if-ne v8, v9, :cond_c4

    return v2

    :cond_c4
    const/4 v10, -0x5

    if-ne v8, v10, :cond_d6

    iget v0, v1, Lz5/db1;->w0:I

    if-ne v0, v4, :cond_d2

    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/b;->a()V

    iput v3, v1, Lz5/db1;->w0:I

    :cond_d2
    invoke-virtual {v1, v7}, Lz5/db1;->m0(Landroidx/appcompat/widget/n;)Lz5/dh;

    return v3

    :cond_d6
    iget-object v7, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

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

    move-result v7

    if-eqz v7, :cond_118

    iget v0, v1, Lz5/db1;->w0:I

    if-ne v0, v4, :cond_e9

    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/b;->a()V

    iput v3, v1, Lz5/db1;->w0:I

    :cond_e9
    iput-boolean v3, v1, Lz5/db1;->E0:Z

    iget-boolean v0, v1, Lz5/db1;->z0:Z

    if-nez v0, :cond_f3

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

    return v2

    :cond_f3
    :try_start_f3
    iget-boolean v0, v1, Lz5/db1;->k0:Z

    if-nez v0, :cond_107

    iput-boolean v3, v1, Lz5/db1;->A0:Z

    iget-object v4, v1, Lz5/db1;->L0:Lz5/tl1;

    iget v5, v1, Lz5/db1;->n0:I

    const/4 v6, 0x0

    const-wide/16 v7, 0x0

    const/4 v9, 0x4

    invoke-virtual/range {v4 .. v9}, Lz5/tl1;->b(IIJI)V

    invoke-virtual/range {p0 .. p0}, Lz5/db1;->I()V
    :try_end_107
    .catch Landroid/media/MediaCodec$CryptoException; {:try_start_f3 .. :try_end_107} :catch_108

    :cond_107
    return v2

    :catch_108
    move-exception v0

    iget-object v3, v1, Lz5/db1;->O:Lz5/x2;

    invoke-virtual {v0}, Landroid/media/MediaCodec$CryptoException;->getErrorCode()I

    move-result v4

    invoke-static {v4}, Lz5/v1;->c(I)I

    move-result v4

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

    move-result-object v0

    throw v0

    :cond_118
    iget-boolean v7, v1, Lz5/db1;->z0:Z

    if-nez v7, :cond_130

    iget-object v7, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    .line 5
    invoke-virtual {v7, v3}, Lcom/google/android/gms/internal/ads/b;->d(I)Z

    move-result v7

    if-nez v7, :cond_130

    .line 6
    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/b;->a()V

    iget v0, v1, Lz5/db1;->w0:I

    if-ne v0, v4, :cond_12f

    iput v3, v1, Lz5/db1;->w0:I

    :cond_12f
    return v3

    :cond_130
    iget-object v4, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    const/high16 v7, 0x40000000    # 2.0f

    .line 7
    invoke-virtual {v4, v7}, Lcom/google/android/gms/internal/ads/b;->d(I)Z

    move-result v4

    if-eqz v4, :cond_157

    .line 8
    iget-object v7, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    iget-object v7, v7, Lcom/google/android/gms/internal/ads/b;->b:Lz5/i0;

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

    if-nez v0, :cond_144

    goto :goto_157

    .line 9
    :cond_144
    iget-object v8, v7, Lz5/i0;->b:[I

    if-nez v8, :cond_150

    new-array v8, v3, [I

    iput-object v8, v7, Lz5/i0;->b:[I

    iget-object v10, v7, Lz5/i0;->d:Landroid/media/MediaCodec$CryptoInfo;

    iput-object v8, v10, Landroid/media/MediaCodec$CryptoInfo;->numBytesOfClearData:[I

    :cond_150
    iget-object v7, v7, Lz5/i0;->b:[I

    aget v8, v7, v2

    add-int/2addr v8, v0

    aput v8, v7, v2

    .line 10
    :cond_157
    :goto_157
    iget-boolean v0, v1, Lz5/db1;->b0:Z

    const/4 v7, 0x3

    if-eqz v0, :cond_1ae

    if-nez v4, :cond_1ae

    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    iget-object v0, v0, Lcom/google/android/gms/internal/ads/b;->c:Ljava/nio/ByteBuffer;

    sget-object v8, Lz5/f7;->a:[B

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->position()I

    move-result v8

    move v10, v2

    move v11, v10

    :goto_16a
    add-int/lit8 v12, v10, 0x1

    if-ge v12, v8, :cond_19e

    invoke-virtual {v0, v10}, Ljava/nio/ByteBuffer;->get(I)B

    move-result v13

    and-int/lit16 v13, v13, 0xff

    if-ne v11, v7, :cond_195

    if-ne v13, v3, :cond_199

    invoke-virtual {v0, v12}, Ljava/nio/ByteBuffer;->get(I)B

    move-result v13

    and-int/lit8 v13, v13, 0x1f

    const/4 v14, 0x7

    if-ne v13, v14, :cond_193

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->duplicate()Ljava/nio/ByteBuffer;

    move-result-object v11

    add-int/2addr v10, v9

    invoke-virtual {v11, v10}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    invoke-virtual {v11, v8}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;

    invoke-virtual {v0, v2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    invoke-virtual {v0, v11}, Ljava/nio/ByteBuffer;->put(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;

    goto :goto_1a1

    :cond_193
    move v13, v3

    goto :goto_199

    :cond_195
    if-nez v13, :cond_199

    add-int/lit8 v11, v11, 0x1

    :cond_199
    :goto_199
    if-eqz v13, :cond_19c

    move v11, v2

    :cond_19c
    move v10, v12

    goto :goto_16a

    :cond_19e
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    :goto_1a1
    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    iget-object v0, v0, Lcom/google/android/gms/internal/ads/b;->c:Ljava/nio/ByteBuffer;

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->position()I

    move-result v0

    if-nez v0, :cond_1ac

    return v3

    :cond_1ac
    iput-boolean v2, v1, Lz5/db1;->b0:Z

    :cond_1ae
    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

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

    iget-object v10, v1, Lz5/db1;->l0:Lz5/c60;

    const/4 v11, -0x1

    if-eqz v10, :cond_23d

    iget-object v12, v1, Lz5/db1;->O:Lz5/x2;

    .line 11
    iget-wide v13, v10, Lz5/c60;->c:J

    cmp-long v13, v13, v5

    if-nez v13, :cond_1c1

    iput-wide v8, v10, Lz5/c60;->b:J

    :cond_1c1
    iget-boolean v13, v10, Lz5/c60;->d:Z

    if-eqz v13, :cond_1c7

    goto/16 :goto_227

    :cond_1c7
    iget-object v8, v0, Lcom/google/android/gms/internal/ads/b;->c:Ljava/nio/ByteBuffer;

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

    move v9, v2

    move v13, v9

    :goto_1ce
    const/4 v14, 0x4

    if-ge v9, v14, :cond_1dd

    shl-int/lit8 v13, v13, 0x8

    invoke-virtual {v8, v9}, Ljava/nio/ByteBuffer;->get(I)B

    move-result v14

    and-int/lit16 v14, v14, 0xff

    or-int/2addr v13, v14

    add-int/lit8 v9, v9, 0x1

    goto :goto_1ce

    .line 12
    :cond_1dd
    invoke-static {v13}, Lz5/ju1;->b(I)Z

    move-result v8

    if-nez v8, :cond_1e4

    goto :goto_204

    :cond_1e4
    ushr-int/lit8 v8, v13, 0x13

    and-int/2addr v8, v7

    if-ne v8, v3, :cond_1ea

    goto :goto_204

    :cond_1ea
    ushr-int/lit8 v9, v13, 0x11

    and-int/2addr v9, v7

    if-nez v9, :cond_1f0

    goto :goto_204

    :cond_1f0
    ushr-int/lit8 v14, v13, 0xc

    const/16 v15, 0xf

    and-int/2addr v14, v15

    ushr-int/lit8 v13, v13, 0xa

    and-int/2addr v13, v7

    if-eqz v14, :cond_204

    if-eq v14, v15, :cond_204

    if-ne v13, v7, :cond_1ff

    goto :goto_204

    :cond_1ff
    invoke-static {v8, v9}, Lz5/ju1;->c(II)I

    move-result v7

    goto :goto_205

    :cond_204
    :goto_204
    move v7, v11

    :goto_205
    if-ne v7, v11, :cond_219

    .line 13
    iput-boolean v3, v10, Lz5/c60;->d:Z

    iput-wide v5, v10, Lz5/c60;->c:J

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

    iput-wide v5, v10, Lz5/c60;->b:J

    const-string v5, "C2Mp3TimestampTracker"

    const-string v6, "MPEG audio header is invalid."

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

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

    goto :goto_226

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

    int-to-long v5, v0

    invoke-virtual {v10, v5, v6}, Lz5/c60;->c(J)J

    move-result-wide v5

    iget-wide v8, v10, Lz5/c60;->c:J

    int-to-long v12, v7

    add-long/2addr v8, v12

    iput-wide v8, v10, Lz5/c60;->c:J

    :goto_226
    move-wide v8, v5

    .line 14
    :goto_227
    iget-wide v5, v1, Lz5/db1;->C0:J

    iget-object v0, v1, Lz5/db1;->l0:Lz5/c60;

    iget-object v7, v1, Lz5/db1;->O:Lz5/x2;

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

    .line 15
    iget v7, v7, Lz5/x2;->y:I

    int-to-long v12, v7

    invoke-virtual {v0, v12, v13}, Lz5/c60;->c(J)J

    move-result-wide v12

    .line 16
    invoke-static {v5, v6, v12, v13}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v5

    iput-wide v5, v1, Lz5/db1;->C0:J

    :cond_23d
    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

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

    move-result v0

    if-eqz v0, :cond_24e

    iget-object v0, v1, Lz5/db1;->J:Ljava/util/ArrayList;

    invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

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

    :cond_24e
    iget-boolean v0, v1, Lz5/db1;->G0:Z

    if-eqz v0, :cond_2cc

    iget-object v5, v1, Lz5/db1;->I:Lz5/o7;

    iget-object v0, v1, Lz5/db1;->O:Lz5/x2;

    .line 17
    monitor-enter v5

    :try_start_257
    iget v6, v5, Lz5/o7;->d:I

    if-lez v6, :cond_272

    iget v7, v5, Lz5/o7;->c:I

    iget-object v10, v5, Lz5/o7;->b:Ljava/lang/Object;

    check-cast v10, [Ljava/lang/Object;

    array-length v10, v10

    add-int/2addr v7, v6

    add-int/2addr v7, v11

    rem-int/2addr v7, v10

    iget-object v6, v5, Lz5/o7;->a:Ljava/lang/Object;

    check-cast v6, [J

    aget-wide v10, v6, v7

    cmp-long v6, v8, v10

    if-gtz v6, :cond_272

    invoke-virtual {v5}, Lz5/o7;->a()V

    :cond_272
    iget-object v6, v5, Lz5/o7;->b:Ljava/lang/Object;

    check-cast v6, [Ljava/lang/Object;

    array-length v6, v6

    iget v7, v5, Lz5/o7;->d:I

    if-ge v7, v6, :cond_27c

    goto :goto_2af

    :cond_27c
    add-int v7, v6, v6

    new-array v10, v7, [J

    new-array v7, v7, [Ljava/lang/Object;

    iget v11, v5, Lz5/o7;->c:I

    sub-int/2addr v6, v11

    iget-object v12, v5, Lz5/o7;->a:Ljava/lang/Object;

    check-cast v12, [J

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

    iget-object v11, v5, Lz5/o7;->b:Ljava/lang/Object;

    check-cast v11, [Ljava/lang/Object;

    iget v12, v5, Lz5/o7;->c:I

    invoke-static {v11, v12, v7, v2, v6}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget v11, v5, Lz5/o7;->c:I

    if-lez v11, :cond_2a9

    iget-object v12, v5, Lz5/o7;->a:Ljava/lang/Object;

    check-cast v12, [J

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

    iget-object v11, v5, Lz5/o7;->b:Ljava/lang/Object;

    check-cast v11, [Ljava/lang/Object;

    iget v12, v5, Lz5/o7;->c:I

    invoke-static {v11, v2, v7, v6, v12}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    :cond_2a9
    iput-object v10, v5, Lz5/o7;->a:Ljava/lang/Object;

    iput-object v7, v5, Lz5/o7;->b:Ljava/lang/Object;

    iput v2, v5, Lz5/o7;->c:I

    :goto_2af
    iget v6, v5, Lz5/o7;->c:I

    iget v7, v5, Lz5/o7;->d:I

    iget-object v10, v5, Lz5/o7;->b:Ljava/lang/Object;

    check-cast v10, [Ljava/lang/Object;

    add-int/2addr v6, v7

    array-length v11, v10

    rem-int/2addr v6, v11

    iget-object v11, v5, Lz5/o7;->a:Ljava/lang/Object;

    check-cast v11, [J

    aput-wide v8, v11, v6

    aput-object v0, v10, v6

    add-int/2addr v7, v3

    iput v7, v5, Lz5/o7;->d:I
    :try_end_2c5
    .catchall {:try_start_257 .. :try_end_2c5} :catchall_2c9

    monitor-exit v5

    .line 18
    iput-boolean v2, v1, Lz5/db1;->G0:Z

    goto :goto_2cc

    :catchall_2c9
    move-exception v0

    .line 19
    monitor-exit v5

    throw v0

    .line 20
    :cond_2cc
    :goto_2cc
    iget-wide v5, v1, Lz5/db1;->C0:J

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

    move-result-wide v5

    iput-wide v5, v1, Lz5/db1;->C0:J

    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/b;->f()V

    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    const/high16 v5, 0x10000000

    .line 21
    invoke-virtual {v0, v5}, Lcom/google/android/gms/internal/ads/b;->d(I)Z

    move-result v0

    if-eqz v0, :cond_2e8

    .line 22
    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v1, v0}, Lz5/db1;->U(Lcom/google/android/gms/internal/ads/b;)V

    :cond_2e8
    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v1, v0}, Lz5/db1;->J(Lcom/google/android/gms/internal/ads/b;)V

    if-eqz v4, :cond_304

    :try_start_2ef
    iget-object v0, v1, Lz5/db1;->L0:Lz5/tl1;

    iget v13, v1, Lz5/db1;->n0:I

    iget-object v4, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    iget-object v4, v4, Lcom/google/android/gms/internal/ads/b;->b:Lz5/i0;

    .line 23
    iget-object v12, v0, Lz5/tl1;->a:Landroid/media/MediaCodec;

    .line 24
    iget-object v15, v4, Lz5/i0;->d:Landroid/media/MediaCodec$CryptoInfo;

    const/16 v18, 0x0

    const/4 v14, 0x0

    move-wide/from16 v16, v8

    .line 25
    invoke-virtual/range {v12 .. v18}, Landroid/media/MediaCodec;->queueSecureInputBuffer(IILandroid/media/MediaCodec$CryptoInfo;JI)V

    goto :goto_316

    .line 26
    :cond_304
    iget-object v12, v1, Lz5/db1;->L0:Lz5/tl1;

    iget v13, v1, Lz5/db1;->n0:I

    iget-object v0, v1, Lz5/db1;->F:Lcom/google/android/gms/internal/ads/b;

    iget-object v0, v0, Lcom/google/android/gms/internal/ads/b;->c:Ljava/nio/ByteBuffer;

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->limit()I

    move-result v14

    const/16 v17, 0x0

    move-wide v15, v8

    invoke-virtual/range {v12 .. v17}, Lz5/tl1;->b(IIJI)V
    :try_end_316
    .catch Landroid/media/MediaCodec$CryptoException; {:try_start_2ef .. :try_end_316} :catch_325

    :goto_316
    invoke-virtual/range {p0 .. p0}, Lz5/db1;->I()V

    iput-boolean v3, v1, Lz5/db1;->z0:Z

    iput v2, v1, Lz5/db1;->w0:I

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

    iget v2, v0, Lz5/lg;->c:I

    add-int/2addr v2, v3

    iput v2, v0, Lz5/lg;->c:I

    return v3

    :catch_325
    move-exception v0

    iget-object v3, v1, Lz5/db1;->O:Lz5/x2;

    invoke-virtual {v0}, Landroid/media/MediaCodec$CryptoException;->getErrorCode()I

    move-result v4

    invoke-static {v4}, Lz5/v1;->c(I)I

    move-result v4

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

    move-result-object v0

    throw v0

    :catch_335
    move-exception v0

    invoke-virtual {v1, v0}, Lz5/db1;->l0(Ljava/lang/Exception;)V

    invoke-virtual {v1, v2}, Lz5/db1;->o0(I)Z

    invoke-direct/range {p0 .. p0}, Lz5/db1;->c0()V

    return v3

    :cond_340
    :goto_340
    return v2
.end method

.method public abstract d0(Lz5/ac1;Lz5/x2;)I
.end method

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

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

    const/4 p1, 0x0

    return p1
.end method

.method public g()Z
    .registers 2

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

    return v0
.end method

.method public abstract g0(Lz5/ja1;Lz5/x2;Landroid/media/MediaCrypto;F)Lz5/x;
.end method

.method public abstract h0(Lz5/ja1;Lz5/x2;Lz5/x2;)Lz5/dh;
.end method

.method public abstract i0(FLz5/x2;[Lz5/x2;)F
.end method

.method public abstract j0(Ljava/lang/String;JJ)V
.end method

.method public abstract k0(Ljava/lang/String;)V
.end method

.method public l(FF)V
    .registers 3

    iput p1, p0, Lz5/db1;->R:F

    iput p2, p0, Lz5/db1;->S:F

    iget-object p1, p0, Lz5/db1;->T:Lz5/x2;

    invoke-virtual {p0, p1}, Lz5/db1;->X(Lz5/x2;)Z

    return-void
.end method

.method public abstract l0(Ljava/lang/Exception;)V
.end method

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

    const/4 v0, 0x1

    iput-boolean v0, p0, Lz5/db1;->G0:Z

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

    move-object v5, v1

    check-cast v5, Lz5/x2;

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

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

    const/4 v2, 0x0

    if-eqz v1, :cond_f8

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

    check-cast p1, Lz5/g61;

    iput-object p1, p0, Lz5/db1;->N0:Lz5/g61;

    iput-object v5, p0, Lz5/db1;->O:Lz5/x2;

    iget-boolean v1, p0, Lz5/db1;->s0:Z

    const/4 v3, 0x0

    if-eqz v1, :cond_20

    iput-boolean v0, p0, Lz5/db1;->u0:Z

    return-object v3

    :cond_20
    iget-object v1, p0, Lz5/db1;->L0:Lz5/tl1;

    if-nez v1, :cond_2a

    iput-object v3, p0, Lz5/db1;->X:Ljava/util/ArrayDeque;

    invoke-virtual {p0}, Lz5/db1;->N()V

    return-object v3

    :cond_2a
    iget-object v3, p0, Lz5/db1;->Z:Lz5/ja1;

    iget-object v4, p0, Lz5/db1;->T:Lz5/x2;

    iget-object v6, p0, Lz5/db1;->M0:Lz5/g61;

    const/16 v7, 0x17

    if-ne v6, p1, :cond_d3

    if-eq p1, v6, :cond_3d

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

    if-lt v8, v7, :cond_3b

    goto :goto_3d

    :cond_3b
    move v7, v2

    goto :goto_3e

    :cond_3d
    :goto_3d
    move v7, v0

    :goto_3e
    invoke-static {v7}, Lcom/google/android/gms/internal/ads/d;->n(Z)V

    invoke-virtual {p0, v3, v4, v5}, Lz5/db1;->h0(Lz5/ja1;Lz5/x2;Lz5/x2;)Lz5/dh;

    move-result-object v7

    iget v8, v7, Lz5/dh;->d:I

    const/4 v9, 0x3

    const/16 v10, 0x10

    const/4 v11, 0x2

    if-eqz v8, :cond_b7

    if-eq v8, v0, :cond_8f

    if-eq v8, v11, :cond_63

    invoke-virtual {p0, v5}, Lz5/db1;->X(Lz5/x2;)Z

    move-result v0

    if-nez v0, :cond_58

    goto :goto_95

    :cond_58
    iput-object v5, p0, Lz5/db1;->T:Lz5/x2;

    if-eq p1, v6, :cond_ba

    invoke-virtual {p0}, Lz5/db1;->Y()Z

    move-result p1

    if-nez p1, :cond_ba

    goto :goto_bb

    :cond_63
    invoke-virtual {p0, v5}, Lz5/db1;->X(Lz5/x2;)Z

    move-result v8

    if-nez v8, :cond_6a

    goto :goto_95

    :cond_6a
    iput-boolean v0, p0, Lz5/db1;->v0:Z

    iput v0, p0, Lz5/db1;->w0:I

    iget v8, p0, Lz5/db1;->a0:I

    if-eq v8, v11, :cond_82

    if-ne v8, v0, :cond_81

    iget v8, v5, Lz5/x2;->p:I

    iget v10, v4, Lz5/x2;->p:I

    if-ne v8, v10, :cond_81

    iget v8, v5, Lz5/x2;->q:I

    iget v10, v4, Lz5/x2;->q:I

    if-ne v8, v10, :cond_81

    goto :goto_82

    :cond_81
    move v0, v2

    :cond_82
    :goto_82
    iput-boolean v0, p0, Lz5/db1;->i0:Z

    iput-object v5, p0, Lz5/db1;->T:Lz5/x2;

    if-eq p1, v6, :cond_ba

    invoke-virtual {p0}, Lz5/db1;->Y()Z

    move-result p1

    if-nez p1, :cond_ba

    goto :goto_bb

    :cond_8f
    invoke-virtual {p0, v5}, Lz5/db1;->X(Lz5/x2;)Z

    move-result v8

    if-nez v8, :cond_97

    :goto_95
    move v11, v10

    goto :goto_bb

    :cond_97
    iput-object v5, p0, Lz5/db1;->T:Lz5/x2;

    if-eq p1, v6, :cond_a2

    invoke-virtual {p0}, Lz5/db1;->Y()Z

    move-result p1

    if-nez p1, :cond_ba

    goto :goto_bb

    :cond_a2
    iget-boolean p1, p0, Lz5/db1;->z0:Z

    if-eqz p1, :cond_ba

    iput v0, p0, Lz5/db1;->x0:I

    iget-boolean p1, p0, Lz5/db1;->c0:Z

    if-nez p1, :cond_b4

    iget-boolean p1, p0, Lz5/db1;->e0:Z

    if-eqz p1, :cond_b1

    goto :goto_b4

    :cond_b1
    iput v0, p0, Lz5/db1;->y0:I

    goto :goto_ba

    :cond_b4
    :goto_b4
    iput v9, p0, Lz5/db1;->y0:I

    goto :goto_bb

    :cond_b7
    invoke-virtual {p0}, Lz5/db1;->Z()V

    :cond_ba
    :goto_ba
    move v11, v2

    :goto_bb
    iget p1, v7, Lz5/dh;->d:I

    if-eqz p1, :cond_d2

    iget-object p1, p0, Lz5/db1;->L0:Lz5/tl1;

    if-ne p1, v1, :cond_c7

    iget p1, p0, Lz5/db1;->y0:I

    if-ne p1, v9, :cond_d2

    :cond_c7
    new-instance p1, Lz5/dh;

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

    const/4 v6, 0x0

    move-object v2, p1

    move v7, v11

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

    return-object p1

    :cond_d2
    return-object v7

    :cond_d3
    if-eqz p1, :cond_e9

    if-nez v6, :cond_d8

    goto :goto_e9

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

    if-lt p1, v7, :cond_e9

    sget-object p1, Lz5/v1;->b:Ljava/util/UUID;

    sget-object v0, Lz5/v1;->a:Ljava/util/UUID;

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

    move-result v1

    if-nez v1, :cond_e9

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

    :cond_e9
    :goto_e9
    invoke-virtual {p0}, Lz5/db1;->Z()V

    new-instance p1, Lz5/dh;

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

    const/4 v6, 0x0

    const/16 v7, 0x80

    move-object v2, p1

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

    return-object p1

    :cond_f8
    new-instance p1, Ljava/lang/IllegalArgumentException;

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

    const/16 v0, 0xfa5

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

    move-result-object p1

    throw p1
.end method

.method public abstract n0(Lz5/x2;Landroid/media/MediaFormat;)V
.end method

.method public final o0(I)Z
    .registers 5

    invoke-virtual {p0}, Lz5/u1;->y()Landroidx/appcompat/widget/n;

    move-result-object v0

    iget-object v1, p0, Lz5/db1;->E:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v1}, Lcom/google/android/gms/internal/ads/b;->a()V

    iget-object v1, p0, Lz5/db1;->E:Lcom/google/android/gms/internal/ads/b;

    or-int/lit8 p1, p1, 0x4

    invoke-virtual {p0, v0, v1, p1}, Lz5/u1;->A(Landroidx/appcompat/widget/n;Lcom/google/android/gms/internal/ads/b;I)I

    move-result p1

    const/4 v1, 0x1

    const/4 v2, -0x5

    if-ne p1, v2, :cond_19

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

    return v1

    :cond_19
    const/4 v0, -0x4

    if-ne p1, v0, :cond_29

    iget-object p1, p0, Lz5/db1;->E:Lcom/google/android/gms/internal/ads/b;

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

    move-result p1

    if-eqz p1, :cond_29

    iput-boolean v1, p0, Lz5/db1;->E0:Z

    invoke-virtual {p0}, Lz5/db1;->a0()V

    :cond_29
    const/4 p1, 0x0

    return p1
.end method

.method public final p0(J)Z
    .registers 7

    iget-wide v0, p0, Lz5/db1;->Q:J

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

    cmp-long v0, v0, v2

    if-eqz v0, :cond_19

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    sub-long/2addr v0, p1

    iget-wide p1, p0, Lz5/db1;->Q:J

    cmp-long p1, v0, p1

    if-gez p1, :cond_17

    goto :goto_19

    :cond_17
    const/4 p1, 0x0

    return p1

    :cond_19
    :goto_19
    const/4 p1, 0x1

    return p1
.end method

.method public final u(JJ)V
    .registers 29

    move-object/from16 v15, p0

    const/16 v14, 0x15

    const/4 v13, 0x0

    const/4 v11, 0x1

    :try_start_6
    iget-boolean v0, v15, Lz5/db1;->F0:Z

    if-eqz v0, :cond_e

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

    return-void

    :cond_e
    iget-object v0, v15, Lz5/db1;->O:Lz5/x2;

    const/4 v12, 0x2

    if-nez v0, :cond_1b

    invoke-virtual {v15, v12}, Lz5/db1;->o0(I)Z

    move-result v0

    if-eqz v0, :cond_1a

    goto :goto_1b

    :cond_1a
    return-void

    :cond_1b
    :goto_1b
    invoke-virtual/range {p0 .. p0}, Lz5/db1;->N()V

    iget-boolean v0, v15, Lz5/db1;->s0:Z

    const/4 v10, 0x0

    if-eqz v0, :cond_15e

    const-string v0, "bypassRender"

    invoke-static {v0}, Lz5/bd1;->b(Ljava/lang/String;)V
    :try_end_28
    .catch Ljava/lang/IllegalStateException; {:try_start_6 .. :try_end_28} :catch_404

    move-object v1, v15

    :goto_29
    :try_start_29
    iget-boolean v0, v1, Lz5/db1;->F0:Z

    xor-int/2addr v0, v11

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/d;->n(Z)V

    iget-object v0, v1, Lz5/db1;->H:Lz5/d81;

    invoke-virtual {v0}, Lz5/d81;->h()Z

    move-result v0

    if-eqz v0, :cond_8b

    iget-object v0, v1, Lz5/db1;->H:Lz5/d81;

    iget-object v7, v0, Lcom/google/android/gms/internal/ads/b;->c:Ljava/nio/ByteBuffer;

    iget v8, v1, Lz5/db1;->o0:I
    :try_end_3d
    .catch Ljava/lang/IllegalStateException; {:try_start_29 .. :try_end_3d} :catch_156

    .line 1
    :try_start_3d
    iget v12, v0, Lz5/d81;->i:I
    :try_end_3f
    .catch Ljava/lang/IllegalStateException; {:try_start_3d .. :try_end_3f} :catch_87

    .line 2
    :try_start_3f
    iget-wide v4, v0, Lcom/google/android/gms/internal/ads/b;->e:J

    const/4 v6, 0x0

    const/4 v9, 0x0

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

    move-result v0

    iget-object v2, v1, Lz5/db1;->H:Lz5/d81;

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

    move-result v16

    iget-object v2, v1, Lz5/db1;->P:Lz5/x2;
    :try_end_4f
    .catch Ljava/lang/IllegalStateException; {:try_start_3f .. :try_end_4f} :catch_156

    move-object/from16 v1, p0

    move-object/from16 v17, v2

    move-wide/from16 v2, p1

    move-wide/from16 v18, v4

    move-wide/from16 v4, p3

    move v10, v12

    move-wide/from16 v11, v18

    move v13, v0

    move/from16 v14, v16

    move-object/from16 v15, v17

    :try_start_61
    invoke-virtual/range {v1 .. v15}, Lz5/db1;->M(JJLz5/tl1;Ljava/nio/ByteBuffer;IIIJZZLz5/x2;)Z

    move-result v0
    :try_end_65
    .catch Ljava/lang/IllegalStateException; {:try_start_61 .. :try_end_65} :catch_80

    move-object/from16 v15, p0

    if-eqz v0, :cond_7b

    :try_start_69
    iget-object v0, v15, Lz5/db1;->H:Lz5/d81;

    .line 3
    iget-wide v0, v0, Lz5/d81;->h:J

    .line 4
    invoke-virtual {v15, v0, v1}, Lz5/db1;->V(J)V

    iget-object v0, v15, Lz5/db1;->H:Lz5/d81;

    invoke-virtual {v0}, Lz5/d81;->a()V
    :try_end_75
    .catch Ljava/lang/IllegalStateException; {:try_start_69 .. :try_end_75} :catch_77

    move-object v1, v15

    goto :goto_8b

    :catch_77
    move-exception v0

    move-object v1, v15

    goto/16 :goto_14d

    :cond_7b
    move-object v1, v15

    const/4 v13, 0x0

    const/4 v14, 0x1

    goto/16 :goto_139

    :catch_80
    move-exception v0

    move-object/from16 v15, p0

    const/16 v18, 0x0

    goto/16 :goto_348

    :catch_87
    move-exception v0

    move v14, v11

    goto/16 :goto_14f

    :cond_8b
    :goto_8b
    :try_start_8b
    iget-boolean v0, v1, Lz5/db1;->E0:Z
    :try_end_8d
    .catch Ljava/lang/IllegalStateException; {:try_start_8b .. :try_end_8d} :catch_14c

    const/4 v14, 0x1

    if-eqz v0, :cond_95

    :try_start_90
    iput-boolean v14, v1, Lz5/db1;->F0:Z

    const/4 v13, 0x0

    goto/16 :goto_139

    :cond_95
    iget-boolean v0, v1, Lz5/db1;->t0:Z

    if-eqz v0, :cond_a8

    iget-object v0, v1, Lz5/db1;->H:Lz5/d81;

    iget-object v2, v1, Lz5/db1;->G:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v0, v2}, Lz5/d81;->i(Lcom/google/android/gms/internal/ads/b;)Z

    move-result v0

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/d;->n(Z)V
    :try_end_a4
    .catch Ljava/lang/IllegalStateException; {:try_start_90 .. :try_end_a4} :catch_149

    const/4 v13, 0x0

    :try_start_a5
    iput-boolean v13, v1, Lz5/db1;->t0:Z

    goto :goto_a9

    :cond_a8
    const/4 v13, 0x0

    :goto_a9
    iget-boolean v0, v1, Lz5/db1;->u0:Z

    if-eqz v0, :cond_c5

    iget-object v0, v1, Lz5/db1;->H:Lz5/d81;

    invoke-virtual {v0}, Lz5/d81;->h()Z

    move-result v0

    if-nez v0, :cond_c2

    invoke-direct/range {p0 .. p0}, Lz5/db1;->W()V

    iput-boolean v13, v1, Lz5/db1;->u0:Z

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

    iget-boolean v0, v1, Lz5/db1;->s0:Z

    if-eqz v0, :cond_139

    goto :goto_c5

    :cond_c2
    const/4 v11, 0x0

    goto/16 :goto_143

    :cond_c5
    :goto_c5
    iget-boolean v0, v1, Lz5/db1;->E0:Z

    xor-int/2addr v0, v14

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/d;->n(Z)V

    invoke-virtual/range {p0 .. p0}, Lz5/u1;->y()Landroidx/appcompat/widget/n;

    move-result-object v0

    iget-object v2, v1, Lz5/db1;->G:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v2}, Lcom/google/android/gms/internal/ads/b;->a()V

    :cond_d4
    iget-object v2, v1, Lz5/db1;->G:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v2}, Lcom/google/android/gms/internal/ads/b;->a()V

    iget-object v2, v1, Lz5/db1;->G:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v1, v0, v2, v13}, Lz5/u1;->A(Landroidx/appcompat/widget/n;Lcom/google/android/gms/internal/ads/b;I)I

    move-result v2

    const/4 v3, -0x5

    if-eq v2, v3, :cond_117

    const/4 v3, -0x4

    if-eq v2, v3, :cond_e6

    goto :goto_f0

    :cond_e6
    iget-object v2, v1, Lz5/db1;->G:Lcom/google/android/gms/internal/ads/b;

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

    move-result v2

    if-eqz v2, :cond_f2

    iput-boolean v14, v1, Lz5/db1;->E0:Z

    :goto_f0
    const/4 v11, 0x0

    goto :goto_11b

    :cond_f2
    iget-boolean v2, v1, Lz5/db1;->G0:Z

    if-eqz v2, :cond_104

    iget-object v2, v1, Lz5/db1;->O:Lz5/x2;
    :try_end_f8
    .catch Ljava/lang/IllegalStateException; {:try_start_a5 .. :try_end_f8} :catch_2eb

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

    :try_start_fb
    iput-object v2, v1, Lz5/db1;->P:Lz5/x2;

    const/4 v11, 0x0

    invoke-virtual {v1, v2, v11}, Lz5/db1;->n0(Lz5/x2;Landroid/media/MediaFormat;)V

    iput-boolean v13, v1, Lz5/db1;->G0:Z

    goto :goto_105

    :cond_104
    const/4 v11, 0x0

    :goto_105
    iget-object v2, v1, Lz5/db1;->G:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v2}, Lcom/google/android/gms/internal/ads/b;->f()V

    iget-object v2, v1, Lz5/db1;->H:Lz5/d81;

    iget-object v3, v1, Lz5/db1;->G:Lcom/google/android/gms/internal/ads/b;

    invoke-virtual {v2, v3}, Lz5/d81;->i(Lcom/google/android/gms/internal/ads/b;)Z

    move-result v2

    if-nez v2, :cond_d4

    iput-boolean v14, v1, Lz5/db1;->t0:Z

    goto :goto_11b

    :cond_117
    const/4 v11, 0x0

    invoke-virtual {v1, v0}, Lz5/db1;->m0(Landroidx/appcompat/widget/n;)Lz5/dh;

    :goto_11b
    iget-object v0, v1, Lz5/db1;->H:Lz5/d81;

    invoke-virtual {v0}, Lz5/d81;->h()Z

    move-result v0

    if-eqz v0, :cond_128

    iget-object v0, v1, Lz5/db1;->H:Lz5/d81;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/b;->f()V

    :cond_128
    iget-object v0, v1, Lz5/db1;->H:Lz5/d81;

    invoke-virtual {v0}, Lz5/d81;->h()Z

    move-result v0

    if-nez v0, :cond_143

    iget-boolean v0, v1, Lz5/db1;->E0:Z

    if-nez v0, :cond_143

    iget-boolean v0, v1, Lz5/db1;->u0:Z

    if-eqz v0, :cond_139

    goto :goto_143

    :cond_139
    :goto_139
    invoke-static {}, Lz5/bd1;->d()V
    :try_end_13c
    .catch Ljava/lang/IllegalStateException; {:try_start_fb .. :try_end_13c} :catch_2eb

    move/from16 v18, v13

    move-object v2, v15

    move-object v15, v1

    move v1, v14

    goto/16 :goto_3f1

    :cond_143
    :goto_143
    move-object v10, v11

    move v11, v14

    const/16 v14, 0x15

    goto/16 :goto_29

    :catch_149
    move-exception v0

    const/4 v13, 0x0

    goto :goto_14f

    :catch_14c
    move-exception v0

    :goto_14d
    const/4 v13, 0x0

    const/4 v14, 0x1

    :goto_14f
    move/from16 v18, v13

    move-object v2, v15

    move-object v15, v1

    move v1, v14

    goto/16 :goto_409

    :catch_156
    move-exception v0

    move/from16 v18, v13

    move-object v2, v15

    move-object v15, v1

    move v1, v11

    goto/16 :goto_409

    :cond_15e
    move v14, v11

    move-object v11, v10

    :try_start_160
    iget-object v0, v15, Lz5/db1;->L0:Lz5/tl1;
    :try_end_162
    .catch Ljava/lang/IllegalStateException; {:try_start_160 .. :try_end_162} :catch_3fe

    if-eqz v0, :cond_3d5

    :try_start_164
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v9

    const-string v0, "drainAndFeed"

    invoke-static {v0}, Lz5/bd1;->b(Ljava/lang/String;)V
    :try_end_16d
    .catch Ljava/lang/IllegalStateException; {:try_start_164 .. :try_end_16d} :catch_3ce

    move-object v1, v15

    .line 5
    :goto_16e
    :try_start_16e
    iget v0, v1, Lz5/db1;->o0:I
    :try_end_170
    .catch Ljava/lang/IllegalStateException; {:try_start_16e .. :try_end_170} :catch_3c8

    if-ltz v0, :cond_174

    move v0, v14

    goto :goto_175

    :cond_174
    move v0, v13

    :goto_175
    if-nez v0, :cond_2ee

    .line 6
    :try_start_177
    iget-boolean v0, v1, Lz5/db1;->f0:Z

    if-eqz v0, :cond_194

    iget-boolean v0, v1, Lz5/db1;->A0:Z
    :try_end_17d
    .catch Ljava/lang/IllegalStateException; {:try_start_177 .. :try_end_17d} :catch_2eb

    if-eqz v0, :cond_194

    :try_start_17f
    iget-object v0, v1, Lz5/db1;->L0:Lz5/tl1;

    iget-object v2, v1, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    invoke-virtual {v0, v2}, Lz5/tl1;->a(Landroid/media/MediaCodec$BufferInfo;)I

    move-result v0
    :try_end_187
    .catch Ljava/lang/IllegalStateException; {:try_start_17f .. :try_end_187} :catch_188

    goto :goto_19c

    :catch_188
    :try_start_188
    invoke-virtual/range {p0 .. p0}, Lz5/db1;->a0()V

    iget-boolean v0, v1, Lz5/db1;->F0:Z

    if-eqz v0, :cond_205

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

    goto/16 :goto_205

    :cond_194
    iget-object v0, v1, Lz5/db1;->L0:Lz5/tl1;

    iget-object v2, v1, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    invoke-virtual {v0, v2}, Lz5/tl1;->a(Landroid/media/MediaCodec$BufferInfo;)I

    move-result v0

    :goto_19c
    if-gez v0, :cond_1df

    const/4 v2, -0x2

    if-ne v0, v2, :cond_1d2

    iput-boolean v14, v1, Lz5/db1;->B0:Z

    iget-object v0, v1, Lz5/db1;->L0:Lz5/tl1;

    .line 7
    iget-object v0, v0, Lz5/tl1;->a:Landroid/media/MediaCodec;

    invoke-virtual {v0}, Landroid/media/MediaCodec;->getOutputFormat()Landroid/media/MediaFormat;

    move-result-object v0

    .line 8
    iget v2, v1, Lz5/db1;->a0:I

    if-eqz v2, :cond_1c4

    const-string v2, "width"

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

    move-result v2

    const/16 v3, 0x20

    if-ne v2, v3, :cond_1c4

    const-string v2, "height"

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

    move-result v2

    if-ne v2, v3, :cond_1c4

    iput-boolean v14, v1, Lz5/db1;->j0:Z

    goto :goto_1ec

    :cond_1c4
    iget-boolean v2, v1, Lz5/db1;->h0:Z

    if-eqz v2, :cond_1cd

    const-string v2, "channel-count"

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

    :cond_1cd
    iput-object v0, v1, Lz5/db1;->U:Landroid/media/MediaFormat;

    iput-boolean v14, v1, Lz5/db1;->V:Z

    goto :goto_1ec

    :cond_1d2
    iget-boolean v0, v1, Lz5/db1;->k0:Z

    if-eqz v0, :cond_205

    iget-boolean v0, v1, Lz5/db1;->E0:Z

    if-nez v0, :cond_202

    iget v0, v1, Lz5/db1;->x0:I

    if-ne v0, v12, :cond_205

    goto :goto_202

    :cond_1df
    iget-boolean v2, v1, Lz5/db1;->j0:Z

    if-eqz v2, :cond_1f6

    iput-boolean v13, v1, Lz5/db1;->j0:Z

    iget-object v2, v1, Lz5/db1;->L0:Lz5/tl1;

    .line 9
    iget-object v2, v2, Lz5/tl1;->a:Landroid/media/MediaCodec;

    invoke-virtual {v2, v0, v13}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V

    :goto_1ec
    move-object v3, v1

    move-wide v4, v9

    move-object v1, v11

    move/from16 v16, v12

    move/from16 v18, v13

    move-object v2, v15

    goto/16 :goto_38f

    .line 10
    :cond_1f6
    iget-object v2, v1, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    iget v3, v2, Landroid/media/MediaCodec$BufferInfo;->size:I

    if-nez v3, :cond_20c

    iget v2, v2, Landroid/media/MediaCodec$BufferInfo;->flags:I

    and-int/lit8 v2, v2, 0x4

    if-eqz v2, :cond_20c

    :cond_202
    :goto_202
    invoke-virtual/range {p0 .. p0}, Lz5/db1;->a0()V

    :cond_205
    :goto_205
    move-wide v4, v9

    move/from16 v18, v13

    move-object v2, v15

    move-object v15, v1

    goto/16 :goto_3a9

    :cond_20c
    iput v0, v1, Lz5/db1;->o0:I

    iget-object v2, v1, Lz5/db1;->L0:Lz5/tl1;

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

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

    const/16 v8, 0x15

    if-lt v3, v8, :cond_220

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

    invoke-virtual {v2, v0}, Landroid/media/MediaCodec;->getOutputBuffer(I)Ljava/nio/ByteBuffer;

    move-result-object v0

    goto :goto_224

    :cond_220
    iget-object v2, v2, Lz5/tl1;->c:[Ljava/nio/ByteBuffer;

    aget-object v0, v2, v0

    .line 12
    :goto_224
    iput-object v0, v1, Lz5/db1;->p0:Ljava/nio/ByteBuffer;

    if-eqz v0, :cond_23b

    iget-object v2, v1, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    iget v2, v2, Landroid/media/MediaCodec$BufferInfo;->offset:I

    invoke-virtual {v0, v2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    iget-object v0, v1, Lz5/db1;->p0:Ljava/nio/ByteBuffer;

    iget-object v2, v1, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    iget v3, v2, Landroid/media/MediaCodec$BufferInfo;->offset:I

    iget v2, v2, Landroid/media/MediaCodec$BufferInfo;->size:I

    add-int/2addr v3, v2

    invoke-virtual {v0, v3}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;

    :cond_23b
    iget-boolean v0, v1, Lz5/db1;->g0:Z

    const-wide/16 v2, 0x0

    if-eqz v0, :cond_25c

    iget-object v0, v1, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    iget-wide v4, v0, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    cmp-long v4, v4, v2

    if-nez v4, :cond_25c

    iget v4, v0, Landroid/media/MediaCodec$BufferInfo;->flags:I

    and-int/lit8 v4, v4, 0x4

    if-eqz v4, :cond_25c

    iget-wide v4, v1, Lz5/db1;->C0:J

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

    cmp-long v6, v4, v6

    if-eqz v6, :cond_25c

    iput-wide v4, v0, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    :cond_25c
    iget-object v0, v1, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    iget-wide v4, v0, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    iget-object v0, v1, Lz5/db1;->J:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    move v6, v13

    :goto_267
    if-ge v6, v0, :cond_283

    iget-object v7, v1, Lz5/db1;->J:Ljava/util/ArrayList;

    invoke-virtual {v7, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/Long;

    invoke-virtual {v7}, Ljava/lang/Long;->longValue()J

    move-result-wide v16

    cmp-long v7, v16, v4

    if-nez v7, :cond_280

    iget-object v0, v1, Lz5/db1;->J:Ljava/util/ArrayList;

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

    move v0, v14

    goto :goto_284

    :cond_280
    add-int/lit8 v6, v6, 0x1

    goto :goto_267

    :cond_283
    move v0, v13

    :goto_284
    iput-boolean v0, v1, Lz5/db1;->q0:Z

    iget-wide v4, v1, Lz5/db1;->D0:J

    iget-object v0, v1, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    iget-wide v6, v0, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    cmp-long v0, v4, v6

    if-nez v0, :cond_292

    move v0, v14

    goto :goto_293

    :cond_292
    move v0, v13

    :goto_293
    iput-boolean v0, v1, Lz5/db1;->r0:Z

    iget-object v4, v1, Lz5/db1;->I:Lz5/o7;

    .line 13
    monitor-enter v4
    :try_end_298
    .catch Ljava/lang/IllegalStateException; {:try_start_188 .. :try_end_298} :catch_2eb

    move-object v0, v11

    :goto_299
    :try_start_299
    iget v5, v4, Lz5/o7;->d:I

    if-lez v5, :cond_2b3

    iget-object v5, v4, Lz5/o7;->a:Ljava/lang/Object;

    check-cast v5, [J

    iget v8, v4, Lz5/o7;->c:I

    aget-wide v16, v5, v8

    sub-long v16, v6, v16

    cmp-long v5, v16, v2

    if-gez v5, :cond_2ac

    goto :goto_2b3

    :cond_2ac
    invoke-virtual {v4}, Lz5/o7;->b()Ljava/lang/Object;

    move-result-object v0
    :try_end_2b0
    .catchall {:try_start_299 .. :try_end_2b0} :catchall_2e8

    const/16 v8, 0x15

    goto :goto_299

    :cond_2b3
    :goto_2b3
    :try_start_2b3
    monitor-exit v4

    .line 14
    check-cast v0, Lz5/x2;

    if-nez v0, :cond_2d1

    iget-boolean v2, v1, Lz5/db1;->V:Z

    if-eqz v2, :cond_2d1

    iget-object v2, v1, Lz5/db1;->I:Lz5/o7;

    .line 15
    monitor-enter v2
    :try_end_2bf
    .catch Ljava/lang/IllegalStateException; {:try_start_2b3 .. :try_end_2bf} :catch_2eb

    :try_start_2bf
    iget v0, v2, Lz5/o7;->d:I
    :try_end_2c1
    .catchall {:try_start_2bf .. :try_end_2c1} :catchall_2ce

    if-nez v0, :cond_2c6

    :try_start_2c3
    monitor-exit v2
    :try_end_2c4
    .catch Ljava/lang/IllegalStateException; {:try_start_2c3 .. :try_end_2c4} :catch_2eb

    move-object v0, v11

    goto :goto_2cb

    :cond_2c6
    :try_start_2c6
    invoke-virtual {v2}, Lz5/o7;->b()Ljava/lang/Object;

    move-result-object v0
    :try_end_2ca
    .catchall {:try_start_2c6 .. :try_end_2ca} :catchall_2ce

    :try_start_2ca
    monitor-exit v2

    .line 16
    :goto_2cb
    check-cast v0, Lz5/x2;

    goto :goto_2d1

    :catchall_2ce
    move-exception v0

    .line 17
    monitor-exit v2

    throw v0

    :cond_2d1
    :goto_2d1
    if-eqz v0, :cond_2d6

    .line 18
    iput-object v0, v1, Lz5/db1;->P:Lz5/x2;

    goto :goto_2de

    :cond_2d6
    iget-boolean v0, v1, Lz5/db1;->V:Z

    if-eqz v0, :cond_2ee

    iget-object v0, v1, Lz5/db1;->P:Lz5/x2;

    if-eqz v0, :cond_2ee

    :goto_2de
    iget-object v0, v1, Lz5/db1;->P:Lz5/x2;

    iget-object v2, v1, Lz5/db1;->U:Landroid/media/MediaFormat;

    invoke-virtual {v1, v0, v2}, Lz5/db1;->n0(Lz5/x2;Landroid/media/MediaFormat;)V

    iput-boolean v13, v1, Lz5/db1;->V:Z

    goto :goto_2ee

    :catchall_2e8
    move-exception v0

    .line 19
    monitor-exit v4

    throw v0
    :try_end_2eb
    .catch Ljava/lang/IllegalStateException; {:try_start_2ca .. :try_end_2eb} :catch_2eb

    :catch_2eb
    move-exception v0

    goto/16 :goto_14f

    .line 20
    :cond_2ee
    :goto_2ee
    :try_start_2ee
    iget-boolean v0, v1, Lz5/db1;->f0:Z
    :try_end_2f0
    .catch Ljava/lang/IllegalStateException; {:try_start_2ee .. :try_end_2f0} :catch_3c3

    if-eqz v0, :cond_34b

    :try_start_2f2
    iget-boolean v0, v1, Lz5/db1;->A0:Z
    :try_end_2f4
    .catch Ljava/lang/IllegalStateException; {:try_start_2f2 .. :try_end_2f4} :catch_2eb

    if-eqz v0, :cond_34b

    :try_start_2f6
    iget-object v6, v1, Lz5/db1;->L0:Lz5/tl1;

    iget-object v7, v1, Lz5/db1;->p0:Ljava/nio/ByteBuffer;

    iget v8, v1, Lz5/db1;->o0:I

    iget-object v0, v1, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    iget v4, v0, Landroid/media/MediaCodec$BufferInfo;->flags:I

    const/16 v16, 0x1

    iget-wide v2, v0, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    iget-boolean v0, v1, Lz5/db1;->q0:Z

    iget-boolean v5, v1, Lz5/db1;->r0:Z

    iget-object v1, v1, Lz5/db1;->P:Lz5/x2;
    :try_end_30a
    .catch Ljava/lang/IllegalStateException; {:try_start_2f6 .. :try_end_30a} :catch_32e

    move-object/from16 v17, v1

    move-object/from16 v1, p0

    move-wide/from16 v18, v2

    move-wide/from16 v2, p1

    move/from16 v20, v4

    move/from16 v21, v5

    move-wide/from16 v4, p3

    move-wide/from16 v22, v9

    move/from16 v9, v20

    move/from16 v10, v16

    move/from16 v16, v12

    move-wide/from16 v11, v18

    move/from16 v18, v13

    move v13, v0

    move/from16 v14, v21

    move-object/from16 v15, v17

    :try_start_329
    invoke-virtual/range {v1 .. v15}, Lz5/db1;->M(JJLz5/tl1;Ljava/nio/ByteBuffer;IIIJZZLz5/x2;)Z

    move-result v0
    :try_end_32d
    .catch Ljava/lang/IllegalStateException; {:try_start_329 .. :try_end_32d} :catch_332

    goto :goto_36f

    :catch_32e
    move-wide/from16 v22, v9

    move/from16 v18, v13

    :catch_332
    :try_start_332
    invoke-virtual/range {p0 .. p0}, Lz5/db1;->a0()V
    :try_end_335
    .catch Ljava/lang/IllegalStateException; {:try_start_332 .. :try_end_335} :catch_345

    move-object/from16 v15, p0

    :try_start_337
    iget-boolean v0, v15, Lz5/db1;->F0:Z

    if-eqz v0, :cond_33e

    invoke-virtual/range {p0 .. p0}, Lz5/db1;->P()V
    :try_end_33e
    .catch Ljava/lang/IllegalStateException; {:try_start_337 .. :try_end_33e} :catch_343

    :cond_33e
    move-object v2, v15

    :cond_33f
    :goto_33f
    move-wide/from16 v4, v22

    goto/16 :goto_3a8

    :catch_343
    move-exception v0

    goto :goto_348

    :catch_345
    move-exception v0

    move-object/from16 v15, p0

    :goto_348
    move-object v2, v15

    goto/16 :goto_3d3

    :cond_34b
    move-wide/from16 v22, v9

    move/from16 v16, v12

    move/from16 v18, v13

    :try_start_351
    iget-object v6, v1, Lz5/db1;->L0:Lz5/tl1;

    iget-object v7, v1, Lz5/db1;->p0:Ljava/nio/ByteBuffer;

    iget v8, v1, Lz5/db1;->o0:I

    iget-object v0, v1, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    iget v9, v0, Landroid/media/MediaCodec$BufferInfo;->flags:I

    const/4 v10, 0x1

    iget-wide v11, v0, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    iget-boolean v13, v1, Lz5/db1;->q0:Z

    iget-boolean v14, v1, Lz5/db1;->r0:Z

    iget-object v0, v1, Lz5/db1;->P:Lz5/x2;
    :try_end_364
    .catch Ljava/lang/IllegalStateException; {:try_start_351 .. :try_end_364} :catch_3c0

    move-object/from16 v1, p0

    move-wide/from16 v2, p1

    move-wide/from16 v4, p3

    move-object v15, v0

    :try_start_36b
    invoke-virtual/range {v1 .. v15}, Lz5/db1;->M(JJLz5/tl1;Ljava/nio/ByteBuffer;IIIJZZLz5/x2;)Z

    move-result v0
    :try_end_36f
    .catch Ljava/lang/IllegalStateException; {:try_start_36b .. :try_end_36f} :catch_3bc

    :goto_36f
    move-object/from16 v2, p0

    if-eqz v0, :cond_33f

    :try_start_373
    iget-object v0, v2, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    iget-wide v0, v0, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    invoke-virtual {v2, v0, v1}, Lz5/db1;->V(J)V

    iget-object v0, v2, Lz5/db1;->K:Landroid/media/MediaCodec$BufferInfo;

    iget v0, v0, Landroid/media/MediaCodec$BufferInfo;->flags:I

    const/4 v1, -0x1

    .line 21
    iput v1, v2, Lz5/db1;->o0:I

    const/4 v1, 0x0

    iput-object v1, v2, Lz5/db1;->p0:Ljava/nio/ByteBuffer;

    and-int/lit8 v0, v0, 0x4

    if-eqz v0, :cond_38c

    .line 22
    invoke-virtual/range {p0 .. p0}, Lz5/db1;->a0()V
    :try_end_38b
    .catch Ljava/lang/IllegalStateException; {:try_start_373 .. :try_end_38b} :catch_3a5

    goto :goto_33f

    :cond_38c
    move-object v3, v2

    move-wide/from16 v4, v22

    :goto_38f
    :try_start_38f
    invoke-virtual {v3, v4, v5}, Lz5/db1;->p0(J)Z

    move-result v0
    :try_end_393
    .catch Ljava/lang/IllegalStateException; {:try_start_38f .. :try_end_393} :catch_3a2

    if-nez v0, :cond_397

    move-object v15, v3

    goto :goto_3a9

    :cond_397
    move-object v11, v1

    move-object v15, v2

    move-object v1, v3

    move-wide v9, v4

    move/from16 v12, v16

    move/from16 v13, v18

    const/4 v14, 0x1

    goto/16 :goto_16e

    :catch_3a2
    move-exception v0

    move-object v15, v3

    goto :goto_3d3

    :catch_3a5
    move-exception v0

    :goto_3a6
    move-object v15, v2

    goto :goto_3d3

    :goto_3a8
    move-object v15, v2

    :cond_3a9
    :goto_3a9
    :try_start_3a9
    invoke-virtual/range {p0 .. p0}, Lz5/db1;->b0()Z

    move-result v0

    if-eqz v0, :cond_3b5

    invoke-virtual {v15, v4, v5}, Lz5/db1;->p0(J)Z

    move-result v0

    if-nez v0, :cond_3a9

    :cond_3b5
    invoke-static {}, Lz5/bd1;->d()V
    :try_end_3b8
    .catch Ljava/lang/IllegalStateException; {:try_start_3a9 .. :try_end_3b8} :catch_3ba

    const/4 v1, 0x1

    goto :goto_3f1

    :catch_3ba
    move-exception v0

    goto :goto_3d3

    :catch_3bc
    move-exception v0

    move-object/from16 v2, p0

    goto :goto_3a6

    :catch_3c0
    move-exception v0

    :goto_3c1
    move-object v2, v15

    goto :goto_3cc

    :catch_3c3
    move-exception v0

    move/from16 v18, v13

    move-object v2, v15

    goto :goto_3cc

    :catch_3c8
    move-exception v0

    move/from16 v18, v13

    goto :goto_3c1

    :goto_3cc
    move-object v15, v1

    goto :goto_3d3

    :catch_3ce
    move-exception v0

    move/from16 v18, v13

    goto/16 :goto_348

    :goto_3d3
    const/4 v1, 0x1

    goto :goto_409

    :cond_3d5
    move/from16 v18, v13

    move-object v2, v15

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

    iget v1, v0, Lz5/lg;->d:I

    .line 23
    iget-object v3, v2, Lz5/u1;->w:Lz5/qq1;

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

    iget-wide v4, v2, Lz5/u1;->y:J

    sub-long v4, p1, v4

    invoke-interface {v3, v4, v5}, Lz5/qq1;->b(J)I

    move-result v3

    add-int/2addr v1, v3

    .line 24
    iput v1, v0, Lz5/lg;->d:I
    :try_end_3ec
    .catch Ljava/lang/IllegalStateException; {:try_start_3d8 .. :try_end_3ec} :catch_3fb

    const/4 v1, 0x1

    :try_start_3ed
    invoke-virtual {v2, v1}, Lz5/db1;->o0(I)Z
    :try_end_3f0
    .catch Ljava/lang/IllegalStateException; {:try_start_3ed .. :try_end_3f0} :catch_3f8

    move-object v15, v2

    :goto_3f1
    :try_start_3f1
    iget-object v0, v15, Lz5/db1;->H0:Lz5/lg;

    .line 25
    monitor-enter v0

    monitor-exit v0
    :try_end_3f5
    .catch Ljava/lang/IllegalStateException; {:try_start_3f1 .. :try_end_3f5} :catch_3f6

    return-void

    :catch_3f6
    move-exception v0

    goto :goto_409

    :catch_3f8
    move-exception v0

    :goto_3f9
    move-object v15, v2

    goto :goto_409

    :catch_3fb
    move-exception v0

    const/4 v1, 0x1

    goto :goto_3f9

    :catch_3fe
    move-exception v0

    move/from16 v18, v13

    move v1, v14

    :goto_402
    move-object v2, v15

    goto :goto_409

    :catch_404
    move-exception v0

    move v1, v11

    move/from16 v18, v13

    goto :goto_402

    .line 26
    :goto_409
    sget v3, Lz5/r7;->a:I

    const/16 v4, 0x15

    if-lt v3, v4, :cond_414

    instance-of v5, v0, Landroid/media/MediaCodec$CodecException;

    if-eqz v5, :cond_414

    goto :goto_429

    :cond_414
    invoke-virtual {v0}, Ljava/lang/IllegalStateException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v5

    array-length v6, v5

    if-lez v6, :cond_453

    aget-object v5, v5, v18

    invoke-virtual {v5}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v5

    const-string v6, "android.media.MediaCodec"

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

    move-result v5

    if-eqz v5, :cond_453

    :goto_429
    invoke-virtual {v15, v0}, Lz5/db1;->l0(Ljava/lang/Exception;)V

    if-lt v3, v4, :cond_43d

    instance-of v3, v0, Landroid/media/MediaCodec$CodecException;

    if-eqz v3, :cond_43d

    move-object v3, v0

    check-cast v3, Landroid/media/MediaCodec$CodecException;

    invoke-virtual {v3}, Landroid/media/MediaCodec$CodecException;->isRecoverable()Z

    move-result v3

    if-eqz v3, :cond_43d

    move v13, v1

    goto :goto_43f

    :cond_43d
    move/from16 v13, v18

    :goto_43f
    if-eqz v13, :cond_444

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

    :cond_444
    iget-object v1, v15, Lz5/db1;->Z:Lz5/ja1;

    invoke-virtual {v15, v0, v1}, Lz5/db1;->T(Ljava/lang/Throwable;Lz5/ja1;)Lz5/x91;

    move-result-object v0

    iget-object v1, v15, Lz5/db1;->O:Lz5/x2;

    const/16 v3, 0xfa3

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

    move-result-object v0

    throw v0

    :cond_453
    throw v0
.end method

.method public final v()I
    .registers 2

    const/16 v0, 0x8

    return v0
.end method

.method public final w(Lz5/x2;)I
    .registers 5

    :try_start_0
    iget-object v0, p0, Lz5/db1;->C:Lz5/ac1;

    invoke-virtual {p0, v0, p1}, Lz5/db1;->d0(Lz5/ac1;Lz5/x2;)I

    move-result p1
    :try_end_6
    .catch Lz5/uf1; {:try_start_0 .. :try_end_6} :catch_7

    return p1

    :catch_7
    move-exception v0

    const/4 v1, 0x0

    const/16 v2, 0xfa2

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

    move-result-object p1

    throw p1
.end method

.method public final x([Lz5/x2;JJ)V
    .registers 12

    iget-wide v0, p0, Lz5/db1;->J0:J

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

    cmp-long p1, v0, v2

    const/4 v0, 0x1

    if-nez p1, :cond_1c

    iget-wide v4, p0, Lz5/db1;->I0:J

    cmp-long p1, v4, v2

    if-nez p1, :cond_13

    goto :goto_14

    :cond_13
    const/4 v0, 0x0

    :goto_14
    invoke-static {v0}, Lcom/google/android/gms/internal/ads/d;->n(Z)V

    iput-wide p2, p0, Lz5/db1;->I0:J

    iput-wide p4, p0, Lz5/db1;->J0:J

    return-void

    :cond_1c
    iget p1, p0, Lz5/db1;->K0:I

    const/16 v1, 0xa

    if-ne p1, v1, :cond_41

    iget-object p1, p0, Lz5/db1;->M:[J

    const/16 v0, 0x9

    aget-wide v0, p1, v0

    new-instance p1, Ljava/lang/StringBuilder;

    const/16 v2, 0x41

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

    const-string v2, "Too many stream changes, so dropping offset: "

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

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

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

    move-result-object p1

    const-string v0, "MediaCodecRenderer"

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

    goto :goto_44

    :cond_41
    add-int/2addr p1, v0

    iput p1, p0, Lz5/db1;->K0:I

    :goto_44
    iget-object p1, p0, Lz5/db1;->L:[J

    iget v0, p0, Lz5/db1;->K0:I

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

    aput-wide p2, p1, v0

    iget-object p1, p0, Lz5/db1;->M:[J

    aput-wide p4, p1, v0

    iget-object p1, p0, Lz5/db1;->N:[J

    iget-wide p2, p0, Lz5/db1;->C0:J

    aput-wide p2, p1, v0

    return-void
.end method

.method public zzx()Z
    .registers 8

    iget-object v0, p0, Lz5/db1;->O:Lz5/x2;

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eqz v0, :cond_3a

    .line 1
    invoke-virtual {p0}, Lz5/u1;->q()Z

    move-result v0

    if-eqz v0, :cond_f

    iget-boolean v0, p0, Lz5/u1;->A:Z

    goto :goto_18

    :cond_f
    iget-object v0, p0, Lz5/u1;->w:Lz5/qq1;

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

    invoke-interface {v0}, Lz5/qq1;->zzb()Z

    move-result v0

    :goto_18
    if-nez v0, :cond_3b

    .line 2
    iget v0, p0, Lz5/db1;->o0:I

    if-ltz v0, :cond_20

    move v0, v1

    goto :goto_21

    :cond_20
    move v0, v2

    :goto_21
    if-nez v0, :cond_3b

    .line 3
    iget-wide v3, p0, Lz5/db1;->m0:J

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

    cmp-long v0, v3, v5

    if-eqz v0, :cond_3a

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v3

    iget-wide v5, p0, Lz5/db1;->m0:J

    cmp-long v0, v3, v5

    if-ltz v0, :cond_39

    goto :goto_3a

    :cond_39
    return v1

    :cond_3a
    :goto_3a
    move v1, v2

    :cond_3b
    return v1
.end method
