package u;

import java.util.Arrays;

/* JADX INFO: loaded from: classes.dex */
public final class f implements Comparable {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public boolean f10037k;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public float f10041o;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public int f10046v;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public int f10038l = -1;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public int f10039m = -1;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public int f10040n = 0;
    public boolean p = false;
    public final float[] q = new float[9];

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final float[] f10042r = new float[9];

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public C1028b[] f10043s = new C1028b[16];

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public int f10044t = 0;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public int f10045u = 0;

    public f(int i) {
        this.f10046v = i;
    }

    public final void a(C1028b c1028b) {
        int i = 0;
        while (true) {
            int i5 = this.f10044t;
            if (i >= i5) {
                C1028b[] c1028bArr = this.f10043s;
                if (i5 >= c1028bArr.length) {
                    this.f10043s = (C1028b[]) Arrays.copyOf(c1028bArr, c1028bArr.length * 2);
                }
                C1028b[] c1028bArr2 = this.f10043s;
                int i6 = this.f10044t;
                c1028bArr2[i6] = c1028b;
                this.f10044t = i6 + 1;
                return;
            }
            if (this.f10043s[i] == c1028b) {
                return;
            } else {
                i++;
            }
        }
    }

    public final void b(C1028b c1028b) {
        int i = this.f10044t;
        int i5 = 0;
        while (i5 < i) {
            if (this.f10043s[i5] == c1028b) {
                while (i5 < i - 1) {
                    C1028b[] c1028bArr = this.f10043s;
                    int i6 = i5 + 1;
                    c1028bArr[i5] = c1028bArr[i6];
                    i5 = i6;
                }
                this.f10044t--;
                return;
            }
            i5++;
        }
    }

    public final void c() {
        this.f10046v = 5;
        this.f10040n = 0;
        this.f10038l = -1;
        this.f10039m = -1;
        this.f10041o = 0.0f;
        this.p = false;
        int i = this.f10044t;
        for (int i5 = 0; i5 < i; i5++) {
            this.f10043s[i5] = null;
        }
        this.f10044t = 0;
        this.f10045u = 0;
        this.f10037k = false;
        Arrays.fill(this.f10042r, 0.0f);
    }

    @Override // java.lang.Comparable
    public final int compareTo(Object obj) {
        return this.f10038l - ((f) obj).f10038l;
    }

    public final void d(c cVar, float f6) {
        this.f10041o = f6;
        this.p = true;
        int i = this.f10044t;
        this.f10039m = -1;
        for (int i5 = 0; i5 < i; i5++) {
            this.f10043s[i5].h(cVar, this, false);
        }
        this.f10044t = 0;
    }

    public final void e(c cVar, C1028b c1028b) {
        int i = this.f10044t;
        for (int i5 = 0; i5 < i; i5++) {
            this.f10043s[i5].i(cVar, c1028b, false);
        }
        this.f10044t = 0;
    }

    public final String toString() {
        return "" + this.f10038l;
    }
}
