package o;

import com.google.android.gms.common.api.Api;
import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.eV, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1099eV implements InterfaceC2235qO {
    public final OC a;
    public final Vd0 b;
    public final Pd0 c;
    public final C2147pV d;
    public final float e;

    public C1099eV(OC oc, Vd0 vd0, Pd0 pd0, C2147pV c2147pV, float f) {
        this.a = oc;
        this.b = vd0;
        this.c = pd0;
        this.d = c2147pV;
        this.e = f;
    }

    public static final int h(int i, C1099eV c1099eV, int i2, int i3, VW vw, VW vw2) {
        return Math.max(i + i3, (vw != null ? vw.m : 0) / 2);
    }

    @Override // o.InterfaceC2235qO
    public final InterfaceC2329rO a(final InterfaceC2424sO interfaceC2424sO, List list, long j) {
        Object obj;
        Object obj2;
        VW vw;
        int i;
        VW vwC;
        Object obj3;
        VW vw2;
        int i2;
        VW vwC2;
        Object obj4;
        VW vw3;
        int i3;
        VW vwC3;
        Object obj5;
        long jFloatToRawIntBits;
        Object obj6;
        int i4;
        Object obj7;
        VW vw4;
        int i5;
        VW vw5;
        int i6;
        B10 b10;
        int i7;
        B10 b102;
        VW vw6;
        int i8;
        long j2;
        int i9;
        VW vw7;
        VW vw8;
        int i10;
        int i11;
        VW vw9;
        float f;
        VW vw10;
        C1099eV c1099eV;
        InterfaceC2424sO interfaceC2424sO2;
        B10 b103;
        int i12;
        VW vw11;
        VW vw12;
        int i13;
        int i14;
        VW vw13;
        int i15;
        int i16;
        int i17;
        C1099eV c1099eV2;
        InterfaceC2424sO interfaceC2424sO3;
        float f2;
        List list2 = list;
        float fA = this.c.a();
        C2147pV c2147pV = this.d;
        int iN = interfaceC2424sO.N(c2147pV.d);
        long jA = C0634Yl.a(j, 0, 0, 0, 0, 10);
        int size = list2.size();
        int i18 = 0;
        while (true) {
            if (i18 >= size) {
                obj = null;
                break;
            }
            obj = list2.get(i18);
            if (F3.c(androidx.compose.ui.layout.a.a((InterfaceC1760lO) obj), "Leading")) {
                break;
            }
            i18++;
        }
        InterfaceC1760lO interfaceC1760lO = (InterfaceC1760lO) obj;
        VW vwC4 = interfaceC1760lO != null ? interfaceC1760lO.c(jA) : null;
        int i19 = vwC4 != null ? vwC4.l : 0;
        int iMax = Math.max(0, vwC4 != null ? vwC4.m : 0);
        int size2 = list2.size();
        int i20 = 0;
        while (true) {
            if (i20 >= size2) {
                obj2 = null;
                break;
            }
            obj2 = list2.get(i20);
            if (F3.c(androidx.compose.ui.layout.a.a((InterfaceC1760lO) obj2), "Trailing")) {
                break;
            }
            i20++;
        }
        InterfaceC1760lO interfaceC1760lO2 = (InterfaceC1760lO) obj2;
        if (interfaceC1760lO2 != null) {
            vw = vwC4;
            i = i19;
            vwC = interfaceC1760lO2.c(AbstractC0842bm.j(-i19, 0, 2, jA));
        } else {
            vw = vwC4;
            i = i19;
            vwC = null;
        }
        int i21 = i + (vwC != null ? vwC.l : 0);
        int iMax2 = Math.max(iMax, vwC != null ? vwC.m : 0);
        int size3 = list2.size();
        int i22 = 0;
        while (true) {
            if (i22 >= size3) {
                obj3 = null;
                break;
            }
            obj3 = list2.get(i22);
            int i23 = size3;
            if (F3.c(androidx.compose.ui.layout.a.a((InterfaceC1760lO) obj3), "Prefix")) {
                break;
            }
            i22++;
            size3 = i23;
        }
        InterfaceC1760lO interfaceC1760lO3 = (InterfaceC1760lO) obj3;
        if (interfaceC1760lO3 != null) {
            vw2 = vwC;
            i2 = i21;
            vwC2 = interfaceC1760lO3.c(AbstractC0842bm.j(-i21, 0, 2, jA));
        } else {
            vw2 = vwC;
            i2 = i21;
            vwC2 = null;
        }
        int i24 = i2 + (vwC2 != null ? vwC2.l : 0);
        int iMax3 = Math.max(iMax2, vwC2 != null ? vwC2.m : 0);
        int size4 = list2.size();
        int i25 = 0;
        while (true) {
            if (i25 >= size4) {
                obj4 = null;
                break;
            }
            obj4 = list2.get(i25);
            int i26 = size4;
            if (F3.c(androidx.compose.ui.layout.a.a((InterfaceC1760lO) obj4), "Suffix")) {
                break;
            }
            i25++;
            size4 = i26;
        }
        InterfaceC1760lO interfaceC1760lO4 = (InterfaceC1760lO) obj4;
        if (interfaceC1760lO4 != null) {
            vw3 = vwC2;
            i3 = i24;
            vwC3 = interfaceC1760lO4.c(AbstractC0842bm.j(-i24, 0, 2, jA));
        } else {
            vw3 = vwC2;
            i3 = i24;
            vwC3 = null;
        }
        int i27 = i3 + (vwC3 != null ? vwC3.l : 0);
        int iMax4 = Math.max(iMax3, vwC3 != null ? vwC3.m : 0);
        int size5 = list2.size();
        int i28 = 0;
        while (true) {
            if (i28 >= size5) {
                obj5 = null;
                break;
            }
            obj5 = list2.get(i28);
            int i29 = size5;
            if (F3.c(androidx.compose.ui.layout.a.a((InterfaceC1760lO) obj5), "Label")) {
                break;
            }
            i28++;
            size5 = i29;
        }
        InterfaceC1760lO interfaceC1760lO5 = (InterfaceC1760lO) obj5;
        B10 b104 = new B10();
        int iN2 = interfaceC2424sO.N(c2147pV.b(interfaceC2424sO.getLayoutDirection())) + interfaceC2424sO.N(c2147pV.a(interfaceC2424sO.getLayoutDirection()));
        int i30 = -AbstractC0940cn0.B(fA, i27 + iN2, iN2);
        int i31 = -iN;
        VW vw14 = vw;
        VW vwC5 = interfaceC1760lO5 != null ? interfaceC1760lO5.c(AbstractC0842bm.i(i30, i31, jA)) : null;
        b104.l = vwC5;
        if (vwC5 != null) {
            jFloatToRawIntBits = (Float.floatToRawIntBits(vwC5.m) & 4294967295L) | (Float.floatToRawIntBits(vwC5.l) << 32);
        } else {
            jFloatToRawIntBits = 0;
        }
        this.a.g(new T80(jFloatToRawIntBits));
        int size6 = list2.size();
        int i32 = 0;
        while (true) {
            if (i32 >= size6) {
                obj6 = null;
                break;
            }
            obj6 = list2.get(i32);
            if (F3.c(androidx.compose.ui.layout.a.a((InterfaceC1760lO) obj6), "Supporting")) {
                break;
            }
            i32++;
        }
        InterfaceC1760lO interfaceC1760lO6 = (InterfaceC1760lO) obj6;
        int iV = interfaceC1760lO6 != null ? interfaceC1760lO6.V(C0634Yl.j(j)) : 0;
        VW vw15 = (VW) b104.l;
        int iMax5 = Math.max((vw15 != null ? vw15.m : 0) / 2, interfaceC2424sO.N(c2147pV.b));
        long j3 = j;
        long jA2 = C0634Yl.a(AbstractC0842bm.i(-i27, (i31 - iMax5) - iV, j3), 0, 0, 0, 0, 11);
        int size7 = list2.size();
        int i33 = 0;
        while (i33 < size7) {
            int i34 = size7;
            InterfaceC1760lO interfaceC1760lO7 = (InterfaceC1760lO) list2.get(i33);
            int i35 = iMax5;
            if (F3.c(androidx.compose.ui.layout.a.a(interfaceC1760lO7), "TextField")) {
                VW vwC6 = interfaceC1760lO7.c(jA2);
                long jA3 = C0634Yl.a(jA2, 0, 0, 0, 0, 14);
                int size8 = list2.size();
                int i36 = 0;
                while (true) {
                    if (i36 >= size8) {
                        i4 = iN;
                        obj7 = null;
                        break;
                    }
                    obj7 = list2.get(i36);
                    i4 = iN;
                    int i37 = size8;
                    if (F3.c(androidx.compose.ui.layout.a.a((InterfaceC1760lO) obj7), "Hint")) {
                        break;
                    }
                    i36++;
                    size8 = i37;
                    iN = i4;
                }
                InterfaceC1760lO interfaceC1760lO8 = (InterfaceC1760lO) obj7;
                VW vwC7 = interfaceC1760lO8 != null ? interfaceC1760lO8.c(jA3) : null;
                int iMax6 = Math.max(iMax4, Math.max(vwC6.m, vwC7 != null ? vwC7.m : 0) + i35 + i4);
                int i38 = vw14 != null ? vw14.l : 0;
                VW vw16 = vw2;
                if (vw2 != null) {
                    vw4 = vw14;
                    i5 = vw16.l;
                } else {
                    vw4 = vw14;
                    i5 = 0;
                }
                VW vw17 = vw3;
                int i39 = vw3 != null ? vw17.l : 0;
                if (vwC3 != null) {
                    i6 = vwC3.l;
                    vw5 = vw16;
                } else {
                    vw5 = vw16;
                    i6 = 0;
                }
                int i40 = vwC6.l;
                VW vw18 = (VW) b104.l;
                if (vw18 != null) {
                    i7 = vw18.l;
                    b10 = b104;
                } else {
                    b10 = b104;
                    i7 = 0;
                }
                if (vwC7 != null) {
                    vw6 = vw5;
                    i8 = i38;
                    b102 = b10;
                    j2 = j3;
                    i9 = vwC7.l;
                    vw7 = vwC7;
                    vw8 = vwC3;
                    i10 = i39;
                    i11 = iMax6;
                    vw9 = vw17;
                    f = fA;
                    vw10 = vwC6;
                    interfaceC2424sO2 = interfaceC2424sO;
                    c1099eV = this;
                } else {
                    b102 = b10;
                    vw6 = vw5;
                    i8 = i38;
                    j2 = j3;
                    i9 = 0;
                    vw7 = vwC7;
                    vw8 = vwC3;
                    i10 = i39;
                    i11 = iMax6;
                    vw9 = vw17;
                    f = fA;
                    vw10 = vwC6;
                    c1099eV = this;
                    interfaceC2424sO2 = interfaceC2424sO;
                }
                int iD = c1099eV.d(interfaceC2424sO2, i8, i5, i10, i6, i40, i7, i9, j2, f);
                long jA4 = C0634Yl.a(AbstractC0842bm.j(0, -i11, 1, jA), 0, iD, 0, 0, 9);
                int i41 = iD;
                final VW vwC8 = interfaceC1760lO6 != null ? interfaceC1760lO6.c(jA4) : null;
                int i42 = vwC8 != null ? vwC8.m : 0;
                final VW vw19 = vw4;
                int i43 = vw4 != null ? vw19.m : 0;
                VW vw20 = vw6;
                int i44 = vw20 != null ? vw20.m : 0;
                VW vw21 = vw9;
                int i45 = vw21 != null ? vw21.m : 0;
                final VW vw22 = vw8;
                int i46 = vw22 != null ? vw22.m : 0;
                VW vw23 = vw10;
                int i47 = vw23.m;
                B10 b105 = b102;
                VW vw24 = (VW) b105.l;
                int i48 = vw24 != null ? vw24.m : 0;
                int i49 = i42;
                final VW vw25 = vw7;
                int i50 = vw25 != null ? vw25.m : 0;
                if (vwC8 != null) {
                    b103 = b105;
                    i12 = vwC8.m;
                    vw11 = vw20;
                    vw12 = vw21;
                    i13 = i45;
                    i14 = i46;
                    vw13 = vw23;
                    i15 = i50;
                    i16 = i48;
                    i17 = 0;
                    interfaceC2424sO3 = interfaceC2424sO;
                    f2 = f;
                    c1099eV2 = this;
                } else {
                    b103 = b105;
                    i12 = 0;
                    vw11 = vw20;
                    vw12 = vw21;
                    i13 = i45;
                    i14 = i46;
                    vw13 = vw23;
                    i15 = i50;
                    i16 = i48;
                    i17 = 0;
                    c1099eV2 = this;
                    interfaceC2424sO3 = interfaceC2424sO;
                    f2 = f;
                }
                final int iB = c1099eV2.b(interfaceC2424sO3, i43, i44, i13, i14, i47, i16, i15, i12, j, f2);
                final float f3 = f2;
                int i51 = iB - i49;
                int size9 = list.size();
                int i52 = i17;
                while (i52 < size9) {
                    InterfaceC1760lO interfaceC1760lO9 = (InterfaceC1760lO) list.get(i52);
                    if (F3.c(androidx.compose.ui.layout.a.a(interfaceC1760lO9), "Container")) {
                        final VW vwC9 = interfaceC1760lO9.c(AbstractC0842bm.a(i41 != Integer.MAX_VALUE ? i41 : i17, i41, i51 != Integer.MAX_VALUE ? i51 : i17, i51));
                        final int i53 = i41;
                        final VW vw26 = vw11;
                        final VW vw27 = vw12;
                        final B10 b106 = b103;
                        final VW vw28 = vw13;
                        return interfaceC2424sO.H(i53, iB, C0358Nv.l, new OC() { // from class: o.dV
                            @Override // o.OC
                            public final Object g(Object obj8) {
                                VW vw29;
                                C1099eV c1099eV3;
                                int i54;
                                int i55;
                                C1099eV c1099eV4;
                                VW vw30;
                                int i56;
                                float f4;
                                float f5;
                                UW uw = (UW) obj8;
                                VW vw31 = (VW) b106.l;
                                InterfaceC2424sO interfaceC2424sO4 = interfaceC2424sO;
                                float fE = interfaceC2424sO4.e();
                                EnumC1280gK layoutDirection = interfaceC2424sO4.getLayoutDirection();
                                C1099eV c1099eV5 = this.l;
                                float fB = interfaceC2424sO4.B(c1099eV5.e);
                                Vd0 vd0 = c1099eV5.b;
                                C2147pV c2147pV2 = c1099eV5.d;
                                UW.g(uw, vwC9, 0, 0);
                                VW vw32 = vwC8;
                                int i57 = iB - (vw32 != null ? vw32.m : 0);
                                int iD2 = C2887xC.D(c2147pV2.b * fE);
                                VW vw33 = vw19;
                                if (vw33 != null) {
                                    UW.i(uw, vw33, 0, Math.round((1 + 0.0f) * ((i57 - vw33.m) / 2.0f)));
                                }
                                int i58 = i53;
                                VW vw34 = vw26;
                                if (vw31 != null) {
                                    int i59 = -(vw31.m / 2);
                                    float f6 = f3;
                                    int iB2 = AbstractC0940cn0.B(f6, iD2, i59);
                                    c1099eV3 = c1099eV5;
                                    EnumC1280gK enumC1280gK = EnumC1280gK.l;
                                    float fA2 = (layoutDirection == enumC1280gK ? c2147pV2.a(layoutDirection) : c2147pV2.b(layoutDirection)) * fE;
                                    float fB2 = (layoutDirection == enumC1280gK ? c2147pV2.b(layoutDirection) : c2147pV2.a(layoutDirection)) * fE;
                                    if (vw33 == null) {
                                        f4 = fA2;
                                    } else {
                                        float f7 = vw33.l;
                                        float f8 = fA2 - fB;
                                        if (f8 < 0.0f) {
                                            f8 = 0.0f;
                                        }
                                        f4 = f7 + f8;
                                    }
                                    if (vw34 == null) {
                                        f5 = fB2;
                                    } else {
                                        f5 = fB2;
                                        float f9 = vw34.l;
                                        float f10 = f5 - fB;
                                        if (f10 < 0.0f) {
                                            f10 = 0.0f;
                                        }
                                        fB2 = f9 + f10;
                                    }
                                    float f11 = layoutDirection == enumC1280gK ? fA2 : f5;
                                    float f12 = layoutDirection == enumC1280gK ? f4 : fB2;
                                    float f13 = Qd0.a;
                                    vw29 = vw34;
                                    UW.g(uw, vw31, C2887xC.D(AbstractC0940cn0.A(vd0.b.a(vw31.l, i58 - C2887xC.D(f4 + fB2), layoutDirection) + f12, ((C0107Ed) Qd0.d(vd0)).a(vw31.l, i58 - C2887xC.D(fA2 + f5), layoutDirection) + f11, f6)), iB2);
                                } else {
                                    vw29 = vw34;
                                    c1099eV3 = c1099eV5;
                                }
                                VW vw35 = vw27;
                                if (vw35 != null) {
                                    i54 = iD2;
                                    i55 = i57;
                                    c1099eV4 = c1099eV3;
                                    vw30 = vw29;
                                    i56 = 0;
                                    UW.i(uw, vw35, vw33 != null ? vw33.l : 0, C1099eV.h(0, c1099eV4, i55, i54, vw31, vw35));
                                } else {
                                    i54 = iD2;
                                    i55 = i57;
                                    c1099eV4 = c1099eV3;
                                    vw30 = vw29;
                                    i56 = 0;
                                }
                                int i60 = (vw33 != null ? vw33.l : 0) + (vw35 != null ? vw35.l : 0);
                                VW vw36 = vw28;
                                UW.i(uw, vw36, i60, C1099eV.h(i56, c1099eV4, i55, i54, vw31, vw36));
                                VW vw37 = vw25;
                                if (vw37 != null) {
                                    UW.i(uw, vw37, i60, C1099eV.h(i56, c1099eV4, i55, i54, vw31, vw37));
                                }
                                VW vw38 = vw22;
                                if (vw38 != null) {
                                    UW.i(uw, vw38, (i58 - (vw30 != null ? vw30.l : 0)) - vw38.l, C1099eV.h(i56, c1099eV4, i55, i54, vw31, vw38));
                                }
                                if (vw30 != null) {
                                    UW.i(uw, vw30, i58 - vw30.l, Math.round((1 + 0.0f) * ((i55 - vw30.m) / 2.0f)));
                                }
                                if (vw32 != null) {
                                    UW.i(uw, vw32, 0, i55);
                                }
                                return Oh0.a;
                            }
                        });
                    }
                    i52++;
                    i41 = i41;
                    iB = iB;
                }
                WL.b("Collection contains no element matching the predicate.");
                throw new C2170pj();
            }
            i33++;
            iMax5 = i35;
            size7 = i34;
            jA2 = jA2;
            j3 = j;
            list2 = list2;
            iN = iN;
        }
        WL.b("Collection contains no element matching the predicate.");
        throw new C2170pj();
    }

    public final int b(InterfaceC2608uI interfaceC2608uI, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, long j, float f) {
        int[] iArr = {i7, i3, i4, AbstractC0940cn0.B(f, i6, 0)};
        for (int i9 = 0; i9 < 4; i9++) {
            i5 = Math.max(i5, iArr[i9]);
        }
        C2147pV c2147pV = this.d;
        float fB = interfaceC2608uI.B(c2147pV.b);
        return AbstractC0842bm.f(Math.max(i, Math.max(i2, C2887xC.D(AbstractC0940cn0.A(fB, Math.max(fB, i6 / 2.0f), f) + i5 + interfaceC2608uI.B(c2147pV.d)))) + i8, j);
    }

    @Override // o.InterfaceC2235qO
    public final int c(InterfaceC2608uI interfaceC2608uI, List list, int i) {
        return e(interfaceC2608uI, list, i, new X8(15));
    }

    public final int d(InterfaceC2608uI interfaceC2608uI, int i, int i2, int i3, int i4, int i5, int i6, int i7, long j, float f) {
        int i8 = i3 + i4;
        int iMax = Math.max(i5 + i8, Math.max(i7 + i8, AbstractC0940cn0.B(f, i6, 0))) + i + i2;
        C2147pV c2147pV = this.d;
        EnumC1280gK enumC1280gK = EnumC1280gK.l;
        return AbstractC0842bm.g(Math.max(iMax, C2887xC.D((i6 + interfaceC2608uI.B(c2147pV.b(enumC1280gK) + c2147pV.a(enumC1280gK))) * f)), j);
    }

    public final int e(InterfaceC2608uI interfaceC2608uI, List list, int i, SC sc) {
        Object obj;
        int iH0;
        int iIntValue;
        Object obj2;
        int iIntValue2;
        Object obj3;
        Object obj4;
        int iIntValue3;
        Object obj5;
        int iIntValue4;
        Object obj6;
        Object obj7;
        C1099eV c1099eV = this;
        float fA = c1099eV.c.a();
        int size = list.size();
        int i2 = 0;
        while (true) {
            if (i2 >= size) {
                obj = null;
                break;
            }
            obj = list.get(i2);
            if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj), "Leading")) {
                break;
            }
            i2++;
        }
        InterfaceC1760lO interfaceC1760lO = (InterfaceC1760lO) obj;
        if (interfaceC1760lO != null) {
            iH0 = AbstractC2378rs0.h0(i, interfaceC1760lO.U(Api.BaseClientBuilder.API_PRIORITY_OTHER));
            iIntValue = ((Number) sc.f(interfaceC1760lO, Integer.valueOf(i))).intValue();
        } else {
            iH0 = i;
            iIntValue = 0;
        }
        int size2 = list.size();
        int i3 = 0;
        while (true) {
            if (i3 >= size2) {
                obj2 = null;
                break;
            }
            obj2 = list.get(i3);
            if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj2), "Trailing")) {
                break;
            }
            i3++;
        }
        InterfaceC1760lO interfaceC1760lO2 = (InterfaceC1760lO) obj2;
        if (interfaceC1760lO2 != null) {
            iH0 = AbstractC2378rs0.h0(iH0, interfaceC1760lO2.U(Api.BaseClientBuilder.API_PRIORITY_OTHER));
            iIntValue2 = ((Number) sc.f(interfaceC1760lO2, Integer.valueOf(i))).intValue();
        } else {
            iIntValue2 = 0;
        }
        int size3 = list.size();
        int i4 = 0;
        while (true) {
            if (i4 >= size3) {
                obj3 = null;
                break;
            }
            obj3 = list.get(i4);
            if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj3), "Label")) {
                break;
            }
            i4++;
        }
        Object obj8 = (InterfaceC1760lO) obj3;
        int iIntValue5 = obj8 != null ? ((Number) sc.f(obj8, Integer.valueOf(AbstractC0940cn0.B(fA, iH0, i)))).intValue() : 0;
        int size4 = list.size();
        int i5 = 0;
        while (true) {
            if (i5 >= size4) {
                obj4 = null;
                break;
            }
            obj4 = list.get(i5);
            if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj4), "Prefix")) {
                break;
            }
            i5++;
        }
        InterfaceC1760lO interfaceC1760lO3 = (InterfaceC1760lO) obj4;
        if (interfaceC1760lO3 != null) {
            iIntValue3 = ((Number) sc.f(interfaceC1760lO3, Integer.valueOf(iH0))).intValue();
            iH0 = AbstractC2378rs0.h0(iH0, interfaceC1760lO3.U(Api.BaseClientBuilder.API_PRIORITY_OTHER));
        } else {
            iIntValue3 = 0;
        }
        int size5 = list.size();
        int i6 = 0;
        while (true) {
            if (i6 >= size5) {
                obj5 = null;
                break;
            }
            obj5 = list.get(i6);
            if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj5), "Suffix")) {
                break;
            }
            i6++;
        }
        InterfaceC1760lO interfaceC1760lO4 = (InterfaceC1760lO) obj5;
        if (interfaceC1760lO4 != null) {
            iIntValue4 = ((Number) sc.f(interfaceC1760lO4, Integer.valueOf(iH0))).intValue();
            iH0 = AbstractC2378rs0.h0(iH0, interfaceC1760lO4.U(Api.BaseClientBuilder.API_PRIORITY_OTHER));
        } else {
            iIntValue4 = 0;
        }
        int size6 = list.size();
        int i7 = 0;
        while (i7 < size6) {
            Object obj9 = list.get(i7);
            if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj9), "TextField")) {
                int iIntValue6 = ((Number) sc.f(obj9, Integer.valueOf(iH0))).intValue();
                int size7 = list.size();
                int i8 = 0;
                while (true) {
                    if (i8 >= size7) {
                        obj6 = null;
                        break;
                    }
                    obj6 = list.get(i8);
                    if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj6), "Hint")) {
                        break;
                    }
                    i8++;
                }
                Object obj10 = (InterfaceC1760lO) obj6;
                int iIntValue7 = obj10 != null ? ((Number) sc.f(obj10, Integer.valueOf(iH0))).intValue() : 0;
                int size8 = list.size();
                int i9 = 0;
                while (true) {
                    if (i9 >= size8) {
                        obj7 = null;
                        break;
                    }
                    obj7 = list.get(i9);
                    if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj7), "Supporting")) {
                        break;
                    }
                    i9++;
                }
                Object obj11 = (InterfaceC1760lO) obj7;
                return c1099eV.b(interfaceC2608uI, iIntValue, iIntValue2, iIntValue3, iIntValue4, iIntValue6, iIntValue5, iIntValue7, obj11 != null ? ((Number) sc.f(obj11, Integer.valueOf(i))).intValue() : 0, AbstractC0842bm.b(0, 0, 15), fA);
            }
            i7++;
            iIntValue4 = iIntValue4;
            c1099eV = this;
            iIntValue3 = iIntValue3;
        }
        WL.b("Collection contains no element matching the predicate.");
        throw new C2170pj();
    }

    public final int f(InterfaceC2608uI interfaceC2608uI, List list, int i, SC sc) {
        Object obj;
        Object obj2;
        Object obj3;
        Object obj4;
        Object obj5;
        Object obj6;
        int size = list.size();
        for (int i2 = 0; i2 < size; i2++) {
            Object obj7 = list.get(i2);
            if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj7), "TextField")) {
                int iIntValue = ((Number) sc.f(obj7, Integer.valueOf(i))).intValue();
                int size2 = list.size();
                int i3 = 0;
                while (true) {
                    obj = null;
                    if (i3 >= size2) {
                        obj2 = null;
                        break;
                    }
                    obj2 = list.get(i3);
                    if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj2), "Label")) {
                        break;
                    }
                    i3++;
                }
                InterfaceC1760lO interfaceC1760lO = (InterfaceC1760lO) obj2;
                int iIntValue2 = interfaceC1760lO != null ? ((Number) sc.f(interfaceC1760lO, Integer.valueOf(i))).intValue() : 0;
                int size3 = list.size();
                int i4 = 0;
                while (true) {
                    if (i4 >= size3) {
                        obj3 = null;
                        break;
                    }
                    obj3 = list.get(i4);
                    if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj3), "Trailing")) {
                        break;
                    }
                    i4++;
                }
                InterfaceC1760lO interfaceC1760lO2 = (InterfaceC1760lO) obj3;
                int iIntValue3 = interfaceC1760lO2 != null ? ((Number) sc.f(interfaceC1760lO2, Integer.valueOf(i))).intValue() : 0;
                int size4 = list.size();
                int i5 = 0;
                while (true) {
                    if (i5 >= size4) {
                        obj4 = null;
                        break;
                    }
                    obj4 = list.get(i5);
                    if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj4), "Leading")) {
                        break;
                    }
                    i5++;
                }
                InterfaceC1760lO interfaceC1760lO3 = (InterfaceC1760lO) obj4;
                int iIntValue4 = interfaceC1760lO3 != null ? ((Number) sc.f(interfaceC1760lO3, Integer.valueOf(i))).intValue() : 0;
                int size5 = list.size();
                int i6 = 0;
                while (true) {
                    if (i6 >= size5) {
                        obj5 = null;
                        break;
                    }
                    obj5 = list.get(i6);
                    if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj5), "Prefix")) {
                        break;
                    }
                    i6++;
                }
                InterfaceC1760lO interfaceC1760lO4 = (InterfaceC1760lO) obj5;
                int iIntValue5 = interfaceC1760lO4 != null ? ((Number) sc.f(interfaceC1760lO4, Integer.valueOf(i))).intValue() : 0;
                int size6 = list.size();
                int i7 = 0;
                while (true) {
                    if (i7 >= size6) {
                        obj6 = null;
                        break;
                    }
                    obj6 = list.get(i7);
                    if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj6), "Suffix")) {
                        break;
                    }
                    i7++;
                }
                InterfaceC1760lO interfaceC1760lO5 = (InterfaceC1760lO) obj6;
                int iIntValue6 = interfaceC1760lO5 != null ? ((Number) sc.f(interfaceC1760lO5, Integer.valueOf(i))).intValue() : 0;
                int size7 = list.size();
                int i8 = 0;
                while (true) {
                    if (i8 >= size7) {
                        break;
                    }
                    Object obj8 = list.get(i8);
                    if (F3.c(AbstractC2378rs0.O((InterfaceC1760lO) obj8), "Hint")) {
                        obj = obj8;
                        break;
                    }
                    i8++;
                }
                InterfaceC1760lO interfaceC1760lO6 = (InterfaceC1760lO) obj;
                return d(interfaceC2608uI, iIntValue4, iIntValue3, iIntValue5, iIntValue6, iIntValue, iIntValue2, interfaceC1760lO6 != null ? ((Number) sc.f(interfaceC1760lO6, Integer.valueOf(i))).intValue() : 0, AbstractC0842bm.b(0, 0, 15), this.c.a());
            }
        }
        WL.b("Collection contains no element matching the predicate.");
        throw new C2170pj();
    }

    @Override // o.InterfaceC2235qO
    public final int g(InterfaceC2608uI interfaceC2608uI, List list, int i) {
        return e(interfaceC2608uI, list, i, new X8(13));
    }

    @Override // o.InterfaceC2235qO
    public final int i(InterfaceC2608uI interfaceC2608uI, List list, int i) {
        return f(interfaceC2608uI, list, i, new X8(16));
    }

    @Override // o.InterfaceC2235qO
    public final int j(InterfaceC2608uI interfaceC2608uI, List list, int i) {
        return f(interfaceC2608uI, list, i, new X8(14));
    }
}
