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