zzub.smali
.class abstract Lcom/google/android/gms/internal/gtm/zzub;
.super Ljava/lang/Object;
# direct methods
.method constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static zzc(Ljava/lang/CharSequence;Ljava/nio/ByteBuffer;)V
.registers 9
.line 3
invoke-interface {p0}, Ljava/lang/CharSequence;->length()I
move-result v0
.line 4
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I
move-result v1
const/4 v2, 0x0
:goto_9
const/16 v3, 0x80
if-ge v2, v0, :cond_1c
.line 6
:try_start_d
invoke-interface {p0, v2}, Ljava/lang/CharSequence;->charAt(I)C
move-result v4
if-ge v4, v3, :cond_1c
add-int v3, v1, v2
int-to-byte v4, v4
.line 7
invoke-virtual {p1, v3, v4}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
add-int/lit8 v2, v2, 0x1
goto :goto_9
:cond_1c
if-ne v2, v0, :cond_24
add-int v0, v1, v2
.line 10
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
return-void
:cond_24
add-int/2addr v1, v2
:goto_25
if-ge v2, v0, :cond_c3
.line 14
invoke-interface {p0, v2}, Ljava/lang/CharSequence;->charAt(I)C
move-result v4
if-ge v4, v3, :cond_33
int-to-byte v4, v4
.line 16
invoke-virtual {p1, v1, v4}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
:try_end_31
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_d .. :try_end_31} :catch_c7
goto/16 :goto_bd
:cond_33
const/16 v5, 0x800
if-ge v4, v5, :cond_4e
add-int/lit8 v5, v1, 0x1
ushr-int/lit8 v6, v4, 0x6
or-int/lit16 v6, v6, 0xc0
int-to-byte v6, v6
.line 18
:try_start_3e
invoke-virtual {p1, v1, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
and-int/lit8 v1, v4, 0x3f
or-int/2addr v1, v3
int-to-byte v1, v1
.line 19
invoke-virtual {p1, v5, v1}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
:try_end_48
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_3e .. :try_end_48} :catch_4b
move v1, v5
goto/16 :goto_bd
:catch_4b
move v1, v5
goto/16 :goto_c7
:cond_4e
const v5, 0xd800
if-lt v4, v5, :cond_a1
const v5, 0xdfff
if-ge v5, v4, :cond_59
goto :goto_a1
:cond_59
add-int/lit8 v5, v2, 0x1
if-eq v5, v0, :cond_9b
.line 24
:try_start_5d
invoke-interface {p0, v5}, Ljava/lang/CharSequence;->charAt(I)C
move-result v2
invoke-static {v4, v2}, Ljava/lang/Character;->isSurrogatePair(CC)Z
move-result v6
if-eqz v6, :cond_97
.line 26
invoke-static {v4, v2}, Ljava/lang/Character;->toCodePoint(CC)I
move-result v2
:try_end_6b
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_5d .. :try_end_6b} :catch_99
add-int/lit8 v4, v1, 0x1
ushr-int/lit8 v6, v2, 0x12
or-int/lit16 v6, v6, 0xf0
int-to-byte v6, v6
.line 27
:try_start_72
invoke-virtual {p1, v1, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
:try_end_75
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_72 .. :try_end_75} :catch_95
add-int/lit8 v1, v4, 0x1
ushr-int/lit8 v6, v2, 0xc
and-int/lit8 v6, v6, 0x3f
or-int/2addr v6, v3
int-to-byte v6, v6
.line 28
:try_start_7d
invoke-virtual {p1, v4, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
:try_end_80
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_7d .. :try_end_80} :catch_99
add-int/lit8 v4, v1, 0x1
ushr-int/lit8 v6, v2, 0x6
and-int/lit8 v6, v6, 0x3f
or-int/2addr v6, v3
int-to-byte v6, v6
.line 29
:try_start_88
invoke-virtual {p1, v1, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
and-int/lit8 v1, v2, 0x3f
or-int/2addr v1, v3
int-to-byte v1, v1
.line 30
invoke-virtual {p1, v4, v1}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
:try_end_92
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_88 .. :try_end_92} :catch_95
move v1, v4
move v2, v5
goto :goto_bd
:catch_95
move v1, v4
goto :goto_99
:cond_97
move v2, v5
goto :goto_9b
:catch_99
:goto_99
move v2, v5
goto :goto_c7
.line 25
:cond_9b
:goto_9b
:try_start_9b
new-instance v3, Lcom/google/android/gms/internal/gtm/zzud;
invoke-direct {v3, v2, v0}, Lcom/google/android/gms/internal/gtm/zzud;-><init>(II)V
throw v3
:try_end_a1
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_9b .. :try_end_a1} :catch_c7
:cond_a1
:goto_a1
add-int/lit8 v5, v1, 0x1
ushr-int/lit8 v6, v4, 0xc
or-int/lit16 v6, v6, 0xe0
int-to-byte v6, v6
.line 21
:try_start_a8
invoke-virtual {p1, v1, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
:try_end_ab
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_a8 .. :try_end_ab} :catch_4b
add-int/lit8 v1, v5, 0x1
ushr-int/lit8 v6, v4, 0x6
and-int/lit8 v6, v6, 0x3f
or-int/2addr v6, v3
int-to-byte v6, v6
.line 22
:try_start_b3
invoke-virtual {p1, v5, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
and-int/lit8 v4, v4, 0x3f
or-int/2addr v4, v3
int-to-byte v4, v4
.line 23
invoke-virtual {p1, v1, v4}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
:goto_bd
add-int/lit8 v2, v2, 0x1
add-int/lit8 v1, v1, 0x1
goto/16 :goto_25
.line 32
:cond_c3
invoke-virtual {p1, v1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
:try_end_c6
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_b3 .. :try_end_c6} :catch_c7
return-void
.line 35
:catch_c7
:goto_c7
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I
move-result v0
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I
move-result p1
sub-int/2addr v1, p1
add-int/lit8 v1, v1, 0x1
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
move-result p1
add-int/2addr v0, p1
.line 36
new-instance p1, Ljava/lang/ArrayIndexOutOfBoundsException;
.line 37
invoke-interface {p0, v2}, Ljava/lang/CharSequence;->charAt(I)C
move-result p0
const/16 v1, 0x25
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v1, "Failed writing "
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
const-string p0, " at index "
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method abstract zzb(I[BII)I
.end method
.method abstract zzb(Ljava/lang/CharSequence;[BII)I
.end method
.method abstract zzb(Ljava/lang/CharSequence;Ljava/nio/ByteBuffer;)V
.end method
.method final zzf([BII)Z
.registers 5
const/4 v0, 0x0
.line 2
invoke-virtual {p0, v0, p1, p2, p3}, Lcom/google/android/gms/internal/gtm/zzub;->zzb(I[BII)I
move-result p1
if-nez p1, :cond_9
const/4 p1, 0x1
return p1
:cond_9
return v0
.end method
.method abstract zzh([BII)Ljava/lang/String;
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/android/gms/internal/gtm/zzrk;
}
.end annotation
.end method