apkfuckery/com.discord/smali_classes2/l0/a/f0.smali

345 lines
7.8 KiB
Smali
Raw Normal View History

2020-09-09 19:21:20 +00:00
.class public abstract Ll0/a/f0;
.super Ll0/a/s1/h;
.source "DispatchedTask.kt"
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
2020-09-09 19:21:20 +00:00
"Ll0/a/s1/h;"
2020-07-20 19:00:44 +00:00
}
.end annotation
# instance fields
2020-09-09 19:21:20 +00:00
.field public f:I
# direct methods
.method public constructor <init>(I)V
.locals 0
invoke-direct {p0}, Ll0/a/s1/h;-><init>()V
iput p1, p0, Ll0/a/f0;->f:I
return-void
.end method
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
# virtual methods
.method public a(Ljava/lang/Object;Ljava/lang/Throwable;)V
.locals 0
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
return-void
.end method
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
.method public abstract d()Lkotlin/coroutines/Continuation;
2020-07-20 19:00:44 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-09-09 19:21:20 +00:00
"()",
2020-07-20 19:00:44 +00:00
"Lkotlin/coroutines/Continuation<",
"TT;>;"
}
.end annotation
2020-09-09 19:21:20 +00:00
.end method
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
.method public e(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
2020-07-20 19:00:44 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-09-09 19:21:20 +00:00
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Object;",
")TT;"
2020-07-20 19:00:44 +00:00
}
.end annotation
2020-09-09 19:21:20 +00:00
return-object p1
.end method
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
.method public final f(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
.locals 2
2020-07-20 19:00:44 +00:00
if-nez p1, :cond_0
2020-09-09 19:21:20 +00:00
if-nez p2, :cond_0
return-void
2020-07-20 19:00:44 +00:00
:cond_0
2020-09-09 19:21:20 +00:00
if-eqz p1, :cond_1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
if-eqz p2, :cond_1
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, p2}, Lf/h/a/f/e/n/f;->addSuppressed(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:cond_1
if-eqz p1, :cond_2
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_0
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:cond_2
move-object p1, p2
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:goto_0
new-instance p2, Ll0/a/y;
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
new-instance v0, Ljava/lang/StringBuilder;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
const-string v1, "Fatal exception in coroutines machinery for "
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
const-string v1, ". "
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
const-string v1, "Please read KDoc to \'handleFatalException\' method and report this incident to maintainers"
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-07-20 19:00:44 +00:00
move-result-object v0
2020-09-09 19:21:20 +00:00
if-eqz p1, :cond_3
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {p2, v0, p1}, Ll0/a/y;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {p0}, Ll0/a/f0;->d()Lkotlin/coroutines/Continuation;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result-object p1
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {p1}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result-object p1
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, p2}, Lk0/j/a;->v(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
return-void
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:cond_3
invoke-static {}, Lk0/n/c/i;->throwNpe()V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
const/4 p1, 0x0
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
throw p1
.end method
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
.method public abstract h()Ljava/lang/Object;
.end method
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
.method public final run()V
.locals 9
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Ll0/a/s1/h;->e:Ll0/a/s1/i;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:try_start_0
invoke-virtual {p0}, Ll0/a/f0;->d()Lkotlin/coroutines/Continuation;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v1
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v1, :cond_5
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
check-cast v1, Ll0/a/c0;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
iget-object v2, v1, Ll0/a/c0;->k:Lkotlin/coroutines/Continuation;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {v2}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v3
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {p0}, Ll0/a/f0;->h()Ljava/lang/Object;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v4
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
iget-object v1, v1, Ll0/a/c0;->i:Ljava/lang/Object;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v3, v1}, Ll0/a/r1/p;->c(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)Ljava/lang/Object;
2020-07-20 19:00:44 +00:00
move-result-object v1
2020-09-09 19:21:20 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_2
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:try_start_1
instance-of v5, v4, Ll0/a/p;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
const/4 v6, 0x0
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
if-nez v5, :cond_0
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-object v5, v6
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_0
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:cond_0
move-object v5, v4
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:goto_0
check-cast v5, Ll0/a/p;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v5, :cond_1
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
iget-object v5, v5, Ll0/a/p;->a:Ljava/lang/Throwable;
2020-07-20 19:00:44 +00:00
goto :goto_1
2020-09-09 19:21:20 +00:00
:cond_1
move-object v5, v6
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:goto_1
iget v7, p0, Ll0/a/f0;->f:I
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v7}, Lk0/j/a;->y(I)Z
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result v7
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v7, :cond_2
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
sget-object v7, Lkotlinx/coroutines/Job;->c:Lkotlinx/coroutines/Job$a;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {v3, v7}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v7
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
check-cast v7, Lkotlinx/coroutines/Job;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_2
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:cond_2
move-object v7, v6
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:goto_2
if-nez v5, :cond_3
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v7, :cond_3
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {v7}, Lkotlinx/coroutines/Job;->a()Z
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result v8
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
if-nez v8, :cond_3
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {v7}, Lkotlinx/coroutines/Job;->e()Ljava/util/concurrent/CancellationException;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v5
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {p0, v4, v5}, Ll0/a/f0;->a(Ljava/lang/Object;Ljava/lang/Throwable;)V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v5}, Lf/h/a/f/e/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v4
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {v2, v4}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_3
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:cond_3
if-eqz v5, :cond_4
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v5}, Lf/h/a/f/e/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v4
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {v2, v4}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_3
:cond_4
invoke-virtual {p0, v4}, Ll0/a/f0;->e(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-interface {v2, v4}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:goto_3
:try_start_2
invoke-static {v3, v1}, Ll0/a/r1/p;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
2020-07-20 19:00:44 +00:00
:try_start_3
2020-09-09 19:21:20 +00:00
invoke-interface {v0}, Ll0/a/s1/i;->c()V
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
2020-07-20 19:00:44 +00:00
:try_end_3
2020-09-09 19:21:20 +00:00
.catchall {:try_start_3 .. :try_end_3} :catchall_0
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_4
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:catchall_0
move-exception v0
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0}, Lf/h/a/f/e/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:goto_4
invoke-static {v0}, Lk0/d;->exceptionOrNull-impl(Ljava/lang/Object;)Ljava/lang/Throwable;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {p0, v6, v0}, Ll0/a/f0;->f(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_6
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:catchall_1
move-exception v2
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:try_start_4
invoke-static {v3, v1}, Ll0/a/r1/p;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
throw v2
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:cond_5
new-instance v1, Lkotlin/TypeCastException;
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
const-string v2, "null cannot be cast to non-null type kotlinx.coroutines.DispatchedContinuation<T>"
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v1, v2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
throw v1
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_2
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:catchall_2
move-exception v1
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:try_start_5
invoke-interface {v0}, Ll0/a/s1/i;->c()V
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_3
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_5
2020-07-20 19:00:44 +00:00
2020-09-09 19:21:20 +00:00
:catchall_3
move-exception v0
invoke-static {v0}, Lf/h/a/f/e/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object v0
:goto_5
invoke-static {v0}, Lk0/d;->exceptionOrNull-impl(Ljava/lang/Object;)Ljava/lang/Throwable;
2020-07-20 19:00:44 +00:00
move-result-object v0
2020-09-09 19:21:20 +00:00
invoke-virtual {p0, v1, v0}, Ll0/a/f0;->f(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
:goto_6
return-void
2020-07-20 19:00:44 +00:00
.end method