package defpackage;

import java.math.RoundingMode;
import java.util.List;

/* renamed from: ᵪˌ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC3880 extends AbstractC3024 {

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

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

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

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

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

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

    public AbstractC3880(C0624 c0624, long j, long j2, long j3, long j4, List list, long j5, long j6, long j7) {
        super(c0624, j, j2);
        this.f14425 = j3;
        this.f14420 = j4;
        this.f14422 = list;
        this.f14423 = j5;
        this.f14421 = j6;
        this.f14424 = j7;
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final long m8526(long j, long j2) {
        long j3 = this.f11660;
        long j4 = this.f14425;
        List list = this.f14422;
        if (list != null) {
            return (((C2295) list.get((int) (j - j4))).f8973 * 1000000) / j3;
        }
        long jMo8533 = mo8533(j2);
        return (jMo8533 == -1 || j != (j4 + jMo8533) - 1) ? (this.f14420 * 1000000) / j3 : j2 - m8527(j);
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final long m8527(long j) {
        List list = this.f14422;
        long j2 = this.f14425;
        long j3 = list != null ? ((C2295) list.get((int) (j - j2))).f8972 - this.f11658 : (j - j2) * this.f14420;
        String str = AbstractC3558.f13329;
        return AbstractC3558.m8115(j3, 1000000L, this.f11660, RoundingMode.DOWN);
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final long m8528(long j, long j2) {
        long jMo8533 = mo8533(j2);
        long j3 = this.f14425;
        if (jMo8533 != 0) {
            if (this.f14422 != null) {
                long j4 = (jMo8533 + j3) - 1;
                long j5 = j3;
                while (j5 <= j4) {
                    long j6 = ((j4 - j5) / 2) + j5;
                    long jM8527 = m8527(j6);
                    if (jM8527 < j) {
                        j5 = j6 + 1;
                    } else {
                        if (jM8527 <= j) {
                            return j6;
                        }
                        j4 = j6 - 1;
                    }
                }
                return j5 == j3 ? j5 : j4;
            }
            long j7 = (j / ((this.f14420 * 1000000) / this.f11660)) + j3;
            if (j7 >= j3) {
                return jMo8533 == -1 ? j7 : Math.min(j7, (j3 + jMo8533) - 1);
            }
        }
        return j3;
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final long m8529(long j, long j2) {
        long jMo8533 = mo8533(j);
        long j3 = this.f14425;
        if (jMo8533 == -1) {
            long j4 = this.f14421;
            if (j4 != -9223372036854775807L) {
                return Math.max(j3, m8528((j2 - this.f14424) - j4, j));
            }
        }
        return j3;
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public boolean mo8530() {
        return this.f14422 != null;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final long m8531(long j, long j2) {
        long jMo8533 = mo8533(j);
        return jMo8533 != -1 ? jMo8533 : (int) (m8528((j2 - this.f14424) + this.f14423, j) - m8529(j, j2));
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public abstract C0624 mo8532(C1417 c1417, long j);

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public abstract long mo8533(long j);
}
