package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.uK, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2610uK implements InterfaceC2095ot {
    public final C3113zg l = new C3113zg();
    public InterfaceC1905mt m;

    @Override // o.InterfaceC2281qr
    public final float B(float f) {
        return this.l.e() * f;
    }

    @Override // o.InterfaceC2095ot
    public final C3126zm0 E() {
        return this.l.m;
    }

    @Override // o.InterfaceC2095ot
    public final void F(O4 o4, long j, AbstractC2190pt abstractC2190pt) {
        this.l.F(o4, j, abstractC2190pt);
    }

    @Override // o.InterfaceC2281qr
    public final float J(long j) {
        return this.l.J(j);
    }

    @Override // o.InterfaceC2095ot
    public final void M(C2493t4 c2493t4, long j, long j2, long j3, float f, C0444Rd c0444Rd, int i) {
        this.l.M(c2493t4, j, j2, j3, f, c0444Rd, i);
    }

    @Override // o.InterfaceC2281qr
    public final int N(float f) {
        return this.l.N(f);
    }

    @Override // o.InterfaceC2095ot
    public final void P(O4 o4, AbstractC0601Xe abstractC0601Xe, float f, AbstractC2190pt abstractC2190pt, int i) {
        this.l.P(o4, abstractC0601Xe, f, abstractC2190pt, i);
    }

    @Override // o.InterfaceC2095ot
    public final long Q() {
        return this.l.Q();
    }

    @Override // o.InterfaceC2281qr
    public final long T(long j) {
        return this.l.T(j);
    }

    @Override // o.InterfaceC2281qr
    public final float X(long j) {
        return this.l.X(j);
    }

    public final void a() {
        C3113zg c3113zg = this.l;
        InterfaceC2923xg interfaceC2923xgX = c3113zg.m.x();
        InterfaceC0535Uq interfaceC0535Uq = this.m;
        if (interfaceC0535Uq == null) {
            throw AbstractC2462sn.q("Attempting to drawContent for a `null` node. This usually means that a call to ContentDrawScope#drawContent() has been captured inside a lambda, and is being invoked outside of the draw pass. Capturing the scope this way is unsupported - if you are trying to record drawContent with graphicsLayer.record(), make sure you are using the GraphicsLayer#record function within DrawScope, instead of the member function on GraphicsLayer.");
        }
        LP lp = (LP) interfaceC0535Uq;
        LP lpI = lp.l.q;
        if (lpI == null || (lpI.f209o & 4) == 0) {
            lpI = null;
        } else {
            while (lpI != null) {
                int i = lpI.n;
                if ((i & 2) != 0) {
                    break;
                } else if ((i & 4) != 0) {
                    break;
                } else {
                    lpI = lpI.q;
                }
            }
            lpI = null;
        }
        if (lpI == null) {
            AbstractC2239qS abstractC2239qSQ = AbstractC2539te.Q(interfaceC0535Uq, 4);
            if (abstractC2239qSQ.P0() == lp.l) {
                abstractC2239qSQ = abstractC2239qSQ.A;
            }
            abstractC2239qSQ.e1(interfaceC2923xgX, (C1082eE) c3113zg.m.n);
            return;
        }
        C1479iR c1479iR = null;
        while (lpI != null) {
            if (lpI instanceof InterfaceC1905mt) {
                InterfaceC1905mt interfaceC1905mt = (InterfaceC1905mt) lpI;
                C1082eE c1082eE = (C1082eE) c3113zg.m.n;
                AbstractC2239qS abstractC2239qSQ2 = AbstractC2539te.Q(interfaceC1905mt, 4);
                long jO = C1884mi0.O(abstractC2239qSQ2.n);
                C2420sK c2420sK = abstractC2239qSQ2.z;
                c2420sK.getClass();
                ((C2207q3) AbstractC2705vK.a(c2420sK)).getSharedDrawScope().b(interfaceC2923xgX, jO, abstractC2239qSQ2, interfaceC1905mt, c1082eE);
            } else if ((lpI.n & 4) != 0 && (lpI instanceof AbstractC0561Vq)) {
                int i2 = 0;
                for (LP lp2 = ((AbstractC0561Vq) lpI).A; lp2 != null; lp2 = lp2.q) {
                    if ((lp2.n & 4) != 0) {
                        i2++;
                        if (i2 == 1) {
                            lpI = lp2;
                        } else {
                            if (c1479iR == null) {
                                c1479iR = new C1479iR(new LP[16]);
                            }
                            if (lpI != null) {
                                c1479iR.b(lpI);
                                lpI = null;
                            }
                            c1479iR.b(lp2);
                        }
                    }
                }
                if (i2 == 1) {
                }
            }
            lpI = AbstractC2539te.i(c1479iR);
        }
    }

    public final void b(InterfaceC2923xg interfaceC2923xg, long j, AbstractC2239qS abstractC2239qS, InterfaceC1905mt interfaceC1905mt, C1082eE c1082eE) {
        InterfaceC1905mt interfaceC1905mt2 = this.m;
        this.m = interfaceC1905mt;
        EnumC1280gK enumC1280gK = abstractC2239qS.z.J;
        C3113zg c3113zg = this.l;
        C3126zm0 c3126zm0 = c3113zg.m;
        C3018yg c3018yg = ((C3113zg) c3126zm0.f831o).l;
        InterfaceC2281qr interfaceC2281qr = c3018yg.a;
        EnumC1280gK enumC1280gK2 = c3018yg.b;
        InterfaceC2923xg interfaceC2923xgX = c3126zm0.x();
        C3126zm0 c3126zm02 = c3113zg.m;
        long jD = c3126zm02.D();
        C1082eE c1082eE2 = (C1082eE) c3126zm02.n;
        c3126zm02.R(abstractC2239qS);
        c3126zm02.S(enumC1280gK);
        c3126zm02.Q(interfaceC2923xg);
        c3126zm02.T(j);
        c3126zm02.n = c1082eE;
        interfaceC2923xg.n();
        try {
            interfaceC1905mt.r(this);
            interfaceC2923xg.k();
            c3126zm02.R(interfaceC2281qr);
            c3126zm02.S(enumC1280gK2);
            c3126zm02.Q(interfaceC2923xgX);
            c3126zm02.T(jD);
            c3126zm02.n = c1082eE2;
            this.m = interfaceC1905mt2;
        } catch (Throwable th) {
            interfaceC2923xg.k();
            c3126zm02.R(interfaceC2281qr);
            c3126zm02.S(enumC1280gK2);
            c3126zm02.Q(interfaceC2923xgX);
            c3126zm02.T(jD);
            c3126zm02.n = c1082eE2;
            throw th;
        }
    }

    public final void c(AbstractC0601Xe abstractC0601Xe, long j, long j2, float f, AbstractC2190pt abstractC2190pt) {
        C3113zg c3113zg = this.l;
        int i = (int) (j >> 32);
        int i2 = (int) (j & 4294967295L);
        c3113zg.l.c.l(Float.intBitsToFloat(i), Float.intBitsToFloat(i2), Float.intBitsToFloat((int) (j2 >> 32)) + Float.intBitsToFloat(i), Float.intBitsToFloat(i2) + Float.intBitsToFloat((int) (j2 & 4294967295L)), c3113zg.b(abstractC0601Xe, abstractC2190pt, f, null, 3, 1));
    }

    public final void d(AbstractC0601Xe abstractC0601Xe, long j, long j2, long j3, float f, AbstractC2190pt abstractC2190pt) {
        C3113zg c3113zg = this.l;
        int i = (int) (j >> 32);
        int i2 = (int) (j & 4294967295L);
        c3113zg.l.c.q(Float.intBitsToFloat(i), Float.intBitsToFloat(i2), Float.intBitsToFloat((int) (j2 >> 32)) + Float.intBitsToFloat(i), Float.intBitsToFloat((int) (j2 & 4294967295L)) + Float.intBitsToFloat(i2), Float.intBitsToFloat((int) (j3 >> 32)), Float.intBitsToFloat((int) (j3 & 4294967295L)), c3113zg.b(abstractC0601Xe, abstractC2190pt, f, null, 3, 1));
    }

    @Override // o.InterfaceC2281qr
    public final float e() {
        return this.l.e();
    }

    @Override // o.InterfaceC2281qr
    public final long e0(float f) {
        return this.l.e0(f);
    }

    @Override // o.InterfaceC2095ot
    public final long f() {
        return this.l.f();
    }

    @Override // o.InterfaceC2095ot
    public final EnumC1280gK getLayoutDirection() {
        return this.l.l.b;
    }

    @Override // o.InterfaceC2095ot
    public final void j0(long j, long j2, long j3, long j4, AbstractC2190pt abstractC2190pt) {
        this.l.j0(j, j2, j3, j4, abstractC2190pt);
    }

    @Override // o.InterfaceC2281qr
    public final float n0(int i) {
        return this.l.n0(i);
    }

    @Override // o.InterfaceC2095ot
    public final void o(long j, float f, float f2, long j2, long j3, AbstractC2190pt abstractC2190pt) {
        this.l.o(j, f, f2, j2, j3, abstractC2190pt);
    }

    @Override // o.InterfaceC2281qr
    public final float q() {
        return this.l.q();
    }

    @Override // o.InterfaceC2281qr
    public final float q0(float f) {
        return f / this.l.e();
    }

    @Override // o.InterfaceC2095ot
    public final void s0(int i, long j, long j2, long j3) {
        this.l.s0(i, j, j2, j3);
    }

    @Override // o.InterfaceC2095ot
    public final void t(float f, long j, long j2) {
        this.l.t(f, j, j2);
    }

    @Override // o.InterfaceC2281qr
    public final long y(float f) {
        return this.l.y(f);
    }

    @Override // o.InterfaceC2281qr
    public final long z(long j) {
        return this.l.z(j);
    }
}
