753 lines
12 KiB
Smali
753 lines
12 KiB
Smali
.class final Lcom/google/android/gms/internal/measurement/gv;
|
|
.super Lcom/google/android/gms/internal/measurement/gu;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/google/android/gms/internal/measurement/gu;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method final b(Ljava/lang/CharSequence;[BII)I
|
|
.locals 7
|
|
|
|
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr p4, p3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
const/16 v2, 0x80
|
|
|
|
if-ge v1, v0, :cond_0
|
|
|
|
add-int v3, v1, p3
|
|
|
|
if-ge v3, p4, :cond_0
|
|
|
|
invoke-interface {p1, v1}, Ljava/lang/CharSequence;->charAt(I)C
|
|
|
|
move-result v4
|
|
|
|
if-ge v4, v2, :cond_0
|
|
|
|
int-to-byte v2, v4
|
|
|
|
aput-byte v2, p2, v3
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-ne v1, v0, :cond_1
|
|
|
|
add-int/2addr p3, v0
|
|
|
|
return p3
|
|
|
|
:cond_1
|
|
add-int/2addr p3, v1
|
|
|
|
:goto_1
|
|
if-ge v1, v0, :cond_b
|
|
|
|
invoke-interface {p1, v1}, Ljava/lang/CharSequence;->charAt(I)C
|
|
|
|
move-result v3
|
|
|
|
if-ge v3, v2, :cond_2
|
|
|
|
if-ge p3, p4, :cond_2
|
|
|
|
add-int/lit8 v4, p3, 0x1
|
|
|
|
int-to-byte v3, v3
|
|
|
|
aput-byte v3, p2, p3
|
|
|
|
:goto_2
|
|
move p3, v4
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_2
|
|
const/16 v4, 0x800
|
|
|
|
if-ge v3, v4, :cond_3
|
|
|
|
add-int/lit8 v4, p4, -0x2
|
|
|
|
if-gt p3, v4, :cond_3
|
|
|
|
add-int/lit8 v4, p3, 0x1
|
|
|
|
ushr-int/lit8 v5, v3, 0x6
|
|
|
|
or-int/lit16 v5, v5, 0x3c0
|
|
|
|
int-to-byte v5, v5
|
|
|
|
aput-byte v5, p2, p3
|
|
|
|
add-int/lit8 p3, v4, 0x1
|
|
|
|
and-int/lit8 v3, v3, 0x3f
|
|
|
|
or-int/2addr v3, v2
|
|
|
|
int-to-byte v3, v3
|
|
|
|
aput-byte v3, p2, v4
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const v4, 0xdfff
|
|
|
|
const v5, 0xd800
|
|
|
|
if-lt v3, v5, :cond_4
|
|
|
|
if-ge v4, v3, :cond_5
|
|
|
|
:cond_4
|
|
add-int/lit8 v6, p4, -0x3
|
|
|
|
if-gt p3, v6, :cond_5
|
|
|
|
add-int/lit8 v4, p3, 0x1
|
|
|
|
ushr-int/lit8 v5, v3, 0xc
|
|
|
|
or-int/lit16 v5, v5, 0x1e0
|
|
|
|
int-to-byte v5, v5
|
|
|
|
aput-byte v5, p2, p3
|
|
|
|
add-int/lit8 p3, v4, 0x1
|
|
|
|
ushr-int/lit8 v5, v3, 0x6
|
|
|
|
and-int/lit8 v5, v5, 0x3f
|
|
|
|
or-int/2addr v5, v2
|
|
|
|
int-to-byte v5, v5
|
|
|
|
aput-byte v5, p2, v4
|
|
|
|
add-int/lit8 v4, p3, 0x1
|
|
|
|
and-int/lit8 v3, v3, 0x3f
|
|
|
|
or-int/2addr v3, v2
|
|
|
|
int-to-byte v3, v3
|
|
|
|
aput-byte v3, p2, p3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
add-int/lit8 v6, p4, -0x4
|
|
|
|
if-gt p3, v6, :cond_8
|
|
|
|
add-int/lit8 v4, v1, 0x1
|
|
|
|
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v5
|
|
|
|
if-eq v4, v5, :cond_7
|
|
|
|
invoke-interface {p1, v4}, Ljava/lang/CharSequence;->charAt(I)C
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v3, v1}, Ljava/lang/Character;->isSurrogatePair(CC)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_6
|
|
|
|
invoke-static {v3, v1}, Ljava/lang/Character;->toCodePoint(CC)I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v3, p3, 0x1
|
|
|
|
ushr-int/lit8 v5, v1, 0x12
|
|
|
|
or-int/lit16 v5, v5, 0xf0
|
|
|
|
int-to-byte v5, v5
|
|
|
|
aput-byte v5, p2, p3
|
|
|
|
add-int/lit8 p3, v3, 0x1
|
|
|
|
ushr-int/lit8 v5, v1, 0xc
|
|
|
|
and-int/lit8 v5, v5, 0x3f
|
|
|
|
or-int/2addr v5, v2
|
|
|
|
int-to-byte v5, v5
|
|
|
|
aput-byte v5, p2, v3
|
|
|
|
add-int/lit8 v3, p3, 0x1
|
|
|
|
ushr-int/lit8 v5, v1, 0x6
|
|
|
|
and-int/lit8 v5, v5, 0x3f
|
|
|
|
or-int/2addr v5, v2
|
|
|
|
int-to-byte v5, v5
|
|
|
|
aput-byte v5, p2, p3
|
|
|
|
add-int/lit8 p3, v3, 0x1
|
|
|
|
and-int/lit8 v1, v1, 0x3f
|
|
|
|
or-int/2addr v1, v2
|
|
|
|
int-to-byte v1, v1
|
|
|
|
aput-byte v1, p2, v3
|
|
|
|
move v1, v4
|
|
|
|
:goto_3
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_6
|
|
move v1, v4
|
|
|
|
:cond_7
|
|
new-instance p1, Lcom/google/android/gms/internal/measurement/gw;
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
invoke-direct {p1, v1, v0}, Lcom/google/android/gms/internal/measurement/gw;-><init>(II)V
|
|
|
|
throw p1
|
|
|
|
:cond_8
|
|
if-gt v5, v3, :cond_a
|
|
|
|
if-gt v3, v4, :cond_a
|
|
|
|
add-int/lit8 p2, v1, 0x1
|
|
|
|
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result p4
|
|
|
|
if-eq p2, p4, :cond_9
|
|
|
|
invoke-interface {p1, p2}, Ljava/lang/CharSequence;->charAt(I)C
|
|
|
|
move-result p1
|
|
|
|
invoke-static {v3, p1}, Ljava/lang/Character;->isSurrogatePair(CC)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_a
|
|
|
|
:cond_9
|
|
new-instance p1, Lcom/google/android/gms/internal/measurement/gw;
|
|
|
|
invoke-direct {p1, v1, v0}, Lcom/google/android/gms/internal/measurement/gw;-><init>(II)V
|
|
|
|
throw p1
|
|
|
|
:cond_a
|
|
new-instance p1, Ljava/lang/ArrayIndexOutOfBoundsException;
|
|
|
|
const/16 p2, 0x25
|
|
|
|
new-instance p4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p4, p2}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string p2, "Failed writing "
|
|
|
|
invoke-virtual {p4, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p4, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
const-string p2, " at index "
|
|
|
|
invoke-virtual {p4, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p4, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_b
|
|
return p3
|
|
.end method
|
|
|
|
.method final b(Ljava/lang/CharSequence;Ljava/nio/ByteBuffer;)V
|
|
.locals 0
|
|
|
|
invoke-static {p1, p2}, Lcom/google/android/gms/internal/measurement/gv;->c(Ljava/lang/CharSequence;Ljava/nio/ByteBuffer;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method final g([BII)Ljava/lang/String;
|
|
.locals 11
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/android/gms/internal/measurement/eb;
|
|
}
|
|
.end annotation
|
|
|
|
or-int v0, p2, p3
|
|
|
|
array-length v1, p1
|
|
|
|
sub-int/2addr v1, p2
|
|
|
|
sub-int/2addr v1, p3
|
|
|
|
or-int/2addr v0, v1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ltz v0, :cond_c
|
|
|
|
add-int v0, p2, p3
|
|
|
|
new-array p3, p3, [C
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge p2, v0, :cond_1
|
|
|
|
aget-byte v4, p1, p2
|
|
|
|
if-ltz v4, :cond_0
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v5, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v5, :cond_1
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
add-int/lit8 v5, v3, 0x1
|
|
|
|
invoke-static {v4, p3, v3}, Lcom/google/android/gms/internal/measurement/gs;->a(B[CI)V
|
|
|
|
move v3, v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v8, v3
|
|
|
|
:goto_2
|
|
if-ge p2, v0, :cond_b
|
|
|
|
add-int/lit8 v3, p2, 0x1
|
|
|
|
aget-byte p2, p1, p2
|
|
|
|
if-ltz p2, :cond_2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
const/4 v4, 0x0
|
|
|
|
:goto_3
|
|
if-eqz v4, :cond_5
|
|
|
|
add-int/lit8 v4, v8, 0x1
|
|
|
|
invoke-static {p2, p3, v8}, Lcom/google/android/gms/internal/measurement/gs;->a(B[CI)V
|
|
|
|
:goto_4
|
|
if-ge v3, v0, :cond_4
|
|
|
|
aget-byte p2, p1, v3
|
|
|
|
if-ltz p2, :cond_3
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_3
|
|
const/4 v5, 0x0
|
|
|
|
:goto_5
|
|
if-eqz v5, :cond_4
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
add-int/lit8 v5, v4, 0x1
|
|
|
|
invoke-static {p2, p3, v4}, Lcom/google/android/gms/internal/measurement/gs;->a(B[CI)V
|
|
|
|
move v4, v5
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
move p2, v3
|
|
|
|
move v8, v4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
invoke-static {p2}, Lcom/google/android/gms/internal/measurement/gs;->e(B)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_7
|
|
|
|
if-ge v3, v0, :cond_6
|
|
|
|
add-int/lit8 v4, v3, 0x1
|
|
|
|
aget-byte v3, p1, v3
|
|
|
|
add-int/lit8 v5, v8, 0x1
|
|
|
|
invoke-static {p2, v3, p3, v8}, Lcom/google/android/gms/internal/measurement/gs;->a(BB[CI)V
|
|
|
|
move p2, v4
|
|
|
|
move v8, v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
invoke-static {}, Lcom/google/android/gms/internal/measurement/eb;->rd()Lcom/google/android/gms/internal/measurement/eb;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_7
|
|
invoke-static {p2}, Lcom/google/android/gms/internal/measurement/gs;->f(B)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_9
|
|
|
|
add-int/lit8 v4, v0, -0x1
|
|
|
|
if-ge v3, v4, :cond_8
|
|
|
|
add-int/lit8 v4, v3, 0x1
|
|
|
|
aget-byte v3, p1, v3
|
|
|
|
add-int/lit8 v5, v4, 0x1
|
|
|
|
aget-byte v4, p1, v4
|
|
|
|
add-int/lit8 v6, v8, 0x1
|
|
|
|
invoke-static {p2, v3, v4, p3, v8}, Lcom/google/android/gms/internal/measurement/gs;->a(BBB[CI)V
|
|
|
|
move p2, v5
|
|
|
|
move v8, v6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
invoke-static {}, Lcom/google/android/gms/internal/measurement/eb;->rd()Lcom/google/android/gms/internal/measurement/eb;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_9
|
|
add-int/lit8 v4, v0, -0x2
|
|
|
|
if-ge v3, v4, :cond_a
|
|
|
|
add-int/lit8 v4, v3, 0x1
|
|
|
|
aget-byte v5, p1, v3
|
|
|
|
add-int/lit8 v3, v4, 0x1
|
|
|
|
aget-byte v6, p1, v4
|
|
|
|
add-int/lit8 v9, v3, 0x1
|
|
|
|
aget-byte v7, p1, v3
|
|
|
|
add-int/lit8 v10, v8, 0x1
|
|
|
|
move v3, p2
|
|
|
|
move v4, v5
|
|
|
|
move v5, v6
|
|
|
|
move v6, v7
|
|
|
|
move-object v7, p3
|
|
|
|
invoke-static/range {v3 .. v8}, Lcom/google/android/gms/internal/measurement/gs;->a(BBBB[CI)V
|
|
|
|
add-int/2addr v10, v2
|
|
|
|
move p2, v9
|
|
|
|
move v8, v10
|
|
|
|
goto :goto_2
|
|
|
|
:cond_a
|
|
invoke-static {}, Lcom/google/android/gms/internal/measurement/eb;->rd()Lcom/google/android/gms/internal/measurement/eb;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_b
|
|
new-instance p1, Ljava/lang/String;
|
|
|
|
invoke-direct {p1, p3, v1, v8}, Ljava/lang/String;-><init>([CII)V
|
|
|
|
return-object p1
|
|
|
|
:cond_c
|
|
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
|
|
|
|
const/4 v3, 0x3
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
array-length p1, p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v3, v1
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v3, v2
|
|
|
|
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 p2, 0x2
|
|
|
|
aput-object p1, v3, p2
|
|
|
|
const-string p1, "buffer length=%d, index=%d, size=%d"
|
|
|
|
invoke-static {p1, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method final i([BII)I
|
|
.locals 7
|
|
|
|
:goto_0
|
|
if-ge p2, p3, :cond_0
|
|
|
|
aget-byte v0, p1, p2
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
if-lt p2, p3, :cond_1
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
if-lt p2, p3, :cond_2
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
add-int/lit8 v1, p2, 0x1
|
|
|
|
aget-byte p2, p1, p2
|
|
|
|
if-gez p2, :cond_d
|
|
|
|
const/16 v2, -0x20
|
|
|
|
const/4 v3, -0x1
|
|
|
|
const/16 v4, -0x41
|
|
|
|
if-ge p2, v2, :cond_5
|
|
|
|
if-lt v1, p3, :cond_3
|
|
|
|
return p2
|
|
|
|
:cond_3
|
|
const/16 v2, -0x3e
|
|
|
|
if-lt p2, v2, :cond_4
|
|
|
|
add-int/lit8 p2, v1, 0x1
|
|
|
|
aget-byte v1, p1, v1
|
|
|
|
if-le v1, v4, :cond_1
|
|
|
|
:cond_4
|
|
return v3
|
|
|
|
:cond_5
|
|
const/16 v5, -0x10
|
|
|
|
if-ge p2, v5, :cond_a
|
|
|
|
add-int/lit8 v5, p3, -0x1
|
|
|
|
if-lt v1, v5, :cond_6
|
|
|
|
invoke-static {p1, v1, p3}, Lcom/google/android/gms/internal/measurement/gr;->h([BII)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_6
|
|
add-int/lit8 v5, v1, 0x1
|
|
|
|
aget-byte v1, p1, v1
|
|
|
|
if-gt v1, v4, :cond_9
|
|
|
|
const/16 v6, -0x60
|
|
|
|
if-ne p2, v2, :cond_7
|
|
|
|
if-lt v1, v6, :cond_9
|
|
|
|
:cond_7
|
|
const/16 v2, -0x13
|
|
|
|
if-ne p2, v2, :cond_8
|
|
|
|
if-ge v1, v6, :cond_9
|
|
|
|
:cond_8
|
|
add-int/lit8 p2, v5, 0x1
|
|
|
|
aget-byte v1, p1, v5
|
|
|
|
if-le v1, v4, :cond_1
|
|
|
|
:cond_9
|
|
return v3
|
|
|
|
:cond_a
|
|
add-int/lit8 v2, p3, -0x2
|
|
|
|
if-lt v1, v2, :cond_b
|
|
|
|
invoke-static {p1, v1, p3}, Lcom/google/android/gms/internal/measurement/gr;->h([BII)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_b
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
aget-byte v1, p1, v1
|
|
|
|
if-gt v1, v4, :cond_c
|
|
|
|
shl-int/lit8 p2, p2, 0x1c
|
|
|
|
add-int/lit8 v1, v1, 0x70
|
|
|
|
add-int/2addr p2, v1
|
|
|
|
shr-int/lit8 p2, p2, 0x1e
|
|
|
|
if-nez p2, :cond_c
|
|
|
|
add-int/lit8 p2, v2, 0x1
|
|
|
|
aget-byte v1, p1, v2
|
|
|
|
if-gt v1, v4, :cond_c
|
|
|
|
add-int/lit8 v1, p2, 0x1
|
|
|
|
aget-byte p2, p1, p2
|
|
|
|
if-le p2, v4, :cond_d
|
|
|
|
:cond_c
|
|
return v3
|
|
|
|
:cond_d
|
|
move p2, v1
|
|
|
|
goto :goto_1
|
|
.end method
|