apkfuckery/com.discord/smali_classes2/p0/r.smali

1522 lines
26 KiB
Smali
Raw Normal View History

2020-09-02 04:07:20 +00:00
.class public final Lp0/r;
.super Ljava/lang/Object;
2020-09-09 19:21:20 +00:00
.source "RealBufferedSource.kt"
# interfaces
.implements Lp0/g;
2020-09-02 04:07:20 +00:00
# instance fields
2020-09-09 19:21:20 +00:00
.field public final d:Lp0/e;
.field public e:Z
.field public final f:Lp0/x;
# direct methods
.method public constructor <init>(Lp0/x;)V
.locals 1
const-string v0, "source"
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lp0/r;->f:Lp0/x;
new-instance p1, Lp0/e;
invoke-direct {p1}, Lp0/e;-><init>()V
iput-object p1, p0, Lp0/r;->d:Lp0/e;
return-void
.end method
# virtual methods
.method public G0(Lp0/e;J)J
.locals 8
const-string v0, "sink"
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-ltz v2, :cond_0
const/4 v2, 0x1
goto :goto_0
:cond_0
const/4 v2, 0x0
:goto_0
if-eqz v2, :cond_3
iget-boolean v2, p0, Lp0/r;->e:Z
xor-int/lit8 v2, v2, 0x1
if-eqz v2, :cond_2
iget-object v2, p0, Lp0/r;->d:Lp0/e;
iget-wide v3, v2, Lp0/e;->e:J
const-wide/16 v5, -0x1
cmp-long v7, v3, v0
if-nez v7, :cond_1
iget-object v0, p0, Lp0/r;->f:Lp0/x;
const/16 v1, 0x2000
int-to-long v3, v1
invoke-interface {v0, v2, v3, v4}, Lp0/x;->G0(Lp0/e;J)J
move-result-wide v0
cmp-long v2, v0, v5
if-nez v2, :cond_1
goto :goto_1
:cond_1
iget-object v0, p0, Lp0/r;->d:Lp0/e;
iget-wide v0, v0, Lp0/e;->e:J
invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide p2
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0, p1, p2, p3}, Lp0/e;->G0(Lp0/e;J)J
move-result-wide v5
:goto_1
return-wide v5
:cond_2
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_3
const-string p1, "byteCount < 0: "
invoke-static {p1, p2, p3}, Lf/e/b/a/a;->n(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 J0(Lp0/v;)J
.locals 9
const-string v0, "sink"
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
move-wide v2, v0
:cond_0
:goto_0
iget-object v4, p0, Lp0/r;->f:Lp0/x;
iget-object v5, p0, Lp0/r;->d:Lp0/e;
const/16 v6, 0x2000
int-to-long v6, v6
invoke-interface {v4, v5, v6, v7}, Lp0/x;->G0(Lp0/e;J)J
move-result-wide v4
const-wide/16 v6, -0x1
cmp-long v8, v4, v6
if-eqz v8, :cond_1
iget-object v4, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v4}, Lp0/e;->c()J
move-result-wide v4
cmp-long v6, v4, v0
if-lez v6, :cond_0
add-long/2addr v2, v4
iget-object v6, p0, Lp0/r;->d:Lp0/e;
invoke-interface {p1, v6, v4, v5}, Lp0/v;->write(Lp0/e;J)V
goto :goto_0
:cond_1
iget-object v4, p0, Lp0/r;->d:Lp0/e;
iget-wide v5, v4, Lp0/e;->e:J
cmp-long v7, v5, v0
if-lez v7, :cond_2
add-long/2addr v2, v5
invoke-interface {p1, v4, v5, v6}, Lp0/v;->write(Lp0/e;J)V
:cond_2
return-wide v2
.end method
.method public L()Z
.locals 6
iget-boolean v0, p0, Lp0/r;->e:Z
const/4 v1, 0x1
xor-int/2addr v0, v1
if-eqz v0, :cond_1
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0}, Lp0/e;->L()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/r;->f:Lp0/x;
iget-object v2, p0, Lp0/r;->d:Lp0/e;
const/16 v3, 0x2000
int-to-long v3, v3
invoke-interface {v0, v2, v3, v4}, Lp0/x;->G0(Lp0/e;J)J
move-result-wide v2
const-wide/16 v4, -0x1
cmp-long v0, v2, v4
if-nez v0, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
return v1
: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 R(Lp0/e;J)V
.locals 1
const-string v0, "sink"
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_0
invoke-virtual {p0, p2, p3}, Lp0/r;->n(J)Z
move-result v0
:try_end_0
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0, p1, p2, p3}, Lp0/e;->R(Lp0/e;J)V
return-void
:cond_0
:try_start_1
new-instance p2, Ljava/io/EOFException;
invoke-direct {p2}, Ljava/io/EOFException;-><init>()V
throw p2
:try_end_1
.catch Ljava/io/EOFException; {:try_start_1 .. :try_end_1} :catch_0
:catch_0
move-exception p2
iget-object p3, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {p1, p3}, Lp0/e;->n0(Lp0/x;)J
throw p2
.end method
.method public S0(J)V
.locals 0
invoke-virtual {p0, p1, p2}, Lp0/r;->n(J)Z
move-result p1
if-eqz p1, :cond_0
return-void
:cond_0
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
throw p1
.end method
.method public T(Lokio/ByteString;)J
.locals 10
const-string v0, "targetBytes"
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-boolean v0, p0, Lp0/r;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_2
const-wide/16 v0, 0x0
:goto_0
iget-object v2, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v2, p1, v0, v1}, Lp0/e;->h(Lokio/ByteString;J)J
move-result-wide v2
const-wide/16 v4, -0x1
cmp-long v6, v2, v4
if-eqz v6, :cond_0
goto :goto_1
:cond_0
iget-object v2, p0, Lp0/r;->d:Lp0/e;
iget-wide v6, v2, Lp0/e;->e:J
iget-object v3, p0, Lp0/r;->f:Lp0/x;
const/16 v8, 0x2000
int-to-long v8, v8
invoke-interface {v3, v2, v8, v9}, Lp0/x;->G0(Lp0/e;J)J
move-result-wide v2
cmp-long v8, v2, v4
if-nez v8, :cond_1
move-wide v2, v4
:goto_1
return-wide v2
:cond_1
invoke-static {v0, v1, v6, v7}, Ljava/lang/Math;->max(JJ)J
move-result-wide v0
goto :goto_0
:cond_2
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 V(J)Ljava/lang/String;
.locals 13
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-ltz v2, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_4
const-wide/16 v0, 0x1
const-wide v2, 0x7fffffffffffffffL
cmp-long v4, p1, v2
if-nez v4, :cond_1
move-wide v4, v2
goto :goto_1
:cond_1
add-long v4, p1, v0
:goto_1
const/16 v6, 0xa
int-to-byte v12, v6
const-wide/16 v8, 0x0
move-object v6, p0
move v7, v12
move-wide v10, v4
invoke-virtual/range {v6 .. v11}, Lp0/r;->a(BJJ)J
move-result-wide v6
const-wide/16 v8, -0x1
cmp-long v10, v6, v8
if-eqz v10, :cond_2
iget-object p1, p0, Lp0/r;->d:Lp0/e;
invoke-static {p1, v6, v7}, Lp0/z/a;->a(Lp0/e;J)Ljava/lang/String;
move-result-object p1
goto :goto_2
:cond_2
cmp-long v6, v4, v2
if-gez v6, :cond_3
invoke-virtual {p0, v4, v5}, Lp0/r;->n(J)Z
move-result v2
if-eqz v2, :cond_3
iget-object v2, p0, Lp0/r;->d:Lp0/e;
sub-long v6, v4, v0
invoke-virtual {v2, v6, v7}, Lp0/e;->e(J)B
move-result v2
const/16 v3, 0xd
int-to-byte v3, v3
if-ne v2, v3, :cond_3
add-long/2addr v0, v4
invoke-virtual {p0, v0, v1}, Lp0/r;->n(J)Z
move-result v0
if-eqz v0, :cond_3
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0, v4, v5}, Lp0/e;->e(J)B
move-result v0
if-ne v0, v12, :cond_3
iget-object p1, p0, Lp0/r;->d:Lp0/e;
invoke-static {p1, v4, v5}, Lp0/z/a;->a(Lp0/e;J)Ljava/lang/String;
move-result-object p1
:goto_2
return-object p1
:cond_3
new-instance v6, Lp0/e;
invoke-direct {v6}, Lp0/e;-><init>()V
iget-object v0, p0, Lp0/r;->d:Lp0/e;
const-wide/16 v2, 0x0
const/16 v1, 0x20
iget-wide v4, v0, Lp0/e;->e:J
int-to-long v7, v1
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}, Lp0/e;->d(Lp0/e;JJ)Lp0/e;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "\\n not found: limit="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lp0/r;->d:Lp0/e;
iget-wide v1, v1, Lp0/e;->e:J
invoke-static {v1, v2, p1, p2}, Ljava/lang/Math;->min(JJ)J
move-result-wide p1
invoke-virtual {v0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string p1, " content="
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Lp0/e;->o()Lokio/ByteString;
move-result-object p1
invoke-virtual {p1}, Lokio/ByteString;->j()Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, "\u2026"
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/io/EOFException;
invoke-direct {p2, p1}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
throw p2
:cond_4
const-string v0, "limit < 0: "
invoke-static {v0, p1, p2}, Lf/e/b/a/a;->n(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 X0()J
.locals 5
const-wide/16 v0, 0x1
invoke-virtual {p0, v0, v1}, Lp0/r;->S0(J)V
const/4 v0, 0x0
:goto_0
add-int/lit8 v1, v0, 0x1
int-to-long v2, v1
invoke-virtual {p0, v2, v3}, Lp0/r;->n(J)Z
move-result v2
if-eqz v2, :cond_5
iget-object v2, p0, Lp0/r;->d:Lp0/e;
int-to-long v3, v0
invoke-virtual {v2, v3, v4}, Lp0/e;->e(J)B
move-result v2
const/16 v3, 0x30
int-to-byte v3, v3
if-lt v2, v3, :cond_0
const/16 v3, 0x39
int-to-byte v3, v3
if-le v2, v3, :cond_2
:cond_0
const/16 v3, 0x61
int-to-byte v3, v3
if-lt v2, v3, :cond_1
const/16 v3, 0x66
int-to-byte v3, v3
if-le v2, v3, :cond_2
:cond_1
const/16 v3, 0x41
int-to-byte v3, v3
if-lt v2, v3, :cond_3
const/16 v3, 0x46
int-to-byte v3, v3
if-le v2, v3, :cond_2
goto :goto_1
:cond_2
move v0, v1
goto :goto_0
:cond_3
:goto_1
if-eqz v0, :cond_4
goto :goto_2
:cond_4
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Expected leading [0-9a-fA-F] character but was 0x"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x10
invoke-static {v1}, Lk0/j/a;->checkRadix(I)I
invoke-static {v1}, Lk0/j/a;->checkRadix(I)I
invoke-static {v2, v1}, Ljava/lang/Integer;->toString(II)Ljava/lang/String;
move-result-object v1
const-string v2, "java.lang.Integer.toStri\u2026(this, checkRadix(radix))"
invoke-static {v1, v2}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/NumberFormatException;
invoke-direct {v1, v0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
throw v1
:cond_5
:goto_2
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0}, Lp0/e;->X0()J
move-result-wide v0
return-wide v0
.end method
.method public Z0()Ljava/io/InputStream;
.locals 1
new-instance v0, Lp0/r$a;
invoke-direct {v0, p0}, Lp0/r$a;-><init>(Lp0/r;)V
return-object v0
.end method
.method public a(BJJ)J
.locals 8
iget-boolean v0, p0, Lp0/r;->e:Z
const/4 v1, 0x1
xor-int/2addr v0, v1
if-eqz v0, :cond_6
const-wide/16 v2, 0x0
cmp-long v0, v2, p2
if-lez v0, :cond_0
goto :goto_0
:cond_0
cmp-long v0, p4, p2
if-ltz v0, :cond_1
goto :goto_1
:cond_1
:goto_0
const/4 v1, 0x0
:goto_1
if-eqz v1, :cond_5
:goto_2
const-wide/16 v0, -0x1
cmp-long v2, p2, p4
if-gez v2, :cond_4
iget-object v2, p0, Lp0/r;->d:Lp0/e;
move v3, p1
move-wide v4, p2
move-wide v6, p4
invoke-virtual/range {v2 .. v7}, Lp0/e;->f(BJJ)J
move-result-wide v2
cmp-long v4, v2, v0
if-eqz v4, :cond_2
move-wide v0, v2
goto :goto_3
:cond_2
iget-object v2, p0, Lp0/r;->d:Lp0/e;
iget-wide v3, v2, Lp0/e;->e:J
cmp-long v5, v3, p4
if-gez v5, :cond_4
iget-object v5, p0, Lp0/r;->f:Lp0/x;
const/16 v6, 0x2000
int-to-long v6, v6
invoke-interface {v5, v2, v6, v7}, Lp0/x;->G0(Lp0/e;J)J
move-result-wide v5
cmp-long v2, v5, v0
if-nez v2, :cond_3
goto :goto_3
:cond_3
invoke-static {p2, p3, v3, v4}, Ljava/lang/Math;->max(JJ)J
move-result-wide p2
goto :goto_2
:cond_4
:goto_3
return-wide v0
:cond_5
const-string p1, "fromIndex="
const-string v0, " toIndex="
invoke-static {p1, p2, p3, v0}, Lf/e/b/a/a;->H(Ljava/lang/String;JLjava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
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_6
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 a1(Lp0/o;)I
.locals 8
const-string v0, "options"
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-boolean v0, p0, Lp0/r;->e:Z
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v1, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
xor-int/2addr v0, v1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v0, :cond_3
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_0
iget-object v0, p0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0, p1, v1}, Lp0/z/a;->b(Lp0/e;Lp0/o;Z)I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v2, -0x2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v3, -0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eq v0, v2, :cond_1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eq v0, v3, :cond_2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object p1, p1, Lp0/o;->d:[Lokio/ByteString;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
aget-object p1, p1, v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {p1}, Lokio/ByteString;->i()I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result p1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v1, p0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
int-to-long v2, p1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v1, v2, v3}, Lp0/e;->skip(J)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_1
iget-object v0, p0, Lp0/r;->f:Lp0/x;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v2, p0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/16 v4, 0x2000
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
int-to-long v4, v4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {v0, v2, v4, v5}, Lp0/x;->G0(Lp0/e;J)J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-wide v4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v6, -0x1
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
cmp-long v0, v4, v6
if-nez v0, :cond_0
:cond_2
const/4 v0, -0x1
:goto_0
return v0
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-09-08 08:16:32 +00:00
throw p1
2020-09-02 04:07:20 +00:00
.end method
2020-09-09 19:21:20 +00:00
.method public b()I
.locals 3
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v0, 0x4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {p0, v0, v1}, Lp0/r;->S0(J)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0}, Lp0/e;->readInt()I
move-result v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
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 close()V
.locals 3
iget-boolean v0, p0, Lp0/r;->e:Z
if-eqz v0, :cond_0
2020-09-02 04:07:20 +00:00
goto :goto_0
:cond_0
2020-09-09 19:21:20 +00:00
const/4 v0, 0x1
iput-boolean v0, p0, Lp0/r;->e:Z
iget-object v0, p0, Lp0/r;->f:Lp0/x;
invoke-interface {v0}, Lp0/x;->close()V
iget-object v0, p0, Lp0/r;->d:Lp0/e;
iget-wide v1, v0, Lp0/e;->e:J
invoke-virtual {v0, v1, v2}, Lp0/e;->skip(J)V
2020-09-02 04:07:20 +00:00
:goto_0
2020-09-09 19:21:20 +00:00
return-void
.end method
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.method public e0(Ljava/nio/charset/Charset;)Ljava/lang/String;
.locals 2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v0, "charset"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v1, p0, Lp0/r;->f:Lp0/x;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v1}, Lp0/e;->n0(Lp0/x;)J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, p1}, Lp0/e;->e0(Ljava/nio/charset/Charset;)Ljava/lang/String;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-object p1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return-object p1
.end method
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.method public i()Lp0/e;
.locals 1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return-object v0
2020-09-02 04:07:20 +00:00
.end method
2020-09-09 19:21:20 +00:00
.method public isOpen()Z
2020-09-02 04:07:20 +00:00
.locals 1
2020-09-09 19:21:20 +00:00
iget-boolean v0, p0, Lp0/r;->e:Z
xor-int/lit8 v0, v0, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return v0
.end method
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.method public n(J)Z
.locals 6
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v0, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v1, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
cmp-long v3, p1, v1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-ltz v3, :cond_0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v1, 0x1
goto :goto_0
2020-09-02 04:07:20 +00:00
:cond_0
2020-09-09 19:21:20 +00:00
const/4 v1, 0x0
:goto_0
if-eqz v1, :cond_4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-boolean v1, p0, Lp0/r;->e:Z
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
xor-int/lit8 v1, v1, 0x1
if-eqz v1, :cond_3
:cond_1
iget-object v1, p0, Lp0/r;->d:Lp0/e;
iget-wide v2, v1, Lp0/e;->e:J
cmp-long v4, v2, p1
if-gez v4, :cond_2
iget-object v2, p0, Lp0/r;->f:Lp0/x;
const/16 v3, 0x2000
int-to-long v3, v3
invoke-interface {v2, v1, v3, v4}, Lp0/x;->G0(Lp0/e;J)J
move-result-wide v1
const-wide/16 v3, -0x1
cmp-long v5, v1, v3
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-nez v5, :cond_1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_1
:cond_2
2020-09-02 04:07:20 +00:00
const/4 v0, 0x1
2020-09-09 19:21:20 +00:00
:goto_1
return v0
:cond_3
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
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
throw p1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_4
const-string v0, "byteCount < 0: "
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0, p1, p2}, Lf/e/b/a/a;->n(Ljava/lang/String;J)Ljava/lang/String;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-object p1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
new-instance p2, Ljava/lang/IllegalArgumentException;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-object p1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
throw p2
2020-09-02 04:07:20 +00:00
.end method
2020-09-09 19:21:20 +00:00
.method public read(Ljava/nio/ByteBuffer;)I
.locals 6
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v0, "sink"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-wide v1, v0, Lp0/e;->e:J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-nez v5, :cond_0
iget-object v1, p0, Lp0/r;->f:Lp0/x;
2020-09-02 04:07:20 +00:00
const/16 v2, 0x2000
2020-09-09 19:21:20 +00:00
int-to-long v2, v2
invoke-interface {v1, v0, v2, v3}, Lp0/x;->G0(Lp0/e;J)J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-wide v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v2, -0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
cmp-long v4, v0, v2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-nez v4, :cond_0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 p1, -0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return p1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_0
iget-object v0, p0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, p1}, Lp0/e;->read(Ljava/nio/ByteBuffer;)I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result p1
return p1
.end method
.method public readByte()B
.locals 2
const-wide/16 v0, 0x1
invoke-virtual {p0, v0, v1}, Lp0/r;->S0(J)V
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0}, Lp0/e;->readByte()B
move-result v0
return v0
.end method
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.method public readFully([B)V
.locals 8
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v0, "sink"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:try_start_0
array-length v0, p1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
int-to-long v0, v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {p0, v0, v1}, Lp0/r;->S0(J)V
:try_end_0
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0, p1}, Lp0/e;->readFully([B)V
return-void
:catch_0
move-exception v0
const/4 v1, 0x0
:goto_0
iget-object v2, p0, Lp0/r;->d:Lp0/e;
iget-wide v3, v2, Lp0/e;->e:J
const-wide/16 v5, 0x0
cmp-long v7, v3, v5
if-lez v7, :cond_1
long-to-int v4, v3
invoke-virtual {v2, p1, v1, v4}, Lp0/e;->read([BII)I
move-result v2
const/4 v3, -0x1
if-eq v2, v3, :cond_0
add-int/2addr v1, v2
2020-09-02 04:07:20 +00:00
goto :goto_0
:cond_0
2020-09-09 19:21:20 +00:00
new-instance p1, Ljava/lang/AssertionError;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
2020-09-02 04:07:20 +00:00
throw p1
:cond_1
2020-09-09 19:21:20 +00:00
throw v0
.end method
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.method public readInt()I
.locals 2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v0, 0x4
invoke-virtual {p0, v0, v1}, Lp0/r;->S0(J)V
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0}, Lp0/e;->readInt()I
move-result v0
return v0
.end method
.method public readLong()J
.locals 2
const-wide/16 v0, 0x8
invoke-virtual {p0, v0, v1}, Lp0/r;->S0(J)V
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0}, Lp0/e;->readLong()J
move-result-wide v0
return-wide v0
.end method
.method public readShort()S
.locals 2
const-wide/16 v0, 0x2
invoke-virtual {p0, v0, v1}, Lp0/r;->S0(J)V
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0}, Lp0/e;->readShort()S
move-result v0
return v0
.end method
.method public skip(J)V
.locals 6
iget-boolean v0, p0, Lp0/r;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_3
2020-09-02 04:07:20 +00:00
:goto_0
2020-09-09 19:21:20 +00:00
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-lez v2, :cond_2
iget-object v2, p0, Lp0/r;->d:Lp0/e;
iget-wide v3, v2, Lp0/e;->e:J
cmp-long v5, v3, v0
if-nez v5, :cond_1
iget-object v0, p0, Lp0/r;->f:Lp0/x;
const/16 v1, 0x2000
int-to-long v3, v1
invoke-interface {v0, v2, v3, v4}, Lp0/x;->G0(Lp0/e;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-eqz v4, :cond_0
goto :goto_1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_0
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
throw p1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_1
:goto_1
iget-object v0, p0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-wide v0, v0, Lp0/e;->e:J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-wide v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v2, p0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v2, v0, v1}, Lp0/e;->skip(J)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sub-long/2addr p1, v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_2
2020-09-02 04:07:20 +00:00
return-void
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
2020-09-09 19:21:20 +00:00
const-string p2, "closed"
2020-09-02 04:07:20 +00:00
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
2020-09-09 19:21:20 +00:00
.end method
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
.method public t0()Ljava/lang/String;
.locals 2
const-wide v0, 0x7fffffffffffffffL
invoke-virtual {p0, v0, v1}, Lp0/r;->V(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public timeout()Lp0/y;
.locals 1
iget-object v0, p0, Lp0/r;->f:Lp0/x;
invoke-interface {v0}, Lp0/x;->timeout()Lp0/y;
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;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lp0/r;->f:Lp0/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
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
return-object v0
.end method
.method public w(J)Lokio/ByteString;
.locals 1
invoke-virtual {p0, p1, p2}, Lp0/r;->n(J)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0, p1, p2}, Lp0/e;->w(J)Lokio/ByteString;
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
throw p1
.end method
.method public x0(J)[B
.locals 1
invoke-virtual {p0, p1, p2}, Lp0/r;->n(J)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0, p1, p2}, Lp0/e;->x0(J)[B
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/io/EOFException;
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
2020-09-08 08:16:32 +00:00
throw p1
2020-09-02 04:07:20 +00:00
.end method