apkfuckery/com.discord/smali_classes2/x/a/k0.smali
2020-02-20 20:33:18 +01:00

144 lines
2.8 KiB
Smali

.class public final Lx/a/k0;
.super Lx/a/a2/u;
.source "Builders.common.kt"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lx/a/a2/u<",
"TT;>;"
}
.end annotation
# static fields
.field public static final h:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
# instance fields
.field public volatile _decision:I
# direct methods
.method public static constructor <clinit>()V
.locals 2
const-class v0, Lx/a/k0;
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, Lx/a/k0;->h:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
return-void
.end method
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/Continuation;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/CoroutineContext;",
"Lkotlin/coroutines/Continuation<",
"-TT;>;)V"
}
.end annotation
const/4 v0, 0x0
if-eqz p1, :cond_1
if-eqz p2, :cond_0
invoke-direct {p0, p1, p2}, Lx/a/a2/u;-><init>(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/Continuation;)V
const/4 p1, 0x0
iput p1, p0, Lx/a/k0;->_decision:I
return-void
:cond_0
const-string p1, "uCont"
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
throw v0
:cond_1
const-string p1, "context"
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
throw v0
.end method
# virtual methods
.method public a(Ljava/lang/Object;I)V
.locals 4
:cond_0
iget v0, p0, Lx/a/k0;->_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 p2, "Already resumed"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_2
sget-object v0, Lx/a/k0;->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
invoke-super {p0, p1, p2}, Lx/a/a2/u;->a(Ljava/lang/Object;I)V
return-void
.end method
.method public l()I
.locals 1
const/4 v0, 0x0
return v0
.end method