package o;

import com.google.android.gms.common.api.Api;

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

    @Override // o.InterfaceC1851mK
    public final InterfaceC2329rO a(InterfaceC2424sO interfaceC2424sO, InterfaceC1760lO interfaceC1760lO, long j) {
        int iO = this.z == 1 ? interfaceC1760lO.O(C0634Yl.g(j)) : interfaceC1760lO.U(C0634Yl.g(j));
        if (iO < 0) {
            iO = 0;
        }
        if (iO < 0) {
            AbstractC2322rH.a("width must be >= 0");
        }
        long jH = AbstractC0842bm.h(iO, iO, 0, Api.BaseClientBuilder.API_PRIORITY_OTHER);
        if (this.A) {
            jH = AbstractC0842bm.e(j, jH);
        }
        VW vwC = interfaceC1760lO.c(jH);
        return interfaceC2424sO.H(vwC.l, vwC.m, C0358Nv.l, new C2198py(vwC, 1));
    }

    @Override // o.InterfaceC1851mK
    public final int b(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        return interfaceC1760lO.d(i);
    }

    @Override // o.InterfaceC1851mK
    public final int d(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        return this.z == 1 ? interfaceC1760lO.O(i) : interfaceC1760lO.U(i);
    }

    @Override // o.InterfaceC1851mK
    public final int h(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        return interfaceC1760lO.V(i);
    }

    @Override // o.InterfaceC1851mK
    public final int i(YM ym, InterfaceC1760lO interfaceC1760lO, int i) {
        return this.z == 1 ? interfaceC1760lO.O(i) : interfaceC1760lO.U(i);
    }
}
