.class final Lc/x;
.super Ljava/lang/Object;


# instance fields
.field final a:[B

.field b:I

.field c:I

.field d:Z

.field e:Z

.field f:Lc/x;

.field g:Lc/x;


# direct methods
.method constructor <init>()V
    .locals 1

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

    const/16 v0, 0x2000

    new-array v0, v0, [B

    iput-object v0, p0, Lc/x;->a:[B

    const/4 v0, 0x1

    iput-boolean v0, p0, Lc/x;->e:Z

    const/4 v0, 0x0

    iput-boolean v0, p0, Lc/x;->d:Z

    return-void
.end method

.method constructor <init>(Lc/x;)V
    .locals 3

    iget-object v0, p1, Lc/x;->a:[B

    iget v1, p1, Lc/x;->b:I

    iget v2, p1, Lc/x;->c:I

    invoke-direct {p0, v0, v1, v2}, Lc/x;-><init>([BII)V

    const/4 v0, 0x1

    iput-boolean v0, p1, Lc/x;->d:Z

    return-void
.end method

.method constructor <init>([BII)V
    .locals 1

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

    iput-object p1, p0, Lc/x;->a:[B

    iput p2, p0, Lc/x;->b:I

    iput p3, p0, Lc/x;->c:I

    const/4 v0, 0x0

    iput-boolean v0, p0, Lc/x;->e:Z

    const/4 v0, 0x1

    iput-boolean v0, p0, Lc/x;->d:Z

    return-void
.end method


# virtual methods
.method public final a(I)Lc/x;
    .locals 5

    if-lez p1, :cond_0

    iget v0, p0, Lc/x;->c:I

    iget v1, p0, Lc/x;->b:I

    sub-int/2addr v0, v1

    if-le p1, v0, :cond_1

    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

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

    throw v0

    :cond_1
    const/16 v0, 0x400

    if-lt p1, v0, :cond_2

    new-instance v0, Lc/x;

    invoke-direct {v0, p0}, Lc/x;-><init>(Lc/x;)V

    :goto_0
    iget v1, v0, Lc/x;->b:I

    add-int/2addr v1, p1

    iput v1, v0, Lc/x;->c:I

    iget v1, p0, Lc/x;->b:I

    add-int/2addr v1, p1

    iput v1, p0, Lc/x;->b:I

    iget-object v1, p0, Lc/x;->g:Lc/x;

    invoke-virtual {v1, v0}, Lc/x;->a(Lc/x;)Lc/x;

    return-object v0

    :cond_2
    invoke-static {}, Lc/y;->a()Lc/x;

    move-result-object v0

    iget-object v1, p0, Lc/x;->a:[B

    iget v2, p0, Lc/x;->b:I

    iget-object v3, v0, Lc/x;->a:[B

    const/4 v4, 0x0

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

    goto :goto_0
.end method

.method public final a(Lc/x;)Lc/x;
    .locals 1

    iput-object p0, p1, Lc/x;->g:Lc/x;

    iget-object v0, p0, Lc/x;->f:Lc/x;

    iput-object v0, p1, Lc/x;->f:Lc/x;

    iget-object v0, p0, Lc/x;->f:Lc/x;

    iput-object p1, v0, Lc/x;->g:Lc/x;

    iput-object p1, p0, Lc/x;->f:Lc/x;

    return-object p1
.end method

.method public final a()V
    .locals 3

    iget-object v0, p0, Lc/x;->g:Lc/x;

    if-ne v0, p0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

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

    throw v0

    :cond_0
    iget-object v0, p0, Lc/x;->g:Lc/x;

    iget-boolean v0, v0, Lc/x;->e:Z

    if-nez v0, :cond_2

    :cond_1
    :goto_0
    return-void

    :cond_2
    iget v0, p0, Lc/x;->c:I

    iget v1, p0, Lc/x;->b:I

    sub-int v1, v0, v1

    iget-object v0, p0, Lc/x;->g:Lc/x;

    iget v2, v0, Lc/x;->c:I

    iget-object v0, p0, Lc/x;->g:Lc/x;

    iget-boolean v0, v0, Lc/x;->d:Z

    if-eqz v0, :cond_3

    const/4 v0, 0x0

    :goto_1
    rsub-int v2, v2, 0x2000

    add-int/2addr v0, v2

    if-gt v1, v0, :cond_1

    iget-object v0, p0, Lc/x;->g:Lc/x;

    invoke-virtual {p0, v0, v1}, Lc/x;->a(Lc/x;I)V

    invoke-virtual {p0}, Lc/x;->b()Lc/x;

    invoke-static {p0}, Lc/y;->a(Lc/x;)V

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lc/x;->g:Lc/x;

    iget v0, v0, Lc/x;->b:I

    goto :goto_1
.end method

.method public final a(Lc/x;I)V
    .locals 6

    const/16 v2, 0x2000

    const/4 v5, 0x0

    iget-boolean v0, p1, Lc/x;->e:Z

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

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

    throw v0

    :cond_0
    iget v0, p1, Lc/x;->c:I

    add-int/2addr v0, p2

    if-le v0, v2, :cond_3

    iget-boolean v0, p1, Lc/x;->d:Z

    if-eqz v0, :cond_1

    new-instance v0, Ljava/lang/IllegalArgumentException;

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

    throw v0

    :cond_1
    iget v0, p1, Lc/x;->c:I

    add-int/2addr v0, p2

    iget v1, p1, Lc/x;->b:I

    sub-int/2addr v0, v1

    if-le v0, v2, :cond_2

    new-instance v0, Ljava/lang/IllegalArgumentException;

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

    throw v0

    :cond_2
    iget-object v0, p1, Lc/x;->a:[B

    iget v1, p1, Lc/x;->b:I

    iget-object v2, p1, Lc/x;->a:[B

    iget v3, p1, Lc/x;->c:I

    iget v4, p1, Lc/x;->b:I

    sub-int/2addr v3, v4

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

    iget v0, p1, Lc/x;->c:I

    iget v1, p1, Lc/x;->b:I

    sub-int/2addr v0, v1

    iput v0, p1, Lc/x;->c:I

    iput v5, p1, Lc/x;->b:I

    :cond_3
    iget-object v0, p0, Lc/x;->a:[B

    iget v1, p0, Lc/x;->b:I

    iget-object v2, p1, Lc/x;->a:[B

    iget v3, p1, Lc/x;->c:I

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

    iget v0, p1, Lc/x;->c:I

    add-int/2addr v0, p2

    iput v0, p1, Lc/x;->c:I

    iget v0, p0, Lc/x;->b:I

    add-int/2addr v0, p2

    iput v0, p0, Lc/x;->b:I

    return-void
.end method

.method public final b()Lc/x;
    .locals 4

    const/4 v1, 0x0

    iget-object v0, p0, Lc/x;->f:Lc/x;

    if-eq v0, p0, :cond_0

    iget-object v0, p0, Lc/x;->f:Lc/x;

    :goto_0
    iget-object v2, p0, Lc/x;->g:Lc/x;

    iget-object v3, p0, Lc/x;->f:Lc/x;

    iput-object v3, v2, Lc/x;->f:Lc/x;

    iget-object v2, p0, Lc/x;->f:Lc/x;

    iget-object v3, p0, Lc/x;->g:Lc/x;

    iput-object v3, v2, Lc/x;->g:Lc/x;

    iput-object v1, p0, Lc/x;->f:Lc/x;

    iput-object v1, p0, Lc/x;->g:Lc/x;

    return-object v0

    :cond_0
    move-object v0, v1

    goto :goto_0
.end method
