package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.ci0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0930ci0 extends LP implements InterfaceC1851mK {
    public float A;
    public float z;

    @Override // o.InterfaceC1851mK
    public final InterfaceC2329rO a(InterfaceC2424sO interfaceC2424sO, InterfaceC1760lO interfaceC1760lO, long j) {
        int iJ;
        int i;
        if (Float.isNaN(this.z) || C0634Yl.j(j) != 0) {
            iJ = C0634Yl.j(j);
        } else {
            int iN = interfaceC2424sO.N(this.z);
            iJ = C0634Yl.h(j);
            if (iN < 0) {
                iN = 0;
            }
            if (iN <= iJ) {
                iJ = iN;
            }
        }
        int iH = C0634Yl.h(j);
        if (Float.isNaN(this.A) || C0634Yl.i(j) != 0) {
            i = C0634Yl.i(j);
        } else {
            int iN2 = interfaceC2424sO.N(this.A);
            i = C0634Yl.g(j);
            int i2 = iN2 >= 0 ? iN2 : 0;
            if (i2 <= i) {
                i = i2;
            }
        }
        VW vwC = interfaceC1760lO.c(AbstractC0842bm.a(iJ, iH, i, C0634Yl.g(j)));
        return interfaceC2424sO.H(vwC.l, vwC.m, C0358Nv.l, new C2198py(vwC, 6));
    }

    @Override // o.InterfaceC1851mK
    public final int b(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        int iD = interfaceC1760lO.d(i);
        int iN = !Float.isNaN(this.A) ? ym.N(this.A) : 0;
        return iD < iN ? iN : iD;
    }

    @Override // o.InterfaceC1851mK
    public final int d(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        int iU = interfaceC1760lO.U(i);
        int iN = !Float.isNaN(this.z) ? ym.N(this.z) : 0;
        return iU < iN ? iN : iU;
    }

    @Override // o.InterfaceC1851mK
    public final int h(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        int iV = interfaceC1760lO.V(i);
        int iN = !Float.isNaN(this.A) ? ym.N(this.A) : 0;
        return iV < iN ? iN : iV;
    }

    @Override // o.InterfaceC1851mK
    public final int i(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        int iO = interfaceC1760lO.O(i);
        int iN = !Float.isNaN(this.z) ? ym.N(this.z) : 0;
        return iO < iN ? iN : iO;
    }
}
