apkfuckery/com.discord/smali_classes2/z/a/e0.smali
2020-11-21 22:11:07 +00:00

208 lines
4.4 KiB
Smali

.class public final Lz/a/e0;
.super Lz/a/s1/m;
.source "Builders.common.kt"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lz/a/s1/m<",
"TT;>;"
}
.end annotation
# static fields
.field public static final h:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
# instance fields
.field private volatile _decision:I
# direct methods
.method public static constructor <clinit>()V
.locals 2
const-class v0, Lz/a/e0;
const-string v1, "_decision"
invoke-static {v0, v1}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
move-result-object v0
sput-object v0, Lz/a/e0;->h:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
return-void
.end method
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/Continuation;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/CoroutineContext;",
"Lkotlin/coroutines/Continuation<",
"-TT;>;)V"
}
.end annotation
invoke-direct {p0, p1, p2}, Lz/a/s1/m;-><init>(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/Continuation;)V
const/4 p1, 0x0
iput p1, p0, Lz/a/e0;->_decision:I
return-void
.end method
# virtual methods
.method public P(Ljava/lang/Object;)V
.locals 4
:cond_0
iget v0, p0, Lz/a/e0;->_decision:I
const/4 v1, 0x0
const/4 v2, 0x1
if-eqz v0, :cond_2
if-ne v0, v2, :cond_1
goto :goto_0
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Already resumed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_2
sget-object v0, Lz/a/e0;->h:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
const/4 v3, 0x2
invoke-virtual {v0, p0, v1, v3}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
move-result v0
if-eqz v0, :cond_0
const/4 v1, 0x1
:goto_0
if-eqz v1, :cond_3
return-void
:cond_3
iget-object v0, p0, Lz/a/s1/m;->g:Lkotlin/coroutines/Continuation;
invoke-static {v0}, Lf/h/a/f/f/n/f;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object v0
iget-object v1, p0, Lz/a/s1/m;->g:Lkotlin/coroutines/Continuation;
invoke-static {p1, v1}, Lf/h/a/f/f/n/f;->a0(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
invoke-static {v0, p1}, Lz/a/d0;->a(Lkotlin/coroutines/Continuation;Ljava/lang/Object;)V
return-void
.end method
.method public final S()Ljava/lang/Object;
.locals 3
:cond_0
iget v0, p0, Lz/a/e0;->_decision:I
const/4 v1, 0x0
if-eqz v0, :cond_2
const/4 v2, 0x2
if-ne v0, v2, :cond_1
goto :goto_0
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Already suspended"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_2
sget-object v0, Lz/a/e0;->h:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
const/4 v2, 0x1
invoke-virtual {v0, p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
move-result v0
if-eqz v0, :cond_0
const/4 v1, 0x1
:goto_0
if-eqz v1, :cond_3
sget-object v0, Ly/j/g/a;->d:Ly/j/g/a;
return-object v0
:cond_3
invoke-virtual {p0}, Lz/a/b1;->y()Ljava/lang/Object;
move-result-object v0
invoke-static {v0}, Lz/a/c1;->a(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
instance-of v1, v0, Lz/a/p;
if-nez v1, :cond_4
return-object v0
:cond_4
check-cast v0, Lz/a/p;
iget-object v0, v0, Lz/a/p;->a:Ljava/lang/Throwable;
throw v0
.end method
.method public h(Ljava/lang/Object;)V
.locals 0
invoke-virtual {p0, p1}, Lz/a/e0;->P(Ljava/lang/Object;)V
return-void
.end method