apkfuckery/com.discord/smali_classes2/okio/l$1.smali

264 lines
5.1 KiB
Smali
Raw Normal View History

2019-02-27 21:13:14 +00:00
.class final Lokio/l$1;
2019-02-04 20:08:30 +00:00
.super Ljava/io/InputStream;
2019-02-04 20:29:01 +00:00
.source "RealBufferedSource.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
2019-02-27 21:13:14 +00:00
value = Lokio/l;->BX()Ljava/io/InputStream;
2019-02-04 20:08:30 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
2019-03-02 23:27:57 +00:00
.field final synthetic buw:Lokio/l;
2019-02-04 20:08:30 +00:00
# direct methods
2019-02-27 21:13:14 +00:00
.method constructor <init>(Lokio/l;)V
2019-02-04 20:08:30 +00:00
.locals 0
2019-03-02 23:27:57 +00:00
iput-object p1, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
return-void
.end method
# virtual methods
.method public final available()I
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-03-02 23:27:57 +00:00
iget-object v0, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-boolean v0, v0, Lokio/l;->closed:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-03-02 23:27:57 +00:00
iget-object v0, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v0, v0, Lokio/l;->btE:Lokio/c;
2019-02-04 20:08:30 +00:00
iget-wide v0, v0, Lokio/c;->size:J
const-wide/32 v2, 0x7fffffff
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
move-result-wide v0
2019-02-17 02:24:41 +00:00
long-to-int v1, v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
return v1
2019-02-04 20:08:30 +00:00
: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 final close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-03-02 23:27:57 +00:00
iget-object v0, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0}, Lokio/l;->close()V
2019-02-04 20:08:30 +00:00
return-void
.end method
.method public final read()I
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-03-02 23:27:57 +00:00
iget-object v0, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-boolean v0, v0, Lokio/l;->closed:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_1
2019-03-02 23:27:57 +00:00
iget-object v0, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v0, v0, Lokio/l;->btE:Lokio/c;
2019-02-04 20:08:30 +00:00
iget-wide v0, v0, Lokio/c;->size:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-nez v4, :cond_0
2019-03-02 23:27:57 +00:00
iget-object v0, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v0, v0, Lokio/l;->buv:Lokio/q;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v1, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v1, v1, Lokio/l;->btE:Lokio/c;
2019-02-04 20:08:30 +00:00
const-wide/16 v2, 0x2000
2019-02-27 21:13:14 +00:00
invoke-interface {v0, v1, v2, v3}, Lokio/q;->a(Lokio/c;J)J
2019-02-04 20:08:30 +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
2019-03-02 23:27:57 +00:00
iget-object v0, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v0, v0, Lokio/l;->btE:Lokio/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lokio/c;->readByte()B
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 final read([BII)I
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-03-02 23:27:57 +00:00
iget-object v0, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-boolean v0, v0, Lokio/l;->closed:Z
2019-02-04 20:08:30 +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
2019-02-27 21:13:14 +00:00
invoke-static/range {v1 .. v6}, Lokio/s;->a(JJJ)V
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v0, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v0, v0, Lokio/l;->btE:Lokio/c;
2019-02-04 20:08:30 +00:00
iget-wide v0, v0, Lokio/c;->size:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-nez v4, :cond_0
2019-03-02 23:27:57 +00:00
iget-object v0, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v0, v0, Lokio/l;->buv:Lokio/q;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v1, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v1, v1, Lokio/l;->btE:Lokio/c;
2019-02-04 20:08:30 +00:00
const-wide/16 v2, 0x2000
2019-02-27 21:13:14 +00:00
invoke-interface {v0, v1, v2, v3}, Lokio/q;->a(Lokio/c;J)J
2019-02-04 20:08:30 +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
2019-03-02 23:27:57 +00:00
iget-object v0, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v0, v0, Lokio/l;->btE:Lokio/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1, p2, p3}, Lokio/c;->read([BII)I
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
.end method
.method public final toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
2019-03-02 23:27:57 +00:00
iget-object v1, p0, Lokio/l$1;->buw:Lokio/l;
2019-02-04 20:08:30 +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