package B;

import G0.C0255f0;
import G0.InterfaceC0245a0;
import G0.InterfaceC0247b0;
import G0.InterfaceC0249c0;
import G0.InterfaceC0273s;
import I0.C0291f;
import I0.C0293g;
import I0.InterfaceC0295h;
import J0.AbstractC0391w0;
import androidx.compose.runtime.ComposablesKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionLocalMap;
import androidx.compose.runtime.RecomposeScopeImplKt;
import androidx.compose.runtime.ScopeUpdateScope;
import androidx.compose.runtime.Updater;
import androidx.compose.runtime.internal.ComposableLambda;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.media3.exoplayer.RendererCapabilities;
import androidx.media3.exoplayer.source.ProgressiveMediaSource;
import androidx.media3.extractor.WavUtil;
import androidx.media3.extractor.text.ttml.TtmlNode;
import h1.C2069a;
import i0.AbstractC2237a;
import i0.C2239c;
import i0.C2246j;
import i0.C2252p;
import i0.InterfaceC2242f;
import i0.InterfaceC2255s;
import java.util.ArrayList;
import java.util.List;
import w4.C3137A;

/* JADX INFO: renamed from: B.e, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC0057e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final C0055d f262a = new C0055d(0);

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final C0055d f263b = new C0055d(1);

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final C0055d f264c = new C0055d(2);

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final S f265d = new S();

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public static final A4.b f266e = new A4.b(3);

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public static final A4.b f267f = new A4.b(4);

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public static final int f268g = 9;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public static final int f269h = 6;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public static final int f270i = 10;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public static final int f271j = 5;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public static final int f272k = 15;

    public static final InterfaceC2255s A(InterfaceC2255s interfaceC2255s, H0 h0) {
        return interfaceC2255s.then(new I0(h0, new V(h0, 1)));
    }

    public static final InterfaceC2255s B(InterfaceC2255s interfaceC2255s, float f6) {
        return interfaceC2255s.then(new D0(f6, f6, f6, f6, new F0(f6, 0)));
    }

    public static final InterfaceC2255s C(InterfaceC2255s interfaceC2255s, float f6, float f7) {
        return interfaceC2255s.then(new D0(f6, f7, f6, f7, new A0(f6, f7, 1)));
    }

    public static InterfaceC2255s D(InterfaceC2255s interfaceC2255s, float f6, float f7, int i6) {
        if ((i6 & 1) != 0) {
            f6 = 0;
        }
        if ((i6 & 2) != 0) {
            f7 = 0;
        }
        return C(interfaceC2255s, f6, f7);
    }

    public static final InterfaceC2255s E(InterfaceC2255s interfaceC2255s, final float f6, final float f7, final float f8, final float f9) {
        return interfaceC2255s.then(new D0(f6, f7, f8, f9, new J4.c() { // from class: B.E0
            @Override // J4.c
            public final Object invoke(Object obj) {
                J0.L0 l02 = (J0.L0) obj;
                l02.f2894a = "padding";
                h1.f fVar = new h1.f(f6);
                H4.f fVar2 = l02.f2896c;
                fVar2.c(fVar, TtmlNode.START);
                fVar2.c(new h1.f(f7), "top");
                fVar2.c(new h1.f(f8), TtmlNode.END);
                fVar2.c(new h1.f(f9), "bottom");
                return C3137A.f25453a;
            }
        }));
    }

    public static InterfaceC2255s F(InterfaceC2255s interfaceC2255s, float f6, float f7, float f8, float f9, int i6) {
        if ((i6 & 1) != 0) {
            f6 = 0;
        }
        if ((i6 & 2) != 0) {
            f7 = 0;
        }
        if ((i6 & 4) != 0) {
            f8 = 0;
        }
        if ((i6 & 8) != 0) {
            f9 = 0;
        }
        return E(interfaceC2255s, f6, f7, f8, f9);
    }

    public static final int G() {
        return 16 | f272k;
    }

    public static final InterfaceC2255s H(InterfaceC2255s interfaceC2255s) {
        return O(interfaceC2255s, new h1(2));
    }

    public static final long I(long j4) {
        EnumC0091v0 enumC0091v0 = EnumC0091v0.f389a;
        return h1.b.a(C2069a.j(j4), C2069a.h(j4), C2069a.i(j4), C2069a.g(j4));
    }

    public static final C0078o0 J(z1.b bVar) {
        return new C0078o0(bVar.f26269a, bVar.f26270b, bVar.f26271c, bVar.f26272d);
    }

    public static final void K(String str, StringBuilder sb) {
        if (sb.length() > 0) {
            sb.append('+');
        }
        sb.append(str);
    }

    public static final InterfaceC2255s L(InterfaceC2255s interfaceC2255s) {
        EnumC0083r0 enumC0083r0 = EnumC0083r0.f365a;
        return interfaceC2255s.then(new C0087t0());
    }

    public static final InterfaceC2255s M(C0051b c0051b) {
        return new L(c0051b, f267f);
    }

    public static final InterfaceC2255s N(InterfaceC2255s interfaceC2255s, e1 e1Var) {
        return interfaceC2255s.then(new C0070k0(e1Var));
    }

    public static final InterfaceC2255s O(InterfaceC2255s interfaceC2255s, J4.c cVar) {
        return interfaceC2255s.then(new W0(cVar));
    }

    public static final InterfaceC2255s P(C0051b c0051b) {
        return new L(c0051b, f266e);
    }

    /* JADX WARN: Removed duplicated region for block: B:26:0x004a  */
    /* JADX WARN: Removed duplicated region for block: B:28:0x004f  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x0067  */
    /* JADX WARN: Removed duplicated region for block: B:44:0x007a  */
    /* JADX WARN: Removed duplicated region for block: B:45:0x007c  */
    /* JADX WARN: Removed duplicated region for block: B:48:0x0085  */
    /* JADX WARN: Removed duplicated region for block: B:71:0x00d7  */
    /* JADX WARN: Removed duplicated region for block: B:74:0x00e2  */
    /* JADX WARN: Removed duplicated region for block: B:76:? A[RETURN, SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void a(InterfaceC2255s interfaceC2255s, InterfaceC2242f interfaceC2242f, boolean z6, ComposableLambda composableLambda, Composer composer, int i6, int i7) {
        InterfaceC2255s interfaceC2255s2;
        int i8;
        InterfaceC2242f interfaceC2242f2;
        int i9;
        boolean z7;
        InterfaceC2255s interfaceC2255s3;
        InterfaceC2242f interfaceC2242f3;
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup;
        Composer composerStartRestartGroup = composer.startRestartGroup(380139498);
        int i10 = i7 & 1;
        if (i10 != 0) {
            i8 = i6 | 6;
            interfaceC2255s2 = interfaceC2255s;
        } else if ((i6 & 6) == 0) {
            interfaceC2255s2 = interfaceC2255s;
            i8 = (composerStartRestartGroup.changed(interfaceC2255s2) ? 4 : 2) | i6;
        } else {
            interfaceC2255s2 = interfaceC2255s;
            i8 = i6;
        }
        int i11 = i7 & 2;
        if (i11 != 0) {
            i8 |= 48;
        } else {
            if ((i6 & 48) == 0) {
                interfaceC2242f2 = interfaceC2242f;
                i8 |= composerStartRestartGroup.changed(interfaceC2242f2) ? 32 : 16;
            }
            i9 = i7 & 4;
            if (i9 != 0) {
                if ((i6 & RendererCapabilities.DECODER_SUPPORT_MASK) == 0) {
                    z7 = z6;
                    i8 |= composerStartRestartGroup.changed(z7) ? 256 : 128;
                }
                if ((i6 & 3072) == 0) {
                    i8 |= composerStartRestartGroup.changedInstance(composableLambda) ? 2048 : 1024;
                }
                if (composerStartRestartGroup.shouldExecute((i8 & 1171) != 1170, i8 & 1)) {
                    interfaceC2255s3 = i10 != 0 ? C2252p.f18820a : interfaceC2255s2;
                    interfaceC2242f3 = i11 != 0 ? C2239c.f18794a : interfaceC2242f2;
                    if (i9 != 0) {
                        z7 = false;
                    }
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(380139498, i8, -1, "androidx.compose.foundation.layout.BoxWithConstraints (BoxWithConstraints.kt:61)");
                    }
                    InterfaceC0245a0 interfaceC0245a0D = AbstractC0084s.d(interfaceC2242f3, z7);
                    boolean zChanged = composerStartRestartGroup.changed(interfaceC0245a0D) | ((i8 & 7168) == 2048);
                    Object objRememberedValue = composerStartRestartGroup.rememberedValue();
                    if (zChanged || objRememberedValue == Composer.Companion.getEmpty()) {
                        objRememberedValue = new C0096y(0, interfaceC0245a0D, composableLambda);
                        composerStartRestartGroup.updateRememberedValue(objRememberedValue);
                    }
                    G0.B.c(interfaceC2255s3, (J4.e) objRememberedValue, composerStartRestartGroup, i8 & 14, 0);
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                } else {
                    composerStartRestartGroup.skipToGroupEnd();
                    interfaceC2255s3 = interfaceC2255s2;
                    interfaceC2242f3 = interfaceC2242f2;
                }
                scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
                if (scopeUpdateScopeEndRestartGroup != null) {
                    scopeUpdateScopeEndRestartGroup.updateScope(new C0098z(interfaceC2255s3, interfaceC2242f3, z7, composableLambda, i6, i7));
                    return;
                }
                return;
            }
            i8 |= RendererCapabilities.DECODER_SUPPORT_MASK;
            z7 = z6;
            if ((i6 & 3072) == 0) {
            }
            if (composerStartRestartGroup.shouldExecute((i8 & 1171) != 1170, i8 & 1)) {
            }
            scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
            if (scopeUpdateScopeEndRestartGroup != null) {
            }
        }
        interfaceC2242f2 = interfaceC2242f;
        i9 = i7 & 4;
        if (i9 != 0) {
        }
        z7 = z6;
        if ((i6 & 3072) == 0) {
        }
        if (composerStartRestartGroup.shouldExecute((i8 & 1171) != 1170, i8 & 1)) {
        }
        scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:147:0x01ea  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void b(InterfaceC2255s interfaceC2255s, InterfaceC0063h interfaceC0063h, InterfaceC0067j interfaceC0067j, C0056d0 c0056d0, ComposableLambda composableLambda, Composer composer, int i6) {
        int i7;
        C0056d0 c0056d02;
        int i8;
        C2246j c2246j = C2239c.f18802m;
        Composer composerStartRestartGroup = composer.startRestartGroup(-1956591841);
        if ((i6 & 6) == 0) {
            i7 = (composerStartRestartGroup.changed(interfaceC2255s) ? 4 : 2) | i6;
        } else {
            i7 = i6;
        }
        if ((i6 & 48) == 0) {
            i7 |= composerStartRestartGroup.changed(interfaceC0063h) ? 32 : 16;
        }
        if ((i6 & RendererCapabilities.DECODER_SUPPORT_MASK) == 0) {
            i7 |= composerStartRestartGroup.changed(interfaceC0067j) ? 256 : 128;
        }
        if ((i6 & 3072) == 0) {
            i7 |= composerStartRestartGroup.changed(c2246j) ? 2048 : 1024;
        }
        if ((i6 & 24576) == 0) {
            i7 |= composerStartRestartGroup.changed(Integer.MAX_VALUE) ? 16384 : 8192;
        }
        if ((196608 & i6) == 0) {
            i7 |= composerStartRestartGroup.changed(Integer.MAX_VALUE) ? 131072 : androidx.media3.common.C.DEFAULT_BUFFER_SEGMENT_SIZE;
        }
        if ((1572864 & i6) == 0) {
            c0056d02 = c0056d0;
            i7 |= composerStartRestartGroup.changed(c0056d02) ? 1048576 : 524288;
        } else {
            c0056d02 = c0056d0;
        }
        if ((i6 & 12582912) == 0) {
            i7 |= composerStartRestartGroup.changedInstance(composableLambda) ? 8388608 : 4194304;
        }
        if (composerStartRestartGroup.shouldExecute((i7 & 4793491) != 4793490, i7 & 1)) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1956591841, i7, -1, "androidx.compose.foundation.layout.FlowRow (FlowLayout.kt:99)");
            }
            int i9 = i7 & 3670016;
            boolean z6 = i9 == 1048576;
            Object objRememberedValue = composerStartRestartGroup.rememberedValue();
            if (z6 || objRememberedValue == Composer.Companion.getEmpty()) {
                c0056d02.getClass();
                Y y6 = Y.f225a;
                objRememberedValue = new C0050a0();
                composerStartRestartGroup.updateRememberedValue(objRememberedValue);
            }
            C0050a0 c0050a0 = (C0050a0) objRememberedValue;
            int i10 = i7 >> 3;
            int i11 = i10 & WavUtil.TYPE_WAVE_FORMAT_EXTENSIBLE;
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-2010142641, i11, -1, "androidx.compose.foundation.layout.rowMeasurementMultiContentHelper (FlowLayout.kt:470)");
            }
            boolean zChanged = ((((57344 & i10) ^ 24576) > 16384 && composerStartRestartGroup.changed(Integer.MAX_VALUE)) || (i10 & 24576) == 16384) | ((((i10 & 14) ^ 6) > 4 && composerStartRestartGroup.changed(interfaceC0063h)) || (i10 & 6) == 4) | ((((i10 & 112) ^ 48) > 32 && composerStartRestartGroup.changed(interfaceC0067j)) || (i10 & 48) == 32) | ((((i10 & 896) ^ RendererCapabilities.DECODER_SUPPORT_MASK) > 256 && composerStartRestartGroup.changed(c2246j)) || (i10 & RendererCapabilities.DECODER_SUPPORT_MASK) == 256) | ((((i10 & 7168) ^ 3072) > 2048 && composerStartRestartGroup.changed(Integer.MAX_VALUE)) || (i10 & 3072) == 2048) | composerStartRestartGroup.changed(c0050a0);
            Object objRememberedValue2 = composerStartRestartGroup.rememberedValue();
            if (zChanged || objRememberedValue2 == Composer.Companion.getEmpty()) {
                i8 = i7;
                C0054c0 c0054c0 = new C0054c0(interfaceC0063h, interfaceC0067j, interfaceC0063h.a(), new K(c2246j), interfaceC0067j.a(), c0050a0);
                composerStartRestartGroup.updateRememberedValue(c0054c0);
                objRememberedValue2 = c0054c0;
            } else {
                i8 = i7;
            }
            C0054c0 c0054c02 = (C0054c0) objRememberedValue2;
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
            boolean z7 = (i9 == 1048576) | ((29360128 & i8) == 8388608) | ((458752 & i8) == 131072);
            Object objRememberedValue3 = composerStartRestartGroup.rememberedValue();
            if (!z7) {
                Object obj = objRememberedValue3;
                if (objRememberedValue3 == Composer.Companion.getEmpty()) {
                    ArrayList arrayList = new ArrayList();
                    arrayList.add(ComposableLambdaKt.composableLambdaInstance(-1192950673, true, new C0053c(composableLambda, 2)));
                    c0056d0.getClass();
                    Y y7 = Y.f225a;
                    composerStartRestartGroup.updateRememberedValue(arrayList);
                    obj = arrayList;
                }
                ComposableLambda composableLambdaComposableLambdaInstance = ComposableLambdaKt.composableLambdaInstance(1271844412, true, new G0.G((List) obj, 0));
                boolean zChanged2 = composerStartRestartGroup.changed(c0054c02);
                Object objRememberedValue4 = composerStartRestartGroup.rememberedValue();
                if (zChanged2 || objRememberedValue4 == Composer.Companion.getEmpty()) {
                    objRememberedValue4 = new C0255f0(c0054c02);
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue4);
                }
                InterfaceC0245a0 interfaceC0245a0 = (InterfaceC0245a0) objRememberedValue4;
                int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, 0));
                CompositionLocalMap currentCompositionLocalMap = composerStartRestartGroup.getCurrentCompositionLocalMap();
                InterfaceC2255s interfaceC2255sC = AbstractC2237a.c(composerStartRestartGroup, interfaceC2255s);
                InterfaceC0295h.f2384g.getClass();
                C0291f c0291f = C0293g.f2375b;
                if (composerStartRestartGroup.getApplier() == null) {
                    ComposablesKt.invalidApplier();
                }
                composerStartRestartGroup.startReusableNode();
                if (composerStartRestartGroup.getInserting()) {
                    composerStartRestartGroup.createNode(c0291f);
                } else {
                    composerStartRestartGroup.useNode();
                }
                Composer composerM81constructorimpl = Updater.m81constructorimpl(composerStartRestartGroup);
                Updater.m89setimpl(composerM81constructorimpl, interfaceC0245a0, C0293g.f2379f);
                Updater.m89setimpl(composerM81constructorimpl, currentCompositionLocalMap, C0293g.f2378e);
                Updater.m86initimpl(composerM81constructorimpl, Integer.valueOf(iHashCode), C0293g.f2380g);
                Updater.m87reconcileimpl(composerM81constructorimpl, C0293g.f2381h);
                Updater.m89setimpl(composerM81constructorimpl, interfaceC2255sC, C0293g.f2377d);
                composableLambdaComposableLambdaInstance.invoke(composerStartRestartGroup, 0);
                composerStartRestartGroup.endNode();
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
            }
        } else {
            composerStartRestartGroup.skipToGroupEnd();
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new X(interfaceC2255s, interfaceC0063h, interfaceC0067j, c0056d0, composableLambda, i6, 0));
        }
    }

    public static final void c(InterfaceC2255s interfaceC2255s, final InterfaceC0063h interfaceC0063h, final InterfaceC0067j interfaceC0067j, C2246j c2246j, int i6, int i7, final ComposableLambda composableLambda, Composer composer, final int i8, final int i9) {
        int i10;
        final InterfaceC2255s interfaceC2255s2;
        final int i11;
        Composer composer2;
        final int i12;
        Composer composerStartRestartGroup = composer.startRestartGroup(-1303174015);
        int i13 = i9 & 1;
        if (i13 != 0) {
            i10 = i8 | 6;
        } else if ((i8 & 6) == 0) {
            i10 = (composerStartRestartGroup.changed(interfaceC2255s) ? 4 : 2) | i8;
        } else {
            i10 = i8;
        }
        if ((i8 & 48) == 0) {
            i10 |= composerStartRestartGroup.changed(interfaceC0063h) ? 32 : 16;
        }
        if ((i8 & RendererCapabilities.DECODER_SUPPORT_MASK) == 0) {
            i10 |= composerStartRestartGroup.changed(interfaceC0067j) ? 256 : 128;
        }
        int i14 = i10 | 224256;
        if ((i8 & 1572864) == 0) {
            i14 |= composerStartRestartGroup.changedInstance(composableLambda) ? ProgressiveMediaSource.DEFAULT_LOADING_CHECK_INTERVAL_BYTES : 524288;
        }
        if (composerStartRestartGroup.shouldExecute((599187 & i14) != 599186, i14 & 1)) {
            if (i13 != 0) {
                interfaceC2255s = C2252p.f18820a;
            }
            interfaceC2255s2 = interfaceC2255s;
            c2246j = C2239c.f18802m;
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1303174015, i14, -1, "androidx.compose.foundation.layout.FlowRow (FlowLayout.kt:162)");
            }
            b(interfaceC2255s2, interfaceC0063h, interfaceC0067j, C0056d0.l, composableLambda, composerStartRestartGroup, (i14 & 14) | 1572864 | (i14 & 112) | (i14 & 896) | (i14 & 7168) | (57344 & i14) | (458752 & i14) | ((i14 << 3) & 29360128));
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
            i11 = Integer.MAX_VALUE;
            composer2 = composerStartRestartGroup;
            i12 = Integer.MAX_VALUE;
        } else {
            composerStartRestartGroup.skipToGroupEnd();
            interfaceC2255s2 = interfaceC2255s;
            i11 = i6;
            composer2 = composerStartRestartGroup;
            i12 = i7;
        }
        final C2246j c2246j2 = c2246j;
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composer2.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new J4.e() { // from class: B.W
                @Override // J4.e
                public final Object invoke(Object obj, Object obj2) {
                    ((Integer) obj2).getClass();
                    int iUpdateChangedFlags = RecomposeScopeImplKt.updateChangedFlags(i8 | 1);
                    InterfaceC0063h interfaceC0063h2 = interfaceC0063h;
                    ComposableLambda composableLambda2 = composableLambda;
                    AbstractC0057e.c(interfaceC2255s2, interfaceC0063h2, interfaceC0067j, c2246j2, i11, i12, composableLambda2, (Composer) obj, iUpdateChangedFlags, i9);
                    return C3137A.f25453a;
                }
            });
        }
    }

    public static J0 d(float f6, float f7, int i6) {
        if ((i6 & 1) != 0) {
            f6 = 0;
        }
        if ((i6 & 2) != 0) {
            f7 = 0;
        }
        return new J0(f6, f7, f6, f7);
    }

    public static final J0 e(float f6, float f7, float f8, float f9) {
        return new J0(f6, f7, f8, f9);
    }

    public static J0 f(float f6, float f7, float f8, float f9, int i6) {
        if ((i6 & 1) != 0) {
            f6 = 0;
        }
        if ((i6 & 2) != 0) {
            f7 = 0;
        }
        if ((i6 & 4) != 0) {
            f8 = 0;
        }
        if ((i6 & 8) != 0) {
            f9 = 0;
        }
        return new J0(f6, f7, f8, f9);
    }

    public static final void g(InterfaceC2255s interfaceC2255s, Composer composer, int i6) {
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventStart(-72882467, i6, -1, "androidx.compose.foundation.layout.Spacer (Spacer.kt:37)");
        }
        r rVar = r.f363c;
        int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer, 0));
        InterfaceC2255s interfaceC2255sC = AbstractC2237a.c(composer, interfaceC2255s);
        CompositionLocalMap currentCompositionLocalMap = composer.getCurrentCompositionLocalMap();
        InterfaceC0295h.f2384g.getClass();
        C0291f c0291f = C0293g.f2375b;
        if (composer.getApplier() == null) {
            ComposablesKt.invalidApplier();
        }
        composer.startReusableNode();
        if (composer.getInserting()) {
            composer.createNode(c0291f);
        } else {
            composer.useNode();
        }
        Composer composerM81constructorimpl = Updater.m81constructorimpl(composer);
        Updater.m89setimpl(composerM81constructorimpl, rVar, C0293g.f2379f);
        Updater.m89setimpl(composerM81constructorimpl, currentCompositionLocalMap, C0293g.f2378e);
        Updater.m87reconcileimpl(composerM81constructorimpl, C0293g.f2381h);
        Updater.m89setimpl(composerM81constructorimpl, interfaceC2255sC, C0293g.f2377d);
        Updater.m86initimpl(composerM81constructorimpl, Integer.valueOf(iHashCode), C0293g.f2380g);
        composer.endNode();
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventEnd();
        }
    }

    public static final C0076n0 i(C0051b c0051b, Composer composer) {
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventStart(-1485016250, 0, -1, "androidx.compose.foundation.layout.asPaddingValues (WindowInsets.kt:221)");
        }
        C0076n0 c0076n0 = new C0076n0(c0051b, (h1.c) composer.consume(AbstractC0391w0.f3100h));
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventEnd();
        }
        return c0076n0;
    }

    public static final InterfaceC2255s j(InterfaceC2255s interfaceC2255s, float f6, boolean z6) {
        return interfaceC2255s.then(new C0071l(f6, z6));
    }

    public static final float l(H0 h0, h1.m mVar) {
        return mVar == h1.m.f16628a ? h0.d(mVar) : h0.b(mVar);
    }

    public static final float m(H0 h0, h1.m mVar) {
        return mVar == h1.m.f16628a ? h0.b(mVar) : h0.d(mVar);
    }

    public static long n(long j4, EnumC0091v0 enumC0091v0) {
        EnumC0091v0 enumC0091v02 = EnumC0091v0.f389a;
        return h1.b.a(enumC0091v0 == enumC0091v02 ? C2069a.j(j4) : C2069a.i(j4), enumC0091v0 == enumC0091v02 ? C2069a.h(j4) : C2069a.g(j4), enumC0091v0 == enumC0091v02 ? C2069a.i(j4) : C2069a.j(j4), enumC0091v0 == enumC0091v02 ? C2069a.g(j4) : C2069a.h(j4));
    }

    public static long o(int i6, long j4) {
        return h1.b.a(0, C2069a.h(j4), (i6 & 4) != 0 ? C2069a.i(j4) : 0, C2069a.g(j4));
    }

    public static final M0 p(InterfaceC0273s interfaceC0273s) {
        Object objS = interfaceC0273s.S();
        if (objS instanceof M0) {
            return (M0) objS;
        }
        return null;
    }

    public static final float q(M0 m02) {
        if (m02 != null) {
            return m02.f154a;
        }
        return 0.0f;
    }

    public static final InterfaceC2255s r(InterfaceC2255s interfaceC2255s, EnumC0083r0 enumC0083r0) {
        return interfaceC2255s.then(new C0080p0(enumC0083r0));
    }

    public static final boolean s(int i6, int i7, long j4) {
        int iJ = C2069a.j(j4);
        if (i6 > C2069a.h(j4) || iJ > i6) {
            return false;
        }
        return i7 <= C2069a.g(j4) && C2069a.i(j4) <= i7;
    }

    /* JADX WARN: Removed duplicated region for block: B:16:0x0049  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final InterfaceC0247b0 t(L0 l02, int i6, int i7, int i8, int i9, int i10, InterfaceC0249c0 interfaceC0249c0, List list, G0.q0[] q0VarArr, int i11, int i12, int[] iArr, int i13) {
        boolean z6;
        int i14;
        int i15;
        float f6;
        boolean z7;
        int iMax;
        int i16;
        int i17;
        int i18;
        int i19;
        List list2 = list;
        long j4 = i10;
        int i20 = i12 - i11;
        int[] iArr2 = new int[i20];
        int i21 = i11;
        int iMax2 = 0;
        int i22 = 0;
        boolean z8 = false;
        int i23 = 0;
        int iMin = 0;
        float f7 = 0.0f;
        while (true) {
            z6 = true;
            if (i21 >= i12) {
                break;
            }
            G0.Z z9 = (G0.Z) list2.get(i21);
            long j6 = j4;
            M0 m0P = p(z9);
            float fQ = q(m0P);
            if (z8) {
                z8 = true;
            } else {
                AbstractC0057e abstractC0057e = m0P != null ? m0P.f156c : null;
                if (!(abstractC0057e != null ? abstractC0057e instanceof I : false)) {
                    z8 = false;
                }
            }
            if (fQ > 0.0f) {
                f7 += fQ;
                i22++;
                i17 = i21;
            } else {
                int i24 = i8 - i23;
                G0.q0 q0VarQ = q0VarArr[i21];
                if (q0VarQ == null) {
                    if (i8 == Integer.MAX_VALUE) {
                        i17 = i21;
                        i18 = i22;
                        i19 = Integer.MAX_VALUE;
                    } else {
                        i17 = i21;
                        i18 = i22;
                        i19 = i24 < 0 ? 0 : i24;
                    }
                    q0VarQ = z9.Q(l02.c(0, i19, i9, false));
                } else {
                    i17 = i21;
                    i18 = i22;
                }
                int iB = l02.b(q0VarQ);
                int iD = l02.d(q0VarQ);
                iArr2[i17 - i11] = iB;
                int i25 = i24 - iB;
                if (i25 < 0) {
                    i25 = 0;
                }
                iMin = Math.min(i10, i25);
                i23 += iB + iMin;
                iMax2 = Math.max(iMax2, iD);
                q0VarArr[i17] = q0VarQ;
                i22 = i18;
            }
            i21 = i17 + 1;
            j4 = j6;
        }
        long j7 = j4;
        int i26 = i22;
        if (i26 == 0) {
            i23 -= iMin;
            i14 = 0;
        } else {
            long j8 = ((long) (i26 - 1)) * j7;
            long jRound = ((long) ((i8 != Integer.MAX_VALUE ? i8 : i6) - i23)) - j8;
            if (jRound < 0) {
                jRound = 0;
            }
            float f8 = jRound / f7;
            int i27 = i11;
            while (i27 < i12) {
                jRound -= (long) Math.round(q(p((G0.Z) list2.get(i27))) * f8);
                i27++;
                j8 = j8;
            }
            long j9 = j8;
            int i28 = i11;
            int i29 = 0;
            while (i28 < i12) {
                if (q0VarArr[i28] == null) {
                    G0.Z z10 = (G0.Z) list2.get(i28);
                    M0 m0P2 = p(z10);
                    float fQ2 = q(m0P2);
                    if (!(fQ2 > 0.0f ? z6 : false)) {
                        C.a.b("All weights <= 0 should have placeables");
                    }
                    i15 = i28;
                    int iSignum = Long.signum(jRound);
                    f6 = f8;
                    jRound -= (long) iSignum;
                    int iMax3 = Math.max(0, Math.round(f6 * fQ2) + iSignum);
                    z7 = z6;
                    G0.q0 q0VarQ2 = z10.Q(l02.c((!(m0P2 != null ? m0P2.f155b : z6) || iMax3 == Integer.MAX_VALUE) ? 0 : iMax3, iMax3, i9, z7));
                    int iB2 = l02.b(q0VarQ2);
                    int iD2 = l02.d(q0VarQ2);
                    iArr2[i15 - i11] = iB2;
                    i29 += iB2;
                    int iMax4 = Math.max(iMax2, iD2);
                    q0VarArr[i15] = q0VarQ2;
                    iMax2 = iMax4;
                } else {
                    i15 = i28;
                    f6 = f8;
                    z7 = z6;
                }
                list2 = list;
                z6 = z7;
                i28 = i15 + 1;
                f8 = f6;
            }
            i14 = (int) (((long) i29) + j9);
            int i30 = i8 - i23;
            if (i14 < 0) {
                i14 = 0;
            }
            if (i14 > i30) {
                i14 = i30;
            }
        }
        if (z8) {
            int iMax5 = 0;
            iMax = 0;
            for (int i31 = i11; i31 < i12; i31++) {
                G0.q0 q0Var = q0VarArr[i31];
                kotlin.jvm.internal.o.e(q0Var);
                Object objS = q0Var.S();
                M0 m02 = objS instanceof M0 ? (M0) objS : null;
                AbstractC0057e abstractC0057e2 = m02 != null ? m02.f156c : null;
                Integer numK = abstractC0057e2 != null ? abstractC0057e2.k(q0Var) : null;
                if (numK != null) {
                    int iIntValue = numK.intValue();
                    int iD3 = l02.d(q0Var);
                    iMax5 = Math.max(iMax5, iIntValue != Integer.MIN_VALUE ? numK.intValue() : 0);
                    if (iIntValue == Integer.MIN_VALUE) {
                        iIntValue = iD3;
                    }
                    iMax = Math.max(iMax, iD3 - iIntValue);
                }
            }
            i16 = iMax5;
        } else {
            iMax = 0;
            i16 = 0;
        }
        int i32 = i23 + i14;
        int iMax6 = Math.max(i32 < 0 ? 0 : i32, i6);
        int iMax7 = Math.max(iMax2, Math.max(i7, iMax + i16));
        int[] iArr3 = new int[i20];
        l02.a(iMax6, iArr2, iArr3, interfaceC0249c0);
        return l02.e(q0VarArr, interfaceC0249c0, i16, iArr3, iMax6, iMax7, iArr, i13, i11, i12);
    }

    public static final void u(G0.Z z6, C0054c0 c0054c0, long j4, J4.c cVar) {
        if (q(p(z6)) != 0.0f) {
            c0054c0.getClass();
            z6.j0(z6.G(Integer.MAX_VALUE));
            return;
        }
        p(z6);
        G0.q0 q0VarQ = z6.Q(j4);
        cVar.invoke(q0VarQ);
        c0054c0.getClass();
        q0VarQ.q0();
        q0VarQ.n0();
    }

    public static final InterfaceC2255s v(InterfaceC2255s interfaceC2255s) {
        return O(interfaceC2255s, new h1(0));
    }

    public static final InterfaceC2255s w(InterfaceC2255s interfaceC2255s, float f6, float f7) {
        return interfaceC2255s.then(new C0099z0(f6, f7, new A0(f6, f7, 0)));
    }

    public static InterfaceC2255s x(InterfaceC2255s interfaceC2255s, float f6, float f7, int i6) {
        if ((i6 & 1) != 0) {
            f6 = 0;
        }
        if ((i6 & 2) != 0) {
            f7 = 0;
        }
        return w(interfaceC2255s, f6, f7);
    }

    public static final InterfaceC2255s y(InterfaceC2255s interfaceC2255s, J4.c cVar) {
        return interfaceC2255s.then(new G(cVar));
    }

    public static final C0097y0 z(e1 e1Var, int i6) {
        return new C0097y0(e1Var, i6);
    }

    public abstract int h(int i6, int i7, h1.m mVar, G0.q0 q0Var, int i8);

    public Integer k(G0.q0 q0Var) {
        return null;
    }
}
