package v0;

import com.amplifyframework.predictions.models.Label;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import h2.p0;
import j2.g;
import l1.c;
import l1.i;
import net.sqlcipher.database.SQLiteDatabase;
import y0.d4;
import y0.l2;
import y0.x2;

/* loaded from: classes.dex */
public abstract class x1 {

    /* renamed from: a, reason: collision with root package name */
    private static final float f38727a = c3.h.t(8);

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class a extends kotlin.jvm.internal.v implements dn.p {
        final /* synthetic */ dn.p A;
        final /* synthetic */ e0.w B;
        final /* synthetic */ int C;
        final /* synthetic */ int D;

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ l1.i f38728p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ dn.p f38729q;

        /* renamed from: r, reason: collision with root package name */
        final /* synthetic */ dn.p f38730r;

        /* renamed from: s, reason: collision with root package name */
        final /* synthetic */ dn.q f38731s;

        /* renamed from: t, reason: collision with root package name */
        final /* synthetic */ dn.p f38732t;

        /* renamed from: u, reason: collision with root package name */
        final /* synthetic */ dn.p f38733u;

        /* renamed from: v, reason: collision with root package name */
        final /* synthetic */ dn.p f38734v;

        /* renamed from: w, reason: collision with root package name */
        final /* synthetic */ dn.p f38735w;

        /* renamed from: x, reason: collision with root package name */
        final /* synthetic */ boolean f38736x;

        /* renamed from: y, reason: collision with root package name */
        final /* synthetic */ float f38737y;

        /* renamed from: z, reason: collision with root package name */
        final /* synthetic */ dn.p f38738z;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(l1.i iVar, dn.p pVar, dn.p pVar2, dn.q qVar, dn.p pVar3, dn.p pVar4, dn.p pVar5, dn.p pVar6, boolean z10, float f10, dn.p pVar7, dn.p pVar8, e0.w wVar, int i10, int i11) {
            super(2);
            this.f38728p = iVar;
            this.f38729q = pVar;
            this.f38730r = pVar2;
            this.f38731s = qVar;
            this.f38732t = pVar3;
            this.f38733u = pVar4;
            this.f38734v = pVar5;
            this.f38735w = pVar6;
            this.f38736x = z10;
            this.f38737y = f10;
            this.f38738z = pVar7;
            this.A = pVar8;
            this.B = wVar;
            this.C = i10;
            this.D = i11;
        }

        public final void a(y0.m mVar, int i10) {
            x1.a(this.f38728p, this.f38729q, this.f38730r, this.f38731s, this.f38732t, this.f38733u, this.f38734v, this.f38735w, this.f38736x, this.f38737y, this.f38738z, this.A, this.B, mVar, l2.a(this.C | 1), l2.a(this.D));
        }

        @Override // dn.p
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            a((y0.m) obj, ((Number) obj2).intValue());
            return rm.n0.f34904a;
        }
    }

    public static final void a(l1.i iVar, dn.p pVar, dn.p pVar2, dn.q qVar, dn.p pVar3, dn.p pVar4, dn.p pVar5, dn.p pVar6, boolean z10, float f10, dn.p pVar7, dn.p pVar8, e0.w wVar, y0.m mVar, int i10, int i11) {
        int i12;
        int i13;
        e0.w wVar2;
        int i14;
        float f11;
        float c10;
        float c11;
        y0.m r10 = mVar.r(-1830307184);
        if ((i10 & 6) == 0) {
            i12 = i10 | (r10.R(iVar) ? 4 : 2);
        } else {
            i12 = i10;
        }
        if ((i10 & 48) == 0) {
            i12 |= r10.m(pVar) ? 32 : 16;
        }
        if ((i10 & 384) == 0) {
            i12 |= r10.m(pVar2) ? 256 : 128;
        }
        if ((i10 & 3072) == 0) {
            i12 |= r10.m(qVar) ? 2048 : UserMetadata.MAX_ATTRIBUTE_SIZE;
        }
        if ((i10 & 24576) == 0) {
            i12 |= r10.m(pVar3) ? 16384 : UserMetadata.MAX_INTERNAL_KEY_SIZE;
        }
        if ((196608 & i10) == 0) {
            i12 |= r10.m(pVar4) ? 131072 : 65536;
        }
        if ((1572864 & i10) == 0) {
            i12 |= r10.m(pVar5) ? 1048576 : 524288;
        }
        if ((12582912 & i10) == 0) {
            i12 |= r10.m(pVar6) ? 8388608 : 4194304;
        }
        if ((100663296 & i10) == 0) {
            i12 |= r10.c(z10) ? 67108864 : 33554432;
        }
        if ((805306368 & i10) == 0) {
            i12 |= r10.h(f10) ? 536870912 : SQLiteDatabase.CREATE_IF_NECESSARY;
        }
        int i15 = i12;
        if ((i11 & 6) == 0) {
            i13 = i11 | (r10.m(pVar7) ? 4 : 2);
        } else {
            i13 = i11;
        }
        if ((i11 & 48) == 0) {
            i13 |= r10.m(pVar8) ? 32 : 16;
        }
        if ((i11 & 384) == 0) {
            wVar2 = wVar;
            i13 |= r10.R(wVar2) ? 256 : 128;
        } else {
            wVar2 = wVar;
        }
        int i16 = i13;
        if ((i15 & 306783379) == 306783378 && (i16 & 147) == 146 && r10.v()) {
            r10.A();
        } else {
            if (y0.p.H()) {
                y0.p.Q(-1830307184, i15, i16, "androidx.compose.material3.TextFieldLayout (TextField.kt:453)");
            }
            boolean z11 = ((1879048192 & i15) == 536870912) | ((234881024 & i15) == 67108864) | ((i16 & 896) == 256);
            Object f12 = r10.f();
            if (z11 || f12 == y0.m.f51621a.a()) {
                f12 = new y1(z10, f10, wVar2);
                r10.I(f12);
            }
            y1 y1Var = (y1) f12;
            c3.t tVar = (c3.t) r10.t(androidx.compose.ui.platform.c1.j());
            int a10 = y0.j.a(r10, 0);
            y0.y D = r10.D();
            l1.i e10 = l1.h.e(r10, iVar);
            g.a aVar = j2.g.f23616d;
            dn.a a11 = aVar.a();
            if (!(r10.w() instanceof y0.f)) {
                y0.j.c();
            }
            r10.u();
            if (r10.n()) {
                r10.o(a11);
            } else {
                r10.F();
            }
            y0.m a12 = d4.a(r10);
            d4.b(a12, y1Var, aVar.c());
            d4.b(a12, D, aVar.e());
            dn.p b10 = aVar.b();
            if (a12.n() || !kotlin.jvm.internal.t.b(a12.f(), Integer.valueOf(a10))) {
                a12.I(Integer.valueOf(a10));
                a12.l(Integer.valueOf(a10), b10);
            }
            d4.b(a12, e10, aVar.d());
            pVar7.invoke(r10, Integer.valueOf(i16 & 14));
            r10.S(1341517187);
            if (pVar3 != null) {
                l1.i f13 = androidx.compose.ui.layout.a.b(l1.i.f27362a, "Leading").f(w0.u.k());
                h2.e0 h10 = androidx.compose.foundation.layout.b.h(l1.c.f27332a.e(), false);
                int a13 = y0.j.a(r10, 0);
                y0.y D2 = r10.D();
                l1.i e11 = l1.h.e(r10, f13);
                dn.a a14 = aVar.a();
                if (!(r10.w() instanceof y0.f)) {
                    y0.j.c();
                }
                r10.u();
                if (r10.n()) {
                    r10.o(a14);
                } else {
                    r10.F();
                }
                y0.m a15 = d4.a(r10);
                d4.b(a15, h10, aVar.c());
                d4.b(a15, D2, aVar.e());
                dn.p b11 = aVar.b();
                if (a15.n() || !kotlin.jvm.internal.t.b(a15.f(), Integer.valueOf(a13))) {
                    a15.I(Integer.valueOf(a13));
                    a15.l(Integer.valueOf(a13), b11);
                }
                d4.b(a15, e11, aVar.d());
                androidx.compose.foundation.layout.d dVar = androidx.compose.foundation.layout.d.f1828a;
                pVar3.invoke(r10, Integer.valueOf((i15 >> 12) & 14));
                r10.O();
            }
            r10.H();
            r10.S(1341526310);
            if (pVar4 != null) {
                l1.i f14 = androidx.compose.ui.layout.a.b(l1.i.f27362a, "Trailing").f(w0.u.k());
                h2.e0 h11 = androidx.compose.foundation.layout.b.h(l1.c.f27332a.e(), false);
                int a16 = y0.j.a(r10, 0);
                y0.y D3 = r10.D();
                l1.i e12 = l1.h.e(r10, f14);
                dn.a a17 = aVar.a();
                if (!(r10.w() instanceof y0.f)) {
                    y0.j.c();
                }
                r10.u();
                if (r10.n()) {
                    r10.o(a17);
                } else {
                    r10.F();
                }
                y0.m a18 = d4.a(r10);
                d4.b(a18, h11, aVar.c());
                d4.b(a18, D3, aVar.e());
                dn.p b12 = aVar.b();
                if (a18.n() || !kotlin.jvm.internal.t.b(a18.f(), Integer.valueOf(a16))) {
                    a18.I(Integer.valueOf(a16));
                    a18.l(Integer.valueOf(a16), b12);
                }
                d4.b(a18, e12, aVar.d());
                androidx.compose.foundation.layout.d dVar2 = androidx.compose.foundation.layout.d.f1828a;
                pVar4.invoke(r10, Integer.valueOf((i15 >> 15) & 14));
                r10.O();
            }
            r10.H();
            float g10 = androidx.compose.foundation.layout.l.g(wVar2, tVar);
            float f15 = androidx.compose.foundation.layout.l.f(wVar2, tVar);
            if (pVar3 != null) {
                i14 = 0;
                c11 = jn.o.c(c3.h.t(g10 - w0.u.j()), c3.h.t(0));
                g10 = c3.h.t(c11);
            } else {
                i14 = 0;
            }
            if (pVar4 != null) {
                c10 = jn.o.c(c3.h.t(f15 - w0.u.j()), c3.h.t(i14));
                f15 = c3.h.t(c10);
            }
            r10.S(1341556924);
            if (pVar5 != null) {
                l1.i m10 = androidx.compose.foundation.layout.l.m(androidx.compose.foundation.layout.o.w(androidx.compose.foundation.layout.o.k(androidx.compose.ui.layout.a.b(l1.i.f27362a, "Prefix"), w0.u.o(), BitmapDescriptorFactory.HUE_RED, 2, null), null, false, 3, null), g10, BitmapDescriptorFactory.HUE_RED, w0.u.p(), BitmapDescriptorFactory.HUE_RED, 10, null);
                h2.e0 h12 = androidx.compose.foundation.layout.b.h(l1.c.f27332a.o(), false);
                int a19 = y0.j.a(r10, 0);
                y0.y D4 = r10.D();
                l1.i e13 = l1.h.e(r10, m10);
                dn.a a20 = aVar.a();
                if (!(r10.w() instanceof y0.f)) {
                    y0.j.c();
                }
                r10.u();
                if (r10.n()) {
                    r10.o(a20);
                } else {
                    r10.F();
                }
                y0.m a21 = d4.a(r10);
                d4.b(a21, h12, aVar.c());
                d4.b(a21, D4, aVar.e());
                dn.p b13 = aVar.b();
                if (a21.n() || !kotlin.jvm.internal.t.b(a21.f(), Integer.valueOf(a19))) {
                    a21.I(Integer.valueOf(a19));
                    a21.l(Integer.valueOf(a19), b13);
                }
                d4.b(a21, e13, aVar.d());
                androidx.compose.foundation.layout.d dVar3 = androidx.compose.foundation.layout.d.f1828a;
                pVar5.invoke(r10, Integer.valueOf((i15 >> 18) & 14));
                r10.O();
            }
            r10.H();
            r10.S(1341568890);
            if (pVar6 != null) {
                l1.i m11 = androidx.compose.foundation.layout.l.m(androidx.compose.foundation.layout.o.w(androidx.compose.foundation.layout.o.k(androidx.compose.ui.layout.a.b(l1.i.f27362a, "Suffix"), w0.u.o(), BitmapDescriptorFactory.HUE_RED, 2, null), null, false, 3, null), w0.u.p(), BitmapDescriptorFactory.HUE_RED, f15, BitmapDescriptorFactory.HUE_RED, 10, null);
                h2.e0 h13 = androidx.compose.foundation.layout.b.h(l1.c.f27332a.o(), false);
                int a22 = y0.j.a(r10, 0);
                y0.y D5 = r10.D();
                l1.i e14 = l1.h.e(r10, m11);
                dn.a a23 = aVar.a();
                if (!(r10.w() instanceof y0.f)) {
                    y0.j.c();
                }
                r10.u();
                if (r10.n()) {
                    r10.o(a23);
                } else {
                    r10.F();
                }
                y0.m a24 = d4.a(r10);
                d4.b(a24, h13, aVar.c());
                d4.b(a24, D5, aVar.e());
                dn.p b14 = aVar.b();
                if (a24.n() || !kotlin.jvm.internal.t.b(a24.f(), Integer.valueOf(a22))) {
                    a24.I(Integer.valueOf(a22));
                    a24.l(Integer.valueOf(a22), b14);
                }
                d4.b(a24, e14, aVar.d());
                androidx.compose.foundation.layout.d dVar4 = androidx.compose.foundation.layout.d.f1828a;
                pVar6.invoke(r10, Integer.valueOf((i15 >> 21) & 14));
                r10.O();
            }
            r10.H();
            r10.S(1341581092);
            if (pVar2 != null) {
                l1.i m12 = androidx.compose.foundation.layout.l.m(androidx.compose.foundation.layout.o.w(androidx.compose.foundation.layout.o.k(androidx.compose.ui.layout.a.b(l1.i.f27362a, Label.FEATURE_TYPE), c3.i.c(w0.u.o(), w0.u.m(), f10), BitmapDescriptorFactory.HUE_RED, 2, null), null, false, 3, null), g10, BitmapDescriptorFactory.HUE_RED, f15, BitmapDescriptorFactory.HUE_RED, 10, null);
                h2.e0 h14 = androidx.compose.foundation.layout.b.h(l1.c.f27332a.o(), false);
                int a25 = y0.j.a(r10, 0);
                y0.y D6 = r10.D();
                l1.i e15 = l1.h.e(r10, m12);
                dn.a a26 = aVar.a();
                f11 = g10;
                if (!(r10.w() instanceof y0.f)) {
                    y0.j.c();
                }
                r10.u();
                if (r10.n()) {
                    r10.o(a26);
                } else {
                    r10.F();
                }
                y0.m a27 = d4.a(r10);
                d4.b(a27, h14, aVar.c());
                d4.b(a27, D6, aVar.e());
                dn.p b15 = aVar.b();
                if (a27.n() || !kotlin.jvm.internal.t.b(a27.f(), Integer.valueOf(a25))) {
                    a27.I(Integer.valueOf(a25));
                    a27.l(Integer.valueOf(a25), b15);
                }
                d4.b(a27, e15, aVar.d());
                androidx.compose.foundation.layout.d dVar5 = androidx.compose.foundation.layout.d.f1828a;
                pVar2.invoke(r10, Integer.valueOf((i15 >> 6) & 14));
                r10.O();
            } else {
                f11 = g10;
            }
            r10.H();
            i.a aVar2 = l1.i.f27362a;
            l1.i w10 = androidx.compose.foundation.layout.o.w(androidx.compose.foundation.layout.o.k(aVar2, w0.u.o(), BitmapDescriptorFactory.HUE_RED, 2, null), null, false, 3, null);
            float t10 = pVar5 == null ? f11 : c3.h.t(0);
            if (pVar6 != null) {
                f15 = c3.h.t(0);
            }
            l1.i m13 = androidx.compose.foundation.layout.l.m(w10, t10, BitmapDescriptorFactory.HUE_RED, f15, BitmapDescriptorFactory.HUE_RED, 10, null);
            r10.S(1341611627);
            if (qVar != null) {
                qVar.invoke(androidx.compose.ui.layout.a.b(aVar2, "Hint").f(m13), r10, Integer.valueOf((i15 >> 6) & 112));
            }
            r10.H();
            l1.i f16 = androidx.compose.ui.layout.a.b(aVar2, "TextField").f(m13);
            c.a aVar3 = l1.c.f27332a;
            h2.e0 h15 = androidx.compose.foundation.layout.b.h(aVar3.o(), true);
            int a28 = y0.j.a(r10, 0);
            y0.y D7 = r10.D();
            l1.i e16 = l1.h.e(r10, f16);
            dn.a a29 = aVar.a();
            if (!(r10.w() instanceof y0.f)) {
                y0.j.c();
            }
            r10.u();
            if (r10.n()) {
                r10.o(a29);
            } else {
                r10.F();
            }
            y0.m a30 = d4.a(r10);
            d4.b(a30, h15, aVar.c());
            d4.b(a30, D7, aVar.e());
            dn.p b16 = aVar.b();
            if (a30.n() || !kotlin.jvm.internal.t.b(a30.f(), Integer.valueOf(a28))) {
                a30.I(Integer.valueOf(a28));
                a30.l(Integer.valueOf(a28), b16);
            }
            d4.b(a30, e16, aVar.d());
            androidx.compose.foundation.layout.d dVar6 = androidx.compose.foundation.layout.d.f1828a;
            pVar.invoke(r10, Integer.valueOf((i15 >> 3) & 14));
            r10.O();
            r10.S(1341622624);
            if (pVar8 != null) {
                l1.i h16 = androidx.compose.foundation.layout.l.h(androidx.compose.foundation.layout.o.w(androidx.compose.foundation.layout.o.k(androidx.compose.ui.layout.a.b(aVar2, "Supporting"), w0.u.n(), BitmapDescriptorFactory.HUE_RED, 2, null), null, false, 3, null), w1.b(w1.f38664a, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 15, null));
                h2.e0 h17 = androidx.compose.foundation.layout.b.h(aVar3.o(), false);
                int a31 = y0.j.a(r10, 0);
                y0.y D8 = r10.D();
                l1.i e17 = l1.h.e(r10, h16);
                dn.a a32 = aVar.a();
                if (!(r10.w() instanceof y0.f)) {
                    y0.j.c();
                }
                r10.u();
                if (r10.n()) {
                    r10.o(a32);
                } else {
                    r10.F();
                }
                y0.m a33 = d4.a(r10);
                d4.b(a33, h17, aVar.c());
                d4.b(a33, D8, aVar.e());
                dn.p b17 = aVar.b();
                if (a33.n() || !kotlin.jvm.internal.t.b(a33.f(), Integer.valueOf(a31))) {
                    a33.I(Integer.valueOf(a31));
                    a33.l(Integer.valueOf(a31), b17);
                }
                d4.b(a33, e17, aVar.d());
                pVar8.invoke(r10, Integer.valueOf((i16 >> 3) & 14));
                r10.O();
            }
            r10.H();
            r10.O();
            if (y0.p.H()) {
                y0.p.P();
            }
        }
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new a(iVar, pVar, pVar2, qVar, pVar3, pVar4, pVar5, pVar6, z10, f10, pVar7, pVar8, wVar, i10, i11));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final int g(int i10, int i11, int i12, int i13, int i14, int i15, int i16, int i17, float f10, long j10, float f11, e0.w wVar) {
        int i18;
        int c10;
        boolean z10 = i11 > 0;
        float t10 = c3.h.t(wVar.c() + wVar.a()) * f11;
        if (z10) {
            t10 = e3.b.b(c3.h.t(w0.u.r() * 2) * f11, t10, f10);
        }
        i18 = um.d.i(i10, i16, i14, i15, e3.b.c(i11, 0, f10));
        float c11 = t10 + e3.b.c(0, i11, f10) + i18;
        int m10 = c3.b.m(j10);
        c10 = fn.c.c(c11);
        return Math.max(m10, Math.max(i12, Math.max(i13, c10)) + i17);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final int h(int i10, int i11, int i12, int i13, int i14, int i15, int i16, long j10) {
        int i17 = i12 + i13;
        return Math.max(i10 + Math.max(i14 + i17, Math.max(i16 + i17, i15)) + i11, c3.b.n(j10));
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void i(p0.a aVar, int i10, int i11, h2.p0 p0Var, h2.p0 p0Var2, h2.p0 p0Var3, h2.p0 p0Var4, h2.p0 p0Var5, h2.p0 p0Var6, h2.p0 p0Var7, h2.p0 p0Var8, h2.p0 p0Var9, boolean z10, int i12, int i13, float f10, float f11) {
        int c10;
        p0.a.j(aVar, p0Var8, c3.n.f7423b.a(), BitmapDescriptorFactory.HUE_RED, 2, null);
        int t10 = i11 - w0.u.t(p0Var9);
        if (p0Var4 != null) {
            p0.a.l(aVar, p0Var4, 0, l1.c.f27332a.i().a(p0Var4.F0(), t10), BitmapDescriptorFactory.HUE_RED, 4, null);
        }
        if (p0Var2 != null) {
            int a10 = z10 ? l1.c.f27332a.i().a(p0Var2.F0(), t10) : fn.c.c(w0.u.r() * f11);
            c10 = fn.c.c((a10 - i12) * f10);
            p0.a.l(aVar, p0Var2, w0.u.v(p0Var4), a10 - c10, BitmapDescriptorFactory.HUE_RED, 4, null);
        }
        if (p0Var6 != null) {
            p0.a.l(aVar, p0Var6, w0.u.v(p0Var4), i13, BitmapDescriptorFactory.HUE_RED, 4, null);
        }
        int v10 = w0.u.v(p0Var4) + w0.u.v(p0Var6);
        p0.a.l(aVar, p0Var, v10, i13, BitmapDescriptorFactory.HUE_RED, 4, null);
        if (p0Var3 != null) {
            p0.a.l(aVar, p0Var3, v10, i13, BitmapDescriptorFactory.HUE_RED, 4, null);
        }
        if (p0Var7 != null) {
            p0.a.l(aVar, p0Var7, (i10 - w0.u.v(p0Var5)) - p0Var7.S0(), i13, BitmapDescriptorFactory.HUE_RED, 4, null);
        }
        if (p0Var5 != null) {
            p0.a.l(aVar, p0Var5, i10 - p0Var5.S0(), l1.c.f27332a.i().a(p0Var5.F0(), t10), BitmapDescriptorFactory.HUE_RED, 4, null);
        }
        if (p0Var9 != null) {
            p0.a.l(aVar, p0Var9, 0, t10, BitmapDescriptorFactory.HUE_RED, 4, null);
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void j(p0.a aVar, int i10, int i11, h2.p0 p0Var, h2.p0 p0Var2, h2.p0 p0Var3, h2.p0 p0Var4, h2.p0 p0Var5, h2.p0 p0Var6, h2.p0 p0Var7, h2.p0 p0Var8, boolean z10, float f10, e0.w wVar) {
        int c10;
        p0.a.j(aVar, p0Var7, c3.n.f7423b.a(), BitmapDescriptorFactory.HUE_RED, 2, null);
        int t10 = i11 - w0.u.t(p0Var8);
        c10 = fn.c.c(wVar.c() * f10);
        if (p0Var3 != null) {
            p0.a.l(aVar, p0Var3, 0, l1.c.f27332a.i().a(p0Var3.F0(), t10), BitmapDescriptorFactory.HUE_RED, 4, null);
        }
        if (p0Var5 != null) {
            p0.a.l(aVar, p0Var5, w0.u.v(p0Var3), k(z10, t10, c10, p0Var5), BitmapDescriptorFactory.HUE_RED, 4, null);
        }
        int v10 = w0.u.v(p0Var3) + w0.u.v(p0Var5);
        p0.a.l(aVar, p0Var, v10, k(z10, t10, c10, p0Var), BitmapDescriptorFactory.HUE_RED, 4, null);
        if (p0Var2 != null) {
            p0.a.l(aVar, p0Var2, v10, k(z10, t10, c10, p0Var2), BitmapDescriptorFactory.HUE_RED, 4, null);
        }
        if (p0Var6 != null) {
            p0.a.l(aVar, p0Var6, (i10 - w0.u.v(p0Var4)) - p0Var6.S0(), k(z10, t10, c10, p0Var6), BitmapDescriptorFactory.HUE_RED, 4, null);
        }
        if (p0Var4 != null) {
            p0.a.l(aVar, p0Var4, i10 - p0Var4.S0(), l1.c.f27332a.i().a(p0Var4.F0(), t10), BitmapDescriptorFactory.HUE_RED, 4, null);
        }
        if (p0Var8 != null) {
            p0.a.l(aVar, p0Var8, 0, t10, BitmapDescriptorFactory.HUE_RED, 4, null);
        }
    }

    private static final int k(boolean z10, int i10, int i11, h2.p0 p0Var) {
        return z10 ? l1.c.f27332a.i().a(p0Var.F0(), i10) : i11;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final int l(int i10, int i11) {
        return i10 == Integer.MAX_VALUE ? i10 : i10 - i11;
    }
}
