- 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
391 lines
7.2 KiB
Smali
391 lines
7.2 KiB
Smali
.class public final Lokio/Segment;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public final data:[B
|
|
|
|
.field public limit:I
|
|
|
|
.field public next:Lokio/Segment;
|
|
|
|
.field public owner:Z
|
|
|
|
.field public pos:I
|
|
|
|
.field public prev:Lokio/Segment;
|
|
|
|
.field public shared:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 62
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/16 v0, 0x2000
|
|
|
|
new-array v0, v0, [B
|
|
|
|
iput-object v0, p0, Lokio/Segment;->data:[B
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lokio/Segment;->owner:Z
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lokio/Segment;->shared:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>([BIIZZ)V
|
|
.locals 0
|
|
|
|
.line 68
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lokio/Segment;->data:[B
|
|
|
|
iput p2, p0, Lokio/Segment;->pos:I
|
|
|
|
iput p3, p0, Lokio/Segment;->limit:I
|
|
|
|
iput-boolean p4, p0, Lokio/Segment;->shared:Z
|
|
|
|
iput-boolean p5, p0, Lokio/Segment;->owner:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final compact()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
if-eq v0, p0, :cond_3
|
|
|
|
.line 152
|
|
iget-boolean v1, v0, Lokio/Segment;->owner:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget v1, p0, Lokio/Segment;->limit:I
|
|
|
|
iget v2, p0, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
.line 154
|
|
iget v2, v0, Lokio/Segment;->limit:I
|
|
|
|
rsub-int v2, v2, 0x2000
|
|
|
|
iget-boolean v3, v0, Lokio/Segment;->shared:Z
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget v3, v0, Lokio/Segment;->pos:I
|
|
|
|
:goto_0
|
|
add-int/2addr v2, v3
|
|
|
|
if-le v1, v2, :cond_2
|
|
|
|
return-void
|
|
|
|
.line 156
|
|
:cond_2
|
|
invoke-virtual {p0, v0, v1}, Lokio/Segment;->writeTo(Lokio/Segment;I)V
|
|
|
|
.line 157
|
|
invoke-virtual {p0}, Lokio/Segment;->pop()Lokio/Segment;
|
|
|
|
.line 158
|
|
invoke-static {p0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
|
|
|
|
return-void
|
|
|
|
.line 151
|
|
:cond_3
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final pop()Lokio/Segment;
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eq v0, p0, :cond_0
|
|
|
|
move-object v2, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v2, v1
|
|
|
|
:goto_0
|
|
iget-object v3, p0, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
.line 97
|
|
iput-object v0, v3, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
iget-object v0, p0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
.line 98
|
|
iput-object v3, v0, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
iput-object v1, p0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
iput-object v1, p0, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
return-object v2
|
|
.end method
|
|
|
|
.method public final push(Lokio/Segment;)Lokio/Segment;
|
|
.locals 1
|
|
|
|
.line 109
|
|
iput-object p0, p1, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
iget-object v0, p0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
.line 110
|
|
iput-object v0, p1, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
iget-object v0, p0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
.line 111
|
|
iput-object p1, v0, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
iput-object p1, p0, Lokio/Segment;->next:Lokio/Segment;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final sharedCopy()Lokio/Segment;
|
|
.locals 7
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lokio/Segment;->shared:Z
|
|
|
|
.line 83
|
|
new-instance v0, Lokio/Segment;
|
|
|
|
iget-object v2, p0, Lokio/Segment;->data:[B
|
|
|
|
iget v3, p0, Lokio/Segment;->pos:I
|
|
|
|
iget v4, p0, Lokio/Segment;->limit:I
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v1, v0
|
|
|
|
invoke-direct/range {v1 .. v6}, Lokio/Segment;-><init>([BIIZZ)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final split(I)Lokio/Segment;
|
|
.locals 5
|
|
|
|
if-lez p1, :cond_1
|
|
|
|
iget v0, p0, Lokio/Segment;->limit:I
|
|
|
|
iget v1, p0, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
if-gt p1, v0, :cond_1
|
|
|
|
const/16 v0, 0x400
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
.line 134
|
|
invoke-virtual {p0}, Lokio/Segment;->sharedCopy()Lokio/Segment;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 136
|
|
:cond_0
|
|
invoke-static {}, Lokio/SegmentPool;->take()Lokio/Segment;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lokio/Segment;->data:[B
|
|
|
|
iget v2, p0, Lokio/Segment;->pos:I
|
|
|
|
.line 137
|
|
iget-object v3, v0, Lokio/Segment;->data:[B
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-static {v1, v2, v3, v4, p1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 140
|
|
:goto_0
|
|
iget v1, v0, Lokio/Segment;->pos:I
|
|
|
|
add-int/2addr v1, p1
|
|
|
|
iput v1, v0, Lokio/Segment;->limit:I
|
|
|
|
iget v1, p0, Lokio/Segment;->pos:I
|
|
|
|
add-int/2addr v1, p1
|
|
|
|
iput v1, p0, Lokio/Segment;->pos:I
|
|
|
|
iget-object p1, p0, Lokio/Segment;->prev:Lokio/Segment;
|
|
|
|
.line 142
|
|
invoke-virtual {p1, v0}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment;
|
|
|
|
return-object v0
|
|
|
|
.line 125
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final writeTo(Lokio/Segment;I)V
|
|
.locals 4
|
|
|
|
.line 163
|
|
iget-boolean v0, p1, Lokio/Segment;->owner:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 164
|
|
iget v0, p1, Lokio/Segment;->limit:I
|
|
|
|
add-int v1, v0, p2
|
|
|
|
const/16 v2, 0x2000
|
|
|
|
if-le v1, v2, :cond_2
|
|
|
|
.line 166
|
|
iget-boolean v1, p1, Lokio/Segment;->shared:Z
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
add-int v1, v0, p2
|
|
|
|
.line 167
|
|
iget v3, p1, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
if-gt v1, v2, :cond_0
|
|
|
|
.line 168
|
|
iget-object v1, p1, Lokio/Segment;->data:[B
|
|
|
|
sub-int/2addr v0, v3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v1, v3, v1, v2, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 169
|
|
iget v0, p1, Lokio/Segment;->limit:I
|
|
|
|
iget v1, p1, Lokio/Segment;->pos:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
iput v0, p1, Lokio/Segment;->limit:I
|
|
|
|
.line 170
|
|
iput v2, p1, Lokio/Segment;->pos:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 167
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
.line 166
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
iget-object v0, p0, Lokio/Segment;->data:[B
|
|
|
|
iget v1, p0, Lokio/Segment;->pos:I
|
|
|
|
.line 173
|
|
iget-object v2, p1, Lokio/Segment;->data:[B
|
|
|
|
iget v3, p1, Lokio/Segment;->limit:I
|
|
|
|
invoke-static {v0, v1, v2, v3, p2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 174
|
|
iget v0, p1, Lokio/Segment;->limit:I
|
|
|
|
add-int/2addr v0, p2
|
|
|
|
iput v0, p1, Lokio/Segment;->limit:I
|
|
|
|
iget p1, p0, Lokio/Segment;->pos:I
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
iput p1, p0, Lokio/Segment;->pos:I
|
|
|
|
return-void
|
|
|
|
.line 163
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|