apkfuckery/com.discord/smali_classes2/b0/q$a.smali

250 lines
4.3 KiB
Smali
Raw Normal View History

2020-02-20 19:33:18 +00:00
.class public final Lb0/q$a;
2019-12-06 03:29:40 +00:00
.super Ljava/io/InputStream;
.source "RealBufferedSource.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
2020-02-20 19:33:18 +00:00
value = Lb0/q;->s()Ljava/io/InputStream;
2019-12-06 03:29:40 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
2020-02-20 19:33:18 +00:00
.field public final synthetic d:Lb0/q;
2019-12-06 03:29:40 +00:00
# direct methods
2020-02-20 19:33:18 +00:00
.method public constructor <init>(Lb0/q;)V
2019-12-06 03:29:40 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
2020-02-20 19:33:18 +00:00
iput-object p1, p0, Lb0/q$a;->d:Lb0/q;
2019-12-06 03:29:40 +00:00
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
return-void
.end method
# virtual methods
.method public available()I
.locals 4
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/q$a;->d:Lb0/q;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-boolean v1, v0, Lb0/q;->e:Z
2019-12-06 03:29:40 +00:00
if-nez v1, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, v0, Lb0/q;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-wide v0, v0, Lb0/e;->e:J
2019-12-06 03:29:40 +00:00
const v2, 0x7fffffff
int-to-long v2, v2
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
move-result-wide v0
long-to-int v1, v0
return v1
:cond_0
new-instance v0, Ljava/io/IOException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public close()V
.locals 1
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/q$a;->d:Lb0/q;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0}, Lb0/q;->close()V
2019-12-06 03:29:40 +00:00
return-void
.end method
.method public read()I
.locals 7
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/q$a;->d:Lb0/q;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-boolean v1, v0, Lb0/q;->e:Z
2019-12-06 03:29:40 +00:00
if-nez v1, :cond_1
2020-02-20 19:33:18 +00:00
iget-object v1, v0, Lb0/q;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-wide v2, v1, Lb0/e;->e:J
2019-12-06 03:29:40 +00:00
const-wide/16 v4, 0x0
cmp-long v6, v2, v4
if-nez v6, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, v0, Lb0/q;->f:Lb0/w;
2019-12-06 03:29:40 +00:00
const/16 v2, 0x2000
int-to-long v2, v2
2020-02-20 19:33:18 +00:00
invoke-interface {v0, v1, v2, v3}, Lb0/w;->b(Lb0/e;J)J
2019-12-06 03:29:40 +00:00
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const/4 v0, -0x1
return v0
:cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/q$a;->d:Lb0/q;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-object v0, v0, Lb0/q;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0}, Lb0/e;->readByte()B
2019-12-06 03:29:40 +00:00
move-result v0
and-int/lit16 v0, v0, 0xff
return v0
:cond_1
new-instance v0, Ljava/io/IOException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public read([BII)I
.locals 7
if-eqz p1, :cond_2
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/q$a;->d:Lb0/q;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-boolean v0, v0, Lb0/q;->e:Z
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_1
array-length v0, p1
int-to-long v1, v0
int-to-long v3, p2
int-to-long v5, p3
2020-02-20 19:33:18 +00:00
invoke-static/range {v1 .. v6}, Lx/a/a2/w;->a(JJJ)V
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/q$a;->d:Lb0/q;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-object v1, v0, Lb0/q;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-wide v2, v1, Lb0/e;->e:J
2019-12-06 03:29:40 +00:00
const-wide/16 v4, 0x0
cmp-long v6, v2, v4
if-nez v6, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, v0, Lb0/q;->f:Lb0/w;
2019-12-06 03:29:40 +00:00
const/16 v2, 0x2000
int-to-long v2, v2
2020-02-20 19:33:18 +00:00
invoke-interface {v0, v1, v2, v3}, Lb0/w;->b(Lb0/e;J)J
2019-12-06 03:29:40 +00:00
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const/4 p1, -0x1
return p1
:cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/q$a;->d:Lb0/q;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-object v0, v0, Lb0/q;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1, p2, p3}, Lb0/e;->a([BII)I
2019-12-06 03:29:40 +00:00
move-result p1
return p1
:cond_1
new-instance p1, Ljava/io/IOException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
:cond_2
const-string p1, "data"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
2020-02-20 19:33:18 +00:00
iget-object v1, p0, Lb0/q$a;->d:Lb0/q;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ".inputStream()"
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
return-object v0
.end method