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

297 lines
5.7 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class final Lokio/a$1;
.super Ljava/lang/Object;
.source "AsyncTimeout.java"
# interfaces
.implements Lokio/q;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokio/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
2019-11-10 14:21:47 +00:00
.field final synthetic byD:Lokio/q;
2019-07-24 11:27:29 +00:00
2019-11-10 14:21:47 +00:00
.field final synthetic byE:Lokio/a;
2019-07-24 11:27:29 +00:00
# direct methods
.method constructor <init>(Lokio/a;Lokio/q;)V
.locals 0
2019-11-10 14:21:47 +00:00
iput-object p1, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
2019-11-10 14:21:47 +00:00
iput-object p2, p0, Lokio/a$1;->byD:Lokio/q;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final close()V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-11-10 14:21:47 +00:00
iget-object v0, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Lokio/a;->enter()V
:try_start_0
2019-11-10 14:21:47 +00:00
iget-object v0, p0, Lokio/a$1;->byD:Lokio/q;
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Lokio/q;->close()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-11-10 14:21:47 +00:00
iget-object v0, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
const/4 v1, 0x1
2019-11-10 14:21:47 +00:00
invoke-virtual {v0, v1}, Lokio/a;->X(Z)V
2019-07-24 11:27:29 +00:00
return-void
:catchall_0
move-exception v0
goto :goto_0
:catch_0
move-exception v0
:try_start_1
2019-11-10 14:21:47 +00:00
iget-object v1, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, v0}, Lokio/a;->f(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v0
throw v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_0
2019-11-10 14:21:47 +00:00
iget-object v1, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
const/4 v2, 0x0
2019-11-10 14:21:47 +00:00
invoke-virtual {v1, v2}, Lokio/a;->X(Z)V
2019-07-24 11:27:29 +00:00
throw v0
.end method
.method public final flush()V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-11-10 14:21:47 +00:00
iget-object v0, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Lokio/a;->enter()V
:try_start_0
2019-11-10 14:21:47 +00:00
iget-object v0, p0, Lokio/a$1;->byD:Lokio/q;
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Lokio/q;->flush()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-11-10 14:21:47 +00:00
iget-object v0, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
const/4 v1, 0x1
2019-11-10 14:21:47 +00:00
invoke-virtual {v0, v1}, Lokio/a;->X(Z)V
2019-07-24 11:27:29 +00:00
return-void
:catchall_0
move-exception v0
goto :goto_0
:catch_0
move-exception v0
:try_start_1
2019-11-10 14:21:47 +00:00
iget-object v1, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, v0}, Lokio/a;->f(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v0
throw v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_0
2019-11-10 14:21:47 +00:00
iget-object v1, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
const/4 v2, 0x0
2019-11-10 14:21:47 +00:00
invoke-virtual {v1, v2}, Lokio/a;->X(Z)V
2019-07-24 11:27:29 +00:00
throw v0
.end method
.method public final timeout()Lokio/s;
.locals 1
2019-11-10 14:21:47 +00:00
iget-object v0, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "AsyncTimeout.sink("
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-11-10 14:21:47 +00:00
iget-object v1, p0, Lokio/a$1;->byD:Lokio/q;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ")"
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
.method public final write(Lokio/c;J)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-wide v0, p1, Lokio/c;->size:J
const-wide/16 v2, 0x0
move-wide v4, p2
invoke-static/range {v0 .. v5}, Lokio/t;->a(JJJ)V
:goto_0
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-lez v2, :cond_2
2019-11-10 14:21:47 +00:00
iget-object v2, p1, Lokio/c;->byJ:Lokio/n;
2019-07-24 11:27:29 +00:00
:goto_1
const-wide/32 v3, 0x10000
cmp-long v5, v0, v3
if-gez v5, :cond_1
iget v3, v2, Lokio/n;->limit:I
iget v4, v2, Lokio/n;->pos:I
sub-int/2addr v3, v4
int-to-long v3, v3
add-long/2addr v0, v3
cmp-long v3, v0, p2
if-ltz v3, :cond_0
move-wide v0, p2
goto :goto_2
:cond_0
2019-11-10 14:21:47 +00:00
iget-object v2, v2, Lokio/n;->bze:Lokio/n;
2019-07-24 11:27:29 +00:00
goto :goto_1
:cond_1
:goto_2
2019-11-10 14:21:47 +00:00
iget-object v2, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
invoke-virtual {v2}, Lokio/a;->enter()V
:try_start_0
2019-11-10 14:21:47 +00:00
iget-object v2, p0, Lokio/a$1;->byD:Lokio/q;
2019-07-24 11:27:29 +00:00
invoke-interface {v2, p1, v0, v1}, Lokio/q;->write(Lokio/c;J)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
sub-long/2addr p2, v0
2019-11-10 14:21:47 +00:00
iget-object v0, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
const/4 v1, 0x1
2019-11-10 14:21:47 +00:00
invoke-virtual {v0, v1}, Lokio/a;->X(Z)V
2019-07-24 11:27:29 +00:00
goto :goto_0
:catchall_0
move-exception p1
goto :goto_3
:catch_0
move-exception p1
:try_start_1
2019-11-10 14:21:47 +00:00
iget-object p2, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
invoke-virtual {p2, p1}, Lokio/a;->f(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p1
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_3
2019-11-10 14:21:47 +00:00
iget-object p2, p0, Lokio/a$1;->byE:Lokio/a;
2019-07-24 11:27:29 +00:00
const/4 p3, 0x0
2019-11-10 14:21:47 +00:00
invoke-virtual {p2, p3}, Lokio/a;->X(Z)V
2019-07-24 11:27:29 +00:00
throw p1
:cond_2
return-void
.end method