Files
rr3-apk/smali_classes5/kotlinx/coroutines/CompletionStateKt.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

125 lines
3.1 KiB
Smali

.class public abstract Lkotlinx/coroutines/CompletionStateKt;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static final recoverResult(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 0
.line 26
instance-of p1, p0, Lkotlinx/coroutines/CompletedExceptionally;
if-eqz p1, :cond_0
.line 27
sget-object p1, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;
check-cast p0, Lkotlinx/coroutines/CompletedExceptionally;
iget-object p0, p0, Lkotlinx/coroutines/CompletedExceptionally;->cause:Ljava/lang/Throwable;
invoke-static {p0}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object p0
invoke-static {p0}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
goto :goto_0
.line 29
:cond_0
invoke-static {p0}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
:goto_0
return-object p0
.end method
.method public static final toState(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
.locals 3
.line 14
invoke-static {p0}, Lkotlin/Result;->exceptionOrNull-impl(Ljava/lang/Object;)Ljava/lang/Throwable;
move-result-object v0
if-nez v0, :cond_0
if-eqz p1, :cond_1
.line 15
new-instance v0, Lkotlinx/coroutines/CompletedWithCancellation;
invoke-direct {v0, p0, p1}, Lkotlinx/coroutines/CompletedWithCancellation;-><init>(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V
move-object p0, v0
goto :goto_0
.line 16
:cond_0
new-instance p0, Lkotlinx/coroutines/CompletedExceptionally;
const/4 p1, 0x2
const/4 v1, 0x0
const/4 v2, 0x0
invoke-direct {p0, v0, v2, p1, v1}, Lkotlinx/coroutines/CompletedExceptionally;-><init>(Ljava/lang/Throwable;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
:cond_1
:goto_0
return-object p0
.end method
.method public static final toState(Ljava/lang/Object;Lkotlinx/coroutines/CancellableContinuation;)Ljava/lang/Object;
.locals 3
.line 19
invoke-static {p0}, Lkotlin/Result;->exceptionOrNull-impl(Ljava/lang/Object;)Ljava/lang/Throwable;
move-result-object p1
if-nez p1, :cond_0
goto :goto_0
.line 21
:cond_0
new-instance p0, Lkotlinx/coroutines/CompletedExceptionally;
const/4 v0, 0x2
const/4 v1, 0x0
const/4 v2, 0x0
invoke-direct {p0, p1, v2, v0, v1}, Lkotlinx/coroutines/CompletedExceptionally;-><init>(Ljava/lang/Throwable;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
:goto_0
return-object p0
.end method
.method public static synthetic toState$default(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object;
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
const/4 p1, 0x0
.line 12
:cond_0
invoke-static {p0, p1}, Lkotlinx/coroutines/CompletionStateKt;->toState(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method