package com.revenuecat.purchases.ui.revenuecatui.components.stack;

import G0.C0;
import G0.InterfaceC0247b0;
import G0.Z;
import G0.p0;
import G0.q0;
import J4.c;
import J4.e;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import com.revenuecat.purchases.ui.revenuecatui.components.style.StackComponentStyle;
import com.revenuecat.purchases.ui.revenuecatui.data.PaywallState;
import h1.C2069a;
import h1.b;
import h1.i;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import w4.C3137A;
import x4.AbstractC3251q;
import x4.z;

/* JADX INFO: loaded from: classes3.dex */
public final class StackComponentViewKt$StackWithLongEdgeToEdgeBadge$2$1 extends p implements e {
    final /* synthetic */ StackComponentStyle $badgeStack;
    final /* synthetic */ e $clickHandler;
    final /* synthetic */ float $contentAlpha;
    final /* synthetic */ StackComponentState $stackState;
    final /* synthetic */ PaywallState.Loaded.Components $state;
    final /* synthetic */ boolean $topBadge;

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.stack.StackComponentViewKt$StackWithLongEdgeToEdgeBadge$2$1$1, reason: invalid class name */
    public static final class AnonymousClass1 extends p implements c {
        final /* synthetic */ q0 $backgroundPlaceable;
        final /* synthetic */ q0 $badgePlaceable;
        final /* synthetic */ q0 $stackPlaceable;
        final /* synthetic */ boolean $topBadge;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public AnonymousClass1(q0 q0Var, boolean z6, q0 q0Var2, q0 q0Var3) {
            super(1);
            this.$backgroundPlaceable = q0Var;
            this.$topBadge = z6;
            this.$badgePlaceable = q0Var2;
            this.$stackPlaceable = q0Var3;
        }

        @Override // J4.c
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            invoke((p0) obj);
            return C3137A.f25453a;
        }

        public final void invoke(p0 layout) {
            o.h(layout, "$this$layout");
            p0.r(layout, this.$backgroundPlaceable, 0, 0);
            if (this.$topBadge) {
                p0.r(layout, this.$badgePlaceable, 0, 0);
                p0.r(layout, this.$stackPlaceable, 0, this.$badgePlaceable.f1999b);
                int i6 = this.$stackPlaceable.f1999b;
                return;
            }
            p0.r(layout, this.$stackPlaceable, 0, 0);
            p0.r(layout, this.$badgePlaceable, 0, this.$stackPlaceable.f1999b);
            int i7 = this.$badgePlaceable.f1999b;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public StackComponentViewKt$StackWithLongEdgeToEdgeBadge$2$1(StackComponentState stackComponentState, PaywallState.Loaded.Components components, e eVar, float f6, StackComponentStyle stackComponentStyle, boolean z6) {
        super(2);
        this.$stackState = stackComponentState;
        this.$state = components;
        this.$clickHandler = eVar;
        this.$contentAlpha = f6;
        this.$badgeStack = stackComponentStyle;
        this.$topBadge = z6;
    }

    @Override // J4.e
    public /* synthetic */ Object invoke(Object obj, Object obj2) {
        return m770invoke0kLqBqw((C0) obj, ((C2069a) obj2).f16612a);
    }

    /* JADX INFO: renamed from: invoke-0kLqBqw, reason: not valid java name */
    public final InterfaceC0247b0 m770invoke0kLqBqw(C0 SubcomposeLayout, long j4) {
        o.h(SubcomposeLayout, "$this$SubcomposeLayout");
        q0 q0VarQ = ((Z) AbstractC3251q.e0(SubcomposeLayout.j("stack", ComposableLambdaKt.composableLambdaInstance(-1349600991, true, new StackComponentViewKt$StackWithLongEdgeToEdgeBadge$2$1$stackMeasurable$1(this.$stackState, this.$state, this.$clickHandler, this.$contentAlpha))))).Q(j4);
        q0 q0VarQ2 = ((Z) AbstractC3251q.e0(SubcomposeLayout.j("badge", ComposableLambdaKt.composableLambdaInstance(1484438374, true, new StackComponentViewKt$StackWithLongEdgeToEdgeBadge$2$1$badgeMeasurable$1(this.$badgeStack, this.$state, this.$clickHandler))))).Q(j4);
        int i6 = q0VarQ2.f1999b;
        int i7 = q0VarQ.f1998a;
        int i8 = q0VarQ.f1999b + i6;
        Z z6 = (Z) AbstractC3251q.e0(SubcomposeLayout.j("background", ComposableLambdaKt.composableLambdaInstance(-1688443959, true, new StackComponentViewKt$StackWithLongEdgeToEdgeBadge$2$1$backgroundMeasurable$1(this.$badgeStack, this.$stackState, this.$topBadge, q0VarQ))));
        if (!((i8 >= 0) & (i7 >= 0))) {
            i.a("width and height must be >= 0");
        }
        return SubcomposeLayout.e(i7, i8, z.f26066a, new AnonymousClass1(z6.Q(b.h(i7, i7, i8, i8)), this.$topBadge, q0VarQ2, q0VarQ));
    }
}
