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

262 lines
6.1 KiB
Smali
Raw Normal View History

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