apkfuckery/com.discord/smali_classes2/y/a/c0.smali

518 lines
12 KiB
Smali
Raw Normal View History

2020-11-30 22:35:21 +00:00
.class public final Ly/a/c0;
.super Ly/a/f0;
2020-11-21 22:11:07 +00:00
.source "DispatchedContinuation.kt"
# interfaces
.implements Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
.implements Lkotlin/coroutines/Continuation;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
2020-11-30 22:35:21 +00:00
"Ly/a/f0<",
2020-11-21 22:11:07 +00:00
"TT;>;",
"Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;",
"Lkotlin/coroutines/Continuation<",
"TT;>;"
}
.end annotation
# static fields
.field public static final l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
# instance fields
.field private volatile _reusableCancellableContinuation:Ljava/lang/Object;
.field public g:Ljava/lang/Object;
.field public final h:Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
.field public final i:Ljava/lang/Object;
2020-11-30 22:35:21 +00:00
.field public final j:Ly/a/v;
2020-11-21 22:11:07 +00:00
.field public final k:Lkotlin/coroutines/Continuation;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/Continuation<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 3
2020-11-30 22:35:21 +00:00
const-class v0, Ly/a/c0;
2020-11-21 22:11:07 +00:00
const-class v1, Ljava/lang/Object;
const-string v2, "_reusableCancellableContinuation"
invoke-static {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
move-result-object v0
2020-11-30 22:35:21 +00:00
sput-object v0, Ly/a/c0;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2020-11-21 22:11:07 +00:00
return-void
.end method
2020-11-30 22:35:21 +00:00
.method public constructor <init>(Ly/a/v;Lkotlin/coroutines/Continuation;)V
2020-11-21 22:11:07 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-11-30 22:35:21 +00:00
"Ly/a/v;",
2020-11-21 22:11:07 +00:00
"Lkotlin/coroutines/Continuation<",
"-TT;>;)V"
}
.end annotation
const/4 v0, 0x0
2020-11-30 22:35:21 +00:00
invoke-direct {p0, v0}, Ly/a/f0;-><init>(I)V
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
iput-object p1, p0, Ly/a/c0;->j:Ly/a/v;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
iput-object p2, p0, Ly/a/c0;->k:Lkotlin/coroutines/Continuation;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
sget-object p1, Ly/a/d0;->a:Ly/a/s1/n;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
iput-object p1, p0, Ly/a/c0;->g:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
instance-of p1, p2, Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
const/4 v0, 0x0
if-nez p1, :cond_0
move-object p2, v0
:cond_0
check-cast p2, Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
2020-11-30 22:35:21 +00:00
iput-object p2, p0, Ly/a/c0;->h:Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
invoke-virtual {p0}, Ly/a/c0;->getContext()Lkotlin/coroutines/CoroutineContext;
2020-11-21 22:11:07 +00:00
move-result-object p1
2020-11-30 22:35:21 +00:00
invoke-static {p1}, Ly/a/s1/p;->b(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
move-result-object p1
2020-11-30 22:35:21 +00:00
iput-object p1, p0, Ly/a/c0;->i:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
iput-object v0, p0, Ly/a/c0;->_reusableCancellableContinuation:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
return-void
.end method
# virtual methods
.method public d()Lkotlin/coroutines/Continuation;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lkotlin/coroutines/Continuation<",
"TT;>;"
}
.end annotation
return-object p0
.end method
.method public g()Ljava/lang/Object;
.locals 2
2020-11-30 22:35:21 +00:00
iget-object v0, p0, Ly/a/c0;->g:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
sget-object v1, Ly/a/d0;->a:Ly/a/s1/n;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
iput-object v1, p0, Ly/a/c0;->g:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
return-object v0
.end method
.method public getContext()Lkotlin/coroutines/CoroutineContext;
.locals 1
2020-11-30 22:35:21 +00:00
iget-object v0, p0, Ly/a/c0;->k:Lkotlin/coroutines/Continuation;
2020-11-21 22:11:07 +00:00
invoke-interface {v0}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object v0
return-object v0
.end method
2020-11-30 22:35:21 +00:00
.method public final h(Ly/a/f;)Ljava/lang/Throwable;
2020-11-21 22:11:07 +00:00
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-11-30 22:35:21 +00:00
"Ly/a/f<",
2020-11-21 22:11:07 +00:00
"*>;)",
"Ljava/lang/Throwable;"
}
.end annotation
:cond_0
2020-11-30 22:35:21 +00:00
iget-object v0, p0, Ly/a/c0;->_reusableCancellableContinuation:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
sget-object v1, Ly/a/d0;->b:Ly/a/s1/n;
2020-11-21 22:11:07 +00:00
const/4 v2, 0x0
if-ne v0, v1, :cond_1
2020-11-30 22:35:21 +00:00
sget-object v0, Ly/a/c0;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2020-11-21 22:11:07 +00:00
invoke-virtual {v0, p0, v1, p1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
return-object v2
:cond_1
if-nez v0, :cond_2
return-object v2
:cond_2
instance-of p1, v0, Ljava/lang/Throwable;
if-eqz p1, :cond_4
2020-11-30 22:35:21 +00:00
sget-object p1, Ly/a/c0;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2020-11-21 22:11:07 +00:00
invoke-virtual {p1, p0, v0, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_3
check-cast v0, Ljava/lang/Throwable;
return-object v0
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Failed requirement."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Inconsistent state "
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance v0, Ljava/lang/IllegalStateException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
2020-11-30 22:35:21 +00:00
.method public final i()Ly/a/g;
2020-11-21 22:11:07 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
2020-11-30 22:35:21 +00:00
"Ly/a/g<",
2020-11-21 22:11:07 +00:00
"*>;"
}
.end annotation
2020-11-30 22:35:21 +00:00
iget-object v0, p0, Ly/a/c0;->_reusableCancellableContinuation:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
instance-of v1, v0, Ly/a/g;
2020-11-21 22:11:07 +00:00
if-nez v1, :cond_0
const/4 v0, 0x0
:cond_0
2020-11-30 22:35:21 +00:00
check-cast v0, Ly/a/g;
2020-11-21 22:11:07 +00:00
return-object v0
.end method
2020-11-30 22:35:21 +00:00
.method public final j(Ly/a/g;)Z
2020-11-21 22:11:07 +00:00
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-11-30 22:35:21 +00:00
"Ly/a/g<",
2020-11-21 22:11:07 +00:00
"*>;)Z"
}
.end annotation
2020-11-30 22:35:21 +00:00
iget-object v0, p0, Ly/a/c0;->_reusableCancellableContinuation:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
const/4 v1, 0x0
if-eqz v0, :cond_2
2020-11-30 22:35:21 +00:00
instance-of v2, v0, Ly/a/g;
2020-11-21 22:11:07 +00:00
const/4 v3, 0x1
if-eqz v2, :cond_1
if-ne v0, p1, :cond_0
const/4 v1, 0x1
:cond_0
return v1
:cond_1
return v3
:cond_2
return v1
.end method
.method public final k(Ljava/lang/Throwable;)Z
.locals 4
:cond_0
2020-11-30 22:35:21 +00:00
iget-object v0, p0, Ly/a/c0;->_reusableCancellableContinuation:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
sget-object v1, Ly/a/d0;->b:Ly/a/s1/n;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
invoke-static {v0, v1}, Lx/m/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-11-21 22:11:07 +00:00
move-result v2
const/4 v3, 0x1
if-eqz v2, :cond_1
2020-11-30 22:35:21 +00:00
sget-object v0, Ly/a/c0;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2020-11-21 22:11:07 +00:00
invoke-virtual {v0, p0, v1, p1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
return v3
:cond_1
instance-of v1, v0, Ljava/lang/Throwable;
if-eqz v1, :cond_2
return v3
:cond_2
2020-11-30 22:35:21 +00:00
sget-object v1, Ly/a/c0;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2020-11-21 22:11:07 +00:00
const/4 v2, 0x0
invoke-virtual {v1, p0, v0, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x0
return p1
.end method
.method public resumeWith(Ljava/lang/Object;)V
.locals 5
2020-11-30 22:35:21 +00:00
iget-object v0, p0, Ly/a/c0;->k:Lkotlin/coroutines/Continuation;
2020-11-21 22:11:07 +00:00
invoke-interface {v0}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object v0
2020-11-30 22:35:21 +00:00
invoke-static {p1}, Lf/h/a/f/f/n/g;->d0(Ljava/lang/Object;)Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
move-result-object v1
2020-11-30 22:35:21 +00:00
iget-object v2, p0, Ly/a/c0;->j:Ly/a/v;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
invoke-virtual {v2, v0}, Ly/a/v;->isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z
2020-11-21 22:11:07 +00:00
move-result v2
const/4 v3, 0x0
if-eqz v2, :cond_0
2020-11-30 22:35:21 +00:00
iput-object v1, p0, Ly/a/c0;->g:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
iput v3, p0, Ly/a/f0;->f:I
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
iget-object p1, p0, Ly/a/c0;->j:Ly/a/v;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
invoke-virtual {p1, v0, p0}, Ly/a/v;->dispatch(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Runnable;)V
2020-11-21 22:11:07 +00:00
goto :goto_1
:cond_0
2020-11-30 22:35:21 +00:00
sget-object v0, Ly/a/m1;->b:Ly/a/m1;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
invoke-static {}, Ly/a/m1;->a()Ly/a/l0;
2020-11-21 22:11:07 +00:00
move-result-object v0
2020-11-30 22:35:21 +00:00
invoke-virtual {v0}, Ly/a/l0;->z()Z
2020-11-21 22:11:07 +00:00
move-result v2
if-eqz v2, :cond_1
2020-11-30 22:35:21 +00:00
iput-object v1, p0, Ly/a/c0;->g:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
iput v3, p0, Ly/a/f0;->f:I
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
invoke-virtual {v0, p0}, Ly/a/l0;->w(Ly/a/f0;)V
2020-11-21 22:11:07 +00:00
goto :goto_1
:cond_1
const/4 v1, 0x1
2020-11-30 22:35:21 +00:00
invoke-virtual {v0, v1}, Ly/a/l0;->y(Z)V
2020-11-21 22:11:07 +00:00
:try_start_0
2020-11-30 22:35:21 +00:00
invoke-virtual {p0}, Ly/a/c0;->getContext()Lkotlin/coroutines/CoroutineContext;
2020-11-21 22:11:07 +00:00
move-result-object v2
2020-11-30 22:35:21 +00:00
iget-object v3, p0, Ly/a/c0;->i:Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
invoke-static {v2, v3}, Ly/a/s1/p;->c(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)Ljava/lang/Object;
2020-11-21 22:11:07 +00:00
move-result-object v3
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
2020-11-30 22:35:21 +00:00
iget-object v4, p0, Ly/a/c0;->k:Lkotlin/coroutines/Continuation;
2020-11-21 22:11:07 +00:00
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
2020-11-30 22:35:21 +00:00
invoke-static {v2, v3}, Ly/a/s1/p;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
2020-11-21 22:11:07 +00:00
:cond_2
2020-11-30 22:35:21 +00:00
invoke-virtual {v0}, Ly/a/l0;->B()Z
2020-11-21 22:11:07 +00:00
move-result p1
if-nez p1, :cond_2
goto :goto_0
:catchall_0
move-exception p1
2020-11-30 22:35:21 +00:00
invoke-static {v2, v3}, Ly/a/s1/p;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
2020-11-21 22:11:07 +00:00
throw p1
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
:catchall_1
move-exception p1
const/4 v2, 0x0
:try_start_3
2020-11-30 22:35:21 +00:00
invoke-virtual {p0, p1, v2}, Ly/a/f0;->f(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
2020-11-21 22:11:07 +00:00
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_2
:goto_0
2020-11-30 22:35:21 +00:00
invoke-virtual {v0, v1}, Ly/a/l0;->t(Z)V
2020-11-21 22:11:07 +00:00
:goto_1
return-void
:catchall_2
move-exception p1
2020-11-30 22:35:21 +00:00
invoke-virtual {v0, v1}, Ly/a/l0;->t(Z)V
2020-11-21 22:11:07 +00:00
throw p1
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "DispatchedContinuation["
2020-11-30 22:35:21 +00:00
invoke-static {v0}, Lf/e/c/a/a;->G(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-11-21 22:11:07 +00:00
move-result-object v0
2020-11-30 22:35:21 +00:00
iget-object v1, p0, Ly/a/c0;->j:Ly/a/v;
2020-11-21 22:11:07 +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;
2020-11-30 22:35:21 +00:00
iget-object v1, p0, Ly/a/c0;->k:Lkotlin/coroutines/Continuation;
2020-11-21 22:11:07 +00:00
2020-11-30 22:35:21 +00:00
invoke-static {v1}, Lf/h/a/f/f/n/g;->c0(Lkotlin/coroutines/Continuation;)Ljava/lang/String;
2020-11-21 22:11:07 +00:00
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x5d
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