Files
rr3-apk/smali_classes5/kotlinx/coroutines/internal/ThreadState.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

107 lines
2.8 KiB
Smali

.class public final Lkotlinx/coroutines/internal/ThreadState;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public final context:Lkotlin/coroutines/CoroutineContext;
.field public final elements:[Lkotlinx/coroutines/ThreadContextElement;
.field public i:I
.field public final values:[Ljava/lang/Object;
# direct methods
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;I)V
.locals 0
.line 14
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lkotlinx/coroutines/internal/ThreadState;->context:Lkotlin/coroutines/CoroutineContext;
.line 16
new-array p1, p2, [Ljava/lang/Object;
iput-object p1, p0, Lkotlinx/coroutines/internal/ThreadState;->values:[Ljava/lang/Object;
.line 17
new-array p1, p2, [Lkotlinx/coroutines/ThreadContextElement;
iput-object p1, p0, Lkotlinx/coroutines/internal/ThreadState;->elements:[Lkotlinx/coroutines/ThreadContextElement;
return-void
.end method
# virtual methods
.method public final append(Lkotlinx/coroutines/ThreadContextElement;Ljava/lang/Object;)V
.locals 2
iget-object v0, p0, Lkotlinx/coroutines/internal/ThreadState;->values:[Ljava/lang/Object;
iget v1, p0, Lkotlinx/coroutines/internal/ThreadState;->i:I
.line 21
aput-object p2, v0, v1
iget-object p2, p0, Lkotlinx/coroutines/internal/ThreadState;->elements:[Lkotlinx/coroutines/ThreadContextElement;
add-int/lit8 v0, v1, 0x1
iput v0, p0, Lkotlinx/coroutines/internal/ThreadState;->i:I
const-string v0, "null cannot be cast to non-null type kotlinx.coroutines.ThreadContextElement<kotlin.Any?>"
.line 22
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
aput-object p1, p2, v1
return-void
.end method
.method public final restore(Lkotlin/coroutines/CoroutineContext;)V
.locals 4
iget-object v0, p0, Lkotlinx/coroutines/internal/ThreadState;->elements:[Lkotlinx/coroutines/ThreadContextElement;
.line 26
array-length v0, v0
add-int/lit8 v0, v0, -0x1
if-ltz v0, :cond_1
:goto_0
add-int/lit8 v1, v0, -0x1
iget-object v2, p0, Lkotlinx/coroutines/internal/ThreadState;->elements:[Lkotlinx/coroutines/ThreadContextElement;
.line 27
aget-object v2, v2, v0
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v3, p0, Lkotlinx/coroutines/internal/ThreadState;->values:[Ljava/lang/Object;
aget-object v0, v3, v0
invoke-interface {v2, p1, v0}, Lkotlinx/coroutines/ThreadContextElement;->restoreThreadContext(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
if-gez v1, :cond_0
goto :goto_1
:cond_0
move v0, v1
goto :goto_0
:cond_1
:goto_1
return-void
.end method