Referral$processReferralDetail$1.smali
.class final Lcom/avast/android/referral/Referral$processReferralDetail$1;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/avast/android/referral/Referral;->d(Lcom/avast/android/referral/OnReferrerProcessedListener;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2<",
"Lkotlinx/coroutines/CoroutineScope;",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "com.avast.android.referral.Referral$processReferralDetail$1"
f = "Referral.kt"
l = {
0x2b,
0x30,
0x34,
0x39,
0x3f
}
m = "invokeSuspend"
.end annotation
# instance fields
.field private j:Lkotlinx/coroutines/CoroutineScope;
.field k:Ljava/lang/Object;
.field l:Ljava/lang/Object;
.field m:Ljava/lang/Object;
.field n:Ljava/lang/Object;
.field o:I
.field final synthetic p:Lcom/avast/android/referral/Referral;
.field final synthetic q:Lcom/avast/android/referral/OnReferrerProcessedListener;
# direct methods
.method constructor <init>(Lcom/avast/android/referral/Referral;Lcom/avast/android/referral/OnReferrerProcessedListener;Lkotlin/coroutines/Continuation;)V
.registers 4
iput-object p1, p0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->p:Lcom/avast/android/referral/Referral;
iput-object p2, p0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->q:Lcom/avast/android/referral/OnReferrerProcessedListener;
const/4 p1, 0x2
invoke-direct {p0, p1, p3}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final j(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation<",
"*>;)",
"Lkotlin/coroutines/Continuation<",
"Lkotlin/Unit;",
">;"
}
.end annotation
const-string v0, "completion"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;
iget-object v1, p0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->p:Lcom/avast/android/referral/Referral;
iget-object v2, p0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->q:Lcom/avast/android/referral/OnReferrerProcessedListener;
invoke-direct {v0, v1, v2, p2}, Lcom/avast/android/referral/Referral$processReferralDetail$1;-><init>(Lcom/avast/android/referral/Referral;Lcom/avast/android/referral/OnReferrerProcessedListener;Lkotlin/coroutines/Continuation;)V
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
iput-object p1, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->j:Lkotlinx/coroutines/CoroutineScope;
return-object v0
.end method
.method public final m(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.registers 3
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Lcom/avast/android/referral/Referral$processReferralDetail$1;->j(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Lcom/avast/android/referral/Referral$processReferralDetail$1;
sget-object p2, Lkotlin/Unit;->a:Lkotlin/Unit;
invoke-virtual {p1, p2}, Lcom/avast/android/referral/Referral$processReferralDetail$1;->o(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final o(Ljava/lang/Object;)Ljava/lang/Object;
.registers 18
move-object/from16 v0, p0
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->c()Ljava/lang/Object;
move-result-object v1
iget v2, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->o:I
const/4 v3, 0x5
const/4 v4, 0x4
const/4 v5, 0x3
const/4 v6, 0x2
const/4 v7, 0x1
const/4 v8, 0x0
if-eqz v2, :cond_5a
if-eq v2, v7, :cond_50
if-eq v2, v6, :cond_42
if-eq v2, v5, :cond_2d
if-eq v2, v4, :cond_31
if-ne v2, v3, :cond_25
iget-object v1, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->k:Ljava/lang/Object;
check-cast v1, Lkotlinx/coroutines/CoroutineScope;
invoke-static/range {p1 .. p1}, Lkotlin/ResultKt;->b(Ljava/lang/Object;)V
move-object/from16 v2, p1
goto/16 :goto_f3
:cond_25
new-instance v1, Ljava/lang/IllegalStateException;
const-string v2, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
:cond_2d
iget-object v1, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->n:Ljava/lang/Object;
check-cast v1, Lcom/avast/android/referral/data/ReferrerDetail;
:cond_31
iget-object v1, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->m:Ljava/lang/Object;
check-cast v1, Lcom/avast/android/referral/internal/data/InstallReferrerState;
iget-object v1, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->l:Ljava/lang/Object;
check-cast v1, Lkotlinx/coroutines/Deferred;
iget-object v1, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->k:Ljava/lang/Object;
check-cast v1, Lkotlinx/coroutines/CoroutineScope;
invoke-static/range {p1 .. p1}, Lkotlin/ResultKt;->b(Ljava/lang/Object;)V
goto/16 :goto_fc
:cond_42
iget-object v2, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->l:Ljava/lang/Object;
check-cast v2, Lkotlinx/coroutines/Deferred;
iget-object v3, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->k:Ljava/lang/Object;
check-cast v3, Lkotlinx/coroutines/CoroutineScope;
invoke-static/range {p1 .. p1}, Lkotlin/ResultKt;->b(Ljava/lang/Object;)V
move-object/from16 v6, p1
goto :goto_96
:cond_50
iget-object v2, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->k:Ljava/lang/Object;
check-cast v2, Lkotlinx/coroutines/CoroutineScope;
invoke-static/range {p1 .. p1}, Lkotlin/ResultKt;->b(Ljava/lang/Object;)V
move-object/from16 v7, p1
goto :goto_70
:cond_5a
invoke-static/range {p1 .. p1}, Lkotlin/ResultKt;->b(Ljava/lang/Object;)V
iget-object v2, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->j:Lkotlinx/coroutines/CoroutineScope;
iget-object v9, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->p:Lcom/avast/android/referral/Referral;
invoke-virtual {v9}, Lcom/avast/android/referral/Referral;->b()Lcom/avast/android/referral/internal/setting/Settings;
move-result-object v9
iput-object v2, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->k:Ljava/lang/Object;
iput v7, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->o:I
invoke-interface {v9, v0}, Lcom/avast/android/referral/internal/setting/Settings;->e(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object v7
if-ne v7, v1, :cond_70
return-object v1
:cond_70
:goto_70
check-cast v7, Ljava/lang/Boolean;
invoke-virtual {v7}, Ljava/lang/Boolean;->booleanValue()Z
move-result v7
if-nez v7, :cond_e2
const/4 v10, 0x0
const/4 v11, 0x0
new-instance v12, Lcom/avast/android/referral/Referral$processReferralDetail$1$installReferrerStateDeferred$1;
invoke-direct {v12, v0, v8}, Lcom/avast/android/referral/Referral$processReferralDetail$1$installReferrerStateDeferred$1;-><init>(Lcom/avast/android/referral/Referral$processReferralDetail$1;Lkotlin/coroutines/Continuation;)V
const/4 v13, 0x3
const/4 v14, 0x0
move-object v9, v2
invoke-static/range {v9 .. v14}, Lkotlinx/coroutines/BuildersKt;->b(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Deferred;
move-result-object v3
iput-object v2, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->k:Ljava/lang/Object;
iput-object v3, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->l:Ljava/lang/Object;
iput v6, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->o:I
invoke-interface {v3, v0}, Lkotlinx/coroutines/Deferred;->p(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object v6
if-ne v6, v1, :cond_93
return-object v1
:cond_93
move-object v15, v3
move-object v3, v2
move-object v2, v15
:goto_96
check-cast v6, Lcom/avast/android/referral/internal/data/InstallReferrerState;
instance-of v7, v6, Lcom/avast/android/referral/internal/data/InstallReferrerState$Detail;
if-eqz v7, :cond_c6
move-object v4, v6
check-cast v4, Lcom/avast/android/referral/internal/data/InstallReferrerState$Detail;
invoke-static {v4}, Lcom/avast/android/referral/internal/data/ReferrerDataConverterKt;->a(Lcom/avast/android/referral/internal/data/InstallReferrerState$Detail;)Lcom/avast/android/referral/data/ReferrerDetail;
move-result-object v4
iget-object v7, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->p:Lcom/avast/android/referral/Referral;
invoke-virtual {v7}, Lcom/avast/android/referral/Referral;->b()Lcom/avast/android/referral/internal/setting/Settings;
move-result-object v7
invoke-interface {v7, v4}, Lcom/avast/android/referral/internal/setting/Settings;->d(Lcom/avast/android/referral/data/ReferrerDetail;)V
invoke-static {}, Lkotlinx/coroutines/Dispatchers;->c()Lkotlinx/coroutines/MainCoroutineDispatcher;
move-result-object v7
new-instance v9, Lcom/avast/android/referral/Referral$processReferralDetail$1$1;
invoke-direct {v9, v0, v4, v8}, Lcom/avast/android/referral/Referral$processReferralDetail$1$1;-><init>(Lcom/avast/android/referral/Referral$processReferralDetail$1;Lcom/avast/android/referral/data/ReferrerDetail;Lkotlin/coroutines/Continuation;)V
iput-object v3, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->k:Ljava/lang/Object;
iput-object v2, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->l:Ljava/lang/Object;
iput-object v6, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->m:Ljava/lang/Object;
iput-object v4, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->n:Ljava/lang/Object;
iput v5, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->o:I
invoke-static {v7, v9, v0}, Lkotlinx/coroutines/BuildersKt;->g(Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object v2
if-ne v2, v1, :cond_fc
return-object v1
:cond_c6
instance-of v5, v6, Lcom/avast/android/referral/internal/data/InstallReferrerState$Error;
if-eqz v5, :cond_fc
invoke-static {}, Lkotlinx/coroutines/Dispatchers;->c()Lkotlinx/coroutines/MainCoroutineDispatcher;
move-result-object v5
new-instance v7, Lcom/avast/android/referral/Referral$processReferralDetail$1$2;
invoke-direct {v7, v0, v6, v8}, Lcom/avast/android/referral/Referral$processReferralDetail$1$2;-><init>(Lcom/avast/android/referral/Referral$processReferralDetail$1;Lcom/avast/android/referral/internal/data/InstallReferrerState;Lkotlin/coroutines/Continuation;)V
iput-object v3, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->k:Ljava/lang/Object;
iput-object v2, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->l:Ljava/lang/Object;
iput-object v6, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->m:Ljava/lang/Object;
iput v4, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->o:I
invoke-static {v5, v7, v0}, Lkotlinx/coroutines/BuildersKt;->g(Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object v2
if-ne v2, v1, :cond_fc
return-object v1
:cond_e2
iget-object v4, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->p:Lcom/avast/android/referral/Referral;
invoke-virtual {v4}, Lcom/avast/android/referral/Referral;->b()Lcom/avast/android/referral/internal/setting/Settings;
move-result-object v4
iput-object v2, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->k:Ljava/lang/Object;
iput v3, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->o:I
invoke-interface {v4, v0}, Lcom/avast/android/referral/internal/setting/Settings;->c(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object v2
if-ne v2, v1, :cond_f3
return-object v1
:cond_f3
:goto_f3
check-cast v2, Lcom/avast/android/referral/data/ReferrerDetail;
if-eqz v2, :cond_fc
iget-object v1, v0, Lcom/avast/android/referral/Referral$processReferralDetail$1;->q:Lcom/avast/android/referral/OnReferrerProcessedListener;
invoke-interface {v1, v2}, Lcom/avast/android/referral/OnReferrerProcessedListener;->b(Lcom/avast/android/referral/data/ReferrerDetail;)V
:cond_fc
:goto_fc
sget-object v1, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v1
.end method