mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
214 lines
5.8 KiB
Smali
214 lines
5.8 KiB
Smali
.class public final Lkotlin/concurrent/ThreadsKt;
|
|
.super Ljava/lang/Object;
|
|
.source "Thread.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nThread.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Thread.kt\nkotlin/concurrent/ThreadsKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,61:1\n1#2:62\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000:\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u001aJ\u0010\u0000\u001a\u00020\u00012\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u00032\u0008\u0008\u0002\u0010\u0004\u001a\u00020\u00032\n\u0008\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0008\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00082\u0008\u0008\u0002\u0010\t\u001a\u00020\n2\u000c\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u00020\r0\u000c\u001a3\u0010\u000e\u001a\u0002H\u000f\"\u0008\u0008\u0000\u0010\u000f*\u00020\u0010*\u0008\u0012\u0004\u0012\u0002H\u000f0\u00112\u000c\u0010\u0012\u001a\u0008\u0012\u0004\u0012\u0002H\u000f0\u000cH\u0087\u0008\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u0013\u0082\u0002\u0007\n\u0005\u0008\u009920\u0001\u00a8\u0006\u0014"
|
|
}
|
|
d2 = {
|
|
"thread",
|
|
"Ljava/lang/Thread;",
|
|
"start",
|
|
"",
|
|
"isDaemon",
|
|
"contextClassLoader",
|
|
"Ljava/lang/ClassLoader;",
|
|
"name",
|
|
"",
|
|
"priority",
|
|
"",
|
|
"block",
|
|
"Lkotlin/Function0;",
|
|
"",
|
|
"getOrSet",
|
|
"T",
|
|
"",
|
|
"Ljava/lang/ThreadLocal;",
|
|
"default",
|
|
"(Ljava/lang/ThreadLocal;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x9,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private static final getOrSet(Ljava/lang/ThreadLocal;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/ThreadLocal<",
|
|
"TT;>;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"+TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "default"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 59
|
|
invoke-virtual {p0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-interface {p1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final thread(ZZLjava/lang/ClassLoader;Ljava/lang/String;ILkotlin/jvm/functions/Function0;)Ljava/lang/Thread;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(ZZ",
|
|
"Ljava/lang/ClassLoader;",
|
|
"Ljava/lang/String;",
|
|
"I",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;)",
|
|
"Ljava/lang/Thread;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "block"
|
|
|
|
invoke-static {p5, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 28
|
|
new-instance v0, Lkotlin/concurrent/ThreadsKt$thread$thread$1;
|
|
|
|
invoke-direct {v0, p5}, Lkotlin/concurrent/ThreadsKt$thread$thread$1;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 34
|
|
invoke-virtual {v0, p1}, Lkotlin/concurrent/ThreadsKt$thread$thread$1;->setDaemon(Z)V
|
|
|
|
:cond_0
|
|
if-lez p4, :cond_1
|
|
|
|
.line 36
|
|
invoke-virtual {v0, p4}, Lkotlin/concurrent/ThreadsKt$thread$thread$1;->setPriority(I)V
|
|
|
|
:cond_1
|
|
if-eqz p3, :cond_2
|
|
|
|
.line 38
|
|
invoke-virtual {v0, p3}, Lkotlin/concurrent/ThreadsKt$thread$thread$1;->setName(Ljava/lang/String;)V
|
|
|
|
:cond_2
|
|
if-eqz p2, :cond_3
|
|
|
|
.line 40
|
|
invoke-virtual {v0, p2}, Lkotlin/concurrent/ThreadsKt$thread$thread$1;->setContextClassLoader(Ljava/lang/ClassLoader;)V
|
|
|
|
:cond_3
|
|
if-eqz p0, :cond_4
|
|
|
|
.line 42
|
|
invoke-virtual {v0}, Lkotlin/concurrent/ThreadsKt$thread$thread$1;->start()V
|
|
|
|
.line 43
|
|
:cond_4
|
|
check-cast v0, Ljava/lang/Thread;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static synthetic thread$default(ZZLjava/lang/ClassLoader;Ljava/lang/String;ILkotlin/jvm/functions/Function0;ILjava/lang/Object;)Ljava/lang/Thread;
|
|
.locals 6
|
|
|
|
and-int/lit8 p7, p6, 0x1
|
|
|
|
if-eqz p7, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
:cond_0
|
|
move v0, p0
|
|
|
|
and-int/lit8 p0, p6, 0x2
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
:cond_1
|
|
move v1, p1
|
|
|
|
and-int/lit8 p0, p6, 0x4
|
|
|
|
const/4 p1, 0x0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
move-object v2, p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move-object v2, p2
|
|
|
|
:goto_0
|
|
and-int/lit8 p0, p6, 0x8
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
move-object v3, p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move-object v3, p3
|
|
|
|
:goto_1
|
|
and-int/lit8 p0, p6, 0x10
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
const/4 p4, -0x1
|
|
|
|
:cond_4
|
|
move v4, p4
|
|
|
|
move-object v5, p5
|
|
|
|
.line 20
|
|
invoke-static/range {v0 .. v5}, Lkotlin/concurrent/ThreadsKt;->thread(ZZLjava/lang/ClassLoader;Ljava/lang/String;ILkotlin/jvm/functions/Function0;)Ljava/lang/Thread;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|