.class public final Lz1/a$a;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lz1/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "a"
.end annotation


# instance fields
.field public a:[I

.field public b:I

.field public c:I

.field public d:I


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

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

    const/16 v0, 0x20

    new-array v0, v0, [I

    iput-object v0, p0, Lz1/a$a;->a:[I

    return-void
.end method


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

    iget-object v0, p0, Lz1/a$a;->a:[I

    array-length v1, v0

    iget v2, p0, Lz1/a$a;->b:I

    sub-int/2addr v1, v2

    if-le v1, p1, :cond_9

    return-void

    :cond_9
    array-length p1, v0

    add-int/2addr p1, v1

    mul-int/lit8 p1, p1, 0x2

    new-array p1, p1, [I

    const/4 v1, 0x0

    invoke-static {v0, v1, p1, v1, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iput-object p1, p0, Lz1/a$a;->a:[I

    return-void
.end method

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

    .line 1
    iget v0, p0, Lz1/a$a;->b:I

    const/4 v1, -0x1

    if-nez v0, :cond_6

    goto :goto_26

    :cond_6
    add-int/2addr v0, v1

    iget v2, p0, Lz1/a$a;->d:I

    :goto_9
    if-eqz v2, :cond_26

    iget-object v3, p0, Lz1/a$a;->a:[I

    aget v3, v3, v0

    add-int/lit8 v0, v0, -0x2

    :goto_11
    if-eqz v3, :cond_23

    iget-object v4, p0, Lz1/a$a;->a:[I

    add-int/lit8 v5, v0, 0x1

    aget v5, v4, v5

    if-ne v5, p1, :cond_1e

    aget v1, v4, v0

    goto :goto_26

    :cond_1e
    add-int/lit8 v0, v0, -0x2

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

    goto :goto_11

    :cond_23
    add-int/lit8 v2, v2, -0x1

    goto :goto_9

    :cond_26
    :goto_26
    return v1
.end method

.method public final c(IZ)I
    .registers 8

    iget v0, p0, Lz1/a$a;->b:I

    const/4 v1, -0x1

    if-eqz v0, :cond_28

    if-gez p1, :cond_8

    goto :goto_28

    :cond_8
    const/4 v0, 0x0

    iget v2, p0, Lz1/a$a;->d:I

    :goto_b
    if-eqz v2, :cond_28

    iget-object v3, p0, Lz1/a$a;->a:[I

    aget v4, v3, v0

    if-lt p1, v4, :cond_1c

    sub-int/2addr p1, v4

    mul-int/lit8 v4, v4, 0x2

    add-int/lit8 v4, v4, 0x2

    add-int/2addr v0, v4

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

    goto :goto_b

    :cond_1c
    mul-int/lit8 p1, p1, 0x2

    add-int/lit8 p1, p1, 0x1

    add-int/2addr p1, v0

    if-nez p2, :cond_25

    add-int/lit8 p1, p1, 0x1

    :cond_25
    aget p1, v3, p1

    return p1

    :cond_28
    :goto_28
    return v1
.end method

.method public final d()V
    .registers 6

    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lz1/a$a;->a(I)V

    iget v1, p0, Lz1/a$a;->b:I

    iget-object v2, p0, Lz1/a$a;->a:[I

    const/4 v3, 0x0

    aput v3, v2, v1

    add-int/lit8 v4, v1, 0x1

    aput v3, v2, v4

    add-int/2addr v1, v0

    iput v1, p0, Lz1/a$a;->b:I

    iget v0, p0, Lz1/a$a;->d:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lz1/a$a;->d:I

    return-void
.end method
