package defpackage;

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

/* renamed from: ᵶʝᵕ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4770 extends AbstractC3880 {

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

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

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

    public C4770(C0624 c0624, long j, long j2, long j3, long j4, long j5, List list, long j6, C1570 c1570, C1570 c15702, long j7, long j8) {
        super(c0624, j, j2, j3, j5, list, j6, j7, j8);
        this.f17722 = c1570;
        this.f17723 = c15702;
        this.f17721 = j4;
    }

    @Override // defpackage.AbstractC3024
    /* renamed from: ᵥᵯˎ */
    public final C0624 mo7366(AbstractC0185 abstractC0185) {
        C1570 c1570 = this.f17722;
        if (c1570 == null) {
            return this.f11659;
        }
        C3446 c3446 = abstractC0185.f1625;
        return new C0624(0L, -1L, c1570.m4544(c3446.f12922, 0L, c3446.f12932, 0L));
    }

    @Override // defpackage.AbstractC3880
    /* renamed from: ᵹᵝᵶ */
    public final C0624 mo8532(C1417 c1417, long j) {
        List list = this.f14422;
        long j2 = this.f14425;
        long j3 = list != null ? ((C2295) list.get((int) (j - j2))).f8972 : (j - j2) * this.f14420;
        C3446 c3446 = c1417.f1625;
        return new C0624(0L, -1L, this.f17723.m4544(c3446.f12922, j, c3446.f12932, j3));
    }

    @Override // defpackage.AbstractC3880
    /* renamed from: ᵻᵢﹳᵰ */
    public final long mo8533(long j) {
        if (this.f14422 != null) {
            return r0.size();
        }
        long j2 = this.f17721;
        if (j2 != -1) {
            return (j2 - this.f14425) + 1;
        }
        if (j == -9223372036854775807L) {
            return -1L;
        }
        BigInteger bigIntegerMultiply = BigInteger.valueOf(j).multiply(BigInteger.valueOf(this.f11660));
        BigInteger bigIntegerMultiply2 = BigInteger.valueOf(this.f14420).multiply(BigInteger.valueOf(1000000L));
        RoundingMode roundingMode = RoundingMode.CEILING;
        int i = AbstractC3930.f14848;
        return new BigDecimal(bigIntegerMultiply).divide(new BigDecimal(bigIntegerMultiply2), 0, roundingMode).toBigIntegerExact().longValue();
    }
}
