* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
3367 lines
71 KiB
Smali
3367 lines
71 KiB
Smali
.class public Lkotlinx/coroutines/CancellableContinuationImpl;
|
|
.super Lkotlinx/coroutines/DispatchedTask;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lkotlinx/coroutines/CancellableContinuation;
|
|
.implements Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
.implements Lkotlinx/coroutines/Waiter;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lkotlinx/coroutines/DispatchedTask<",
|
|
"TT;>;",
|
|
"Lkotlinx/coroutines/CancellableContinuation<",
|
|
"TT;>;",
|
|
"Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;",
|
|
"Lkotlinx/coroutines/Waiter;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u00002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\u0008\u0002\u0008\u0011\u0018\u0000*\u0006\u0008\u0000\u0010\u0001 \u00002\u0008\u0012\u0004\u0012\u00028\u00000\u00022\u0008\u0012\u0004\u0012\u00028\u00000\u00032\u00060\u0004j\u0002`\u00052\u00020\u0006R\u000b\u0010\u0008\u001a\u00020\u00078\u0002X\u0082\u0004R\u0013\u0010\u000b\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\n0\t8\u0002X\u0082\u0004R\u0013\u0010\r\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u000c0\t8\u0002X\u0082\u0004\u00a8\u0006\u000e"
|
|
}
|
|
d2 = {
|
|
"Lkotlinx/coroutines/CancellableContinuationImpl;",
|
|
"T",
|
|
"Lkotlinx/coroutines/DispatchedTask;",
|
|
"Lkotlinx/coroutines/CancellableContinuation;",
|
|
"Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;",
|
|
"Lkotlinx/coroutines/internal/CoroutineStackFrame;",
|
|
"Lkotlinx/coroutines/Waiter;",
|
|
"Lkotlinx/atomicfu/AtomicInt;",
|
|
"_decisionAndIndex",
|
|
"Lkotlinx/atomicfu/AtomicRef;",
|
|
"Lkotlinx/coroutines/DisposableHandle;",
|
|
"_parentHandle",
|
|
"",
|
|
"_state",
|
|
"kotlinx-coroutines-core"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x9,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/PublishedApi;
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nCancellableContinuationImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CancellableContinuationImpl.kt\nkotlinx/coroutines/CancellableContinuationImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 CancellableContinuationImpl.kt\nkotlinx/coroutines/CancellableContinuationImplKt\n+ 4 CompletionHandler.kt\nkotlinx/coroutines/CompletionHandlerKt\n+ 5 StackTraceRecovery.kt\nkotlinx/coroutines/internal/StackTraceRecoveryKt\n*L\n1#1,658:1\n226#1,2:662\n228#1,8:665\n226#1,10:673\n226#1,10:684\n1#2:659\n20#3:660\n20#3:661\n18#3:683\n17#3:694\n18#3,3:695\n17#3:698\n18#3,3:699\n18#3:707\n17#3,4:708\n18#4:664\n9#4:706\n57#5,2:702\n57#5,2:704\n57#5,2:712\n*S KotlinDebug\n*F\n+ 1 CancellableContinuationImpl.kt\nkotlinx/coroutines/CancellableContinuationImpl\n*L\n242#1:662,2\n242#1:665,8\n245#1:673,10\n250#1:684,10\n68#1:660\n154#1:661\n248#1:683\n273#1:694\n274#1:695,3\n283#1:698\n284#1:699,3\n385#1:707\n388#1:708,4\n242#1:664\n346#1:706\n325#1:702,2\n335#1:704,2\n609#1:712,2\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic j:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
.field public static final synthetic k:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.field public static final synthetic l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
|
|
# instance fields
|
|
.field private volatile synthetic _decisionAndIndex$volatile:I
|
|
|
|
.field private volatile synthetic _parentHandle$volatile:Ljava/lang/Object;
|
|
|
|
.field private volatile synthetic _state$volatile:Ljava/lang/Object;
|
|
|
|
.field public final h:Lkotlin/coroutines/Continuation;
|
|
|
|
.field public final i:Lkotlin/coroutines/CoroutineContext;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const-string v0, "_decisionAndIndex$volatile"
|
|
|
|
const-class v1, Lkotlinx/coroutines/CancellableContinuationImpl;
|
|
|
|
invoke-static {v1, v0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->j:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
const-string v0, "_state$volatile"
|
|
|
|
const-class v2, Ljava/lang/Object;
|
|
|
|
invoke-static {v1, v2, v0}, 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, Lkotlinx/coroutines/CancellableContinuationImpl;->k:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
const-string v0, "_parentHandle$volatile"
|
|
|
|
invoke-static {v1, v2, v0}, 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, Lkotlinx/coroutines/CancellableContinuationImpl;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(ILkotlin/coroutines/Continuation;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lkotlinx/coroutines/DispatchedTask;-><init>(I)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iput-object p2, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->h:Lkotlin/coroutines/Continuation;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-interface {p2}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p1
|
|
|
|
.line 10
|
|
iput-object p1, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->i:Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.line 11
|
|
.line 12
|
|
const p1, 0x1fffffff
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
iput p1, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->_decisionAndIndex$volatile:I
|
|
|
|
.line 16
|
|
.line 17
|
|
sget-object p1, Lkotlinx/coroutines/Active;->c:Lkotlinx/coroutines/Active;
|
|
|
|
.line 18
|
|
.line 19
|
|
iput-object p1, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->_state$volatile:Ljava/lang/Object;
|
|
|
|
.line 20
|
|
.line 21
|
|
return-void
|
|
.end method
|
|
|
|
.method public static C(Lkotlinx/coroutines/NotCompleted;Ljava/lang/Object;ILkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
|
.locals 6
|
|
|
|
.line 1
|
|
instance-of v0, p1, Lkotlinx/coroutines/CompletedExceptionally;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
return-object p1
|
|
|
|
.line 6
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 7
|
|
if-eq p2, v0, :cond_2
|
|
|
|
.line 8
|
|
.line 9
|
|
const/4 v0, 0x2
|
|
|
|
.line 10
|
|
if-ne p2, v0, :cond_1
|
|
|
|
.line 11
|
|
.line 12
|
|
goto :goto_0
|
|
|
|
.line 13
|
|
:cond_1
|
|
return-object p1
|
|
|
|
.line 14
|
|
:cond_2
|
|
:goto_0
|
|
if-nez p3, :cond_3
|
|
|
|
.line 15
|
|
.line 16
|
|
instance-of p2, p0, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 17
|
|
.line 18
|
|
if-nez p2, :cond_3
|
|
|
|
.line 19
|
|
.line 20
|
|
return-object p1
|
|
|
|
.line 21
|
|
:cond_3
|
|
new-instance v0, Lkotlinx/coroutines/CompletedContinuation;
|
|
|
|
.line 22
|
|
.line 23
|
|
instance-of p2, p0, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 24
|
|
.line 25
|
|
if-eqz p2, :cond_4
|
|
|
|
.line 26
|
|
.line 27
|
|
check-cast p0, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 28
|
|
.line 29
|
|
:goto_1
|
|
move-object v2, p0
|
|
|
|
.line 30
|
|
goto :goto_2
|
|
|
|
.line 31
|
|
:cond_4
|
|
const/4 p0, 0x0
|
|
|
|
.line 32
|
|
goto :goto_1
|
|
|
|
.line 33
|
|
:goto_2
|
|
const/4 v4, 0x0
|
|
|
|
.line 34
|
|
const/16 v5, 0x10
|
|
|
|
.line 35
|
|
.line 36
|
|
move-object v1, p1
|
|
|
|
.line 37
|
|
move-object v3, p3
|
|
|
|
.line 38
|
|
invoke-direct/range {v0 .. v5}, Lkotlinx/coroutines/CompletedContinuation;-><init>(Ljava/lang/Object;Lkotlinx/coroutines/CancelHandler;Lkotlin/jvm/functions/Function1;Ljava/lang/Throwable;I)V
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static x(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 2
|
|
.line 3
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
.line 4
|
|
.line 5
|
|
const-string v2, "It\'s prohibited to register multiple handlers, tried to register "
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
const-string p0, ", already has "
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object p0
|
|
|
|
.line 25
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object p0
|
|
|
|
.line 29
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final A(Ljava/lang/Object;ILkotlin/jvm/functions/Function1;)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
:goto_0
|
|
sget-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->k:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v1
|
|
|
|
.line 7
|
|
instance-of v2, v1, Lkotlinx/coroutines/NotCompleted;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 10
|
|
.line 11
|
|
move-object v2, v1
|
|
|
|
.line 12
|
|
check-cast v2, Lkotlinx/coroutines/NotCompleted;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {v2, p1, p2, p3}, Lkotlinx/coroutines/CancellableContinuationImpl;->C(Lkotlinx/coroutines/NotCompleted;Ljava/lang/Object;ILkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v2
|
|
|
|
.line 18
|
|
:cond_0
|
|
invoke-virtual {v0, p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v3
|
|
|
|
.line 22
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->w()Z
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result p1
|
|
|
|
.line 28
|
|
if-nez p1, :cond_1
|
|
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->n()V
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
:cond_1
|
|
invoke-virtual {p0, p2}, Lkotlinx/coroutines/CancellableContinuationImpl;->o(I)V
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
return-void
|
|
|
|
.line 37
|
|
:cond_2
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result-object v3
|
|
|
|
.line 41
|
|
if-eq v3, v1, :cond_0
|
|
|
|
.line 42
|
|
.line 43
|
|
goto :goto_0
|
|
|
|
.line 44
|
|
:cond_3
|
|
instance-of p2, v1, Lkotlinx/coroutines/CancelledContinuation;
|
|
|
|
.line 45
|
|
.line 46
|
|
if-eqz p2, :cond_5
|
|
|
|
.line 47
|
|
.line 48
|
|
check-cast v1, Lkotlinx/coroutines/CancelledContinuation;
|
|
|
|
.line 49
|
|
.line 50
|
|
sget-object p2, Lkotlinx/coroutines/CancelledContinuation;->c:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
.line 51
|
|
.line 52
|
|
const/4 v0, 0x0
|
|
|
|
.line 53
|
|
const/4 v2, 0x1
|
|
|
|
.line 54
|
|
invoke-virtual {p2, v1, v0, v2}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
move-result p2
|
|
|
|
.line 58
|
|
if-eqz p2, :cond_5
|
|
|
|
.line 59
|
|
.line 60
|
|
if-eqz p3, :cond_4
|
|
|
|
.line 61
|
|
.line 62
|
|
iget-object p1, v1, Lkotlinx/coroutines/CompletedExceptionally;->a:Ljava/lang/Throwable;
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-virtual {p0, p3, p1}, Lkotlinx/coroutines/CancellableContinuationImpl;->j(Lkotlin/jvm/functions/Function1;Ljava/lang/Throwable;)V
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
:cond_4
|
|
return-void
|
|
|
|
.line 68
|
|
:cond_5
|
|
new-instance p2, Ljava/lang/IllegalStateException;
|
|
|
|
.line 69
|
|
.line 70
|
|
new-instance p3, Ljava/lang/StringBuilder;
|
|
|
|
.line 71
|
|
.line 72
|
|
const-string v0, "Already resumed, but proposed with update "
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
move-result-object p1
|
|
|
|
.line 84
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
move-result-object p1
|
|
|
|
.line 88
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
throw p2
|
|
.end method
|
|
|
|
.method public final B(Lkotlinx/coroutines/CoroutineDispatcher;Ljava/lang/Object;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->h:Lkotlin/coroutines/Continuation;
|
|
|
|
.line 2
|
|
.line 3
|
|
instance-of v1, v0, Lkotlinx/coroutines/internal/DispatchedContinuation;
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 v2, 0x0
|
|
|
|
.line 6
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
check-cast v0, Lkotlinx/coroutines/internal/DispatchedContinuation;
|
|
|
|
.line 9
|
|
.line 10
|
|
goto :goto_0
|
|
|
|
.line 11
|
|
:cond_0
|
|
move-object v0, v2
|
|
|
|
.line 12
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
iget-object v0, v0, Lkotlinx/coroutines/internal/DispatchedContinuation;->h:Lkotlinx/coroutines/CoroutineDispatcher;
|
|
|
|
.line 15
|
|
.line 16
|
|
goto :goto_1
|
|
|
|
.line 17
|
|
:cond_1
|
|
move-object v0, v2
|
|
|
|
.line 18
|
|
:goto_1
|
|
if-ne v0, p1, :cond_2
|
|
|
|
.line 19
|
|
.line 20
|
|
const/4 p1, 0x4
|
|
|
|
.line 21
|
|
goto :goto_2
|
|
|
|
.line 22
|
|
:cond_2
|
|
iget p1, p0, Lkotlinx/coroutines/DispatchedTask;->g:I
|
|
|
|
.line 23
|
|
.line 24
|
|
:goto_2
|
|
invoke-virtual {p0, p2, p1, v2}, Lkotlinx/coroutines/CancellableContinuationImpl;->A(Ljava/lang/Object;ILkotlin/jvm/functions/Function1;)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
return-void
|
|
.end method
|
|
|
|
.method public final D(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/internal/Symbol;
|
|
.locals 4
|
|
|
|
.line 1
|
|
:goto_0
|
|
sget-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->k:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v1
|
|
|
|
.line 7
|
|
instance-of v2, v1, Lkotlinx/coroutines/NotCompleted;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 10
|
|
.line 11
|
|
move-object v2, v1
|
|
|
|
.line 12
|
|
check-cast v2, Lkotlinx/coroutines/NotCompleted;
|
|
|
|
.line 13
|
|
.line 14
|
|
iget v3, p0, Lkotlinx/coroutines/DispatchedTask;->g:I
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-static {v2, p1, v3, p2}, Lkotlinx/coroutines/CancellableContinuationImpl;->C(Lkotlinx/coroutines/NotCompleted;Ljava/lang/Object;ILkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v2
|
|
|
|
.line 20
|
|
:cond_0
|
|
invoke-virtual {v0, p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result v3
|
|
|
|
.line 24
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->w()Z
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result p1
|
|
|
|
.line 30
|
|
sget-object p2, Lkotlinx/coroutines/CancellableContinuationImplKt;->a:Lkotlinx/coroutines/internal/Symbol;
|
|
|
|
.line 31
|
|
.line 32
|
|
if-nez p1, :cond_1
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->n()V
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
:cond_1
|
|
return-object p2
|
|
|
|
.line 38
|
|
:cond_2
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result-object v3
|
|
|
|
.line 42
|
|
if-eq v3, v1, :cond_0
|
|
|
|
.line 43
|
|
.line 44
|
|
goto :goto_0
|
|
|
|
.line 45
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
.line 46
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final a(Ljava/lang/Object;Ljava/util/concurrent/CancellationException;)V
|
|
.locals 6
|
|
|
|
.line 1
|
|
:goto_0
|
|
sget-object p1, Lkotlinx/coroutines/CancellableContinuationImpl;->k:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p1, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v1
|
|
|
|
.line 7
|
|
instance-of v0, v1, Lkotlinx/coroutines/NotCompleted;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-nez v0, :cond_9
|
|
|
|
.line 10
|
|
.line 11
|
|
instance-of v0, v1, Lkotlinx/coroutines/CompletedExceptionally;
|
|
|
|
.line 12
|
|
.line 13
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
goto :goto_1
|
|
|
|
.line 16
|
|
:cond_0
|
|
instance-of v0, v1, Lkotlinx/coroutines/CompletedContinuation;
|
|
|
|
.line 17
|
|
.line 18
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 19
|
|
.line 20
|
|
move-object v0, v1
|
|
|
|
.line 21
|
|
check-cast v0, Lkotlinx/coroutines/CompletedContinuation;
|
|
|
|
.line 22
|
|
.line 23
|
|
iget-object v2, v0, Lkotlinx/coroutines/CompletedContinuation;->e:Ljava/lang/Throwable;
|
|
|
|
.line 24
|
|
.line 25
|
|
if-nez v2, :cond_4
|
|
|
|
.line 26
|
|
.line 27
|
|
const/4 v2, 0x0
|
|
|
|
.line 28
|
|
const/16 v3, 0xf
|
|
|
|
.line 29
|
|
.line 30
|
|
invoke-static {v0, v2, p2, v3}, Lkotlinx/coroutines/CompletedContinuation;->a(Lkotlinx/coroutines/CompletedContinuation;Lkotlinx/coroutines/CancelHandler;Ljava/lang/Throwable;I)Lkotlinx/coroutines/CompletedContinuation;
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result-object v2
|
|
|
|
.line 34
|
|
:cond_1
|
|
invoke-virtual {p1, p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result v3
|
|
|
|
.line 38
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 39
|
|
.line 40
|
|
iget-object p1, v0, Lkotlinx/coroutines/CompletedContinuation;->b:Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 41
|
|
.line 42
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {p0, p1, p2}, Lkotlinx/coroutines/CancellableContinuationImpl;->i(Lkotlinx/coroutines/CancelHandler;Ljava/lang/Throwable;)V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
:cond_2
|
|
iget-object p1, v0, Lkotlinx/coroutines/CompletedContinuation;->c:Lkotlin/jvm/functions/Function1;
|
|
|
|
.line 48
|
|
.line 49
|
|
if-eqz p1, :cond_7
|
|
|
|
.line 50
|
|
.line 51
|
|
invoke-virtual {p0, p1, p2}, Lkotlinx/coroutines/CancellableContinuationImpl;->j(Lkotlin/jvm/functions/Function1;Ljava/lang/Throwable;)V
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
return-void
|
|
|
|
.line 55
|
|
:cond_3
|
|
invoke-virtual {p1, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
move-result-object v3
|
|
|
|
.line 59
|
|
if-eq v3, v1, :cond_1
|
|
|
|
.line 60
|
|
.line 61
|
|
move-object v4, p2
|
|
|
|
.line 62
|
|
goto :goto_2
|
|
|
|
.line 63
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 64
|
|
.line 65
|
|
const-string p2, "Must be called at most once"
|
|
|
|
.line 66
|
|
.line 67
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
throw p1
|
|
|
|
.line 71
|
|
:cond_5
|
|
new-instance v0, Lkotlinx/coroutines/CompletedContinuation;
|
|
|
|
.line 72
|
|
.line 73
|
|
const/4 v3, 0x0
|
|
|
|
.line 74
|
|
const/16 v5, 0xe
|
|
|
|
.line 75
|
|
.line 76
|
|
const/4 v2, 0x0
|
|
|
|
.line 77
|
|
move-object v4, p2
|
|
|
|
.line 78
|
|
invoke-direct/range {v0 .. v5}, Lkotlinx/coroutines/CompletedContinuation;-><init>(Ljava/lang/Object;Lkotlinx/coroutines/CancelHandler;Lkotlin/jvm/functions/Function1;Ljava/lang/Throwable;I)V
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
:cond_6
|
|
invoke-virtual {p1, p0, v1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
move-result p2
|
|
|
|
.line 85
|
|
if-eqz p2, :cond_8
|
|
|
|
.line 86
|
|
.line 87
|
|
:cond_7
|
|
:goto_1
|
|
return-void
|
|
|
|
.line 88
|
|
:cond_8
|
|
invoke-virtual {p1, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
move-result-object p2
|
|
|
|
.line 92
|
|
if-eq p2, v1, :cond_6
|
|
|
|
.line 93
|
|
.line 94
|
|
:goto_2
|
|
move-object p2, v4
|
|
|
|
.line 95
|
|
goto :goto_0
|
|
|
|
.line 96
|
|
:cond_9
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 97
|
|
.line 98
|
|
const-string p2, "Not completed"
|
|
|
|
.line 99
|
|
.line 100
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final b(Lkotlinx/coroutines/internal/Segment;I)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
:cond_0
|
|
sget-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->j:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v1
|
|
|
|
.line 7
|
|
const v2, 0x1fffffff
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
and-int v3, v1, v2
|
|
|
|
.line 11
|
|
.line 12
|
|
if-ne v3, v2, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
shr-int/lit8 v2, v1, 0x1d
|
|
|
|
.line 15
|
|
.line 16
|
|
shl-int/lit8 v2, v2, 0x1d
|
|
|
|
.line 17
|
|
.line 18
|
|
add-int/2addr v2, p2
|
|
|
|
.line 19
|
|
invoke-virtual {v0, p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result v0
|
|
|
|
.line 23
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/CancellableContinuationImpl;->v(Lkotlinx/coroutines/NotCompleted;)V
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
return-void
|
|
|
|
.line 29
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 30
|
|
.line 31
|
|
const-string p2, "invokeOnCancellation should be called at most once"
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final c()Lkotlin/coroutines/Continuation;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->h:Lkotlin/coroutines/Continuation;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final d(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/internal/Symbol;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2}, Lkotlinx/coroutines/CancellableContinuationImpl;->D(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/internal/Symbol;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final e(Ljava/lang/Object;)Ljava/lang/Throwable;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Lkotlinx/coroutines/DispatchedTask;->e(Ljava/lang/Object;)Ljava/lang/Throwable;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object p1
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 9
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final f(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 1
|
|
instance-of v0, p1, Lkotlinx/coroutines/CompletedContinuation;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
check-cast p1, Lkotlinx/coroutines/CompletedContinuation;
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object p1, p1, Lkotlinx/coroutines/CompletedContinuation;->a:Ljava/lang/Object;
|
|
|
|
.line 8
|
|
.line 9
|
|
:cond_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getCallerFrame()Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->h:Lkotlin/coroutines/Continuation;
|
|
|
|
.line 2
|
|
.line 3
|
|
instance-of v1, v0, Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
|
|
.line 4
|
|
.line 5
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
check-cast v0, Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
|
|
.line 8
|
|
.line 9
|
|
return-object v0
|
|
|
|
.line 10
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 11
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getContext()Lkotlin/coroutines/CoroutineContext;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->i:Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getStackTraceElement()Ljava/lang/StackTraceElement;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final h()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->k:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final i(Lkotlinx/coroutines/CancelHandler;Ljava/lang/Throwable;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-virtual {p1, p2}, Lkotlinx/coroutines/CancelHandlerBase;->e(Ljava/lang/Throwable;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
|
|
.line 5
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 6
|
|
new-instance p2, Lkotlinx/coroutines/CompletionHandlerException;
|
|
|
|
.line 7
|
|
.line 8
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 9
|
|
.line 10
|
|
const-string v1, "Exception in invokeOnCancellation handler for "
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v0
|
|
|
|
.line 22
|
|
invoke-direct {p2, v0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
iget-object p1, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->i:Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-static {p1, p2}, Lkotlinx/coroutines/CoroutineExceptionHandlerKt;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
return-void
|
|
.end method
|
|
|
|
.method public final j(Lkotlin/jvm/functions/Function1;Ljava/lang/Throwable;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-interface {p1, p2}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
|
|
.line 5
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 6
|
|
new-instance p2, Lkotlinx/coroutines/CompletionHandlerException;
|
|
|
|
.line 7
|
|
.line 8
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 9
|
|
.line 10
|
|
const-string v1, "Exception in resume onCancellation handler for "
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v0
|
|
|
|
.line 22
|
|
invoke-direct {p2, v0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
iget-object p1, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->i:Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-static {p1, p2}, Lkotlinx/coroutines/CoroutineExceptionHandlerKt;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
return-void
|
|
.end method
|
|
|
|
.method public final k(Lkotlinx/coroutines/internal/Segment;Ljava/lang/Throwable;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object p2, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->i:Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.line 2
|
|
.line 3
|
|
sget-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->j:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v0
|
|
|
|
.line 9
|
|
const v1, 0x1fffffff
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
and-int/2addr v0, v1
|
|
|
|
.line 13
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
:try_start_0
|
|
invoke-virtual {p1, v0, p2}, Lkotlinx/coroutines/internal/Segment;->g(ILkotlin/coroutines/CoroutineContext;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
return-void
|
|
|
|
.line 19
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 20
|
|
new-instance v0, Lkotlinx/coroutines/CompletionHandlerException;
|
|
|
|
.line 21
|
|
.line 22
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
.line 23
|
|
.line 24
|
|
const-string v2, "Exception in invokeOnCancellation handler for "
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result-object v1
|
|
|
|
.line 36
|
|
invoke-direct {v0, v1, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
invoke-static {p2, v0}, Lkotlinx/coroutines/CoroutineExceptionHandlerKt;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
return-void
|
|
|
|
.line 43
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 44
|
|
.line 45
|
|
const-string p2, "The index for Segment.onCancellation(..) is broken"
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final l(Ljava/lang/Throwable;)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
:goto_0
|
|
sget-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->k:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v1
|
|
|
|
.line 7
|
|
instance-of v2, v1, Lkotlinx/coroutines/NotCompleted;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-nez v2, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
return-void
|
|
|
|
.line 12
|
|
:cond_0
|
|
new-instance v2, Lkotlinx/coroutines/CancelledContinuation;
|
|
|
|
.line 13
|
|
.line 14
|
|
instance-of v3, v1, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 15
|
|
.line 16
|
|
if-nez v3, :cond_2
|
|
|
|
.line 17
|
|
.line 18
|
|
instance-of v3, v1, Lkotlinx/coroutines/internal/Segment;
|
|
|
|
.line 19
|
|
.line 20
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 21
|
|
.line 22
|
|
goto :goto_1
|
|
|
|
.line 23
|
|
:cond_1
|
|
const/4 v3, 0x0
|
|
|
|
.line 24
|
|
goto :goto_2
|
|
|
|
.line 25
|
|
:cond_2
|
|
:goto_1
|
|
const/4 v3, 0x1
|
|
|
|
.line 26
|
|
:goto_2
|
|
invoke-direct {v2, p0, p1, v3}, Lkotlinx/coroutines/CancelledContinuation;-><init>(Lkotlinx/coroutines/CancellableContinuationImpl;Ljava/lang/Throwable;Z)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_3
|
|
invoke-virtual {v0, p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
move-result v3
|
|
|
|
.line 33
|
|
if-eqz v3, :cond_7
|
|
|
|
.line 34
|
|
.line 35
|
|
move-object v0, v1
|
|
|
|
.line 36
|
|
check-cast v0, Lkotlinx/coroutines/NotCompleted;
|
|
|
|
.line 37
|
|
.line 38
|
|
instance-of v2, v0, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 39
|
|
.line 40
|
|
if-eqz v2, :cond_4
|
|
|
|
.line 41
|
|
.line 42
|
|
check-cast v1, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {p0, v1, p1}, Lkotlinx/coroutines/CancellableContinuationImpl;->i(Lkotlinx/coroutines/CancelHandler;Ljava/lang/Throwable;)V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
goto :goto_3
|
|
|
|
.line 48
|
|
:cond_4
|
|
instance-of v0, v0, Lkotlinx/coroutines/internal/Segment;
|
|
|
|
.line 49
|
|
.line 50
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 51
|
|
.line 52
|
|
check-cast v1, Lkotlinx/coroutines/internal/Segment;
|
|
|
|
.line 53
|
|
.line 54
|
|
invoke-virtual {p0, v1, p1}, Lkotlinx/coroutines/CancellableContinuationImpl;->k(Lkotlinx/coroutines/internal/Segment;Ljava/lang/Throwable;)V
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
:cond_5
|
|
:goto_3
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->w()Z
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
move-result p1
|
|
|
|
.line 61
|
|
if-nez p1, :cond_6
|
|
|
|
.line 62
|
|
.line 63
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->n()V
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
:cond_6
|
|
iget p1, p0, Lkotlinx/coroutines/DispatchedTask;->g:I
|
|
|
|
.line 67
|
|
.line 68
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/CancellableContinuationImpl;->o(I)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
return-void
|
|
|
|
.line 72
|
|
:cond_7
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
move-result-object v3
|
|
|
|
.line 76
|
|
if-eq v3, v1, :cond_3
|
|
|
|
.line 77
|
|
.line 78
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public final m(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lkotlinx/coroutines/DispatchedTask;->g:I
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0, p1, v0, p2}, Lkotlinx/coroutines/CancellableContinuationImpl;->A(Ljava/lang/Object;ILkotlin/jvm/functions/Function1;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final n()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v1
|
|
|
|
.line 7
|
|
check-cast v1, Lkotlinx/coroutines/DisposableHandle;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-nez v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
return-void
|
|
|
|
.line 12
|
|
:cond_0
|
|
invoke-interface {v1}, Lkotlinx/coroutines/DisposableHandle;->c()V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
sget-object v1, Lkotlinx/coroutines/NonDisposableHandle;->c:Lkotlinx/coroutines/NonDisposableHandle;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {v0, p0, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->set(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
return-void
|
|
.end method
|
|
|
|
.method public final o(I)V
|
|
.locals 6
|
|
|
|
.line 1
|
|
:cond_0
|
|
sget-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->j:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v1
|
|
|
|
.line 7
|
|
shr-int/lit8 v2, v1, 0x1d
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v2, :cond_b
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v0, 0x1
|
|
|
|
.line 12
|
|
if-ne v2, v0, :cond_a
|
|
|
|
.line 13
|
|
.line 14
|
|
const/4 v1, 0x4
|
|
|
|
.line 15
|
|
const/4 v2, 0x0
|
|
|
|
.line 16
|
|
if-ne p1, v1, :cond_1
|
|
|
|
.line 17
|
|
.line 18
|
|
move v1, v0
|
|
|
|
.line 19
|
|
goto :goto_0
|
|
|
|
.line 20
|
|
:cond_1
|
|
move v1, v2
|
|
|
|
.line 21
|
|
:goto_0
|
|
iget-object v3, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->h:Lkotlin/coroutines/Continuation;
|
|
|
|
.line 22
|
|
.line 23
|
|
if-nez v1, :cond_9
|
|
|
|
.line 24
|
|
.line 25
|
|
instance-of v4, v3, Lkotlinx/coroutines/internal/DispatchedContinuation;
|
|
|
|
.line 26
|
|
.line 27
|
|
if-eqz v4, :cond_9
|
|
|
|
.line 28
|
|
.line 29
|
|
const/4 v4, 0x2
|
|
|
|
.line 30
|
|
if-eq p1, v0, :cond_3
|
|
|
|
.line 31
|
|
.line 32
|
|
if-ne p1, v4, :cond_2
|
|
|
|
.line 33
|
|
.line 34
|
|
goto :goto_1
|
|
|
|
.line 35
|
|
:cond_2
|
|
move p1, v2
|
|
|
|
.line 36
|
|
goto :goto_2
|
|
|
|
.line 37
|
|
:cond_3
|
|
:goto_1
|
|
move p1, v0
|
|
|
|
.line 38
|
|
:goto_2
|
|
iget v5, p0, Lkotlinx/coroutines/DispatchedTask;->g:I
|
|
|
|
.line 39
|
|
.line 40
|
|
if-eq v5, v0, :cond_4
|
|
|
|
.line 41
|
|
.line 42
|
|
if-ne v5, v4, :cond_5
|
|
|
|
.line 43
|
|
.line 44
|
|
:cond_4
|
|
move v2, v0
|
|
|
|
.line 45
|
|
:cond_5
|
|
if-ne p1, v2, :cond_9
|
|
|
|
.line 46
|
|
.line 47
|
|
move-object p1, v3
|
|
|
|
.line 48
|
|
check-cast p1, Lkotlinx/coroutines/internal/DispatchedContinuation;
|
|
|
|
.line 49
|
|
.line 50
|
|
iget-object v1, p1, Lkotlinx/coroutines/internal/DispatchedContinuation;->h:Lkotlinx/coroutines/CoroutineDispatcher;
|
|
|
|
.line 51
|
|
.line 52
|
|
iget-object p1, p1, Lkotlinx/coroutines/internal/DispatchedContinuation;->i:Lkotlin/coroutines/Continuation;
|
|
|
|
.line 53
|
|
.line 54
|
|
invoke-interface {p1}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
move-result-object p1
|
|
|
|
.line 58
|
|
invoke-virtual {v1, p1}, Lkotlinx/coroutines/CoroutineDispatcher;->W(Lkotlin/coroutines/CoroutineContext;)Z
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result v2
|
|
|
|
.line 62
|
|
if-eqz v2, :cond_6
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-virtual {v1, p1, p0}, Lkotlinx/coroutines/CoroutineDispatcher;->S(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Runnable;)V
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
return-void
|
|
|
|
.line 68
|
|
:cond_6
|
|
invoke-static {}, Lkotlinx/coroutines/ThreadLocalEventLoop;->a()Lkotlinx/coroutines/EventLoop;
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
move-result-object p1
|
|
|
|
.line 72
|
|
iget-wide v1, p1, Lkotlinx/coroutines/EventLoop;->f:J
|
|
|
|
.line 73
|
|
.line 74
|
|
const-wide v4, 0x100000000L
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
cmp-long v1, v1, v4
|
|
|
|
.line 80
|
|
.line 81
|
|
if-ltz v1, :cond_7
|
|
|
|
.line 82
|
|
.line 83
|
|
invoke-virtual {p1, p0}, Lkotlinx/coroutines/EventLoop;->Z(Lkotlinx/coroutines/DispatchedTask;)V
|
|
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
return-void
|
|
|
|
.line 87
|
|
:cond_7
|
|
invoke-virtual {p1, v0}, Lkotlinx/coroutines/EventLoop;->a0(Z)V
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
:try_start_0
|
|
invoke-static {p0, v3, v0}, Lkotlinx/coroutines/DispatchedTaskKt;->a(Lkotlinx/coroutines/CancellableContinuationImpl;Lkotlin/coroutines/Continuation;Z)V
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
:cond_8
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/EventLoop;->b0()Z
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
move-result v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 97
|
|
if-nez v0, :cond_8
|
|
|
|
.line 98
|
|
.line 99
|
|
:goto_3
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/EventLoop;->X()V
|
|
|
|
.line 100
|
|
.line 101
|
|
.line 102
|
|
goto :goto_4
|
|
|
|
.line 103
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 104
|
|
const/4 v1, 0x0
|
|
|
|
.line 105
|
|
:try_start_1
|
|
invoke-virtual {p0, v0, v1}, Lkotlinx/coroutines/DispatchedTask;->g(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
.line 106
|
|
.line 107
|
|
.line 108
|
|
goto :goto_3
|
|
|
|
.line 109
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
.line 110
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/EventLoop;->X()V
|
|
|
|
.line 111
|
|
.line 112
|
|
.line 113
|
|
throw v0
|
|
|
|
.line 114
|
|
:cond_9
|
|
invoke-static {p0, v3, v1}, Lkotlinx/coroutines/DispatchedTaskKt;->a(Lkotlinx/coroutines/CancellableContinuationImpl;Lkotlin/coroutines/Continuation;Z)V
|
|
|
|
.line 115
|
|
.line 116
|
|
.line 117
|
|
return-void
|
|
|
|
.line 118
|
|
:cond_a
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 119
|
|
.line 120
|
|
const-string v0, "Already resumed"
|
|
|
|
.line 121
|
|
.line 122
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 123
|
|
.line 124
|
|
.line 125
|
|
throw p1
|
|
|
|
.line 126
|
|
:cond_b
|
|
const v2, 0x1fffffff
|
|
|
|
.line 127
|
|
.line 128
|
|
.line 129
|
|
and-int/2addr v2, v1
|
|
|
|
.line 130
|
|
const/high16 v3, 0x40000000 # 2.0f
|
|
|
|
.line 131
|
|
.line 132
|
|
add-int/2addr v3, v2
|
|
|
|
.line 133
|
|
invoke-virtual {v0, p0, v1, v3}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
|
|
|
.line 134
|
|
.line 135
|
|
.line 136
|
|
move-result v0
|
|
|
|
.line 137
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 138
|
|
.line 139
|
|
:goto_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public p(Lkotlinx/coroutines/JobSupport;)Ljava/lang/Throwable;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lkotlinx/coroutines/JobSupport;->j()Ljava/util/concurrent/CancellationException;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final q()Ljava/lang/Object;
|
|
.locals 5
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->w()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
:cond_0
|
|
sget-object v1, Lkotlinx/coroutines/CancellableContinuationImpl;->j:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1, p0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v2
|
|
|
|
.line 11
|
|
shr-int/lit8 v3, v2, 0x1d
|
|
|
|
.line 12
|
|
.line 13
|
|
if-eqz v3, :cond_7
|
|
|
|
.line 14
|
|
.line 15
|
|
const/4 v1, 0x2
|
|
|
|
.line 16
|
|
if-ne v3, v1, :cond_6
|
|
|
|
.line 17
|
|
.line 18
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->z()V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
:cond_1
|
|
sget-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->k:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v0
|
|
|
|
.line 29
|
|
instance-of v2, v0, Lkotlinx/coroutines/CompletedExceptionally;
|
|
|
|
.line 30
|
|
.line 31
|
|
if-nez v2, :cond_5
|
|
|
|
.line 32
|
|
.line 33
|
|
iget v2, p0, Lkotlinx/coroutines/DispatchedTask;->g:I
|
|
|
|
.line 34
|
|
.line 35
|
|
const/4 v3, 0x1
|
|
|
|
.line 36
|
|
if-eq v2, v3, :cond_2
|
|
|
|
.line 37
|
|
.line 38
|
|
if-ne v2, v1, :cond_4
|
|
|
|
.line 39
|
|
.line 40
|
|
:cond_2
|
|
iget-object v1, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->i:Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.line 41
|
|
.line 42
|
|
sget-object v2, Lkotlinx/coroutines/Job$Key;->c:Lkotlinx/coroutines/Job$Key;
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-interface {v1, v2}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result-object v1
|
|
|
|
.line 48
|
|
check-cast v1, Lkotlinx/coroutines/Job;
|
|
|
|
.line 49
|
|
.line 50
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 51
|
|
.line 52
|
|
invoke-interface {v1}, Lkotlinx/coroutines/Job;->isActive()Z
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result v2
|
|
|
|
.line 56
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 57
|
|
.line 58
|
|
goto :goto_0
|
|
|
|
.line 59
|
|
:cond_3
|
|
invoke-interface {v1}, Lkotlinx/coroutines/Job;->j()Ljava/util/concurrent/CancellationException;
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
move-result-object v1
|
|
|
|
.line 63
|
|
invoke-virtual {p0, v0, v1}, Lkotlinx/coroutines/CancellableContinuationImpl;->a(Ljava/lang/Object;Ljava/util/concurrent/CancellationException;)V
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
throw v1
|
|
|
|
.line 67
|
|
:cond_4
|
|
:goto_0
|
|
invoke-virtual {p0, v0}, Lkotlinx/coroutines/CancellableContinuationImpl;->f(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
move-result-object v0
|
|
|
|
.line 71
|
|
return-object v0
|
|
|
|
.line 72
|
|
:cond_5
|
|
check-cast v0, Lkotlinx/coroutines/CompletedExceptionally;
|
|
|
|
.line 73
|
|
.line 74
|
|
iget-object v0, v0, Lkotlinx/coroutines/CompletedExceptionally;->a:Ljava/lang/Throwable;
|
|
|
|
.line 75
|
|
.line 76
|
|
throw v0
|
|
|
|
.line 77
|
|
:cond_6
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 78
|
|
.line 79
|
|
const-string v1, "Already suspended"
|
|
|
|
.line 80
|
|
.line 81
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
throw v0
|
|
|
|
.line 85
|
|
:cond_7
|
|
const v3, 0x1fffffff
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
and-int/2addr v3, v2
|
|
|
|
.line 89
|
|
const/high16 v4, 0x20000000
|
|
|
|
.line 90
|
|
.line 91
|
|
add-int/2addr v4, v3
|
|
|
|
.line 92
|
|
invoke-virtual {v1, p0, v2, v4}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
|
|
|
.line 93
|
|
.line 94
|
|
.line 95
|
|
move-result v1
|
|
|
|
.line 96
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 97
|
|
.line 98
|
|
sget-object v1, Lkotlinx/coroutines/CancellableContinuationImpl;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 99
|
|
.line 100
|
|
invoke-virtual {v1, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
move-result-object v1
|
|
|
|
.line 104
|
|
check-cast v1, Lkotlinx/coroutines/DisposableHandle;
|
|
|
|
.line 105
|
|
.line 106
|
|
if-nez v1, :cond_8
|
|
|
|
.line 107
|
|
.line 108
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->s()Lkotlinx/coroutines/DisposableHandle;
|
|
|
|
.line 109
|
|
.line 110
|
|
.line 111
|
|
:cond_8
|
|
if-eqz v0, :cond_9
|
|
|
|
.line 112
|
|
.line 113
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->z()V
|
|
|
|
.line 114
|
|
.line 115
|
|
.line 116
|
|
:cond_9
|
|
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
|
|
|
|
.line 117
|
|
.line 118
|
|
.line 119
|
|
move-result-object v0
|
|
|
|
.line 120
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final r()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->s()Lkotlinx/coroutines/DisposableHandle;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
if-nez v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_0
|
|
sget-object v1, Lkotlinx/coroutines/CancellableContinuationImpl;->k:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v1, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v1
|
|
|
|
.line 14
|
|
instance-of v1, v1, Lkotlinx/coroutines/NotCompleted;
|
|
|
|
.line 15
|
|
.line 16
|
|
if-nez v1, :cond_1
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-interface {v0}, Lkotlinx/coroutines/DisposableHandle;->c()V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
sget-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 22
|
|
.line 23
|
|
sget-object v1, Lkotlinx/coroutines/NonDisposableHandle;->c:Lkotlinx/coroutines/NonDisposableHandle;
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {v0, p0, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->set(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final resumeWith(Ljava/lang/Object;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lkotlin/Result;->exceptionOrNull-impl(Ljava/lang/Object;)Ljava/lang/Throwable;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
if-nez v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_0
|
|
new-instance p1, Lkotlinx/coroutines/CompletedExceptionally;
|
|
|
|
.line 9
|
|
.line 10
|
|
const/4 v1, 0x0
|
|
|
|
.line 11
|
|
invoke-direct {p1, v0, v1}, Lkotlinx/coroutines/CompletedExceptionally;-><init>(Ljava/lang/Throwable;Z)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:goto_0
|
|
iget v0, p0, Lkotlinx/coroutines/DispatchedTask;->g:I
|
|
|
|
.line 15
|
|
.line 16
|
|
const/4 v1, 0x0
|
|
|
|
.line 17
|
|
invoke-virtual {p0, p1, v0, v1}, Lkotlinx/coroutines/CancellableContinuationImpl;->A(Ljava/lang/Object;ILkotlin/jvm/functions/Function1;)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
return-void
|
|
.end method
|
|
|
|
.method public final s()Lkotlinx/coroutines/DisposableHandle;
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->i:Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.line 2
|
|
.line 3
|
|
sget-object v1, Lkotlinx/coroutines/Job$Key;->c:Lkotlinx/coroutines/Job$Key;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-interface {v0, v1}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
check-cast v0, Lkotlinx/coroutines/Job;
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v1, 0x0
|
|
|
|
.line 12
|
|
if-nez v0, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
return-object v1
|
|
|
|
.line 15
|
|
:cond_0
|
|
new-instance v2, Lkotlinx/coroutines/ChildContinuation;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-direct {v2, p0}, Lkotlinx/coroutines/ChildContinuation;-><init>(Lkotlinx/coroutines/CancellableContinuationImpl;)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
const/4 v3, 0x2
|
|
|
|
.line 21
|
|
invoke-static {v0, v2, v3}, Lkotlinx/coroutines/Job$DefaultImpls;->a(Lkotlinx/coroutines/Job;Lkotlinx/coroutines/JobNode;I)Lkotlinx/coroutines/DisposableHandle;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v0
|
|
|
|
.line 25
|
|
:cond_1
|
|
sget-object v2, Lkotlinx/coroutines/CancellableContinuationImpl;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {v2, p0, v1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result v3
|
|
|
|
.line 31
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 32
|
|
.line 33
|
|
goto :goto_0
|
|
|
|
.line 34
|
|
:cond_2
|
|
invoke-virtual {v2, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v2
|
|
|
|
.line 38
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 39
|
|
.line 40
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final t(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget p1, p0, Lkotlinx/coroutines/DispatchedTask;->g:I
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/CancellableContinuationImpl;->o(I)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->y()Ljava/lang/String;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v1
|
|
|
|
.line 10
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
const/16 v1, 0x28
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
iget-object v1, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->h:Lkotlin/coroutines/Continuation;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-static {v1}, Lkotlinx/coroutines/DebugStringsKt;->b(Lkotlin/coroutines/Continuation;)Ljava/lang/String;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v1
|
|
|
|
.line 24
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
const-string v1, "){"
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
sget-object v1, Lkotlinx/coroutines/CancellableContinuationImpl;->k:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {v1, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v1
|
|
|
|
.line 38
|
|
instance-of v2, v1, Lkotlinx/coroutines/NotCompleted;
|
|
|
|
.line 39
|
|
.line 40
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 41
|
|
.line 42
|
|
const-string v1, "Active"
|
|
|
|
.line 43
|
|
.line 44
|
|
goto :goto_0
|
|
|
|
.line 45
|
|
:cond_0
|
|
instance-of v1, v1, Lkotlinx/coroutines/CancelledContinuation;
|
|
|
|
.line 46
|
|
.line 47
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 48
|
|
.line 49
|
|
const-string v1, "Cancelled"
|
|
|
|
.line 50
|
|
.line 51
|
|
goto :goto_0
|
|
|
|
.line 52
|
|
:cond_1
|
|
const-string v1, "Completed"
|
|
|
|
.line 53
|
|
.line 54
|
|
:goto_0
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
const-string v1, "}@"
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
invoke-static {p0}, Lkotlinx/coroutines/DebugStringsKt;->a(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result-object v1
|
|
|
|
.line 66
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
move-result-object v0
|
|
|
|
.line 73
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final u(Lkotlin/jvm/functions/Function1;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
instance-of v0, p1, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
check-cast p1, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 6
|
|
.line 7
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_0
|
|
new-instance v0, Lkotlinx/coroutines/InvokeOnCancel;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-direct {v0, p1}, Lkotlinx/coroutines/InvokeOnCancel;-><init>(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-object p1, v0
|
|
|
|
.line 14
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/CancellableContinuationImpl;->v(Lkotlinx/coroutines/NotCompleted;)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
return-void
|
|
.end method
|
|
|
|
.method public final v(Lkotlinx/coroutines/NotCompleted;)V
|
|
.locals 9
|
|
|
|
.line 1
|
|
:cond_0
|
|
:goto_0
|
|
sget-object v0, Lkotlinx/coroutines/CancellableContinuationImpl;->k:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v2
|
|
|
|
.line 7
|
|
instance-of v1, v2, Lkotlinx/coroutines/Active;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 10
|
|
.line 11
|
|
:cond_1
|
|
invoke-virtual {v0, p0, v2, p1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v1
|
|
|
|
.line 15
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 16
|
|
.line 17
|
|
goto/16 :goto_5
|
|
|
|
.line 18
|
|
.line 19
|
|
:cond_2
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result-object v1
|
|
|
|
.line 23
|
|
if-eq v1, v2, :cond_1
|
|
|
|
.line 24
|
|
.line 25
|
|
goto :goto_0
|
|
|
|
.line 26
|
|
:cond_3
|
|
instance-of v1, v2, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 27
|
|
.line 28
|
|
const/4 v7, 0x1
|
|
|
|
.line 29
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 30
|
|
.line 31
|
|
move v1, v7
|
|
|
|
.line 32
|
|
goto :goto_1
|
|
|
|
.line 33
|
|
:cond_4
|
|
instance-of v1, v2, Lkotlinx/coroutines/internal/Segment;
|
|
|
|
.line 34
|
|
.line 35
|
|
:goto_1
|
|
const/4 v3, 0x0
|
|
|
|
.line 36
|
|
if-nez v1, :cond_13
|
|
|
|
.line 37
|
|
.line 38
|
|
instance-of v1, v2, Lkotlinx/coroutines/CompletedExceptionally;
|
|
|
|
.line 39
|
|
.line 40
|
|
const/4 v8, 0x0
|
|
|
|
.line 41
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 42
|
|
.line 43
|
|
move-object v0, v2
|
|
|
|
.line 44
|
|
check-cast v0, Lkotlinx/coroutines/CompletedExceptionally;
|
|
|
|
.line 45
|
|
.line 46
|
|
sget-object v1, Lkotlinx/coroutines/CompletedExceptionally;->b:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-virtual {v1, v0, v8, v7}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result v1
|
|
|
|
.line 52
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 53
|
|
.line 54
|
|
instance-of v1, v2, Lkotlinx/coroutines/CancelledContinuation;
|
|
|
|
.line 55
|
|
.line 56
|
|
if-eqz v1, :cond_12
|
|
|
|
.line 57
|
|
.line 58
|
|
iget-object v0, v0, Lkotlinx/coroutines/CompletedExceptionally;->a:Ljava/lang/Throwable;
|
|
|
|
.line 59
|
|
.line 60
|
|
instance-of v1, p1, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 61
|
|
.line 62
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 63
|
|
.line 64
|
|
check-cast p1, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 65
|
|
.line 66
|
|
invoke-virtual {p0, p1, v0}, Lkotlinx/coroutines/CancellableContinuationImpl;->i(Lkotlinx/coroutines/CancelHandler;Ljava/lang/Throwable;)V
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
return-void
|
|
|
|
.line 70
|
|
:cond_5
|
|
const-string v1, "null cannot be cast to non-null type kotlinx.coroutines.internal.Segment<*>"
|
|
|
|
.line 71
|
|
.line 72
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
check-cast p1, Lkotlinx/coroutines/internal/Segment;
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {p0, p1, v0}, Lkotlinx/coroutines/CancellableContinuationImpl;->k(Lkotlinx/coroutines/internal/Segment;Ljava/lang/Throwable;)V
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
return-void
|
|
|
|
.line 81
|
|
:cond_6
|
|
invoke-static {p1, v2}, Lkotlinx/coroutines/CancellableContinuationImpl;->x(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
throw v3
|
|
|
|
.line 85
|
|
:cond_7
|
|
instance-of v1, v2, Lkotlinx/coroutines/CompletedContinuation;
|
|
|
|
.line 86
|
|
.line 87
|
|
const-string v4, "null cannot be cast to non-null type kotlinx.coroutines.CancelHandler"
|
|
|
|
.line 88
|
|
.line 89
|
|
if-eqz v1, :cond_e
|
|
|
|
.line 90
|
|
.line 91
|
|
move-object v1, v2
|
|
|
|
.line 92
|
|
check-cast v1, Lkotlinx/coroutines/CompletedContinuation;
|
|
|
|
.line 93
|
|
.line 94
|
|
iget-object v5, v1, Lkotlinx/coroutines/CompletedContinuation;->b:Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 95
|
|
.line 96
|
|
if-nez v5, :cond_d
|
|
|
|
.line 97
|
|
.line 98
|
|
instance-of v5, p1, Lkotlinx/coroutines/internal/Segment;
|
|
|
|
.line 99
|
|
.line 100
|
|
if-eqz v5, :cond_8
|
|
|
|
.line 101
|
|
.line 102
|
|
return-void
|
|
|
|
.line 103
|
|
:cond_8
|
|
invoke-static {p1, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 104
|
|
.line 105
|
|
.line 106
|
|
move-object v4, p1
|
|
|
|
.line 107
|
|
check-cast v4, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 108
|
|
.line 109
|
|
iget-object v5, v1, Lkotlinx/coroutines/CompletedContinuation;->e:Ljava/lang/Throwable;
|
|
|
|
.line 110
|
|
.line 111
|
|
if-eqz v5, :cond_9
|
|
|
|
.line 112
|
|
.line 113
|
|
move v6, v7
|
|
|
|
.line 114
|
|
goto :goto_2
|
|
|
|
.line 115
|
|
:cond_9
|
|
move v6, v8
|
|
|
|
.line 116
|
|
:goto_2
|
|
if-eqz v6, :cond_a
|
|
|
|
.line 117
|
|
.line 118
|
|
invoke-virtual {p0, v4, v5}, Lkotlinx/coroutines/CancellableContinuationImpl;->i(Lkotlinx/coroutines/CancelHandler;Ljava/lang/Throwable;)V
|
|
|
|
.line 119
|
|
.line 120
|
|
.line 121
|
|
return-void
|
|
|
|
.line 122
|
|
:cond_a
|
|
const/16 v5, 0x1d
|
|
|
|
.line 123
|
|
.line 124
|
|
invoke-static {v1, v4, v3, v5}, Lkotlinx/coroutines/CompletedContinuation;->a(Lkotlinx/coroutines/CompletedContinuation;Lkotlinx/coroutines/CancelHandler;Ljava/lang/Throwable;I)Lkotlinx/coroutines/CompletedContinuation;
|
|
|
|
.line 125
|
|
.line 126
|
|
.line 127
|
|
move-result-object v1
|
|
|
|
.line 128
|
|
:cond_b
|
|
invoke-virtual {v0, p0, v2, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 129
|
|
.line 130
|
|
.line 131
|
|
move-result v3
|
|
|
|
.line 132
|
|
if-eqz v3, :cond_c
|
|
|
|
.line 133
|
|
.line 134
|
|
goto :goto_3
|
|
|
|
.line 135
|
|
:cond_c
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 136
|
|
.line 137
|
|
.line 138
|
|
move-result-object v3
|
|
|
|
.line 139
|
|
if-eq v3, v2, :cond_b
|
|
|
|
.line 140
|
|
.line 141
|
|
move v7, v8
|
|
|
|
.line 142
|
|
:goto_3
|
|
if-eqz v7, :cond_0
|
|
|
|
.line 143
|
|
.line 144
|
|
goto :goto_5
|
|
|
|
.line 145
|
|
:cond_d
|
|
invoke-static {p1, v2}, Lkotlinx/coroutines/CancellableContinuationImpl;->x(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
.line 146
|
|
.line 147
|
|
.line 148
|
|
throw v3
|
|
|
|
.line 149
|
|
:cond_e
|
|
instance-of v1, p1, Lkotlinx/coroutines/internal/Segment;
|
|
|
|
.line 150
|
|
.line 151
|
|
if-eqz v1, :cond_f
|
|
|
|
.line 152
|
|
.line 153
|
|
return-void
|
|
|
|
.line 154
|
|
:cond_f
|
|
invoke-static {p1, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 155
|
|
.line 156
|
|
.line 157
|
|
move-object v3, p1
|
|
|
|
.line 158
|
|
check-cast v3, Lkotlinx/coroutines/CancelHandler;
|
|
|
|
.line 159
|
|
.line 160
|
|
new-instance v1, Lkotlinx/coroutines/CompletedContinuation;
|
|
|
|
.line 161
|
|
.line 162
|
|
const/4 v5, 0x0
|
|
|
|
.line 163
|
|
const/16 v6, 0x1c
|
|
|
|
.line 164
|
|
.line 165
|
|
const/4 v4, 0x0
|
|
|
|
.line 166
|
|
invoke-direct/range {v1 .. v6}, Lkotlinx/coroutines/CompletedContinuation;-><init>(Ljava/lang/Object;Lkotlinx/coroutines/CancelHandler;Lkotlin/jvm/functions/Function1;Ljava/lang/Throwable;I)V
|
|
|
|
.line 167
|
|
.line 168
|
|
.line 169
|
|
:cond_10
|
|
invoke-virtual {v0, p0, v2, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 170
|
|
.line 171
|
|
.line 172
|
|
move-result v3
|
|
|
|
.line 173
|
|
if-eqz v3, :cond_11
|
|
|
|
.line 174
|
|
.line 175
|
|
goto :goto_4
|
|
|
|
.line 176
|
|
:cond_11
|
|
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 177
|
|
.line 178
|
|
.line 179
|
|
move-result-object v3
|
|
|
|
.line 180
|
|
if-eq v3, v2, :cond_10
|
|
|
|
.line 181
|
|
.line 182
|
|
move v7, v8
|
|
|
|
.line 183
|
|
:goto_4
|
|
if-eqz v7, :cond_0
|
|
|
|
.line 184
|
|
.line 185
|
|
:cond_12
|
|
:goto_5
|
|
return-void
|
|
|
|
.line 186
|
|
:cond_13
|
|
invoke-static {p1, v2}, Lkotlinx/coroutines/CancellableContinuationImpl;->x(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
.line 187
|
|
.line 188
|
|
.line 189
|
|
throw v3
|
|
.end method
|
|
|
|
.method public final w()Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget v0, p0, Lkotlinx/coroutines/DispatchedTask;->g:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x2
|
|
|
|
.line 4
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 5
|
|
.line 6
|
|
const-string v0, "null cannot be cast to non-null type kotlinx.coroutines.internal.DispatchedContinuation<*>"
|
|
|
|
.line 7
|
|
.line 8
|
|
iget-object v1, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->h:Lkotlin/coroutines/Continuation;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-static {v1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
check-cast v1, Lkotlinx/coroutines/internal/DispatchedContinuation;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
sget-object v0, Lkotlinx/coroutines/internal/DispatchedContinuation;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v0
|
|
|
|
.line 24
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 25
|
|
.line 26
|
|
const/4 v0, 0x1
|
|
|
|
.line 27
|
|
return v0
|
|
|
|
.line 28
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 29
|
|
return v0
|
|
.end method
|
|
|
|
.method public y()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "CancellableContinuation"
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final z()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlinx/coroutines/CancellableContinuationImpl;->h:Lkotlin/coroutines/Continuation;
|
|
|
|
.line 2
|
|
.line 3
|
|
instance-of v1, v0, Lkotlinx/coroutines/internal/DispatchedContinuation;
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 v2, 0x0
|
|
|
|
.line 6
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
check-cast v0, Lkotlinx/coroutines/internal/DispatchedContinuation;
|
|
|
|
.line 9
|
|
.line 10
|
|
goto :goto_0
|
|
|
|
.line 11
|
|
:cond_0
|
|
move-object v0, v2
|
|
|
|
.line 12
|
|
:goto_0
|
|
if-eqz v0, :cond_8
|
|
|
|
.line 13
|
|
.line 14
|
|
sget-object v1, Lkotlinx/coroutines/internal/DispatchedContinuation;->l:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
.line 15
|
|
.line 16
|
|
:goto_1
|
|
invoke-virtual {v1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v3
|
|
|
|
.line 20
|
|
sget-object v4, Lkotlinx/coroutines/internal/DispatchedContinuationKt;->b:Lkotlinx/coroutines/internal/Symbol;
|
|
|
|
.line 21
|
|
.line 22
|
|
if-ne v3, v4, :cond_3
|
|
|
|
.line 23
|
|
.line 24
|
|
:cond_1
|
|
invoke-virtual {v1, v0, v4, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result v3
|
|
|
|
.line 28
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 29
|
|
.line 30
|
|
goto :goto_3
|
|
|
|
.line 31
|
|
:cond_2
|
|
invoke-virtual {v1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object v3
|
|
|
|
.line 35
|
|
if-eq v3, v4, :cond_1
|
|
|
|
.line 36
|
|
.line 37
|
|
goto :goto_1
|
|
|
|
.line 38
|
|
:cond_3
|
|
instance-of v4, v3, Ljava/lang/Throwable;
|
|
|
|
.line 39
|
|
.line 40
|
|
if-eqz v4, :cond_7
|
|
|
|
.line 41
|
|
.line 42
|
|
:goto_2
|
|
invoke-virtual {v1, v0, v3, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result v4
|
|
|
|
.line 46
|
|
if-eqz v4, :cond_5
|
|
|
|
.line 47
|
|
.line 48
|
|
move-object v2, v3
|
|
|
|
.line 49
|
|
check-cast v2, Ljava/lang/Throwable;
|
|
|
|
.line 50
|
|
.line 51
|
|
:goto_3
|
|
if-nez v2, :cond_4
|
|
|
|
.line 52
|
|
.line 53
|
|
goto :goto_4
|
|
|
|
.line 54
|
|
:cond_4
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/CancellableContinuationImpl;->n()V
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
invoke-virtual {p0, v2}, Lkotlinx/coroutines/CancellableContinuationImpl;->l(Ljava/lang/Throwable;)V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
return-void
|
|
|
|
.line 61
|
|
:cond_5
|
|
invoke-virtual {v1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result-object v4
|
|
|
|
.line 65
|
|
if-ne v4, v3, :cond_6
|
|
|
|
.line 66
|
|
.line 67
|
|
goto :goto_2
|
|
|
|
.line 68
|
|
:cond_6
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 69
|
|
.line 70
|
|
const-string v1, "Failed requirement."
|
|
|
|
.line 71
|
|
.line 72
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
throw v0
|
|
|
|
.line 76
|
|
:cond_7
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 77
|
|
.line 78
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
.line 79
|
|
.line 80
|
|
const-string v2, "Inconsistent state "
|
|
|
|
.line 81
|
|
.line 82
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
move-result-object v1
|
|
|
|
.line 92
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 93
|
|
.line 94
|
|
.line 95
|
|
move-result-object v1
|
|
|
|
.line 96
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
throw v0
|
|
|
|
.line 100
|
|
:cond_8
|
|
:goto_4
|
|
return-void
|
|
.end method
|