Files
rr3-apk/smali_classes5/okio/Util.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

184 lines
3.0 KiB
Smali

.class public abstract Lokio/Util;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final UTF_8:Ljava/nio/charset/Charset;
# direct methods
.method static constructor <clinit>()V
.locals 1
const-string v0, "UTF-8"
.line 22
invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object v0
sput-object v0, Lokio/Util;->UTF_8:Ljava/nio/charset/Charset;
return-void
.end method
.method public static arrayRangeEquals([BI[BII)Z
.locals 4
const/4 v0, 0x0
move v1, v0
:goto_0
if-ge v1, p4, :cond_1
add-int v2, v1, p1
.line 76
aget-byte v2, p0, v2
add-int v3, v1, p3
aget-byte v3, p2, v3
if-eq v2, v3, :cond_0
return v0
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
const/4 p0, 0x1
return p0
.end method
.method public static checkOffsetAndCount(JJJ)V
.locals 4
or-long v0, p2, p4
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-ltz v0, :cond_0
cmp-long v0, p2, p0
if-gtz v0, :cond_0
sub-long v0, p0, p2
cmp-long v0, v0, p4
if-ltz v0, :cond_0
return-void
.line 29
:cond_0
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
.line 30
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p0
invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
invoke-static {p4, p5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p2
filled-new-array {p0, p1, p2}, [Ljava/lang/Object;
move-result-object p0
const-string p1, "size=%s offset=%s byteCount=%s"
invoke-static {p1, p0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static reverseBytesInt(I)I
.locals 2
const/high16 v0, -0x1000000
and-int/2addr v0, p0
ushr-int/lit8 v0, v0, 0x18
const/high16 v1, 0xff0000
and-int/2addr v1, p0
ushr-int/lit8 v1, v1, 0x8
or-int/2addr v0, v1
const v1, 0xff00
and-int/2addr v1, p0
shl-int/lit8 v1, v1, 0x8
or-int/2addr v0, v1
and-int/lit16 p0, p0, 0xff
shl-int/lit8 p0, p0, 0x18
or-int/2addr p0, v0
return p0
.end method
.method public static reverseBytesShort(S)S
.locals 1
const v0, 0xff00
and-int/2addr v0, p0
ushr-int/lit8 v0, v0, 0x8
and-int/lit16 p0, p0, 0xff
shl-int/lit8 p0, p0, 0x8
or-int/2addr p0, v0
int-to-short p0, p0
return p0
.end method
.method public static sneakyRethrow(Ljava/lang/Throwable;)V
.locals 0
.line 65
invoke-static {p0}, Lokio/Util;->sneakyThrow2(Ljava/lang/Throwable;)V
return-void
.end method
.method public static sneakyThrow2(Ljava/lang/Throwable;)V
.locals 0
.line 70
throw p0
.end method