2020-07-14 22:43:59 +00:00
|
|
|
.class public Lj0/a/i;
|
|
|
|
.super Lj0/a/k0;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "CancellableContinuationImpl.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2020-07-14 22:43:59 +00:00
|
|
|
.implements Lj0/a/h;
|
2020-05-17 12:40:10 +00:00
|
|
|
.implements Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
2020-07-14 22:43:59 +00:00
|
|
|
"Lj0/a/k0<",
|
2020-05-17 12:40:10 +00:00
|
|
|
"TT;>;",
|
2020-07-14 22:43:59 +00:00
|
|
|
"Lj0/a/h<",
|
2020-05-17 12:40:10 +00:00
|
|
|
"TT;>;",
|
|
|
|
"Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final i:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
|
|
|
|
|
|
|
.field public static final j:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public volatile _decision:I
|
|
|
|
|
|
|
|
.field public volatile _state:Ljava/lang/Object;
|
|
|
|
|
|
|
|
.field public final g:Lkotlin/coroutines/CoroutineContext;
|
|
|
|
|
|
|
|
.field public final h:Lkotlin/coroutines/Continuation;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lkotlin/coroutines/Continuation<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
.field public volatile parentHandle:Lj0/a/m0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 3
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
const-class v0, Lj0/a/i;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
sput-object v0, Lj0/a/i;->i:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
const-class v0, Lj0/a/i;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-class v1, Ljava/lang/Object;
|
|
|
|
|
|
|
|
const-string v2, "_state"
|
|
|
|
|
|
|
|
invoke-static {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
sput-object v0, Lj0/a/i;->j:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Lkotlin/coroutines/Continuation;I)V
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/coroutines/Continuation<",
|
|
|
|
"-TT;>;I)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-direct {p0, p2}, Lj0/a/k0;-><init>(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p1, p0, Lj0/a/i;->h:Lkotlin/coroutines/Continuation;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-interface {p1}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p1, p0, Lj0/a/i;->g:Lkotlin/coroutines/CoroutineContext;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput p1, p0, Lj0/a/i;->_decision:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object p1, Lj0/a/b;->d:Lj0/a/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p1, p0, Lj0/a/i;->_state:Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public b(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
.locals 6
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Ljava/lang/Throwable;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v2, p0, Lj0/a/i;->_state:Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v3, v2, Lj0/a/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v1, p1, Lj0/a/f;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast v1, Lj0/a/f;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
2020-07-14 22:43:59 +00:00
|
|
|
new-instance v1, Lj0/a/z0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-direct {v1, p1}, Lj0/a/z0;-><init>(Lkotlin/jvm/functions/Function1;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object v3, Lj0/a/i;->j:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v3, p0, v2, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v1, v2, Lj0/a/f;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-nez v1, :cond_9
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v1, v2, Lj0/a/j;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v1, :cond_8
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-object v1, v2
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast v1, Lj0/a/j;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object v3, Lj0/a/r;->b:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1, v4, v5}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
|
|
|
|
:try_start_0
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v1, v2, Lj0/a/r;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
:cond_4
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast v2, Lj0/a/r;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, v2, Lj0/a/r;->a:Ljava/lang/Throwable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-interface {p1, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/i;->g:Lkotlin/coroutines/CoroutineContext;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v1, Lkotlinx/coroutines/CompletionHandlerException;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v3, "Exception in cancellation handler for "
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v1, v2, p1}, Lkotlinx/coroutines/CompletionHandlerException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {v0, v1}, Li0/i/t;->y(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_6
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p0, p1, v2}, Lj0/a/i;->l(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_7
|
2020-07-08 16:44:49 +00:00
|
|
|
throw v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_8
|
2020-07-08 16:44:49 +00:00
|
|
|
return-void
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_9
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p0, p1, v2}, Lj0/a/i;->l(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
.method public c(Lj0/a/x;Ljava/lang/Object;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 3
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
2020-07-14 22:43:59 +00:00
|
|
|
"Lj0/a/x;",
|
2020-07-08 16:44:49 +00:00
|
|
|
"TT;)V"
|
2020-05-17 12:40:10 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v0, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz p1, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v1, p0, Lj0/a/i;->h:Lkotlin/coroutines/Continuation;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v2, v1, Lj0/a/h0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-nez v2, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object v1, v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast v1, Lj0/a/h0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v1, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, v1, Lj0/a/h0;->j:Lj0/a/x;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_1
|
|
|
|
if-ne v0, p1, :cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 p1, 0x3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_2
|
2020-07-14 22:43:59 +00:00
|
|
|
iget p1, p0, Lj0/a/k0;->f:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_0
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p0, p2, p1}, Lj0/a/i;->m(Ljava/lang/Object;I)Lj0/a/j;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "$this$resumeUndispatched"
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public d(Ljava/lang/Object;Ljava/lang/Throwable;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v0, p1, Lj0/a/t;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
:try_start_0
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast p1, Lj0/a/t;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object p1, p1, Lj0/a/t;->b:Lkotlin/jvm/functions/Function1;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object p2, p0, Lj0/a/i;->g:Lkotlin/coroutines/CoroutineContext;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
new-instance v0, Lkotlinx/coroutines/CompletionHandlerException;
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v2, "Exception in cancellation handler for "
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, p1}, Lkotlinx/coroutines/CompletionHandlerException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {p2, v0}, Li0/i/t;->y(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "cause"
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public final e()Lkotlin/coroutines/Continuation;
|
|
|
|
.locals 1
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-07-08 16:44:49 +00:00
|
|
|
"()",
|
|
|
|
"Lkotlin/coroutines/Continuation<",
|
|
|
|
"TT;>;"
|
2020-05-17 12:40:10 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/i;->h:Lkotlin/coroutines/Continuation;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public f(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
")TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v0, p1, Lj0/a/s;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast p1, Lj0/a/s;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object p1, p1, Lj0/a/s;->a:Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v0, p1, Lj0/a/t;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v0, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast p1, Lj0/a/t;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object p1, p1, Lj0/a/t;->a:Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
return-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public g(Ljava/lang/Throwable;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 5
|
|
|
|
|
|
|
|
:goto_0
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/i;->_state:Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v1, v0, Lj0/a/l1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
new-instance v1, Lj0/a/j;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v3, v0, Lj0/a/f;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-direct {v1, p0, p1, v3}, Lj0/a/j;-><init>(Lkotlin/coroutines/Continuation;Ljava/lang/Throwable;Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object v4, Lj0/a/i;->j:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4, p0, v0, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
|
|
|
|
:try_start_0
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast v0, Lj0/a/f;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {v0, p1}, Lj0/a/g;->a(Ljava/lang/Throwable;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/i;->g:Lkotlin/coroutines/CoroutineContext;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v1, Lkotlinx/coroutines/CompletionHandlerException;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v4, "Exception in cancellation handler for "
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v1, v3, p1}, Lkotlinx/coroutines/CompletionHandlerException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {v0, v1}, Li0/i/t;->y(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object p1, p0, Lj0/a/i;->parentHandle:Lj0/a/m0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-interface {p1}, Lj0/a/m0;->dispose()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object p1, Lj0/a/k1;->d:Lj0/a/k1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p1, p0, Lj0/a/i;->parentHandle:Lj0/a/m0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_3
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p0, v2}, Lj0/a/i;->j(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public getCallerFrame()Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
|
|
.locals 2
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/i;->h:Lkotlin/coroutines/Continuation;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
instance-of v1, v0, Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast v0, Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getContext()Lkotlin/coroutines/CoroutineContext;
|
|
|
|
.locals 1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/i;->g:Lkotlin/coroutines/CoroutineContext;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getStackTraceElement()Ljava/lang/StackTraceElement;
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v0, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public i()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/i;->_state:Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public final j(I)V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
iget v0, p0, Lj0/a/i;->_decision:I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
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
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object v0, Lj0/a/i;->i:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0, p0, v1, v3}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {p0, p1}, Lj0/a/j0;->a(Lj0/a/k0;I)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final k()Ljava/lang/Object;
|
|
|
|
.locals 8
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/i;->_state:Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v0, v0, Lj0/a/l1;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/i;->h:Lkotlin/coroutines/Continuation;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-interface {v0}, Lkotlin/coroutines/Continuation;->getContext()Lkotlin/coroutines/CoroutineContext;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v2, Lkotlinx/coroutines/Job;->c:Lkotlinx/coroutines/Job$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-interface {v0, v2}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object v2, v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
check-cast v2, Lkotlinx/coroutines/Job;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v2, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-interface {v2}, Lkotlinx/coroutines/Job;->start()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v3, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v4, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
new-instance v5, Lj0/a/k;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-direct {v5, v2, p0}, Lj0/a/k;-><init>(Lkotlinx/coroutines/Job;Lj0/a/i;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v6, 0x2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v7, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static/range {v2 .. v7}, Li0/i/t;->A(Lkotlinx/coroutines/Job;ZZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lj0/a/m0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object v0, p0, Lj0/a/i;->parentHandle:Lj0/a/m0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v2, p0, Lj0/a/i;->_state:Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v2, v2, Lj0/a/l1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
xor-int/2addr v2, v1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-interface {v0}, Lj0/a/m0;->dispose()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object v0, Lj0/a/k1;->d:Lj0/a/k1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object v0, p0, Lj0/a/i;->parentHandle:Lj0/a/m0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
2020-07-14 22:43:59 +00:00
|
|
|
iget v0, p0, Lj0/a/i;->_decision:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v2, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
if-ne v0, v3, :cond_2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
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_3
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object v0, Lj0/a/i;->i:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0, p0, v2, v1}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v2, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_1
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v2, :cond_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object v0, Li0/k/h/a;->d:Li0/k/h/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_4
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/i;->_state:Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v2, v0, Lj0/a/r;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-nez v2, :cond_7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget v2, p0, Lj0/a/k0;->f:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-ne v2, v1, :cond_6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v1, p0, Lj0/a/i;->g:Lkotlin/coroutines/CoroutineContext;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
sget-object v2, Lkotlinx/coroutines/Job;->c:Lkotlinx/coroutines/Job$a;
|
|
|
|
|
|
|
|
invoke-interface {v1, v2}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
|
|
|
|
invoke-interface {v1}, Lkotlinx/coroutines/Job;->a()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-interface {v1}, Lkotlinx/coroutines/Job;->e()Ljava/util/concurrent/CancellationException;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lj0/a/i;->d(Ljava/lang/Object;Ljava/lang/Throwable;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {v1, p0}, Lj0/a/x1/u;->b(Ljava/lang/Throwable;Lkotlin/coroutines/Continuation;)Ljava/lang/Throwable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
:goto_2
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p0, v0}, Lj0/a/i;->f(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_7
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast v0, Lj0/a/r;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, v0, Lj0/a/r;->a:Ljava/lang/Throwable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {v0, p0}, Lj0/a/x1/u;->b(Ljava/lang/Throwable;Lkotlin/coroutines/Continuation;)Ljava/lang/Throwable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public final l(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;)V
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Ljava/lang/Throwable;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v1, "It\'s prohibited to register multiple handlers, tried to register "
|
|
|
|
|
|
|
|
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, ", already has "
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
throw p2
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
.method public final m(Ljava/lang/Object;I)Lj0/a/j;
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_0
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/i;->_state:Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of v1, v0, Lj0/a/l1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v2, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object v1, Lj0/a/i;->j:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, p0, v0, p1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object p1, p0, Lj0/a/i;->parentHandle:Lj0/a/m0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz p1, :cond_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-interface {p1}, Lj0/a/m0;->dispose()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object p1, Lj0/a/k1;->d:Lj0/a/k1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p1, p0, Lj0/a/i;->parentHandle:Lj0/a/m0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:cond_1
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p0, p2}, Lj0/a/i;->j(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return-object v2
|
|
|
|
|
|
|
|
:cond_2
|
2020-07-14 22:43:59 +00:00
|
|
|
instance-of p2, v0, Lj0/a/j;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast v0, Lj0/a/j;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
sget-object p2, Lj0/a/j;->c:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
throw v2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v0, "Already resumed, but proposed with update "
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p2
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public resumeWith(Ljava/lang/Object;)V
|
|
|
|
.locals 1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {p1}, Li0/i/t;->e0(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget v0, p0, Lj0/a/k0;->f:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p0, p1, v0}, Lj0/a/i;->m(Ljava/lang/Object;I)Lj0/a/j;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v1, "CancellableContinuation"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const/16 v1, 0x28
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v1, p0, Lj0/a/i;->h:Lkotlin/coroutines/Continuation;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {v1}, Li0/i/t;->d0(Lkotlin/coroutines/Continuation;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "){"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v1, p0, Lj0/a/i;->_state:Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "}@"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {p0}, Li0/i/t;->w(Ljava/lang/Object;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|