[Asm] 纯文本查看 复制代码
.method public static cm(Ljava/lang/String;)Ljava/lang/String;
.locals 7
.prologue
const/16 v6, 0x7a
const/16 v5, 0x5a
.line 7
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_0
.line 8
const-string/jumbo v0, ""
.line 29
:goto_0
return-object v0
.line 11
:cond_0
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2, p0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
.line 13
invoke-virtual {v2}, Ljava/lang/StringBuilder;->length()I
move-result v3
.line 14
const/4 v0, 0x0
move v1, v0
:goto_1
if-ge v1, v3, :cond_3
.line 15
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->charAt(I)C
move-result v0
.line 16
const/16 v4, 0x41
if-gt v4, v0, :cond_2
if-gt v0, v5, :cond_2
.line 17
add-int/lit8 v0, v0, 0xd
int-to-char v0, v0
.line 18
if-le v0, v5, :cond_1
.line 19
rem-int/lit8 v0, v0, 0x5a
add-int/lit8 v0, v0, 0x41
add-int/lit8 v0, v0, -0x1
int-to-char v0, v0
.line 27
:cond_1
:goto_2
invoke-virtual {v2, v1, v0}, Ljava/lang/StringBuilder;->setCharAt(IC)V
.line 14
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_1
.line 21
:cond_2
const/16 v4, 0x61
if-gt v4, v0, :cond_1
if-gt v0, v6, :cond_1
.line 22
add-int/lit8 v0, v0, 0xd
int-to-char v0, v0
.line 23
if-le v0, v6, :cond_1
.line 24
rem-int/lit8 v0, v0, 0x7a
add-int/lit8 v0, v0, 0x61
add-int/lit8 v0, v0, -0x1
int-to-char v0, v0
goto :goto_2
.line 29
:cond_3
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_0
.end method