g0$c.smali
.class final Lx8/g0$c;
.super Lna/k;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lx8/g0;->o(Ljava/util/List;)Lbb/v1;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lna/k;",
"Lkotlin/jvm/functions/Function2<",
"Lbb/m0;",
"Lkotlin/coroutines/d<",
"-",
"Lkotlin/Unit;",
">;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
.end annotation
.annotation runtime Lna/f;
c = "com.google.firebase.sessions.SessionLifecycleClient$sendLifecycleEvents$1"
f = "SessionLifecycleClient.kt"
l = {
0x97
}
m = "invokeSuspend"
.end annotation
# instance fields
.field e:I
.field final synthetic f:Lx8/g0;
.field final synthetic g:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Landroid/os/Message;",
">;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Lx8/g0;Ljava/util/List;Lkotlin/coroutines/d;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lx8/g0;",
"Ljava/util/List<",
"Landroid/os/Message;",
">;",
"Lkotlin/coroutines/d<",
"-",
"Lx8/g0$c;",
">;)V"
}
.end annotation
iput-object p1, p0, Lx8/g0$c;->f:Lx8/g0;
iput-object p2, p0, Lx8/g0$c;->g:Ljava/util/List;
const/4 p1, 0x2
invoke-direct {p0, p1, p3}, Lna/k;-><init>(ILkotlin/coroutines/d;)V
return-void
.end method
# virtual methods
.method public bridge synthetic f(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.registers 3
check-cast p1, Lbb/m0;
check-cast p2, Lkotlin/coroutines/d;
invoke-virtual {p0, p1, p2}, Lx8/g0$c;->o(Lbb/m0;Lkotlin/coroutines/d;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final h(Ljava/lang/Object;Lkotlin/coroutines/d;)Lkotlin/coroutines/d;
.registers 5
.param p2 # Lkotlin/coroutines/d;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/d<",
"*>;)",
"Lkotlin/coroutines/d<",
"Lkotlin/Unit;",
">;"
}
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
new-instance p1, Lx8/g0$c;
iget-object v0, p0, Lx8/g0$c;->f:Lx8/g0;
iget-object v1, p0, Lx8/g0$c;->g:Ljava/util/List;
invoke-direct {p1, v0, v1, p2}, Lx8/g0$c;-><init>(Lx8/g0;Ljava/util/List;Lkotlin/coroutines/d;)V
return-object p1
.end method
.method public final l(Ljava/lang/Object;)Ljava/lang/Object;
.registers 7
.param p1 # Ljava/lang/Object;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
invoke-static {}, Lma/b;->c()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Lx8/g0$c;->e:I
const/4 v2, 0x1
if-eqz v1, :cond_17
if-ne v1, v2, :cond_f
invoke-static {p1}, Lka/o;->b(Ljava/lang/Object;)V
goto :goto_25
:cond_f
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_17
invoke-static {p1}, Lka/o;->b(Ljava/lang/Object;)V
sget-object p1, Ly8/a;->a:Ly8/a;
iput v2, p0, Lx8/g0$c;->e:I
invoke-virtual {p1, p0}, Ly8/a;->c(Lkotlin/coroutines/d;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_25
return-object v0
:cond_25
:goto_25
check-cast p1, Ljava/util/Map;
invoke-interface {p1}, Ljava/util/Map;->isEmpty()Z
move-result v0
const-string v1, "SessionLifecycleClient"
if-eqz v0, :cond_36
const-string p1, "Sessions SDK did not have any dependent SDKs register as dependencies. Events will not be sent."
:goto_31
invoke-static {v1, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
goto/16 :goto_ac
:cond_36
invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object p1
check-cast p1, Ljava/lang/Iterable;
instance-of v0, p1, Ljava/util/Collection;
const/4 v3, 0x0
if-eqz v0, :cond_4c
move-object v0, p1
check-cast v0, Ljava/util/Collection;
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
move-result v0
if-eqz v0, :cond_4c
:cond_4a
const/4 p1, 0x1
goto :goto_63
:cond_4c
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_50
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_4a
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ly8/b;
invoke-interface {v0}, Ly8/b;->a()Z
move-result v0
if-eqz v0, :cond_50
const/4 p1, 0x0
:goto_63
if-eqz p1, :cond_68
const-string p1, "Data Collection is disabled for all subscribers. Skipping this Event"
goto :goto_31
:cond_68
const/4 p1, 0x2
new-array v0, p1, [Landroid/os/Message;
iget-object v1, p0, Lx8/g0$c;->f:Lx8/g0;
iget-object v4, p0, Lx8/g0$c;->g:Ljava/util/List;
invoke-static {v1, v4, p1}, Lx8/g0;->b(Lx8/g0;Ljava/util/List;I)Landroid/os/Message;
move-result-object p1
aput-object p1, v0, v3
iget-object p1, p0, Lx8/g0$c;->f:Lx8/g0;
iget-object v1, p0, Lx8/g0$c;->g:Ljava/util/List;
invoke-static {p1, v1, v2}, Lx8/g0;->b(Lx8/g0;Ljava/util/List;I)Landroid/os/Message;
move-result-object p1
aput-object p1, v0, v2
invoke-static {v0}, Lkotlin/collections/n;->i([Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
check-cast p1, Ljava/lang/Iterable;
invoke-static {p1}, Lkotlin/collections/n;->w(Ljava/lang/Iterable;)Ljava/util/List;
move-result-object p1
check-cast p1, Ljava/lang/Iterable;
new-instance v0, Lx8/g0$c$a;
invoke-direct {v0}, Lx8/g0$c$a;-><init>()V
invoke-static {p1, v0}, Lkotlin/collections/n;->Q(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/util/List;
move-result-object p1
check-cast p1, Ljava/lang/Iterable;
iget-object v0, p0, Lx8/g0$c;->f:Lx8/g0;
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_9c
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_ac
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/os/Message;
invoke-static {v0, v1}, Lx8/g0;->e(Lx8/g0;Landroid/os/Message;)V
goto :goto_9c
:cond_ac
:goto_ac
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object p1
.end method
.method public final o(Lbb/m0;Lkotlin/coroutines/d;)Ljava/lang/Object;
.registers 3
.param p1 # Lbb/m0;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lbb/m0;",
"Lkotlin/coroutines/d<",
"-",
"Lkotlin/Unit;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
invoke-virtual {p0, p1, p2}, Lx8/g0$c;->h(Ljava/lang/Object;Lkotlin/coroutines/d;)Lkotlin/coroutines/d;
move-result-object p1
check-cast p1, Lx8/g0$c;
sget-object p2, Lkotlin/Unit;->a:Lkotlin/Unit;
invoke-virtual {p1, p2}, Lx8/g0$c;->l(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method