package p138.p176.p177.p190.p235;

import android.os.SystemClock;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import p000.p001.p002.p003.p004.C0567;
import p138.p176.p177.p190.C3431;
import p138.p176.p177.p190.p217.C3827;
import p138.p176.p177.p190.p217.p219.AbstractC3848;
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 AbstractC4019 implements InterfaceC4036 {

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

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

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final int[] f12737;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final C3431[] f12738;

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

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public int f12740;

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ྈ.ؠ$ؠ, reason: contains not printable characters */
    public static final class C4021 implements Comparator<C3431> {
        public /* synthetic */ C4021(C4020 c4020) {
        }

        @Override // java.util.Comparator
        public int compare(C3431 c3431, C3431 c34312) {
            return c34312.f10086 - c3431.f10086;
        }
    }

    public AbstractC4019(C3827 c3827, int... iArr) {
        int i = 0;
        C0567.m1932(iArr.length > 0);
        C4020 c4020 = null;
        if (c3827 == null) {
            throw null;
        }
        this.f12735 = c3827;
        int length = iArr.length;
        this.f12736 = length;
        this.f12738 = new C3431[length];
        for (int i2 = 0; i2 < iArr.length; i2++) {
            this.f12738[i2] = c3827.f11782[iArr[i2]];
        }
        Arrays.sort(this.f12738, new C4021(c4020));
        this.f12737 = new int[this.f12736];
        while (true) {
            int i3 = this.f12736;
            if (i >= i3) {
                this.f12739 = new long[i3];
                return;
            } else {
                this.f12737[i] = c3827.m6208(this.f12738[i]);
                i++;
            }
        }
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        AbstractC4019 abstractC4019 = (AbstractC4019) obj;
        return this.f12735 == abstractC4019.f12735 && Arrays.equals(this.f12737, abstractC4019.f12737);
    }

    public int hashCode() {
        if (this.f12740 == 0) {
            this.f12740 = Arrays.hashCode(this.f12737) + (System.identityHashCode(this.f12735) * 31);
        }
        return this.f12740;
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    public final int length() {
        return this.f12737.length;
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ֏ */
    public int mo6470(long j, List<? extends AbstractC3848> list) {
        return list.size();
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final int mo6474(C3431 c3431) {
        for (int i = 0; i < this.f12736; i++) {
            if (this.f12738[i] == c3431) {
                return i;
            }
        }
        return -1;
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C3431 mo6475(int i) {
        return this.f12738[i];
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ֏ */
    public void mo6471() {
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ֏ */
    public void mo6472(float f) {
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final boolean mo6476(int i, long j) {
        long jElapsedRealtime = SystemClock.elapsedRealtime();
        boolean zM6479 = m6479(i, jElapsedRealtime);
        int i2 = 0;
        while (i2 < this.f12736 && !zM6479) {
            zM6479 = (i2 == i || m6479(i2, jElapsedRealtime)) ? false : true;
            i2++;
        }
        if (!zM6479) {
            return false;
        }
        long[] jArr = this.f12739;
        jArr[i] = Math.max(jArr[i], C4150.m6751(jElapsedRealtime, j, Long.MAX_VALUE));
        return true;
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final int mo6477() {
        return this.f12737[mo6311()];
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final int mo6478(int i) {
        return this.f12737[i];
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final boolean m6479(int i, long j) {
        return this.f12739[i] > j;
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final int mo6480(int i) {
        for (int i2 = 0; i2 < this.f12736; i2++) {
            if (this.f12737[i2] == i) {
                return i2;
            }
        }
        return -1;
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final C3827 mo6481() {
        return this.f12735;
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public void mo6482() {
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final C3431 mo6483() {
        return this.f12738[mo6311()];
    }

    @Override // p138.p176.p177.p190.p235.InterfaceC4036
    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public /* synthetic */ void mo6484() {
        C4035.m6502(this);
    }
}
