.class public final Lha/u;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public final a:[B

.field public b:I

.field public c:I

.field public d:Z

.field public e:Z

.field public f:Lha/u;

.field public g:Lha/u;


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

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

    const/16 v0, 0x2000

    new-array v0, v0, [B

    iput-object v0, p0, Lha/u;->a:[B

    const/4 v0, 0x1

    iput-boolean v0, p0, Lha/u;->e:Z

    const/4 v0, 0x0

    iput-boolean v0, p0, Lha/u;->d:Z

    return-void
.end method

.method public constructor <init>([BIIZZ)V
    .registers 7

    const-string v0, "data"

    invoke-static {p1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

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

    iput-object p1, p0, Lha/u;->a:[B

    iput p2, p0, Lha/u;->b:I

    iput p3, p0, Lha/u;->c:I

    iput-boolean p4, p0, Lha/u;->d:Z

    iput-boolean p5, p0, Lha/u;->e:Z

    return-void
.end method


# virtual methods
.method public final a()Lha/u;
    .registers 5

    iget-object v0, p0, Lha/u;->f:Lha/u;

    const/4 v1, 0x0

    if-eq v0, p0, :cond_6

    goto :goto_7

    :cond_6
    move-object v0, v1

    :goto_7
    iget-object v2, p0, Lha/u;->g:Lha/u;

    invoke-static {v2}, Lx/e;->d(Ljava/lang/Object;)V

    iget-object v3, p0, Lha/u;->f:Lha/u;

    iput-object v3, v2, Lha/u;->f:Lha/u;

    iget-object v2, p0, Lha/u;->f:Lha/u;

    invoke-static {v2}, Lx/e;->d(Ljava/lang/Object;)V

    iget-object v3, p0, Lha/u;->g:Lha/u;

    iput-object v3, v2, Lha/u;->g:Lha/u;

    iput-object v1, p0, Lha/u;->f:Lha/u;

    iput-object v1, p0, Lha/u;->g:Lha/u;

    return-object v0
.end method

.method public final b(Lha/u;)Lha/u;
    .registers 3

    iput-object p0, p1, Lha/u;->g:Lha/u;

    iget-object v0, p0, Lha/u;->f:Lha/u;

    iput-object v0, p1, Lha/u;->f:Lha/u;

    iget-object v0, p0, Lha/u;->f:Lha/u;

    invoke-static {v0}, Lx/e;->d(Ljava/lang/Object;)V

    iput-object p1, v0, Lha/u;->g:Lha/u;

    iput-object p1, p0, Lha/u;->f:Lha/u;

    return-object p1
.end method

.method public final c()Lha/u;
    .registers 8

    const/4 v0, 0x1

    iput-boolean v0, p0, Lha/u;->d:Z

    new-instance v0, Lha/u;

    iget-object v2, p0, Lha/u;->a:[B

    iget v3, p0, Lha/u;->b:I

    iget v4, p0, Lha/u;->c:I

    const/4 v5, 0x1

    const/4 v6, 0x0

    move-object v1, v0

    invoke-direct/range {v1 .. v6}, Lha/u;-><init>([BIIZZ)V

    return-object v0
.end method

.method public final d(Lha/u;I)V
    .registers 10

    iget-boolean v0, p1, Lha/u;->e:Z

    if-eqz v0, :cond_4c

    iget v5, p1, Lha/u;->c:I

    add-int v0, v5, p2

    const/16 v1, 0x2000

    if-le v0, v1, :cond_34

    iget-boolean v2, p1, Lha/u;->d:Z

    if-nez v2, :cond_2e

    iget v4, p1, Lha/u;->b:I

    sub-int/2addr v0, v4

    if-gt v0, v1, :cond_28

    iget-object v2, p1, Lha/u;->a:[B

    const/4 v3, 0x0

    const/4 v6, 0x2

    move-object v1, v2

    invoke-static/range {v1 .. v6}, Lz8/d;->A([B[BIIII)[B

    iget v0, p1, Lha/u;->c:I

    iget v1, p1, Lha/u;->b:I

    sub-int/2addr v0, v1

    iput v0, p1, Lha/u;->c:I

    const/4 v0, 0x0

    iput v0, p1, Lha/u;->b:I

    goto :goto_34

    :cond_28
    new-instance p1, Ljava/lang/IllegalArgumentException;

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

    throw p1

    :cond_2e
    new-instance p1, Ljava/lang/IllegalArgumentException;

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

    throw p1

    :cond_34
    :goto_34
    iget-object v0, p0, Lha/u;->a:[B

    iget-object v1, p1, Lha/u;->a:[B

    iget v2, p1, Lha/u;->c:I

    iget v3, p0, Lha/u;->b:I

    add-int v4, v3, p2

    invoke-static {v0, v1, v2, v3, v4}, Lz8/d;->z([B[BIII)[B

    iget v0, p1, Lha/u;->c:I

    add-int/2addr v0, p2

    iput v0, p1, Lha/u;->c:I

    iget p1, p0, Lha/u;->b:I

    add-int/2addr p1, p2

    iput p1, p0, Lha/u;->b:I

    return-void

    :cond_4c
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "only owner can write"

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p2

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

    throw p1
.end method
