package p138.p176.p177.p190.p217.p220.p221;

import java.util.List;
import p138.p176.p177.p190.C3431;
import p138.p176.p177.p190.p239.C4150;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ໞ.ޞ.އ.އ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC3882 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C3877 f12015;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final long f12016;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final long f12017;

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ໞ.ޞ.އ.އ$֏, reason: contains not printable characters */
    public static abstract class AbstractC3883 extends AbstractC3882 {

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public final long f12018;

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public final long f12019;

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final List<C3886> f12020;

        public AbstractC3883(C3877 c3877, long j, long j2, long j3, long j4, List<C3886> list) {
            super(c3877, j, j2);
            this.f12018 = j3;
            this.f12019 = j4;
            this.f12020 = list;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public abstract int mo6295(long j);

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public abstract C3877 mo6296(AbstractC3878 abstractC3878, long j);

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public boolean mo6297() {
            return this.f12020 != null;
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final long m6298(long j) {
            List<C3886> list = this.f12020;
            return C4150.m6797(list != null ? list.get((int) (j - this.f12018)).f12025 - this.f12017 : (j - this.f12018) * this.f12019, 1000000L, this.f12016);
        }
    }

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ໞ.ޞ.އ.އ$ؠ, reason: contains not printable characters */
    public static class C3884 extends AbstractC3883 {

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final List<C3877> f12021;

        public C3884(C3877 c3877, long j, long j2, long j3, long j4, List<C3886> list, List<C3877> list2) {
            super(c3877, j, j2, j3, j4, list);
            this.f12021 = list2;
        }

        @Override // p138.p176.p177.p190.p217.p220.p221.AbstractC3882.AbstractC3883
        /* JADX INFO: renamed from: ֏ */
        public int mo6295(long j) {
            return this.f12021.size();
        }

        @Override // p138.p176.p177.p190.p217.p220.p221.AbstractC3882.AbstractC3883
        /* JADX INFO: renamed from: ֏ */
        public C3877 mo6296(AbstractC3878 abstractC3878, long j) {
            return this.f12021.get((int) (j - this.f12018));
        }

        @Override // p138.p176.p177.p190.p217.p220.p221.AbstractC3882.AbstractC3883
        /* JADX INFO: renamed from: ֏ */
        public boolean mo6297() {
            return true;
        }
    }

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ໞ.ޞ.އ.އ$ހ, reason: contains not printable characters */
    public static class C3885 extends AbstractC3883 {

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final C3889 f12022;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public final C3889 f12023;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public final long f12024;

        public C3885(C3877 c3877, long j, long j2, long j3, long j4, long j5, List<C3886> list, C3889 c3889, C3889 c38892) {
            super(c3877, j, j2, j3, j5, list);
            this.f12022 = c3889;
            this.f12023 = c38892;
            this.f12024 = j4;
        }

        @Override // p138.p176.p177.p190.p217.p220.p221.AbstractC3882.AbstractC3883
        /* JADX INFO: renamed from: ֏ */
        public int mo6295(long j) {
            List<C3886> list = this.f12020;
            if (list != null) {
                return list.size();
            }
            long j2 = this.f12024;
            if (j2 != -1) {
                return (int) ((j2 - this.f12018) + 1);
            }
            if (j != -9223372036854775807L) {
                return (int) C4150.m6750(j, (this.f12019 * 1000000) / this.f12016);
            }
            return -1;
        }

        @Override // p138.p176.p177.p190.p217.p220.p221.AbstractC3882
        /* JADX INFO: renamed from: ֏ */
        public C3877 mo6294(AbstractC3878 abstractC3878) {
            C3889 c3889 = this.f12022;
            if (c3889 == null) {
                return this.f12015;
            }
            C3431 c3431 = abstractC3878.f12006;
            return new C3877(c3889.m6299(c3431.f10082, 0L, c3431.f10086, 0L), 0L, -1L);
        }

        @Override // p138.p176.p177.p190.p217.p220.p221.AbstractC3882.AbstractC3883
        /* JADX INFO: renamed from: ֏ */
        public C3877 mo6296(AbstractC3878 abstractC3878, long j) {
            List<C3886> list = this.f12020;
            long j2 = list != null ? list.get((int) (j - this.f12018)).f12025 : (j - this.f12018) * this.f12019;
            C3889 c3889 = this.f12023;
            C3431 c3431 = abstractC3878.f12006;
            return new C3877(c3889.m6299(c3431.f10082, j, c3431.f10086, j2), 0L, -1L);
        }
    }

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ໞ.ޞ.އ.އ$ށ, reason: contains not printable characters */
    public static class C3886 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final long f12025;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final long f12026;

        public C3886(long j, long j2) {
            this.f12025 = j;
            this.f12026 = j2;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj == null || C3886.class != obj.getClass()) {
                return false;
            }
            C3886 c3886 = (C3886) obj;
            return this.f12025 == c3886.f12025 && this.f12026 == c3886.f12026;
        }

        public int hashCode() {
            return (((int) this.f12025) * 31) + ((int) this.f12026);
        }
    }

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ໞ.ޞ.އ.އ$ނ, reason: contains not printable characters */
    public static class C3887 extends AbstractC3882 {

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public final long f12027;

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public final long f12028;

        public C3887() {
            super(null, 1L, 0L);
            this.f12027 = 0L;
            this.f12028 = 0L;
        }

        public C3887(C3877 c3877, long j, long j2, long j3, long j4) {
            super(c3877, j, j2);
            this.f12027 = j3;
            this.f12028 = j4;
        }
    }

    public AbstractC3882(C3877 c3877, long j, long j2) {
        this.f12015 = c3877;
        this.f12016 = j;
        this.f12017 = j2;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C3877 mo6294(AbstractC3878 abstractC3878) {
        return this.f12015;
    }
}
