apkfuckery/com.discord/smali_classes2/i0/k/g.smali

249 lines
5.9 KiB
Smali
Raw Normal View History

2020-07-14 22:43:59 +00:00
.class public final Li0/k/g;
2020-05-17 12:40:10 +00:00
.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<",
2020-07-14 22:43:59 +00:00
"Li0/k/g<",
2020-05-17 12:40:10 +00:00
"*>;",
"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
2020-07-14 22:43:59 +00:00
const-class v0, Li0/k/g;
2020-05-17 12:40:10 +00:00
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
2020-07-14 22:43:59 +00:00
sput-object v0, Li0/k/g;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2020-05-17 12:40:10 +00:00
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
2020-07-14 22:43:59 +00:00
sget-object v0, Li0/k/h/a;->e:Li0/k/h/a;
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-07-14 22:43:59 +00:00
iput-object p1, p0, Li0/k/g;->e:Lkotlin/coroutines/Continuation;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iput-object v0, p0, Li0/k/g;->d:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
return-void
.end method
# virtual methods
.method public getCallerFrame()Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
.locals 2
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/k/g;->e:Lkotlin/coroutines/Continuation;
2020-05-17 12:40:10 +00:00
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
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/k/g;->e:Lkotlin/coroutines/Continuation;
2020-05-17 12:40:10 +00:00
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
2020-07-14 22:43:59 +00:00
sget-object v0, Li0/k/h/a;->d:Li0/k/h/a;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v1, p0, Li0/k/g;->d:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
sget-object v2, Li0/k/h/a;->e:Li0/k/h/a;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ne v1, v2, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
sget-object v1, Li0/k/g;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, p0, v2, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_0
2020-05-17 12:40:10 +00:00
return-object v0
:cond_0
2020-07-14 22:43:59 +00:00
iget-object v1, p0, Li0/k/g;->d:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
:cond_1
2020-07-14 22:43:59 +00:00
sget-object v2, Li0/k/h/a;->f:Li0/k/h/a;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ne v1, v2, :cond_2
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_2
2020-07-14 22:43:59 +00:00
instance-of v0, v1, Li0/d$a;
2020-07-08 16:44:49 +00:00
if-nez v0, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v0, v1
2020-05-17 12:40:10 +00:00
:goto_0
return-object v0
:cond_3
2020-07-14 22:43:59 +00:00
check-cast v1, Li0/d$a;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v0, v1, Li0/d$a;->exception:Ljava/lang/Throwable;
2020-05-17 12:40:10 +00:00
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
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/k/g;->d:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
sget-object v1, Li0/k/h/a;->e:Li0/k/h/a;
2020-05-17 12:40:10 +00:00
if-ne v0, v1, :cond_1
2020-07-14 22:43:59 +00:00
sget-object v0, Li0/k/g;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2020-05-17 12:40:10 +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-void
:cond_1
2020-07-14 22:43:59 +00:00
sget-object v1, Li0/k/h/a;->d:Li0/k/h/a;
2020-05-17 12:40:10 +00:00
if-ne v0, v1, :cond_2
2020-07-14 22:43:59 +00:00
sget-object v0, Li0/k/g;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
sget-object v2, Li0/k/h/a;->f:Li0/k/h/a;
2020-05-17 12:40:10 +00:00
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
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/k/g;->e:Lkotlin/coroutines/Continuation;
2020-05-17 12:40:10 +00:00
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 "
2020-07-14 22:43:59 +00:00
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-07-14 22:43:59 +00:00
iget-object v1, p0, Li0/k/g;->e:Lkotlin/coroutines/Continuation;
2020-05-17 12:40:10 +00:00
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