package com.revenuecat.purchases.ui.revenuecatui;

import A4.d;
import B4.a;
import C4.e;
import C4.j;
import V4.C;
import androidx.compose.runtime.MutableState;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

    @Override // C4.a
    public final d create(Object obj, d dVar) {
        return new PaywallDialogKt$PaywallDialog$2$1(this.$paywallDialogOptions, this.$shouldDisplayDialog$delegate, this.$currentDialogOffering$delegate, dVar);
    }

    @Override // J4.e
    public final Object invoke(C c6, d dVar) {
        return ((PaywallDialogKt$PaywallDialog$2$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);
        if (PaywallDialogKt.PaywallDialog$lambda$1(this.$shouldDisplayDialog$delegate) && PaywallDialogKt.PaywallDialog$lambda$5(this.$currentDialogOffering$delegate) == null) {
            this.$currentDialogOffering$delegate.setValue(this.$paywallDialogOptions.getOfferingSelection$revenuecatui_defaultsBc8Release());
        }
        return C3137A.f25453a;
    }
}
