x0.smali
.class public final Lbb/x0;
.super Lfb/g0;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lfb/g0<",
"TT;>;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
.end annotation
# static fields
.field private static final e:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
# instance fields
.field private volatile _decision:I
# direct methods
.method static constructor <clinit>()V
.registers 2
const-class v0, Lbb/x0;
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, Lbb/x0;->e:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
return-void
.end method
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/d;)V
.registers 3
.param p1 # Lkotlin/coroutines/CoroutineContext;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p2 # Lkotlin/coroutines/d;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/CoroutineContext;",
"Lkotlin/coroutines/d<",
"-TT;>;)V"
}
.end annotation
invoke-direct {p0, p1, p2}, Lfb/g0;-><init>(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/d;)V
return-void
.end method
.method private final R0()Z
.registers 6
sget-object v0, Lbb/x0;->e:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
:cond_2
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I
move-result v1
const/4 v2, 0x0
const/4 v3, 0x1
if-eqz v1, :cond_19
if-ne v1, v3, :cond_d
return v2
:cond_d
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Already resumed"
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_19
sget-object v1, Lbb/x0;->e:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
const/4 v4, 0x2
invoke-virtual {v1, p0, v2, v4}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
move-result v1
if-eqz v1, :cond_2
return v3
.end method
.method private final S0()Z
.registers 5
sget-object v0, Lbb/x0;->e:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
:cond_2
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_19
const/4 v0, 0x2
if-ne v1, v0, :cond_d
return v2
:cond_d
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_19
sget-object v1, Lbb/x0;->e:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
const/4 v3, 0x1
invoke-virtual {v1, p0, v2, v3}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
move-result v1
if-eqz v1, :cond_2
return v3
.end method
# virtual methods
.method protected L(Ljava/lang/Object;)V
.registers 2
invoke-virtual {p0, p1}, Lbb/x0;->M0(Ljava/lang/Object;)V
return-void
.end method
.method protected M0(Ljava/lang/Object;)V
.registers 5
invoke-direct {p0}, Lbb/x0;->R0()Z
move-result v0
if-eqz v0, :cond_7
return-void
:cond_7
iget-object v0, p0, Lfb/g0;->d:Lkotlin/coroutines/d;
invoke-static {v0}, Lma/b;->b(Lkotlin/coroutines/d;)Lkotlin/coroutines/d;
move-result-object v0
iget-object v1, p0, Lfb/g0;->d:Lkotlin/coroutines/d;
invoke-static {p1, v1}, Lbb/d0;->a(Ljava/lang/Object;Lkotlin/coroutines/d;)Ljava/lang/Object;
move-result-object p1
const/4 v1, 0x2
const/4 v2, 0x0
invoke-static {v0, p1, v2, v1, v2}, Lfb/m;->c(Lkotlin/coroutines/d;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
return-void
.end method
.method public final Q0()Ljava/lang/Object;
.registers 3
invoke-direct {p0}, Lbb/x0;->S0()Z
move-result v0
if-eqz v0, :cond_b
invoke-static {}, Lma/b;->c()Ljava/lang/Object;
move-result-object v0
return-object v0
:cond_b
invoke-virtual {p0}, Lbb/c2;->h0()Ljava/lang/Object;
move-result-object v0
invoke-static {v0}, Lbb/d2;->h(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
instance-of v1, v0, Lbb/z;
if-nez v1, :cond_18
return-object v0
:cond_18
check-cast v0, Lbb/z;
iget-object v0, v0, Lbb/z;->a:Ljava/lang/Throwable;
throw v0
.end method