package u;

import java.util.Arrays;

/* JADX INFO: loaded from: classes.dex */
public final class i {

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

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final float[] f17084h = new float[9];
    public C1558c[] i = new C1558c[16];

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

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

    public i(int i) {
        this.f17087l = i;
    }

    public final void a(C1558c c1558c) {
        int i = 0;
        while (true) {
            int i5 = this.f17085j;
            if (i >= i5) {
                C1558c[] c1558cArr = this.i;
                if (i5 >= c1558cArr.length) {
                    this.i = (C1558c[]) Arrays.copyOf(c1558cArr, c1558cArr.length * 2);
                }
                C1558c[] c1558cArr2 = this.i;
                int i8 = this.f17085j;
                c1558cArr2[i8] = c1558c;
                this.f17085j = i8 + 1;
                return;
            }
            if (this.i[i] == c1558c) {
                return;
            } else {
                i++;
            }
        }
    }

    public final void b(C1558c c1558c) {
        int i = this.f17085j;
        int i5 = 0;
        while (i5 < i) {
            if (this.i[i5] == c1558c) {
                while (i5 < i - 1) {
                    C1558c[] c1558cArr = this.i;
                    int i8 = i5 + 1;
                    c1558cArr[i5] = c1558cArr[i8];
                    i5 = i8;
                }
                this.f17085j--;
                return;
            }
            i5++;
        }
    }

    public final void c() {
        this.f17087l = 5;
        this.f17080d = 0;
        this.f17078b = -1;
        this.f17079c = -1;
        this.f17081e = 0.0f;
        this.f17082f = false;
        int i = this.f17085j;
        for (int i5 = 0; i5 < i; i5++) {
            this.i[i5] = null;
        }
        this.f17085j = 0;
        this.f17086k = 0;
        this.f17077a = false;
        Arrays.fill(this.f17084h, 0.0f);
    }

    public final void d(C1558c c1558c) {
        int i = this.f17085j;
        for (int i5 = 0; i5 < i; i5++) {
            this.i[i5].h(c1558c, false);
        }
        this.f17085j = 0;
    }

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