package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.bN, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0805bN implements InterfaceC1184fK {
    public final AbstractC0709aN l;

    public C0805bN(AbstractC0709aN abstractC0709aN) {
        this.l = abstractC0709aN;
    }

    @Override // o.InterfaceC1184fK
    public final boolean A() {
        return this.l.z.P0().y;
    }

    @Override // o.InterfaceC1184fK
    public final void D(float[] fArr) {
        this.l.z.D(fArr);
    }

    @Override // o.InterfaceC1184fK
    public final long K() {
        AbstractC0709aN abstractC0709aN = this.l;
        return (abstractC0709aN.l << 32) | (abstractC0709aN.m & 4294967295L);
    }

    @Override // o.InterfaceC1184fK
    public final long L(long j) {
        return this.l.z.L(C1765lT.e(j, a()));
    }

    @Override // o.InterfaceC1184fK
    public final void S(InterfaceC1184fK interfaceC1184fK, float[] fArr) {
        this.l.z.S(interfaceC1184fK, fArr);
    }

    public final long a() {
        AbstractC0709aN abstractC0709aN = this.l;
        AbstractC0709aN abstractC0709aNS = C2887xC.s(abstractC0709aN);
        return C1765lT.d(c(abstractC0709aNS.C, 0L), abstractC0709aN.z.Y0(abstractC0709aNS.z, 0L));
    }

    @Override // o.InterfaceC1184fK
    public final long b(long j) {
        return this.l.z.b(C1765lT.e(0L, a()));
    }

    public final long c(InterfaceC1184fK interfaceC1184fK, long j) {
        boolean z = interfaceC1184fK instanceof C0805bN;
        AbstractC0709aN abstractC0709aN = this.l;
        if (!z) {
            AbstractC0709aN abstractC0709aNS = C2887xC.s(abstractC0709aN);
            C0805bN c0805bN = abstractC0709aNS.C;
            AbstractC2239qS abstractC2239qS = abstractC0709aNS.z;
            long jC = c(c0805bN, j);
            long j2 = abstractC0709aNS.A;
            long jD = C1765lT.d(jC, (Float.floatToRawIntBits((int) (j2 & 4294967295L)) & 4294967295L) | (Float.floatToRawIntBits((int) (j2 >> 32)) << 32));
            if (!abstractC2239qS.P0().y) {
                AbstractC2133pH.b("LayoutCoordinate operations are only valid when isAttached is true");
            }
            abstractC2239qS.Z0();
            AbstractC2239qS abstractC2239qS2 = abstractC2239qS.B;
            if (abstractC2239qS2 != null) {
                abstractC2239qS = abstractC2239qS2;
            }
            return C1765lT.e(jD, abstractC2239qS.Y0(interfaceC1184fK, 0L));
        }
        AbstractC0709aN abstractC0709aN2 = ((C0805bN) interfaceC1184fK).l;
        AbstractC2239qS abstractC2239qS3 = abstractC0709aN2.z;
        abstractC2239qS3.Z0();
        AbstractC0709aN abstractC0709aNN0 = abstractC0709aN.z.L0(abstractC2239qS3).N0();
        if (abstractC0709aNN0 != null) {
            long jB = C0704aI.b(C0704aI.c(abstractC0709aN2.H0(abstractC0709aNN0, false), As0.P(j)), abstractC0709aN.H0(abstractC0709aNN0, false));
            return (Float.floatToRawIntBits((int) (jB >> 32)) << 32) | (Float.floatToRawIntBits((int) (jB & 4294967295L)) & 4294967295L);
        }
        AbstractC0709aN abstractC0709aNS2 = C2887xC.s(abstractC0709aN2);
        long jC2 = C0704aI.c(C0704aI.c(abstractC0709aN2.H0(abstractC0709aNS2, false), abstractC0709aNS2.A), As0.P(j));
        AbstractC0709aN abstractC0709aNS3 = C2887xC.s(abstractC0709aN);
        long jB2 = C0704aI.b(jC2, C0704aI.c(abstractC0709aN.H0(abstractC0709aNS3, false), abstractC0709aNS3.A));
        long jFloatToRawIntBits = Float.floatToRawIntBits((int) (jB2 >> 32));
        return abstractC0709aNS3.z.B.Y0(abstractC0709aNS2.z.B, (Float.floatToRawIntBits((int) (jB2 & 4294967295L)) & 4294967295L) | (jFloatToRawIntBits << 32));
    }

    @Override // o.InterfaceC1184fK
    public final long g(long j) {
        return C1765lT.e(this.l.z.g(j), a());
    }

    @Override // o.InterfaceC1184fK
    public final T00 h(InterfaceC1184fK interfaceC1184fK, boolean z) {
        return this.l.z.h(interfaceC1184fK, z);
    }

    @Override // o.InterfaceC1184fK
    public final long i(long j) {
        return this.l.z.i(C1765lT.e(j, a()));
    }

    @Override // o.InterfaceC1184fK
    public final InterfaceC1184fK l() {
        AbstractC0709aN abstractC0709aNN0;
        if (!A()) {
            AbstractC2133pH.b("LayoutCoordinate operations are only valid when isAttached is true");
        }
        AbstractC2239qS abstractC2239qS = ((AbstractC2239qS) this.l.z.z.N.e).B;
        if (abstractC2239qS == null || (abstractC0709aNN0 = abstractC2239qS.N0()) == null) {
            return null;
        }
        return abstractC0709aNN0.C;
    }

    @Override // o.InterfaceC1184fK
    public final long p(InterfaceC1184fK interfaceC1184fK, long j) {
        return c(interfaceC1184fK, j);
    }

    @Override // o.InterfaceC1184fK
    public final long v(long j) {
        return C1765lT.e(this.l.z.v(j), a());
    }
}
