apkfuckery/com.discord/smali/kotlin/jvm/internal/l.smali

351 lines
8.4 KiB
Smali
Raw Normal View History

2019-10-09 23:16:36 +00:00
.class public Lkotlin/jvm/internal/l;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
2019-10-09 23:16:36 +00:00
.source "Intrinsics.java"
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
# direct methods
.method private constructor <init>()V
.locals 0
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
return-void
.end method
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
.method static a(Ljava/lang/Throwable;Ljava/lang/String;)Ljava/lang/Throwable;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Throwable;",
">(TT;",
"Ljava/lang/String;",
")TT;"
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {p0}, Ljava/lang/Throwable;->getStackTrace()[Ljava/lang/StackTraceElement;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
move-result-object v0
array-length v1, v0
const/4 v2, -0x1
const/4 v3, 0x0
:goto_0
if-ge v3, v1, :cond_1
aget-object v4, v0, v3
invoke-virtual {v4}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;
move-result-object v4
invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_0
move v2, v3
:cond_0
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
add-int/lit8 v2, v2, 0x1
invoke-static {v0, v2, v1}, Ljava/util/Arrays;->copyOfRange([Ljava/lang/Object;II)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/StackTraceElement;
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->setStackTrace([Ljava/lang/StackTraceElement;)V
return-object p0
.end method
.method public static areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
.locals 0
2019-10-09 23:16:36 +00:00
if-nez p0, :cond_1
if-nez p1, :cond_0
const/4 p0, 0x1
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
return p0
:cond_0
const/4 p0, 0x0
return p0
:cond_1
invoke-virtual {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p0
return p0
.end method
.method public static checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.locals 1
if-eqz p0, :cond_0
2019-07-24 11:27:29 +00:00
return-void
2019-10-09 23:16:36 +00:00
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, " must not be null"
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-static {p0}, Lkotlin/jvm/internal/l;->o(Ljava/lang/Throwable;)Ljava/lang/Throwable;
move-result-object p0
check-cast p0, Ljava/lang/IllegalStateException;
throw p0
2019-07-24 11:27:29 +00:00
.end method
2019-10-09 23:16:36 +00:00
.method public static checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.locals 4
if-eqz p0, :cond_0
return-void
:cond_0
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/Thread;->getStackTrace()[Ljava/lang/StackTraceElement;
move-result-object p0
const/4 v0, 0x3
aget-object p0, p0, v0
invoke-virtual {p0}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p0}, Ljava/lang/StackTraceElement;->getMethodName()Ljava/lang/String;
move-result-object p0
new-instance v1, Ljava/lang/IllegalArgumentException;
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "Parameter specified as non-null is null: method "
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "."
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p0, ", parameter "
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
invoke-static {v1}, Lkotlin/jvm/internal/l;->o(Ljava/lang/Throwable;)Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
move-result-object p0
check-cast p0, Ljava/lang/IllegalArgumentException;
throw p0
.end method
.method public static compare(II)I
.locals 0
if-ge p0, p1, :cond_0
const/4 p0, -0x1
return p0
:cond_0
if-ne p0, p1, :cond_1
const/4 p0, 0x0
return p0
:cond_1
const/4 p0, 0x1
return p0
.end method
.method public static needClassReification()V
.locals 0
invoke-static {}, Lkotlin/jvm/internal/l;->throwUndefinedForReified()V
return-void
.end method
.method private static o(Ljava/lang/Throwable;)Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
.locals 1
2019-10-09 23:16:36 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Throwable;",
">(TT;)TT;"
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
const-class v0, Lkotlin/jvm/internal/l;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->a(Ljava/lang/Throwable;Ljava/lang/String;)Ljava/lang/Throwable;
move-result-object p0
return-object p0
2019-07-24 11:27:29 +00:00
.end method
2019-10-09 23:16:36 +00:00
.method public static reifiedOperationMarker(ILjava/lang/String;)V
.locals 0
invoke-static {}, Lkotlin/jvm/internal/l;->throwUndefinedForReified()V
return-void
.end method
.method public static stringPlus(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
.locals 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static throwNpe()V
.locals 1
new-instance v0, Lkotlin/e;
invoke-direct {v0}, Lkotlin/e;-><init>()V
invoke-static {v0}, Lkotlin/jvm/internal/l;->o(Ljava/lang/Throwable;)Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-10-09 23:16:36 +00:00
check-cast v0, Lkotlin/e;
throw v0
.end method
.method public static throwUndefinedForReified()V
.locals 1
const-string v0, "This function has a reified type parameter and thus can only be inlined at compilation time, not called directly."
invoke-static {v0}, Lkotlin/jvm/internal/l;->throwUndefinedForReified(Ljava/lang/String;)V
return-void
.end method
.method public static throwUndefinedForReified(Ljava/lang/String;)V
.locals 1
new-instance v0, Ljava/lang/UnsupportedOperationException;
invoke-direct {v0, p0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static throwUninitializedProperty(Ljava/lang/String;)V
.locals 1
new-instance v0, Lkotlin/t;
invoke-direct {v0, p0}, Lkotlin/t;-><init>(Ljava/lang/String;)V
invoke-static {v0}, Lkotlin/jvm/internal/l;->o(Ljava/lang/Throwable;)Ljava/lang/Throwable;
move-result-object p0
check-cast p0, Lkotlin/t;
throw p0
.end method
.method public static throwUninitializedPropertyAccessException(Ljava/lang/String;)V
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "lateinit property "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
const-string p0, " has not been initialized"
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {p0}, Lkotlin/jvm/internal/l;->throwUninitializedProperty(Ljava/lang/String;)V
return-void
2019-07-24 11:27:29 +00:00
.end method