167 lines
4.2 KiB
Smali
167 lines
4.2 KiB
Smali
.class public final Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$3;
|
|
.super Lj0/n/c/i;
|
|
.source "StoreEmoji.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/stores/StoreEmoji;->buildUsableEmojiSet(Ljava/util/Map;Lcom/discord/stores/StoreEmoji$EmojiContext;Ljava/util/List;ZZZZ)Lcom/discord/models/domain/emoji/EmojiSet;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lj0/n/c/i;",
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
"Lcom/discord/utilities/collections/ShallowPartitionMap<",
|
|
"Ljava/lang/String;",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$3;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$3;
|
|
|
|
invoke-direct {v0}, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$3;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$3;->INSTANCE:Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$3;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x2
|
|
|
|
invoke-direct {p0, v0}, Lj0/n/c/i;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final invoke(II)Lcom/discord/utilities/collections/ShallowPartitionMap;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(II)",
|
|
"Lcom/discord/utilities/collections/ShallowPartitionMap<",
|
|
"Ljava/lang/String;",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
int-to-float p1, p1
|
|
|
|
int-to-float v0, p2
|
|
|
|
div-float/2addr p1, v0
|
|
|
|
float-to-double v0, p1
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->ceil(D)D
|
|
|
|
move-result-wide v0
|
|
|
|
double-to-float p1, v0
|
|
|
|
invoke-static {p1}, Lj0/i/u;->roundToInt(F)I
|
|
|
|
move-result p1
|
|
|
|
new-instance v0, Lkotlin/ranges/IntRange;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1, p1}, Lkotlin/ranges/IntRange;-><init>(II)V
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
const/16 v2, 0xa
|
|
|
|
invoke-static {v0, v2}, Lf/i/a/b/i1/e;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
|
|
|
move-result v2
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
move-object v2, v0
|
|
|
|
check-cast v2, Lj0/i/r;
|
|
|
|
invoke-virtual {v2}, Lj0/i/r;->nextInt()I
|
|
|
|
new-instance v2, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v2, p2}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object p2, Lcom/discord/utilities/collections/ShallowPartitionMap;->Companion:Lcom/discord/utilities/collections/ShallowPartitionMap$Companion;
|
|
|
|
invoke-virtual {p2, p1}, Lcom/discord/utilities/collections/ShallowPartitionMap$Companion;->getHashCodePartitionStrategy(I)Lkotlin/jvm/functions/Function1;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Lcom/discord/utilities/collections/ShallowPartitionMap;
|
|
|
|
invoke-direct {p2, v1, p1}, Lcom/discord/utilities/collections/ShallowPartitionMap;-><init>(Ljava/util/List;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Ljava/lang/Number;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
check-cast p2, Ljava/lang/Number;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$3;->invoke(II)Lcom/discord/utilities/collections/ShallowPartitionMap;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|