apkfuckery/com.discord/smali_classes2/kotlin/b/b.smali
2019-10-10 01:16:36 +02:00

177 lines
3.9 KiB
Smali

.class public Lkotlin/b/b;
.super Ljava/lang/Object;
.source "Comparisons.kt"
# direct methods
.method public static final synthetic access$compareValuesByImpl(Ljava/lang/Object;Ljava/lang/Object;[Lkotlin/jvm/functions/Function1;)I
.locals 5
array-length v0, p2
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_1
aget-object v3, p2, v2
invoke-interface {v3, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/Comparable;
invoke-interface {v3, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Comparable;
invoke-static {v4, v3}, Lkotlin/b/a;->compareValues(Ljava/lang/Comparable;Ljava/lang/Comparable;)I
move-result v3
if-eqz v3, :cond_0
return v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
return v1
.end method
.method public static final varargs compareBy([Lkotlin/jvm/functions/Function1;)Ljava/util/Comparator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([",
"Lkotlin/jvm/functions/Function1<",
"-TT;+",
"Ljava/lang/Comparable<",
"*>;>;)",
"Ljava/util/Comparator<",
"TT;>;"
}
.end annotation
const-string v0, "selectors"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
if-lez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
new-instance v0, Lkotlin/b/b$a;
invoke-direct {v0, p0}, Lkotlin/b/b$a;-><init>([Lkotlin/jvm/functions/Function1;)V
check-cast v0, Ljava/util/Comparator;
return-object v0
:cond_1
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Failed requirement."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final compareValues(Ljava/lang/Comparable;Ljava/lang/Comparable;)I
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Ljava/lang/Comparable<",
"*>;>(TT;TT;)I"
}
.end annotation
if-ne p0, p1, :cond_0
const/4 p0, 0x0
return p0
:cond_0
if-nez p0, :cond_1
const/4 p0, -0x1
return p0
:cond_1
if-nez p1, :cond_2
const/4 p0, 0x1
return p0
:cond_2
invoke-interface {p0, p1}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result p0
return p0
.end method
.method public static final then(Ljava/util/Comparator;Ljava/util/Comparator;)Ljava/util/Comparator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Comparator<",
"TT;>;",
"Ljava/util/Comparator<",
"-TT;>;)",
"Ljava/util/Comparator<",
"TT;>;"
}
.end annotation
const-string v0, "$this$then"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "comparator"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Lkotlin/b/b$b;
invoke-direct {v0, p0, p1}, Lkotlin/b/b$b;-><init>(Ljava/util/Comparator;Ljava/util/Comparator;)V
check-cast v0, Ljava/util/Comparator;
return-object v0
.end method