package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Ld0 implements SC {
    public final /* synthetic */ C0733af0 l;
    public final /* synthetic */ C0733af0 m;
    public final /* synthetic */ InterfaceC3007ya0 n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ InterfaceC3007ya0 f211o;
    public final /* synthetic */ boolean p;
    public final /* synthetic */ InterfaceC3007ya0 q;
    public final /* synthetic */ TC r;
    public final /* synthetic */ Nd0 s;

    public Ld0(C0733af0 c0733af0, C0733af0 c0733af02, C2734vg0 c2734vg0, C2734vg0 c2734vg02, boolean z, C2734vg0 c2734vg03, TC tc, Nd0 nd0) {
        this.l = c0733af0;
        this.m = c0733af02;
        this.n = c2734vg0;
        this.f211o = c2734vg02;
        this.p = z;
        this.q = c2734vg03;
        this.r = tc;
        this.s = nd0;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        C2433sX c2433sX;
        C1579jX c1579jX;
        C0321Mk c0321Mk = (C0321Mk) obj;
        int iIntValue = ((Number) obj2).intValue();
        if (c0321Mk.N(iIntValue & 1, (iIntValue & 3) != 2)) {
            float fFloatValue = ((Number) this.n.getValue()).floatValue();
            C0733af0 c0733af0 = this.l;
            Y90 y90 = c0733af0.a;
            C0733af0 c0733af02 = this.m;
            Y90 y902 = c0733af02.a;
            InterfaceC2920xe0 interfaceC2920xe0 = Z90.d;
            InterfaceC2920xe0 interfaceC2920xe02 = y90.a;
            InterfaceC2920xe0 interfaceC2920xe03 = y902.a;
            boolean z = interfaceC2920xe02 instanceof C0653Ze;
            InterfaceC2920xe0 c0653Ze = C2825we0.a;
            if (!z && !(interfaceC2920xe03 instanceof C0653Ze)) {
                long jW = AbstractC0752ap.W(fFloatValue, interfaceC2920xe02.b(), interfaceC2920xe03.b());
                if (jW != 16) {
                    c0653Ze = new C0475Si(jW);
                }
            } else if (z && (interfaceC2920xe03 instanceof C0653Ze)) {
                C0653Ze c0653Ze2 = (C0653Ze) interfaceC2920xe02;
                C0653Ze c0653Ze3 = (C0653Ze) interfaceC2920xe03;
                AbstractC0601Xe abstractC0601Xe = (AbstractC0601Xe) Z90.b(c0653Ze2.a, c0653Ze3.a, fFloatValue);
                float fA = AbstractC0940cn0.A(c0653Ze2.b, c0653Ze3.b, fFloatValue);
                if (abstractC0601Xe != null) {
                    if (abstractC0601Xe instanceof Q90) {
                        long jH = YT.H(fA, ((Q90) abstractC0601Xe).a);
                        if (jH != 16) {
                            c0653Ze = new C0475Si(jH);
                        }
                    } else {
                        if (!(abstractC0601Xe instanceof G70)) {
                            throw new C2170pj();
                        }
                        c0653Ze = new C0653Ze((G70) abstractC0601Xe, fA);
                    }
                }
            } else {
                c0653Ze = (InterfaceC2920xe0) Z90.b(interfaceC2920xe02, interfaceC2920xe03, fFloatValue);
            }
            InterfaceC2920xe0 interfaceC2920xe04 = c0653Ze;
            AbstractC1397hc0 abstractC1397hc0 = (AbstractC1397hc0) Z90.b(y90.f, y902.f, fFloatValue);
            long jC = Z90.c(fFloatValue, y90.b, y902.b);
            OA oa = y90.c;
            if (oa == null) {
                oa = OA.n;
            }
            OA oa2 = y902.c;
            if (oa2 == null) {
                oa2 = OA.n;
            }
            OA oa3 = new OA(AbstractC0940cn0.k(AbstractC0940cn0.B(fFloatValue, oa.l, oa2.l), 1, 1000));
            MA ma = (MA) Z90.b(y90.d, y902.d, fFloatValue);
            NA na = (NA) Z90.b(y90.e, y902.e, fFloatValue);
            String str = (String) Z90.b(y90.g, y902.g, fFloatValue);
            long jC2 = Z90.c(fFloatValue, y90.h, y902.h);
            C1494id c1494id = y90.i;
            float f = c1494id != null ? c1494id.a : 0.0f;
            C1494id c1494id2 = y902.i;
            float fA2 = AbstractC0940cn0.A(f, c1494id2 != null ? c1494id2.a : 0.0f, fFloatValue);
            C3015ye0 c3015ye0 = y90.j;
            C3015ye0 c3015ye02 = C3015ye0.c;
            if (c3015ye0 == null) {
                c3015ye0 = c3015ye02;
            }
            C3015ye0 c3015ye03 = y902.j;
            if (c3015ye03 != null) {
                c3015ye02 = c3015ye03;
            }
            C3015ye0 c3015ye04 = new C3015ye0(AbstractC0940cn0.A(c3015ye0.a, c3015ye02.a, fFloatValue), AbstractC0940cn0.A(c3015ye0.b, c3015ye02.b, fFloatValue));
            C2138pM c2138pM = (C2138pM) Z90.b(y90.k, y902.k, fFloatValue);
            long jW2 = AbstractC0752ap.W(fFloatValue, y90.l, y902.l);
            C2823wd0 c2823wd0 = (C2823wd0) Z90.b(y90.m, y902.m, fFloatValue);
            I70 i70 = y90.n;
            if (i70 == null) {
                i70 = new I70();
            }
            I70 i702 = y902.n;
            if (i702 == null) {
                i702 = new I70();
            }
            long jW3 = AbstractC0752ap.W(fFloatValue, i70.a, i702.a);
            long j = i70.b;
            long j2 = i702.b;
            I70 i703 = new I70(AbstractC0940cn0.A(i70.c, i702.c, fFloatValue), jW3, (Float.floatToRawIntBits(AbstractC0940cn0.A(Float.intBitsToFloat((int) (j >> 32)), Float.intBitsToFloat((int) (j2 >> 32)), fFloatValue)) << 32) | (Float.floatToRawIntBits(AbstractC0940cn0.A(Float.intBitsToFloat((int) (j & 4294967295L)), Float.intBitsToFloat((int) (j2 & 4294967295L)), fFloatValue)) & 4294967295L));
            C2433sX c2433sX2 = y90.f421o;
            C2433sX c2433sX3 = y902.f421o;
            if (c2433sX2 == null && c2433sX3 == null) {
                c2433sX = null;
            } else {
                if (c2433sX2 == null) {
                    c2433sX2 = C2433sX.a;
                }
                c2433sX = c2433sX2;
            }
            Y90 y903 = new Y90(interfaceC2920xe04, jC, oa3, ma, na, abstractC1397hc0, str, jC2, new C1494id(fA2), c3015ye04, c2138pM, jW2, c2823wd0, i703, c2433sX, (AbstractC2190pt) Z90.b(y90.p, y902.p, fFloatValue));
            FV fv = c0733af0.b;
            FV fv2 = c0733af02.b;
            int i = GV.b;
            int i2 = ((Yc0) Z90.b(new Yc0(fv.a), new Yc0(fv2.a), fFloatValue)).a;
            int i3 = ((C3108zd0) Z90.b(new C3108zd0(fv.b), new C3108zd0(fv2.b), fFloatValue)).a;
            long jC3 = Z90.c(fFloatValue, fv.c, fv2.c);
            C3110ze0 c3110ze0 = fv.d;
            if (c3110ze0 == null) {
                c3110ze0 = C3110ze0.c;
            }
            C3110ze0 c3110ze02 = fv2.d;
            if (c3110ze02 == null) {
                c3110ze02 = C3110ze0.c;
            }
            C3110ze0 c3110ze03 = new C3110ze0(Z90.c(fFloatValue, c3110ze0.a, c3110ze02.a), Z90.c(fFloatValue, c3110ze0.b, c3110ze02.b));
            C1579jX c1579jX2 = fv.e;
            C1579jX c1579jX3 = fv2.e;
            if (c1579jX2 == null && c1579jX3 == null) {
                c1579jX = null;
            } else {
                C1579jX c1579jX4 = C1579jX.b;
                if (c1579jX2 == null) {
                    c1579jX2 = c1579jX4;
                }
                boolean z2 = c1579jX2.a;
                if (c1579jX3 == null) {
                    c1579jX3 = c1579jX4;
                }
                boolean z3 = c1579jX3.a;
                if (z2 == z3) {
                    c1579jX = c1579jX2;
                } else {
                    ((C0047Bv) Z90.b(new C0047Bv(), new C0047Bv(), fFloatValue)).getClass();
                    c1579jX = new C1579jX(((Boolean) Z90.b(Boolean.valueOf(z2), Boolean.valueOf(z3), fFloatValue)).booleanValue());
                }
            }
            C0733af0 c0733af03 = new C0733af0(y903, new FV(i2, i3, jC3, c3110ze03, c1579jX, (C1947nL) Z90.b(fv.f, fv2.f, fFloatValue), ((C1473iL) Z90.b(new C1473iL(fv.g), new C1473iL(fv2.g), fFloatValue)).a, ((C0798bG) Z90.b(new C0798bG(fv.h), new C0798bG(fv2.h), fFloatValue)).a, (Se0) Z90.b(fv.i, fv2.i, fFloatValue)));
            if (this.p) {
                c0733af03 = C0733af0.a(c0733af03, ((C0190Hi) this.q.getValue()).a, 0L, null, null, 0L, 0L, null, 16777214);
            }
            Qd0.b(((C0190Hi) this.f211o.getValue()).a, c0733af03, C2887xC.y(1157484991, new C2731vf(this.r, this.s), c0321Mk), c0321Mk, 384);
        } else {
            c0321Mk.Q();
        }
        return Oh0.a;
    }
}
