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

196 lines
5.4 KiB
Smali

.class public final Lkotlinx/coroutines/AwaitAll;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lkotlinx/coroutines/AwaitAll$AwaitAllNode;,
Lkotlinx/coroutines/AwaitAll$DisposeHandlersOnCancel;
}
.end annotation
# static fields
.field public static final notCompletedCount$FU:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
# instance fields
.field public final deferreds:[Lkotlinx/coroutines/Deferred;
.field private volatile notCompletedCount:I
# direct methods
.method static constructor <clinit>()V
.locals 2
const-class v0, Lkotlinx/coroutines/AwaitAll;
const-string v1, "notCompletedCount"
invoke-static {v0, v1}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
move-result-object v0
sput-object v0, Lkotlinx/coroutines/AwaitAll;->notCompletedCount$FU:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
return-void
.end method
.method public constructor <init>([Lkotlinx/coroutines/Deferred;)V
.locals 0
.line 68
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lkotlinx/coroutines/AwaitAll;->deferreds:[Lkotlinx/coroutines/Deferred;
.line 69
array-length p1, p1
iput p1, p0, Lkotlinx/coroutines/AwaitAll;->notCompletedCount:I
return-void
.end method
.method public static final synthetic access$getDeferreds$p(Lkotlinx/coroutines/AwaitAll;)[Lkotlinx/coroutines/Deferred;
.locals 0
.line 68
iget-object p0, p0, Lkotlinx/coroutines/AwaitAll;->deferreds:[Lkotlinx/coroutines/Deferred;
return-object p0
.end method
.method public static final synthetic access$getNotCompletedCount$FU$p()Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
.locals 1
sget-object v0, Lkotlinx/coroutines/AwaitAll;->notCompletedCount$FU:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
return-object v0
.end method
# virtual methods
.method public final await(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 7
.line 315
new-instance v0, Lkotlinx/coroutines/CancellableContinuationImpl;
invoke-static {p1}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object v1
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lkotlinx/coroutines/CancellableContinuationImpl;-><init>(Lkotlin/coroutines/Continuation;I)V
.line 321
invoke-virtual {v0}, Lkotlinx/coroutines/CancellableContinuationImpl;->initCancellability()V
.line 74
invoke-static {p0}, Lkotlinx/coroutines/AwaitAll;->access$getDeferreds$p(Lkotlinx/coroutines/AwaitAll;)[Lkotlinx/coroutines/Deferred;
move-result-object v1
array-length v1, v1
new-array v2, v1, [Lkotlinx/coroutines/AwaitAll$AwaitAllNode;
const/4 v3, 0x0
move v4, v3
:goto_0
if-ge v4, v1, :cond_0
.line 75
invoke-static {p0}, Lkotlinx/coroutines/AwaitAll;->access$getDeferreds$p(Lkotlinx/coroutines/AwaitAll;)[Lkotlinx/coroutines/Deferred;
move-result-object v5
aget-object v5, v5, v4
.line 76
invoke-interface {v5}, Lkotlinx/coroutines/Job;->start()Z
.line 77
new-instance v6, Lkotlinx/coroutines/AwaitAll$AwaitAllNode;
invoke-direct {v6, p0, v0}, Lkotlinx/coroutines/AwaitAll$AwaitAllNode;-><init>(Lkotlinx/coroutines/AwaitAll;Lkotlinx/coroutines/CancellableContinuation;)V
.line 78
invoke-interface {v5, v6}, Lkotlinx/coroutines/Job;->invokeOnCompletion(Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/DisposableHandle;
move-result-object v5
invoke-virtual {v6, v5}, Lkotlinx/coroutines/AwaitAll$AwaitAllNode;->setHandle(Lkotlinx/coroutines/DisposableHandle;)V
.line 79
sget-object v5, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 77
aput-object v6, v2, v4
add-int/lit8 v4, v4, 0x1
goto :goto_0
.line 81
:cond_0
new-instance v4, Lkotlinx/coroutines/AwaitAll$DisposeHandlersOnCancel;
invoke-direct {v4, p0, v2}, Lkotlinx/coroutines/AwaitAll$DisposeHandlersOnCancel;-><init>(Lkotlinx/coroutines/AwaitAll;[Lkotlinx/coroutines/AwaitAll$AwaitAllNode;)V
:goto_1
if-ge v3, v1, :cond_1
.line 13579
aget-object v5, v2, v3
.line 83
invoke-virtual {v5, v4}, Lkotlinx/coroutines/AwaitAll$AwaitAllNode;->setDisposer(Lkotlinx/coroutines/AwaitAll$DisposeHandlersOnCancel;)V
add-int/lit8 v3, v3, 0x1
goto :goto_1
.line 86
:cond_1
invoke-interface {v0}, Lkotlinx/coroutines/CancellableContinuation;->isCompleted()Z
move-result v1
if-eqz v1, :cond_2
.line 88
invoke-virtual {v4}, Lkotlinx/coroutines/AwaitAll$DisposeHandlersOnCancel;->disposeAll()V
goto :goto_2
.line 90
:cond_2
invoke-interface {v0, v4}, Lkotlinx/coroutines/CancellableContinuation;->invokeOnCancellation(Lkotlin/jvm/functions/Function1;)V
.line 323
:goto_2
invoke-virtual {v0}, Lkotlinx/coroutines/CancellableContinuationImpl;->getResult()Ljava/lang/Object;
move-result-object v0
.line 314
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v1
if-ne v0, v1, :cond_3
invoke-static {p1}, Lkotlin/coroutines/jvm/internal/DebugProbesKt;->probeCoroutineSuspended(Lkotlin/coroutines/Continuation;)V
:cond_3
return-object v0
.end method