package com.revenuecat.purchases.ui.revenuecatui;

import A4.d;
import B4.a;
import C4.e;
import C4.j;
import J4.c;
import V4.C;
import V4.E;
import androidx.compose.runtime.MutableState;
import com.google.firebase.firestore.index.FirestoreIndexValueWriter;
import com.revenuecat.purchases.ui.revenuecatui.helpers.HelperFunctionsKt;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
@e(c = "com.revenuecat.purchases.ui.revenuecatui.PaywallDialogKt$PaywallDialog$1$1", f = "PaywallDialog.kt", l = {}, m = "invokeSuspend")
public final class PaywallDialogKt$PaywallDialog$1$1 extends j implements J4.e {
    final /* synthetic */ c $shouldDisplayBlock;
    final /* synthetic */ MutableState<Boolean> $shouldDisplayDialog$delegate;
    private /* synthetic */ Object L$0;
    int label;

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.PaywallDialogKt$PaywallDialog$1$1$1, reason: invalid class name */
    @e(c = "com.revenuecat.purchases.ui.revenuecatui.PaywallDialogKt$PaywallDialog$1$1$1", f = "PaywallDialog.kt", l = {FirestoreIndexValueWriter.INDEX_TYPE_VECTOR}, m = "invokeSuspend")
    public static final class AnonymousClass1 extends j implements J4.e {
        final /* synthetic */ c $shouldDisplayBlock;
        final /* synthetic */ MutableState<Boolean> $shouldDisplayDialog$delegate;
        Object L$0;
        int label;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public AnonymousClass1(c cVar, MutableState<Boolean> mutableState, d dVar) {
            super(2, dVar);
            this.$shouldDisplayBlock = cVar;
            this.$shouldDisplayDialog$delegate = mutableState;
        }

        @Override // C4.a
        public final d create(Object obj, d dVar) {
            return new AnonymousClass1(this.$shouldDisplayBlock, this.$shouldDisplayDialog$delegate, dVar);
        }

        @Override // J4.e
        public final Object invoke(C c6, d dVar) {
            return ((AnonymousClass1) create(c6, dVar)).invokeSuspend(C3137A.f25453a);
        }

        @Override // C4.a
        public final Object invokeSuspend(Object obj) {
            MutableState<Boolean> mutableState;
            a aVar = a.f492a;
            int i6 = this.label;
            if (i6 == 0) {
                AbstractC2467b.l(obj);
                MutableState<Boolean> mutableState2 = this.$shouldDisplayDialog$delegate;
                c cVar = this.$shouldDisplayBlock;
                this.L$0 = mutableState2;
                this.label = 1;
                Object objShouldDisplayPaywall = HelperFunctionsKt.shouldDisplayPaywall(cVar, this);
                if (objShouldDisplayPaywall == aVar) {
                    return aVar;
                }
                mutableState = mutableState2;
                obj = objShouldDisplayPaywall;
            } else {
                if (i6 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                mutableState = (MutableState) this.L$0;
                AbstractC2467b.l(obj);
            }
            PaywallDialogKt.PaywallDialog$lambda$2(mutableState, ((Boolean) obj).booleanValue());
            return C3137A.f25453a;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public PaywallDialogKt$PaywallDialog$1$1(c cVar, MutableState<Boolean> mutableState, d dVar) {
        super(2, dVar);
        this.$shouldDisplayBlock = cVar;
        this.$shouldDisplayDialog$delegate = mutableState;
    }

    @Override // C4.a
    public final d create(Object obj, d dVar) {
        PaywallDialogKt$PaywallDialog$1$1 paywallDialogKt$PaywallDialog$1$1 = new PaywallDialogKt$PaywallDialog$1$1(this.$shouldDisplayBlock, this.$shouldDisplayDialog$delegate, dVar);
        paywallDialogKt$PaywallDialog$1$1.L$0 = obj;
        return paywallDialogKt$PaywallDialog$1$1;
    }

    @Override // J4.e
    public final Object invoke(C c6, d dVar) {
        return ((PaywallDialogKt$PaywallDialog$1$1) create(c6, dVar)).invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        a aVar = a.f492a;
        if (this.label != 0) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        AbstractC2467b.l(obj);
        E.y((C) this.L$0, null, null, new AnonymousClass1(this.$shouldDisplayBlock, this.$shouldDisplayDialog$delegate, null), 3);
        return C3137A.f25453a;
    }
}
