package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.ww, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2860ww extends AbstractC2136pK {
    public C2449sg0 A;
    public C2449sg0 B;
    public C2449sg0 C;
    public C2955xw D;
    public C2197px E;
    public NC F;
    public C2006nw G;
    public long H = androidx.compose.animation.c.a;
    public InterfaceC2584u2 I;
    public final C2765vw J;
    public final C2765vw K;
    public C3114zg0 z;

    public C2860ww(C3114zg0 c3114zg0, C2449sg0 c2449sg0, C2449sg0 c2449sg02, C2449sg0 c2449sg03, C2955xw c2955xw, C2197px c2197px, NC nc, C2006nw c2006nw) {
        this.z = c3114zg0;
        this.A = c2449sg0;
        this.B = c2449sg02;
        this.C = c2449sg03;
        this.D = c2955xw;
        this.E = c2197px;
        this.F = nc;
        this.G = c2006nw;
        AbstractC0842bm.b(0, 0, 15);
        this.J = new C2765vw(this, 0);
        this.K = new C2765vw(this, 1);
    }

    public final InterfaceC2584u2 H0() {
        InterfaceC2584u2 interfaceC2584u2;
        InterfaceC2584u2 interfaceC2584u22;
        if (this.z.f().a(EnumC1911mw.l, EnumC1911mw.m)) {
            C0629Yg c0629Yg = this.D.a.c;
            if (c0629Yg != null && (interfaceC2584u22 = c0629Yg.a) != null) {
                return interfaceC2584u22;
            }
            C0629Yg c0629Yg2 = this.E.a.c;
            if (c0629Yg2 != null) {
                return c0629Yg2.a;
            }
            return null;
        }
        C0629Yg c0629Yg3 = this.E.a.c;
        if (c0629Yg3 != null && (interfaceC2584u2 = c0629Yg3.a) != null) {
            return interfaceC2584u2;
        }
        C0629Yg c0629Yg4 = this.D.a.c;
        if (c0629Yg4 != null) {
            return c0629Yg4.a;
        }
        return null;
    }

    @Override // o.InterfaceC1851mK
    public final InterfaceC2329rO a(InterfaceC2424sO interfaceC2424sO, InterfaceC1760lO interfaceC1760lO, long j) {
        long j2;
        if (this.z.c() == this.z.d.getValue()) {
            this.I = null;
        } else if (this.I == null) {
            InterfaceC2584u2 interfaceC2584u2H0 = H0();
            if (interfaceC2584u2H0 == null) {
                interfaceC2584u2H0 = C0669Zu.m;
            }
            this.I = interfaceC2584u2H0;
        }
        boolean zW = interfaceC2424sO.w();
        C0358Nv c0358Nv = C0358Nv.l;
        if (zW) {
            VW vwC = interfaceC1760lO.c(j);
            long j3 = (vwC.l << 32) | (vwC.m & 4294967295L);
            this.H = j3;
            return interfaceC2424sO.H((int) (j3 >> 32), (int) (4294967295L & j3), c0358Nv, new C0973d5(vwC, 4));
        }
        if (!((Boolean) this.F.a()).booleanValue()) {
            VW vwC2 = interfaceC1760lO.c(j);
            return interfaceC2424sO.H(vwC2.l, vwC2.m, c0358Nv, new C0973d5(vwC2, 5));
        }
        C2006nw c2006nw = this.G;
        C2449sg0 c2449sg0 = c2006nw.a;
        C2449sg0 c2449sg02 = c2006nw.b;
        C3114zg0 c3114zg0 = c2006nw.c;
        C2955xw c2955xw = c2006nw.d;
        C2197px c2197px = c2006nw.e;
        C2449sg0 c2449sg03 = c2006nw.f;
        C2354rg0 c2354rg0A = c2449sg0 != null ? c2449sg0.a(new C2101ow(c2955xw, c2197px, 0), new C2101ow(c2955xw, c2197px, 1)) : null;
        C2354rg0 c2354rg0A2 = c2449sg02 != null ? c2449sg02.a(new C2101ow(c2955xw, c2197px, 2), new C2101ow(c2955xw, c2197px, 3)) : null;
        if (c3114zg0.c() == EnumC1911mw.l) {
            Bg0 bg0 = c2197px.a;
        } else {
            Bg0 bg02 = c2197px.a;
        }
        V5 v5 = new V5(c2354rg0A, c2354rg0A2, c2449sg03 != null ? c2449sg03.a(C1160f3.P, new V5(null, c2955xw, c2197px, 4)) : null, 3);
        VW vwC3 = interfaceC1760lO.c(j);
        long j4 = (vwC3.m & 4294967295L) | (vwC3.l << 32);
        long j5 = !C1470iI.a(this.H, androidx.compose.animation.c.a) ? this.H : j4;
        C2449sg0 c2449sg04 = this.A;
        C2354rg0 c2354rg0A3 = c2449sg04 != null ? c2449sg04.a(this.J, new C2670uw(this, j5, 0)) : null;
        if (c2354rg0A3 != null) {
            j4 = ((C1470iI) c2354rg0A3.getValue()).a;
        }
        long jD = AbstractC0842bm.d(j, j4);
        C2449sg0 c2449sg05 = this.B;
        long jA = 0;
        long j6 = c2449sg05 != null ? ((C0704aI) c2449sg05.a(C2291qw.f694o, new C2670uw(this, j5, 1)).getValue()).a : 0L;
        C2449sg0 c2449sg06 = this.C;
        long j7 = c2449sg06 != null ? ((C0704aI) c2449sg06.a(this.K, new C2670uw(this, j5, 2)).getValue()).a : 0L;
        InterfaceC2584u2 interfaceC2584u2 = this.I;
        if (interfaceC2584u2 != null) {
            long j8 = j5;
            j2 = j7;
            jA = interfaceC2584u2.a(j8, jD, EnumC1280gK.l);
        } else {
            j2 = j7;
        }
        return interfaceC2424sO.H((int) (jD >> 32), (int) (jD & 4294967295L), c0358Nv, new C2575tw(vwC3, C0704aI.c(jA, j2), j6, v5));
    }

    @Override // o.LP
    public final void z0() {
        this.H = androidx.compose.animation.c.a;
    }
}
