- 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
303 lines
5.9 KiB
Smali
303 lines
5.9 KiB
Smali
.class public abstract Lkotlinx/coroutines/EventLoop;
|
|
.super Lkotlinx/coroutines/CoroutineDispatcher;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public shared:Z
|
|
|
|
.field public unconfinedQueue:Lkotlin/collections/ArrayDeque;
|
|
|
|
.field public useCount:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 22
|
|
invoke-direct {p0}, Lkotlinx/coroutines/CoroutineDispatcher;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic decrementUseCount$default(Lkotlinx/coroutines/EventLoop;ZILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
and-int/lit8 p2, p2, 0x1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 107
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/EventLoop;->decrementUseCount(Z)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p1, "Super calls with default arguments not supported in this target, function: decrementUseCount"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static synthetic incrementUseCount$default(Lkotlinx/coroutines/EventLoop;ZILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
and-int/lit8 p2, p2, 0x1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 102
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/EventLoop;->incrementUseCount(Z)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p1, "Super calls with default arguments not supported in this target, function: incrementUseCount"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final decrementUseCount(Z)V
|
|
.locals 4
|
|
|
|
iget-wide v0, p0, Lkotlinx/coroutines/EventLoop;->useCount:J
|
|
|
|
.line 108
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/EventLoop;->delta(Z)J
|
|
|
|
move-result-wide v2
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
iput-wide v0, p0, Lkotlinx/coroutines/EventLoop;->useCount:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long p1, v0, v2
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-boolean p1, p0, Lkotlinx/coroutines/EventLoop;->shared:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 113
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/EventLoop;->shutdown()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final delta(Z)J
|
|
.locals 2
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-wide v0, 0x100000000L
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-wide/16 v0, 0x1
|
|
|
|
:goto_0
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final dispatchUnconfined(Lkotlinx/coroutines/DispatchedTask;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/EventLoop;->unconfinedQueue:Lkotlin/collections/ArrayDeque;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 85
|
|
new-instance v0, Lkotlin/collections/ArrayDeque;
|
|
|
|
invoke-direct {v0}, Lkotlin/collections/ArrayDeque;-><init>()V
|
|
|
|
iput-object v0, p0, Lkotlinx/coroutines/EventLoop;->unconfinedQueue:Lkotlin/collections/ArrayDeque;
|
|
|
|
.line 86
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Lkotlin/collections/ArrayDeque;->addLast(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getNextTime()J
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/EventLoop;->unconfinedQueue:Lkotlin/collections/ArrayDeque;
|
|
|
|
const-wide v1, 0x7fffffffffffffffL
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-wide v1
|
|
|
|
.line 62
|
|
:cond_0
|
|
invoke-virtual {v0}, Lkotlin/collections/ArrayDeque;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-wide/16 v1, 0x0
|
|
|
|
:goto_0
|
|
return-wide v1
|
|
.end method
|
|
|
|
.method public final incrementUseCount(Z)V
|
|
.locals 4
|
|
|
|
iget-wide v0, p0, Lkotlinx/coroutines/EventLoop;->useCount:J
|
|
|
|
.line 103
|
|
invoke-virtual {p0, p1}, Lkotlinx/coroutines/EventLoop;->delta(Z)J
|
|
|
|
move-result-wide v2
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
iput-wide v0, p0, Lkotlinx/coroutines/EventLoop;->useCount:J
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lkotlinx/coroutines/EventLoop;->shared:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final isUnconfinedLoopActive()Z
|
|
.locals 5
|
|
|
|
iget-wide v0, p0, Lkotlinx/coroutines/EventLoop;->useCount:J
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 93
|
|
invoke-virtual {p0, v2}, Lkotlinx/coroutines/EventLoop;->delta(Z)J
|
|
|
|
move-result-wide v3
|
|
|
|
cmp-long v0, v0, v3
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
return v2
|
|
.end method
|
|
|
|
.method public final isUnconfinedQueueEmpty()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/EventLoop;->unconfinedQueue:Lkotlin/collections/ArrayDeque;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 97
|
|
invoke-virtual {v0}, Lkotlin/collections/ArrayDeque;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final limitedParallelism(I)Lkotlinx/coroutines/CoroutineDispatcher;
|
|
.locals 0
|
|
|
|
.line 118
|
|
invoke-static {p1}, Lkotlinx/coroutines/internal/LimitedDispatcherKt;->checkParallelism(I)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public abstract processNextEvent()J
|
|
.end method
|
|
|
|
.method public final processUnconfinedEvent()Z
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/EventLoop;->unconfinedQueue:Lkotlin/collections/ArrayDeque;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 67
|
|
:cond_0
|
|
invoke-virtual {v0}, Lkotlin/collections/ArrayDeque;->removeFirstOrNull()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lkotlinx/coroutines/DispatchedTask;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return v1
|
|
|
|
.line 68
|
|
:cond_1
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/DispatchedTask;->run()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public shouldBeProcessedFromContext()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public abstract shutdown()V
|
|
.end method
|