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

# interfaces
.implements Lz5/sx1;


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

.field public final b:Lz5/j7;

.field public c:I

.field public d:I

.field public e:Z

.field public f:Z


# direct methods
.method public constructor <init>(Lz5/lx1;)V
    .registers 4

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

    iput-object p1, p0, Lz5/mx1;->a:Lz5/lx1;

    new-instance p1, Lz5/j7;

    const/16 v0, 0x20

    const/4 v1, 0x0

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

    iput-object p1, p0, Lz5/mx1;->b:Lz5/j7;

    return-void
.end method


# virtual methods
.method public final a(Lz5/p7;Lz5/bu1;Lz5/rx1;)V
    .registers 5

    iget-object v0, p0, Lz5/mx1;->a:Lz5/lx1;

    invoke-interface {v0, p1, p2, p3}, Lz5/lx1;->a(Lz5/p7;Lz5/bu1;Lz5/rx1;)V

    const/4 p1, 0x1

    iput-boolean p1, p0, Lz5/mx1;->f:Z

    return-void
.end method

.method public final b(Lz5/j7;I)V
    .registers 13

    const/4 v0, 0x1

    and-int/2addr p2, v0

    const/4 v1, -0x1

    if-eqz p2, :cond_f

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

    move-result v2

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

    move-result v3

    add-int/2addr v3, v2

    goto :goto_10

    :cond_f
    move v3, v1

    :goto_10
    iget-boolean v2, p0, Lz5/mx1;->f:Z

    const/4 v4, 0x0

    if-nez v2, :cond_16

    goto :goto_20

    :cond_16
    if-nez p2, :cond_19

    return-void

    :cond_19
    iput-boolean v4, p0, Lz5/mx1;->f:Z

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

    :goto_1e
    iput v4, p0, Lz5/mx1;->d:I

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

    move-result p2

    if-lez p2, :cond_102

    iget p2, p0, Lz5/mx1;->d:I

    const/16 v2, 0xff

    const/4 v3, 0x3

    if-ge p2, v3, :cond_a3

    if-nez p2, :cond_41

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

    move-result p2

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

    move-result v5

    add-int/2addr v5, v1

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

    if-eq p2, v2, :cond_3e

    goto :goto_41

    :cond_3e
    iput-boolean v0, p0, Lz5/mx1;->f:Z

    return-void

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

    move-result p2

    iget v2, p0, Lz5/mx1;->d:I

    rsub-int/lit8 v2, v2, 0x3

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

    move-result p2

    iget-object v2, p0, Lz5/mx1;->b:Lz5/j7;

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

    .line 2
    iget v5, p0, Lz5/mx1;->d:I

    invoke-virtual {p1, v2, v5, p2}, Lz5/j7;->z([BII)V

    iget v2, p0, Lz5/mx1;->d:I

    add-int/2addr v2, p2

    iput v2, p0, Lz5/mx1;->d:I

    if-ne v2, v3, :cond_20

    iget-object p2, p0, Lz5/mx1;->b:Lz5/j7;

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

    iget-object p2, p0, Lz5/mx1;->b:Lz5/j7;

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

    iget-object p2, p0, Lz5/mx1;->b:Lz5/j7;

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

    iget-object p2, p0, Lz5/mx1;->b:Lz5/j7;

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

    move-result p2

    iget-object v2, p0, Lz5/mx1;->b:Lz5/j7;

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

    move-result v2

    and-int/lit16 v5, p2, 0x80

    if-eqz v5, :cond_7e

    move v5, v0

    goto :goto_7f

    :cond_7e
    move v5, v4

    :goto_7f
    iput-boolean v5, p0, Lz5/mx1;->e:Z

    and-int/lit8 p2, p2, 0xf

    shl-int/lit8 p2, p2, 0x8

    or-int/2addr p2, v2

    add-int/2addr p2, v3

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

    iget-object v2, p0, Lz5/mx1;->b:Lz5/j7;

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

    array-length v3, v2

    if-ge v3, p2, :cond_20

    array-length v2, v2

    add-int/2addr v2, v2

    .line 4
    invoke-static {p2, v2}, Ljava/lang/Math;->max(II)I

    move-result p2

    const/16 v2, 0x1002

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

    move-result p2

    iget-object v2, p0, Lz5/mx1;->b:Lz5/j7;

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

    goto/16 :goto_20

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

    move-result p2

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

    iget v5, p0, Lz5/mx1;->d:I

    sub-int/2addr v3, v5

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

    move-result p2

    iget-object v3, p0, Lz5/mx1;->b:Lz5/j7;

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

    .line 6
    iget v5, p0, Lz5/mx1;->d:I

    invoke-virtual {p1, v3, v5, p2}, Lz5/j7;->z([BII)V

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

    add-int/2addr v3, p2

    iput v3, p0, Lz5/mx1;->d:I

    iget p2, p0, Lz5/mx1;->c:I

    if-ne v3, p2, :cond_20

    iget-boolean v3, p0, Lz5/mx1;->e:Z

    if-eqz v3, :cond_ef

    iget-object v3, p0, Lz5/mx1;->b:Lz5/j7;

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

    .line 8
    sget v5, Lz5/r7;->a:I

    move v6, v1

    move v5, v4

    :goto_ce
    if-ge v5, p2, :cond_e0

    shl-int/lit8 v7, v6, 0x8

    .line 9
    sget-object v8, Lz5/r7;->j:[I

    ushr-int/lit8 v6, v6, 0x18

    aget-byte v9, v3, v5

    and-int/2addr v9, v2

    xor-int/2addr v6, v9

    aget v6, v8, v6

    xor-int/2addr v6, v7

    add-int/lit8 v5, v5, 0x1

    goto :goto_ce

    :cond_e0
    if-eqz v6, :cond_e5

    .line 10
    iput-boolean v0, p0, Lz5/mx1;->f:Z

    return-void

    :cond_e5
    iget-object p2, p0, Lz5/mx1;->b:Lz5/j7;

    iget v2, p0, Lz5/mx1;->c:I

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

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

    goto :goto_f4

    :cond_ef
    iget-object v2, p0, Lz5/mx1;->b:Lz5/j7;

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

    :goto_f4
    iget-object p2, p0, Lz5/mx1;->b:Lz5/j7;

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

    iget-object p2, p0, Lz5/mx1;->a:Lz5/lx1;

    iget-object v2, p0, Lz5/mx1;->b:Lz5/j7;

    invoke-interface {p2, v2}, Lz5/lx1;->b(Lz5/j7;)V

    goto/16 :goto_1e

    :cond_102
    return-void
.end method

.method public final zzb()V
    .registers 2

    const/4 v0, 0x1

    iput-boolean v0, p0, Lz5/mx1;->f:Z

    return-void
.end method
