package com.revenuecat.purchases.ui.revenuecatui.composables;

import J4.c;
import T0.L;
import T0.O;
import W.a;
import androidx.compose.runtime.MutableState;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
public final class AutoResizedTextKt$AutoResizedText$2$1 extends p implements c {
    final /* synthetic */ long $defaultFontSize;
    final /* synthetic */ MutableState<O> $resizedTextStyle$delegate;
    final /* synthetic */ MutableState<Boolean> $shouldDraw$delegate;
    final /* synthetic */ O $style;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public AutoResizedTextKt$AutoResizedText$2$1(O o6, long j4, MutableState<O> mutableState, MutableState<Boolean> mutableState2) {
        super(1);
        this.$style = o6;
        this.$defaultFontSize = j4;
        this.$resizedTextStyle$delegate = mutableState;
        this.$shouldDraw$delegate = mutableState2;
    }

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

    public final void invoke(L result) {
        o.h(result, "result");
        if (((int) (result.f6473c >> 32)) >= result.f6472b.f6535d) {
            AutoResizedTextKt.AutoResizedText_W72HBGU$lambda$5(this.$shouldDraw$delegate, true);
            return;
        }
        long j4 = this.$style.f6485a.f6440b;
        h1.p[] pVarArr = h1.o.f16632b;
        if ((j4 & 1095216660480L) == 0) {
            MutableState<O> mutableState = this.$resizedTextStyle$delegate;
            mutableState.setValue(O.a(AutoResizedTextKt.AutoResizedText_W72HBGU$lambda$1(mutableState), 0L, this.$defaultFontSize, null, null, null, 0L, null, null, 0L, null, null, 16777213));
        }
        long j6 = AutoResizedTextKt.AutoResizedText_W72HBGU$lambda$1(this.$resizedTextStyle$delegate).f6485a.f6440b;
        a.W(j6);
        long jU0 = a.u0((float) (((double) h1.o.c(j6)) * 0.95d), 1095216660480L & j6);
        MutableState<O> mutableState2 = this.$resizedTextStyle$delegate;
        mutableState2.setValue(O.a(AutoResizedTextKt.AutoResizedText_W72HBGU$lambda$1(mutableState2), 0L, jU0, null, null, null, 0L, null, null, 0L, null, null, 16777213));
    }
}
