apkfuckery/com.discord/smali_classes2/x/c.smali

305 lines
5.3 KiB
Smali
Raw Normal View History

2019-12-13 02:35:12 +00:00
.class public final Lx/c;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "AsyncTimeout.kt"
# interfaces
2019-12-13 02:35:12 +00:00
.implements Lx/u;
2019-12-06 03:29:40 +00:00
# instance fields
2019-12-13 02:35:12 +00:00
.field public final synthetic d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
.field public final synthetic e:Lx/u;
2019-12-06 03:29:40 +00:00
# direct methods
2019-12-13 02:35:12 +00:00
.method public constructor <init>(Lx/b;Lx/u;)V
2019-12-06 03:29:40 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2019-12-13 02:35:12 +00:00
"Lx/u;",
2019-12-06 03:29:40 +00:00
")V"
}
.end annotation
2019-12-13 02:35:12 +00:00
iput-object p1, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iput-object p2, p0, Lx/c;->e:Lx/u;
2019-12-06 03:29:40 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public close()V
.locals 3
2019-12-13 02:35:12 +00:00
iget-object v0, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {v0}, Lx/b;->g()V
2019-12-06 03:29:40 +00:00
:try_start_0
2019-12-13 02:35:12 +00:00
iget-object v0, p0, Lx/c;->e:Lx/u;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-interface {v0}, Lx/u;->close()V
2019-12-06 03:29:40 +00:00
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 v0, 0x1
2019-12-13 02:35:12 +00:00
iget-object v1, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {v1, v0}, Lx/b;->a(Z)V
2019-12-06 03:29:40 +00:00
return-void
:catchall_0
move-exception v0
goto :goto_0
:catch_0
move-exception v0
:try_start_1
2019-12-13 02:35:12 +00:00
iget-object v1, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {v1, v0}, Lx/b;->a(Ljava/io/IOException;)Ljava/io/IOException;
2019-12-06 03:29:40 +00:00
move-result-object v0
throw v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_0
2019-12-13 02:35:12 +00:00
iget-object v1, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-12-13 02:35:12 +00:00
invoke-virtual {v1, v2}, Lx/b;->a(Z)V
2019-12-06 03:29:40 +00:00
throw v0
.end method
.method public flush()V
.locals 3
2019-12-13 02:35:12 +00:00
iget-object v0, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {v0}, Lx/b;->g()V
2019-12-06 03:29:40 +00:00
:try_start_0
2019-12-13 02:35:12 +00:00
iget-object v0, p0, Lx/c;->e:Lx/u;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-interface {v0}, Lx/u;->flush()V
2019-12-06 03:29:40 +00:00
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 v0, 0x1
2019-12-13 02:35:12 +00:00
iget-object v1, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {v1, v0}, Lx/b;->a(Z)V
2019-12-06 03:29:40 +00:00
return-void
:catchall_0
move-exception v0
goto :goto_0
:catch_0
move-exception v0
:try_start_1
2019-12-13 02:35:12 +00:00
iget-object v1, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {v1, v0}, Lx/b;->a(Ljava/io/IOException;)Ljava/io/IOException;
2019-12-06 03:29:40 +00:00
move-result-object v0
throw v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_0
2019-12-13 02:35:12 +00:00
iget-object v1, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-12-13 02:35:12 +00:00
invoke-virtual {v1, v2}, Lx/b;->a(Z)V
2019-12-06 03:29:40 +00:00
throw v0
.end method
2019-12-13 02:35:12 +00:00
.method public timeout()Lx/x;
2019-12-06 03:29:40 +00:00
.locals 1
2019-12-13 02:35:12 +00:00
iget-object v0, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "AsyncTimeout.sink("
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
2019-12-13 02:35:12 +00:00
iget-object v1, p0, Lx/c;->e:Lx/u;
2019-12-06 03:29:40 +00:00
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
2019-12-13 02:35:12 +00:00
.method public write(Lx/e;J)V
2019-12-06 03:29:40 +00:00
.locals 7
const/4 v0, 0x0
if-eqz p1, :cond_5
2019-12-13 02:35:12 +00:00
iget-wide v1, p1, Lx/e;->e:J
2019-12-06 03:29:40 +00:00
const-wide/16 v3, 0x0
move-wide v5, p2
invoke-static/range {v1 .. v6}, Le/k/a/b/e/p/g;->a(JJJ)V
:goto_0
const-wide/16 v1, 0x0
cmp-long v3, p2, v1
if-lez v3, :cond_4
2019-12-13 02:35:12 +00:00
iget-object v3, p1, Lx/e;->d:Lx/r;
2019-12-06 03:29:40 +00:00
if-eqz v3, :cond_3
:goto_1
const/high16 v4, 0x10000
int-to-long v4, v4
cmp-long v6, v1, v4
if-gez v6, :cond_2
2019-12-13 02:35:12 +00:00
iget v4, v3, Lx/r;->c:I
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget v5, v3, Lx/r;->b:I
2019-12-06 03:29:40 +00:00
sub-int/2addr v4, v5
int-to-long v4, v4
add-long/2addr v1, v4
cmp-long v4, v1, p2
if-ltz v4, :cond_0
move-wide v1, p2
goto :goto_2
:cond_0
2019-12-13 02:35:12 +00:00
iget-object v3, v3, Lx/r;->f:Lx/r;
2019-12-06 03:29:40 +00:00
if-eqz v3, :cond_1
goto :goto_1
:cond_1
2019-12-13 02:35:12 +00:00
invoke-static {}, Ls/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v0
:cond_2
:goto_2
const/4 v3, 0x0
2019-12-13 02:35:12 +00:00
iget-object v4, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {v4}, Lx/b;->g()V
2019-12-06 03:29:40 +00:00
:try_start_0
2019-12-13 02:35:12 +00:00
iget-object v4, p0, Lx/c;->e:Lx/u;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-interface {v4, p1, v1, v2}, Lx/u;->write(Lx/e;J)V
2019-12-06 03:29:40 +00:00
: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, v1
const/4 v1, 0x1
2019-12-13 02:35:12 +00:00
iget-object v2, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {v2, v1}, Lx/b;->a(Z)V
2019-12-06 03:29:40 +00:00
goto :goto_0
:catchall_0
move-exception p1
goto :goto_3
:catch_0
move-exception p1
:try_start_1
2019-12-13 02:35:12 +00:00
iget-object p2, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {p2, p1}, Lx/b;->a(Ljava/io/IOException;)Ljava/io/IOException;
2019-12-06 03:29:40 +00:00
move-result-object p1
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_3
2019-12-13 02:35:12 +00:00
iget-object p2, p0, Lx/c;->d:Lx/b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {p2, v3}, Lx/b;->a(Z)V
2019-12-06 03:29:40 +00:00
throw p1
:cond_3
2019-12-13 02:35:12 +00:00
invoke-static {}, Ls/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v0
:cond_4
return-void
:cond_5
const-string p1, "source"
2019-12-13 02:35:12 +00:00
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
.end method