s1$c.smali
.class final Landroidx/datastore/preferences/protobuf/s1$c;
.super Landroidx/datastore/preferences/protobuf/s1$b;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/datastore/preferences/protobuf/s1;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "c"
.end annotation
# direct methods
.method constructor <init>()V
.registers 1
invoke-direct {p0}, Landroidx/datastore/preferences/protobuf/s1$b;-><init>()V
return-void
.end method
.method private static e([BII)I
.registers 4
:goto_0
if-ge p1, p2, :cond_9
aget-byte v0, p0, p1
if-ltz v0, :cond_9
add-int/lit8 p1, p1, 0x1
goto :goto_0
:cond_9
if-lt p1, p2, :cond_d
const/4 p0, 0x0
goto :goto_11
:cond_d
invoke-static {p0, p1, p2}, Landroidx/datastore/preferences/protobuf/s1$c;->f([BII)I
move-result p0
:goto_11
return p0
.end method
.method private static f([BII)I
.registers 9
:cond_0
:goto_0
if-lt p1, p2, :cond_4
const/4 p0, 0x0
return p0
:cond_4
add-int/lit8 v0, p1, 0x1
aget-byte p1, p0, p1
if-gez p1, :cond_6a
const/16 v1, -0x20
const/4 v2, -0x1
const/16 v3, -0x41
if-ge p1, v1, :cond_1f
if-lt v0, p2, :cond_14
return p1
:cond_14
const/16 v1, -0x3e
if-lt p1, v1, :cond_1e
add-int/lit8 p1, v0, 0x1
aget-byte v0, p0, v0
if-le v0, v3, :cond_0
:cond_1e
return v2
:cond_1f
const/16 v4, -0x10
if-ge p1, v4, :cond_45
add-int/lit8 v4, p2, -0x1
if-lt v0, v4, :cond_2c
invoke-static {p0, v0, p2}, Landroidx/datastore/preferences/protobuf/s1;->c([BII)I
move-result p0
return p0
:cond_2c
add-int/lit8 v4, v0, 0x1
aget-byte v0, p0, v0
if-gt v0, v3, :cond_44
const/16 v5, -0x60
if-ne p1, v1, :cond_38
if-lt v0, v5, :cond_44
:cond_38
const/16 v1, -0x13
if-ne p1, v1, :cond_3e
if-ge v0, v5, :cond_44
:cond_3e
add-int/lit8 p1, v4, 0x1
aget-byte v0, p0, v4
if-le v0, v3, :cond_0
:cond_44
return v2
:cond_45
add-int/lit8 v1, p2, -0x2
if-lt v0, v1, :cond_4e
invoke-static {p0, v0, p2}, Landroidx/datastore/preferences/protobuf/s1;->c([BII)I
move-result p0
return p0
:cond_4e
add-int/lit8 v1, v0, 0x1
aget-byte v0, p0, v0
if-gt v0, v3, :cond_69
shl-int/lit8 p1, p1, 0x1c
add-int/lit8 v0, v0, 0x70
add-int/2addr p1, v0
shr-int/lit8 p1, p1, 0x1e
if-nez p1, :cond_69
add-int/lit8 p1, v1, 0x1
aget-byte v0, p0, v1
if-gt v0, v3, :cond_69
add-int/lit8 v0, p1, 0x1
aget-byte p1, p0, p1
if-le p1, v3, :cond_6a
:cond_69
return v2
:cond_6a
move p1, v0
goto :goto_0
.end method
# virtual methods
.method a([BII)Ljava/lang/String;
.registers 15
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_ad
add-int v0, p2, p3
new-array p3, p3, [C
const/4 v3, 0x0
:goto_f
if-ge p2, v0, :cond_23
aget-byte v4, p1, p2
invoke-static {v4}, Landroidx/datastore/preferences/protobuf/s1$a;->b(B)Z
move-result v5
if-nez v5, :cond_1a
goto :goto_23
:cond_1a
add-int/lit8 p2, p2, 0x1
add-int/lit8 v5, v3, 0x1
invoke-static {v4, p3, v3}, Landroidx/datastore/preferences/protobuf/s1$a;->c(B[CI)V
move v3, v5
goto :goto_f
:cond_23
:goto_23
move v8, v3
:goto_24
if-ge p2, v0, :cond_a7
add-int/lit8 v3, p2, 0x1
aget-byte p2, p1, p2
invoke-static {p2}, Landroidx/datastore/preferences/protobuf/s1$a;->b(B)Z
move-result v4
if-eqz v4, :cond_4c
add-int/lit8 v4, v8, 0x1
invoke-static {p2, p3, v8}, Landroidx/datastore/preferences/protobuf/s1$a;->c(B[CI)V
:goto_35
if-ge v3, v0, :cond_49
aget-byte p2, p1, v3
invoke-static {p2}, Landroidx/datastore/preferences/protobuf/s1$a;->b(B)Z
move-result v5
if-nez v5, :cond_40
goto :goto_49
:cond_40
add-int/lit8 v3, v3, 0x1
add-int/lit8 v5, v4, 0x1
invoke-static {p2, p3, v4}, Landroidx/datastore/preferences/protobuf/s1$a;->c(B[CI)V
move v4, v5
goto :goto_35
:cond_49
:goto_49
move p2, v3
move v8, v4
goto :goto_24
:cond_4c
invoke-static {p2}, Landroidx/datastore/preferences/protobuf/s1$a;->d(B)Z
move-result v4
if-eqz v4, :cond_65
if-ge v3, v0, :cond_60
add-int/lit8 v4, v3, 0x1
aget-byte v3, p1, v3
add-int/lit8 v5, v8, 0x1
invoke-static {p2, v3, p3, v8}, Landroidx/datastore/preferences/protobuf/s1$a;->e(BB[CI)V
move p2, v4
move v8, v5
goto :goto_24
:cond_60
invoke-static {}, Landroidx/datastore/preferences/protobuf/b0;->c()Landroidx/datastore/preferences/protobuf/b0;
move-result-object p1
throw p1
:cond_65
invoke-static {p2}, Landroidx/datastore/preferences/protobuf/s1$a;->f(B)Z
move-result v4
if-eqz v4, :cond_84
add-int/lit8 v4, v0, -0x1
if-ge v3, v4, :cond_7f
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}, Landroidx/datastore/preferences/protobuf/s1$a;->g(BBB[CI)V
move p2, v5
move v8, v6
goto :goto_24
:cond_7f
invoke-static {}, Landroidx/datastore/preferences/protobuf/b0;->c()Landroidx/datastore/preferences/protobuf/b0;
move-result-object p1
throw p1
:cond_84
add-int/lit8 v4, v0, -0x2
if-ge v3, v4, :cond_a2
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}, Landroidx/datastore/preferences/protobuf/s1$a;->a(BBBB[CI)V
add-int/2addr v10, v2
move p2, v9
move v8, v10
goto :goto_24
:cond_a2
invoke-static {}, Landroidx/datastore/preferences/protobuf/b0;->c()Landroidx/datastore/preferences/protobuf/b0;
move-result-object p1
throw p1
:cond_a7
new-instance p1, Ljava/lang/String;
invoke-direct {p1, p3, v1, v8}, Ljava/lang/String;-><init>([CII)V
return-object p1
:cond_ad
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
goto :goto_d1
:goto_d0
throw v0
:goto_d1
goto :goto_d0
.end method
.method b(Ljava/lang/CharSequence;[BII)I
.registers 12
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v0
add-int/2addr p4, p3
const/4 v1, 0x0
:goto_6
const/16 v2, 0x80
if-ge v1, v0, :cond_1a
add-int v3, v1, p3
if-ge v3, p4, :cond_1a
invoke-interface {p1, v1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v4
if-ge v4, v2, :cond_1a
int-to-byte v2, v4
aput-byte v2, p2, v3
add-int/lit8 v1, v1, 0x1
goto :goto_6
:cond_1a
if-ne v1, v0, :cond_1e
add-int/2addr p3, v0
return p3
:cond_1e
add-int/2addr p3, v1
:goto_1f
if-ge v1, v0, :cond_fd
invoke-interface {p1, v1}, Ljava/lang/CharSequence;->charAt(I)C
move-result v3
if-ge v3, v2, :cond_31
if-ge p3, p4, :cond_31
add-int/lit8 v4, p3, 0x1
int-to-byte v3, v3
aput-byte v3, p2, p3
:goto_2e
move p3, v4
goto/16 :goto_b5
:cond_31
const/16 v4, 0x800
if-ge v3, v4, :cond_4b
add-int/lit8 v4, p4, -0x2
if-gt p3, v4, :cond_4b
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_b5
:cond_4b
const v4, 0xdfff
const v5, 0xd800
if-lt v3, v5, :cond_55
if-ge v4, v3, :cond_75
:cond_55
add-int/lit8 v6, p4, -0x3
if-gt p3, v6, :cond_75
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_2e
:cond_75
add-int/lit8 v6, p4, -0x4
if-gt p3, v6, :cond_c2
add-int/lit8 v4, v1, 0x1
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result v5
if-eq v4, v5, :cond_ba
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_b9
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_b5
add-int/lit8 v1, v1, 0x1
goto/16 :goto_1f
:cond_b9
move v1, v4
:cond_ba
new-instance p1, Landroidx/datastore/preferences/protobuf/s1$d;
add-int/lit8 v1, v1, -0x1
invoke-direct {p1, v1, v0}, Landroidx/datastore/preferences/protobuf/s1$d;-><init>(II)V
throw p1
:cond_c2
if-gt v5, v3, :cond_de
if-gt v3, v4, :cond_de
add-int/lit8 p2, v1, 0x1
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
move-result p4
if-eq p2, p4, :cond_d8
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_de
:cond_d8
new-instance p1, Landroidx/datastore/preferences/protobuf/s1$d;
invoke-direct {p1, v1, v0}, Landroidx/datastore/preferences/protobuf/s1$d;-><init>(II)V
throw p1
:cond_de
new-instance p1, Ljava/lang/ArrayIndexOutOfBoundsException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string p4, "Failed writing "
invoke-virtual {p2, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
const-string p4, " at index "
invoke-virtual {p2, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, 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_fd
return p3
.end method
.method d(I[BII)I
.registers 11
if-eqz p1, :cond_86
if-lt p3, p4, :cond_5
return p1
:cond_5
int-to-byte v0, p1
const/16 v1, -0x20
const/4 v2, -0x1
const/16 v3, -0x41
if-ge v0, v1, :cond_1c
const/16 p1, -0x3e
if-lt v0, p1, :cond_1b
add-int/lit8 p1, p3, 0x1
aget-byte p3, p2, p3
if-le p3, v3, :cond_18
goto :goto_1b
:cond_18
move p3, p1
goto/16 :goto_86
:cond_1b
:goto_1b
return v2
:cond_1c
const/16 v4, -0x10
if-ge v0, v4, :cond_49
shr-int/lit8 p1, p1, 0x8
xor-int/2addr p1, v2
int-to-byte p1, p1
if-nez p1, :cond_34
add-int/lit8 p1, p3, 0x1
aget-byte p3, p2, p3
if-lt p1, p4, :cond_31
invoke-static {v0, p3}, Landroidx/datastore/preferences/protobuf/s1;->a(II)I
move-result p1
return p1
:cond_31
move v5, p3
move p3, p1
move p1, v5
:cond_34
if-gt p1, v3, :cond_48
const/16 v4, -0x60
if-ne v0, v1, :cond_3c
if-lt p1, v4, :cond_48
:cond_3c
const/16 v1, -0x13
if-ne v0, v1, :cond_42
if-ge p1, v4, :cond_48
:cond_42
add-int/lit8 p1, p3, 0x1
aget-byte p3, p2, p3
if-le p3, v3, :cond_18
:cond_48
return v2
:cond_49
shr-int/lit8 v1, p1, 0x8
xor-int/2addr v1, v2
int-to-byte v1, v1
if-nez v1, :cond_5c
add-int/lit8 p1, p3, 0x1
aget-byte v1, p2, p3
if-lt p1, p4, :cond_5a
invoke-static {v0, v1}, Landroidx/datastore/preferences/protobuf/s1;->a(II)I
move-result p1
return p1
:cond_5a
const/4 p3, 0x0
goto :goto_62
:cond_5c
shr-int/lit8 p1, p1, 0x10
int-to-byte p1, p1
move v5, p3
move p3, p1
move p1, v5
:goto_62
if-nez p3, :cond_72
add-int/lit8 p3, p1, 0x1
aget-byte p1, p2, p1
if-lt p3, p4, :cond_6f
invoke-static {v0, v1, p1}, Landroidx/datastore/preferences/protobuf/s1;->b(III)I
move-result p1
return p1
:cond_6f
move v5, p3
move p3, p1
move p1, v5
:cond_72
if-gt v1, v3, :cond_85
shl-int/lit8 v0, v0, 0x1c
add-int/lit8 v1, v1, 0x70
add-int/2addr v0, v1
shr-int/lit8 v0, v0, 0x1e
if-nez v0, :cond_85
if-gt p3, v3, :cond_85
add-int/lit8 p3, p1, 0x1
aget-byte p1, p2, p1
if-le p1, v3, :cond_86
:cond_85
return v2
:cond_86
:goto_86
invoke-static {p2, p3, p4}, Landroidx/datastore/preferences/protobuf/s1$c;->e([BII)I
move-result p1
return p1
.end method