u2.smali
.class public final Lf6/u2;
.super Ljava/lang/Object;
.source "Utf8.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf6/u2$a;,
Lf6/u2$e;,
Lf6/u2$c;,
Lf6/u2$b;,
Lf6/u2$d;
}
.end annotation
# static fields
.field public static final a:Lf6/u2$b;
# direct methods
.method public static constructor <clinit>()V
.registers 1
invoke-static {}, Lf6/u2$e;->a()Z
move-result v0
if-eqz v0, :cond_12
invoke-static {}, Lf6/e;->b()Z
move-result v0
if-nez v0, :cond_12
new-instance v0, Lf6/u2$e;
invoke-direct {v0}, Lf6/u2$e;-><init>()V
goto :goto_17
:cond_12
new-instance v0, Lf6/u2$c;
invoke-direct {v0}, Lf6/u2$c;-><init>()V
:goto_17
sput-object v0, Lf6/u2;->a:Lf6/u2$b;
return-void
.end method
.method public static synthetic a(I)I
.registers 1
invoke-static {p0}, Lf6/u2;->b(I)I
move-result p0
return p0
.end method
.method public static synthetic a(II)I
.registers 2
invoke-static {p0, p1}, Lf6/u2;->b(II)I
move-result p0
return p0
.end method
.method public static synthetic a(III)I
.registers 3
invoke-static {p0, p1, p2}, Lf6/u2;->b(III)I
move-result p0
return p0
.end method
.method public static a(Ljava/lang/CharSequence;)I
.registers 6
invoke-interface {p0}, Ljava/lang/CharSequence;->length()I
move-result v0
const/4 v1, 0x0
:goto_5
if-ge v1, v0, :cond_12
invoke-interface {p0, v1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v2
const/16 v3, 0x80
if-ge v2, v3, :cond_12
add-int/lit8 v1, v1, 0x1
goto :goto_5
:cond_12
move v2, v0
:goto_13
if-ge v1, v0, :cond_2a
invoke-interface {p0, v1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v3
const/16 v4, 0x800
if-ge v3, v4, :cond_25
rsub-int/lit8 v3, v3, 0x7f
ushr-int/lit8 v3, v3, 0x1f
add-int/2addr v2, v3
add-int/lit8 v1, v1, 0x1
goto :goto_13
:cond_25
invoke-static {p0, v1}, Lf6/u2;->a(Ljava/lang/CharSequence;I)I
move-result p0
add-int/2addr v2, p0
:cond_2a
if-lt v2, v0, :cond_2d
return v2
:cond_2d
new-instance p0, Ljava/lang/IllegalArgumentException;
int-to-long v0, v2
const-wide v2, 0x100000000L
add-long/2addr v0, v2
const/16 v2, 0x36
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v2, "UTF-8 length does not fit in int: "
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
goto :goto_4e
:goto_4d
throw p0
:goto_4e
goto :goto_4d
.end method
.method public static a(Ljava/lang/CharSequence;I)I
.registers 6
invoke-interface {p0}, Ljava/lang/CharSequence;->length()I
move-result v0
const/4 v1, 0x0
:goto_5
if-ge p1, v0, :cond_35
invoke-interface {p0, p1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v2
const/16 v3, 0x800
if-ge v2, v3, :cond_15
rsub-int/lit8 v2, v2, 0x7f
ushr-int/lit8 v2, v2, 0x1f
add-int/2addr v1, v2
goto :goto_32
:cond_15
add-int/lit8 v1, v1, 0x2
const v3, 0xd800
if-gt v3, v2, :cond_32
const v3, 0xdfff
if-gt v2, v3, :cond_32
invoke-static {p0, p1}, Ljava/lang/Character;->codePointAt(Ljava/lang/CharSequence;I)I
move-result v2
const/high16 v3, 0x10000
if-lt v2, v3, :cond_2c
add-int/lit8 p1, p1, 0x1
goto :goto_32
:cond_2c
new-instance p0, Lf6/u2$d;
invoke-direct {p0, p1, v0}, Lf6/u2$d;-><init>(II)V
throw p0
:cond_32
:goto_32
add-int/lit8 p1, p1, 0x1
goto :goto_5
:cond_35
return v1
.end method
.method public static a(Ljava/lang/CharSequence;[BII)I
.registers 5
sget-object v0, Lf6/u2;->a:Lf6/u2$b;
invoke-virtual {v0, p0, p1, p2, p3}, Lf6/u2$b;->a(Ljava/lang/CharSequence;[BII)I
move-result p0
return p0
.end method
.method public static synthetic a(Ljava/nio/ByteBuffer;II)I
.registers 3
invoke-static {p0, p1, p2}, Lf6/u2;->c(Ljava/nio/ByteBuffer;II)I
move-result p0
return p0
.end method
.method public static synthetic a(Ljava/nio/ByteBuffer;III)I
.registers 4
invoke-static {p0, p1, p2, p3}, Lf6/u2;->b(Ljava/nio/ByteBuffer;III)I
move-result p0
return p0
.end method
.method public static synthetic a([BII)I
.registers 3
invoke-static {p0, p1, p2}, Lf6/u2;->c([BII)I
move-result p0
return p0
.end method
.method public static a(Ljava/nio/ByteBuffer;)Z
.registers 4
sget-object v0, Lf6/u2;->a:Lf6/u2$b;
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->position()I
move-result v1
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->remaining()I
move-result v2
invoke-virtual {v0, p0, v1, v2}, Lf6/u2$b;->d(Ljava/nio/ByteBuffer;II)Z
move-result p0
return p0
.end method
.method public static a([B)Z
.registers 4
sget-object v0, Lf6/u2;->a:Lf6/u2$b;
array-length v1, p0
const/4 v2, 0x0
invoke-virtual {v0, p0, v2, v1}, Lf6/u2$b;->b([BII)Z
move-result p0
return p0
.end method
.method public static b(I)I
.registers 2
const/16 v0, -0xc
if-le p0, v0, :cond_5
const/4 p0, -0x1
:cond_5
return p0
.end method
.method public static b(II)I
.registers 3
const/16 v0, -0xc
if-gt p0, v0, :cond_d
const/16 v0, -0x41
if-le p1, v0, :cond_9
goto :goto_d
:cond_9
shl-int/lit8 p1, p1, 0x8
xor-int/2addr p0, p1
goto :goto_e
:cond_d
:goto_d
const/4 p0, -0x1
:goto_e
return p0
.end method
.method public static b(III)I
.registers 4
const/16 v0, -0xc
if-gt p0, v0, :cond_12
const/16 v0, -0x41
if-gt p1, v0, :cond_12
if-le p2, v0, :cond_b
goto :goto_12
:cond_b
shl-int/lit8 p1, p1, 0x8
xor-int/2addr p0, p1
shl-int/lit8 p1, p2, 0x10
xor-int/2addr p0, p1
goto :goto_13
:cond_12
:goto_12
const/4 p0, -0x1
:goto_13
return p0
.end method
.method public static b(Ljava/nio/ByteBuffer;III)I
.registers 6
if-eqz p3, :cond_25
const/4 v0, 0x1
if-eq p3, v0, :cond_1c
const/4 v1, 0x2
if-ne p3, v1, :cond_16
invoke-virtual {p0, p2}, Ljava/nio/ByteBuffer;->get(I)B
move-result p3
add-int/2addr p2, v0
invoke-virtual {p0, p2}, Ljava/nio/ByteBuffer;->get(I)B
move-result p0
invoke-static {p1, p3, p0}, Lf6/u2;->b(III)I
move-result p0
return p0
:cond_16
new-instance p0, Ljava/lang/AssertionError;
invoke-direct {p0}, Ljava/lang/AssertionError;-><init>()V
throw p0
:cond_1c
invoke-virtual {p0, p2}, Ljava/nio/ByteBuffer;->get(I)B
move-result p0
invoke-static {p1, p0}, Lf6/u2;->b(II)I
move-result p0
return p0
:cond_25
invoke-static {p1}, Lf6/u2;->b(I)I
move-result p0
return p0
.end method
.method public static b(Ljava/nio/ByteBuffer;II)Ljava/lang/String;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Lf6/l0;
}
.end annotation
sget-object v0, Lf6/u2;->a:Lf6/u2$b;
invoke-virtual {v0, p0, p1, p2}, Lf6/u2$b;->a(Ljava/nio/ByteBuffer;II)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static b([BII)Ljava/lang/String;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Lf6/l0;
}
.end annotation
sget-object v0, Lf6/u2;->a:Lf6/u2$b;
invoke-virtual {v0, p0, p1, p2}, Lf6/u2$b;->a([BII)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static c(Ljava/nio/ByteBuffer;II)I
.registers 9
add-int/lit8 p2, p2, -0x7
move v0, p1
:goto_3
if-ge v0, p2, :cond_18
invoke-virtual {p0, v0}, Ljava/nio/ByteBuffer;->getLong(I)J
move-result-wide v1
const-wide v3, -0x7f7f7f7f7f7f7f80L # -2.937446524422997E-306
and-long/2addr v1, v3
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-nez v5, :cond_18
add-int/lit8 v0, v0, 0x8
goto :goto_3
:cond_18
sub-int/2addr v0, p1
return v0
.end method
.method public static c([BII)I
.registers 6
add-int/lit8 v0, p1, -0x1
aget-byte v0, p0, v0
sub-int/2addr p2, p1
if-eqz p2, :cond_24
const/4 v1, 0x1
if-eq p2, v1, :cond_1d
const/4 v2, 0x2
if-ne p2, v2, :cond_17
aget-byte p2, p0, p1
add-int/2addr p1, v1
aget-byte p0, p0, p1
invoke-static {v0, p2, p0}, Lf6/u2;->b(III)I
move-result p0
return p0
:cond_17
new-instance p0, Ljava/lang/AssertionError;
invoke-direct {p0}, Ljava/lang/AssertionError;-><init>()V
throw p0
:cond_1d
aget-byte p0, p0, p1
invoke-static {v0, p0}, Lf6/u2;->b(II)I
move-result p0
return p0
:cond_24
invoke-static {v0}, Lf6/u2;->b(I)I
move-result p0
return p0
.end method
.method public static d([BII)Z
.registers 4
sget-object v0, Lf6/u2;->a:Lf6/u2$b;
invoke-virtual {v0, p0, p1, p2}, Lf6/u2$b;->b([BII)Z
move-result p0
return p0
.end method