package o;

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

    @Override // o.InterfaceC1851mK
    public final InterfaceC2329rO a(InterfaceC2424sO interfaceC2424sO, InterfaceC1760lO interfaceC1760lO, long j) {
        int iJ;
        int iH;
        int iG;
        int iG2;
        if (!C0634Yl.d(j) || this.z == 1) {
            iJ = C0634Yl.j(j);
            iH = C0634Yl.h(j);
        } else {
            int iRound = Math.round(C0634Yl.h(j) * this.A);
            int iJ2 = C0634Yl.j(j);
            iJ = C0634Yl.h(j);
            if (iRound < iJ2) {
                iRound = iJ2;
            }
            if (iRound <= iJ) {
                iJ = iRound;
            }
            iH = iJ;
        }
        if (!C0634Yl.c(j) || this.z == 2) {
            int i = C0634Yl.i(j);
            iG = C0634Yl.g(j);
            iG2 = i;
        } else {
            int iRound2 = Math.round(C0634Yl.g(j) * this.A);
            int i2 = C0634Yl.i(j);
            iG2 = C0634Yl.g(j);
            if (iRound2 < i2) {
                iRound2 = i2;
            }
            if (iRound2 <= iG2) {
                iG2 = iRound2;
            }
            iG = iG2;
        }
        VW vwC = interfaceC1760lO.c(AbstractC0842bm.a(iJ, iH, iG2, iG));
        return interfaceC2424sO.H(vwC.l, vwC.m, C0358Nv.l, new C2198py(vwC, 0));
    }
}
