apkfuckery/com.discord/smali_classes2/kotlin/c/b.smali

522 lines
14 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lkotlin/c/b;
.super Ljava/lang/Object;
.source "PlatformImplementations.kt"
# static fields
2019-11-15 02:21:15 +00:00
.field public static final bhw:Lkotlin/c/a;
2019-07-24 11:27:29 +00:00
# direct methods
.method static constructor <clinit>()V
.locals 11
2019-11-15 02:21:15 +00:00
invoke-static {}, Lkotlin/c/b;->Db()I
2019-07-24 11:27:29 +00:00
move-result v0
const-string v1, "ClassCastException(\"Inst\u2026baseTypeCL\").initCause(e)"
const-string v2, ", base type classloader: "
const-string v3, "Instance classloader: "
const-string v4, "null cannot be cast to non-null type kotlin.internal.PlatformImplementations"
const-string v5, "Class.forName(\"kotlin.in\u2026entations\").newInstance()"
const v6, 0x10008
if-lt v0, v6, :cond_2
:try_start_0
const-string v6, "kotlin.internal.jdk8.JDK8PlatformImplementations"
invoke-static {v6}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v6
invoke-virtual {v6}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
move-result-object v6
2019-10-09 23:16:36 +00:00
invoke-static {v6, v5}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
:try_end_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
if-eqz v6, :cond_0
:try_start_1
check-cast v6, Lkotlin/c/a;
goto/16 :goto_4
:catch_0
move-exception v7
goto :goto_0
:cond_0
new-instance v7, Lkotlin/r;
invoke-direct {v7, v4}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw v7
:try_end_1
.catch Ljava/lang/ClassCastException; {:try_start_1 .. :try_end_1} :catch_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
:goto_0
:try_start_2
invoke-virtual {v6}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v6
invoke-virtual {v6}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v6
const-class v8, Lkotlin/c/a;
invoke-virtual {v8}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v8
new-instance v9, Ljava/lang/ClassCastException;
new-instance v10, Ljava/lang/StringBuilder;
invoke-direct {v10, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v10, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v10, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
invoke-direct {v9, v6}, Ljava/lang/ClassCastException;-><init>(Ljava/lang/String;)V
check-cast v7, Ljava/lang/Throwable;
invoke-virtual {v9, v7}, Ljava/lang/ClassCastException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
move-result-object v6
2019-10-09 23:16:36 +00:00
invoke-static {v6, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
throw v6
:try_end_2
.catch Ljava/lang/ClassNotFoundException; {:try_start_2 .. :try_end_2} :catch_1
:catch_1
:try_start_3
const-string v6, "kotlin.internal.JRE8PlatformImplementations"
invoke-static {v6}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v6
invoke-virtual {v6}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
move-result-object v6
2019-10-09 23:16:36 +00:00
invoke-static {v6, v5}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
:try_end_3
.catch Ljava/lang/ClassNotFoundException; {:try_start_3 .. :try_end_3} :catch_3
if-eqz v6, :cond_1
:try_start_4
check-cast v6, Lkotlin/c/a;
goto/16 :goto_4
:catch_2
move-exception v7
goto :goto_1
:cond_1
new-instance v7, Lkotlin/r;
invoke-direct {v7, v4}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw v7
:try_end_4
.catch Ljava/lang/ClassCastException; {:try_start_4 .. :try_end_4} :catch_2
.catch Ljava/lang/ClassNotFoundException; {:try_start_4 .. :try_end_4} :catch_3
:goto_1
:try_start_5
invoke-virtual {v6}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v6
invoke-virtual {v6}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v6
const-class v8, Lkotlin/c/a;
invoke-virtual {v8}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v8
new-instance v9, Ljava/lang/ClassCastException;
new-instance v10, Ljava/lang/StringBuilder;
invoke-direct {v10, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v10, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v10, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
invoke-direct {v9, v6}, Ljava/lang/ClassCastException;-><init>(Ljava/lang/String;)V
check-cast v7, Ljava/lang/Throwable;
invoke-virtual {v9, v7}, Ljava/lang/ClassCastException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
move-result-object v6
2019-10-09 23:16:36 +00:00
invoke-static {v6, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
throw v6
:try_end_5
.catch Ljava/lang/ClassNotFoundException; {:try_start_5 .. :try_end_5} :catch_3
:catch_3
2019-08-30 20:04:20 +00:00
nop
2019-07-24 11:27:29 +00:00
:cond_2
const v6, 0x10007
if-lt v0, v6, :cond_5
:try_start_6
const-string v0, "kotlin.c.a.a"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
move-result-object v0
2019-10-09 23:16:36 +00:00
invoke-static {v0, v5}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
:try_end_6
.catch Ljava/lang/ClassNotFoundException; {:try_start_6 .. :try_end_6} :catch_5
if-eqz v0, :cond_3
:try_start_7
move-object v6, v0
check-cast v6, Lkotlin/c/a;
goto/16 :goto_4
:catch_4
move-exception v6
goto :goto_2
:cond_3
new-instance v6, Lkotlin/r;
invoke-direct {v6, v4}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw v6
:try_end_7
.catch Ljava/lang/ClassCastException; {:try_start_7 .. :try_end_7} :catch_4
.catch Ljava/lang/ClassNotFoundException; {:try_start_7 .. :try_end_7} :catch_5
:goto_2
:try_start_8
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v0
const-class v7, Lkotlin/c/a;
invoke-virtual {v7}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v7
new-instance v8, Ljava/lang/ClassCastException;
new-instance v9, Ljava/lang/StringBuilder;
invoke-direct {v9, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v9, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v8, v0}, Ljava/lang/ClassCastException;-><init>(Ljava/lang/String;)V
check-cast v6, Ljava/lang/Throwable;
invoke-virtual {v8, v6}, Ljava/lang/ClassCastException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
move-result-object v0
2019-10-09 23:16:36 +00:00
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
throw v0
:try_end_8
.catch Ljava/lang/ClassNotFoundException; {:try_start_8 .. :try_end_8} :catch_5
:catch_5
:try_start_9
const-string v0, "kotlin.internal.JRE7PlatformImplementations"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
move-result-object v0
2019-10-09 23:16:36 +00:00
invoke-static {v0, v5}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
:try_end_9
.catch Ljava/lang/ClassNotFoundException; {:try_start_9 .. :try_end_9} :catch_7
if-eqz v0, :cond_4
:try_start_a
move-object v6, v0
check-cast v6, Lkotlin/c/a;
goto :goto_4
:catch_6
move-exception v4
goto :goto_3
:cond_4
new-instance v5, Lkotlin/r;
invoke-direct {v5, v4}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw v5
:try_end_a
.catch Ljava/lang/ClassCastException; {:try_start_a .. :try_end_a} :catch_6
.catch Ljava/lang/ClassNotFoundException; {:try_start_a .. :try_end_a} :catch_7
:goto_3
:try_start_b
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v0
const-class v5, Lkotlin/c/a;
invoke-virtual {v5}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v5
new-instance v6, Ljava/lang/ClassCastException;
new-instance v7, Ljava/lang/StringBuilder;
invoke-direct {v7, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v6, v0}, Ljava/lang/ClassCastException;-><init>(Ljava/lang/String;)V
check-cast v4, Ljava/lang/Throwable;
invoke-virtual {v6, v4}, Ljava/lang/ClassCastException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
move-result-object v0
2019-10-09 23:16:36 +00:00
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
throw v0
:try_end_b
.catch Ljava/lang/ClassNotFoundException; {:try_start_b .. :try_end_b} :catch_7
:catch_7
:cond_5
new-instance v6, Lkotlin/c/a;
invoke-direct {v6}, Lkotlin/c/a;-><init>()V
:goto_4
2019-11-15 02:21:15 +00:00
sput-object v6, Lkotlin/c/b;->bhw:Lkotlin/c/a;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-11-15 02:21:15 +00:00
.method private static final Db()I
2019-10-09 23:16:36 +00:00
.locals 12
2019-07-24 11:27:29 +00:00
const-string v0, "java.specification.version"
invoke-static {v0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const v1, 0x10006
if-nez v0, :cond_0
return v1
:cond_0
2019-10-09 23:16:36 +00:00
move-object v8, v0
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
check-cast v8, Ljava/lang/CharSequence;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
const/16 v3, 0x2e
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
const/4 v4, 0x0
2019-07-24 11:27:29 +00:00
const/4 v5, 0x0
2019-10-09 23:16:36 +00:00
const/4 v6, 0x6
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
const/4 v7, 0x0
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
move-object v2, v8
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-static/range {v2 .. v7}, Lkotlin/text/l;->indexOf$default(Ljava/lang/CharSequence;CIZILjava/lang/Object;)I
move-result v9
const/high16 v10, 0x10000
if-gez v9, :cond_1
2019-07-24 11:27:29 +00:00
:try_start_0
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
2019-10-09 23:16:36 +00:00
mul-int v1, v0, v10
2019-07-24 11:27:29 +00:00
:catch_0
return v1
:cond_1
2019-10-09 23:16:36 +00:00
const/16 v3, 0x2e
add-int/lit8 v11, v9, 0x1
const/4 v5, 0x0
const/4 v6, 0x4
const/4 v7, 0x0
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
move-object v2, v8
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
move v4, v11
invoke-static/range {v2 .. v7}, Lkotlin/text/l;->indexOf$default(Ljava/lang/CharSequence;CIZILjava/lang/Object;)I
2019-07-24 11:27:29 +00:00
move-result v2
if-gez v2, :cond_2
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v2
:cond_2
2019-10-09 23:16:36 +00:00
const-string v3, "null cannot be cast to non-null type java.lang.String"
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_4
2019-10-09 23:16:36 +00:00
const/4 v4, 0x0
invoke-virtual {v0, v4, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
move-result-object v4
2019-07-24 11:27:29 +00:00
const-string v5, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
2019-10-09 23:16:36 +00:00
invoke-static {v4, v5}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_3
2019-10-09 23:16:36 +00:00
invoke-virtual {v0, v11, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-10-09 23:16:36 +00:00
invoke-static {v0, v5}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
:try_start_1
2019-10-09 23:16:36 +00:00
invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
2019-07-24 11:27:29 +00:00
move-result v2
2019-10-09 23:16:36 +00:00
mul-int v2, v2, v10
2019-07-24 11:27:29 +00:00
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
:try_end_1
.catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_1
add-int v1, v2, v0
:catch_1
return v1
:cond_3
new-instance v0, Lkotlin/r;
2019-10-09 23:16:36 +00:00
invoke-direct {v0, v3}, Lkotlin/r;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
throw v0
:cond_4
new-instance v0, Lkotlin/r;
2019-10-09 23:16:36 +00:00
invoke-direct {v0, v3}, Lkotlin/r;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
throw v0
.end method