apkfuckery/com.discord/smali_classes2/p0/p.smali
2020-09-08 08:16:32 +00:00

735 lines
14 KiB
Smali

.class public final Lp0/p;
.super Ljava/lang/Object;
.source "RealBufferedSink.kt"
# interfaces
.implements Lokio/BufferedSink;
# instance fields
.field public final d:Lp0/e;
.field public e:Z
.field public final f:Lp0/u;
# direct methods
.method public constructor <init>(Lp0/u;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lp0/p;->f:Lp0/u;
new-instance p1, Lp0/e;
invoke-direct {p1}, Lp0/e;-><init>()V
iput-object p1, p0, Lp0/p;->d:Lp0/e;
return-void
.end method
# virtual methods
.method public Q0(J)Lokio/BufferedSink;
.locals 1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0, p1, p2}, Lp0/e;->K(J)Lp0/e;
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
return-object p0
:cond_0
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 a()Lokio/BufferedSink;
.locals 5
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0}, Lp0/e;->c()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-lez v4, :cond_0
iget-object v2, p0, Lp0/p;->f:Lp0/u;
iget-object v3, p0, Lp0/p;->d:Lp0/e;
invoke-interface {v2, v3, v0, v1}, Lp0/u;->write(Lp0/e;J)V
:cond_0
return-object p0
:cond_1
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 a0(Ljava/lang/String;)Lokio/BufferedSink;
.locals 1
if-eqz p1, :cond_1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0, p1}, Lp0/e;->O(Ljava/lang/String;)Lp0/e;
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
move-result-object p1
return-object p1
:cond_0
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
:cond_1
const-string p1, "string"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public close()V
.locals 6
iget-boolean v0, p0, Lp0/p;->e:Z
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x0
:try_start_0
iget-object v1, p0, Lp0/p;->d:Lp0/e;
iget-wide v1, v1, Lp0/e;->e:J
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-lez v5, :cond_1
iget-object v1, p0, Lp0/p;->f:Lp0/u;
iget-object v2, p0, Lp0/p;->d:Lp0/e;
iget-object v3, p0, Lp0/p;->d:Lp0/e;
iget-wide v3, v3, Lp0/e;->e:J
invoke-interface {v1, v2, v3, v4}, Lp0/u;->write(Lp0/e;J)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
:cond_1
:goto_0
:try_start_1
iget-object v1, p0, Lp0/p;->f:Lp0/u;
invoke-interface {v1}, Lp0/u;->close()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
goto :goto_1
:catchall_1
move-exception v1
if-nez v0, :cond_2
move-object v0, v1
:cond_2
:goto_1
const/4 v1, 0x1
iput-boolean v1, p0, Lp0/p;->e:Z
if-nez v0, :cond_3
return-void
:cond_3
throw v0
.end method
.method public flush()V
.locals 6
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
iget-object v0, p0, Lp0/p;->d:Lp0/e;
iget-wide v1, v0, Lp0/e;->e:J
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-lez v5, :cond_0
iget-object v3, p0, Lp0/p;->f:Lp0/u;
invoke-interface {v3, v0, v1, v2}, Lp0/u;->write(Lp0/e;J)V
:cond_0
iget-object v0, p0, Lp0/p;->f:Lp0/u;
invoke-interface {v0}, Lp0/u;->flush()V
return-void
:cond_1
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 h()Lp0/e;
.locals 1
iget-object v0, p0, Lp0/p;->d:Lp0/e;
return-object v0
.end method
.method public i0(Lp0/w;)J
.locals 7
const-wide/16 v0, 0x0
:goto_0
iget-object v2, p0, Lp0/p;->d:Lp0/e;
const/16 v3, 0x2000
int-to-long v3, v3
invoke-interface {p1, v2, v3, v4}, Lp0/w;->B0(Lp0/e;J)J
move-result-wide v2
const-wide/16 v4, -0x1
cmp-long v6, v2, v4
if-nez v6, :cond_0
return-wide v0
:cond_0
add-long/2addr v0, v2
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
goto :goto_0
.end method
.method public isOpen()Z
.locals 1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
return v0
.end method
.method public j0(J)Lokio/BufferedSink;
.locals 1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0, p1, p2}, Lp0/e;->L(J)Lp0/e;
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
move-result-object p1
return-object p1
:cond_0
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 timeout()Lp0/x;
.locals 1
iget-object v0, p0, Lp0/p;->f:Lp0/u;
invoke-interface {v0}, Lp0/u;->timeout()Lp0/x;
move-result-object v0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "buffer("
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lp0/p;->f:Lp0/u;
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 write(Ljava/nio/ByteBuffer;)I
.locals 1
if-eqz p1, :cond_1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0, p1}, Lp0/e;->write(Ljava/nio/ByteBuffer;)I
move-result p1
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
return p1
:cond_0
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
:cond_1
const-string p1, "source"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public write([B)Lokio/BufferedSink;
.locals 1
if-eqz p1, :cond_1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0, p1}, Lp0/e;->E([B)Lp0/e;
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
return-object p0
:cond_0
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
:cond_1
const-string p1, "source"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public write([BII)Lokio/BufferedSink;
.locals 1
if-eqz p1, :cond_1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0, p1, p2, p3}, Lp0/e;->G([BII)Lp0/e;
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
return-object p0
:cond_0
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_1
const-string p1, "source"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public write(Lp0/e;J)V
.locals 1
if-eqz p1, :cond_1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0, p1, p2, p3}, Lp0/e;->write(Lp0/e;J)V
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
return-void
:cond_0
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_1
const-string p1, "source"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public writeByte(I)Lokio/BufferedSink;
.locals 1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0, p1}, Lp0/e;->I(I)Lp0/e;
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
return-object p0
:cond_0
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 writeInt(I)Lokio/BufferedSink;
.locals 1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0, p1}, Lp0/e;->M(I)Lp0/e;
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
move-result-object p1
return-object p1
:cond_0
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 writeShort(I)Lokio/BufferedSink;
.locals 1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0, p1}, Lp0/e;->N(I)Lp0/e;
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
return-object p0
:cond_0
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 y()Lokio/BufferedSink;
.locals 6
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
iget-object v0, p0, Lp0/p;->d:Lp0/e;
iget-wide v1, v0, Lp0/e;->e:J
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-lez v5, :cond_0
iget-object v3, p0, Lp0/p;->f:Lp0/u;
invoke-interface {v3, v0, v1, v2}, Lp0/u;->write(Lp0/e;J)V
:cond_0
return-object p0
:cond_1
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 y0(Lokio/ByteString;)Lokio/BufferedSink;
.locals 1
if-eqz p1, :cond_1
iget-boolean v0, p0, Lp0/p;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/p;->d:Lp0/e;
invoke-virtual {v0, p1}, Lp0/e;->D(Lokio/ByteString;)Lp0/e;
invoke-virtual {p0}, Lp0/p;->a()Lokio/BufferedSink;
return-object p0
:cond_0
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
:cond_1
const-string p1, "byteString"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method