package K;

import C0.C0100a;
import D.C0135f;
import G0.InterfaceC0279y;
import I0.C0291f;
import I0.C0293g;
import I0.InterfaceC0295h;
import I2.C0327k;
import J0.AbstractC0391w0;
import T0.AbstractC0597h;
import T0.C0594e;
import T0.C0596g;
import X0.InterfaceC0807u;
import android.text.Spanned;
import android.view.KeyEvent;
import androidx.compose.runtime.ComposablesKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionLocalMap;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.ProvidableCompositionLocal;
import androidx.compose.runtime.RecomposeScopeImplKt;
import androidx.compose.runtime.ScopeUpdateScope;
import androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt;
import androidx.compose.runtime.Updater;
import androidx.compose.runtime.internal.ComposableLambda;
import androidx.media3.exoplayer.RendererCapabilities;
import androidx.media3.exoplayer.analytics.AnalyticsListener;
import androidx.media3.exoplayer.source.ProgressiveMediaSource;
import i0.AbstractC2237a;
import i0.C2252p;
import i0.InterfaceC2255s;
import java.text.BreakIterator;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executor;
import java.util.concurrent.RejectedExecutionException;
import o0.C2632c;
import w4.C3137A;

/* JADX INFO: renamed from: K.g0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC0454g0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final C0448d0 f3864a = new C0448d0(1);

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final C0100a f3865b = new C0100a(AnalyticsListener.EVENT_DRM_SESSION_ACQUIRED);

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:121:0x020d  */
    /* JADX WARN: Removed duplicated region for block: B:124:0x021c  */
    /* JADX WARN: Removed duplicated region for block: B:129:0x022c  */
    /* JADX WARN: Removed duplicated region for block: B:134:0x024f  */
    /* JADX WARN: Removed duplicated region for block: B:138:0x02a6  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void a(final C0596g c0596g, final InterfaceC2255s interfaceC2255s, final T0.O o6, final J4.c cVar, final int i6, final boolean z6, final int i7, final int i8, final x4.z zVar, Composer composer, final int i9, final int i10) {
        int i11;
        T0.O o7;
        int i12;
        boolean z7;
        int i13;
        Composer composer2;
        int i14;
        int i15;
        boolean z8;
        InterfaceC0807u interfaceC0807u;
        boolean z9;
        Object objRememberedValue;
        MutableState mutableState;
        boolean zChanged;
        Object objRememberedValue2;
        Composer composerStartRestartGroup = composer.startRestartGroup(-1343466571);
        if ((i9 & 6) == 0) {
            i11 = (composerStartRestartGroup.changed(c0596g) ? 4 : 2) | i9;
        } else {
            i11 = i9;
        }
        if ((i9 & 48) == 0) {
            i11 |= composerStartRestartGroup.changed(interfaceC2255s) ? 32 : 16;
        }
        if ((i9 & RendererCapabilities.DECODER_SUPPORT_MASK) == 0) {
            o7 = o6;
            i11 |= composerStartRestartGroup.changed(o7) ? 256 : 128;
        } else {
            o7 = o6;
        }
        if ((i9 & 3072) == 0) {
            i11 |= composerStartRestartGroup.changedInstance(cVar) ? 2048 : 1024;
        }
        if ((i9 & 24576) == 0) {
            i12 = i6;
            i11 |= composerStartRestartGroup.changed(i12) ? 16384 : 8192;
        } else {
            i12 = i6;
        }
        if ((196608 & i9) == 0) {
            z7 = z6;
            i11 |= composerStartRestartGroup.changed(z7) ? 131072 : androidx.media3.common.C.DEFAULT_BUFFER_SEGMENT_SIZE;
        } else {
            z7 = z6;
        }
        if ((i9 & 1572864) == 0) {
            i11 |= composerStartRestartGroup.changed(i7) ? ProgressiveMediaSource.DEFAULT_LOADING_CHECK_INTERVAL_BYTES : 524288;
        }
        if ((i9 & 12582912) == 0) {
            i11 |= composerStartRestartGroup.changed(i8) ? 8388608 : 4194304;
        }
        if ((i9 & 100663296) == 0) {
            i11 |= composerStartRestartGroup.changedInstance(zVar) ? 67108864 : 33554432;
        }
        int i16 = i11 | 805306368;
        if ((i10 & 6) == 0) {
            i13 = i10 | ((i10 & 8) == 0 ? composerStartRestartGroup.changed((Object) null) : composerStartRestartGroup.changedInstance(null) ? 4 : 2);
        } else {
            i13 = i10;
        }
        if (composerStartRestartGroup.shouldExecute(((i16 & 306783379) == 306783378 && (i13 & 3) == 2) ? false : true, i16 & 1)) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1343466571, i16, i13, "androidx.compose.foundation.text.BasicText (BasicText.kt:200)");
            }
            q(i8, i7);
            if (composerStartRestartGroup.consume(V.S.f7002a) != null) {
                throw new ClassCastException();
            }
            composerStartRestartGroup.startReplaceGroup(1588759409);
            composerStartRestartGroup.endReplaceGroup();
            w4.k kVar = AbstractC0457i.f3873a;
            int length = c0596g.f6510b.length();
            List list = c0596g.f6509a;
            if (list != null) {
                int size = list.size();
                int i17 = 0;
                while (i17 < size) {
                    i14 = i13;
                    C0594e c0594e = (C0594e) list.get(i17);
                    if (c0594e.f6503a instanceof T0.I) {
                        i15 = i16;
                        if ("androidx.compose.foundation.text.inlineContent".equals(c0594e.f6506d) && AbstractC0597h.b(0, length, c0594e.f6504b, c0594e.f6505c)) {
                            z8 = true;
                            break;
                        }
                    } else {
                        i15 = i16;
                    }
                    i17++;
                    i16 = i15;
                    i13 = i14;
                }
                i14 = i13;
                i15 = i16;
                z8 = false;
                boolean zU = android.support.v4.media.session.b.u(c0596g);
                interfaceC0807u = (InterfaceC0807u) composerStartRestartGroup.consume(AbstractC0391w0.f3103k);
                if (!z8 || zU) {
                    composer2 = composerStartRestartGroup;
                    composer2.startReplaceGroup(1590022070);
                    z9 = (i15 & 14) == 4;
                    objRememberedValue = composer2.rememberedValue();
                    if (!z9 || objRememberedValue == Composer.Companion.getEmpty()) {
                        objRememberedValue = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(c0596g, null, 2, null);
                        composer2.updateRememberedValue(objRememberedValue);
                    }
                    mutableState = (MutableState) objRememberedValue;
                    C0596g c0596g2 = (C0596g) mutableState.getValue();
                    zChanged = composer2.changed(mutableState);
                    objRememberedValue2 = composer2.rememberedValue();
                    if (!zChanged || objRememberedValue2 == Composer.Companion.getEmpty()) {
                        objRememberedValue2 = new C0473q(mutableState, 0);
                        composer2.updateRememberedValue(objRememberedValue2);
                    }
                    int i18 = i15 << 6;
                    e(interfaceC2255s, c0596g2, cVar, z8, zVar, o6, i6, z6, i7, i8, interfaceC0807u, (J4.c) objRememberedValue2, composer2, ((i15 >> 3) & 910) | ((i15 >> 12) & 57344) | ((i15 << 9) & 458752) | (3670016 & i18) | (29360128 & i18) | (234881024 & i18) | (i18 & 1879048192), ((i15 >> 21) & 896) | ((i14 << 12) & 57344));
                    composer2.endReplaceGroup();
                } else {
                    composerStartRestartGroup.startReplaceGroup(1589006262);
                    AbstractC0486x.a(c0596g, o7, interfaceC0807u, null, composerStartRestartGroup, (i15 & 14) | 3072 | ((i15 >> 3) & 112));
                    composer2 = composerStartRestartGroup;
                    InterfaceC2255s interfaceC2255sP = p(interfaceC2255s, c0596g, o6, cVar, i12, z7, i7, i8, interfaceC0807u, null, null, null);
                    C0455h c0455h = C0455h.f3867c;
                    int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer2, 0));
                    InterfaceC2255s interfaceC2255sC = AbstractC2237a.c(composer2, interfaceC2255sP);
                    CompositionLocalMap currentCompositionLocalMap = composer2.getCurrentCompositionLocalMap();
                    InterfaceC0295h.f2384g.getClass();
                    C0291f c0291f = C0293g.f2375b;
                    if (composer2.getApplier() == null) {
                        ComposablesKt.invalidApplier();
                    }
                    composer2.startReusableNode();
                    if (composer2.getInserting()) {
                        composer2.createNode(c0291f);
                    } else {
                        composer2.useNode();
                    }
                    Composer composerM81constructorimpl = Updater.m81constructorimpl(composer2);
                    Updater.m89setimpl(composerM81constructorimpl, c0455h, 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);
                    composer2.endNode();
                    composer2.endReplaceGroup();
                }
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
            } else {
                i14 = i13;
                i15 = i16;
                z8 = false;
                boolean zU2 = android.support.v4.media.session.b.u(c0596g);
                interfaceC0807u = (InterfaceC0807u) composerStartRestartGroup.consume(AbstractC0391w0.f3103k);
                if (z8) {
                    composer2 = composerStartRestartGroup;
                    composer2.startReplaceGroup(1590022070);
                    if ((i15 & 14) == 4) {
                    }
                    objRememberedValue = composer2.rememberedValue();
                    if (!z9) {
                        objRememberedValue = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(c0596g, null, 2, null);
                        composer2.updateRememberedValue(objRememberedValue);
                        mutableState = (MutableState) objRememberedValue;
                        C0596g c0596g22 = (C0596g) mutableState.getValue();
                        zChanged = composer2.changed(mutableState);
                        objRememberedValue2 = composer2.rememberedValue();
                        if (!zChanged) {
                            objRememberedValue2 = new C0473q(mutableState, 0);
                            composer2.updateRememberedValue(objRememberedValue2);
                            int i182 = i15 << 6;
                            e(interfaceC2255s, c0596g22, cVar, z8, zVar, o6, i6, z6, i7, i8, interfaceC0807u, (J4.c) objRememberedValue2, composer2, ((i15 >> 3) & 910) | ((i15 >> 12) & 57344) | ((i15 << 9) & 458752) | (3670016 & i182) | (29360128 & i182) | (234881024 & i182) | (i182 & 1879048192), ((i15 >> 21) & 896) | ((i14 << 12) & 57344));
                            composer2.endReplaceGroup();
                            if (ComposerKt.isTraceInProgress()) {
                            }
                        }
                    }
                }
            }
        } else {
            composer2 = composerStartRestartGroup;
            composer2.skipToGroupEnd();
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composer2.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new J4.e() { // from class: K.r
                @Override // J4.e
                public final Object invoke(Object obj, Object obj2) {
                    ((Integer) obj2).getClass();
                    int iUpdateChangedFlags = RecomposeScopeImplKt.updateChangedFlags(i9 | 1);
                    int iUpdateChangedFlags2 = RecomposeScopeImplKt.updateChangedFlags(i10);
                    int i19 = i8;
                    x4.z zVar2 = zVar;
                    AbstractC0454g0.a(c0596g, interfaceC2255s, o6, cVar, i6, z6, i7, i19, zVar2, (Composer) obj, iUpdateChangedFlags, iUpdateChangedFlags2);
                    return C3137A.f25453a;
                }
            });
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:120:0x01ad A[Catch: RejectedExecutionException -> 0x0203, TryCatch #0 {RejectedExecutionException -> 0x0203, blocks: (B:118:0x01a7, B:124:0x01b5, B:126:0x01c7, B:132:0x01d5, B:134:0x01e7, B:137:0x01fe, B:136:0x01ef, B:128:0x01cd, B:120:0x01ad), top: B:165:0x01a7 }] */
    /* JADX WARN: Removed duplicated region for block: B:122:0x01b1  */
    /* JADX WARN: Removed duplicated region for block: B:159:0x02d4  */
    /* JADX WARN: Removed duplicated region for block: B:162:0x02e3  */
    /* JADX WARN: Removed duplicated region for block: B:167:? A[RETURN, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:37:0x0067  */
    /* JADX WARN: Removed duplicated region for block: B:38:0x006e  */
    /* JADX WARN: Removed duplicated region for block: B:48:0x008c  */
    /* JADX WARN: Removed duplicated region for block: B:49:0x0091  */
    /* JADX WARN: Removed duplicated region for block: B:58:0x00aa  */
    /* JADX WARN: Removed duplicated region for block: B:65:0x00bc  */
    /* JADX WARN: Removed duplicated region for block: B:66:0x00c1  */
    /* JADX WARN: Removed duplicated region for block: B:75:0x00dd  */
    /* JADX WARN: Removed duplicated region for block: B:77:0x00e4  */
    /* JADX WARN: Removed duplicated region for block: B:89:0x010a  */
    /* JADX WARN: Removed duplicated region for block: B:90:0x010d  */
    /* JADX WARN: Removed duplicated region for block: B:93:0x0116  */
    /* JADX WARN: Type inference failed for: r0v43 */
    /* JADX WARN: Type inference failed for: r0v5 */
    /* JADX WARN: Type inference failed for: r0v6, types: [boolean] */
    /* JADX WARN: Type inference failed for: r11v4 */
    /* JADX WARN: Type inference failed for: r11v5 */
    /* JADX WARN: Type inference failed for: r11v7 */
    /* JADX WARN: Type inference failed for: r14v0, types: [androidx.compose.runtime.Composer] */
    /* JADX WARN: Type inference failed for: r5v10, types: [boolean] */
    /* JADX WARN: Type inference failed for: r5v13 */
    /* JADX WARN: Type inference failed for: r5v14 */
    /* JADX WARN: Type inference failed for: r5v7, types: [boolean] */
    /* JADX WARN: Type inference failed for: r5v8 */
    /* JADX WARN: Type inference failed for: r6v13 */
    /* JADX WARN: Type inference failed for: r6v14, types: [boolean] */
    /* JADX WARN: Type inference failed for: r6v21 */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void b(final String str, final InterfaceC2255s interfaceC2255s, final T0.O o6, J4.c cVar, int i6, boolean z6, final int i7, int i8, Composer composer, final int i9, final int i10) {
        int i11;
        J4.c cVar2;
        int i12;
        int i13;
        int i14;
        int i15;
        int i16;
        int i17;
        final ?? r6;
        final int i18;
        final J4.c cVar3;
        final int i19;
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup;
        int i20;
        int i21;
        int i22;
        J4.c cVar4;
        int i23;
        InterfaceC2255s interfaceC2255sP;
        ?? r5;
        ?? StartRestartGroup = composer.startRestartGroup(-1040751001);
        if ((i9 & 6) == 0) {
            i11 = (StartRestartGroup.changed(str) ? 4 : 2) | i9;
        } else {
            i11 = i9;
        }
        if ((i9 & 48) == 0) {
            i11 |= StartRestartGroup.changed(interfaceC2255s) ? 32 : 16;
        }
        if ((i9 & RendererCapabilities.DECODER_SUPPORT_MASK) == 0) {
            i11 |= StartRestartGroup.changed(o6) ? 256 : 128;
        }
        int i24 = i10 & 8;
        if (i24 == 0) {
            if ((i9 & 3072) == 0) {
                cVar2 = cVar;
                i11 |= StartRestartGroup.changedInstance(cVar2) ? 2048 : 1024;
            }
            i12 = 16 & i10;
            if (i12 == 0) {
                i11 |= 24576;
                i13 = 1;
            } else {
                i13 = 1;
                if ((i9 & 24576) == 0) {
                    i11 |= StartRestartGroup.changed(i6) ? 16384 : 8192;
                }
            }
            i14 = i10 & 32;
            if (i14 == 0) {
                i11 |= 196608;
            } else if ((i9 & 196608) == 0) {
                i11 |= StartRestartGroup.changed(z6) ? 131072 : androidx.media3.common.C.DEFAULT_BUFFER_SEGMENT_SIZE;
            }
            if ((i9 & 1572864) == 0) {
                i11 |= StartRestartGroup.changed(i7) ? ProgressiveMediaSource.DEFAULT_LOADING_CHECK_INTERVAL_BYTES : 524288;
            }
            i15 = 128 & i10;
            if (i15 == 0) {
                i11 |= 12582912;
                i16 = i8;
            } else {
                i16 = i8;
                if ((i9 & 12582912) == 0) {
                    i11 |= StartRestartGroup.changed(i16) ? 8388608 : 4194304;
                }
            }
            int i25 = i11 | 100663296;
            if ((i10 & 512) == 0) {
                i25 = i11 | 905969664;
            } else if ((805306368 & i9) == 0) {
                i25 |= (1073741824 & i9) == 0 ? StartRestartGroup.changed(null) : StartRestartGroup.changedInstance(null) ? androidx.media3.common.C.BUFFER_FLAG_LAST_SAMPLE : 268435456;
            }
            i17 = i25;
            if (StartRestartGroup.shouldExecute((306783379 & i17) == 306783378 ? i13 : 0, i17 & 1)) {
                StartRestartGroup.skipToGroupEnd();
                r6 = z6;
                i18 = i16;
                cVar3 = cVar2;
                i19 = i6;
            } else {
                if (i24 != 0) {
                    cVar2 = null;
                }
                int i26 = i12 != 0 ? i13 : i6;
                ?? r11 = i14 != 0 ? i13 : z6;
                int i27 = i15 != 0 ? i13 : i16;
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventStart(-1040751001, i17, -1, "androidx.compose.foundation.text.BasicText (BasicText.kt:102)");
                }
                q(i27, i7);
                if (StartRestartGroup.consume(V.S.f7002a) != null) {
                    throw new ClassCastException();
                }
                StartRestartGroup.startReplaceGroup(356914239);
                StartRestartGroup.endReplaceGroup();
                InterfaceC0807u interfaceC0807u = (InterfaceC0807u) StartRestartGroup.consume(AbstractC0391w0.f3103k);
                int i28 = (i17 & 14) | ((i17 >> 3) & 112);
                ProvidableCompositionLocal providableCompositionLocal = AbstractC0486x.f4016a;
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventStart(1589371739, i28, -1, "androidx.compose.foundation.text.BackgroundTextMeasurement (BasicText.android.kt:68)");
                }
                Executor executor = (Executor) StartRestartGroup.consume(AbstractC0486x.f4016a);
                if (executor == null || !AbstractC0486x.b(str.length())) {
                    i20 = i27;
                    StartRestartGroup.startReplaceGroup(1250991751);
                } else {
                    StartRestartGroup.startReplaceGroup(1254274527);
                    h1.m mVar = (h1.m) StartRestartGroup.consume(AbstractC0391w0.f3105n);
                    h1.c cVar5 = (h1.c) StartRestartGroup.consume(AbstractC0391w0.f3100h);
                    i20 = i27;
                    if (((i28 & 112) ^ 48) > 32) {
                        try {
                            if (!StartRestartGroup.changed(o6)) {
                                int i29 = (i28 & 48) == 32 ? i13 : 0;
                                int i30 = i29 | (StartRestartGroup.changed(mVar.ordinal()) ? 1 : 0) | (((((i28 & 14) ^ 6) <= 4 || !StartRestartGroup.changed(str)) && (i28 & 6) != 4) ? 0 : i13) | (StartRestartGroup.changed(cVar5) ? 1 : 0) | (StartRestartGroup.changedInstance(interfaceC0807u) ? 1 : 0);
                                Object objRememberedValue = StartRestartGroup.rememberedValue();
                                if (i30 != 0 || objRememberedValue == Composer.Companion.getEmpty()) {
                                    RunnableC0484w runnableC0484w = new RunnableC0484w(o6, mVar, str, cVar5, interfaceC0807u, 0);
                                    StartRestartGroup.updateRememberedValue(runnableC0484w);
                                    objRememberedValue = runnableC0484w;
                                }
                                executor.execute((Runnable) objRememberedValue);
                            }
                        } catch (RejectedExecutionException unused) {
                        }
                    }
                }
                StartRestartGroup.endReplaceGroup();
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
                if (cVar2 == null) {
                    StartRestartGroup.startReplaceGroup(357875859);
                    StartRestartGroup.endReplaceGroup();
                    i21 = i26;
                    ?? r52 = r11;
                    i22 = i20;
                    interfaceC2255sP = interfaceC2255s.then(new U.j(str, o6, interfaceC0807u, i21, r52, i7, i22));
                    cVar4 = cVar2;
                    i23 = 0;
                    r5 = r52;
                } else {
                    i21 = i26;
                    ?? r53 = r11;
                    i22 = i20;
                    StartRestartGroup.startReplaceGroup(357232113);
                    cVar4 = cVar2;
                    i23 = 0;
                    interfaceC2255sP = p(interfaceC2255s, new C0596g(str), o6, cVar4, i21, r53, i7, i22, (InterfaceC0807u) StartRestartGroup.consume(AbstractC0391w0.f3103k), null, null, null);
                    StartRestartGroup.endReplaceGroup();
                    r5 = r53;
                }
                C0455h c0455h = C0455h.f3867c;
                int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(StartRestartGroup, i23));
                InterfaceC2255s interfaceC2255sC = AbstractC2237a.c(StartRestartGroup, interfaceC2255sP);
                CompositionLocalMap currentCompositionLocalMap = StartRestartGroup.getCurrentCompositionLocalMap();
                InterfaceC0295h.f2384g.getClass();
                C0291f c0291f = C0293g.f2375b;
                if (StartRestartGroup.getApplier() == null) {
                    ComposablesKt.invalidApplier();
                }
                StartRestartGroup.startReusableNode();
                if (StartRestartGroup.getInserting()) {
                    StartRestartGroup.createNode(c0291f);
                } else {
                    StartRestartGroup.useNode();
                }
                Composer composerM81constructorimpl = Updater.m81constructorimpl(StartRestartGroup);
                Updater.m89setimpl(composerM81constructorimpl, c0455h, 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);
                StartRestartGroup.endNode();
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
                r6 = r5;
                i18 = i22;
                i19 = i21;
                cVar3 = cVar4;
            }
            scopeUpdateScopeEndRestartGroup = StartRestartGroup.endRestartGroup();
            if (scopeUpdateScopeEndRestartGroup == null) {
                scopeUpdateScopeEndRestartGroup.updateScope(new J4.e() { // from class: K.o
                    @Override // J4.e
                    public final Object invoke(Object obj, Object obj2) {
                        ((Integer) obj2).getClass();
                        int iUpdateChangedFlags = RecomposeScopeImplKt.updateChangedFlags(i9 | 1);
                        int i31 = i18;
                        AbstractC0454g0.b(str, interfaceC2255s, o6, cVar3, i19, r6, i7, i31, (Composer) obj, iUpdateChangedFlags, i10);
                        return C3137A.f25453a;
                    }
                });
                return;
            }
            return;
        }
        i11 |= 3072;
        cVar2 = cVar;
        i12 = 16 & i10;
        if (i12 == 0) {
        }
        i14 = i10 & 32;
        if (i14 == 0) {
        }
        if ((i9 & 1572864) == 0) {
        }
        i15 = 128 & i10;
        if (i15 == 0) {
        }
        int i252 = i11 | 100663296;
        if ((i10 & 512) == 0) {
        }
        i17 = i252;
        if (StartRestartGroup.shouldExecute((306783379 & i17) == 306783378 ? i13 : 0, i17 & 1)) {
        }
        scopeUpdateScopeEndRestartGroup = StartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup == null) {
        }
    }

    public static final void c(V.i0 i0Var, ComposableLambda composableLambda, Composer composer, int i6) {
        int i7;
        Composer composerStartRestartGroup = composer.startRestartGroup(1533506138);
        if ((i6 & 6) == 0) {
            i7 = (composerStartRestartGroup.changedInstance(i0Var) ? 4 : 2) | i6;
        } else {
            i7 = i6;
        }
        if ((i6 & 48) == 0) {
            i7 |= composerStartRestartGroup.changedInstance(composableLambda) ? 32 : 16;
        }
        if (composerStartRestartGroup.shouldExecute((i7 & 19) != 18, i7 & 1)) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(1533506138, i7, -1, "androidx.compose.foundation.text.CommonContextMenuArea (CommonContextMenuArea.kt:46)");
            }
            composerStartRestartGroup.startReplaceGroup(-885604480);
            e4.C.d(!i0Var.m() ? C2252p.f18820a : Q.i.d(Q.i.c(new V.X(i0Var, null)), i0Var.f7104y, new V.Y(i0Var, null), new V.Z(i0Var, null), new E(i0Var, 2)), composableLambda, composerStartRestartGroup, i7 & 112);
            composerStartRestartGroup.endReplaceGroup();
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        } else {
            composerStartRestartGroup.skipToGroupEnd();
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C0488y(i0Var, composableLambda, i6, 0));
        }
    }

    public static final void d(V.i0 i0Var, ComposableLambda composableLambda, Composer composer, int i6) {
        int i7;
        Composer composerStartRestartGroup = composer.startRestartGroup(2080741862);
        if ((i6 & 6) == 0) {
            i7 = (composerStartRestartGroup.changedInstance(i0Var) ? 4 : 2) | i6;
        } else {
            i7 = i6;
        }
        if ((i6 & 48) == 0) {
            i7 |= composerStartRestartGroup.changedInstance(composableLambda) ? 32 : 16;
        }
        if (composerStartRestartGroup.shouldExecute((i7 & 19) != 18, i7 & 1)) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(2080741862, i7, -1, "androidx.compose.foundation.text.ContextMenuArea (ContextMenu.android.kt:33)");
            }
            c(i0Var, composableLambda, composerStartRestartGroup, i7 & 126);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        } else {
            composerStartRestartGroup.skipToGroupEnd();
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C0488y(i0Var, composableLambda, i6, 1));
        }
    }

    public static final void e(final InterfaceC2255s interfaceC2255s, C0596g c0596g, final J4.c cVar, final boolean z6, final x4.z zVar, final T0.O o6, final int i6, final boolean z7, final int i7, final int i8, final InterfaceC0807u interfaceC0807u, final J4.c cVar2, Composer composer, final int i9, final int i10) {
        int i11;
        T0.O o7;
        int i12;
        V0 v02;
        int i13;
        J4.a aVar;
        w4.k kVar;
        List list;
        int i14;
        J4.c cVar3;
        MutableState mutableState;
        int i15;
        Object c0470o0;
        int i16;
        final C0596g c0596g2 = c0596g;
        Composer composerStartRestartGroup = composer.startRestartGroup(-2118572703);
        if ((i9 & 6) == 0) {
            i11 = (composerStartRestartGroup.changed(interfaceC2255s) ? 4 : 2) | i9;
        } else {
            i11 = i9;
        }
        if ((i9 & 48) == 0) {
            i11 |= composerStartRestartGroup.changed(c0596g2) ? 32 : 16;
        }
        if ((i9 & RendererCapabilities.DECODER_SUPPORT_MASK) == 0) {
            i11 |= composerStartRestartGroup.changedInstance(cVar) ? 256 : 128;
        }
        if ((i9 & 3072) == 0) {
            i11 |= composerStartRestartGroup.changed(z6) ? 2048 : 1024;
        }
        if ((i9 & 24576) == 0) {
            i11 |= composerStartRestartGroup.changedInstance(zVar) ? 16384 : 8192;
        }
        if ((196608 & i9) == 0) {
            o7 = o6;
            i11 |= composerStartRestartGroup.changed(o7) ? 131072 : androidx.media3.common.C.DEFAULT_BUFFER_SEGMENT_SIZE;
        } else {
            o7 = o6;
        }
        if ((i9 & 1572864) == 0) {
            i11 |= composerStartRestartGroup.changed(i6) ? ProgressiveMediaSource.DEFAULT_LOADING_CHECK_INTERVAL_BYTES : 524288;
        }
        int i17 = 1;
        if ((i9 & 12582912) == 0) {
            i11 |= composerStartRestartGroup.changed(z7) ? 8388608 : 4194304;
        }
        if ((i9 & 100663296) == 0) {
            i11 |= composerStartRestartGroup.changed(i7) ? 67108864 : 33554432;
        }
        if ((i9 & 805306368) == 0) {
            i11 |= composerStartRestartGroup.changed(i8) ? androidx.media3.common.C.BUFFER_FLAG_LAST_SAMPLE : 268435456;
        }
        if ((i10 & 6) == 0) {
            i12 = i10 | (composerStartRestartGroup.changedInstance(interfaceC0807u) ? 4 : 2);
        } else {
            i12 = i10;
        }
        if ((i10 & 48) == 0) {
            i12 |= composerStartRestartGroup.changedInstance(null) ? 32 : 16;
        }
        if ((i10 & RendererCapabilities.DECODER_SUPPORT_MASK) == 0) {
            i12 |= composerStartRestartGroup.changedInstance(null) ? 256 : 128;
        }
        if ((i10 & 3072) == 0) {
            i12 |= composerStartRestartGroup.changedInstance(cVar2) ? 2048 : 1024;
        }
        if ((i10 & 24576) == 0) {
            i12 |= (32768 & i10) == 0 ? composerStartRestartGroup.changed((Object) null) : composerStartRestartGroup.changedInstance(null) ? 16384 : 8192;
        }
        int i18 = i12;
        if (composerStartRestartGroup.shouldExecute(((i11 & 306783379) == 306783378 && (i18 & 9363) == 9362) ? false : true, i11 & 1)) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-2118572703, i11, i18, "androidx.compose.foundation.text.LayoutWithLinksAndInlineContent (BasicText.kt:646)");
            }
            if (android.support.v4.media.session.b.u(c0596g2)) {
                composerStartRestartGroup.startReplaceGroup(145641571);
                boolean z8 = (i11 & 112) == 32;
                Object objRememberedValue = composerStartRestartGroup.rememberedValue();
                if (z8 || objRememberedValue == Composer.Companion.getEmpty()) {
                    objRememberedValue = new V0(c0596g2);
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue);
                }
                v02 = (V0) objRememberedValue;
                composerStartRestartGroup.endReplaceGroup();
            } else {
                composerStartRestartGroup.startReplaceGroup(145707228);
                composerStartRestartGroup.endReplaceGroup();
                v02 = null;
            }
            if (android.support.v4.media.session.b.u(c0596g2)) {
                composerStartRestartGroup.startReplaceGroup(145905443);
                i13 = i18;
                boolean zChanged = ((i11 & 112) == 32) | composerStartRestartGroup.changed(v02);
                Object objRememberedValue2 = composerStartRestartGroup.rememberedValue();
                if (zChanged || objRememberedValue2 == Composer.Companion.getEmpty()) {
                    objRememberedValue2 = new B2.j(5, v02, c0596g2);
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue2);
                }
                aVar = (J4.a) objRememberedValue2;
                composerStartRestartGroup.endReplaceGroup();
            } else {
                i13 = i18;
                composerStartRestartGroup.startReplaceGroup(146002721);
                boolean z9 = (i11 & 112) == 32;
                Object objRememberedValue3 = composerStartRestartGroup.rememberedValue();
                if (z9 || objRememberedValue3 == Composer.Companion.getEmpty()) {
                    objRememberedValue3 = new C0135f(c0596g2, 4);
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue3);
                }
                aVar = (J4.a) objRememberedValue3;
                composerStartRestartGroup.endReplaceGroup();
            }
            J4.a aVar2 = aVar;
            if (z6) {
                if (zVar != null) {
                    w4.k kVar2 = AbstractC0457i.f3873a;
                }
                kVar = AbstractC0457i.f3873a;
            } else {
                kVar = new w4.k(null, null);
            }
            List list2 = (List) kVar.f25469a;
            List list3 = (List) kVar.f25470b;
            if (z6) {
                composerStartRestartGroup.startReplaceGroup(146318828);
                Object objRememberedValue4 = composerStartRestartGroup.rememberedValue();
                list = list3;
                if (objRememberedValue4 == Composer.Companion.getEmpty()) {
                    i14 = i11;
                    cVar3 = null;
                    objRememberedValue4 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(null, null, 2, null);
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue4);
                } else {
                    i14 = i11;
                    cVar3 = null;
                }
                mutableState = (MutableState) objRememberedValue4;
                composerStartRestartGroup.endReplaceGroup();
            } else {
                list = list3;
                i14 = i11;
                cVar3 = null;
                composerStartRestartGroup.startReplaceGroup(146406588);
                composerStartRestartGroup.endReplaceGroup();
                mutableState = null;
            }
            if (z6) {
                composerStartRestartGroup.startReplaceGroup(146499837);
                boolean zChanged2 = composerStartRestartGroup.changed(mutableState);
                Object objRememberedValue5 = composerStartRestartGroup.rememberedValue();
                if (zChanged2 || objRememberedValue5 == Composer.Companion.getEmpty()) {
                    objRememberedValue5 = new C0473q(mutableState, i17);
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue5);
                }
                cVar3 = (J4.c) objRememberedValue5;
                composerStartRestartGroup.endReplaceGroup();
            } else {
                composerStartRestartGroup.startReplaceGroup(146571260);
                composerStartRestartGroup.endReplaceGroup();
            }
            J4.c cVar4 = cVar3;
            int i19 = (i14 >> 3) & 14;
            MutableState mutableState2 = mutableState;
            List list4 = list;
            V0 v03 = v02;
            AbstractC0486x.a(c0596g2, o7, interfaceC0807u, list2, composerStartRestartGroup, ((i14 >> 12) & 112) | i19 | ((i13 << 6) & 896));
            c0596g2 = c0596g2;
            C0596g c0596g3 = (C0596g) aVar2.invoke();
            boolean zChangedInstance = composerStartRestartGroup.changedInstance(v03) | ((i14 & 896) == 256);
            Object objRememberedValue6 = composerStartRestartGroup.rememberedValue();
            if (zChangedInstance || objRememberedValue6 == Composer.Companion.getEmpty()) {
                objRememberedValue6 = new C0476s(v03, cVar, 0);
                composerStartRestartGroup.updateRememberedValue(objRememberedValue6);
            }
            InterfaceC2255s interfaceC2255sP = p(interfaceC2255s, c0596g3, o6, (J4.c) objRememberedValue6, i6, z7, i7, i8, interfaceC0807u, list2, cVar4, cVar2);
            if (z6) {
                composerStartRestartGroup.startReplaceGroup(147927697);
                boolean zChangedInstance2 = composerStartRestartGroup.changedInstance(v03);
                Object objRememberedValue7 = composerStartRestartGroup.rememberedValue();
                if (zChangedInstance2 || objRememberedValue7 == Composer.Companion.getEmpty()) {
                    objRememberedValue7 = new C0478t(v03, 1);
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue7);
                }
                J4.a aVar3 = (J4.a) objRememberedValue7;
                boolean zChanged3 = composerStartRestartGroup.changed(mutableState2);
                Object objRememberedValue8 = composerStartRestartGroup.rememberedValue();
                if (zChanged3 || objRememberedValue8 == Composer.Companion.getEmpty()) {
                    i15 = 0;
                    objRememberedValue8 = new C0480u(mutableState2, 0);
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue8);
                } else {
                    i15 = 0;
                }
                W0 w02 = new W0(i15, aVar3, (J4.a) objRememberedValue8);
                composerStartRestartGroup.endReplaceGroup();
                c0470o0 = w02;
            } else {
                composerStartRestartGroup.startReplaceGroup(147750935);
                boolean zChangedInstance3 = composerStartRestartGroup.changedInstance(v03);
                Object objRememberedValue9 = composerStartRestartGroup.rememberedValue();
                if (zChangedInstance3 || objRememberedValue9 == Composer.Companion.getEmpty()) {
                    i16 = 0;
                    objRememberedValue9 = new C0478t(v03, i16);
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue9);
                } else {
                    i16 = 0;
                }
                c0470o0 = new C0470o0((J4.a) objRememberedValue9, i16);
                composerStartRestartGroup.endReplaceGroup();
                i15 = 0;
            }
            int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composerStartRestartGroup, i15));
            CompositionLocalMap currentCompositionLocalMap = composerStartRestartGroup.getCurrentCompositionLocalMap();
            InterfaceC2255s interfaceC2255sC = AbstractC2237a.c(composerStartRestartGroup, interfaceC2255sP);
            InterfaceC0295h.f2384g.getClass();
            J4.a aVar4 = C0293g.f2375b;
            if (composerStartRestartGroup.getApplier() == null) {
                ComposablesKt.invalidApplier();
            }
            composerStartRestartGroup.startReusableNode();
            if (composerStartRestartGroup.getInserting()) {
                composerStartRestartGroup.createNode(aVar4);
            } else {
                composerStartRestartGroup.useNode();
            }
            Composer composerM81constructorimpl = Updater.m81constructorimpl(composerStartRestartGroup);
            Updater.m89setimpl(composerM81constructorimpl, c0470o0, 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);
            if (v03 == null) {
                composerStartRestartGroup.startReplaceGroup(-433557001);
            } else {
                composerStartRestartGroup.startReplaceGroup(-291080374);
                v03.a(composerStartRestartGroup, 0);
            }
            composerStartRestartGroup.endReplaceGroup();
            if (list4 == null) {
                composerStartRestartGroup.startReplaceGroup(-433506223);
            } else {
                composerStartRestartGroup.startReplaceGroup(-433506222);
                AbstractC0457i.a(c0596g2, list4, composerStartRestartGroup, i19);
            }
            composerStartRestartGroup.endReplaceGroup();
            composerStartRestartGroup.endNode();
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        } else {
            composerStartRestartGroup.skipToGroupEnd();
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new J4.e() { // from class: K.p
                @Override // J4.e
                public final Object invoke(Object obj, Object obj2) {
                    ((Integer) obj2).getClass();
                    int iUpdateChangedFlags = RecomposeScopeImplKt.updateChangedFlags(i9 | 1);
                    int iUpdateChangedFlags2 = RecomposeScopeImplKt.updateChangedFlags(i10);
                    InterfaceC0807u interfaceC0807u2 = interfaceC0807u;
                    J4.c cVar5 = cVar2;
                    AbstractC0454g0.e(interfaceC2255s, c0596g2, cVar, z6, zVar, o6, i6, z7, i7, i8, interfaceC0807u2, cVar5, (Composer) obj, iUpdateChangedFlags, iUpdateChangedFlags2);
                    return C3137A.f25453a;
                }
            });
        }
    }

    public static final C2632c f(G0.p0 p0Var, int i6, Z0.F f6, T0.L l, boolean z6, int i7) {
        C2632c c2632cC = l != null ? l.c(f6.f9072b.b(i6)) : C2632c.f21786e;
        int iG0 = p0Var.g0(C0.f3585a);
        float f7 = c2632cC.f21787a;
        return new C2632c(z6 ? (i7 - f7) - iG0 : f7, c2632cC.f21788b, z6 ? i7 - f7 : iG0 + f7, c2632cC.f21790d);
    }

    public static final boolean g(int i6, KeyEvent keyEvent) {
        return ((int) (A0.d.b(keyEvent) >> 32)) == i6;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static final ArrayList h(List list, J4.a aVar) {
        C0327k c0327k;
        if (!((Boolean) aVar.invoke()).booleanValue()) {
            return null;
        }
        ArrayList arrayList = new ArrayList(list.size());
        int size = list.size();
        for (int i6 = 0; i6 < size; i6++) {
            G0.Z z6 = (G0.Z) list.get(i6);
            Object objS = z6.S();
            kotlin.jvm.internal.o.f(objS, "null cannot be cast to non-null type androidx.compose.foundation.text.TextRangeLayoutModifier");
            F.h0 h0Var = ((X0) objS).f3764a;
            T0.L l = (T0.L) ((V0) h0Var.f1289b).f3753a.getValue();
            if (l == null) {
                c0327k = new C0327k(0, 0, new B2.f(5));
            } else {
                C0594e c0594eC = V0.c((C0594e) h0Var.f1290c, l);
                if (c0594eC == null) {
                    c0327k = new C0327k(0, 0, new B2.f(6));
                } else {
                    h1.k kVarZ = W.d.z(l.h(c0594eC.f6504b, c0594eC.f6505c).e());
                    c0327k = new C0327k(kVarZ.d(), kVarZ.b(), new C0135f(kVarZ, 7));
                }
            }
            int i7 = c0327k.f2633a;
            int i8 = c0327k.f2634b;
            arrayList.add(new w4.k(z6.Q(W0.e.q(i7, i7, i8, i8)), (J4.a) c0327k.f2635c));
        }
        return arrayList;
    }

    public static final int i(float f6) {
        return Math.round((float) Math.ceil(f6));
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:19:0x0049  */
    /* JADX WARN: Type inference failed for: r12v0, types: [java.lang.Object, java.lang.String] */
    /* JADX WARN: Type inference failed for: r12v1, types: [java.text.BreakIterator] */
    /* JADX WARN: Type inference failed for: r4v3, types: [C4.f, java.lang.Object] */
    /* JADX WARN: Type inference failed for: r5v0 */
    /* JADX WARN: Type inference failed for: r5v1, types: [java.lang.String] */
    /* JADX WARN: Type inference failed for: r5v10 */
    /* JADX WARN: Type inference failed for: r5v11 */
    /* JADX WARN: Type inference failed for: r5v2 */
    /* JADX WARN: Type inference failed for: r5v3 */
    /* JADX WARN: Type inference failed for: r5v4, types: [java.lang.CharSequence] */
    /* JADX WARN: Type inference failed for: r5v8 */
    /* JADX WARN: Type inference failed for: r5v9 */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final int j(int i6, String str) {
        ?? r5;
        ?? r52;
        int spanEnd;
        T1.h hVarN = n();
        Integer num = null;
        if (hVarN != null) {
            if (!(hVarN.c() == 1)) {
                throw new IllegalStateException("Not initialized yet");
            }
            A4.g.n(str, "charSequence cannot be null");
            ?? r42 = (C4.f) hVarN.f6589e.f2582b;
            r42.getClass();
            if (i6 < 0 || i6 >= str.length()) {
                r52 = str;
                spanEnd = -1;
            } else if (str instanceof Spanned) {
                Spanned spanned = (Spanned) str;
                T1.s[] sVarArr = (T1.s[]) spanned.getSpans(i6, i6 + 1, T1.s.class);
                if (sVarArr.length > 0) {
                    spanEnd = spanned.getSpanEnd(sVarArr[0]);
                    r52 = str;
                } else {
                    ?? r53 = str;
                    spanEnd = ((T1.m) r42.K(r53, Math.max(0, i6 - 16), Math.min(str.length(), i6 + 16), Integer.MAX_VALUE, true, new T1.m(i6))).f6599c;
                    r52 = r53;
                }
            }
            Integer numValueOf = Integer.valueOf(spanEnd);
            r5 = r52;
            if (spanEnd != -1) {
                num = numValueOf;
                r5 = r52;
            }
        } else {
            r5 = str;
        }
        if (num != null) {
            return num.intValue();
        }
        ?? characterInstance = BreakIterator.getCharacterInstance();
        characterInstance.setText(r5);
        return characterInstance.following(i6);
    }

    public static final int k(CharSequence charSequence, int i6) {
        int length = charSequence.length();
        while (i6 < length) {
            if (charSequence.charAt(i6) == '\n') {
                return i6;
            }
            i6++;
        }
        return charSequence.length();
    }

    public static final int l(CharSequence charSequence, int i6) {
        while (i6 > 0) {
            if (charSequence.charAt(i6 - 1) == '\n') {
                return i6;
            }
            i6--;
        }
        return 0;
    }

    public static final int m(int i6, String str) {
        T1.h hVarN = n();
        Integer num = null;
        if (hVarN != null) {
            Integer numValueOf = Integer.valueOf(hVarN.b(str, Math.max(0, i6 - 1)));
            if (numValueOf.intValue() != -1) {
                num = numValueOf;
            }
        }
        if (num != null) {
            return num.intValue();
        }
        BreakIterator characterInstance = BreakIterator.getCharacterInstance();
        characterInstance.setText(str);
        return characterInstance.preceding(i6);
    }

    public static final T1.h n() {
        if (!T1.h.d()) {
            return null;
        }
        T1.h hVarA = T1.h.a();
        if (hVarA.c() == 1) {
            return hVarA;
        }
        return null;
    }

    public static void o(Z0.y yVar, C0487x0 c0487x0, T0.L l, InterfaceC0279y interfaceC0279y, Z0.E e6, boolean z6, Z0.r rVar) {
        C2632c c2632c;
        if (z6) {
            int iB = rVar.b(T0.N.e(yVar.f9137b));
            String str = D0.f3594a;
            if (iB < l.f6471a.f6461a.f6510b.length()) {
                c2632c = l.b(iB);
            } else if (iB != 0) {
                c2632c = l.b(iB - 1);
            } else {
                c2632c = new C2632c(0.0f, 0.0f, 1.0f, (int) (D0.a(c0487x0.f4019b, c0487x0.f4024g, c0487x0.f4025h, D0.f3594a, 1) & 4294967295L));
            }
            float f6 = c2632c.f21787a;
            long jFloatToRawIntBits = Float.floatToRawIntBits(f6);
            float f7 = c2632c.f21788b;
            long jE0 = interfaceC0279y.e0((jFloatToRawIntBits << 32) | (((long) Float.floatToRawIntBits(f7)) & 4294967295L));
            float fIntBitsToFloat = Float.intBitsToFloat((int) (jE0 >> 32));
            C2632c c2632cB = m1.g.b((((long) Float.floatToRawIntBits(Float.intBitsToFloat((int) (jE0 & 4294967295L)))) & 4294967295L) | (Float.floatToRawIntBits(fIntBitsToFloat) << 32), (((long) Float.floatToRawIntBits(c2632c.f21789c - f6)) << 32) | (((long) Float.floatToRawIntBits(c2632c.f21790d - f7)) & 4294967295L));
            if (kotlin.jvm.internal.o.c((Z0.E) e6.f9069a.f9140b.get(), e6)) {
                e6.f9070b.b(c2632cB);
            }
        }
    }

    public static final InterfaceC2255s p(InterfaceC2255s interfaceC2255s, C0596g c0596g, T0.O o6, J4.c cVar, int i6, boolean z6, int i7, int i8, InterfaceC0807u interfaceC0807u, List list, J4.c cVar2, J4.c cVar3) {
        return interfaceC2255s.then(C2252p.f18820a).then(new U.f(c0596g, o6, interfaceC0807u, cVar, i6, z6, i7, i8, list, cVar2, cVar3));
    }

    public static final void q(int i6, int i7) {
        if (!(i6 > 0 && i7 > 0)) {
            A.b.a("both minLines " + i6 + " and maxLines " + i7 + " must be greater than zero");
        }
        if (i6 <= i7) {
            return;
        }
        A.b.a("minLines " + i6 + " must be less than or equal to maxLines " + i7);
    }
}
