apkfuckery/com.discord/smali_classes2/i0/k/c.smali

479 lines
11 KiB
Smali
Raw Normal View History

2020-07-14 22:43:59 +00:00
.class public final Li0/k/c;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
.source "CoroutineContextImpl.kt"
# interfaces
.implements Lkotlin/coroutines/CoroutineContext;
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-07-14 22:43:59 +00:00
Li0/k/c$a;
2020-05-17 12:40:10 +00:00
}
.end annotation
# instance fields
.field public final element:Lkotlin/coroutines/CoroutineContext$a;
.field public final left:Lkotlin/coroutines/CoroutineContext;
# direct methods
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext$a;)V
.locals 1
const/4 v0, 0x0
if-eqz p1, :cond_1
if-eqz p2, :cond_0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-07-14 22:43:59 +00:00
iput-object p1, p0, Li0/k/c;->left:Lkotlin/coroutines/CoroutineContext;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iput-object p2, p0, Li0/k/c;->element:Lkotlin/coroutines/CoroutineContext$a;
2020-05-17 12:40:10 +00:00
return-void
:cond_0
const-string p1, "element"
2020-07-14 22:43:59 +00:00
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
throw v0
:cond_1
const-string p1, "left"
2020-07-14 22:43:59 +00:00
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
throw v0
.end method
.method private final writeReplace()Ljava/lang/Object;
.locals 6
2020-07-14 22:43:59 +00:00
invoke-virtual {p0}, Li0/k/c;->b()I
2020-05-17 12:40:10 +00:00
move-result v0
new-array v1, v0, [Lkotlin/coroutines/CoroutineContext;
new-instance v2, Lkotlin/jvm/internal/Ref$IntRef;
invoke-direct {v2}, Lkotlin/jvm/internal/Ref$IntRef;-><init>()V
const/4 v3, 0x0
iput v3, v2, Lkotlin/jvm/internal/Ref$IntRef;->element:I
sget-object v4, Lkotlin/Unit;->a:Lkotlin/Unit;
2020-07-14 22:43:59 +00:00
new-instance v5, Li0/k/c$c;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
invoke-direct {v5, v1, v2}, Li0/k/c$c;-><init>([Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/internal/Ref$IntRef;)V
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
invoke-virtual {p0, v4, v5}, Li0/k/c;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
iget v2, v2, Lkotlin/jvm/internal/Ref$IntRef;->element:I
if-ne v2, v0, :cond_0
const/4 v3, 0x1
:cond_0
if-eqz v3, :cond_1
2020-07-14 22:43:59 +00:00
new-instance v0, Li0/k/c$a;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
invoke-direct {v0, v1}, Li0/k/c$a;-><init>([Lkotlin/coroutines/CoroutineContext;)V
2020-05-17 12:40:10 +00:00
return-object v0
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Check failed."
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
.end method
# virtual methods
2020-07-08 16:44:49 +00:00
.method public final b()I
.locals 3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v0, 0x2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v1, p0
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 v1, v1, Li0/k/c;->left:Lkotlin/coroutines/CoroutineContext;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
instance-of v2, v1, Li0/k/c;
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
const/4 v1, 0x0
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-14 22:43:59 +00:00
check-cast v1, Li0/k/c;
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-08 16:44:49 +00:00
add-int/lit8 v0, v0, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_1
2020-07-08 16:44:49 +00:00
return v0
.end method
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.method public equals(Ljava/lang/Object;)Z
.locals 4
2020-05-17 12:40:10 +00:00
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-eq p0, p1, :cond_4
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
instance-of v1, p1, Li0/k/c;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
check-cast p1, Li0/k/c;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
invoke-virtual {p1}, Li0/k/c;->b()I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v1
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
invoke-virtual {p0}, Li0/k/c;->b()I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ne v1, v2, :cond_5
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-08 16:44:49 +00:00
move-object v1, p0
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 v2, v1, Li0/k/c;->element:Lkotlin/coroutines/CoroutineContext$a;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v2}, Lkotlin/coroutines/CoroutineContext$a;->getKey()Lkotlin/coroutines/CoroutineContext$b;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
invoke-virtual {p1, v3}, Li0/k/c;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
invoke-static {v3, v2}, Li0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-07-08 16:44:49 +00:00
move-result v2
2020-05-17 12:40:10 +00:00
if-nez v2, :cond_0
2020-07-08 16:44:49 +00:00
const/4 p1, 0x0
goto :goto_1
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-14 22:43:59 +00:00
iget-object v1, v1, Li0/k/c;->left:Lkotlin/coroutines/CoroutineContext;
2020-07-08 16:44:49 +00:00
2020-07-14 22:43:59 +00:00
instance-of v2, v1, Li0/k/c;
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-14 22:43:59 +00:00
check-cast v1, Li0/k/c;
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_1
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v1, Lkotlin/coroutines/CoroutineContext$a;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v1}, Lkotlin/coroutines/CoroutineContext$a;->getKey()Lkotlin/coroutines/CoroutineContext$b;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
invoke-virtual {p1, v2}, Li0/k/c;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
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-14 22:43:59 +00:00
invoke-static {p1, v1}, Li0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_1
if-eqz p1, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_2
new-instance p1, Lkotlin/TypeCastException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v0, "null cannot be cast to non-null type kotlin.coroutines.CoroutineContext.Element"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_3
2020-05-17 12:40:10 +00:00
const/4 p1, 0x0
2020-07-08 16:44:49 +00:00
throw p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_4
:goto_2
const/4 v0, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_5
return v0
2020-05-17 12:40:10 +00:00
.end method
.method public fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">(TR;",
"Lkotlin/jvm/functions/Function2<",
"-TR;-",
"Lkotlin/coroutines/CoroutineContext$a;",
"+TR;>;)TR;"
}
.end annotation
if-eqz p2, :cond_0
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/k/c;->left:Lkotlin/coroutines/CoroutineContext;
2020-05-17 12:40:10 +00:00
invoke-interface {v0, p1, p2}, Lkotlin/coroutines/CoroutineContext;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
move-result-object p1
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/k/c;->element:Lkotlin/coroutines/CoroutineContext$a;
2020-05-17 12:40:10 +00:00
invoke-interface {p2, p1, v0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
:cond_0
const-string p1, "operation"
2020-07-14 22:43:59 +00:00
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<E::",
"Lkotlin/coroutines/CoroutineContext$a;",
">(",
"Lkotlin/coroutines/CoroutineContext$b<",
"TE;>;)TE;"
}
.end annotation
if-eqz p1, :cond_2
move-object v0, p0
:goto_0
2020-07-14 22:43:59 +00:00
iget-object v1, v0, Li0/k/c;->element:Lkotlin/coroutines/CoroutineContext$a;
2020-05-17 12:40:10 +00:00
invoke-interface {v1, p1}, Lkotlin/coroutines/CoroutineContext$a;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
move-result-object v1
if-eqz v1, :cond_0
return-object v1
:cond_0
2020-07-14 22:43:59 +00:00
iget-object v0, v0, Li0/k/c;->left:Lkotlin/coroutines/CoroutineContext;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
instance-of v1, v0, Li0/k/c;
2020-05-17 12:40:10 +00:00
if-eqz v1, :cond_1
2020-07-14 22:43:59 +00:00
check-cast v0, Li0/k/c;
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_1
invoke-interface {v0, p1}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
move-result-object p1
return-object p1
:cond_2
const-string p1, "key"
2020-07-14 22:43:59 +00:00
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public hashCode()I
.locals 2
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/k/c;->left:Lkotlin/coroutines/CoroutineContext;
2020-05-17 12:40:10 +00:00
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
2020-07-14 22:43:59 +00:00
iget-object v1, p0, Li0/k/c;->element:Lkotlin/coroutines/CoroutineContext$a;
2020-05-17 12:40:10 +00:00
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v1, v0
return v1
.end method
.method public minusKey(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/CoroutineContext$b<",
"*>;)",
"Lkotlin/coroutines/CoroutineContext;"
}
.end annotation
if-eqz p1, :cond_3
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/k/c;->element:Lkotlin/coroutines/CoroutineContext$a;
2020-05-17 12:40:10 +00:00
invoke-interface {v0, p1}, Lkotlin/coroutines/CoroutineContext$a;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
move-result-object v0
if-eqz v0, :cond_0
2020-07-14 22:43:59 +00:00
iget-object p1, p0, Li0/k/c;->left:Lkotlin/coroutines/CoroutineContext;
2020-05-17 12:40:10 +00:00
return-object p1
:cond_0
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/k/c;->left:Lkotlin/coroutines/CoroutineContext;
2020-05-17 12:40:10 +00:00
invoke-interface {v0, p1}, Lkotlin/coroutines/CoroutineContext;->minusKey(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext;
move-result-object p1
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/k/c;->left:Lkotlin/coroutines/CoroutineContext;
2020-05-17 12:40:10 +00:00
if-ne p1, v0, :cond_1
move-object p1, p0
goto :goto_0
:cond_1
2020-07-14 22:43:59 +00:00
sget-object v0, Li0/k/f;->d:Li0/k/f;
2020-05-17 12:40:10 +00:00
if-ne p1, v0, :cond_2
2020-07-14 22:43:59 +00:00
iget-object p1, p0, Li0/k/c;->element:Lkotlin/coroutines/CoroutineContext$a;
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_2
2020-07-14 22:43:59 +00:00
new-instance v0, Li0/k/c;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v1, p0, Li0/k/c;->element:Lkotlin/coroutines/CoroutineContext$a;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
invoke-direct {v0, p1, v1}, Li0/k/c;-><init>(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext$a;)V
2020-05-17 12:40:10 +00:00
move-object p1, v0
:goto_0
return-object p1
:cond_3
const-string p1, "key"
2020-07-14 22:43:59 +00:00
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
.locals 0
if-eqz p1, :cond_0
2020-07-14 22:43:59 +00:00
invoke-static {p0, p1}, Li0/i/t;->plus(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
2020-05-17 12:40:10 +00:00
move-result-object p1
return-object p1
:cond_0
const-string p1, "context"
2020-07-14 22:43:59 +00:00
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public toString()Ljava/lang/String;
.locals 3
const-string v0, "["
2020-07-14 22:43:59 +00:00
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-07-14 22:43:59 +00:00
sget-object v1, Li0/k/c$b;->d:Li0/k/c$b;
2020-05-17 12:40:10 +00:00
const-string v2, ""
2020-07-14 22:43:59 +00:00
invoke-virtual {p0, v2, v1}, Li0/k/c;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
move-result-object v1
check-cast v1, Ljava/lang/String;
const-string v2, "]"
2020-07-14 22:43:59 +00:00
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->v(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
move-result-object v0
return-object v0
.end method