apkfuckery/com.discord/smali_classes2/j0/j/a.smali

91 lines
1.8 KiB
Smali
Raw Normal View History

2020-07-25 00:57:58 +00:00
.class public final Lj0/j/a;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
2020-07-25 00:57:58 +00:00
.source "Comparisons.kt"
2020-05-17 12:40:10 +00:00
# interfaces
2020-07-25 00:57:58 +00:00
.implements Ljava/util/Comparator;
2020-05-17 12:40:10 +00:00
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
2020-07-25 00:57:58 +00:00
"<T:",
2020-05-17 12:40:10 +00:00
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
2020-07-25 00:57:58 +00:00
"Ljava/util/Comparator<",
"TT;>;"
2020-05-17 12:40:10 +00:00
}
.end annotation
2020-07-25 00:57:58 +00:00
# instance fields
.field public final synthetic d:[Lkotlin/jvm/functions/Function1;
2020-05-17 12:40:10 +00:00
# direct methods
2020-07-25 00:57:58 +00:00
.method public constructor <init>([Lkotlin/jvm/functions/Function1;)V
2020-05-17 12:40:10 +00:00
.locals 0
2020-07-25 00:57:58 +00:00
iput-object p1, p0, Lj0/j/a;->d:[Lkotlin/jvm/functions/Function1;
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
2020-07-25 00:57:58 +00:00
.method public final compare(Ljava/lang/Object;Ljava/lang/Object;)I
.locals 6
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-07-25 00:57:58 +00:00
"(TT;TT;)I"
2020-05-17 12:40:10 +00:00
}
.end annotation
2020-07-25 00:57:58 +00:00
iget-object v0, p0, Lj0/j/a;->d:[Lkotlin/jvm/functions/Function1;
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
array-length v1, v0
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
const/4 v2, 0x0
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
const/4 v3, 0x0
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
:goto_0
if-ge v3, v1, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
aget-object v4, v0, v3
2020-07-20 19:00:44 +00:00
2020-07-25 00:57:58 +00:00
invoke-interface {v4, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
2020-07-20 19:00:44 +00:00
2020-07-25 00:57:58 +00:00
move-result-object v5
2020-07-20 19:00:44 +00:00
2020-07-25 00:57:58 +00:00
check-cast v5, Ljava/lang/Comparable;
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-interface {v4, p2}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
move-result-object v4
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
check-cast v4, Ljava/lang/Comparable;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-static {v5, v4}, Lf/n/a/k/a;->compareValues(Ljava/lang/Comparable;Ljava/lang/Comparable;)I
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
move-result v4
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
if-eqz v4, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
move v2, v4
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-25 00:57:58 +00:00
add-int/lit8 v3, v3, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_1
2020-07-25 00:57:58 +00:00
:goto_1
return v2
2020-05-17 12:40:10 +00:00
.end method