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

# interfaces
.implements Lz5/ux1;


# static fields
.field public static final m:[I

.field public static final n:[I


# instance fields
.field public final a:Lz5/bu1;

.field public final b:Lz5/ou1;

.field public final c:Lz5/d41;

.field public final d:I

.field public final e:[B

.field public final f:Lz5/j7;

.field public final g:I

.field public final h:Lz5/x2;

.field public i:I

.field public j:J

.field public k:I

.field public l:J


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

    const/16 v0, 0x10

    new-array v0, v0, [I

    fill-array-data v0, :array_14

    sput-object v0, Lz5/tx1;->m:[I

    const/16 v0, 0x59

    new-array v0, v0, [I

    fill-array-data v0, :array_38

    sput-object v0, Lz5/tx1;->n:[I

    return-void

    nop

    :array_14
    .array-data 4
        -0x1
        -0x1
        -0x1
        -0x1
        0x2
        0x4
        0x6
        0x8
        -0x1
        -0x1
        -0x1
        -0x1
        0x2
        0x4
        0x6
        0x8
    .end array-data

    :array_38
    .array-data 4
        0x7
        0x8
        0x9
        0xa
        0xb
        0xc
        0xd
        0xe
        0x10
        0x11
        0x13
        0x15
        0x17
        0x19
        0x1c
        0x1f
        0x22
        0x25
        0x29
        0x2d
        0x32
        0x37
        0x3c
        0x42
        0x49
        0x50
        0x58
        0x61
        0x6b
        0x76
        0x82
        0x8f
        0x9d
        0xad
        0xbe
        0xd1
        0xe6
        0xfd
        0x117
        0x133
        0x151
        0x173
        0x198
        0x1c1
        0x1ee
        0x220
        0x256
        0x292
        0x2d4
        0x31c
        0x36c
        0x3c3
        0x424
        0x48e
        0x502
        0x583
        0x610
        0x6ab
        0x756
        0x812
        0x8e0
        0x9c3
        0xabd
        0xbd0
        0xcff
        0xe4c
        0xfba
        0x114c
        0x1307
        0x14ee
        0x1706
        0x1954
        0x1bdc
        0x1ea5
        0x21b6
        0x2515
        0x28ca
        0x2cdf
        0x315b
        0x364b
        0x3bb9
        0x41b2
        0x4844
        0x4f7e
        0x5771
        0x602f
        0x69ce
        0x7462
        0x7fff
    .end array-data
.end method

.method public constructor <init>(Lz5/bu1;Lz5/ou1;Lz5/d41;)V
    .registers 10

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

    iput-object p1, p0, Lz5/tx1;->a:Lz5/bu1;

    iput-object p2, p0, Lz5/tx1;->b:Lz5/ou1;

    iput-object p3, p0, Lz5/tx1;->c:Lz5/d41;

    iget p1, p3, Lz5/d41;->d:I

    div-int/lit8 p1, p1, 0xa

    const/4 p2, 0x1

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

    move-result p1

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

    new-instance v0, Lz5/j7;

    iget-object v1, p3, Lz5/d41;->a:Ljava/lang/Object;

    check-cast v1, [B

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-direct {v0, v1, v2, v3}, Lz5/j7;-><init>([BILp/b;)V

    invoke-virtual {v0}, Lz5/j7;->C()I

    invoke-virtual {v0}, Lz5/j7;->C()I

    move-result v0

    iput v0, p0, Lz5/tx1;->d:I

    iget v1, p3, Lz5/d41;->c:I

    iget v4, p3, Lz5/d41;->e:I

    mul-int/lit8 v5, v1, 0x4

    sub-int/2addr v4, v5

    mul-int/lit8 v4, v4, 0x8

    iget v5, p3, Lz5/d41;->f:I

    mul-int/2addr v5, v1

    div-int/2addr v4, v5

    add-int/2addr v4, p2

    if-ne v0, v4, :cond_78

    invoke-static {p1, v0}, Lz5/r7;->u(II)I

    move-result p2

    iget v3, p3, Lz5/d41;->e:I

    mul-int/2addr v3, p2

    new-array v3, v3, [B

    iput-object v3, p0, Lz5/tx1;->e:[B

    new-instance v3, Lz5/j7;

    add-int v4, v0, v0

    mul-int/2addr v4, v1

    mul-int/2addr v4, p2

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

    iput-object v3, p0, Lz5/tx1;->f:Lz5/j7;

    iget p2, p3, Lz5/d41;->d:I

    iget v2, p3, Lz5/d41;->e:I

    mul-int/2addr v2, p2

    mul-int/lit8 v2, v2, 0x8

    div-int/2addr v2, v0

    new-instance v0, Lz5/w2;

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

    const-string v3, "audio/raw"

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

    .line 2
    iput v2, v0, Lz5/w2;->e:I

    .line 3
    iput v2, v0, Lz5/w2;->f:I

    add-int/2addr p1, p1

    mul-int/2addr p1, v1

    .line 4
    iput p1, v0, Lz5/w2;->k:I

    .line 5
    iget p1, p3, Lz5/d41;->c:I

    .line 6
    iput p1, v0, Lz5/w2;->w:I

    .line 7
    iput p2, v0, Lz5/w2;->x:I

    const/4 p1, 0x2

    .line 8
    iput p1, v0, Lz5/w2;->y:I

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

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

    .line 11
    iput-object p1, p0, Lz5/tx1;->h:Lz5/x2;

    return-void

    :cond_78
    const/16 p1, 0x38

    const-string p2, "Expected frames per block: "

    const-string p3, "; got: "

    invoke-static {p1, p2, v4, p3, v0}, Li/a;->a(ILjava/lang/String;ILjava/lang/String;I)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1, v3}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object p1

    throw p1
.end method


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

    const/4 v0, 0x0

    iput v0, p0, Lz5/tx1;->i:I

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

    iput v0, p0, Lz5/tx1;->k:I

    const-wide/16 p1, 0x0

    iput-wide p1, p0, Lz5/tx1;->l:J

    return-void
.end method

.method public final b(IJ)V
    .registers 13

    iget-object v0, p0, Lz5/tx1;->a:Lz5/bu1;

    new-instance v8, Lz5/xx1;

    iget-object v2, p0, Lz5/tx1;->c:Lz5/d41;

    iget v3, p0, Lz5/tx1;->d:I

    int-to-long v4, p1

    move-object v1, v8

    move-wide v6, p2

    invoke-direct/range {v1 .. v7}, Lz5/xx1;-><init>(Lz5/d41;IJJ)V

    invoke-interface {v0, v8}, Lz5/bu1;->i(Lz5/lu1;)V

    iget-object p1, p0, Lz5/tx1;->b:Lz5/ou1;

    iget-object p2, p0, Lz5/tx1;->h:Lz5/x2;

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

    return-void
.end method

.method public final c(Lz5/au1;J)Z
    .registers 23

    move-object/from16 v0, p0

    iget v1, v0, Lz5/tx1;->g:I

    iget v2, v0, Lz5/tx1;->k:I

    invoke-virtual {v0, v2}, Lz5/tx1;->e(I)I

    move-result v2

    sub-int/2addr v1, v2

    iget v2, v0, Lz5/tx1;->d:I

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

    move-result v1

    iget-object v2, v0, Lz5/tx1;->c:Lz5/d41;

    iget v2, v2, Lz5/d41;->e:I

    mul-int/2addr v1, v2

    const-wide/16 v2, 0x0

    cmp-long v2, p2, v2

    move-wide/from16 v5, p2

    move-object v8, v0

    if-nez v2, :cond_23

    move v2, v1

    move-object/from16 v1, p1

    goto :goto_40

    :cond_23
    move v2, v1

    const/4 v7, 0x0

    move-object/from16 v1, p1

    :goto_27
    if-nez v7, :cond_48

    iget v9, v8, Lz5/tx1;->i:I

    if-ge v9, v2, :cond_48

    sub-int v9, v2, v9

    int-to-long v9, v9

    invoke-static {v9, v10, v5, v6}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v9

    iget-object v11, v8, Lz5/tx1;->e:[B

    iget v12, v8, Lz5/tx1;->i:I

    long-to-int v9, v9

    invoke-interface {v1, v11, v12, v9}, Lz5/au1;->a([BII)I

    move-result v9

    const/4 v10, -0x1

    if-ne v9, v10, :cond_42

    :goto_40
    const/4 v7, 0x1

    goto :goto_27

    :cond_42
    iget v10, v8, Lz5/tx1;->i:I

    add-int/2addr v10, v9

    iput v10, v8, Lz5/tx1;->i:I

    goto :goto_27

    :cond_48
    iget v1, v8, Lz5/tx1;->i:I

    iget-object v2, v8, Lz5/tx1;->c:Lz5/d41;

    iget v2, v2, Lz5/d41;->e:I

    div-int/2addr v1, v2

    if-lez v1, :cond_14e

    iget-object v2, v8, Lz5/tx1;->e:[B

    iget-object v5, v8, Lz5/tx1;->f:Lz5/j7;

    const/4 v6, 0x0

    :goto_56
    if-ge v6, v1, :cond_116

    const/4 v9, 0x0

    :goto_59
    iget-object v10, v8, Lz5/tx1;->c:Lz5/d41;

    iget v11, v10, Lz5/d41;->c:I

    if-ge v9, v11, :cond_10c

    .line 1
    iget-object v12, v5, Lz5/j7;->b:[B

    .line 2
    iget v10, v10, Lz5/d41;->e:I

    mul-int v13, v6, v10

    mul-int/lit8 v14, v9, 0x4

    add-int/2addr v14, v13

    mul-int/lit8 v13, v11, 0x4

    add-int/2addr v13, v14

    div-int/2addr v10, v11

    add-int/lit8 v10, v10, -0x4

    add-int/lit8 v15, v14, 0x1

    aget-byte v15, v2, v15

    and-int/lit16 v15, v15, 0xff

    shl-int/lit8 v15, v15, 0x8

    aget-byte v3, v2, v14

    and-int/lit16 v3, v3, 0xff

    or-int/2addr v3, v15

    int-to-short v3, v3

    add-int/lit8 v14, v14, 0x2

    aget-byte v14, v2, v14

    and-int/lit16 v14, v14, 0xff

    const/16 v15, 0x58

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

    move-result v14

    sget-object v16, Lz5/tx1;->n:[I

    aget v16, v16, v14

    iget v15, v8, Lz5/tx1;->d:I

    mul-int/2addr v15, v6

    mul-int/2addr v15, v11

    add-int/2addr v15, v9

    add-int/2addr v15, v15

    and-int/lit16 v4, v3, 0xff

    int-to-byte v4, v4

    aput-byte v4, v12, v15

    add-int/lit8 v4, v15, 0x1

    shr-int/lit8 v0, v3, 0x8

    int-to-byte v0, v0

    aput-byte v0, v12, v4

    const/4 v0, 0x0

    :goto_9f
    add-int v4, v10, v10

    if-ge v0, v4, :cond_102

    div-int/lit8 v4, v0, 0x8

    mul-int/2addr v4, v11

    mul-int/lit8 v4, v4, 0x4

    add-int/2addr v4, v13

    div-int/lit8 v18, v0, 0x2

    rem-int/lit8 v18, v18, 0x4

    add-int v18, v18, v4

    aget-byte v4, v2, v18

    and-int/lit16 v4, v4, 0xff

    rem-int/lit8 v18, v0, 0x2

    if-nez v18, :cond_ba

    and-int/lit8 v4, v4, 0xf

    goto :goto_bc

    :cond_ba
    shr-int/lit8 v4, v4, 0x4

    :goto_bc
    and-int/lit8 v18, v4, 0x7

    add-int v18, v18, v18

    const/16 v17, 0x1

    add-int/lit8 v18, v18, 0x1

    mul-int v18, v18, v16

    move-object/from16 v16, v2

    shr-int/lit8 v2, v18, 0x3

    and-int/lit8 v18, v4, 0x8

    if-eqz v18, :cond_cf

    neg-int v2, v2

    :cond_cf
    add-int/2addr v3, v2

    const/16 v2, -0x8000

    move/from16 p2, v10

    const/16 v10, 0x7fff

    invoke-static {v3, v2, v10}, Lz5/r7;->v(III)I

    move-result v3

    add-int v2, v11, v11

    add-int/2addr v15, v2

    and-int/lit16 v2, v3, 0xff

    int-to-byte v2, v2

    aput-byte v2, v12, v15

    add-int/lit8 v2, v15, 0x1

    shr-int/lit8 v10, v3, 0x8

    int-to-byte v10, v10

    aput-byte v10, v12, v2

    sget-object v2, Lz5/tx1;->m:[I

    aget v2, v2, v4

    add-int/2addr v14, v2

    const/16 v2, 0x58

    const/4 v4, 0x0

    invoke-static {v14, v4, v2}, Lz5/r7;->v(III)I

    move-result v14

    sget-object v4, Lz5/tx1;->n:[I

    aget v4, v4, v14

    add-int/lit8 v0, v0, 0x1

    move/from16 v10, p2

    move-object/from16 v2, v16

    move/from16 v16, v4

    goto :goto_9f

    :cond_102
    move-object/from16 v16, v2

    const/16 v17, 0x1

    add-int/lit8 v9, v9, 0x1

    move-object/from16 v0, p0

    goto/16 :goto_59

    :cond_10c
    move-object/from16 v16, v2

    const/16 v17, 0x1

    add-int/lit8 v6, v6, 0x1

    move-object/from16 v0, p0

    goto/16 :goto_56

    :cond_116
    iget v0, v8, Lz5/tx1;->d:I

    mul-int/2addr v0, v1

    add-int/2addr v0, v0

    .line 3
    iget-object v2, v8, Lz5/tx1;->c:Lz5/d41;

    iget v2, v2, Lz5/d41;->c:I

    mul-int/2addr v0, v2

    const/4 v2, 0x0

    .line 4
    invoke-virtual {v5, v2}, Lz5/j7;->q(I)V

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

    iget v0, v8, Lz5/tx1;->i:I

    iget-object v2, v8, Lz5/tx1;->c:Lz5/d41;

    iget v2, v2, Lz5/d41;->e:I

    mul-int/2addr v1, v2

    sub-int/2addr v0, v1

    iput v0, v8, Lz5/tx1;->i:I

    iget-object v0, v8, Lz5/tx1;->f:Lz5/j7;

    invoke-virtual {v0}, Lz5/j7;->m()I

    move-result v0

    iget-object v1, v8, Lz5/tx1;->b:Lz5/ou1;

    iget-object v2, v8, Lz5/tx1;->f:Lz5/j7;

    const/4 v3, 0x0

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

    .line 6
    iget v1, v8, Lz5/tx1;->k:I

    add-int/2addr v1, v0

    iput v1, v8, Lz5/tx1;->k:I

    invoke-virtual {v8, v1}, Lz5/tx1;->e(I)I

    move-result v0

    iget v1, v8, Lz5/tx1;->g:I

    if-lt v0, v1, :cond_14e

    invoke-virtual {v8, v1}, Lz5/tx1;->d(I)V

    :cond_14e
    if-eqz v7, :cond_15b

    iget v0, v8, Lz5/tx1;->k:I

    invoke-virtual {v8, v0}, Lz5/tx1;->e(I)I

    move-result v0

    if-lez v0, :cond_15b

    invoke-virtual {v8, v0}, Lz5/tx1;->d(I)V

    :cond_15b
    return v7
.end method

.method public final d(I)V
    .registers 15

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

    iget-wide v2, p0, Lz5/tx1;->l:J

    iget-object v4, p0, Lz5/tx1;->c:Lz5/d41;

    iget v4, v4, Lz5/d41;->d:I

    int-to-long v6, v4

    const-wide/32 v4, 0xf4240

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

    move-result-wide v2

    add-int v4, p1, p1

    .line 1
    iget-object v5, p0, Lz5/tx1;->c:Lz5/d41;

    iget v5, v5, Lz5/d41;->c:I

    mul-int/2addr v4, v5

    .line 2
    iget v5, p0, Lz5/tx1;->k:I

    iget-object v6, p0, Lz5/tx1;->b:Lz5/ou1;

    add-long v7, v0, v2

    sub-int v11, v5, v4

    const/4 v9, 0x1

    const/4 v12, 0x0

    move v10, v4

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

    iget-wide v0, p0, Lz5/tx1;->l:J

    int-to-long v2, p1

    add-long/2addr v0, v2

    iput-wide v0, p0, Lz5/tx1;->l:J

    iget p1, p0, Lz5/tx1;->k:I

    sub-int/2addr p1, v4

    iput p1, p0, Lz5/tx1;->k:I

    return-void
.end method

.method public final e(I)I
    .registers 3

    iget-object v0, p0, Lz5/tx1;->c:Lz5/d41;

    iget v0, v0, Lz5/d41;->c:I

    add-int/2addr v0, v0

    div-int/2addr p1, v0

    return p1
.end method
