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

# interfaces
.implements Lha/g;


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

.field public s:Z

.field public final t:Lha/x;


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

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

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

    new-instance p1, Lha/e;

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

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

    return-void
.end method


# virtual methods
.method public B([B)Lha/g;
    .registers 3

    const-string v0, "source"

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

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_14

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

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

    invoke-virtual {p0}, Lha/s;->b()Lha/g;

    return-object p0

    :cond_14
    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 D(Lha/i;)Lha/g;
    .registers 3

    const-string v0, "byteString"

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

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_14

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

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

    invoke-virtual {p0}, Lha/s;->b()Lha/g;

    return-object p0

    :cond_14
    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 E(Lha/e;J)V
    .registers 5

    const-string v0, "source"

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

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_14

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

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

    invoke-virtual {p0}, Lha/s;->b()Lha/g;

    return-void

    :cond_14
    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 O(Ljava/lang/String;)Lha/g;
    .registers 3

    const-string v0, "string"

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

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_14

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

    invoke-virtual {v0, p1}, Lha/e;->j0(Ljava/lang/String;)Lha/e;

    invoke-virtual {p0}, Lha/s;->b()Lha/g;

    return-object p0

    :cond_14
    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 R(J)Lha/g;
    .registers 4

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_f

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

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

    invoke-virtual {p0}, Lha/s;->b()Lha/g;

    return-object p0

    :cond_f
    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()Lha/g;
    .registers 5

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_1a

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

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

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmp-long v2, v0, v2

    if-lez v2, :cond_19

    iget-object v2, p0, Lha/s;->t:Lha/x;

    iget-object v3, p0, Lha/s;->r:Lha/e;

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

    :cond_19
    return-object p0

    :cond_1a
    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 c()Lha/e;
    .registers 2

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

    return-object v0
.end method

.method public close()V
    .registers 7

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

    if-eqz v0, :cond_5

    goto :goto_26

    :cond_5
    const/4 v0, 0x0

    :try_start_6
    iget-object v1, p0, Lha/s;->r:Lha/e;

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

    const-wide/16 v4, 0x0

    cmp-long v4, v2, v4

    if-lez v4, :cond_17

    .line 2
    iget-object v4, p0, Lha/s;->t:Lha/x;

    invoke-interface {v4, v1, v2, v3}, Lha/x;->E(Lha/e;J)V
    :try_end_15
    .catchall {:try_start_6 .. :try_end_15} :catchall_16

    goto :goto_17

    :catchall_16
    move-exception v0

    :cond_17
    :goto_17
    :try_start_17
    iget-object v1, p0, Lha/s;->t:Lha/x;

    invoke-interface {v1}, Lha/x;->close()V
    :try_end_1c
    .catchall {:try_start_17 .. :try_end_1c} :catchall_1d

    goto :goto_21

    :catchall_1d
    move-exception v1

    if-nez v0, :cond_21

    move-object v0, v1

    :cond_21
    :goto_21
    const/4 v1, 0x1

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

    if-nez v0, :cond_27

    :goto_26
    return-void

    :cond_27
    throw v0
.end method

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

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

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

    move-result-object v0

    return-object v0
.end method

.method public f([BII)Lha/g;
    .registers 5

    const-string v0, "source"

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

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_14

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

    invoke-virtual {v0, p1, p2, p3}, Lha/e;->c0([BII)Lha/e;

    invoke-virtual {p0}, Lha/s;->b()Lha/g;

    return-object p0

    :cond_14
    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 flush()V
    .registers 6

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_1b

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

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

    const-wide/16 v3, 0x0

    cmp-long v3, v1, v3

    if-lez v3, :cond_15

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

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

    :cond_15
    iget-object v0, p0, Lha/s;->t:Lha/x;

    invoke-interface {v0}, Lha/x;->flush()V

    return-void

    :cond_1b
    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 isOpen()Z
    .registers 2

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

    xor-int/lit8 v0, v0, 0x1

    return v0
.end method

.method public l(J)Lha/g;
    .registers 4

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_f

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

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

    invoke-virtual {p0}, Lha/s;->b()Lha/g;

    return-object p0

    :cond_f
    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 n(I)Lha/g;
    .registers 3

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_f

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

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

    invoke-virtual {p0}, Lha/s;->b()Lha/g;

    return-object p0

    :cond_f
    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 s(I)Lha/g;
    .registers 3

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_f

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

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

    invoke-virtual {p0}, Lha/s;->b()Lha/g;

    return-object p0

    :cond_f
    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 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/s;->t:Lha/x;

    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 w(I)Lha/g;
    .registers 3

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_f

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

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

    invoke-virtual {p0}, Lha/s;->b()Lha/g;

    return-object p0

    :cond_f
    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 write(Ljava/nio/ByteBuffer;)I
    .registers 3

    const-string v0, "source"

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

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

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_15

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

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

    move-result p1

    invoke-virtual {p0}, Lha/s;->b()Lha/g;

    return p1

    :cond_15
    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
