b.smali

.class public final Lkotlin/a/b;
.super Ljava/lang/Object;
.source "PlatformImplementations.kt"


# static fields
.field public static final bUk:Lkotlin/a/a;
    .annotation build Lorg/jetbrains/annotations/NotNull;
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .registers 3

    .prologue
    .line 21
    invoke-static {}, Lkotlin/a/b;->Qq()I

    move-result v1

    .line 22
    const v0, 0x10008

    if-lt v1, v0, :cond_33

    .line 24
    :try_start_9
    const-string v0, "kotlin.internal.jdk8.JDK8PlatformImplementations"

    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

    if-nez v0, :cond_6a

    new-instance v0, Lkotlin/TypeCastException;

    const-string v2, "null cannot be cast to non-null type kotlin.internal.PlatformImplementations"

    invoke-direct {v0, v2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_1d
    .catch Ljava/lang/ClassNotFoundException; {:try_start_9 .. :try_end_1d} :catch_1d

    :catch_1d
    move-exception v0

    .line 28
    :try_start_1e
    const-string v0, "kotlin.internal.JRE8PlatformImplementations"

    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

    if-nez v0, :cond_6d

    new-instance v0, Lkotlin/TypeCastException;

    const-string v2, "null cannot be cast to non-null type kotlin.internal.PlatformImplementations"

    invoke-direct {v0, v2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_32
    .catch Ljava/lang/ClassNotFoundException; {:try_start_1e .. :try_end_32} :catch_32

    :catch_32
    move-exception v0

    .line 33
    :cond_33
    const v0, 0x10007

    if-lt v1, v0, :cond_62

    .line 35
    :try_start_38
    const-string v0, "kotlin.a.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

    if-nez v0, :cond_70

    new-instance v0, Lkotlin/TypeCastException;

    const-string v1, "null cannot be cast to non-null type kotlin.internal.PlatformImplementations"

    invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_4c
    .catch Ljava/lang/ClassNotFoundException; {:try_start_38 .. :try_end_4c} :catch_4c

    :catch_4c
    move-exception v0

    .line 39
    :try_start_4d
    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

    if-nez v0, :cond_73

    new-instance v0, Lkotlin/TypeCastException;

    const-string v1, "null cannot be cast to non-null type kotlin.internal.PlatformImplementations"

    invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_61
    .catch Ljava/lang/ClassNotFoundException; {:try_start_4d .. :try_end_61} :catch_61

    :catch_61
    move-exception v0

    .line 44
    :cond_62
    new-instance v0, Lkotlin/a/a;

    invoke-direct {v0}, Lkotlin/a/a;-><init>()V

    .line 20
    :goto_67
    sput-object v0, Lkotlin/a/b;->bUk:Lkotlin/a/a;

    return-void

    .line 24
    :cond_6a
    :try_start_6a
    check-cast v0, Lkotlin/a/a;
    :try_end_6c
    .catch Ljava/lang/ClassNotFoundException; {:try_start_6a .. :try_end_6c} :catch_1d

    goto :goto_67

    .line 28
    :cond_6d
    :try_start_6d
    check-cast v0, Lkotlin/a/a;
    :try_end_6f
    .catch Ljava/lang/ClassNotFoundException; {:try_start_6d .. :try_end_6f} :catch_32

    goto :goto_67

    .line 35
    :cond_70
    :try_start_70
    check-cast v0, Lkotlin/a/a;
    :try_end_72
    .catch Ljava/lang/ClassNotFoundException; {:try_start_70 .. :try_end_72} :catch_4c

    goto :goto_67

    .line 39
    :cond_73
    :try_start_73
    check-cast v0, Lkotlin/a/a;
    :try_end_75
    .catch Ljava/lang/ClassNotFoundException; {:try_start_73 .. :try_end_75} :catch_61

    goto :goto_67
.end method

.method private static final Qq()I
    .registers 7

    .prologue
    const/4 v6, 0x0

    const v2, 0x10006

    .line 49
    const-string v0, "java.specification.version"

    invoke-static {v0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-nez v1, :cond_d

    .line 59
    :goto_c
    return v2

    :cond_d
    move-object v0, v1

    .line 50
    check-cast v0, Ljava/lang/CharSequence;

    const/4 v3, 0x6

    invoke-static {v0, v6, v3}, Lkotlin/text/o;->a(Ljava/lang/CharSequence;II)I

    move-result v3

    .line 51
    if-gez v3, :cond_22

    .line 52
    :try_start_17
    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_1a
    .catch Ljava/lang/NumberFormatException; {:try_start_17 .. :try_end_1a} :catch_1f

    move-result v0

    shl-int/lit8 v0, v0, 0x10

    :goto_1d
    move v2, v0

    goto :goto_c

    :catch_1f
    move-exception v0

    move v0, v2

    goto :goto_1d

    :cond_22
    move-object v0, v1

    .line 54
    check-cast v0, Ljava/lang/CharSequence;

    add-int/lit8 v4, v3, 0x1

    const/4 v5, 0x4

    invoke-static {v0, v4, v5}, Lkotlin/text/o;->a(Ljava/lang/CharSequence;II)I

    move-result v0

    .line 55
    if-gez v0, :cond_32

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v0

    .line 57
    :cond_32
    if-nez v1, :cond_3c

    new-instance v0, Lkotlin/TypeCastException;

    const-string v1, "null cannot be cast to non-null type java.lang.String"

    invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_3c
    invoke-virtual {v1, v6, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    const-string v5, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"

    invoke-static {v4, v5}, Lkotlin/jvm/internal/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    .line 58
    add-int/lit8 v3, v3, 0x1

    if-nez v1, :cond_51

    new-instance v0, Lkotlin/TypeCastException;

    const-string v1, "null cannot be cast to non-null type java.lang.String"

    invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_51
    invoke-virtual {v1, v3, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    const-string v1, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    .line 60
    :try_start_5a
    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    shl-int/lit8 v1, v1, 0x10

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_63
    .catch Ljava/lang/NumberFormatException; {:try_start_5a .. :try_end_63} :catch_67

    move-result v0

    add-int v2, v1, v0

    goto :goto_c

    .line 62
    :catch_67
    move-exception v0

    goto :goto_c
.end method