Feed$init$3.smali

.class final Lcom/avast/android/feed/Feed$init$3;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;

# interfaces
.implements Lkotlin/jvm/functions/Function2;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/avast/android/feed/Feed;->init(Lcom/avast/android/feed/FeedConfig;Lcom/avast/android/feed/RuntimeConfig;Landroid/app/Activity;)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.feed.Feed$init$3"
    f = "Feed.kt"
    l = {
        0xe9
    }
    m = "invokeSuspend"
.end annotation


# instance fields
.field private j:Lkotlinx/coroutines/CoroutineScope;

.field k:Ljava/lang/Object;

.field l:I

.field final synthetic m:Lcom/avast/android/feed/Feed;

.field final synthetic n:Lcom/avast/android/feed/FeedConfig;

.field final synthetic o:Lcom/avast/android/feed/RuntimeConfig;

.field final synthetic p:Landroid/app/Activity;


# direct methods
.method constructor <init>(Lcom/avast/android/feed/Feed;Lcom/avast/android/feed/FeedConfig;Lcom/avast/android/feed/RuntimeConfig;Landroid/app/Activity;Lkotlin/coroutines/Continuation;)V
    .registers 6

    iput-object p1, p0, Lcom/avast/android/feed/Feed$init$3;->m:Lcom/avast/android/feed/Feed;

    iput-object p2, p0, Lcom/avast/android/feed/Feed$init$3;->n:Lcom/avast/android/feed/FeedConfig;

    iput-object p3, p0, Lcom/avast/android/feed/Feed$init$3;->o:Lcom/avast/android/feed/RuntimeConfig;

    iput-object p4, p0, Lcom/avast/android/feed/Feed$init$3;->p:Landroid/app/Activity;

    const/4 p1, 0x2

    invoke-direct {p0, p1, p5}, 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 10
    .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/feed/Feed$init$3;

    iget-object v2, p0, Lcom/avast/android/feed/Feed$init$3;->m:Lcom/avast/android/feed/Feed;

    iget-object v3, p0, Lcom/avast/android/feed/Feed$init$3;->n:Lcom/avast/android/feed/FeedConfig;

    iget-object v4, p0, Lcom/avast/android/feed/Feed$init$3;->o:Lcom/avast/android/feed/RuntimeConfig;

    iget-object v5, p0, Lcom/avast/android/feed/Feed$init$3;->p:Landroid/app/Activity;

    move-object v1, v0

    move-object v6, p2

    invoke-direct/range {v1 .. v6}, Lcom/avast/android/feed/Feed$init$3;-><init>(Lcom/avast/android/feed/Feed;Lcom/avast/android/feed/FeedConfig;Lcom/avast/android/feed/RuntimeConfig;Landroid/app/Activity;Lkotlin/coroutines/Continuation;)V

    check-cast p1, Lkotlinx/coroutines/CoroutineScope;

    iput-object p1, v0, Lcom/avast/android/feed/Feed$init$3;->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/feed/Feed$init$3;->j(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;

    move-result-object p1

    check-cast p1, Lcom/avast/android/feed/Feed$init$3;

    sget-object p2, Lkotlin/Unit;->a:Lkotlin/Unit;

    invoke-virtual {p1, p2}, Lcom/avast/android/feed/Feed$init$3;->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 7

    invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->c()Ljava/lang/Object;

    move-result-object v0

    iget v1, p0, Lcom/avast/android/feed/Feed$init$3;->l:I

    const/4 v2, 0x1

    if-eqz v1, :cond_1b

    if-ne v1, v2, :cond_13

    iget-object v0, p0, Lcom/avast/android/feed/Feed$init$3;->k:Ljava/lang/Object;

    check-cast v0, Lkotlinx/coroutines/CoroutineScope;

    invoke-static {p1}, Lkotlin/ResultKt;->b(Ljava/lang/Object;)V

    goto :goto_80

    :cond_13
    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_1b
    invoke-static {p1}, Lkotlin/ResultKt;->b(Ljava/lang/Object;)V

    iget-object p1, p0, Lcom/avast/android/feed/Feed$init$3;->j:Lkotlinx/coroutines/CoroutineScope;

    invoke-static {}, Lcom/avast/android/feed/internal/dagger/ComponentHolder;->a()Lcom/avast/android/feed/internal/dagger/FeedComponent;

    move-result-object v1

    if-nez v1, :cond_3b

    invoke-static {}, Lcom/avast/android/feed/internal/dagger/DaggerFeedComponent;->P()Lcom/avast/android/feed/internal/dagger/FeedComponent$Builder;

    move-result-object v1

    iget-object v3, p0, Lcom/avast/android/feed/Feed$init$3;->n:Lcom/avast/android/feed/FeedConfig;

    invoke-interface {v1, v3}, Lcom/avast/android/feed/internal/dagger/FeedComponent$Builder;->b(Lcom/avast/android/feed/FeedConfig;)Lcom/avast/android/feed/internal/dagger/FeedComponent$Builder;

    iget-object v3, p0, Lcom/avast/android/feed/Feed$init$3;->o:Lcom/avast/android/feed/RuntimeConfig;

    invoke-interface {v1, v3}, Lcom/avast/android/feed/internal/dagger/FeedComponent$Builder;->a(Lcom/avast/android/feed/RuntimeConfig;)Lcom/avast/android/feed/internal/dagger/FeedComponent$Builder;

    invoke-interface {v1}, Lcom/avast/android/feed/internal/dagger/FeedComponent$Builder;->build()Lcom/avast/android/feed/internal/dagger/FeedComponent;

    move-result-object v1

    invoke-static {v1}, Lcom/avast/android/feed/internal/dagger/ComponentHolder;->b(Lcom/avast/android/feed/internal/dagger/FeedComponent;)V

    :cond_3b
    iget-object v1, p0, Lcom/avast/android/feed/Feed$init$3;->m:Lcom/avast/android/feed/Feed;

    # invokes: Lcom/avast/android/feed/Feed;->k()V
    invoke-static {v1}, Lcom/avast/android/feed/Feed;->access$initSelf(Lcom/avast/android/feed/Feed;)V

    iget-object v1, p0, Lcom/avast/android/feed/Feed$init$3;->m:Lcom/avast/android/feed/Feed;

    # getter for: Lcom/avast/android/feed/Feed;->c:Z
    invoke-static {v1}, Lcom/avast/android/feed/Feed;->access$getPicassoInitialized$p(Lcom/avast/android/feed/Feed;)Z

    move-result v1

    if-nez v1, :cond_52

    iget-object v1, p0, Lcom/avast/android/feed/Feed$init$3;->m:Lcom/avast/android/feed/Feed;

    # invokes: Lcom/avast/android/feed/Feed;->j()V
    invoke-static {v1}, Lcom/avast/android/feed/Feed;->access$initPicasso(Lcom/avast/android/feed/Feed;)V

    iget-object v1, p0, Lcom/avast/android/feed/Feed$init$3;->m:Lcom/avast/android/feed/Feed;

    invoke-static {v1, v2}, Lcom/avast/android/feed/Feed;->access$setPicassoInitialized$p(Lcom/avast/android/feed/Feed;Z)V

    :cond_52
    iget-object v1, p0, Lcom/avast/android/feed/Feed$init$3;->n:Lcom/avast/android/feed/FeedConfig;

    invoke-virtual {v1}, Lcom/avast/android/feed/FeedConfig;->isConnectivityChangeEnabled()Z

    move-result v1

    if-eqz v1, :cond_5f

    iget-object v1, p0, Lcom/avast/android/feed/Feed$init$3;->m:Lcom/avast/android/feed/Feed;

    # invokes: Lcom/avast/android/feed/Feed;->p()V
    invoke-static {v1}, Lcom/avast/android/feed/Feed;->access$registerConnectivityChangeReceiver(Lcom/avast/android/feed/Feed;)V

    :cond_5f
    iget-object v1, p0, Lcom/avast/android/feed/Feed$init$3;->m:Lcom/avast/android/feed/Feed;

    # invokes: Lcom/avast/android/feed/Feed;->l()V
    invoke-static {v1}, Lcom/avast/android/feed/Feed;->access$initTrackers(Lcom/avast/android/feed/Feed;)V

    iget-object v1, p0, Lcom/avast/android/feed/Feed$init$3;->m:Lcom/avast/android/feed/Feed;

    invoke-virtual {v1}, Lcom/avast/android/feed/Feed;->getFeedConfigProvider$com_avast_android_avast_android_feed()Lcom/avast/android/feed/internal/config/FeedConfigProvider;

    move-result-object v3

    invoke-virtual {v3}, Lcom/avast/android/feed/internal/config/FeedConfigProvider;->a()Lcom/avast/android/feed/RuntimeConfig;

    move-result-object v3

    const-string v4, "feedConfigProvider.runtimeConfig"

    invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v4, p0, Lcom/avast/android/feed/Feed$init$3;->p:Landroid/app/Activity;

    iput-object p1, p0, Lcom/avast/android/feed/Feed$init$3;->k:Ljava/lang/Object;

    iput v2, p0, Lcom/avast/android/feed/Feed$init$3;->l:I

    invoke-virtual {v1, v3, v4, p0}, Lcom/avast/android/feed/Feed;->r(Lcom/avast/android/feed/RuntimeConfig;Landroid/app/Activity;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;

    move-result-object p1

    if-ne p1, v0, :cond_80

    return-object v0

    :cond_80
    :goto_80
    sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;

    return-object p1
.end method