.class public final Lz5/ie;
.super Lz5/gb;
.source ""


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0x10
.end annotation


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

.field public final R:Lz5/ke;

.field public final S:Lz5/ll0;

.field public final T:Z

.field public final U:[J

.field public V:[Lz5/j8;

.field public W:Lz5/he;

.field public X:Landroid/view/Surface;

.field public Y:Landroid/view/Surface;

.field public Z:Z

.field public a0:J

.field public b0:J

.field public c0:I

.field public d0:I

.field public e0:I

.field public f0:F

.field public g0:I

.field public h0:I

.field public i0:I

.field public j0:F

.field public k0:I

.field public l0:I

.field public m0:I

.field public n0:F

.field public o0:J

.field public p0:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Lz5/ib;Landroid/os/Handler;Lz5/ne;)V
    .registers 6

    const/4 v0, 0x2

    invoke-direct {p0, v0, p2}, Lz5/gb;-><init>(ILz5/ib;)V

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

    move-result-object p2

    iput-object p2, p0, Lz5/ie;->Q:Landroid/content/Context;

    new-instance p2, Lz5/ke;

    invoke-direct {p2, p1}, Lz5/ke;-><init>(Landroid/content/Context;)V

    iput-object p2, p0, Lz5/ie;->R:Lz5/ke;

    new-instance p1, Lz5/ll0;

    invoke-direct {p1, p3, p4}, Lz5/ll0;-><init>(Landroid/os/Handler;Lz5/ne;)V

    iput-object p1, p0, Lz5/ie;->S:Lz5/ll0;

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

    const/16 p2, 0x16

    if-gt p1, p2, :cond_34

    sget-object p1, Lz5/be;->b:Ljava/lang/String;

    const-string p2, "foster"

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

    move-result p1

    if-eqz p1, :cond_34

    sget-object p1, Lz5/be;->c:Ljava/lang/String;

    const-string p2, "NVIDIA"

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

    move-result p1

    if-eqz p1, :cond_34

    const/4 p1, 0x1

    goto :goto_35

    :cond_34
    const/4 p1, 0x0

    :goto_35
    iput-boolean p1, p0, Lz5/ie;->T:Z

    const/16 p1, 0xa

    new-array p1, p1, [J

    iput-object p1, p0, Lz5/ie;->U:[J

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

    iput-wide p1, p0, Lz5/ie;->o0:J

    iput-wide p1, p0, Lz5/ie;->a0:J

    const/4 p1, -0x1

    iput p1, p0, Lz5/ie;->g0:I

    iput p1, p0, Lz5/ie;->h0:I

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

    iput p1, p0, Lz5/ie;->j0:F

    iput p1, p0, Lz5/ie;->f0:F

    invoke-virtual {p0}, Lz5/ie;->J()V

    return-void
.end method


# virtual methods
.method public final B(Lz5/eb;)Z
    .registers 3

    iget-object v0, p0, Lz5/ie;->X:Landroid/view/Surface;

    if-nez v0, :cond_f

    iget-boolean p1, p1, Lz5/eb;->d:Z

    invoke-virtual {p0, p1}, Lz5/ie;->I(Z)Z

    move-result p1

    if-eqz p1, :cond_d

    goto :goto_f

    :cond_d
    const/4 p1, 0x0

    return p1

    :cond_f
    :goto_f
    const/4 p1, 0x1

    return p1
.end method

.method public final C()V
    .registers 5

    const/4 v0, 0x0

    :try_start_1
    invoke-super {p0}, Lz5/gb;->C()V
    :try_end_4
    .catchall {:try_start_1 .. :try_end_4} :catchall_14

    iget-object v1, p0, Lz5/ie;->Y:Landroid/view/Surface;

    if-eqz v1, :cond_13

    iget-object v2, p0, Lz5/ie;->X:Landroid/view/Surface;

    if-ne v2, v1, :cond_e

    iput-object v0, p0, Lz5/ie;->X:Landroid/view/Surface;

    :cond_e
    invoke-virtual {v1}, Landroid/view/Surface;->release()V

    iput-object v0, p0, Lz5/ie;->Y:Landroid/view/Surface;

    :cond_13
    return-void

    :catchall_14
    move-exception v1

    iget-object v2, p0, Lz5/ie;->Y:Landroid/view/Surface;

    if-eqz v2, :cond_24

    iget-object v3, p0, Lz5/ie;->X:Landroid/view/Surface;

    if-ne v3, v2, :cond_1f

    iput-object v0, p0, Lz5/ie;->X:Landroid/view/Surface;

    :cond_1f
    invoke-virtual {v2}, Landroid/view/Surface;->release()V

    iput-object v0, p0, Lz5/ie;->Y:Landroid/view/Surface;

    :cond_24
    throw v1
.end method

.method public final D(Lz5/q9;)V
    .registers 2

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

    return-void
.end method

.method public final E(Landroid/media/MediaCodec;ZLz5/j8;Lz5/j8;)Z
    .registers 8

    iget-object p1, p3, Lz5/j8;->w:Ljava/lang/String;

    iget-object v0, p4, Lz5/j8;->w:Ljava/lang/String;

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

    move-result p1

    const/4 v0, 0x0

    if-eqz p1, :cond_3c

    .line 1
    iget p1, p3, Lz5/j8;->D:I

    const/4 v1, -0x1

    if-ne p1, v1, :cond_11

    move p1, v0

    :cond_11
    iget v2, p4, Lz5/j8;->D:I

    if-ne v2, v1, :cond_16

    move v2, v0

    :cond_16
    if-ne p1, v2, :cond_3c

    if-nez p2, :cond_26

    .line 2
    iget p1, p3, Lz5/j8;->A:I

    iget p2, p4, Lz5/j8;->A:I

    if-ne p1, p2, :cond_3c

    iget p1, p3, Lz5/j8;->B:I

    iget p2, p4, Lz5/j8;->B:I

    if-ne p1, p2, :cond_3c

    :cond_26
    iget p1, p4, Lz5/j8;->A:I

    iget-object p2, p0, Lz5/ie;->W:Lz5/he;

    iget p3, p2, Lz5/he;->a:I

    if-gt p1, p3, :cond_3c

    iget p1, p4, Lz5/j8;->B:I

    iget p3, p2, Lz5/he;->b:I

    if-gt p1, p3, :cond_3c

    iget p1, p4, Lz5/j8;->x:I

    iget p2, p2, Lz5/he;->c:I

    if-gt p1, p2, :cond_3c

    const/4 p1, 0x1

    return p1

    :cond_3c
    return v0
.end method

.method public final F(Landroid/media/MediaCodec;I)V
    .registers 4

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

    const-string v0, "releaseOutputBuffer"

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/h8;->g(Ljava/lang/String;)V

    const/4 v0, 0x1

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

    invoke-static {}, Lcom/google/android/gms/internal/ads/h8;->k()V

    iget-object p1, p0, Lz5/gb;->O:Lz5/p9;

    iget p2, p1, Lz5/p9;->d:I

    add-int/2addr p2, v0

    iput p2, p1, Lz5/p9;->d:I

    const/4 p1, 0x0

    iput p1, p0, Lz5/ie;->d0:I

    invoke-virtual {p0}, Lz5/ie;->H()V

    return-void
.end method

.method public final G(Landroid/media/MediaCodec;IJ)V
    .registers 6
    .annotation build Landroid/annotation/TargetApi;
        value = 0x15
    .end annotation

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

    const-string v0, "releaseOutputBuffer"

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/h8;->g(Ljava/lang/String;)V

    invoke-virtual {p1, p2, p3, p4}, Landroid/media/MediaCodec;->releaseOutputBuffer(IJ)V

    invoke-static {}, Lcom/google/android/gms/internal/ads/h8;->k()V

    iget-object p1, p0, Lz5/gb;->O:Lz5/p9;

    iget p2, p1, Lz5/p9;->d:I

    add-int/lit8 p2, p2, 0x1

    iput p2, p1, Lz5/p9;->d:I

    const/4 p1, 0x0

    iput p1, p0, Lz5/ie;->d0:I

    invoke-virtual {p0}, Lz5/ie;->H()V

    return-void
.end method

.method public final H()V
    .registers 5

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

    if-nez v0, :cond_17

    const/4 v0, 0x1

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

    iget-object v0, p0, Lz5/ie;->S:Lz5/ll0;

    iget-object v1, p0, Lz5/ie;->X:Landroid/view/Surface;

    .line 1
    iget-object v2, v0, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast v2, Landroid/os/Handler;

    new-instance v3, Lz5/w8;

    invoke-direct {v3, v0, v1}, Lz5/w8;-><init>(Lz5/ll0;Landroid/view/Surface;)V

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

    :cond_17
    return-void
.end method

.method public final I(Z)Z
    .registers 6

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

    const/4 v1, 0x1

    const/4 v2, 0x0

    const/16 v3, 0x17

    if-lt v0, v3, :cond_14

    if-eqz p1, :cond_15

    iget-object p1, p0, Lz5/ie;->Q:Landroid/content/Context;

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

    move-result p1

    if-nez p1, :cond_13

    goto :goto_14

    :cond_13
    return v1

    :cond_14
    :goto_14
    move v1, v2

    :cond_15
    return v1
.end method

.method public final J()V
    .registers 3

    const/4 v0, -0x1

    iput v0, p0, Lz5/ie;->k0:I

    iput v0, p0, Lz5/ie;->l0:I

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

    iput v1, p0, Lz5/ie;->n0:F

    iput v0, p0, Lz5/ie;->m0:I

    return-void
.end method

.method public final K()V
    .registers 6

    iget v0, p0, Lz5/ie;->k0:I

    iget v1, p0, Lz5/ie;->g0:I

    if-ne v0, v1, :cond_1c

    iget v0, p0, Lz5/ie;->l0:I

    iget v2, p0, Lz5/ie;->h0:I

    if-ne v0, v2, :cond_1c

    iget v0, p0, Lz5/ie;->m0:I

    iget v2, p0, Lz5/ie;->i0:I

    if-ne v0, v2, :cond_1c

    iget v0, p0, Lz5/ie;->n0:F

    iget v2, p0, Lz5/ie;->j0:F

    cmpl-float v0, v0, v2

    if-eqz v0, :cond_1b

    goto :goto_1c

    :cond_1b
    return-void

    :cond_1c
    :goto_1c
    iget-object v0, p0, Lz5/ie;->S:Lz5/ll0;

    iget v2, p0, Lz5/ie;->h0:I

    iget v3, p0, Lz5/ie;->i0:I

    iget v4, p0, Lz5/ie;->j0:F

    invoke-virtual {v0, v1, v2, v3, v4}, Lz5/ll0;->h(IIIF)V

    iget v0, p0, Lz5/ie;->g0:I

    iput v0, p0, Lz5/ie;->k0:I

    iget v0, p0, Lz5/ie;->h0:I

    iput v0, p0, Lz5/ie;->l0:I

    iget v0, p0, Lz5/ie;->i0:I

    iput v0, p0, Lz5/ie;->m0:I

    iget v0, p0, Lz5/ie;->j0:F

    iput v0, p0, Lz5/ie;->n0:F

    return-void
.end method

.method public final L()V
    .registers 6

    iget v0, p0, Lz5/ie;->k0:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_b

    iget v0, p0, Lz5/ie;->l0:I

    if-eq v0, v1, :cond_a

    goto :goto_b

    :cond_a
    return-void

    :cond_b
    :goto_b
    iget-object v0, p0, Lz5/ie;->S:Lz5/ll0;

    iget v1, p0, Lz5/ie;->g0:I

    iget v2, p0, Lz5/ie;->h0:I

    iget v3, p0, Lz5/ie;->i0:I

    iget v4, p0, Lz5/ie;->j0:F

    invoke-virtual {v0, v1, v2, v3, v4}, Lz5/ll0;->h(IIIF)V

    return-void
.end method

.method public final M()V
    .registers 9

    iget v0, p0, Lz5/ie;->c0:I

    if-lez v0, :cond_21

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

    move-result-wide v0

    iget-wide v2, p0, Lz5/ie;->b0:J

    iget-object v4, p0, Lz5/ie;->S:Lz5/ll0;

    iget v5, p0, Lz5/ie;->c0:I

    sub-long v2, v0, v2

    .line 1
    iget-object v6, v4, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast v6, Landroid/os/Handler;

    new-instance v7, Lz5/it1;

    invoke-direct {v7, v4, v5, v2, v3}, Lz5/it1;-><init>(Lz5/ll0;IJ)V

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

    const/4 v2, 0x0

    .line 2
    iput v2, p0, Lz5/ie;->c0:I

    iput-wide v0, p0, Lz5/ie;->b0:J

    :cond_21
    return-void
.end method

.method public final i(ILjava/lang/Object;)V
    .registers 7

    const/4 v0, 0x1

    if-ne p1, v0, :cond_83

    check-cast p2, Landroid/view/Surface;

    if-nez p2, :cond_23

    iget-object p1, p0, Lz5/ie;->Y:Landroid/view/Surface;

    if-eqz p1, :cond_d

    move-object p2, p1

    goto :goto_23

    .line 1
    :cond_d
    iget-object p1, p0, Lz5/gb;->q:Lz5/eb;

    if-eqz p1, :cond_23

    .line 2
    iget-boolean v1, p1, Lz5/eb;->d:Z

    invoke-virtual {p0, v1}, Lz5/ie;->I(Z)Z

    move-result v1

    if-eqz v1, :cond_23

    iget-object p2, p0, Lz5/ie;->Q:Landroid/content/Context;

    iget-boolean p1, p1, Lz5/eb;->d:Z

    invoke-static {p2, p1}, Lz5/ge;->b(Landroid/content/Context;Z)Lz5/ge;

    move-result-object p2

    iput-object p2, p0, Lz5/ie;->Y:Landroid/view/Surface;

    :cond_23
    :goto_23
    iget-object p1, p0, Lz5/ie;->X:Landroid/view/Surface;

    if-eq p1, p2, :cond_66

    iput-object p2, p0, Lz5/ie;->X:Landroid/view/Surface;

    .line 3
    iget p1, p0, Lz5/w7;->d:I

    const/4 v1, 0x2

    if-eq p1, v0, :cond_30

    if-ne p1, v1, :cond_46

    .line 4
    :cond_30
    iget-object v0, p0, Lz5/gb;->p:Landroid/media/MediaCodec;

    .line 5
    sget v2, Lz5/be;->a:I

    const/16 v3, 0x17

    if-lt v2, v3, :cond_40

    if-eqz v0, :cond_40

    if-eqz p2, :cond_40

    invoke-virtual {v0, p2}, Landroid/media/MediaCodec;->setOutputSurface(Landroid/view/Surface;)V

    goto :goto_46

    :cond_40
    invoke-virtual {p0}, Lz5/ie;->C()V

    invoke-virtual {p0}, Lz5/gb;->A()V

    :cond_46
    :goto_46
    const/4 v0, 0x0

    if-eqz p2, :cond_5e

    iget-object v2, p0, Lz5/ie;->Y:Landroid/view/Surface;

    if-eq p2, v2, :cond_5e

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

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

    sget p2, Lz5/be;->a:I

    if-ne p1, v1, :cond_83

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

    iput-wide p1, p0, Lz5/ie;->a0:J

    return-void

    :cond_5e
    invoke-virtual {p0}, Lz5/ie;->J()V

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

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

    return-void

    :cond_66
    if-eqz p2, :cond_83

    iget-object p1, p0, Lz5/ie;->Y:Landroid/view/Surface;

    if-eq p2, p1, :cond_83

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

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

    if-eqz p1, :cond_83

    iget-object p1, p0, Lz5/ie;->S:Lz5/ll0;

    iget-object p2, p0, Lz5/ie;->X:Landroid/view/Surface;

    .line 6
    iget-object v0, p1, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast v0, Landroid/os/Handler;

    new-instance v1, Lz5/w8;

    invoke-direct {v1, p1, p2}, Lz5/w8;-><init>(Lz5/ll0;Landroid/view/Surface;)V

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

    :cond_83
    return-void
.end method

.method public final k(Z)V
    .registers 6

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

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

    iput-object p1, p0, Lz5/gb;->O:Lz5/p9;

    .line 2
    iget-object p1, p0, Lz5/w7;->b:Lz5/n8;

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

    iget-object p1, p0, Lz5/ie;->S:Lz5/ll0;

    iget-object v0, p0, Lz5/gb;->O:Lz5/p9;

    .line 4
    iget-object v1, p1, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast v1, Landroid/os/Handler;

    new-instance v2, Lz5/le;

    const/4 v3, 0x0

    invoke-direct {v2, p1, v0, v3}, Lz5/le;-><init>(Lz5/ll0;Lz5/p9;I)V

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

    .line 5
    iget-object p1, p0, Lz5/ie;->R:Lz5/ke;

    .line 6
    iput-boolean v3, p1, Lz5/ke;->h:Z

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

    if-eqz v0, :cond_2d

    iget-object p1, p1, Lz5/ke;->a:Lz5/je;

    .line 7
    iget-object p1, p1, Lz5/je;->s:Landroid/os/Handler;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    :cond_2d
    return-void
.end method

.method public final m([Lz5/j8;J)V
    .registers 8

    iput-object p1, p0, Lz5/ie;->V:[Lz5/j8;

    iget-wide v0, p0, Lz5/ie;->o0:J

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

    cmp-long p1, v0, v2

    if-nez p1, :cond_10

    iput-wide p2, p0, Lz5/ie;->o0:J

    return-void

    :cond_10
    iget p1, p0, Lz5/ie;->p0:I

    const/16 v0, 0xa

    if-ne p1, v0, :cond_35

    iget-object p1, p0, Lz5/ie;->U:[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, "MediaCodecVideoRenderer"

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

    goto :goto_39

    :cond_35
    add-int/lit8 p1, p1, 0x1

    iput p1, p0, Lz5/ie;->p0:I

    :goto_39
    iget-object p1, p0, Lz5/ie;->U:[J

    iget v0, p0, Lz5/ie;->p0:I

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

    aput-wide p2, p1, v0

    return-void
.end method

.method public final n(JZ)V
    .registers 7

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

    const/4 p1, 0x0

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

    sget p2, Lz5/be;->a:I

    iput p1, p0, Lz5/ie;->d0:I

    iget p2, p0, Lz5/ie;->p0:I

    if-eqz p2, :cond_18

    iget-object v0, p0, Lz5/ie;->U:[J

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

    aget-wide v1, v0, p2

    iput-wide v1, p0, Lz5/ie;->o0:J

    iput p1, p0, Lz5/ie;->p0:I

    :cond_18
    const-wide p1, -0x7fffffffffffffffL    # -4.9E-324

    iput-wide p1, p0, Lz5/ie;->a0:J

    return-void
.end method

.method public final o()V
    .registers 3

    const/4 v0, 0x0

    iput v0, p0, Lz5/ie;->c0:I

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

    move-result-wide v0

    iput-wide v0, p0, Lz5/ie;->b0:J

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

    iput-wide v0, p0, Lz5/ie;->a0:J

    return-void
.end method

.method public final p()V
    .registers 1

    invoke-virtual {p0}, Lz5/ie;->M()V

    return-void
.end method

.method public final q()V
    .registers 7

    const/4 v0, -0x1

    iput v0, p0, Lz5/ie;->g0:I

    iput v0, p0, Lz5/ie;->h0:I

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

    iput v0, p0, Lz5/ie;->j0:F

    iput v0, p0, Lz5/ie;->f0:F

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

    iput-wide v0, p0, Lz5/ie;->o0:J

    const/4 v0, 0x0

    iput v0, p0, Lz5/ie;->p0:I

    invoke-virtual {p0}, Lz5/ie;->J()V

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

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

    iget-object v0, p0, Lz5/ie;->R:Lz5/ke;

    .line 1
    iget-boolean v1, v0, Lz5/ke;->b:Z

    if-eqz v1, :cond_2a

    iget-object v0, v0, Lz5/ke;->a:Lz5/je;

    .line 2
    iget-object v0, v0, Lz5/je;->s:Landroid/os/Handler;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    :cond_2a
    const/4 v0, 0x1

    .line 3
    :try_start_2b
    invoke-super {p0}, Lz5/gb;->q()V
    :try_end_2e
    .catchall {:try_start_2b .. :try_end_2e} :catchall_43

    iget-object v1, p0, Lz5/gb;->O:Lz5/p9;

    .line 4
    monitor-enter v1

    monitor-exit v1

    .line 5
    iget-object v1, p0, Lz5/ie;->S:Lz5/ll0;

    iget-object v2, p0, Lz5/gb;->O:Lz5/p9;

    .line 6
    iget-object v3, v1, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast v3, Landroid/os/Handler;

    new-instance v4, Lz5/le;

    invoke-direct {v4, v1, v2, v0}, Lz5/le;-><init>(Lz5/ll0;Lz5/p9;I)V

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

    return-void

    :catchall_43
    move-exception v1

    .line 7
    iget-object v2, p0, Lz5/gb;->O:Lz5/p9;

    .line 8
    monitor-enter v2

    monitor-exit v2

    .line 9
    iget-object v2, p0, Lz5/ie;->S:Lz5/ll0;

    iget-object v3, p0, Lz5/gb;->O:Lz5/p9;

    .line 10
    iget-object v4, v2, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast v4, Landroid/os/Handler;

    new-instance v5, Lz5/le;

    invoke-direct {v5, v2, v3, v0}, Lz5/le;-><init>(Lz5/ll0;Lz5/p9;I)V

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

    .line 11
    throw v1
.end method

.method public final s(Lz5/ib;Lz5/j8;)I
    .registers 25

    move-object/from16 v0, p2

    iget-object v1, v0, Lz5/j8;->w:Ljava/lang/String;

    invoke-static {v1}, Lz5/vo;->h(Ljava/lang/String;)Z

    move-result v2

    const/4 v3, 0x0

    if-nez v2, :cond_c

    return v3

    :cond_c
    iget-object v2, v0, Lz5/j8;->z:Lcom/google/android/gms/internal/ads/i;

    if-eqz v2, :cond_20

    move v4, v3

    move v5, v4

    :goto_12
    iget v6, v2, Lcom/google/android/gms/internal/ads/i;->t:I

    if-ge v4, v6, :cond_21

    .line 1
    iget-object v6, v2, Lcom/google/android/gms/internal/ads/i;->r:[Lz5/t9;

    aget-object v6, v6, v4

    .line 2
    iget-boolean v6, v6, Lz5/t9;->v:Z

    or-int/2addr v5, v6

    add-int/lit8 v4, v4, 0x1

    goto :goto_12

    :cond_20
    move v5, v3

    :cond_21
    invoke-static {v1, v5}, Lz5/ob;->a(Ljava/lang/String;Z)Lz5/eb;

    move-result-object v1

    const/4 v2, 0x1

    if-nez v1, :cond_29

    return v2

    :cond_29
    iget-object v4, v0, Lz5/j8;->t:Ljava/lang/String;

    const/16 v5, 0x10

    const/4 v6, 0x3

    const-string v7, ", "

    const-string v8, "video/avc"

    const/4 v9, 0x2

    if-eqz v4, :cond_2dd

    .line 3
    iget-object v10, v1, Lz5/eb;->e:Ljava/lang/String;

    if-nez v10, :cond_3b

    goto/16 :goto_2dd

    :cond_3b
    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v10

    const-string v11, "avc1"

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

    move-result v12

    const-string v13, "hvc1"

    const-string v14, "hev1"

    if-nez v12, :cond_f2

    const-string v12, "avc3"

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

    move-result v12

    if-eqz v12, :cond_55

    goto/16 :goto_f2

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

    move-result v12

    if-nez v12, :cond_ef

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

    move-result v12

    if-eqz v12, :cond_63

    goto/16 :goto_ef

    :cond_63
    const-string v12, "vp9"

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

    move-result v12

    if-eqz v12, :cond_6f

    const-string v10, "video/x-vnd.on2.vp9"

    goto/16 :goto_f3

    :cond_6f
    const-string v12, "vp8"

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

    move-result v12

    if-eqz v12, :cond_7b

    const-string v10, "video/x-vnd.on2.vp8"

    goto/16 :goto_f3

    :cond_7b
    const-string v12, "mp4a"

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

    move-result v12

    if-eqz v12, :cond_87

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

    goto/16 :goto_f3

    :cond_87
    const-string v12, "ac-3"

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

    move-result v12

    if-nez v12, :cond_ec

    const-string v12, "dac3"

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

    move-result v12

    if-eqz v12, :cond_98

    goto :goto_ec

    :cond_98
    const-string v12, "ec-3"

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

    move-result v12

    if-nez v12, :cond_e9

    const-string v12, "dec3"

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

    move-result v12

    if-eqz v12, :cond_a9

    goto :goto_e9

    :cond_a9
    const-string v12, "dtsc"

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

    move-result v12

    if-nez v12, :cond_e6

    const-string v12, "dtse"

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

    move-result v12

    if-eqz v12, :cond_ba

    goto :goto_e6

    :cond_ba
    const-string v12, "dtsh"

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

    move-result v12

    if-nez v12, :cond_e3

    const-string v12, "dtsl"

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

    move-result v12

    if-eqz v12, :cond_cb

    goto :goto_e3

    :cond_cb
    const-string v12, "opus"

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

    move-result v12

    if-eqz v12, :cond_d6

    const-string v10, "audio/opus"

    goto :goto_f3

    :cond_d6
    const-string v12, "vorbis"

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

    move-result v10

    if-eqz v10, :cond_e1

    const-string v10, "audio/vorbis"

    goto :goto_f3

    :cond_e1
    const/4 v10, 0x0

    goto :goto_f3

    :cond_e3
    :goto_e3
    const-string v10, "audio/vnd.dts.hd"

    goto :goto_f3

    :cond_e6
    :goto_e6
    const-string v10, "audio/vnd.dts"

    goto :goto_f3

    :cond_e9
    :goto_e9
    const-string v10, "audio/eac3"

    goto :goto_f3

    :cond_ec
    :goto_ec
    const-string v10, "audio/ac3"

    goto :goto_f3

    :cond_ef
    :goto_ef
    const-string v10, "video/hevc"

    goto :goto_f3

    :cond_f2
    :goto_f2
    move-object v10, v8

    :goto_f3
    if-nez v10, :cond_f7

    goto/16 :goto_2dd

    :cond_f7
    iget-object v12, v1, Lz5/eb;->e:Ljava/lang/String;

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

    move-result v12

    if-nez v12, :cond_113

    new-instance v5, Ljava/lang/StringBuilder;

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

    move-result v11

    add-int/lit8 v11, v11, 0xd

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

    move-result v12

    add-int/2addr v12, v11

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

    const-string v11, "codec.mime "

    goto/16 :goto_2d4

    :cond_113
    sget-object v12, Lz5/ob;->a:Ljava/util/regex/Pattern;

    const-string v12, "\\."

    .line 4
    invoke-virtual {v4, v12}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v12

    aget-object v15, v12, v3

    invoke-virtual {v15}, Ljava/lang/String;->hashCode()I

    move-result v16

    sparse-switch v16, :sswitch_data_44c

    goto :goto_147

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

    move-result v11

    if-eqz v11, :cond_147

    move v11, v2

    goto :goto_148

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

    move-result v11

    if-eqz v11, :cond_147

    move v11, v3

    goto :goto_148

    :sswitch_135
    const-string v11, "avc2"

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

    move-result v11

    if-eqz v11, :cond_147

    move v11, v6

    goto :goto_148

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

    move-result v11

    if-eqz v11, :cond_147

    move v11, v9

    goto :goto_148

    :cond_147
    :goto_147
    const/4 v11, -0x1

    :goto_148
    const-string v13, "MediaCodecUtil"

    if-eqz v11, :cond_1e9

    if-eq v11, v2, :cond_1e9

    if-eq v11, v9, :cond_154

    if-eq v11, v6, :cond_154

    goto/16 :goto_289

    :cond_154
    array-length v11, v12

    const-string v14, "Ignoring malformed AVC codec string: "

    if-ge v11, v9, :cond_168

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

    move-result v5

    if-eqz v5, :cond_161

    goto/16 :goto_210

    :cond_161
    new-instance v5, Ljava/lang/String;

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

    goto/16 :goto_286

    :cond_168
    :try_start_168
    aget-object v6, v12, v2

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

    move-result v6

    const/4 v15, 0x6

    if-ne v6, v15, :cond_18b

    aget-object v6, v12, v2

    invoke-virtual {v6, v3, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6, v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v6

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aget-object v11, v12, v2

    const/4 v12, 0x4

    invoke-virtual {v11, v12}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v11

    invoke-static {v11, v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I

    move-result v5

    goto :goto_19e

    :cond_18b
    const/4 v5, 0x3

    if-lt v11, v5, :cond_1c6

    aget-object v5, v12, v2

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aget-object v5, v12, v9

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v5

    :goto_19e
    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5
    :try_end_1a2
    .catch Ljava/lang/NumberFormatException; {:try_start_168 .. :try_end_1a2} :catch_1dc

    sget-object v11, Lz5/ob;->c:Landroid/util/SparseIntArray;

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

    move-result v6

    invoke-virtual {v11, v6}, Landroid/util/SparseIntArray;->get(I)I

    move-result v6

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    sget-object v11, Lz5/ob;->d:Landroid/util/SparseIntArray;

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

    move-result v5

    invoke-virtual {v11, v5}, Landroid/util/SparseIntArray;->get(I)I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    new-instance v11, Landroid/util/Pair;

    invoke-direct {v11, v6, v5}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    const/4 v5, 0x3

    goto/16 :goto_28b

    :cond_1c6
    :try_start_1c6
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v5

    if-eqz v5, :cond_1d1

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

    move-result-object v5

    goto :goto_1d6

    :cond_1d1
    new-instance v5, Ljava/lang/String;

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

    :goto_1d6
    invoke-static {v13, v5}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_1d9
    .catch Ljava/lang/NumberFormatException; {:try_start_1c6 .. :try_end_1d9} :catch_1dc

    const/4 v6, 0x3

    goto/16 :goto_289

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

    move-result v5

    if-eqz v5, :cond_1e3

    goto :goto_210

    :cond_1e3
    new-instance v5, Ljava/lang/String;

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

    goto :goto_21a

    :cond_1e9
    array-length v5, v12

    const-string v14, "Ignoring malformed HEVC codec string: "

    const/4 v6, 0x4

    if-ge v5, v6, :cond_1fc

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

    move-result v5

    if-eqz v5, :cond_1f6

    goto :goto_210

    :cond_1f6
    new-instance v5, Ljava/lang/String;

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

    goto :goto_21a

    :cond_1fc
    sget-object v5, Lz5/ob;->a:Ljava/util/regex/Pattern;

    aget-object v6, v12, v2

    invoke-virtual {v5, v6}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v5

    invoke-virtual {v5}, Ljava/util/regex/Matcher;->matches()Z

    move-result v6

    if-nez v6, :cond_21d

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

    move-result v5

    if-eqz v5, :cond_215

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

    move-result-object v5

    goto :goto_21a

    :cond_215
    new-instance v5, Ljava/lang/String;

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

    :goto_21a
    const/4 v6, 0x3

    goto/16 :goto_286

    :cond_21d
    invoke-virtual {v5, v2}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v6

    const-string v11, "1"

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

    move-result v11

    if-eqz v11, :cond_22b

    move v6, v2

    goto :goto_234

    :cond_22b
    const-string v11, "2"

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

    move-result v11

    if-eqz v11, :cond_266

    move v6, v9

    :goto_234
    sget-object v11, Lz5/ob;->e:Ljava/util/Map;

    const/4 v14, 0x3

    aget-object v12, v12, v14

    check-cast v11, Ljava/util/HashMap;

    invoke-virtual {v11, v12}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/Integer;

    if-nez v11, :cond_25a

    invoke-virtual {v5, v2}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v5

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

    move-result-object v5

    const-string v6, "Unknown HEVC level string: "

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

    move-result v11

    if-eqz v11, :cond_254

    goto :goto_276

    :cond_254
    new-instance v5, Ljava/lang/String;

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

    goto :goto_27a

    :cond_25a
    new-instance v5, Landroid/util/Pair;

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-direct {v5, v6, v11}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    move-object v11, v5

    move v5, v14

    goto :goto_28b

    :cond_266
    const/4 v5, 0x3

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

    move-result-object v6

    const-string v11, "Unknown HEVC profile string: "

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

    move-result v12

    if-eqz v12, :cond_27c

    move v14, v5

    move-object v5, v6

    move-object v6, v11

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

    move-result-object v5

    :goto_27a
    move v6, v14

    goto :goto_286

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

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

    move-object/from16 v21, v6

    move v6, v5

    move-object/from16 v5, v21

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

    :goto_289
    const/4 v11, 0x0

    move v5, v6

    :goto_28b
    if-nez v11, :cond_28e

    goto :goto_2b7

    .line 5
    :cond_28e
    iget-object v6, v1, Lz5/eb;->f:Landroid/media/MediaCodecInfo$CodecCapabilities;

    if-eqz v6, :cond_296

    iget-object v6, v6, Landroid/media/MediaCodecInfo$CodecCapabilities;->profileLevels:[Landroid/media/MediaCodecInfo$CodecProfileLevel;

    if-nez v6, :cond_298

    :cond_296
    new-array v6, v3, [Landroid/media/MediaCodecInfo$CodecProfileLevel;

    .line 6
    :cond_298
    array-length v12, v6

    move v13, v3

    :goto_29a
    if-ge v13, v12, :cond_2bd

    aget-object v14, v6, v13

    iget v15, v14, Landroid/media/MediaCodecInfo$CodecProfileLevel;->profile:I

    iget-object v9, v11, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v9, Ljava/lang/Integer;

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

    move-result v9

    if-ne v15, v9, :cond_2b9

    iget v9, v14, Landroid/media/MediaCodecInfo$CodecProfileLevel;->level:I

    iget-object v14, v11, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v14, Ljava/lang/Integer;

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

    move-result v14

    if-ge v9, v14, :cond_2b7

    goto :goto_2b9

    :cond_2b7
    :goto_2b7
    move v6, v5

    goto :goto_2dd

    :cond_2b9
    :goto_2b9
    add-int/lit8 v13, v13, 0x1

    const/4 v9, 0x2

    goto :goto_29a

    :cond_2bd
    new-instance v6, Ljava/lang/StringBuilder;

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

    move-result v9

    add-int/lit8 v9, v9, 0x16

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

    move-result v11

    add-int/2addr v11, v9

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

    const-string v11, "codec.profileLevel, "

    move-object/from16 v21, v6

    move v6, v5

    move-object/from16 v5, v21

    :goto_2d4
    invoke-static {v5, v11, v4, v7, v10}, Lb1/e;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lz5/eb;->a(Ljava/lang/String;)V

    move v4, v3

    goto :goto_2de

    :cond_2dd
    :goto_2dd
    move v4, v2

    :goto_2de
    if-eqz v4, :cond_37e

    .line 7
    iget v5, v0, Lz5/j8;->A:I

    if-lez v5, :cond_37e

    iget v9, v0, Lz5/j8;->B:I

    if-lez v9, :cond_37e

    sget v4, Lz5/be;->a:I

    const-string v10, "]"

    const-string v11, "] ["

    const-string v12, "x"

    const/16 v13, 0x15

    if-lt v4, v13, :cond_383

    iget v0, v0, Lz5/j8;->C:F

    float-to-double v13, v0

    .line 8
    iget-object v0, v1, Lz5/eb;->f:Landroid/media/MediaCodecInfo$CodecCapabilities;

    if-nez v0, :cond_2ff

    const-string v0, "sizeAndRate.caps"

    goto/16 :goto_37a

    :cond_2ff
    invoke-virtual {v0}, Landroid/media/MediaCodecInfo$CodecCapabilities;->getVideoCapabilities()Landroid/media/MediaCodecInfo$VideoCapabilities;

    move-result-object v0

    if-nez v0, :cond_308

    const-string v0, "sizeAndRate.vCaps"

    goto :goto_37a

    :cond_308
    invoke-static {v0, v5, v9, v13, v14}, Lz5/eb;->b(Landroid/media/MediaCodecInfo$VideoCapabilities;IID)Z

    move-result v4

    if-nez v4, :cond_381

    const/16 v4, 0x45

    if-ge v5, v9, :cond_36a

    invoke-static {v0, v9, v5, v13, v14}, Lz5/eb;->b(Landroid/media/MediaCodecInfo$VideoCapabilities;IID)Z

    move-result v0

    if-nez v0, :cond_319

    goto :goto_36a

    :cond_319
    const-string v0, "sizeAndRate.rotated, "

    invoke-static {v4, v0, v5, v12, v9}, Ll5/p;->a(ILjava/lang/String;ILjava/lang/String;I)Ljava/lang/StringBuilder;

    move-result-object v0

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

    invoke-virtual {v0, v13, v14}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

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

    move-result-object v0

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

    iget-object v5, v1, Lz5/eb;->e:Ljava/lang/String;

    sget-object v8, Lz5/be;->e:Ljava/lang/String;

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

    move-result-object v9

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

    move-result v9

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

    move-result-object v12

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

    move-result v12

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

    move-result-object v13

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

    move-result v13

    new-instance v14, Ljava/lang/StringBuilder;

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

    move-result v15

    add-int/lit8 v15, v15, 0x19

    add-int/2addr v15, v9

    add-int/2addr v15, v12

    add-int/2addr v15, v13

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

    const-string v9, "AssumedSupport ["

    invoke-static {v14, v9, v0, v11, v4}, Lb1/f;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v14, v7, v5, v11, v8}, Lb1/f;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

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

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

    move-result-object v0

    const-string v4, "MediaCodecInfo"

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

    goto :goto_381

    :cond_36a
    :goto_36a
    const-string v0, "sizeAndRate.support, "

    invoke-static {v4, v0, v5, v12, v9}, Ll5/p;->a(ILjava/lang/String;ILjava/lang/String;I)Ljava/lang/StringBuilder;

    move-result-object v0

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

    invoke-virtual {v0, v13, v14}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

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

    move-result-object v0

    :goto_37a
    invoke-virtual {v1, v0}, Lz5/eb;->a(Ljava/lang/String;)V

    move v4, v3

    :cond_37e
    :goto_37e
    const/4 v3, 0x2

    goto/16 :goto_434

    :cond_381
    :goto_381
    move v4, v2

    goto :goto_37e

    :cond_383
    mul-int/2addr v5, v9

    .line 9
    sget v4, Lz5/ob;->f:I

    const/4 v7, -0x1

    if-ne v4, v7, :cond_3f5

    invoke-static {v8, v3}, Lz5/ob;->a(Ljava/lang/String;Z)Lz5/eb;

    move-result-object v4

    if-eqz v4, :cond_3f0

    .line 10
    iget-object v4, v4, Lz5/eb;->f:Landroid/media/MediaCodecInfo$CodecCapabilities;

    if-eqz v4, :cond_397

    iget-object v4, v4, Landroid/media/MediaCodecInfo$CodecCapabilities;->profileLevels:[Landroid/media/MediaCodecInfo$CodecProfileLevel;

    if-nez v4, :cond_399

    :cond_397
    new-array v4, v3, [Landroid/media/MediaCodecInfo$CodecProfileLevel;

    .line 11
    :cond_399
    array-length v8, v4

    move v9, v3

    move v14, v9

    :goto_39c
    if-ge v9, v8, :cond_3df

    aget-object v15, v4, v9

    iget v15, v15, Landroid/media/MediaCodecInfo$CodecProfileLevel;->level:I

    const/high16 v16, 0x900000

    const/high16 v17, 0x200000

    const v18, 0x65400

    const/16 v19, 0x6300

    const v20, 0x18c00

    const/4 v3, 0x2

    if-eq v15, v2, :cond_3d5

    if-eq v15, v3, :cond_3d5

    sparse-switch v15, :sswitch_data_45e

    move v15, v7

    goto :goto_3d7

    :sswitch_3b8
    const v16, 0x564000

    goto :goto_3cf

    :sswitch_3bc
    const/high16 v16, 0x220000

    goto :goto_3cf

    :sswitch_3bf
    move/from16 v15, v17

    goto :goto_3d7

    :sswitch_3c2
    const/high16 v16, 0x140000

    goto :goto_3cf

    :sswitch_3c5
    const v16, 0xe1000

    goto :goto_3cf

    :sswitch_3c9
    move/from16 v15, v18

    goto :goto_3d7

    :sswitch_3cc
    const v16, 0x31800

    :goto_3cf
    :sswitch_3cf
    move/from16 v15, v16

    goto :goto_3d7

    :sswitch_3d2
    move/from16 v15, v20

    goto :goto_3d7

    :cond_3d5
    move/from16 v15, v19

    :goto_3d7
    invoke-static {v15, v14}, Ljava/lang/Math;->max(II)I

    move-result v14

    add-int/lit8 v9, v9, 0x1

    const/4 v3, 0x0

    goto :goto_39c

    :cond_3df
    const/4 v3, 0x2

    sget v4, Lz5/be;->a:I

    if-lt v4, v13, :cond_3e8

    const v4, 0x54600

    goto :goto_3eb

    :cond_3e8
    const v4, 0x2a300

    :goto_3eb
    invoke-static {v14, v4}, Ljava/lang/Math;->max(II)I

    move-result v4

    goto :goto_3f2

    :cond_3f0
    const/4 v3, 0x2

    const/4 v4, 0x0

    :goto_3f2
    sput v4, Lz5/ob;->f:I

    goto :goto_3f6

    :cond_3f5
    const/4 v3, 0x2

    :goto_3f6
    sget v4, Lz5/ob;->f:I

    if-gt v5, v4, :cond_3fc

    move v4, v2

    goto :goto_3fd

    :cond_3fc
    const/4 v4, 0x0

    :goto_3fd
    if-nez v4, :cond_434

    .line 12
    iget v5, v0, Lz5/j8;->A:I

    iget v0, v0, Lz5/j8;->B:I

    sget-object v7, Lz5/be;->e:Ljava/lang/String;

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

    move-result-object v8

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

    move-result v8

    new-instance v9, Ljava/lang/StringBuilder;

    add-int/lit8 v8, v8, 0x38

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

    const-string v8, "FalseCheck [legacyFrameSize, "

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

    invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

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

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

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

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

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

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

    move-result-object v0

    const-string v5, "MediaCodecVideoRenderer"

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

    :cond_434
    :goto_434
    iget-boolean v0, v1, Lz5/eb;->b:Z

    if-eq v2, v0, :cond_43a

    const/4 v0, 0x4

    goto :goto_43c

    :cond_43a
    const/16 v0, 0x8

    :goto_43c
    iget-boolean v1, v1, Lz5/eb;->c:Z

    if-eq v2, v1, :cond_442

    const/4 v1, 0x0

    goto :goto_444

    :cond_442
    const/16 v1, 0x10

    :goto_444
    if-eq v2, v4, :cond_448

    move v9, v3

    goto :goto_449

    :cond_448
    move v9, v6

    :goto_449
    or-int/2addr v0, v1

    or-int/2addr v0, v9

    return v0

    :sswitch_data_44c
    .sparse-switch
        0x2ddf23 -> :sswitch_13f
        0x2ddf24 -> :sswitch_135
        0x30d038 -> :sswitch_12d
        0x310dbc -> :sswitch_125
    .end sparse-switch

    :sswitch_data_45e
    .sparse-switch
        0x8 -> :sswitch_3d2
        0x10 -> :sswitch_3d2
        0x20 -> :sswitch_3d2
        0x40 -> :sswitch_3cc
        0x80 -> :sswitch_3c9
        0x100 -> :sswitch_3c9
        0x200 -> :sswitch_3c5
        0x400 -> :sswitch_3c2
        0x800 -> :sswitch_3bf
        0x1000 -> :sswitch_3bf
        0x2000 -> :sswitch_3bc
        0x4000 -> :sswitch_3b8
        0x8000 -> :sswitch_3cf
        0x10000 -> :sswitch_3cf
    .end sparse-switch
.end method

.method public final u(Lz5/eb;Landroid/media/MediaCodec;Lz5/j8;Landroid/media/MediaCrypto;)V
    .registers 14

    iget-object p4, p0, Lz5/ie;->V:[Lz5/j8;

    iget v0, p3, Lz5/j8;->A:I

    iget v1, p3, Lz5/j8;->B:I

    iget v2, p3, Lz5/j8;->x:I

    const/4 v3, -0x1

    const/4 v4, 0x0

    if-ne v2, v3, :cond_8c

    iget-object v2, p3, Lz5/j8;->w:Ljava/lang/String;

    if-eq v0, v3, :cond_8b

    if-ne v1, v3, :cond_14

    goto/16 :goto_8b

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

    invoke-virtual {v2}, Ljava/lang/String;->hashCode()I

    move-result v5

    const/4 v6, 0x2

    const/4 v7, 0x3

    const/4 v8, 0x4

    sparse-switch v5, :sswitch_data_e0

    :goto_21
    move v2, v3

    goto :goto_64

    :sswitch_23
    const-string v5, "video/x-vnd.on2.vp9"

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

    move-result v2

    if-nez v2, :cond_2c

    goto :goto_21

    :cond_2c
    const/4 v2, 0x5

    goto :goto_64

    :sswitch_2e
    const-string v5, "video/x-vnd.on2.vp8"

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

    move-result v2

    if-nez v2, :cond_37

    goto :goto_21

    :cond_37
    move v2, v8

    goto :goto_64

    :sswitch_39
    const-string v5, "video/avc"

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

    move-result v2

    if-nez v2, :cond_42

    goto :goto_21

    :cond_42
    move v2, v7

    goto :goto_64

    :sswitch_44
    const-string v5, "video/mp4v-es"

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

    move-result v2

    if-nez v2, :cond_4d

    goto :goto_21

    :cond_4d
    move v2, v6

    goto :goto_64

    :sswitch_4f
    const-string v5, "video/hevc"

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

    move-result v2

    if-nez v2, :cond_58

    goto :goto_21

    :cond_58
    const/4 v2, 0x1

    goto :goto_64

    :sswitch_5a
    const-string v5, "video/3gpp"

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

    move-result v2

    if-nez v2, :cond_63

    goto :goto_21

    :cond_63
    move v2, v4

    :goto_64
    packed-switch v2, :pswitch_data_fa

    goto :goto_8b

    :pswitch_68
    sget-object v2, Lz5/be;->d:Ljava/lang/String;

    const-string v5, "BRAVIA 4K 2015"

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

    move-result v2

    if-eqz v2, :cond_73

    goto :goto_8b

    :cond_73
    const/16 v2, 0x10

    invoke-static {v0, v2}, Lz5/be;->b(II)I

    move-result v5

    invoke-static {v1, v2}, Lz5/be;->b(II)I

    move-result v2

    mul-int/2addr v2, v5

    mul-int/lit16 v2, v2, 0x100

    goto :goto_87

    :pswitch_81
    mul-int v2, v0, v1

    move v6, v8

    goto :goto_87

    :pswitch_85
    mul-int v2, v0, v1

    :goto_87
    mul-int/2addr v2, v7

    add-int/2addr v6, v6

    div-int/2addr v2, v6

    goto :goto_8c

    :cond_8b
    :goto_8b
    move v2, v3

    :cond_8c
    :goto_8c
    array-length p4, p4

    new-instance p4, Lz5/he;

    invoke-direct {p4, v0, v1, v2, v4}, Lz5/he;-><init>(IIII)V

    iput-object p4, p0, Lz5/ie;->W:Lz5/he;

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

    invoke-virtual {p3}, Lz5/j8;->h()Landroid/media/MediaFormat;

    move-result-object p3

    iget v1, p4, Lz5/he;->a:I

    const-string v2, "max-width"

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

    iget v1, p4, Lz5/he;->b:I

    const-string v2, "max-height"

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

    iget p4, p4, Lz5/he;->c:I

    if-eq p4, v3, :cond_b1

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

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

    :cond_b1
    if-eqz v0, :cond_b8

    const-string p4, "auto-frc"

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

    :cond_b8
    iget-object p4, p0, Lz5/ie;->X:Landroid/view/Surface;

    if-nez p4, :cond_d7

    iget-boolean p4, p1, Lz5/eb;->d:Z

    invoke-virtual {p0, p4}, Lz5/ie;->I(Z)Z

    move-result p4

    invoke-static {p4}, Lcom/google/android/gms/internal/ads/r;->q(Z)V

    iget-object p4, p0, Lz5/ie;->Y:Landroid/view/Surface;

    if-nez p4, :cond_d3

    iget-object p4, p0, Lz5/ie;->Q:Landroid/content/Context;

    iget-boolean p1, p1, Lz5/eb;->d:Z

    invoke-static {p4, p1}, Lz5/ge;->b(Landroid/content/Context;Z)Lz5/ge;

    move-result-object p1

    iput-object p1, p0, Lz5/ie;->Y:Landroid/view/Surface;

    :cond_d3
    iget-object p1, p0, Lz5/ie;->Y:Landroid/view/Surface;

    iput-object p1, p0, Lz5/ie;->X:Landroid/view/Surface;

    :cond_d7
    iget-object p1, p0, Lz5/ie;->X:Landroid/view/Surface;

    const/4 p4, 0x0

    invoke-virtual {p2, p3, p1, p4, v4}, Landroid/media/MediaCodec;->configure(Landroid/media/MediaFormat;Landroid/view/Surface;Landroid/media/MediaCrypto;I)V

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

    return-void

    :sswitch_data_e0
    .sparse-switch
        -0x63306f58 -> :sswitch_5a
        -0x63185e82 -> :sswitch_4f
        0x46cdc642 -> :sswitch_44
        0x4f62373a -> :sswitch_39
        0x5f50bed8 -> :sswitch_2e
        0x5f50bed9 -> :sswitch_23
    .end sparse-switch

    :pswitch_data_fa
    .packed-switch 0x0
        :pswitch_85
        :pswitch_81
        :pswitch_85
        :pswitch_68
        :pswitch_85
        :pswitch_81
    .end packed-switch
.end method

.method public final v(Ljava/lang/String;JJ)V
    .registers 6

    iget-object p2, p0, Lz5/ie;->S:Lz5/ll0;

    .line 1
    iget-object p3, p2, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast p3, Landroid/os/Handler;

    new-instance p4, Ll5/l;

    invoke-direct {p4, p2, p1}, Ll5/l;-><init>(Lz5/ll0;Ljava/lang/String;)V

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

    return-void
.end method

.method public final w(Lz5/j8;)V
    .registers 5

    invoke-super {p0, p1}, Lz5/gb;->w(Lz5/j8;)V

    iget-object v0, p0, Lz5/ie;->S:Lz5/ll0;

    .line 1
    iget-object v1, v0, Lz5/ll0;->s:Ljava/lang/Object;

    check-cast v1, Landroid/os/Handler;

    new-instance v2, Ll5/m;

    invoke-direct {v2, v0, p1}, Ll5/m;-><init>(Lz5/ll0;Lz5/j8;)V

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

    .line 2
    iget v0, p1, Lz5/j8;->E:F

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

    cmpl-float v1, v0, v1

    if-nez v1, :cond_1b

    const/high16 v0, 0x3f800000    # 1.0f

    :cond_1b
    iput v0, p0, Lz5/ie;->f0:F

    .line 3
    iget p1, p1, Lz5/j8;->D:I

    const/4 v0, -0x1

    if-ne p1, v0, :cond_23

    const/4 p1, 0x0

    .line 4
    :cond_23
    iput p1, p0, Lz5/ie;->e0:I

    return-void
.end method

.method public final x(Landroid/media/MediaCodec;Landroid/media/MediaFormat;)V
    .registers 10

    const-string v0, "crop-right"

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

    move-result v1

    const-string v2, "crop-top"

    const-string v3, "crop-bottom"

    const-string v4, "crop-left"

    const/4 v5, 0x1

    const/4 v6, 0x0

    if-eqz v1, :cond_23

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

    move-result v1

    if-eqz v1, :cond_23

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

    move-result v1

    if-eqz v1, :cond_23

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

    move-result v1

    if-eqz v1, :cond_23

    move v6, v5

    :cond_23
    if-eqz v6, :cond_30

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

    move-result v0

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

    move-result v1

    sub-int/2addr v0, v1

    add-int/2addr v0, v5

    goto :goto_36

    :cond_30
    const-string v0, "width"

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

    move-result v0

    :goto_36
    iput v0, p0, Lz5/ie;->g0:I

    if-eqz v6, :cond_45

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

    move-result v0

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

    move-result p2

    sub-int/2addr v0, p2

    add-int/2addr v0, v5

    goto :goto_4b

    :cond_45
    const-string v0, "height"

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

    move-result v0

    :goto_4b
    iput v0, p0, Lz5/ie;->h0:I

    iget p2, p0, Lz5/ie;->f0:F

    iput p2, p0, Lz5/ie;->j0:F

    sget v1, Lz5/be;->a:I

    const/16 v2, 0x15

    if-lt v1, v2, :cond_6d

    iget v1, p0, Lz5/ie;->e0:I

    const/16 v2, 0x5a

    if-eq v1, v2, :cond_61

    const/16 v2, 0x10e

    if-ne v1, v2, :cond_71

    :cond_61
    iget v1, p0, Lz5/ie;->g0:I

    iput v0, p0, Lz5/ie;->g0:I

    iput v1, p0, Lz5/ie;->h0:I

    const/high16 v0, 0x3f800000    # 1.0f

    div-float/2addr v0, p2

    iput v0, p0, Lz5/ie;->j0:F

    goto :goto_71

    :cond_6d
    iget p2, p0, Lz5/ie;->e0:I

    iput p2, p0, Lz5/ie;->i0:I

    :cond_71
    :goto_71
    invoke-virtual {p1, v5}, Landroid/media/MediaCodec;->setVideoScalingMode(I)V

    return-void
.end method

.method public final y(JJLandroid/media/MediaCodec;Ljava/nio/ByteBuffer;IIJZ)Z
    .registers 34

    move-object/from16 v0, p0

    move-object/from16 v1, p5

    move/from16 v2, p7

    move-wide/from16 v3, p9

    :goto_8
    iget v5, v0, Lz5/ie;->p0:I

    const/4 v6, 0x0

    const/4 v7, 0x1

    if-eqz v5, :cond_20

    iget-object v8, v0, Lz5/ie;->U:[J

    aget-wide v9, v8, v6

    cmp-long v11, v3, v9

    if-ltz v11, :cond_20

    iput-wide v9, v0, Lz5/ie;->o0:J

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

    iput v5, v0, Lz5/ie;->p0:I

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

    goto :goto_8

    :cond_20
    const-string v5, "skipVideoBuffer"

    if-eqz p11, :cond_35

    .line 1
    :goto_24
    invoke-static {v5}, Lcom/google/android/gms/internal/ads/h8;->g(Ljava/lang/String;)V

    invoke-virtual {v1, v2, v6}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V

    invoke-static {}, Lcom/google/android/gms/internal/ads/h8;->k()V

    iget-object v1, v0, Lz5/gb;->O:Lz5/p9;

    iget v2, v1, Lz5/p9;->e:I

    add-int/2addr v2, v7

    iput v2, v1, Lz5/p9;->e:I

    return v7

    :cond_35
    sub-long v8, v3, p1

    .line 2
    iget-object v10, v0, Lz5/ie;->X:Landroid/view/Surface;

    iget-object v11, v0, Lz5/ie;->Y:Landroid/view/Surface;

    const-wide/16 v12, -0x7530

    if-ne v10, v11, :cond_4a

    cmp-long v3, v8, v12

    if-gez v3, :cond_45

    move v3, v7

    goto :goto_46

    :cond_45
    move v3, v6

    :goto_46
    if-eqz v3, :cond_49

    goto :goto_24

    :cond_49
    return v6

    :cond_4a
    iget-boolean v5, v0, Lz5/ie;->Z:Z

    const/16 v10, 0x15

    if-nez v5, :cond_60

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

    if-lt v3, v10, :cond_5c

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

    move-result-wide v3

    invoke-virtual {v0, v1, v2, v3, v4}, Lz5/ie;->G(Landroid/media/MediaCodec;IJ)V

    goto :goto_5f

    :cond_5c
    invoke-virtual {v0, v1, v2}, Lz5/ie;->F(Landroid/media/MediaCodec;I)V

    :goto_5f
    return v7

    .line 3
    :cond_60
    iget v5, v0, Lz5/w7;->d:I

    const/4 v11, 0x2

    if-eq v5, v11, :cond_66

    return v6

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

    move-result-wide v14

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

    move-result-wide v16

    iget-object v5, v0, Lz5/ie;->R:Lz5/ke;

    const-wide/16 v18, 0x3e8

    mul-long v14, v14, v18

    sub-long v14, v14, p3

    sub-long/2addr v8, v14

    mul-long v8, v8, v18

    add-long v8, v8, v16

    mul-long v14, v3, v18

    .line 5
    iget-boolean v11, v5, Lz5/ke;->h:Z

    if-eqz v11, :cond_ba

    iget-wide v10, v5, Lz5/ke;->e:J

    cmp-long v10, v3, v10

    if-eqz v10, :cond_93

    iget-wide v10, v5, Lz5/ke;->k:J

    const-wide/16 v20, 0x1

    add-long v10, v10, v20

    iput-wide v10, v5, Lz5/ke;->k:J

    iget-wide v10, v5, Lz5/ke;->g:J

    iput-wide v10, v5, Lz5/ke;->f:J

    :cond_93
    iget-wide v10, v5, Lz5/ke;->k:J

    const-wide/16 v20, 0x6

    cmp-long v20, v10, v20

    if-ltz v20, :cond_b1

    iget-wide v12, v5, Lz5/ke;->j:J

    sub-long v12, v14, v12

    div-long/2addr v12, v10

    iget-wide v10, v5, Lz5/ke;->f:J

    add-long/2addr v10, v12

    invoke-virtual {v5, v10, v11, v8, v9}, Lz5/ke;->a(JJ)Z

    move-result v12

    if-eqz v12, :cond_aa

    goto :goto_b8

    :cond_aa
    iget-wide v12, v5, Lz5/ke;->i:J

    add-long/2addr v12, v10

    iget-wide v6, v5, Lz5/ke;->j:J

    sub-long/2addr v12, v6

    goto :goto_bc

    :cond_b1
    invoke-virtual {v5, v14, v15, v8, v9}, Lz5/ke;->a(JJ)Z

    move-result v6

    if-eqz v6, :cond_ba

    const/4 v6, 0x0

    :goto_b8
    iput-boolean v6, v5, Lz5/ke;->h:Z

    :cond_ba
    move-wide v12, v8

    move-wide v10, v14

    :goto_bc
    iget-boolean v6, v5, Lz5/ke;->h:Z

    const-wide/16 v0, 0x0

    if-nez v6, :cond_cb

    iput-wide v14, v5, Lz5/ke;->j:J

    iput-wide v8, v5, Lz5/ke;->i:J

    iput-wide v0, v5, Lz5/ke;->k:J

    const/4 v6, 0x1

    iput-boolean v6, v5, Lz5/ke;->h:Z

    :cond_cb
    iput-wide v3, v5, Lz5/ke;->e:J

    iput-wide v10, v5, Lz5/ke;->g:J

    iget-object v3, v5, Lz5/ke;->a:Lz5/je;

    if-eqz v3, :cond_fc

    iget-wide v3, v3, Lz5/je;->r:J

    cmp-long v0, v3, v0

    if-nez v0, :cond_da

    goto :goto_fc

    :cond_da
    iget-object v0, v5, Lz5/ke;->a:Lz5/je;

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

    iget-wide v3, v5, Lz5/ke;->c:J

    sub-long v6, v12, v0

    div-long/2addr v6, v3

    mul-long/2addr v6, v3

    add-long/2addr v6, v0

    cmp-long v0, v12, v6

    if-gtz v0, :cond_ec

    sub-long v0, v6, v3

    goto :goto_ef

    :cond_ec
    add-long/2addr v3, v6

    move-wide v0, v6

    move-wide v6, v3

    :goto_ef
    sub-long v3, v6, v12

    sub-long/2addr v12, v0

    cmp-long v3, v3, v12

    if-gez v3, :cond_f7

    goto :goto_f8

    :cond_f7
    move-wide v6, v0

    :goto_f8
    iget-wide v0, v5, Lz5/ke;->d:J

    sub-long v12, v6, v0

    :cond_fc
    :goto_fc
    sub-long v0, v12, v16

    .line 6
    div-long v0, v0, v18

    const-wide/16 v3, -0x7530

    cmp-long v3, v0, v3

    if-gez v3, :cond_108

    const/4 v3, 0x1

    goto :goto_109

    :cond_108
    const/4 v3, 0x0

    :goto_109
    if-eqz v3, :cond_13e

    const-string v0, "dropVideoBuffer"

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/h8;->g(Ljava/lang/String;)V

    move-object/from16 v3, p5

    const/4 v0, 0x0

    invoke-virtual {v3, v2, v0}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V

    invoke-static {}, Lcom/google/android/gms/internal/ads/h8;->k()V

    move-object/from16 v4, p0

    iget-object v0, v4, Lz5/gb;->O:Lz5/p9;

    iget v1, v0, Lz5/p9;->f:I

    const/4 v5, 0x1

    add-int/2addr v1, v5

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

    iget v1, v4, Lz5/ie;->c0:I

    add-int/2addr v1, v5

    iput v1, v4, Lz5/ie;->c0:I

    iget v1, v4, Lz5/ie;->d0:I

    add-int/2addr v1, v5

    iput v1, v4, Lz5/ie;->d0:I

    iget v2, v0, Lz5/p9;->g:I

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

    move-result v1

    iput v1, v0, Lz5/p9;->g:I

    iget v0, v4, Lz5/ie;->c0:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_13d

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

    :cond_13d
    return v5

    :cond_13e
    move-object/from16 v4, p0

    move-object/from16 v3, p5

    const/4 v5, 0x1

    sget v6, Lz5/be;->a:I

    const/16 v7, 0x15

    if-lt v6, v7, :cond_154

    const-wide/32 v6, 0xc350

    cmp-long v0, v0, v6

    if-gez v0, :cond_175

    invoke-virtual {v4, v3, v2, v12, v13}, Lz5/ie;->G(Landroid/media/MediaCodec;IJ)V

    return v5

    :cond_154
    const-wide/16 v5, 0x7530

    cmp-long v5, v0, v5

    if-gez v5, :cond_175

    const-wide/16 v5, 0x2af8

    cmp-long v5, v0, v5

    if-lez v5, :cond_170

    const-wide/16 v5, -0x2710

    add-long/2addr v0, v5

    :try_start_163
    div-long v0, v0, v18

    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_168
    .catch Ljava/lang/InterruptedException; {:try_start_163 .. :try_end_168} :catch_169

    goto :goto_170

    :catch_169
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V

    :cond_170
    :goto_170
    invoke-virtual {v4, v3, v2}, Lz5/ie;->F(Landroid/media/MediaCodec;I)V

    const/4 v0, 0x1

    return v0

    :cond_175
    const/4 v0, 0x0

    return v0
.end method

.method public final zzE()Z
    .registers 10

    invoke-super {p0}, Lz5/gb;->zzE()Z

    move-result v0

    const/4 v1, 0x1

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

    if-eqz v0, :cond_20

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

    if-nez v0, :cond_1d

    iget-object v0, p0, Lz5/ie;->Y:Landroid/view/Surface;

    if-eqz v0, :cond_18

    iget-object v4, p0, Lz5/ie;->X:Landroid/view/Surface;

    if-eq v4, v0, :cond_1d

    .line 1
    :cond_18
    iget-object v0, p0, Lz5/gb;->p:Landroid/media/MediaCodec;

    if-eqz v0, :cond_1d

    goto :goto_20

    .line 2
    :cond_1d
    iput-wide v2, p0, Lz5/ie;->a0:J

    return v1

    :cond_20
    :goto_20
    iget-wide v4, p0, Lz5/ie;->a0:J

    cmp-long v0, v4, v2

    const/4 v4, 0x0

    if-nez v0, :cond_28

    return v4

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

    move-result-wide v5

    iget-wide v7, p0, Lz5/ie;->a0:J

    cmp-long v0, v5, v7

    if-gez v0, :cond_33

    return v1

    :cond_33
    iput-wide v2, p0, Lz5/ie;->a0:J

    return v4
.end method
