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

# interfaces
.implements Lha/h;


# instance fields
.field public final r:Lha/e;

.field public s:Z

.field public final t:Lha/z;


# direct methods
.method public constructor <init>(Lha/z;)V
    .registers 2

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

    iput-object p1, p0, Lha/t;->t:Lha/z;

    new-instance p1, Lha/e;

    invoke-direct {p1}, Lha/e;-><init>()V

    iput-object p1, p0, Lha/t;->r:Lha/e;

    return-void
.end method


# virtual methods
.method public F(J)Ljava/lang/String;
    .registers 16

    const-wide/16 v0, 0x0

    cmp-long v0, p1, v0

    if-ltz v0, :cond_8

    const/4 v0, 0x1

    goto :goto_9

    :cond_8
    const/4 v0, 0x0

    :goto_9
    if-eqz v0, :cond_a6

    const-wide v0, 0x7fffffffffffffffL

    cmp-long v2, p1, v0

    const-wide/16 v3, 0x1

    if-nez v2, :cond_18

    move-wide v5, v0

    goto :goto_1a

    :cond_18
    add-long v5, p1, v3

    :goto_1a
    const/16 v2, 0xa

    int-to-byte v2, v2

    const-wide/16 v9, 0x0

    move-object v7, p0

    move v8, v2

    move-wide v11, v5

    invoke-virtual/range {v7 .. v12}, Lha/t;->b(BJJ)J

    move-result-wide v7

    const-wide/16 v9, -0x1

    cmp-long v9, v7, v9

    if-eqz v9, :cond_33

    iget-object p1, p0, Lha/t;->r:Lha/e;

    invoke-static {p1, v7, v8}, Lia/a;->a(Lha/e;J)Ljava/lang/String;

    move-result-object p1

    goto :goto_5f

    :cond_33
    cmp-long v0, v5, v0

    if-gez v0, :cond_60

    invoke-virtual {p0, v5, v6}, Lha/t;->g(J)Z

    move-result v0

    if-eqz v0, :cond_60

    iget-object v0, p0, Lha/t;->r:Lha/e;

    sub-long v7, v5, v3

    invoke-virtual {v0, v7, v8}, Lha/e;->q(J)B

    move-result v0

    const/16 v1, 0xd

    int-to-byte v1, v1

    if-ne v0, v1, :cond_60

    add-long/2addr v3, v5

    invoke-virtual {p0, v3, v4}, Lha/t;->g(J)Z

    move-result v0

    if-eqz v0, :cond_60

    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v0, v5, v6}, Lha/e;->q(J)B

    move-result v0

    if-ne v0, v2, :cond_60

    iget-object p1, p0, Lha/t;->r:Lha/e;

    invoke-static {p1, v5, v6}, Lia/a;->a(Lha/e;J)Ljava/lang/String;

    move-result-object p1

    :goto_5f
    return-object p1

    :cond_60
    new-instance v6, Lha/e;

    invoke-direct {v6}, Lha/e;-><init>()V

    iget-object v0, p0, Lha/t;->r:Lha/e;

    const-wide/16 v2, 0x0

    const/16 v1, 0x20

    .line 1
    iget-wide v4, v0, Lha/e;->s:J

    int-to-long v7, v1

    .line 2
    invoke-static {v7, v8, v4, v5}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v4

    move-object v1, v6

    invoke-virtual/range {v0 .. v5}, Lha/e;->p(Lha/e;JJ)Lha/e;

    new-instance v0, Ljava/io/EOFException;

    const-string v1, "\\n not found: limit="

    invoke-static {v1}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lha/t;->r:Lha/e;

    .line 3
    iget-wide v2, v2, Lha/e;->s:J

    .line 4
    invoke-static {v2, v3, p1, p2}, Ljava/lang/Math;->min(JJ)J

    move-result-wide p1

    invoke-virtual {v1, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string p1, " content="

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Lha/e;->L()Lha/i;

    move-result-object p1

    invoke-virtual {p1}, Lha/i;->f()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "\u2026"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_a6
    const-string v0, "limit < 0: "

    invoke-static {v0, p1, p2}, Lv0/a;->a(Ljava/lang/String;J)Ljava/lang/String;

    move-result-object p1

    new-instance p2, Ljava/lang/IllegalArgumentException;

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

    move-result-object p1

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

    throw p2
.end method

.method public G(Lha/q;)I
    .registers 10

    const-string v0, "options"

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

    iget-boolean v0, p0, Lha/t;->s:Z

    const/4 v1, 0x1

    xor-int/2addr v0, v1

    if-eqz v0, :cond_39

    :cond_b
    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-static {v0, p1, v1}, Lia/a;->b(Lha/e;Lha/q;Z)I

    move-result v0

    const/4 v2, -0x2

    const/4 v3, -0x1

    if-eq v0, v2, :cond_26

    if-eq v0, v3, :cond_37

    .line 1
    iget-object p1, p1, Lha/q;->r:[Lha/i;

    .line 2
    aget-object p1, p1, v0

    .line 3
    invoke-virtual {p1}, Lha/i;->e()I

    move-result p1

    .line 4
    iget-object v1, p0, Lha/t;->r:Lha/e;

    int-to-long v2, p1

    invoke-virtual {v1, v2, v3}, Lha/e;->a(J)V

    goto :goto_38

    :cond_26
    iget-object v0, p0, Lha/t;->t:Lha/z;

    iget-object v2, p0, Lha/t;->r:Lha/e;

    const/16 v4, 0x2000

    int-to-long v4, v4

    invoke-interface {v0, v2, v4, v5}, Lha/z;->x(Lha/e;J)J

    move-result-wide v4

    const-wide/16 v6, -0x1

    cmp-long v0, v4, v6

    if-nez v0, :cond_b

    :cond_37
    move v0, v3

    :goto_38
    return v0

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

    const-string v0, "closed"

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

    move-result-object v0

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

    throw p1
.end method

.method public N(J)V
    .registers 3

    invoke-virtual {p0, p1, p2}, Lha/t;->g(J)Z

    move-result p1

    if-eqz p1, :cond_7

    return-void

    :cond_7
    new-instance p1, Ljava/io/EOFException;

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

    throw p1
.end method

.method public U()J
    .registers 6

    const-wide/16 v0, 0x1

    invoke-virtual {p0, v0, v1}, Lha/t;->N(J)V

    const/4 v0, 0x0

    :goto_6
    add-int/lit8 v1, v0, 0x1

    int-to-long v2, v1

    invoke-virtual {p0, v2, v3}, Lha/t;->g(J)Z

    move-result v2

    if-eqz v2, :cond_62

    iget-object v2, p0, Lha/t;->r:Lha/e;

    int-to-long v3, v0

    invoke-virtual {v2, v3, v4}, Lha/e;->q(J)B

    move-result v2

    const/16 v3, 0x30

    int-to-byte v3, v3

    if-lt v2, v3, :cond_20

    const/16 v3, 0x39

    int-to-byte v3, v3

    if-le v2, v3, :cond_35

    :cond_20
    const/16 v3, 0x61

    int-to-byte v3, v3

    if-lt v2, v3, :cond_2a

    const/16 v3, 0x66

    int-to-byte v3, v3

    if-le v2, v3, :cond_35

    :cond_2a
    const/16 v3, 0x41

    int-to-byte v3, v3

    if-lt v2, v3, :cond_37

    const/16 v3, 0x46

    int-to-byte v3, v3

    if-le v2, v3, :cond_35

    goto :goto_37

    :cond_35
    move v0, v1

    goto :goto_6

    :cond_37
    :goto_37
    if-eqz v0, :cond_3a

    goto :goto_62

    :cond_3a
    new-instance v0, Ljava/lang/NumberFormatException;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v3, "Expected leading [0-9a-fA-F] character but was 0x"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v3, 0x10

    invoke-static {v3}, Lp/a;->c(I)I

    invoke-static {v3}, Lp/a;->c(I)I

    invoke-static {v2, v3}, Ljava/lang/Integer;->toString(II)Ljava/lang/String;

    move-result-object v2

    const-string v3, "java.lang.Integer.toStri\u2026(this, checkRadix(radix))"

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

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

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

    throw v0

    :cond_62
    :goto_62
    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v0}, Lha/e;->U()J

    move-result-wide v0

    return-wide v0
.end method

.method public V(Ljava/nio/charset/Charset;)Ljava/lang/String;
    .registers 5

    iget-object v0, p0, Lha/t;->r:Lha/e;

    iget-object v1, p0, Lha/t;->t:Lha/z;

    invoke-virtual {v0, v1}, Lha/e;->d0(Lha/z;)J

    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 1
    iget-wide v1, v0, Lha/e;->s:J

    invoke-virtual {v0, v1, v2, p1}, Lha/e;->Q(JLjava/nio/charset/Charset;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public X()Ljava/io/InputStream;
    .registers 2

    new-instance v0, Lha/t$a;

    invoke-direct {v0, p0}, Lha/t$a;-><init>(Lha/t;)V

    return-object v0
.end method

.method public a(J)V
    .registers 8

    iget-boolean v0, p0, Lha/t;->s:Z

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_3a

    :goto_6
    const-wide/16 v0, 0x0

    cmp-long v2, p1, v0

    if-lez v2, :cond_39

    iget-object v2, p0, Lha/t;->r:Lha/e;

    .line 1
    iget-wide v3, v2, Lha/e;->s:J

    cmp-long v0, v3, v0

    if-nez v0, :cond_2a

    .line 2
    iget-object v0, p0, Lha/t;->t:Lha/z;

    const/16 v1, 0x2000

    int-to-long v3, v1

    invoke-interface {v0, v2, v3, v4}, Lha/z;->x(Lha/e;J)J

    move-result-wide v0

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-eqz v0, :cond_24

    goto :goto_2a

    :cond_24
    new-instance p1, Ljava/io/EOFException;

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

    throw p1

    :cond_2a
    :goto_2a
    iget-object v0, p0, Lha/t;->r:Lha/e;

    .line 3
    iget-wide v0, v0, Lha/e;->s:J

    .line 4
    invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v0

    iget-object v2, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v2, v0, v1}, Lha/e;->a(J)V

    sub-long/2addr p1, v0

    goto :goto_6

    :cond_39
    return-void

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

    const-string p2, "closed"

    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

.method public b(BJJ)J
    .registers 16

    iget-boolean v0, p0, Lha/t;->s:Z

    const/4 v1, 0x1

    xor-int/2addr v0, v1

    if-eqz v0, :cond_69

    const-wide/16 v2, 0x0

    cmp-long v0, v2, p2

    if-lez v0, :cond_d

    goto :goto_12

    :cond_d
    cmp-long v0, p4, p2

    if-ltz v0, :cond_12

    goto :goto_13

    :cond_12
    :goto_12
    const/4 v1, 0x0

    :goto_13
    if-eqz v1, :cond_46

    :goto_15
    cmp-long v0, p2, p4

    const-wide/16 v8, -0x1

    if-gez v0, :cond_45

    iget-object v2, p0, Lha/t;->r:Lha/e;

    move v3, p1

    move-wide v4, p2

    move-wide v6, p4

    invoke-virtual/range {v2 .. v7}, Lha/e;->I(BJJ)J

    move-result-wide v0

    cmp-long v2, v0, v8

    if-eqz v2, :cond_2a

    move-wide v8, v0

    goto :goto_45

    :cond_2a
    iget-object v0, p0, Lha/t;->r:Lha/e;

    .line 1
    iget-wide v1, v0, Lha/e;->s:J

    cmp-long v3, v1, p4

    if-gez v3, :cond_45

    .line 2
    iget-object v3, p0, Lha/t;->t:Lha/z;

    const/16 v4, 0x2000

    int-to-long v4, v4

    invoke-interface {v3, v0, v4, v5}, Lha/z;->x(Lha/e;J)J

    move-result-wide v3

    cmp-long v0, v3, v8

    if-nez v0, :cond_40

    goto :goto_45

    :cond_40
    invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->max(JJ)J

    move-result-wide p2

    goto :goto_15

    :cond_45
    :goto_45
    return-wide v8

    :cond_46
    new-instance p1, Ljava/lang/StringBuilder;

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

    const-string v0, "fromIndex="

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string p2, " toIndex="

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p4, p5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    new-instance p2, Ljava/lang/IllegalArgumentException;

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

    move-result-object p1

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

    throw p2

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

    const-string p2, "closed"

    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

.method public c()Lha/e;
    .registers 2

    iget-object v0, p0, Lha/t;->r:Lha/e;

    return-object v0
.end method

.method public close()V
    .registers 4

    iget-boolean v0, p0, Lha/t;->s:Z

    if-eqz v0, :cond_5

    goto :goto_14

    :cond_5
    const/4 v0, 0x1

    iput-boolean v0, p0, Lha/t;->s:Z

    iget-object v0, p0, Lha/t;->t:Lha/z;

    invoke-interface {v0}, Lha/z;->close()V

    iget-object v0, p0, Lha/t;->r:Lha/e;

    .line 1
    iget-wide v1, v0, Lha/e;->s:J

    .line 2
    invoke-virtual {v0, v1, v2}, Lha/e;->a(J)V

    :goto_14
    return-void
.end method

.method public d()Lha/a0;
    .registers 2

    iget-object v0, p0, Lha/t;->t:Lha/z;

    invoke-interface {v0}, Lha/z;->d()Lha/a0;

    move-result-object v0

    return-object v0
.end method

.method public e()I
    .registers 4

    const-wide/16 v0, 0x4

    invoke-virtual {p0, v0, v1}, Lha/t;->N(J)V

    iget-object v0, p0, Lha/t;->r:Lha/e;

    .line 1
    invoke-virtual {v0}, Lha/e;->readInt()I

    move-result v0

    const/high16 v1, -0x1000000

    and-int/2addr v1, v0

    ushr-int/lit8 v1, v1, 0x18

    const/high16 v2, 0xff0000

    and-int/2addr v2, v0

    ushr-int/lit8 v2, v2, 0x8

    or-int/2addr v1, v2

    const v2, 0xff00

    and-int/2addr v2, v0

    shl-int/lit8 v2, v2, 0x8

    or-int/2addr v1, v2

    and-int/lit16 v0, v0, 0xff

    shl-int/lit8 v0, v0, 0x18

    or-int/2addr v0, v1

    return v0
.end method

.method public g(J)Z
    .registers 10

    const-wide/16 v0, 0x0

    cmp-long v0, p1, v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-ltz v0, :cond_a

    move v0, v2

    goto :goto_b

    :cond_a
    move v0, v1

    :goto_b
    if-eqz v0, :cond_38

    iget-boolean v0, p0, Lha/t;->s:Z

    xor-int/2addr v0, v2

    if-eqz v0, :cond_2c

    :cond_12
    iget-object v0, p0, Lha/t;->r:Lha/e;

    .line 1
    iget-wide v3, v0, Lha/e;->s:J

    cmp-long v3, v3, p1

    if-gez v3, :cond_2a

    .line 2
    iget-object v3, p0, Lha/t;->t:Lha/z;

    const/16 v4, 0x2000

    int-to-long v4, v4

    invoke-interface {v3, v0, v4, v5}, Lha/z;->x(Lha/e;J)J

    move-result-wide v3

    const-wide/16 v5, -0x1

    cmp-long v0, v3, v5

    if-nez v0, :cond_12

    goto :goto_2b

    :cond_2a
    move v1, v2

    :goto_2b
    return v1

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

    const-string p2, "closed"

    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

    :cond_38
    const-string v0, "byteCount < 0: "

    invoke-static {v0, p1, p2}, Lv0/a;->a(Ljava/lang/String;J)Ljava/lang/String;

    move-result-object p1

    new-instance p2, Ljava/lang/IllegalArgumentException;

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

    move-result-object p1

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

    throw p2
.end method

.method public isOpen()Z
    .registers 2

    iget-boolean v0, p0, Lha/t;->s:Z

    xor-int/lit8 v0, v0, 0x1

    return v0
.end method

.method public m(J)Lha/i;
    .registers 4

    .line 1
    invoke-virtual {p0, p1, p2}, Lha/t;->g(J)Z

    move-result v0

    if-eqz v0, :cond_d

    .line 2
    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v0, p1, p2}, Lha/e;->m(J)Lha/i;

    move-result-object p1

    return-object p1

    .line 3
    :cond_d
    new-instance p1, Ljava/io/EOFException;

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

    throw p1
.end method

.method public read(Ljava/nio/ByteBuffer;)I
    .registers 7

    const-string v0, "sink"

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

    iget-object v0, p0, Lha/t;->r:Lha/e;

    .line 1
    iget-wide v1, v0, Lha/e;->s:J

    const-wide/16 v3, 0x0

    cmp-long v1, v1, v3

    if-nez v1, :cond_20

    .line 2
    iget-object v1, p0, Lha/t;->t:Lha/z;

    const/16 v2, 0x2000

    int-to-long v2, v2

    invoke-interface {v1, v0, v2, v3}, Lha/z;->x(Lha/e;J)J

    move-result-wide v0

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-nez v0, :cond_20

    const/4 p1, -0x1

    return p1

    :cond_20
    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v0, p1}, Lha/e;->read(Ljava/nio/ByteBuffer;)I

    move-result p1

    return p1
.end method

.method public readByte()B
    .registers 3

    const-wide/16 v0, 0x1

    invoke-virtual {p0, v0, v1}, Lha/t;->N(J)V

    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v0}, Lha/e;->readByte()B

    move-result v0

    return v0
.end method

.method public readInt()I
    .registers 3

    const-wide/16 v0, 0x4

    invoke-virtual {p0, v0, v1}, Lha/t;->N(J)V

    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v0}, Lha/e;->readInt()I

    move-result v0

    return v0
.end method

.method public readShort()S
    .registers 3

    const-wide/16 v0, 0x2

    invoke-virtual {p0, v0, v1}, Lha/t;->N(J)V

    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v0}, Lha/e;->readShort()S

    move-result v0

    return v0
.end method

.method public toString()Ljava/lang/String;
    .registers 3

    const-string v0, "buffer("

    invoke-static {v0}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lha/t;->t:Lha/z;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const/16 v1, 0x29

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public u()Ljava/lang/String;
    .registers 3

    const-wide v0, 0x7fffffffffffffffL

    invoke-virtual {p0, v0, v1}, Lha/t;->F(J)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public v()Z
    .registers 7

    iget-boolean v0, p0, Lha/t;->s:Z

    const/4 v1, 0x1

    xor-int/2addr v0, v1

    if-eqz v0, :cond_22

    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v0}, Lha/e;->v()Z

    move-result v0

    if-eqz v0, :cond_20

    iget-object v0, p0, Lha/t;->t:Lha/z;

    iget-object v2, p0, Lha/t;->r:Lha/e;

    const/16 v3, 0x2000

    int-to-long v3, v3

    invoke-interface {v0, v2, v3, v4}, Lha/z;->x(Lha/e;J)J

    move-result-wide v2

    const-wide/16 v4, -0x1

    cmp-long v0, v2, v4

    if-nez v0, :cond_20

    goto :goto_21

    :cond_20
    const/4 v1, 0x0

    :goto_21
    return v1

    :cond_22
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "closed"

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

    move-result-object v1

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

    throw v0
.end method

.method public x(Lha/e;J)J
    .registers 11

    const-string v0, "sink"

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

    const-wide/16 v0, 0x0

    cmp-long v2, p2, v0

    const/4 v3, 0x1

    if-ltz v2, :cond_e

    move v2, v3

    goto :goto_f

    :cond_e
    const/4 v2, 0x0

    :goto_f
    if-eqz v2, :cond_49

    iget-boolean v2, p0, Lha/t;->s:Z

    xor-int/2addr v2, v3

    if-eqz v2, :cond_3d

    iget-object v2, p0, Lha/t;->r:Lha/e;

    .line 1
    iget-wide v3, v2, Lha/e;->s:J

    cmp-long v0, v3, v0

    const-wide/16 v3, -0x1

    if-nez v0, :cond_2e

    .line 2
    iget-object v0, p0, Lha/t;->t:Lha/z;

    const/16 v1, 0x2000

    int-to-long v5, v1

    invoke-interface {v0, v2, v5, v6}, Lha/z;->x(Lha/e;J)J

    move-result-wide v0

    cmp-long v0, v0, v3

    if-nez v0, :cond_2e

    goto :goto_3c

    :cond_2e
    iget-object v0, p0, Lha/t;->r:Lha/e;

    .line 3
    iget-wide v0, v0, Lha/e;->s:J

    .line 4
    invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->min(JJ)J

    move-result-wide p2

    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v0, p1, p2, p3}, Lha/e;->x(Lha/e;J)J

    move-result-wide v3

    :goto_3c
    return-wide v3

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

    const-string p2, "closed"

    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

    :cond_49
    const-string p1, "byteCount < 0: "

    invoke-static {p1, p2, p3}, Lv0/a;->a(Ljava/lang/String;J)Ljava/lang/String;

    move-result-object p1

    new-instance p2, Ljava/lang/IllegalArgumentException;

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

    move-result-object p1

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

    throw p2
.end method

.method public y(J)[B
    .registers 4

    .line 1
    invoke-virtual {p0, p1, p2}, Lha/t;->g(J)Z

    move-result v0

    if-eqz v0, :cond_d

    .line 2
    iget-object v0, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v0, p1, p2}, Lha/e;->y(J)[B

    move-result-object p1

    return-object p1

    .line 3
    :cond_d
    new-instance p1, Ljava/io/EOFException;

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

    throw p1
.end method

.method public z(Lha/x;)J
    .registers 10

    const-wide/16 v0, 0x0

    move-wide v2, v0

    :cond_3
    :goto_3
    iget-object v4, p0, Lha/t;->t:Lha/z;

    iget-object v5, p0, Lha/t;->r:Lha/e;

    const/16 v6, 0x2000

    int-to-long v6, v6

    invoke-interface {v4, v5, v6, v7}, Lha/z;->x(Lha/e;J)J

    move-result-wide v4

    const-wide/16 v6, -0x1

    cmp-long v4, v4, v6

    if-eqz v4, :cond_28

    iget-object v4, p0, Lha/t;->r:Lha/e;

    invoke-virtual {v4}, Lha/e;->b()J

    move-result-wide v4

    cmp-long v6, v4, v0

    if-lez v6, :cond_3

    add-long/2addr v2, v4

    iget-object v6, p0, Lha/t;->r:Lha/e;

    move-object v7, p1

    check-cast v7, Lha/e;

    invoke-virtual {v7, v6, v4, v5}, Lha/e;->E(Lha/e;J)V

    goto :goto_3

    :cond_28
    iget-object v4, p0, Lha/t;->r:Lha/e;

    .line 1
    iget-wide v5, v4, Lha/e;->s:J

    cmp-long v0, v5, v0

    if-lez v0, :cond_36

    add-long/2addr v2, v5

    .line 2
    check-cast p1, Lha/e;

    invoke-virtual {p1, v4, v5, v6}, Lha/e;->E(Lha/e;J)V

    :cond_36
    return-wide v2
.end method
