252 lines
6.5 KiB
Smali
252 lines
6.5 KiB
Smali
.class public final Lkotlinx/coroutines/a/q;
|
|
.super Ljava/lang/Object;
|
|
.source "ThreadContext.kt"
|
|
|
|
|
|
# static fields
|
|
.field private static final bhd:Lkotlinx/coroutines/a/o;
|
|
|
|
.field private static final bhe:Lkotlin/jvm/functions/Function2;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"Ljava/lang/Object;",
|
|
"Lkotlin/c/e$b;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final bhf:Lkotlin/jvm/functions/Function2;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"Lkotlinx/coroutines/bi<",
|
|
"*>;",
|
|
"Lkotlin/c/e$b;",
|
|
"Lkotlinx/coroutines/bi<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final bhg:Lkotlin/jvm/functions/Function2;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"Lkotlinx/coroutines/a/u;",
|
|
"Lkotlin/c/e$b;",
|
|
"Lkotlinx/coroutines/a/u;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final bhh:Lkotlin/jvm/functions/Function2;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"Lkotlinx/coroutines/a/u;",
|
|
"Lkotlin/c/e$b;",
|
|
"Lkotlinx/coroutines/a/u;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lkotlinx/coroutines/a/o;
|
|
|
|
const-string v1, "ZERO"
|
|
|
|
invoke-direct {v0, v1}, Lkotlinx/coroutines/a/o;-><init>(Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lkotlinx/coroutines/a/q;->bhd:Lkotlinx/coroutines/a/o;
|
|
|
|
sget-object v0, Lkotlinx/coroutines/a/q$a;->bhi:Lkotlinx/coroutines/a/q$a;
|
|
|
|
check-cast v0, Lkotlin/jvm/functions/Function2;
|
|
|
|
sput-object v0, Lkotlinx/coroutines/a/q;->bhe:Lkotlin/jvm/functions/Function2;
|
|
|
|
sget-object v0, Lkotlinx/coroutines/a/q$b;->bhj:Lkotlinx/coroutines/a/q$b;
|
|
|
|
check-cast v0, Lkotlin/jvm/functions/Function2;
|
|
|
|
sput-object v0, Lkotlinx/coroutines/a/q;->bhf:Lkotlin/jvm/functions/Function2;
|
|
|
|
sget-object v0, Lkotlinx/coroutines/a/q$d;->bhl:Lkotlinx/coroutines/a/q$d;
|
|
|
|
check-cast v0, Lkotlin/jvm/functions/Function2;
|
|
|
|
sput-object v0, Lkotlinx/coroutines/a/q;->bhg:Lkotlin/jvm/functions/Function2;
|
|
|
|
sget-object v0, Lkotlinx/coroutines/a/q$c;->bhk:Lkotlinx/coroutines/a/q$c;
|
|
|
|
check-cast v0, Lkotlin/jvm/functions/Function2;
|
|
|
|
sput-object v0, Lkotlinx/coroutines/a/q;->bhh:Lkotlin/jvm/functions/Function2;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Lkotlin/c/e;Ljava/lang/Object;)V
|
|
.locals 2
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lkotlinx/coroutines/a/q;->bhd:Lkotlinx/coroutines/a/o;
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
instance-of v0, p1, Lkotlinx/coroutines/a/u;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lkotlinx/coroutines/a/u;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput v1, v0, Lkotlinx/coroutines/a/u;->bhp:I
|
|
|
|
sget-object v0, Lkotlinx/coroutines/a/q;->bhh:Lkotlin/jvm/functions/Function2;
|
|
|
|
invoke-interface {p0, p1, v0}, Lkotlin/c/e;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
sget-object v1, Lkotlinx/coroutines/a/q;->bhf:Lkotlin/jvm/functions/Function2;
|
|
|
|
invoke-interface {p0, v0, v1}, Lkotlin/c/e;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
check-cast v0, Lkotlinx/coroutines/bi;
|
|
|
|
invoke-interface {v0, p0, p1}, Lkotlinx/coroutines/bi;->a(Lkotlin/c/e;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
new-instance p0, Lkotlin/r;
|
|
|
|
const-string p1, "null cannot be cast to non-null type kotlinx.coroutines.ThreadContextElement<kotlin.Any?>"
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final b(Lkotlin/c/e;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
invoke-static {p0}, Lkotlinx/coroutines/a/q;->d(Lkotlin/c/e;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
if-ne p1, v0, :cond_1
|
|
|
|
sget-object p0, Lkotlinx/coroutines/a/q;->bhd:Lkotlinx/coroutines/a/o;
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
instance-of v0, p1, Ljava/lang/Integer;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
new-instance v0, Lkotlinx/coroutines/a/u;
|
|
|
|
check-cast p1, Ljava/lang/Number;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
invoke-direct {v0, p0, p1}, Lkotlinx/coroutines/a/u;-><init>(Lkotlin/c/e;I)V
|
|
|
|
sget-object p1, Lkotlinx/coroutines/a/q;->bhg:Lkotlin/jvm/functions/Function2;
|
|
|
|
invoke-interface {p0, v0, p1}, Lkotlin/c/e;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
if-eqz p1, :cond_3
|
|
|
|
check-cast p1, Lkotlinx/coroutines/bi;
|
|
|
|
invoke-interface {p1, p0}, Lkotlinx/coroutines/bi;->c(Lkotlin/c/e;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_3
|
|
new-instance p0, Lkotlin/r;
|
|
|
|
const-string p1, "null cannot be cast to non-null type kotlinx.coroutines.ThreadContextElement<kotlin.Any?>"
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final d(Lkotlin/c/e;)Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lkotlinx/coroutines/a/q;->bhe:Lkotlin/jvm/functions/Function2;
|
|
|
|
invoke-interface {p0, v0, v1}, Lkotlin/c/e;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
invoke-static {}, Lkotlin/jvm/internal/j;->yg()V
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|