package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.qN, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2234qN implements WX {
    public final OD l;
    public C1470iI m;
    public EnumC1280gK n;

    /* renamed from: o, reason: collision with root package name */
    public C1470iI f688o;
    public C0704aI p;

    public C2234qN(OD od) {
        this.l = od;
    }

    @Override // o.WX
    public final long h(C1086eI c1086eI, long j, EnumC1280gK enumC1280gK, long j2) {
        C0704aI c0704aI = this.p;
        if (c0704aI != null) {
            C1470iI c1470iI = this.m;
            if ((c1470iI == null ? false : C1470iI.a(c1470iI.a, j)) && this.n == enumC1280gK) {
                C1470iI c1470iI2 = this.f688o;
                if (c1470iI2 != null ? C1470iI.a(c1470iI2.a, j2) : false) {
                    return c0704aI.a;
                }
            }
        }
        long jH = this.l.h(c1086eI, j, enumC1280gK, j2);
        this.m = new C1470iI(j);
        this.n = enumC1280gK;
        this.f688o = new C1470iI(j2);
        this.p = new C0704aI(jH);
        return jH;
    }
}
