apkfuckery/com.discord/smali_classes2/i0/k/g.smali
2020-07-14 22:43:59 +00:00

248 lines
5.9 KiB
Smali

.class public final Li0/k/g;
.super Ljava/lang/Object;
.source "SafeContinuationJvm.kt"
# interfaces
.implements Lkotlin/coroutines/Continuation;
.implements Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation<",
"TT;>;",
"Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;"
}
.end annotation
# static fields
.field public static final f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater<",
"Li0/k/g<",
"*>;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
# instance fields
.field public volatile d:Ljava/lang/Object;
.field public final e: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
const-class v0, Li0/k/g;
const-class v1, Ljava/lang/Object;
const-string v2, "d"
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
sput-object v0, Li0/k/g;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
return-void
.end method
.method public constructor <init>(Lkotlin/coroutines/Continuation;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation<",
"-TT;>;)V"
}
.end annotation
sget-object v0, Li0/k/h/a;->e:Li0/k/h/a;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Li0/k/g;->e:Lkotlin/coroutines/Continuation;
iput-object v0, p0, Li0/k/g;->d:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public getCallerFrame()Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
.locals 2
iget-object v0, p0, Li0/k/g;->e:Lkotlin/coroutines/Continuation;
instance-of v1, v0, Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
if-nez v1, :cond_0
const/4 v0, 0x0
:cond_0
check-cast v0, Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
return-object v0
.end method
.method public getContext()Lkotlin/coroutines/CoroutineContext;
.locals 1
iget-object v0, p0, Li0/k/g;->e:Lkotlin/coroutines/Continuation;
invoke-interface {v0}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
move-result-object v0
return-object v0
.end method
.method public final getOrThrow()Ljava/lang/Object;
.locals 3
sget-object v0, Li0/k/h/a;->d:Li0/k/h/a;
iget-object v1, p0, Li0/k/g;->d:Ljava/lang/Object;
sget-object v2, Li0/k/h/a;->e:Li0/k/h/a;
if-ne v1, v2, :cond_1
sget-object v1, Li0/k/g;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
invoke-virtual {v1, p0, v2, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
return-object v0
:cond_0
iget-object v1, p0, Li0/k/g;->d:Ljava/lang/Object;
:cond_1
sget-object v2, Li0/k/h/a;->f:Li0/k/h/a;
if-ne v1, v2, :cond_2
goto :goto_0
:cond_2
instance-of v0, v1, Li0/d$a;
if-nez v0, :cond_3
move-object v0, v1
:goto_0
return-object v0
:cond_3
check-cast v1, Li0/d$a;
iget-object v0, v1, Li0/d$a;->exception:Ljava/lang/Throwable;
throw v0
.end method
.method public getStackTraceElement()Ljava/lang/StackTraceElement;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public resumeWith(Ljava/lang/Object;)V
.locals 3
:cond_0
iget-object v0, p0, Li0/k/g;->d:Ljava/lang/Object;
sget-object v1, Li0/k/h/a;->e:Li0/k/h/a;
if-ne v0, v1, :cond_1
sget-object v0, Li0/k/g;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
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-void
:cond_1
sget-object v1, Li0/k/h/a;->d:Li0/k/h/a;
if-ne v0, v1, :cond_2
sget-object v0, Li0/k/g;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
sget-object v2, Li0/k/h/a;->f:Li0/k/h/a;
invoke-virtual {v0, p0, v1, 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
iget-object v0, p0, Li0/k/g;->e:Lkotlin/coroutines/Continuation;
invoke-interface {v0, p1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
return-void
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Already resumed"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "SafeContinuation for "
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Li0/k/g;->e:Lkotlin/coroutines/Continuation;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method