Files
rr3-apk/smali_classes5/kotlin/collections/AbstractIterator.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

192 lines
4.2 KiB
Smali

.class public abstract Lkotlin/collections/AbstractIterator;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/Iterator;
.implements Lkotlin/jvm/internal/markers/KMappedMarker;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lkotlin/collections/AbstractIterator$WhenMappings;
}
.end annotation
# instance fields
.field public nextValue:Ljava/lang/Object;
.field public state:Lkotlin/collections/State;
# direct methods
.method public constructor <init>()V
.locals 1
.line 20
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 21
sget-object v0, Lkotlin/collections/State;->NotReady:Lkotlin/collections/State;
iput-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State;
return-void
.end method
# virtual methods
.method public abstract computeNext()V
.end method
.method public final done()V
.locals 1
.line 70
sget-object v0, Lkotlin/collections/State;->Done:Lkotlin/collections/State;
iput-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State;
return-void
.end method
.method public hasNext()Z
.locals 3
iget-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State;
.line 25
sget-object v1, Lkotlin/collections/State;->Failed:Lkotlin/collections/State;
if-eq v0, v1, :cond_2
.line 26
sget-object v1, Lkotlin/collections/AbstractIterator$WhenMappings;->$EnumSwitchMapping$0:[I
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
move-result v0
aget v0, v1, v0
const/4 v1, 0x1
if-eq v0, v1, :cond_0
const/4 v2, 0x2
if-eq v0, v2, :cond_1
.line 29
invoke-virtual {p0}, Lkotlin/collections/AbstractIterator;->tryToComputeNext()Z
move-result v1
goto :goto_0
:cond_0
const/4 v1, 0x0
:cond_1
:goto_0
return v1
.line 25
:cond_2
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Failed requirement."
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public next()Ljava/lang/Object;
.locals 1
.line 34
invoke-virtual {p0}, Lkotlin/collections/AbstractIterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
.line 35
sget-object v0, Lkotlin/collections/State;->NotReady:Lkotlin/collections/State;
iput-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State;
iget-object v0, p0, Lkotlin/collections/AbstractIterator;->nextValue:Ljava/lang/Object;
return-object v0
.line 34
:cond_0
new-instance v0, Ljava/util/NoSuchElementException;
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
throw v0
.end method
.method public remove()V
.locals 2
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "Operation is not supported for read-only collection"
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final setNext(Ljava/lang/Object;)V
.locals 0
iput-object p1, p0, Lkotlin/collections/AbstractIterator;->nextValue:Ljava/lang/Object;
.line 63
sget-object p1, Lkotlin/collections/State;->Ready:Lkotlin/collections/State;
iput-object p1, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State;
return-void
.end method
.method public final tryToComputeNext()Z
.locals 2
.line 41
sget-object v0, Lkotlin/collections/State;->Failed:Lkotlin/collections/State;
iput-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State;
.line 42
invoke-virtual {p0}, Lkotlin/collections/AbstractIterator;->computeNext()V
iget-object v0, p0, Lkotlin/collections/AbstractIterator;->state:Lkotlin/collections/State;
.line 43
sget-object v1, Lkotlin/collections/State;->Ready:Lkotlin/collections/State;
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method