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

107 lines
2.6 KiB
Smali

.class public final Lx/a/j;
.super Lx/a/q;
.source "CompletedExceptionally.kt"
# static fields
.field public static final c:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
# instance fields
.field public volatile _resumed:I
# direct methods
.method public static constructor <clinit>()V
.locals 2
const-class v0, Lx/a/j;
const-string v1, "_resumed"
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/j;->c:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
return-void
.end method
.method public constructor <init>(Lkotlin/coroutines/Continuation;Ljava/lang/Throwable;Z)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation<",
"*>;",
"Ljava/lang/Throwable;",
"Z)V"
}
.end annotation
if-eqz p1, :cond_1
if-eqz p2, :cond_0
goto :goto_0
:cond_0
new-instance p2, Ljava/util/concurrent/CancellationException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Continuation "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p1, " was cancelled normally"
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/util/concurrent/CancellationException;-><init>(Ljava/lang/String;)V
:goto_0
invoke-direct {p0, p2, p3}, Lx/a/q;-><init>(Ljava/lang/Throwable;Z)V
const/4 p1, 0x0
iput p1, p0, Lx/a/j;->_resumed:I
return-void
:cond_1
const-string p1, "continuation"
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
# virtual methods
.method public final b()Z
.locals 3
sget-object v0, Lx/a/j;->c:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
const/4 v1, 0x0
const/4 v2, 0x1
invoke-virtual {v0, p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
move-result v0
return v0
.end method