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

# interfaces
.implements Lz5/qp1;
.implements Lz5/pp1;


# instance fields
.field public final r:[Lz5/qp1;

.field public final s:Ljava/util/IdentityHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/IdentityHashMap<",
            "Lz5/qq1;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

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

.field public u:Lz5/pp1;

.field public v:Lz5/fw1;

.field public w:[Lz5/qp1;

.field public x:Lz5/rq1;


# direct methods
.method public varargs constructor <init>(Lz5/hb;[J[Lz5/qp1;[B)V
    .registers 9

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

    iput-object p3, p0, Lz5/bq1;->r:[Lz5/qp1;

    new-instance p1, Ljava/util/ArrayList;

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

    iput-object p1, p0, Lz5/bq1;->t:Ljava/util/ArrayList;

    const/4 p1, 0x0

    new-array p4, p1, [Lz5/rq1;

    new-instance v0, Lz5/ex0;

    invoke-direct {v0, p4}, Lz5/ex0;-><init>([Lz5/rq1;)V

    iput-object v0, p0, Lz5/bq1;->x:Lz5/rq1;

    new-instance p4, Ljava/util/IdentityHashMap;

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

    iput-object p4, p0, Lz5/bq1;->s:Ljava/util/IdentityHashMap;

    new-array p4, p1, [Lz5/qp1;

    iput-object p4, p0, Lz5/bq1;->w:[Lz5/qp1;

    :goto_21
    array-length p4, p3

    if-ge p1, p4, :cond_3a

    aget-wide v0, p2, p1

    const-wide/16 v2, 0x0

    cmp-long p4, v0, v2

    if-eqz p4, :cond_37

    iget-object p4, p0, Lz5/bq1;->r:[Lz5/qp1;

    new-instance v2, Lz5/zp1;

    aget-object v3, p3, p1

    invoke-direct {v2, v3, v0, v1}, Lz5/zp1;-><init>(Lz5/qp1;J)V

    aput-object v2, p4, p1

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

    goto :goto_21

    :cond_3a
    return-void
.end method


# virtual methods
.method public final a(J)V
    .registers 4

    iget-object v0, p0, Lz5/bq1;->x:Lz5/rq1;

    invoke-interface {v0, p1, p2}, Lz5/rq1;->a(J)V

    return-void
.end method

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

    iget-object v0, p0, Lz5/bq1;->t:Ljava/util/ArrayList;

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

    move-result v0

    if-nez v0, :cond_21

    iget-object v0, p0, Lz5/bq1;->t:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v1, 0x0

    move v2, v1

    :goto_10
    if-ge v2, v0, :cond_20

    iget-object v3, p0, Lz5/bq1;->t:Ljava/util/ArrayList;

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lz5/qp1;

    invoke-interface {v3, p1, p2}, Lz5/qp1;->b(J)Z

    add-int/lit8 v2, v2, 0x1

    goto :goto_10

    :cond_20
    return v1

    :cond_21
    iget-object v0, p0, Lz5/bq1;->x:Lz5/rq1;

    invoke-interface {v0, p1, p2}, Lz5/rq1;->b(J)Z

    move-result p1

    return p1
.end method

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

    iget-object v0, p0, Lz5/bq1;->t:Ljava/util/ArrayList;

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

    iget-object p1, p0, Lz5/bq1;->t:Ljava/util/ArrayList;

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

    move-result p1

    if-nez p1, :cond_e

    return-void

    :cond_e
    iget-object p1, p0, Lz5/bq1;->r:[Lz5/qp1;

    array-length v0, p1

    const/4 v1, 0x0

    move v2, v1

    move v3, v2

    :goto_14
    if-ge v2, v0, :cond_22

    aget-object v4, p1, v2

    invoke-interface {v4}, Lz5/qp1;->zzd()Lz5/fw1;

    move-result-object v4

    iget v4, v4, Lz5/fw1;->a:I

    add-int/2addr v3, v4

    add-int/lit8 v2, v2, 0x1

    goto :goto_14

    :cond_22
    new-array p1, v3, [Lz5/cv1;

    iget-object v0, p0, Lz5/bq1;->r:[Lz5/qp1;

    array-length v2, v0

    move v3, v1

    move v4, v3

    :goto_29
    if-ge v3, v2, :cond_45

    aget-object v5, v0, v3

    invoke-interface {v5}, Lz5/qp1;->zzd()Lz5/fw1;

    move-result-object v5

    iget v6, v5, Lz5/fw1;->a:I

    move v7, v1

    :goto_34
    if-ge v7, v6, :cond_42

    add-int/lit8 v8, v4, 0x1

    .line 1
    iget-object v9, v5, Lz5/fw1;->b:[Lz5/cv1;

    aget-object v9, v9, v7

    .line 2
    aput-object v9, p1, v4

    add-int/lit8 v7, v7, 0x1

    move v4, v8

    goto :goto_34

    :cond_42
    add-int/lit8 v3, v3, 0x1

    goto :goto_29

    :cond_45
    new-instance v0, Lz5/fw1;

    invoke-direct {v0, p1}, Lz5/fw1;-><init>([Lz5/cv1;)V

    iput-object v0, p0, Lz5/bq1;->v:Lz5/fw1;

    iget-object p1, p0, Lz5/bq1;->u:Lz5/pp1;

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

    invoke-interface {p1, p0}, Lz5/pp1;->c(Lz5/qp1;)V

    return-void
.end method

.method public final d(J)J
    .registers 6

    iget-object v0, p0, Lz5/bq1;->w:[Lz5/qp1;

    const/4 v1, 0x0

    aget-object v0, v0, v1

    invoke-interface {v0, p1, p2}, Lz5/qp1;->d(J)J

    move-result-wide p1

    const/4 v0, 0x1

    :goto_a
    iget-object v1, p0, Lz5/bq1;->w:[Lz5/qp1;

    array-length v2, v1

    if-ge v0, v2, :cond_24

    aget-object v1, v1, v0

    invoke-interface {v1, p1, p2}, Lz5/qp1;->d(J)J

    move-result-wide v1

    cmp-long v1, v1, p1

    if-nez v1, :cond_1c

    add-int/lit8 v0, v0, 0x1

    goto :goto_a

    :cond_1c
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "Unexpected child seekToUs result."

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

    throw p1

    :cond_24
    return-wide p1
.end method

.method public final e(JZ)V
    .registers 8

    iget-object p3, p0, Lz5/bq1;->w:[Lz5/qp1;

    array-length v0, p3

    const/4 v1, 0x0

    move v2, v1

    :goto_5
    if-ge v2, v0, :cond_f

    aget-object v3, p3, v2

    invoke-interface {v3, p1, p2, v1}, Lz5/qp1;->e(JZ)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_5

    :cond_f
    return-void
.end method

.method public final f(Lz5/pp1;J)V
    .registers 7

    iput-object p1, p0, Lz5/bq1;->u:Lz5/pp1;

    iget-object p1, p0, Lz5/bq1;->t:Ljava/util/ArrayList;

    iget-object v0, p0, Lz5/bq1;->r:[Lz5/qp1;

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

    iget-object p1, p0, Lz5/bq1;->r:[Lz5/qp1;

    array-length v0, p1

    const/4 v1, 0x0

    :goto_d
    if-ge v1, v0, :cond_17

    aget-object v2, p1, v1

    invoke-interface {v2, p0, p2, p3}, Lz5/qp1;->f(Lz5/pp1;J)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_d

    :cond_17
    return-void
.end method

.method public final bridge synthetic g(Lz5/rq1;)V
    .registers 2

    iget-object p1, p0, Lz5/bq1;->u:Lz5/pp1;

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

    invoke-interface {p1, p0}, Lz5/pp1;->g(Lz5/rq1;)V

    return-void
.end method

.method public final j([Lz5/yq1;[Z[Lz5/qq1;[ZJ)J
    .registers 27

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p3

    array-length v3, v1

    new-array v4, v3, [I

    new-array v3, v3, [I

    const/4 v6, 0x0

    :goto_c
    array-length v7, v1

    if-ge v6, v7, :cond_4c

    aget-object v7, v2, v6

    if-nez v7, :cond_15

    const/4 v8, 0x0

    goto :goto_1e

    :cond_15
    iget-object v8, v0, Lz5/bq1;->s:Ljava/util/IdentityHashMap;

    invoke-virtual {v8, v7}, Ljava/util/IdentityHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    move-object v8, v7

    check-cast v8, Ljava/lang/Integer;

    :goto_1e
    const/4 v7, -0x1

    if-nez v8, :cond_23

    move v8, v7

    goto :goto_27

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

    move-result v8

    :goto_27
    aput v8, v4, v6

    aput v7, v3, v6

    aget-object v8, v1, v6

    if-eqz v8, :cond_49

    .line 1
    iget-object v8, v8, Lz5/yq1;->a:Lz5/cv1;

    const/4 v9, 0x0

    .line 2
    :goto_32
    iget-object v10, v0, Lz5/bq1;->r:[Lz5/qp1;

    array-length v11, v10

    if-ge v9, v11, :cond_49

    aget-object v10, v10, v9

    invoke-interface {v10}, Lz5/qp1;->zzd()Lz5/fw1;

    move-result-object v10

    invoke-virtual {v10, v8}, Lz5/fw1;->a(Lz5/cv1;)I

    move-result v10

    if-eq v10, v7, :cond_46

    aput v9, v3, v6

    goto :goto_49

    :cond_46
    add-int/lit8 v9, v9, 0x1

    goto :goto_32

    :cond_49
    :goto_49
    add-int/lit8 v6, v6, 0x1

    goto :goto_c

    :cond_4c
    iget-object v6, v0, Lz5/bq1;->s:Ljava/util/IdentityHashMap;

    invoke-virtual {v6}, Ljava/util/IdentityHashMap;->clear()V

    new-array v6, v7, [Lz5/qq1;

    new-array v14, v7, [Lz5/qq1;

    new-array v15, v7, [Lz5/yq1;

    new-instance v13, Ljava/util/ArrayList;

    iget-object v9, v0, Lz5/bq1;->r:[Lz5/qp1;

    array-length v9, v9

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

    move-wide/from16 v16, p5

    const/4 v12, 0x0

    :goto_62
    iget-object v9, v0, Lz5/bq1;->r:[Lz5/qp1;

    array-length v9, v9

    if-ge v12, v9, :cond_e6

    const/4 v9, 0x0

    :goto_68
    array-length v10, v1

    if-ge v9, v10, :cond_82

    aget v10, v4, v9

    if-ne v10, v12, :cond_72

    aget-object v10, v2, v9

    goto :goto_73

    :cond_72
    const/4 v10, 0x0

    :goto_73
    aput-object v10, v14, v9

    aget v10, v3, v9

    if-ne v10, v12, :cond_7c

    aget-object v10, v1, v9

    goto :goto_7d

    :cond_7c
    const/4 v10, 0x0

    :goto_7d
    aput-object v10, v15, v9

    add-int/lit8 v9, v9, 0x1

    goto :goto_68

    :cond_82
    iget-object v9, v0, Lz5/bq1;->r:[Lz5/qp1;

    aget-object v9, v9, v12

    move-object v10, v15

    move-object/from16 v11, p2

    move v8, v12

    move-object v12, v14

    move-object v5, v13

    move-object/from16 v13, p4

    move-object/from16 v18, v14

    move-object/from16 v19, v15

    move-wide/from16 v14, v16

    invoke-interface/range {v9 .. v15}, Lz5/qp1;->j([Lz5/yq1;[Z[Lz5/qq1;[ZJ)J

    move-result-wide v9

    if-nez v8, :cond_9d

    move-wide/from16 v16, v9

    goto :goto_a1

    :cond_9d
    cmp-long v9, v9, v16

    if-nez v9, :cond_de

    :goto_a1
    const/4 v9, 0x0

    const/4 v10, 0x0

    :goto_a3
    array-length v11, v1

    if-ge v9, v11, :cond_cd

    aget v11, v3, v9

    const/4 v12, 0x1

    if-ne v11, v8, :cond_bd

    aget-object v10, v18, v9

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

    aput-object v10, v6, v9

    iget-object v11, v0, Lz5/bq1;->s:Ljava/util/IdentityHashMap;

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

    move-result-object v13

    invoke-virtual {v11, v10, v13}, Ljava/util/IdentityHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move v10, v12

    goto :goto_ca

    :cond_bd
    aget v11, v4, v9

    if-ne v11, v8, :cond_ca

    aget-object v11, v18, v9

    if-nez v11, :cond_c6

    goto :goto_c7

    :cond_c6
    const/4 v12, 0x0

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

    :cond_ca
    :goto_ca
    add-int/lit8 v9, v9, 0x1

    goto :goto_a3

    :cond_cd
    if-eqz v10, :cond_d6

    iget-object v9, v0, Lz5/bq1;->r:[Lz5/qp1;

    aget-object v9, v9, v8

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

    :cond_d6
    add-int/lit8 v12, v8, 0x1

    move-object v13, v5

    move-object/from16 v14, v18

    move-object/from16 v15, v19

    goto :goto_62

    :cond_de
    new-instance v1, Ljava/lang/IllegalStateException;

    const-string v2, "Children enabled at different positions."

    invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_e6
    move-object v5, v13

    const/4 v1, 0x0

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

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

    invoke-virtual {v5, v1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Lz5/qp1;

    iput-object v1, v0, Lz5/bq1;->w:[Lz5/qp1;

    new-instance v2, Lz5/ex0;

    invoke-direct {v2, v1}, Lz5/ex0;-><init>([Lz5/rq1;)V

    iput-object v2, v0, Lz5/bq1;->x:Lz5/rq1;

    return-wide v16
.end method

.method public final k(JLz5/g4;)J
    .registers 7

    iget-object v0, p0, Lz5/bq1;->w:[Lz5/qp1;

    array-length v1, v0

    const/4 v2, 0x0

    if-lez v1, :cond_9

    aget-object v0, v0, v2

    goto :goto_d

    :cond_9
    iget-object v0, p0, Lz5/bq1;->r:[Lz5/qp1;

    aget-object v0, v0, v2

    :goto_d
    invoke-interface {v0, p1, p2, p3}, Lz5/qp1;->k(JLz5/g4;)J

    move-result-wide p1

    return-wide p1
.end method

.method public final zzc()V
    .registers 5

    iget-object v0, p0, Lz5/bq1;->r:[Lz5/qp1;

    array-length v1, v0

    const/4 v2, 0x0

    :goto_4
    if-ge v2, v1, :cond_e

    aget-object v3, v0, v2

    invoke-interface {v3}, Lz5/qp1;->zzc()V

    add-int/lit8 v2, v2, 0x1

    goto :goto_4

    :cond_e
    return-void
.end method

.method public final zzd()Lz5/fw1;
    .registers 2

    iget-object v0, p0, Lz5/bq1;->v:Lz5/fw1;

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

    return-object v0
.end method

.method public final zzg()J
    .registers 16

    iget-object v0, p0, Lz5/bq1;->w:[Lz5/qp1;

    array-length v1, v0

    const/4 v2, 0x0

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

    move v5, v2

    move-wide v6, v3

    :goto_b
    if-ge v5, v1, :cond_5e

    aget-object v8, v0, v5

    invoke-interface {v8}, Lz5/qp1;->zzg()J

    move-result-wide v9

    cmp-long v11, v9, v3

    const-string v12, "Unexpected child seekToUs result."

    if-eqz v11, :cond_48

    cmp-long v11, v6, v3

    if-nez v11, :cond_3b

    iget-object v6, p0, Lz5/bq1;->w:[Lz5/qp1;

    array-length v7, v6

    move v11, v2

    :goto_21
    if-ge v11, v7, :cond_39

    aget-object v13, v6, v11

    if-ne v13, v8, :cond_28

    goto :goto_39

    :cond_28
    invoke-interface {v13, v9, v10}, Lz5/qp1;->d(J)J

    move-result-wide v13

    cmp-long v13, v13, v9

    if-nez v13, :cond_33

    add-int/lit8 v11, v11, 0x1

    goto :goto_21

    :cond_33
    new-instance v0, Ljava/lang/IllegalStateException;

    invoke-direct {v0, v12}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_39
    :goto_39
    move-wide v6, v9

    goto :goto_5b

    :cond_3b
    cmp-long v8, v9, v6

    if-nez v8, :cond_40

    goto :goto_5b

    :cond_40
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Conflicting discontinuities."

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_48
    cmp-long v9, v6, v3

    if-eqz v9, :cond_5b

    invoke-interface {v8, v6, v7}, Lz5/qp1;->d(J)J

    move-result-wide v8

    cmp-long v8, v8, v6

    if-nez v8, :cond_55

    goto :goto_5b

    :cond_55
    new-instance v0, Ljava/lang/IllegalStateException;

    invoke-direct {v0, v12}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_5b
    :goto_5b
    add-int/lit8 v5, v5, 0x1

    goto :goto_b

    :cond_5e
    return-wide v6
.end method

.method public final zzh()J
    .registers 3

    iget-object v0, p0, Lz5/bq1;->x:Lz5/rq1;

    invoke-interface {v0}, Lz5/rq1;->zzh()J

    move-result-wide v0

    return-wide v0
.end method

.method public final zzk()J
    .registers 3

    iget-object v0, p0, Lz5/bq1;->x:Lz5/rq1;

    invoke-interface {v0}, Lz5/rq1;->zzk()J

    move-result-wide v0

    return-wide v0
.end method

.method public final zzm()Z
    .registers 2

    iget-object v0, p0, Lz5/bq1;->x:Lz5/rq1;

    invoke-interface {v0}, Lz5/rq1;->zzm()Z

    move-result v0

    return v0
.end method
