294 lines
3.8 KiB
Smali
294 lines
3.8 KiB
Smali
.class public Lb8/c;
|
|
.super Ljava/lang/Object;
|
|
.source "UnsignedUtil.java"
|
|
|
|
|
|
# direct methods
|
|
.method public static a(S)I
|
|
.locals 1
|
|
|
|
const v0, 0xffff
|
|
|
|
and-int/2addr p0, v0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static b(I)J
|
|
.locals 4
|
|
|
|
int-to-long v0, p0
|
|
|
|
const-wide v2, 0xffffffffL
|
|
|
|
and-long/2addr v0, v2
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static c(B)S
|
|
.locals 0
|
|
|
|
and-int/lit16 p0, p0, 0xff
|
|
|
|
int-to-short p0, p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static d([B)S
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {p0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object p0
|
|
|
|
.line 2
|
|
sget-object v0, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
|
|
|
|
invoke-virtual {p0, v0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->get()B
|
|
|
|
move-result p0
|
|
|
|
int-to-short p0, p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static e(J)[B
|
|
.locals 5
|
|
|
|
const/4 v0, 0x4
|
|
|
|
new-array v0, v0, [B
|
|
|
|
const-wide/16 v1, 0xff
|
|
|
|
and-long v3, p0, v1
|
|
|
|
long-to-int v3, v3
|
|
|
|
int-to-byte v3, v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-byte v3, v0, v4
|
|
|
|
const/16 v3, 0x8
|
|
|
|
shr-long v3, p0, v3
|
|
|
|
and-long/2addr v3, v1
|
|
|
|
long-to-int v3, v3
|
|
|
|
int-to-byte v3, v3
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-byte v3, v0, v4
|
|
|
|
const/16 v3, 0x10
|
|
|
|
shr-long v3, p0, v3
|
|
|
|
and-long/2addr v3, v1
|
|
|
|
long-to-int v3, v3
|
|
|
|
int-to-byte v3, v3
|
|
|
|
const/4 v4, 0x2
|
|
|
|
aput-byte v3, v0, v4
|
|
|
|
const/16 v3, 0x18
|
|
|
|
shr-long/2addr p0, v3
|
|
|
|
and-long/2addr p0, v1
|
|
|
|
long-to-int p0, p0
|
|
|
|
int-to-byte p0, p0
|
|
|
|
const/4 p1, 0x3
|
|
|
|
aput-byte p0, v0, p1
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static f([B)I
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
.line 1
|
|
:goto_0
|
|
array-length v2, p0
|
|
|
|
if-ge v0, v2, :cond_0
|
|
|
|
.line 2
|
|
aget-byte v2, p0, v0
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
mul-int/lit8 v3, v0, 0x8
|
|
|
|
shl-int/2addr v2, v3
|
|
|
|
or-int/2addr v1, v2
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public static g(B)S
|
|
.locals 0
|
|
|
|
and-int/lit16 p0, p0, 0xff
|
|
|
|
or-int/lit8 p0, p0, 0x0
|
|
|
|
int-to-short p0, p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static h(I)[B
|
|
.locals 3
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [B
|
|
|
|
and-int/lit16 v1, p0, 0xff
|
|
|
|
int-to-byte v1, v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-byte v1, v0, v2
|
|
|
|
shr-int/lit8 p0, p0, 0x8
|
|
|
|
and-int/lit16 p0, p0, 0xff
|
|
|
|
int-to-byte p0, p0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
aput-byte p0, v0, v1
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static i(S)[B
|
|
.locals 2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [B
|
|
|
|
and-int/lit16 p0, p0, 0xff
|
|
|
|
int-to-byte p0, p0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aput-byte p0, v0, v1
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static j(I)J
|
|
.locals 3
|
|
|
|
const/4 v0, 0x4
|
|
|
|
new-array v0, v0, [B
|
|
|
|
shr-int/lit8 v1, p0, 0x18
|
|
|
|
int-to-byte v1, v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-byte v1, v0, v2
|
|
|
|
shr-int/lit8 v1, p0, 0x10
|
|
|
|
int-to-byte v1, v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-byte v1, v0, v2
|
|
|
|
shr-int/lit8 v1, p0, 0x8
|
|
|
|
int-to-byte v1, v1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aput-byte v1, v0, v2
|
|
|
|
int-to-byte p0, p0
|
|
|
|
const/4 v1, 0x3
|
|
|
|
aput-byte p0, v0, v1
|
|
|
|
.line 1
|
|
invoke-static {v0}, Lb8/c;->k([B)J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static k([B)J
|
|
.locals 5
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 1
|
|
:goto_0
|
|
array-length v3, p0
|
|
|
|
if-ge v2, v3, :cond_0
|
|
|
|
.line 2
|
|
aget-byte v3, p0, v2
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
mul-int/lit8 v4, v2, 0x8
|
|
|
|
shl-int/2addr v3, v4
|
|
|
|
int-to-long v3, v3
|
|
|
|
or-long/2addr v0, v3
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-wide v0
|
|
.end method
|