package defpackage;

/* renamed from: ᵽˎʠ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C5341 implements InterfaceC4887, InterfaceC5013 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final int f20000;

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final boolean f20001;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final boolean f20002;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final long f20003;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final int f20004;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final long f20005;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final long f20006;

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public final long f20007;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final long f20008;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final int f20009;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final int f20010;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final boolean f20011;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final long f20012;

    public C5341(long j, long j2, int i, int i2, boolean z, boolean z2) {
        this.f20006 = j;
        this.f20008 = j2;
        this.f20004 = i2 == -1 ? 1 : i2;
        this.f20000 = i;
        this.f20002 = z;
        this.f20011 = z2;
        if (j == -1) {
            this.f20012 = -1L;
            this.f20003 = -9223372036854775807L;
        } else {
            long j3 = j - j2;
            this.f20012 = j3;
            this.f20003 = (Math.max(0L, j3) * 8000000) / i;
        }
        this.f20005 = j2;
        this.f20009 = i;
        this.f20010 = i2;
        this.f20001 = z;
        this.f20007 = j == -1 ? -1L : j;
    }

    @Override // defpackage.InterfaceC5013
    /* renamed from: ˇʼʤˎ */
    public final C0611 mo1072(long j) {
        long j2 = this.f20012;
        long j3 = this.f20008;
        if (j2 == -1 && !this.f20002) {
            C5531 c5531 = new C5531(0L, j3);
            return new C0611(c5531, c5531);
        }
        int i = this.f20000;
        long j4 = this.f20004;
        long jMin = (((i * j) / 8000000) / j4) * j4;
        if (j2 != -1) {
            jMin = Math.min(jMin, j2 - j4);
        }
        long jMax = Math.max(jMin, 0L) + j3;
        long jMax2 = (Math.max(0L, jMax - j3) * 8000000) / i;
        C5531 c55312 = new C5531(jMax2, jMax);
        if (j2 != -1 && jMax2 < j) {
            long j5 = jMax + j4;
            if (j5 < this.f20006) {
                return new C0611(c55312, new C5531((Math.max(0L, j5 - j3) * 8000000) / i, j5));
            }
        }
        return new C0611(c55312, c55312);
    }

    @Override // defpackage.InterfaceC5013
    /* renamed from: ˎˏʜʾ */
    public final long mo1073() {
        return this.f20003;
    }

    @Override // defpackage.InterfaceC4887
    /* renamed from: ˏˋٴ */
    public final int mo7005() {
        return this.f20009;
    }

    @Override // defpackage.InterfaceC5013
    /* renamed from: ˏᵙ */
    public final boolean mo1074() {
        return this.f20012 != -1 || this.f20002;
    }

    @Override // defpackage.InterfaceC4887
    /* renamed from: ᵥᵯˎ */
    public final long mo7006(long j) {
        return (Math.max(0L, j - this.f20008) * 8000000) / this.f20000;
    }

    @Override // defpackage.InterfaceC4887
    /* renamed from: ᵴᵳ */
    public final long mo7007() {
        return this.f20007;
    }

    @Override // defpackage.InterfaceC5013
    /* renamed from: ᵻᵢﹳᵰ */
    public final boolean mo1075() {
        return this.f20011;
    }
}
