apkfuckery/com.discord/smali_classes2/m/s/f.smali

262 lines
6.1 KiB
Smali
Raw Normal View History

2019-12-18 07:41:41 +00:00
.class public final Lm/s/f;
2019-12-06 03:29:40 +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<",
2019-12-18 07:41:41 +00:00
"Lm/s/f<",
2019-12-06 03:29:40 +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
2019-12-18 07:41:41 +00:00
const-class v0, Lm/s/f;
2019-12-06 03:29:40 +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
2019-12-18 07:41:41 +00:00
sput-object v0, Lm/s/f;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2019-12-06 03:29:40 +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
if-eqz p1, :cond_0
2019-12-18 07:41:41 +00:00
sget-object v0, Lm/s/g/a;->e:Lm/s/g/a;
2019-12-06 03:29:40 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-12-18 07:41:41 +00:00
iput-object p1, p0, Lm/s/f;->e:Lkotlin/coroutines/Continuation;
2019-12-06 03:29:40 +00:00
2019-12-18 07:41:41 +00:00
iput-object v0, p0, Lm/s/f;->d:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
return-void
:cond_0
const-string p1, "delegate"
2019-12-18 07:41:41 +00:00
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
# virtual methods
.method public getCallerFrame()Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
.locals 2
2019-12-18 07:41:41 +00:00
iget-object v0, p0, Lm/s/f;->e:Lkotlin/coroutines/Continuation;
2019-12-06 03:29:40 +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
2019-12-18 07:41:41 +00:00
iget-object v0, p0, Lm/s/f;->e:Lkotlin/coroutines/Continuation;
2019-12-06 03:29:40 +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
2019-12-18 07:41:41 +00:00
iget-object v0, p0, Lm/s/f;->d:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2019-12-18 07:41:41 +00:00
sget-object v1, Lm/s/g/a;->e:Lm/s/g/a;
2019-12-06 03:29:40 +00:00
if-ne v0, v1, :cond_1
2019-12-18 07:41:41 +00:00
sget-object v0, Lm/s/f;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2019-12-06 03:29:40 +00:00
2019-12-18 07:41:41 +00:00
sget-object v2, Lm/s/g/a;->d:Lm/s/g/a;
2019-12-06 03:29:40 +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
2019-12-18 07:41:41 +00:00
sget-object v0, Lm/s/g/a;->d:Lm/s/g/a;
2019-12-06 03:29:40 +00:00
return-object v0
:cond_0
2019-12-18 07:41:41 +00:00
iget-object v0, p0, Lm/s/f;->d:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
:cond_1
2019-12-18 07:41:41 +00:00
sget-object v1, Lm/s/g/a;->f:Lm/s/g/a;
2019-12-06 03:29:40 +00:00
if-ne v0, v1, :cond_2
2019-12-18 07:41:41 +00:00
sget-object v0, Lm/s/g/a;->d:Lm/s/g/a;
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_2
2019-12-18 07:41:41 +00:00
instance-of v1, v0, Lm/i$b;
2019-12-06 03:29:40 +00:00
if-nez v1, :cond_3
:goto_0
return-object v0
:cond_3
2019-12-18 07:41:41 +00:00
check-cast v0, Lm/i$b;
2019-12-06 03:29:40 +00:00
2019-12-18 07:41:41 +00:00
iget-object v0, v0, Lm/i$b;->exception:Ljava/lang/Throwable;
2019-12-06 03:29:40 +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
2019-12-18 07:41:41 +00:00
iget-object v0, p0, Lm/s/f;->d:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2019-12-18 07:41:41 +00:00
sget-object v1, Lm/s/g/a;->e:Lm/s/g/a;
2019-12-06 03:29:40 +00:00
if-ne v0, v1, :cond_1
2019-12-18 07:41:41 +00:00
sget-object v0, Lm/s/f;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2019-12-06 03:29:40 +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
2019-12-18 07:41:41 +00:00
sget-object v1, Lm/s/g/a;->d:Lm/s/g/a;
2019-12-06 03:29:40 +00:00
if-ne v0, v1, :cond_2
2019-12-18 07:41:41 +00:00
sget-object v0, Lm/s/f;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2019-12-06 03:29:40 +00:00
2019-12-18 07:41:41 +00:00
sget-object v2, Lm/s/g/a;->f:Lm/s/g/a;
2019-12-06 03:29:40 +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
2019-12-18 07:41:41 +00:00
iget-object v0, p0, Lm/s/f;->e:Lkotlin/coroutines/Continuation;
2019-12-06 03:29:40 +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 "
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
2019-12-18 07:41:41 +00:00
iget-object v1, p0, Lm/s/f;->e:Lkotlin/coroutines/Continuation;
2019-12-06 03:29:40 +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