package P;

import l1.B;

/* JADX INFO: loaded from: classes.dex */
public final class o implements B {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final l2.c f5579a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public h1.l f5580b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public h1.m f5581c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public h1.l f5582d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public h1.j f5583e;

    public o(l2.c cVar) {
        this.f5579a = cVar;
    }

    @Override // l1.B
    public final long b(h1.k kVar, long j4, h1.m mVar, long j6) {
        h1.j jVar = this.f5583e;
        if (jVar != null) {
            h1.l lVar = this.f5580b;
            if ((lVar == null ? false : h1.l.a(lVar.f16627a, j4)) && this.f5581c == mVar) {
                h1.l lVar2 = this.f5582d;
                if (lVar2 != null ? h1.l.a(lVar2.f16627a, j6) : false) {
                    return jVar.f16621a;
                }
            }
        }
        long jB = this.f5579a.b(kVar, j4, mVar, j6);
        this.f5580b = new h1.l(j4);
        this.f5581c = mVar;
        this.f5582d = new h1.l(j6);
        this.f5583e = new h1.j(jB);
        return jB;
    }
}
