.class public final Lcom/discord/stores/StoreChannelMembers$doFlush$1; .super Lw/u/b/k; .source "StoreChannelMembers.kt" # interfaces .implements Lkotlin/jvm/functions/Function0; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/discord/stores/StoreChannelMembers;->doFlush()V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = null .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Lw/u/b/k;", "Lkotlin/jvm/functions/Function0<", "Lkotlin/Unit;", ">;" } .end annotation # instance fields .field public final synthetic this$0:Lcom/discord/stores/StoreChannelMembers; # direct methods .method public constructor (Lcom/discord/stores/StoreChannelMembers;)V .locals 0 iput-object p1, p0, Lcom/discord/stores/StoreChannelMembers$doFlush$1;->this$0:Lcom/discord/stores/StoreChannelMembers; const/4 p1, 0x0 invoke-direct {p0, p1}, Lw/u/b/k;->(I)V return-void .end method # virtual methods .method public bridge synthetic invoke()Ljava/lang/Object; .locals 1 invoke-virtual {p0}, Lcom/discord/stores/StoreChannelMembers$doFlush$1;->invoke()V sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit; return-object v0 .end method .method public final invoke()V .locals 21 move-object/from16 v0, p0 iget-object v1, v0, Lcom/discord/stores/StoreChannelMembers$doFlush$1;->this$0:Lcom/discord/stores/StoreChannelMembers; invoke-static {v1}, Lcom/discord/stores/StoreChannelMembers;->access$getMemberLists$p(Lcom/discord/stores/StoreChannelMembers;)Ljava/util/HashMap; move-result-object v1 new-instance v2, Ljava/util/LinkedHashMap; invoke-interface {v1}, Ljava/util/Map;->size()I move-result v3 invoke-static {v3}, Lw/q/l;->mapCapacity(I)I move-result v3 invoke-direct {v2, v3}, Ljava/util/LinkedHashMap;->(I)V invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object v1 invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v1 :goto_0 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v3 const/4 v4, 0x0 if-eqz v3, :cond_9 invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 check-cast v3, Ljava/util/Map$Entry; invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v5 invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v3 check-cast v3, Ljava/util/Map; new-instance v6, Ljava/util/LinkedHashMap; invoke-interface {v3}, Ljava/util/Map;->size()I move-result v7 invoke-static {v7}, Lw/q/l;->mapCapacity(I)I move-result v7 invoke-direct {v6, v7}, Ljava/util/LinkedHashMap;->(I)V invoke-interface {v3}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object v3 invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v3 :goto_1 invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z move-result v7 if-eqz v7, :cond_8 invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v7 check-cast v7, Ljava/util/Map$Entry; invoke-interface {v7}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v8 invoke-interface {v7}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v7 check-cast v7, Lcom/discord/utilities/lazy/memberlist/ChannelMemberList; new-instance v9, Lcom/discord/utilities/lazy/memberlist/ChannelMemberList; invoke-direct {v9, v7}, Lcom/discord/utilities/lazy/memberlist/ChannelMemberList;->(Lcom/discord/utilities/lazy/memberlist/ChannelMemberList;)V invoke-virtual {v7}, Lcom/discord/utilities/lazy/memberlist/ChannelMemberList;->getRows()Lcom/discord/utilities/collections/SparseMutableList; move-result-object v10 invoke-virtual {v10}, Lcom/discord/utilities/collections/SparseMutableList;->getChunkHashes()Ljava/util/Set; move-result-object v10 invoke-virtual {v9}, Lcom/discord/utilities/lazy/memberlist/ChannelMemberList;->getRows()Lcom/discord/utilities/collections/SparseMutableList; move-result-object v11 invoke-virtual {v11}, Lcom/discord/utilities/collections/SparseMutableList;->getChunkHashes()Ljava/util/Set; move-result-object v11 invoke-virtual {v7}, Lcom/discord/utilities/lazy/memberlist/ChannelMemberList;->getRows()Lcom/discord/utilities/collections/SparseMutableList; move-result-object v12 invoke-virtual {v12}, Lcom/discord/utilities/collections/SparseMutableList;->getChunkListHashes()Ljava/util/Set; move-result-object v12 invoke-virtual {v7}, Lcom/discord/utilities/lazy/memberlist/ChannelMemberList;->getRows()Lcom/discord/utilities/collections/SparseMutableList; move-result-object v7 invoke-virtual {v7}, Lcom/discord/utilities/collections/SparseMutableList;->getChunkListHashes()Ljava/util/Set; move-result-object v7 instance-of v13, v10, Ljava/util/Collection; const/4 v14, 0x1 if-eqz v13, :cond_1 invoke-interface {v10}, Ljava/util/Collection;->isEmpty()Z move-result v13 if-eqz v13, :cond_1 :cond_0 const/4 v10, 0x0 goto :goto_2 :cond_1 invoke-interface {v10}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v10 :cond_2 invoke-interface {v10}, Ljava/util/Iterator;->hasNext()Z move-result v13 if-eqz v13, :cond_0 invoke-interface {v10}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v13 check-cast v13, Ljava/lang/Number; invoke-virtual {v13}, Ljava/lang/Number;->intValue()I move-result v13 invoke-static {v13}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v13 invoke-interface {v11, v13}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z move-result v13 if-eqz v13, :cond_2 const/4 v10, 0x1 :goto_2 if-eqz v10, :cond_3 sget-object v15, Lcom/discord/app/AppLog;->c:Lcom/discord/app/AppLog; const/16 v18, 0x0 const/16 v19, 0x0 const/16 v20, 0xc const-string v16, "StoreChannelMembers" const-string v17, "there was an overlap in chunk hashes" invoke-static/range {v15 .. v20}, Lcom/discord/app/AppLog;->a(Lcom/discord/app/AppLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Lkotlin/jvm/functions/Function2;I)V :cond_3 instance-of v10, v12, Ljava/util/Collection; if-eqz v10, :cond_5 invoke-interface {v12}, Ljava/util/Collection;->isEmpty()Z move-result v10 if-eqz v10, :cond_5 :cond_4 const/4 v14, 0x0 goto :goto_3 :cond_5 invoke-interface {v12}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v10 :cond_6 invoke-interface {v10}, Ljava/util/Iterator;->hasNext()Z move-result v11 if-eqz v11, :cond_4 invoke-interface {v10}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v11 check-cast v11, Ljava/lang/Number; invoke-virtual {v11}, Ljava/lang/Number;->intValue()I move-result v11 invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v11 invoke-interface {v7, v11}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z move-result v11 if-eqz v11, :cond_6 :goto_3 if-eqz v14, :cond_7 sget-object v15, Lcom/discord/app/AppLog;->c:Lcom/discord/app/AppLog; const/16 v18, 0x0 const/16 v19, 0x0 const/16 v20, 0xc const-string v16, "StoreChannelMembers" const-string v17, "there was an overlap in chunk list hashes" invoke-static/range {v15 .. v20}, Lcom/discord/app/AppLog;->a(Lcom/discord/app/AppLog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Lkotlin/jvm/functions/Function2;I)V :cond_7 invoke-interface {v6, v8, v9}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto/16 :goto_1 :cond_8 invoke-interface {v2, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto/16 :goto_0 :cond_9 iget-object v1, v0, Lcom/discord/stores/StoreChannelMembers$doFlush$1;->this$0:Lcom/discord/stores/StoreChannelMembers; invoke-static {v1}, Lcom/discord/stores/StoreChannelMembers;->access$getMemberListPublisher$p(Lcom/discord/stores/StoreChannelMembers;)Lrx/subjects/BehaviorSubject; move-result-object v1 invoke-virtual {v1, v2}, Lrx/subjects/BehaviorSubject;->onNext(Ljava/lang/Object;)V iget-object v1, v0, Lcom/discord/stores/StoreChannelMembers$doFlush$1;->this$0:Lcom/discord/stores/StoreChannelMembers; invoke-static {v1, v4}, Lcom/discord/stores/StoreChannelMembers;->access$setDirty$p(Lcom/discord/stores/StoreChannelMembers;Z)V return-void .end method