2020-07-08 16:44:49 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;
|
2020-07-25 00:57:58 +00:00
|
|
|
.super Lj0/n/c/i;
|
2020-07-08 16:44:49 +00:00
|
|
|
.source "StoreEmoji.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2020-07-14 22:43:59 +00:00
|
|
|
.implements Lkotlin/jvm/functions/Function1;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# 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 = {
|
2020-07-25 00:57:58 +00:00
|
|
|
"Lj0/n/c/i;",
|
2020-07-14 22:43:59 +00:00
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"Ljava/lang/Long;",
|
2020-07-08 16:44:49 +00:00
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
# instance fields
|
|
|
|
.field public final synthetic $allCustomEmojis:Ljava/util/Map;
|
|
|
|
|
|
|
|
.field public final synthetic $emojiContext:Lcom/discord/stores/StoreEmoji$EmojiContext;
|
|
|
|
|
|
|
|
.field public final synthetic $emojiIdsMap:Lcom/discord/utilities/collections/ShallowPartitionMap;
|
|
|
|
|
|
|
|
.field public final synthetic $emojiNameCounts:Lcom/discord/utilities/collections/ShallowPartitionMap;
|
|
|
|
|
|
|
|
.field public final synthetic $includeUnavailableEmojis:Z
|
|
|
|
|
|
|
|
.field public final synthetic $includeUnusableEmojis:Z
|
|
|
|
|
|
|
|
.field public final synthetic $isExternalEmoji$1:Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$1;
|
|
|
|
|
|
|
|
.field public final synthetic $isExternalEmojiRestricted$2:Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$2;
|
|
|
|
|
|
|
|
.field public final synthetic $isMePremium:Z
|
|
|
|
|
|
|
|
.field public final synthetic $usableCustomEmojis:Ljava/util/HashMap;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-14 22:43:59 +00:00
|
|
|
.method public constructor <init>(Ljava/util/Map;Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$1;Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$2;ZLcom/discord/stores/StoreEmoji$EmojiContext;ZZLcom/discord/utilities/collections/ShallowPartitionMap;Lcom/discord/utilities/collections/ShallowPartitionMap;Ljava/util/HashMap;)V
|
|
|
|
.locals 0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$allCustomEmojis:Ljava/util/Map;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p2, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$isExternalEmoji$1:Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$1;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p3, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$isExternalEmojiRestricted$2:Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$2;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-boolean p4, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$includeUnavailableEmojis:Z
|
|
|
|
|
|
|
|
iput-object p5, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$emojiContext:Lcom/discord/stores/StoreEmoji$EmojiContext;
|
|
|
|
|
|
|
|
iput-boolean p6, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$isMePremium:Z
|
|
|
|
|
|
|
|
iput-boolean p7, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$includeUnusableEmojis:Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p8, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$emojiNameCounts:Lcom/discord/utilities/collections/ShallowPartitionMap;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p9, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$emojiIdsMap:Lcom/discord/utilities/collections/ShallowPartitionMap;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p10, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$usableCustomEmojis:Ljava/util/HashMap;
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-direct {p0, p1}, Lj0/n/c/i;-><init>(I)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-07-14 22:43:59 +00:00
|
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast p1, Ljava/lang/Number;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p1}, Ljava/lang/Number;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->invoke(J)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
.method public final invoke(J)V
|
|
|
|
.locals 9
|
|
|
|
.annotation build Landroid/annotation/SuppressLint;
|
2020-07-08 16:44:49 +00:00
|
|
|
value = {
|
2020-07-14 22:43:59 +00:00
|
|
|
"DefaultLocale"
|
2020-07-08 16:44:49 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$allCustomEmojis:Ljava/util/Map;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast v0, Ljava/util/Map;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
if-eqz v0, :cond_d
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$isExternalEmoji$1:Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$1;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {v1, p1, p2}, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$1;->invoke(J)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$isExternalEmojiRestricted$2:Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$2;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {v2, v1}, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$2;->invoke(Z)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
return-void
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:cond_1
|
2020-07-14 22:43:59 +00:00
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
if-eqz v3, :cond_c
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Lcom/discord/models/domain/emoji/ModelEmojiCustom;
|
|
|
|
|
|
|
|
iget-boolean v5, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$includeUnavailableEmojis:Z
|
|
|
|
|
|
|
|
if-nez v5, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->isAvailable()Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-nez v5, :cond_2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
iget-object v5, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$emojiContext:Lcom/discord/stores/StoreEmoji$EmojiContext;
|
|
|
|
|
|
|
|
instance-of v5, v5, Lcom/discord/stores/StoreEmoji$EmojiContext$Global;
|
|
|
|
|
|
|
|
xor-int/2addr v5, v4
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->isManaged()Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v5, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
:goto_1
|
|
|
|
iget-boolean v6, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$isMePremium:Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
if-eqz v6, :cond_4
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->isAnimated()Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_6
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
|
|
|
|
if-eqz v5, :cond_5
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:goto_2
|
|
|
|
iget-boolean v5, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$includeUnusableEmojis:Z
|
|
|
|
|
|
|
|
if-nez v5, :cond_8
|
|
|
|
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
iget-object v5, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$emojiNameCounts:Lcom/discord/utilities/collections/ShallowPartitionMap;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Lcom/discord/utilities/collections/ShallowPartitionMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
check-cast v5, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
if-nez v5, :cond_a
|
|
|
|
|
|
|
|
if-nez v4, :cond_9
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
move-object v6, v3
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
:goto_3
|
|
|
|
new-instance v6, Lcom/discord/models/domain/emoji/ModelEmojiCustom;
|
|
|
|
|
|
|
|
if-eqz v5, :cond_b
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
invoke-direct {v6, v3, v7, v4}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;-><init>(Lcom/discord/models/domain/emoji/ModelEmojiCustom;IZ)V
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
invoke-interface {v2, v6}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
sget-object v4, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$4;->INSTANCE:Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$4;
|
|
|
|
|
|
|
|
iget-object v5, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$emojiNameCounts:Lcom/discord/utilities/collections/ShallowPartitionMap;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
const-string v8, "emoji.name"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v7, v8}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4, v5, v7}, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$4;->invoke(Ljava/util/Map;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
iget-object v4, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$emojiIdsMap:Lcom/discord/utilities/collections/ShallowPartitionMap;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->getUniqueId()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v5, "emoji.uniqueId"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v3, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-interface {v4, v3, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
invoke-interface {v2}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
xor-int/2addr v0, v4
|
|
|
|
|
|
|
|
if-eqz v0, :cond_d
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5;->$usableCustomEmojis:Ljava/util/HashMap;
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5$processGuildEmojis$$inlined$sortedByDescending$1;
|
|
|
|
|
|
|
|
invoke-direct {p2}, Lcom/discord/stores/StoreEmoji$buildUsableEmojiSet$5$processGuildEmojis$$inlined$sortedByDescending$1;-><init>()V
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v2, p2}, Lj0/i/l;->sortedWith(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/util/List;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
return-void
|
2020-07-08 16:44:49 +00:00
|
|
|
.end method
|