.class public final Lz5/dq1;
.super Lz5/hp1;
.source ""


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lz5/hp1<",
        "Ljava/lang/Integer;",
        ">;"
    }
.end annotation


# static fields
.field public static final q:Lz5/e3;


# instance fields
.field public final j:[Lz5/tp1;

.field public final k:[Lz5/r4;

.field public final l:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lz5/tp1;",
            ">;"
        }
    .end annotation
.end field

.field public m:I

.field public n:[[J

.field public o:Lz5/cq1;

.field public final p:Lz5/hb;


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

    new-instance v0, Lz5/x;

    const/4 v1, 0x1

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

    const-string v1, "MergingMediaSource"

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

    .line 2
    invoke-virtual {v0}, Lz5/x;->c()Lz5/e3;

    move-result-object v0

    sput-object v0, Lz5/dq1;->q:Lz5/e3;

    return-void
.end method

.method public varargs constructor <init>(Z[Lz5/tp1;)V
    .registers 4

    new-instance p1, Lz5/hb;

    const/4 v0, 0x7

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

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

    iput-object p2, p0, Lz5/dq1;->j:[Lz5/tp1;

    iput-object p1, p0, Lz5/dq1;->p:Lz5/hb;

    new-instance p1, Ljava/util/ArrayList;

    invoke-static {p2}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

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

    iput-object p1, p0, Lz5/dq1;->l:Ljava/util/ArrayList;

    const/4 p1, -0x1

    iput p1, p0, Lz5/dq1;->m:I

    array-length p1, p2

    new-array p1, p1, [Lz5/r4;

    iput-object p1, p0, Lz5/dq1;->k:[Lz5/r4;

    const/4 p1, 0x0

    new-array p1, p1, [[J

    iput-object p1, p0, Lz5/dq1;->n:[[J

    new-instance p1, Ljava/util/HashMap;

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

    .line 1
    new-instance p1, Lcom/google/android/gms/internal/ads/k6;

    const/16 p2, 0x8

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

    .line 2
    invoke-virtual {p1}, Lcom/google/android/gms/internal/ads/k6;->isEmpty()Z

    move-result p1

    if-eqz p1, :cond_38

    return-void

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

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

    throw p1
.end method


# virtual methods
.method public final b(Lz5/rp1;Lt0/c;J)Lz5/qp1;
    .registers 14

    iget-object v0, p0, Lz5/dq1;->j:[Lz5/tp1;

    array-length v0, v0

    new-array v1, v0, [Lz5/qp1;

    iget-object v2, p0, Lz5/dq1;->k:[Lz5/r4;

    const/4 v3, 0x0

    aget-object v2, v2, v3

    iget-object v4, p1, Lz5/cu1;->a:Ljava/lang/Object;

    invoke-virtual {v2, v4}, Lz5/r4;->i(Ljava/lang/Object;)I

    move-result v2

    :goto_10
    if-ge v3, v0, :cond_33

    iget-object v4, p0, Lz5/dq1;->k:[Lz5/r4;

    aget-object v4, v4, v3

    invoke-virtual {v4, v2}, Lz5/r4;->j(I)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {p1, v4}, Lz5/rp1;->b(Ljava/lang/Object;)Lz5/rp1;

    move-result-object v4

    iget-object v5, p0, Lz5/dq1;->j:[Lz5/tp1;

    aget-object v5, v5, v3

    iget-object v6, p0, Lz5/dq1;->n:[[J

    aget-object v6, v6, v2

    aget-wide v7, v6, v3

    sub-long v6, p3, v7

    invoke-interface {v5, v4, p2, v6, v7}, Lz5/tp1;->b(Lz5/rp1;Lt0/c;J)Lz5/qp1;

    move-result-object v4

    aput-object v4, v1, v3

    add-int/lit8 v3, v3, 0x1

    goto :goto_10

    :cond_33
    new-instance p1, Lz5/bq1;

    iget-object p2, p0, Lz5/dq1;->p:Lz5/hb;

    iget-object p3, p0, Lz5/dq1;->n:[[J

    aget-object p3, p3, v2

    const/4 p4, 0x0

    invoke-direct {p1, p2, p3, v1, p4}, Lz5/bq1;-><init>(Lz5/hb;[J[Lz5/qp1;[B)V

    return-object p1
.end method

.method public final c(Lz5/qp1;)V
    .registers 6

    check-cast p1, Lz5/bq1;

    const/4 v0, 0x0

    :goto_3
    iget-object v1, p0, Lz5/dq1;->j:[Lz5/tp1;

    array-length v2, v1

    if-ge v0, v2, :cond_1c

    aget-object v1, v1, v0

    .line 1
    iget-object v2, p1, Lz5/bq1;->r:[Lz5/qp1;

    aget-object v2, v2, v0

    instance-of v3, v2, Lz5/zp1;

    if-eqz v3, :cond_16

    check-cast v2, Lz5/zp1;

    .line 2
    iget-object v2, v2, Lz5/zp1;->r:Lz5/qp1;

    .line 3
    :cond_16
    invoke-interface {v1, v2}, Lz5/tp1;->c(Lz5/qp1;)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_3

    :cond_1c
    return-void
.end method

.method public final l(Lz5/rf;)V
    .registers 4

    .line 1
    iput-object p1, p0, Lz5/hp1;->i:Lz5/rf;

    const/4 p1, 0x0

    invoke-static {p1}, Lz5/r7;->n(Landroid/os/Handler$Callback;)Landroid/os/Handler;

    move-result-object p1

    iput-object p1, p0, Lz5/hp1;->h:Landroid/os/Handler;

    const/4 p1, 0x0

    .line 2
    :goto_a
    iget-object v0, p0, Lz5/dq1;->j:[Lz5/tp1;

    array-length v0, v0

    if-ge p1, v0, :cond_1d

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

    move-result-object v0

    iget-object v1, p0, Lz5/dq1;->j:[Lz5/tp1;

    aget-object v1, v1, p1

    invoke-virtual {p0, v0, v1}, Lz5/hp1;->q(Ljava/lang/Object;Lz5/tp1;)V

    add-int/lit8 p1, p1, 0x1

    goto :goto_a

    :cond_1d
    return-void
.end method

.method public final n()V
    .registers 3

    invoke-super {p0}, Lz5/hp1;->n()V

    iget-object v0, p0, Lz5/dq1;->k:[Lz5/r4;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Ljava/util/Arrays;->fill([Ljava/lang/Object;Ljava/lang/Object;)V

    const/4 v0, -0x1

    iput v0, p0, Lz5/dq1;->m:I

    iput-object v1, p0, Lz5/dq1;->o:Lz5/cq1;

    iget-object v0, p0, Lz5/dq1;->l:Ljava/util/ArrayList;

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

    iget-object v0, p0, Lz5/dq1;->l:Ljava/util/ArrayList;

    iget-object v1, p0, Lz5/dq1;->j:[Lz5/tp1;

    invoke-static {v0, v1}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z

    return-void
.end method

.method public final bridge synthetic p(Ljava/lang/Object;Lz5/tp1;Lz5/r4;)V
    .registers 9

    iget-object v0, p0, Lz5/dq1;->o:Lz5/cq1;

    if-eqz v0, :cond_5

    goto :goto_53

    :cond_5
    iget v0, p0, Lz5/dq1;->m:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_11

    invoke-virtual {p3}, Lz5/r4;->g()I

    move-result v0

    iput v0, p0, Lz5/dq1;->m:I

    goto :goto_1a

    :cond_11
    invoke-virtual {p3}, Lz5/r4;->g()I

    move-result v0

    iget v1, p0, Lz5/dq1;->m:I

    if-ne v0, v1, :cond_54

    move v0, v1

    :goto_1a
    iget-object v1, p0, Lz5/dq1;->n:[[J

    array-length v1, v1

    const/4 v2, 0x0

    if-nez v1, :cond_35

    iget-object v1, p0, Lz5/dq1;->k:[Lz5/r4;

    array-length v1, v1

    const/4 v3, 0x2

    new-array v3, v3, [I

    const/4 v4, 0x1

    aput v1, v3, v4

    aput v0, v3, v2

    const-class v0, J

    invoke-static {v0, v3}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [[J

    iput-object v0, p0, Lz5/dq1;->n:[[J

    :cond_35
    iget-object v0, p0, Lz5/dq1;->l:Ljava/util/ArrayList;

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

    iget-object p2, p0, Lz5/dq1;->k:[Lz5/r4;

    check-cast p1, Ljava/lang/Integer;

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

    move-result p1

    aput-object p3, p2, p1

    iget-object p1, p0, Lz5/dq1;->l:Ljava/util/ArrayList;

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

    move-result p1

    if-eqz p1, :cond_53

    iget-object p1, p0, Lz5/dq1;->k:[Lz5/r4;

    aget-object p1, p1, v2

    invoke-virtual {p0, p1}, Lz5/pm1;->o(Lz5/r4;)V

    :cond_53
    :goto_53
    return-void

    :cond_54
    new-instance p1, Lz5/cq1;

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

    iput-object p1, p0, Lz5/dq1;->o:Lz5/cq1;

    return-void
.end method

.method public final bridge synthetic r(Ljava/lang/Object;Lz5/rp1;)Lz5/rp1;
    .registers 3

    check-cast p1, Ljava/lang/Integer;

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

    move-result p1

    if-nez p1, :cond_9

    return-object p2

    :cond_9
    const/4 p1, 0x0

    return-object p1
.end method

.method public final zzu()V
    .registers 3

    iget-object v0, p0, Lz5/dq1;->o:Lz5/cq1;

    if-nez v0, :cond_21

    .line 1
    iget-object v0, p0, Lz5/hp1;->g:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_e
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_20

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lz5/gp1;

    iget-object v1, v1, Lz5/gp1;->a:Lz5/tp1;

    invoke-interface {v1}, Lz5/tp1;->zzu()V

    goto :goto_e

    :cond_20
    return-void

    .line 2
    :cond_21
    throw v0
.end method

.method public final zzz()Lz5/e3;
    .registers 3

    iget-object v0, p0, Lz5/dq1;->j:[Lz5/tp1;

    array-length v1, v0

    if-lez v1, :cond_d

    const/4 v1, 0x0

    aget-object v0, v0, v1

    invoke-interface {v0}, Lz5/tp1;->zzz()Lz5/e3;

    move-result-object v0

    goto :goto_f

    :cond_d
    sget-object v0, Lz5/dq1;->q:Lz5/e3;

    :goto_f
    return-object v0
.end method
