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


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

.field public final b:Lz5/cw1;

.field public final c:Lz5/j7;

.field public d:Lz5/dw1;

.field public e:Lz5/rv1;

.field public f:I

.field public g:I

.field public h:I

.field public i:I

.field public final j:Lz5/j7;

.field public final k:Lz5/j7;

.field public l:Z


# direct methods
.method public constructor <init>(Lz5/ou1;Lz5/dw1;Lz5/rv1;)V
    .registers 7

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

    iput-object p1, p0, Lz5/tv1;->a:Lz5/ou1;

    iput-object p2, p0, Lz5/tv1;->d:Lz5/dw1;

    iput-object p3, p0, Lz5/tv1;->e:Lz5/rv1;

    new-instance v0, Lz5/cw1;

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

    iput-object v0, p0, Lz5/tv1;->b:Lz5/cw1;

    new-instance v0, Lz5/j7;

    const/4 v1, 0x0

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

    iput-object v0, p0, Lz5/tv1;->c:Lz5/j7;

    new-instance v0, Lz5/j7;

    const/4 v2, 0x1

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

    iput-object v0, p0, Lz5/tv1;->j:Lz5/j7;

    new-instance v0, Lz5/j7;

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

    iput-object v0, p0, Lz5/tv1;->k:Lz5/j7;

    .line 1
    iput-object p2, p0, Lz5/tv1;->d:Lz5/dw1;

    iput-object p3, p0, Lz5/tv1;->e:Lz5/rv1;

    iget-object p2, p2, Lz5/dw1;->a:Lz5/aw1;

    iget-object p2, p2, Lz5/aw1;->f:Lz5/x2;

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

    invoke-virtual {p0}, Lz5/tv1;->a()V

    return-void
.end method


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

    iget-object v0, p0, Lz5/tv1;->b:Lz5/cw1;

    const/4 v1, 0x0

    iput v1, v0, Lz5/cw1;->d:I

    const-wide/16 v2, 0x0

    iput-wide v2, v0, Lz5/cw1;->q:J

    iput-boolean v1, v0, Lz5/cw1;->r:Z

    iput-boolean v1, v0, Lz5/cw1;->l:Z

    iput-boolean v1, v0, Lz5/cw1;->p:Z

    const/4 v2, 0x0

    iput-object v2, v0, Lz5/cw1;->n:Lz5/bw1;

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

    iput v1, p0, Lz5/tv1;->h:I

    iput v1, p0, Lz5/tv1;->g:I

    iput v1, p0, Lz5/tv1;->i:I

    iput-boolean v1, p0, Lz5/tv1;->l:Z

    return-void
.end method

.method public final b()J
    .registers 4

    iget-boolean v0, p0, Lz5/tv1;->l:Z

    if-nez v0, :cond_d

    iget-object v0, p0, Lz5/tv1;->d:Lz5/dw1;

    iget-object v0, v0, Lz5/dw1;->c:[J

    iget v1, p0, Lz5/tv1;->f:I

    aget-wide v1, v0, v1

    goto :goto_15

    :cond_d
    iget-object v0, p0, Lz5/tv1;->b:Lz5/cw1;

    iget-object v0, v0, Lz5/cw1;->f:[J

    iget v1, p0, Lz5/tv1;->h:I

    aget-wide v1, v0, v1

    :goto_15
    return-wide v1
.end method

.method public final c()Z
    .registers 6

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

    const/4 v1, 0x1

    add-int/2addr v0, v1

    iput v0, p0, Lz5/tv1;->f:I

    iget-boolean v0, p0, Lz5/tv1;->l:Z

    const/4 v2, 0x0

    if-nez v0, :cond_c

    return v2

    :cond_c
    iget v0, p0, Lz5/tv1;->g:I

    add-int/2addr v0, v1

    iput v0, p0, Lz5/tv1;->g:I

    iget-object v3, p0, Lz5/tv1;->b:Lz5/cw1;

    iget-object v3, v3, Lz5/cw1;->g:[I

    iget v4, p0, Lz5/tv1;->h:I

    aget v3, v3, v4

    if-ne v0, v3, :cond_21

    add-int/2addr v4, v1

    iput v4, p0, Lz5/tv1;->h:I

    iput v2, p0, Lz5/tv1;->g:I

    return v2

    :cond_21
    return v1
.end method

.method public final d(II)I
    .registers 12

    invoke-virtual {p0}, Lz5/tv1;->e()Lz5/bw1;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_8

    return v1

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

    if-eqz v2, :cond_11

    iget-object v0, p0, Lz5/tv1;->b:Lz5/cw1;

    iget-object v0, v0, Lz5/cw1;->o:Lz5/j7;

    goto :goto_1e

    :cond_11
    iget-object v0, v0, Lz5/bw1;->e:[B

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

    iget-object v2, p0, Lz5/tv1;->k:Lz5/j7;

    array-length v3, v0

    invoke-virtual {v2, v0, v3}, Lz5/j7;->j([BI)V

    iget-object v0, p0, Lz5/tv1;->k:Lz5/j7;

    move v2, v3

    :goto_1e
    iget-object v3, p0, Lz5/tv1;->b:Lz5/cw1;

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

    .line 1
    iget-boolean v5, v3, Lz5/cw1;->l:Z

    const/4 v6, 0x1

    if-eqz v5, :cond_2f

    iget-object v3, v3, Lz5/cw1;->m:[Z

    aget-boolean v3, v3, v4

    if-eqz v3, :cond_2f

    move v3, v6

    goto :goto_30

    :cond_2f
    move v3, v1

    :goto_30
    if-nez v3, :cond_37

    if-eqz p2, :cond_35

    goto :goto_37

    :cond_35
    move v4, v1

    goto :goto_38

    :cond_37
    :goto_37
    move v4, v6

    .line 2
    :goto_38
    iget-object v5, p0, Lz5/tv1;->j:Lz5/j7;

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

    if-eq v6, v4, :cond_40

    move v8, v1

    goto :goto_42

    :cond_40
    const/16 v8, 0x80

    :goto_42
    or-int/2addr v8, v2

    int-to-byte v8, v8

    .line 4
    aput-byte v8, v7, v1

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

    iget-object v5, p0, Lz5/tv1;->a:Lz5/ou1;

    iget-object v7, p0, Lz5/tv1;->j:Lz5/j7;

    invoke-interface {v5, v7, v6, v6}, Lz5/ou1;->e(Lz5/j7;II)V

    iget-object v5, p0, Lz5/tv1;->a:Lz5/ou1;

    invoke-interface {v5, v0, v2, v6}, Lz5/ou1;->e(Lz5/j7;II)V

    if-nez v4, :cond_59

    add-int/2addr v2, v6

    return v2

    :cond_59
    const/4 v0, 0x6

    const/4 v4, 0x3

    const/4 v5, 0x2

    const/16 v7, 0x8

    if-nez v3, :cond_97

    iget-object v3, p0, Lz5/tv1;->c:Lz5/j7;

    invoke-virtual {v3, v7}, Lz5/j7;->i(I)V

    iget-object v3, p0, Lz5/tv1;->c:Lz5/j7;

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

    .line 6
    aput-byte v1, v8, v1

    aput-byte v6, v8, v6

    aput-byte v1, v8, v5

    int-to-byte p2, p2

    aput-byte p2, v8, v4

    const/4 p2, 0x4

    shr-int/lit8 v1, p1, 0x18

    and-int/lit16 v1, v1, 0xff

    int-to-byte v1, v1

    aput-byte v1, v8, p2

    const/4 p2, 0x5

    shr-int/lit8 v1, p1, 0x10

    and-int/lit16 v1, v1, 0xff

    int-to-byte v1, v1

    aput-byte v1, v8, p2

    shr-int/lit8 p2, p1, 0x8

    and-int/lit16 p2, p2, 0xff

    int-to-byte p2, p2

    aput-byte p2, v8, v0

    const/4 p2, 0x7

    and-int/lit16 p1, p1, 0xff

    int-to-byte p1, p1

    aput-byte p1, v8, p2

    iget-object p1, p0, Lz5/tv1;->a:Lz5/ou1;

    invoke-interface {p1, v3, v7, v6}, Lz5/ou1;->e(Lz5/j7;II)V

    add-int/lit8 v2, v2, 0x9

    return v2

    :cond_97
    iget-object p1, p0, Lz5/tv1;->b:Lz5/cw1;

    iget-object p1, p1, Lz5/cw1;->o:Lz5/j7;

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

    move-result v3

    const/4 v8, -0x2

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

    mul-int/2addr v3, v0

    add-int/2addr v3, v5

    if-eqz p2, :cond_cc

    iget-object v0, p0, Lz5/tv1;->c:Lz5/j7;

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

    iget-object v0, p0, Lz5/tv1;->c:Lz5/j7;

    .line 7
    iget-object v0, v0, Lz5/j7;->b:[B

    .line 8
    invoke-virtual {p1, v0, v1, v3}, Lz5/j7;->z([BII)V

    aget-byte p1, v0, v5

    and-int/lit16 p1, p1, 0xff

    shl-int/2addr p1, v7

    aget-byte v1, v0, v4

    and-int/lit16 v1, v1, 0xff

    or-int/2addr p1, v1

    add-int/2addr p1, p2

    shr-int/lit8 p2, p1, 0x8

    and-int/lit16 p2, p2, 0xff

    int-to-byte p2, p2

    aput-byte p2, v0, v5

    and-int/lit16 p1, p1, 0xff

    int-to-byte p1, p1

    aput-byte p1, v0, v4

    iget-object p1, p0, Lz5/tv1;->c:Lz5/j7;

    :cond_cc
    iget-object p2, p0, Lz5/tv1;->a:Lz5/ou1;

    invoke-interface {p2, p1, v3, v6}, Lz5/ou1;->e(Lz5/j7;II)V

    add-int/2addr v2, v6

    add-int/2addr v2, v3

    return v2
.end method

.method public final e()Lz5/bw1;
    .registers 5

    iget-boolean v0, p0, Lz5/tv1;->l:Z

    const/4 v1, 0x0

    if-nez v0, :cond_6

    return-object v1

    :cond_6
    iget-object v0, p0, Lz5/tv1;->b:Lz5/cw1;

    iget-object v2, v0, Lz5/cw1;->a:Lz5/rv1;

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

    iget v2, v2, Lz5/rv1;->a:I

    iget-object v0, v0, Lz5/cw1;->n:Lz5/bw1;

    if-eqz v0, :cond_13

    goto :goto_1b

    :cond_13
    iget-object v0, p0, Lz5/tv1;->d:Lz5/dw1;

    iget-object v0, v0, Lz5/dw1;->a:Lz5/aw1;

    invoke-virtual {v0, v2}, Lz5/aw1;->a(I)Lz5/bw1;

    move-result-object v0

    :goto_1b
    if-eqz v0, :cond_22

    iget-boolean v2, v0, Lz5/bw1;->a:Z

    if-eqz v2, :cond_22

    return-object v0

    :cond_22
    return-object v1
.end method
