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


# instance fields
.field public final a:I

.field public final b:I

.field public final c:I

.field public final d:I

.field public final e:I

.field public final f:I

.field public final g:I

.field public final h:I

.field public final i:I

.field public final j:J

.field public final k:Lz5/n50;

.field public final l:Lz5/u4;


# direct methods
.method public constructor <init>(IIIIIIIJLz5/n50;Lz5/u4;)V
    .registers 12

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

    iput p1, p0, Lz5/fu1;->a:I

    iput p2, p0, Lz5/fu1;->b:I

    iput p3, p0, Lz5/fu1;->c:I

    iput p4, p0, Lz5/fu1;->d:I

    iput p5, p0, Lz5/fu1;->e:I

    invoke-static {p5}, Lz5/fu1;->f(I)I

    move-result p1

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

    iput p6, p0, Lz5/fu1;->g:I

    iput p7, p0, Lz5/fu1;->h:I

    invoke-static {p7}, Lz5/fu1;->g(I)I

    move-result p1

    iput p1, p0, Lz5/fu1;->i:I

    iput-wide p8, p0, Lz5/fu1;->j:J

    iput-object p10, p0, Lz5/fu1;->k:Lz5/n50;

    iput-object p11, p0, Lz5/fu1;->l:Lz5/u4;

    return-void
.end method

.method public constructor <init>([BI)V
    .registers 8

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

    new-instance v0, Lz5/i7;

    array-length v1, p1

    const/4 v2, 0x0

    invoke-direct {v0, p1, v1, v2}, Lz5/i7;-><init>([BII)V

    mul-int/lit8 p2, p2, 0x8

    invoke-virtual {v0, p2}, Lz5/i7;->m(I)V

    const/16 p1, 0x10

    invoke-virtual {v0, p1}, Lz5/i7;->x(I)I

    move-result p2

    iput p2, p0, Lz5/fu1;->a:I

    invoke-virtual {v0, p1}, Lz5/i7;->x(I)I

    move-result p1

    iput p1, p0, Lz5/fu1;->b:I

    const/16 p1, 0x18

    invoke-virtual {v0, p1}, Lz5/i7;->x(I)I

    move-result p2

    iput p2, p0, Lz5/fu1;->c:I

    invoke-virtual {v0, p1}, Lz5/i7;->x(I)I

    move-result p1

    iput p1, p0, Lz5/fu1;->d:I

    const/16 p1, 0x14

    invoke-virtual {v0, p1}, Lz5/i7;->x(I)I

    move-result p1

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

    invoke-static {p1}, Lz5/fu1;->f(I)I

    move-result p1

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

    const/4 p1, 0x3

    invoke-virtual {v0, p1}, Lz5/i7;->x(I)I

    move-result p1

    add-int/lit8 p1, p1, 0x1

    iput p1, p0, Lz5/fu1;->g:I

    const/4 p1, 0x5

    invoke-virtual {v0, p1}, Lz5/i7;->x(I)I

    move-result p1

    add-int/lit8 p1, p1, 0x1

    iput p1, p0, Lz5/fu1;->h:I

    invoke-static {p1}, Lz5/fu1;->g(I)I

    move-result p1

    iput p1, p0, Lz5/fu1;->i:I

    const/4 p1, 0x4

    invoke-virtual {v0, p1}, Lz5/i7;->x(I)I

    move-result p1

    const/16 p2, 0x20

    invoke-virtual {v0, p2}, Lz5/i7;->x(I)I

    move-result v0

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

    int-to-long v1, p1

    const-wide v3, 0xffffffffL

    and-long/2addr v1, v3

    shl-long p1, v1, p2

    int-to-long v0, v0

    and-long/2addr v0, v3

    or-long/2addr p1, v0

    iput-wide p1, p0, Lz5/fu1;->j:J

    const/4 p1, 0x0

    iput-object p1, p0, Lz5/fu1;->k:Lz5/n50;

    iput-object p1, p0, Lz5/fu1;->l:Lz5/u4;

    return-void
.end method

.method public static f(I)I
    .registers 1

    sparse-switch p0, :sswitch_data_20

    const/4 p0, -0x1

    return p0

    :sswitch_5
    const/4 p0, 0x3

    return p0

    :sswitch_7
    const/4 p0, 0x2

    return p0

    :sswitch_9
    const/16 p0, 0xb

    return p0

    :sswitch_c
    const/4 p0, 0x1

    return p0

    :sswitch_e
    const/16 p0, 0xa

    return p0

    :sswitch_11
    const/16 p0, 0x9

    return p0

    :sswitch_14
    const/16 p0, 0x8

    return p0

    :sswitch_17
    const/4 p0, 0x7

    return p0

    :sswitch_19
    const/4 p0, 0x6

    return p0

    :sswitch_1b
    const/4 p0, 0x5

    return p0

    :sswitch_1d
    const/4 p0, 0x4

    return p0

    nop

    :sswitch_data_20
    .sparse-switch
        0x1f40 -> :sswitch_1d
        0x3e80 -> :sswitch_1b
        0x5622 -> :sswitch_19
        0x5dc0 -> :sswitch_17
        0x7d00 -> :sswitch_14
        0xac44 -> :sswitch_11
        0xbb80 -> :sswitch_e
        0x15888 -> :sswitch_c
        0x17700 -> :sswitch_9
        0x2b110 -> :sswitch_7
        0x2ee00 -> :sswitch_5
    .end sparse-switch
.end method

.method public static g(I)I
    .registers 2

    const/16 v0, 0x8

    if-eq p0, v0, :cond_1e

    const/16 v0, 0xc

    if-eq p0, v0, :cond_1c

    const/16 v0, 0x10

    if-eq p0, v0, :cond_1a

    const/16 v0, 0x14

    if-eq p0, v0, :cond_18

    const/16 v0, 0x18

    if-eq p0, v0, :cond_16

    const/4 p0, -0x1

    return p0

    :cond_16
    const/4 p0, 0x6

    return p0

    :cond_18
    const/4 p0, 0x5

    return p0

    :cond_1a
    const/4 p0, 0x4

    return p0

    :cond_1c
    const/4 p0, 0x2

    return p0

    :cond_1e
    const/4 p0, 0x1

    return p0
.end method

.method public static h(Ljava/util/List;Ljava/util/List;)Lz5/u4;
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/List<",
            "Lz5/a5;",
            ">;)",
            "Lz5/u4;"
        }
    .end annotation

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

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_f

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

    move-result v0

    if-nez v0, :cond_e

    goto :goto_f

    :cond_e
    return-object v1

    :cond_f
    :goto_f
    new-instance v0, Ljava/util/ArrayList;

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

    const/4 v2, 0x0

    move v3, v2

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

    move-result v4

    if-ge v3, v4, :cond_54

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

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    const-string v5, "="

    invoke-static {v4, v5}, Lz5/r7;->s(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v5

    array-length v6, v5

    const/4 v7, 0x2

    if-eq v6, v7, :cond_44

    const-string v5, "Failed to parse Vorbis comment: "

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

    move-result v6

    if-eqz v6, :cond_39

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

    move-result-object v4

    goto :goto_3e

    :cond_39
    new-instance v4, Ljava/lang/String;

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

    :goto_3e
    const-string v5, "FlacStreamMetadata"

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

    goto :goto_51

    :cond_44
    new-instance v4, Lz5/c5;

    aget-object v6, v5, v2

    const/4 v7, 0x1

    aget-object v5, v5, v7

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

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

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

    goto :goto_16

    :cond_54
    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

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

    move-result p0

    if-eqz p0, :cond_5e

    return-object v1

    :cond_5e
    new-instance p0, Lz5/u4;

    invoke-direct {p0, v0}, Lz5/u4;-><init>(Ljava/util/List;)V

    return-object p0
.end method


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

    iget-wide v0, p0, Lz5/fu1;->j:J

    const-wide/16 v2, 0x0

    cmp-long v2, v0, v2

    if-nez v2, :cond_e

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

    return-wide v0

    :cond_e
    const-wide/32 v2, 0xf4240

    mul-long/2addr v0, v2

    iget v2, p0, Lz5/fu1;->e:I

    int-to-long v2, v2

    div-long/2addr v0, v2

    return-wide v0
.end method

.method public final b(J)J
    .registers 11

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

    int-to-long v0, v0

    mul-long/2addr p1, v0

    const-wide/32 v0, 0xf4240

    div-long v2, p1, v0

    iget-wide p1, p0, Lz5/fu1;->j:J

    const-wide/16 v0, -0x1

    add-long v6, p1, v0

    const-wide/16 v4, 0x0

    invoke-static/range {v2 .. v7}, Lz5/r7;->w(JJJ)J

    move-result-wide p1

    return-wide p1
.end method

.method public final c([BLz5/u4;)Lz5/x2;
    .registers 6

    const/4 v0, 0x4

    const/16 v1, -0x80

    aput-byte v1, p1, v0

    iget v0, p0, Lz5/fu1;->d:I

    if-gtz v0, :cond_a

    const/4 v0, -0x1

    :cond_a
    invoke-virtual {p0, p2}, Lz5/fu1;->d(Lz5/u4;)Lz5/u4;

    move-result-object p2

    new-instance v1, Lz5/w2;

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

    const-string v2, "audio/flac"

    .line 1
    iput-object v2, v1, Lz5/w2;->j:Ljava/lang/String;

    .line 2
    iput v0, v1, Lz5/w2;->k:I

    .line 3
    iget v0, p0, Lz5/fu1;->g:I

    .line 4
    iput v0, v1, Lz5/w2;->w:I

    .line 5
    iget v0, p0, Lz5/fu1;->e:I

    .line 6
    iput v0, v1, Lz5/w2;->x:I

    .line 7
    invoke-static {p1}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object p1

    .line 8
    iput-object p1, v1, Lz5/w2;->l:Ljava/util/List;

    .line 9
    iput-object p2, v1, Lz5/w2;->h:Lz5/u4;

    .line 10
    new-instance p1, Lz5/x2;

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

    return-object p1
.end method

.method public final d(Lz5/u4;)Lz5/u4;
    .registers 3

    iget-object v0, p0, Lz5/fu1;->l:Lz5/u4;

    if-nez v0, :cond_5

    return-object p1

    :cond_5
    if-nez p1, :cond_8

    goto :goto_e

    .line 1
    :cond_8
    iget-object p1, p1, Lz5/u4;->r:[Lz5/t4;

    invoke-virtual {v0, p1}, Lz5/u4;->a([Lz5/t4;)Lz5/u4;

    move-result-object v0

    :goto_e
    return-object v0
.end method

.method public final e(Lz5/n50;)Lz5/fu1;
    .registers 15

    new-instance v12, Lz5/fu1;

    iget v1, p0, Lz5/fu1;->a:I

    iget v2, p0, Lz5/fu1;->b:I

    iget v3, p0, Lz5/fu1;->c:I

    iget v4, p0, Lz5/fu1;->d:I

    iget v5, p0, Lz5/fu1;->e:I

    iget v6, p0, Lz5/fu1;->g:I

    iget v7, p0, Lz5/fu1;->h:I

    iget-wide v8, p0, Lz5/fu1;->j:J

    iget-object v11, p0, Lz5/fu1;->l:Lz5/u4;

    move-object v0, v12

    move-object v10, p1

    invoke-direct/range {v0 .. v11}, Lz5/fu1;-><init>(IIIIIIIJLz5/n50;Lz5/u4;)V

    return-object v12
.end method
