w.smali
.class public Lkotlin/m/w;
.super Lkotlin/m/v;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Lkotlin/m/v;-><init>()V
return-void
.end method
.method public static final c(Ljava/lang/String;)Ljava/lang/Integer;
.registers 2
const-string v0, "$this$toIntOrNull"
invoke-static {p0, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 57
invoke-static {p0}, Lkotlin/m/p;->d(Ljava/lang/String;)Ljava/lang/Integer;
move-result-object p0
return-object p0
.end method
.method public static final d(Ljava/lang/String;)Ljava/lang/Integer;
.registers 11
const-string v0, "$this$toIntOrNull"
invoke-static {p0, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 69
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_d
return-object v1
:cond_d
const/4 v2, 0x0
.line 76
invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C
move-result v3
const/16 v4, 0x30
const v5, -0x7fffffff
const/4 v6, 0x1
if-ge v3, v4, :cond_2c
if-ne v0, v6, :cond_1d
return-object v1
:cond_1d
const/16 v4, 0x2d
if-ne v3, v4, :cond_25
const/high16 v5, -0x80000000
const/4 v3, 0x1
goto :goto_2e
:cond_25
const/16 v4, 0x2b
if-ne v3, v4, :cond_2b
const/4 v3, 0x0
goto :goto_2e
:cond_2b
return-object v1
:cond_2c
const/4 v3, 0x0
const/4 v6, 0x0
:goto_2e
const v4, -0x38e38e3
const v7, -0x38e38e3
:goto_34
if-ge v6, v0, :cond_57
.line 102
invoke-virtual {p0, v6}, Ljava/lang/String;->charAt(I)C
move-result v8
const/16 v9, 0xa
.line 2148
invoke-static {v8, v9}, Ljava/lang/Character;->digit(II)I
move-result v8
if-gez v8, :cond_43
return-object v1
:cond_43
if-ge v2, v7, :cond_4c
if-ne v7, v4, :cond_4b
.line 107
div-int/lit8 v7, v5, 0xa
if-ge v2, v7, :cond_4c
:cond_4b
return-object v1
:cond_4c
mul-int/lit8 v2, v2, 0xa
add-int v9, v5, v8
if-ge v2, v9, :cond_53
return-object v1
:cond_53
sub-int/2addr v2, v8
add-int/lit8 v6, v6, 0x1
goto :goto_34
:cond_57
if-eqz v3, :cond_5e
.line 124
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
:cond_5e
neg-int p0, v2
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
.end method
.method public static final e(Ljava/lang/String;)Ljava/lang/Long;
.registers 2
const-string v0, "$this$toLongOrNull"
invoke-static {p0, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 132
invoke-static {p0}, Lkotlin/m/p;->f(Ljava/lang/String;)Ljava/lang/Long;
move-result-object p0
return-object p0
.end method
.method public static final f(Ljava/lang/String;)Ljava/lang/Long;
.registers 19
move-object/from16 v0, p0
const-string v1, "$this$toLongOrNull"
invoke-static {v0, v1}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 144
invoke-virtual/range {p0 .. p0}, Ljava/lang/String;->length()I
move-result v1
const/4 v2, 0x0
if-nez v1, :cond_f
return-object v2
:cond_f
const/4 v3, 0x0
.line 151
invoke-virtual {v0, v3}, Ljava/lang/String;->charAt(I)C
move-result v4
const/16 v5, 0x30
const-wide v6, -0x7fffffffffffffffL # -4.9E-324
const/4 v8, 0x1
if-ge v4, v5, :cond_30
if-ne v1, v8, :cond_21
return-object v2
:cond_21
const/16 v5, 0x2d
if-ne v4, v5, :cond_29
const-wide/high16 v6, -0x8000000000000000L
const/4 v3, 0x1
goto :goto_31
:cond_29
const/16 v5, 0x2b
if-ne v4, v5, :cond_2f
const/4 v3, 0x1
goto :goto_30
:cond_2f
return-object v2
:cond_30
:goto_30
const/4 v8, 0x0
:goto_31
const-wide/16 v4, 0x0
const-wide v9, -0x38e38e38e38e38eL # -2.772000429909333E291
move-wide v11, v9
:goto_39
if-ge v3, v1, :cond_67
.line 177
invoke-virtual {v0, v3}, Ljava/lang/String;->charAt(I)C
move-result v13
const/16 v14, 0xa
.line 3148
invoke-static {v13, v14}, Ljava/lang/Character;->digit(II)I
move-result v13
if-gez v13, :cond_48
return-object v2
:cond_48
const-wide/16 v14, 0xa
cmp-long v16, v4, v11
if-gez v16, :cond_59
cmp-long v16, v11, v9
if-nez v16, :cond_58
.line 182
div-long v11, v6, v14
cmp-long v16, v4, v11
if-gez v16, :cond_59
:cond_58
return-object v2
:cond_59
mul-long v4, v4, v14
int-to-long v13, v13
add-long v15, v6, v13
cmp-long v17, v4, v15
if-gez v17, :cond_63
return-object v2
:cond_63
sub-long/2addr v4, v13
add-int/lit8 v3, v3, 0x1
goto :goto_39
:cond_67
if-eqz v8, :cond_6e
.line 199
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
return-object v0
:cond_6e
neg-long v0, v4
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
return-object v0
.end method