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

# interfaces
.implements Lz5/uw1;


# instance fields
.field public final synthetic a:I

.field public final b:Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lz5/qx1;",
            ">;"
        }
    .end annotation
.end field

.field public c:Ljava/lang/Object;

.field public d:Z

.field public e:I

.field public f:I

.field public g:J


# direct methods
.method public constructor <init>()V
    .registers 4

    const/4 v0, 0x1

    iput v0, p0, Lz5/tw1;->a:I

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

    new-instance v0, Lz5/j7;

    const/16 v1, 0xa

    const/4 v2, 0x0

    invoke-direct {v0, v1, v2}, Lz5/j7;-><init>(II)V

    iput-object v0, p0, Lz5/tw1;->b:Ljava/lang/Object;

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

    iput-wide v0, p0, Lz5/tw1;->g:J

    return-void
.end method

.method public constructor <init>(Ljava/util/List;)V
    .registers 4

    const/4 v0, 0x0

    iput v0, p0, Lz5/tw1;->a:I

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

    iput-object p1, p0, Lz5/tw1;->b:Ljava/lang/Object;

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

    move-result p1

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

    iput-object p1, p0, Lz5/tw1;->c:Ljava/lang/Object;

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

    iput-wide v0, p0, Lz5/tw1;->g:J

    return-void
.end method


# virtual methods
.method public final a(Lz5/j7;)V
    .registers 10

    iget v0, p0, Lz5/tw1;->a:I

    const/4 v1, 0x0

    packed-switch v0, :pswitch_data_d6

    goto :goto_43

    .line 1
    :pswitch_7
    iget-boolean v0, p0, Lz5/tw1;->d:Z

    if-eqz v0, :cond_42

    iget v0, p0, Lz5/tw1;->e:I

    const/4 v2, 0x2

    if-ne v0, v2, :cond_18

    const/16 v0, 0x20

    invoke-virtual {p0, p1, v0}, Lz5/tw1;->d(Lz5/j7;I)Z

    move-result v0

    if-eqz v0, :cond_42

    :cond_18
    iget v0, p0, Lz5/tw1;->e:I

    const/4 v2, 0x1

    if-ne v0, v2, :cond_23

    invoke-virtual {p0, p1, v1}, Lz5/tw1;->d(Lz5/j7;I)Z

    move-result v0

    if-eqz v0, :cond_42

    :cond_23
    invoke-virtual {p1}, Lz5/j7;->o()I

    move-result v0

    invoke-virtual {p1}, Lz5/j7;->l()I

    move-result v2

    iget-object v3, p0, Lz5/tw1;->c:Ljava/lang/Object;

    check-cast v3, [Lz5/ou1;

    array-length v4, v3

    :goto_30
    if-ge v1, v4, :cond_3d

    aget-object v5, v3, v1

    invoke-virtual {p1, v0}, Lz5/j7;->q(I)V

    invoke-interface {v5, p1, v2}, Lz5/ou1;->f(Lz5/j7;I)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_30

    :cond_3d
    iget p1, p0, Lz5/tw1;->f:I

    add-int/2addr p1, v2

    iput p1, p0, Lz5/tw1;->f:I

    :cond_42
    return-void

    .line 2
    :goto_43
    iget-object v0, p0, Lz5/tw1;->c:Ljava/lang/Object;

    check-cast v0, Lz5/ou1;

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/d;->p(Ljava/lang/Object;)Ljava/lang/Object;

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

    if-nez v0, :cond_50

    goto/16 :goto_d5

    :cond_50
    invoke-virtual {p1}, Lz5/j7;->l()I

    move-result v0

    iget v2, p0, Lz5/tw1;->f:I

    const/16 v3, 0xa

    if-ge v2, v3, :cond_c0

    rsub-int/lit8 v2, v2, 0xa

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

    move-result v2

    .line 3
    iget-object v4, p1, Lz5/j7;->b:[B

    .line 4
    invoke-virtual {p1}, Lz5/j7;->o()I

    move-result v5

    iget-object v6, p0, Lz5/tw1;->b:Ljava/lang/Object;

    check-cast v6, Lz5/j7;

    .line 5
    iget-object v6, v6, Lz5/j7;->b:[B

    .line 6
    iget v7, p0, Lz5/tw1;->f:I

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

    iget v4, p0, Lz5/tw1;->f:I

    add-int/2addr v4, v2

    if-ne v4, v3, :cond_c0

    iget-object v2, p0, Lz5/tw1;->b:Ljava/lang/Object;

    check-cast v2, Lz5/j7;

    invoke-virtual {v2, v1}, Lz5/j7;->q(I)V

    iget-object v2, p0, Lz5/tw1;->b:Ljava/lang/Object;

    check-cast v2, Lz5/j7;

    invoke-virtual {v2}, Lz5/j7;->A()I

    move-result v2

    const/16 v4, 0x49

    if-ne v2, v4, :cond_b6

    iget-object v2, p0, Lz5/tw1;->b:Ljava/lang/Object;

    check-cast v2, Lz5/j7;

    invoke-virtual {v2}, Lz5/j7;->A()I

    move-result v2

    const/16 v4, 0x44

    if-ne v2, v4, :cond_b6

    iget-object v2, p0, Lz5/tw1;->b:Ljava/lang/Object;

    check-cast v2, Lz5/j7;

    invoke-virtual {v2}, Lz5/j7;->A()I

    move-result v2

    const/16 v4, 0x33

    if-eq v2, v4, :cond_a2

    goto :goto_b6

    :cond_a2
    iget-object v2, p0, Lz5/tw1;->b:Ljava/lang/Object;

    check-cast v2, Lz5/j7;

    const/4 v4, 0x3

    invoke-virtual {v2, v4}, Lz5/j7;->u(I)V

    iget-object v2, p0, Lz5/tw1;->b:Ljava/lang/Object;

    check-cast v2, Lz5/j7;

    invoke-virtual {v2}, Lz5/j7;->a()I

    move-result v2

    add-int/2addr v2, v3

    iput v2, p0, Lz5/tw1;->e:I

    goto :goto_c0

    :cond_b6
    :goto_b6
    const-string p1, "Id3Reader"

    const-string v0, "Discarding invalid ID3 tag"

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

    iput-boolean v1, p0, Lz5/tw1;->d:Z

    goto :goto_d5

    :cond_c0
    :goto_c0
    iget v2, p0, Lz5/tw1;->e:I

    iget v3, p0, Lz5/tw1;->f:I

    sub-int/2addr v2, v3

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

    move-result v0

    iget-object v2, p0, Lz5/tw1;->c:Ljava/lang/Object;

    check-cast v2, Lz5/ou1;

    .line 7
    invoke-interface {v2, p1, v0, v1}, Lz5/ou1;->e(Lz5/j7;II)V

    .line 8
    iget p1, p0, Lz5/tw1;->f:I

    add-int/2addr p1, v0

    iput p1, p0, Lz5/tw1;->f:I

    :goto_d5
    return-void

    :pswitch_data_d6
    .packed-switch 0x0
        :pswitch_7
    .end packed-switch
.end method

.method public final b(JI)V
    .registers 9

    iget v0, p0, Lz5/tw1;->a:I

    const/4 v1, 0x0

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

    const/4 v4, 0x1

    packed-switch v0, :pswitch_data_32

    goto :goto_20

    :pswitch_d
    and-int/lit8 p3, p3, 0x4

    if-nez p3, :cond_12

    goto :goto_1f

    .line 1
    :cond_12
    iput-boolean v4, p0, Lz5/tw1;->d:Z

    cmp-long p3, p1, v2

    if-eqz p3, :cond_1a

    iput-wide p1, p0, Lz5/tw1;->g:J

    :cond_1a
    iput v1, p0, Lz5/tw1;->f:I

    const/4 p1, 0x2

    iput p1, p0, Lz5/tw1;->e:I

    :goto_1f
    return-void

    :goto_20
    and-int/lit8 p3, p3, 0x4

    if-nez p3, :cond_25

    goto :goto_31

    .line 2
    :cond_25
    iput-boolean v4, p0, Lz5/tw1;->d:Z

    cmp-long p3, p1, v2

    if-eqz p3, :cond_2d

    iput-wide p1, p0, Lz5/tw1;->g:J

    :cond_2d
    iput v1, p0, Lz5/tw1;->e:I

    iput v1, p0, Lz5/tw1;->f:I

    :goto_31
    return-void

    :pswitch_data_32
    .packed-switch 0x0
        :pswitch_d
    .end packed-switch
.end method

.method public final c(Lz5/bu1;Lz5/rx1;)V
    .registers 8

    iget v0, p0, Lz5/tw1;->a:I

    packed-switch v0, :pswitch_data_78

    goto :goto_51

    :pswitch_6
    const/4 v0, 0x0

    .line 1
    :goto_7
    iget-object v1, p0, Lz5/tw1;->c:Ljava/lang/Object;

    check-cast v1, [Lz5/ou1;

    array-length v1, v1

    if-ge v0, v1, :cond_50

    iget-object v1, p0, Lz5/tw1;->b:Ljava/lang/Object;

    check-cast v1, Ljava/util/List;

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

    move-result-object v1

    check-cast v1, Lz5/qx1;

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

    invoke-virtual {p2}, Lz5/rx1;->b()I

    move-result v2

    const/4 v3, 0x3

    invoke-interface {p1, v2, v3}, Lz5/bu1;->c(II)Lz5/ou1;

    move-result-object v2

    new-instance v3, Lz5/w2;

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

    invoke-virtual {p2}, Lz5/rx1;->c()Ljava/lang/String;

    move-result-object v4

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

    const-string v4, "application/dvbsubs"

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

    .line 4
    iget-object v4, v1, Lz5/qx1;->b:[B

    invoke-static {v4}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v4

    .line 5
    iput-object v4, v3, Lz5/w2;->l:Ljava/util/List;

    .line 6
    iget-object v1, v1, Lz5/qx1;->a:Ljava/lang/String;

    .line 7
    iput-object v1, v3, Lz5/w2;->c:Ljava/lang/String;

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

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

    .line 10
    invoke-interface {v2, v1}, Lz5/ou1;->a(Lz5/x2;)V

    iget-object v1, p0, Lz5/tw1;->c:Ljava/lang/Object;

    check-cast v1, [Lz5/ou1;

    aput-object v2, v1, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_7

    :cond_50
    return-void

    .line 11
    :goto_51
    invoke-virtual {p2}, Lz5/rx1;->a()V

    invoke-virtual {p2}, Lz5/rx1;->b()I

    move-result v0

    const/4 v1, 0x5

    invoke-interface {p1, v0, v1}, Lz5/bu1;->c(II)Lz5/ou1;

    move-result-object p1

    iput-object p1, p0, Lz5/tw1;->c:Ljava/lang/Object;

    new-instance v0, Lz5/w2;

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

    invoke-virtual {p2}, Lz5/rx1;->c()Ljava/lang/String;

    move-result-object p2

    .line 12
    iput-object p2, v0, Lz5/w2;->a:Ljava/lang/String;

    const-string p2, "application/id3"

    .line 13
    iput-object p2, v0, Lz5/w2;->j:Ljava/lang/String;

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

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

    .line 16
    invoke-interface {p1, p2}, Lz5/ou1;->a(Lz5/x2;)V

    return-void

    nop

    :pswitch_data_78
    .packed-switch 0x0
        :pswitch_6
    .end packed-switch
.end method

.method public d(Lz5/j7;I)Z
    .registers 5

    invoke-virtual {p1}, Lz5/j7;->l()I

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_8

    return v1

    :cond_8
    invoke-virtual {p1}, Lz5/j7;->A()I

    move-result p1

    if-eq p1, p2, :cond_10

    iput-boolean v1, p0, Lz5/tw1;->d:Z

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

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

    iput p1, p0, Lz5/tw1;->e:I

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

    return p1
.end method

.method public final zza()V
    .registers 5

    iget v0, p0, Lz5/tw1;->a:I

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

    const/4 v3, 0x0

    packed-switch v0, :pswitch_data_16

    goto :goto_11

    .line 1
    :pswitch_c
    iput-boolean v3, p0, Lz5/tw1;->d:Z

    iput-wide v1, p0, Lz5/tw1;->g:J

    return-void

    .line 2
    :goto_11
    iput-boolean v3, p0, Lz5/tw1;->d:Z

    iput-wide v1, p0, Lz5/tw1;->g:J

    return-void

    :pswitch_data_16
    .packed-switch 0x0
        :pswitch_c
    .end packed-switch
.end method

.method public final zze()V
    .registers 12

    iget v0, p0, Lz5/tw1;->a:I

    const/4 v1, 0x0

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

    packed-switch v0, :pswitch_data_58

    goto :goto_30

    .line 1
    :pswitch_c
    iget-boolean v0, p0, Lz5/tw1;->d:Z

    if-eqz v0, :cond_2f

    iget-wide v4, p0, Lz5/tw1;->g:J

    cmp-long v0, v4, v2

    if-eqz v0, :cond_2d

    iget-object v0, p0, Lz5/tw1;->c:Ljava/lang/Object;

    check-cast v0, [Lz5/ou1;

    array-length v2, v0

    move v3, v1

    :goto_1c
    if-ge v3, v2, :cond_2d

    aget-object v4, v0, v3

    iget-wide v5, p0, Lz5/tw1;->g:J

    const/4 v7, 0x1

    iget v8, p0, Lz5/tw1;->f:I

    const/4 v9, 0x0

    const/4 v10, 0x0

    invoke-interface/range {v4 .. v10}, Lz5/ou1;->d(JIIILz5/nu1;)V

    add-int/lit8 v3, v3, 0x1

    goto :goto_1c

    :cond_2d
    iput-boolean v1, p0, Lz5/tw1;->d:Z

    :cond_2f
    return-void

    .line 2
    :goto_30
    iget-object v0, p0, Lz5/tw1;->c:Ljava/lang/Object;

    check-cast v0, Lz5/ou1;

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/d;->p(Ljava/lang/Object;)Ljava/lang/Object;

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

    if-eqz v0, :cond_57

    iget v8, p0, Lz5/tw1;->e:I

    if-eqz v8, :cond_57

    iget v0, p0, Lz5/tw1;->f:I

    if-eq v0, v8, :cond_44

    goto :goto_57

    :cond_44
    iget-wide v5, p0, Lz5/tw1;->g:J

    cmp-long v0, v5, v2

    if-eqz v0, :cond_55

    iget-object v0, p0, Lz5/tw1;->c:Ljava/lang/Object;

    move-object v4, v0

    check-cast v4, Lz5/ou1;

    const/4 v7, 0x1

    const/4 v9, 0x0

    const/4 v10, 0x0

    invoke-interface/range {v4 .. v10}, Lz5/ou1;->d(JIIILz5/nu1;)V

    :cond_55
    iput-boolean v1, p0, Lz5/tw1;->d:Z

    :cond_57
    :goto_57
    return-void

    :pswitch_data_58
    .packed-switch 0x0
        :pswitch_c
    .end packed-switch
.end method
