270 lines
6.1 KiB
Smali
270 lines
6.1 KiB
Smali
.class public final Lu/a/a2/y;
|
|
.super Ljava/lang/Object;
|
|
.source "ThreadContext.kt"
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Lu/a/a2/v;
|
|
|
|
.field public static final b:Lkotlin/jvm/functions/Function2;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"Ljava/lang/Object;",
|
|
"Lkotlin/coroutines/CoroutineContext$a;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final c:Lkotlin/jvm/functions/Function2;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"Lu/a/s1<",
|
|
"*>;",
|
|
"Lkotlin/coroutines/CoroutineContext$a;",
|
|
"Lu/a/s1<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final d:Lkotlin/jvm/functions/Function2;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"Lu/a/a2/b0;",
|
|
"Lkotlin/coroutines/CoroutineContext$a;",
|
|
"Lu/a/a2/b0;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final e:Lkotlin/jvm/functions/Function2;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"Lu/a/a2/b0;",
|
|
"Lkotlin/coroutines/CoroutineContext$a;",
|
|
"Lu/a/a2/b0;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lu/a/a2/v;
|
|
|
|
const-string v1, "ZERO"
|
|
|
|
invoke-direct {v0, v1}, Lu/a/a2/v;-><init>(Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lu/a/a2/y;->a:Lu/a/a2/v;
|
|
|
|
sget-object v0, Lu/a/a2/y$a;->d:Lu/a/a2/y$a;
|
|
|
|
sput-object v0, Lu/a/a2/y;->b:Lkotlin/jvm/functions/Function2;
|
|
|
|
sget-object v0, Lu/a/a2/y$b;->d:Lu/a/a2/y$b;
|
|
|
|
sput-object v0, Lu/a/a2/y;->c:Lkotlin/jvm/functions/Function2;
|
|
|
|
sget-object v0, Lu/a/a2/y$d;->d:Lu/a/a2/y$d;
|
|
|
|
sput-object v0, Lu/a/a2/y;->d:Lkotlin/jvm/functions/Function2;
|
|
|
|
sget-object v0, Lu/a/a2/y$c;->d:Lu/a/a2/y$c;
|
|
|
|
sput-object v0, Lu/a/a2/y;->e:Lkotlin/jvm/functions/Function2;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/Object;
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lu/a/a2/y;->b:Lkotlin/jvm/functions/Function2;
|
|
|
|
invoke-interface {p0, v1, v2}, Lkotlin/coroutines/CoroutineContext;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p0, "context"
|
|
|
|
invoke-static {p0}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
sget-object v1, Lu/a/a2/y;->a:Lu/a/a2/v;
|
|
|
|
if-ne p1, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
instance-of v1, p1, Lu/a/a2/b0;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lu/a/a2/b0;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput v1, v0, Lu/a/a2/b0;->b:I
|
|
|
|
sget-object v0, Lu/a/a2/y;->e:Lkotlin/jvm/functions/Function2;
|
|
|
|
invoke-interface {p0, p1, v0}, Lkotlin/coroutines/CoroutineContext;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
sget-object v1, Lu/a/a2/y;->c:Lkotlin/jvm/functions/Function2;
|
|
|
|
invoke-interface {p0, v0, v1}, Lkotlin/coroutines/CoroutineContext;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
check-cast v0, Lu/a/z;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lu/a/z;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_2
|
|
new-instance p0, Lt/l;
|
|
|
|
const-string p1, "null cannot be cast to non-null type kotlinx.coroutines.ThreadContextElement<kotlin.Any?>"
|
|
|
|
invoke-direct {p0, p1}, Lt/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_3
|
|
const-string p0, "context"
|
|
|
|
invoke-static {p0}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final b(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lu/a/a2/y;->a(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_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, Lu/a/a2/y;->a:Lu/a/a2/v;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
instance-of v0, p1, Ljava/lang/Integer;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
new-instance v0, Lu/a/a2/b0;
|
|
|
|
check-cast p1, Ljava/lang/Number;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
invoke-direct {v0, p0, p1}, Lu/a/a2/b0;-><init>(Lkotlin/coroutines/CoroutineContext;I)V
|
|
|
|
sget-object p1, Lu/a/a2/y;->d:Lkotlin/jvm/functions/Function2;
|
|
|
|
invoke-interface {p0, v0, p1}, Lkotlin/coroutines/CoroutineContext;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
if-eqz p1, :cond_3
|
|
|
|
check-cast p1, Lu/a/z;
|
|
|
|
invoke-virtual {p1, p0}, Lu/a/z;->a(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_1
|
|
return-object p0
|
|
|
|
:cond_3
|
|
new-instance p0, Lt/l;
|
|
|
|
const-string p1, "null cannot be cast to non-null type kotlinx.coroutines.ThreadContextElement<kotlin.Any?>"
|
|
|
|
invoke-direct {p0, p1}, Lt/l;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_4
|
|
const-string p0, "context"
|
|
|
|
invoke-static {p0}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|