apkfuckery/com.discord/smali_classes2/z/a/d0.smali
2020-11-09 19:03:49 +00:00

222 lines
4.9 KiB
Smali

.class public final Lz/a/d0;
.super Ljava/lang/Object;
.source "DispatchedContinuation.kt"
# static fields
.field public static final a:Lz/a/r1/n;
.field public static final b:Lz/a/r1/n;
# direct methods
.method public static constructor <clinit>()V
.locals 2
new-instance v0, Lz/a/r1/n;
const-string v1, "UNDEFINED"
invoke-direct {v0, v1}, Lz/a/r1/n;-><init>(Ljava/lang/String;)V
sput-object v0, Lz/a/d0;->a:Lz/a/r1/n;
new-instance v0, Lz/a/r1/n;
const-string v1, "REUSABLE_CLAIMED"
invoke-direct {v0, v1}, Lz/a/r1/n;-><init>(Ljava/lang/String;)V
sput-object v0, Lz/a/d0;->b:Lz/a/r1/n;
return-void
.end method
.method public static final a(Lkotlin/coroutines/Continuation;Ljava/lang/Object;)V
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lkotlin/coroutines/Continuation<",
"-TT;>;",
"Ljava/lang/Object;",
")V"
}
.end annotation
instance-of v0, p0, Lz/a/c0;
if-eqz v0, :cond_4
check-cast p0, Lz/a/c0;
invoke-static {p1}, Ly/i/s;->c0(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
iget-object v1, p0, Lz/a/c0;->j:Lz/a/v;
invoke-virtual {p0}, Lz/a/c0;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object v2
invoke-virtual {v1, v2}, Lz/a/v;->isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z
move-result v1
const/4 v2, 0x1
if-eqz v1, :cond_0
iput-object v0, p0, Lz/a/c0;->g:Ljava/lang/Object;
iput v2, p0, Lz/a/f0;->f:I
iget-object p1, p0, Lz/a/c0;->j:Lz/a/v;
invoke-virtual {p0}, Lz/a/c0;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object v0
invoke-virtual {p1, v0, p0}, Lz/a/v;->dispatch(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Runnable;)V
goto :goto_3
:cond_0
sget-object v1, Lz/a/l1;->b:Lz/a/l1;
invoke-static {}, Lz/a/l1;->a()Lz/a/k0;
move-result-object v1
invoke-virtual {v1}, Lz/a/k0;->A()Z
move-result v3
if-eqz v3, :cond_1
iput-object v0, p0, Lz/a/c0;->g:Ljava/lang/Object;
iput v2, p0, Lz/a/f0;->f:I
invoke-virtual {v1, p0}, Lz/a/k0;->x(Lz/a/f0;)V
goto :goto_3
:cond_1
invoke-virtual {v1, v2}, Lz/a/k0;->y(Z)V
:try_start_0
invoke-virtual {p0}, Lz/a/c0;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object v0
sget-object v3, Lkotlinx/coroutines/Job;->c:Lkotlinx/coroutines/Job$a;
invoke-interface {v0, v3}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
move-result-object v0
check-cast v0, Lkotlinx/coroutines/Job;
if-eqz v0, :cond_2
invoke-interface {v0}, Lkotlinx/coroutines/Job;->a()Z
move-result v3
if-nez v3, :cond_2
invoke-interface {v0}, Lkotlinx/coroutines/Job;->e()Ljava/util/concurrent/CancellationException;
move-result-object v0
invoke-static {v0}, Lf/h/a/f/f/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object v0
invoke-virtual {p0, v0}, Lz/a/c0;->resumeWith(Ljava/lang/Object;)V
const/4 v0, 0x1
goto :goto_0
:cond_2
const/4 v0, 0x0
:goto_0
if-nez v0, :cond_3
invoke-virtual {p0}, Lz/a/c0;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object v0
iget-object v3, p0, Lz/a/c0;->i:Ljava/lang/Object;
invoke-static {v0, v3}, Lz/a/r1/p;->c(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
iget-object v4, p0, Lz/a/c0;->k:Lkotlin/coroutines/Continuation;
invoke-interface {v4, p1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
invoke-static {v0, v3}, Lz/a/r1/p;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
goto :goto_1
:catchall_0
move-exception p1
invoke-static {v0, v3}, Lz/a/r1/p;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
throw p1
:cond_3
:goto_1
invoke-virtual {v1}, Lz/a/k0;->B()Z
move-result p1
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
if-nez p1, :cond_3
goto :goto_2
:catchall_1
move-exception p1
const/4 v0, 0x0
:try_start_3
invoke-virtual {p0, p1, v0}, Lz/a/f0;->f(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_2
:goto_2
invoke-virtual {v1, v2}, Lz/a/k0;->s(Z)V
goto :goto_3
:catchall_2
move-exception p0
invoke-virtual {v1, v2}, Lz/a/k0;->s(Z)V
throw p0
:cond_4
invoke-interface {p0, p1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
:goto_3
return-void
.end method