package defpackage;

import androidx.media3.exoplayer.source.BehindLiveWindowException;

/* JADX INFO: renamed from: ᵚʒ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C2693 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final AbstractC0841 f10366;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final C1318 f10367;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final long f10368;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final C3511 f10369;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final InterfaceC1674 f10370;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final long f10371;

    public C2693(long j, AbstractC0841 abstractC0841, C1318 c1318, C3511 c3511, long j2, InterfaceC1674 interfaceC1674) {
        this.f10368 = j;
        this.f10366 = abstractC0841;
        this.f10367 = c1318;
        this.f10371 = j2;
        this.f10369 = c3511;
        this.f10370 = interfaceC1674;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final long m6499(long j) {
        InterfaceC1674 interfaceC1674 = this.f10370;
        interfaceC1674.getClass();
        long j2 = this.f10368;
        long jMo3010 = interfaceC1674.mo3010(j2, j) + this.f10371;
        interfaceC1674.getClass();
        return (interfaceC1674.mo3003(j2, j) + jMo3010) - 1;
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final long m6500() {
        InterfaceC1674 interfaceC1674 = this.f10370;
        interfaceC1674.getClass();
        return interfaceC1674.mo3009(this.f10368);
    }

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final long m6501(long j) {
        InterfaceC1674 interfaceC1674 = this.f10370;
        interfaceC1674.getClass();
        return interfaceC1674.mo3007(j - this.f10371);
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final C2693 m6502(long j, AbstractC0841 abstractC0841) throws BehindLiveWindowException {
        long jMo3001;
        long jMo30012;
        InterfaceC1674 interfaceC1674Mo2987 = this.f10366.mo2987();
        InterfaceC1674 interfaceC1674Mo29872 = abstractC0841.mo2987();
        if (interfaceC1674Mo2987 == null) {
            return new C2693(j, abstractC0841, this.f10367, this.f10369, this.f10371, interfaceC1674Mo2987);
        }
        if (!interfaceC1674Mo2987.mo3004()) {
            return new C2693(j, abstractC0841, this.f10367, this.f10369, this.f10371, interfaceC1674Mo29872);
        }
        long jMo3009 = interfaceC1674Mo2987.mo3009(j);
        if (jMo3009 == 0) {
            return new C2693(j, abstractC0841, this.f10367, this.f10369, this.f10371, interfaceC1674Mo29872);
        }
        interfaceC1674Mo29872.getClass();
        long jMo3006 = interfaceC1674Mo2987.mo3006();
        long jMo3007 = interfaceC1674Mo2987.mo3007(jMo3006);
        long j2 = jMo3009 + jMo3006;
        long j3 = j2 - 1;
        long jMo3002 = interfaceC1674Mo2987.mo3002(j3, j) + interfaceC1674Mo2987.mo3007(j3);
        long jMo30062 = interfaceC1674Mo29872.mo3006();
        long jMo30072 = interfaceC1674Mo29872.mo3007(jMo30062);
        long j4 = this.f10371;
        if (jMo3002 == jMo30072) {
            jMo3001 = j2 - jMo30062;
        } else {
            if (jMo3002 < jMo30072) {
                throw new BehindLiveWindowException();
            }
            if (jMo30072 < jMo3007) {
                jMo30012 = j4 - (interfaceC1674Mo29872.mo3001(jMo3007, j) - jMo3006);
                return new C2693(j, abstractC0841, this.f10367, this.f10369, jMo30012, interfaceC1674Mo29872);
            }
            jMo3001 = interfaceC1674Mo2987.mo3001(jMo30072, j) - jMo30062;
        }
        jMo30012 = jMo3001 + j4;
        return new C2693(j, abstractC0841, this.f10367, this.f10369, jMo30012, interfaceC1674Mo29872);
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final long m6503(long j) {
        long jM6501 = m6501(j);
        InterfaceC1674 interfaceC1674 = this.f10370;
        interfaceC1674.getClass();
        return interfaceC1674.mo3002(j - this.f10371, this.f10368) + jM6501;
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final boolean m6504(long j, long j2) {
        InterfaceC1674 interfaceC1674 = this.f10370;
        interfaceC1674.getClass();
        return interfaceC1674.mo3004() || j2 == -9223372036854775807L || m6503(j) <= j2;
    }
}
