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


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

.field public final b:Lz5/j7;

.field public c:I

.field public d:I

.field public e:Z


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

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

    new-instance v0, Lz5/jw1;

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

    iput-object v0, p0, Lz5/iw1;->a:Lz5/jw1;

    new-instance v0, Lz5/j7;

    const v1, 0xfe01

    new-array v1, v1, [B

    const/4 v2, 0x0

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

    iput-object v0, p0, Lz5/iw1;->b:Lz5/j7;

    const/4 v0, -0x1

    iput v0, p0, Lz5/iw1;->c:I

    return-void
.end method


# virtual methods
.method public final a(Lz5/au1;)Z
    .registers 9

    iget-boolean v0, p0, Lz5/iw1;->e:Z

    const/4 v1, 0x0

    if-nez v0, :cond_6

    goto :goto_d

    :cond_6
    iput-boolean v1, p0, Lz5/iw1;->e:Z

    iget-object v0, p0, Lz5/iw1;->b:Lz5/j7;

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

    :goto_d
    iget-boolean v0, p0, Lz5/iw1;->e:Z

    const/4 v2, 0x1

    if-nez v0, :cond_a1

    iget v0, p0, Lz5/iw1;->c:I

    if-gez v0, :cond_53

    iget-object v0, p0, Lz5/iw1;->a:Lz5/jw1;

    const-wide/16 v3, -0x1

    invoke-virtual {v0, p1, v3, v4}, Lz5/jw1;->b(Lz5/au1;J)Z

    move-result v0

    if-eqz v0, :cond_52

    iget-object v0, p0, Lz5/iw1;->a:Lz5/jw1;

    invoke-virtual {v0, p1, v2}, Lz5/jw1;->c(Lz5/au1;Z)Z

    move-result v0

    if-nez v0, :cond_29

    goto :goto_52

    :cond_29
    iget-object v0, p0, Lz5/iw1;->a:Lz5/jw1;

    iget v3, v0, Lz5/jw1;->d:I

    iget v0, v0, Lz5/jw1;->a:I

    and-int/2addr v0, v2

    if-ne v0, v2, :cond_42

    iget-object v0, p0, Lz5/iw1;->b:Lz5/j7;

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

    move-result v0

    if-nez v0, :cond_42

    invoke-virtual {p0, v1}, Lz5/iw1;->b(I)I

    move-result v0

    add-int/2addr v3, v0

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

    goto :goto_43

    :cond_42
    move v0, v1

    .line 1
    :goto_43
    :try_start_43
    move-object v4, p1

    check-cast v4, Lz5/vt1;

    invoke-virtual {v4, v3, v1}, Lz5/vt1;->c(IZ)Z
    :try_end_49
    .catch Ljava/io/EOFException; {:try_start_43 .. :try_end_49} :catch_4b

    move v3, v2

    goto :goto_4c

    :catch_4b
    move v3, v1

    :goto_4c
    if-nez v3, :cond_4f

    return v1

    .line 2
    :cond_4f
    iput v0, p0, Lz5/iw1;->c:I

    goto :goto_53

    :cond_52
    :goto_52
    return v1

    :cond_53
    :goto_53
    invoke-virtual {p0, v0}, Lz5/iw1;->b(I)I

    move-result v0

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

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

    add-int/2addr v3, v4

    if-lez v0, :cond_96

    iget-object v4, p0, Lz5/iw1;->b:Lz5/j7;

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

    move-result v5

    add-int/2addr v5, v0

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

    iget-object v4, p0, Lz5/iw1;->b:Lz5/j7;

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

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

    move-result v4

    .line 5
    :try_start_70
    move-object v6, p1

    check-cast v6, Lz5/vt1;

    invoke-virtual {v6, v5, v4, v0, v1}, Lz5/vt1;->j([BIIZ)Z
    :try_end_76
    .catch Ljava/io/EOFException; {:try_start_70 .. :try_end_76} :catch_78

    move v4, v2

    goto :goto_79

    :catch_78
    move v4, v1

    :goto_79
    if-nez v4, :cond_7c

    return v1

    .line 6
    :cond_7c
    iget-object v4, p0, Lz5/iw1;->b:Lz5/j7;

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

    move-result v5

    add-int/2addr v5, v0

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

    iget-object v0, p0, Lz5/iw1;->a:Lz5/jw1;

    iget-object v0, v0, Lz5/jw1;->f:[I

    add-int/lit8 v4, v3, -0x1

    aget v0, v0, v4

    const/16 v4, 0xff

    if-eq v0, v4, :cond_93

    goto :goto_94

    :cond_93
    move v2, v1

    :goto_94
    iput-boolean v2, p0, Lz5/iw1;->e:Z

    :cond_96
    iget-object v0, p0, Lz5/iw1;->a:Lz5/jw1;

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

    if-ne v3, v0, :cond_9d

    const/4 v3, -0x1

    :cond_9d
    iput v3, p0, Lz5/iw1;->c:I

    goto/16 :goto_d

    :cond_a1
    return v2
.end method

.method public final b(I)I
    .registers 7

    const/4 v0, 0x0

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

    :cond_3
    iget v1, p0, Lz5/iw1;->d:I

    add-int v2, p1, v1

    iget-object v3, p0, Lz5/iw1;->a:Lz5/jw1;

    iget v4, v3, Lz5/jw1;->c:I

    if-ge v2, v4, :cond_1a

    iget-object v3, v3, Lz5/jw1;->f:[I

    add-int/lit8 v1, v1, 0x1

    iput v1, p0, Lz5/iw1;->d:I

    aget v1, v3, v2

    add-int/2addr v0, v1

    const/16 v2, 0xff

    if-eq v1, v2, :cond_3

    :cond_1a
    return v0
.end method
