.class public final Lkotlin/c/b; .super Ljava/lang/Object; .source "PlatformImplementations.kt" # static fields .field public static final bkz:Lkotlin/c/a; # direct methods .method static constructor ()V .locals 11 invoke-static {}, Lkotlin/c/b;->Ei()I 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 invoke-static {v6, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V :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;->(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;->(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;->(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 invoke-static {v6, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V 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 invoke-static {v6, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V :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;->(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;->(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;->(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 invoke-static {v6, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V throw v6 :try_end_5 .catch Ljava/lang/ClassNotFoundException; {:try_start_5 .. :try_end_5} :catch_3 :catch_3 :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 invoke-static {v0, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V :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;->(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;->(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;->(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 invoke-static {v0, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V 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 invoke-static {v0, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V :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;->(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;->(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;->(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 invoke-static {v0, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V 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;->()V :goto_4 sput-object v6, Lkotlin/c/b;->bkz:Lkotlin/c/a; return-void .end method .method private static final Ei()I .locals 9 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 move-object v2, v0 check-cast v2, Ljava/lang/CharSequence; const/4 v3, 0x6 const/16 v4, 0x2e const/4 v5, 0x0 invoke-static {v2, v4, v5, v5, v3}, Lkotlin/text/l;->a(Ljava/lang/CharSequence;CIZI)I move-result v3 const/high16 v6, 0x10000 if-gez v3, :cond_1 :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 mul-int v1, v0, v6 :catch_0 return v1 :cond_1 add-int/lit8 v7, v3, 0x1 const/4 v8, 0x4 invoke-static {v2, v4, v7, v5, v8}, Lkotlin/text/l;->a(Ljava/lang/CharSequence;CIZI)I move-result v2 if-gez v2, :cond_2 invoke-virtual {v0}, Ljava/lang/String;->length()I move-result v2 :cond_2 const-string v4, "null cannot be cast to non-null type java.lang.String" if-eqz v0, :cond_4 invoke-virtual {v0, v5, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object v3 const-string v5, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)" invoke-static {v3, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V if-eqz v0, :cond_3 invoke-virtual {v0, v7, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object v0 invoke-static {v0, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V :try_start_1 invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I move-result v2 mul-int v2, v2, v6 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; invoke-direct {v0, v4}, Lkotlin/r;->(Ljava/lang/String;)V throw v0 :cond_4 new-instance v0, Lkotlin/r; invoke-direct {v0, v4}, Lkotlin/r;->(Ljava/lang/String;)V throw v0 .end method