package n1;

import java.util.Arrays;

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public boolean f21601f = false;

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final float[] f21603k = new float[9];
    public C2608b[] l = new C2608b[16];

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

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

    public e(int i6) {
        this.f21606o = i6;
    }

    public final void a(C2608b c2608b) {
        int i6 = 0;
        while (true) {
            int i7 = this.f21604m;
            if (i6 >= i7) {
                C2608b[] c2608bArr = this.l;
                if (i7 >= c2608bArr.length) {
                    this.l = (C2608b[]) Arrays.copyOf(c2608bArr, c2608bArr.length * 2);
                }
                C2608b[] c2608bArr2 = this.l;
                int i8 = this.f21604m;
                c2608bArr2[i8] = c2608b;
                this.f21604m = i8 + 1;
                return;
            }
            if (this.l[i6] == c2608b) {
                return;
            } else {
                i6++;
            }
        }
    }

    public final void b(C2608b c2608b) {
        int i6 = this.f21604m;
        int i7 = 0;
        while (i7 < i6) {
            if (this.l[i7] == c2608b) {
                while (i7 < i6 - 1) {
                    C2608b[] c2608bArr = this.l;
                    int i8 = i7 + 1;
                    c2608bArr[i7] = c2608bArr[i8];
                    i7 = i8;
                }
                this.f21604m--;
                return;
            }
            i7++;
        }
    }

    public final void c() {
        this.f21606o = 5;
        this.f21599d = 0;
        this.f21597b = -1;
        this.f21598c = -1;
        this.f21600e = 0.0f;
        this.f21601f = false;
        int i6 = this.f21604m;
        for (int i7 = 0; i7 < i6; i7++) {
            this.l[i7] = null;
        }
        this.f21604m = 0;
        this.f21605n = 0;
        this.f21596a = false;
        Arrays.fill(this.f21603k, 0.0f);
    }

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

    public final void d(C2609c c2609c, float f6) {
        this.f21600e = f6;
        this.f21601f = true;
        int i6 = this.f21604m;
        this.f21598c = -1;
        for (int i7 = 0; i7 < i6; i7++) {
            this.l[i7].h(c2609c, this, false);
        }
        this.f21604m = 0;
    }

    public final void e(C2609c c2609c, C2608b c2608b) {
        int i6 = this.f21604m;
        for (int i7 = 0; i7 < i6; i7++) {
            this.l[i7].i(c2609c, c2608b, false);
        }
        this.f21604m = 0;
    }

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