package X6FRs_4.X6FRs_4.KQgRr5e_0;

import com.wang.avi.BuildConfig;
import java.util.Arrays;
/* compiled from: SolverVariable.java */
/* loaded from: classes.dex */
public class Xgtqvk_8 {

    /* renamed from: IFxWkV_5  reason: collision with root package name */
    public static int f3263IFxWkV_5 = 1;
    public float KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public KQgRr5e_0 f1128KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public String f1129KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public int f1127KQgRr5e_0 = -1;
    public int QxJ9d_1 = -1;
    public int PGPF6hQ_2 = 0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public float[] f1130KQgRr5e_0 = new float[7];

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public QxJ9d_1[] f1131KQgRr5e_0 = new QxJ9d_1[8];

    /* renamed from: Mqv2r_3  reason: collision with root package name */
    public int f3264Mqv2r_3 = 0;

    /* renamed from: X6FRs_4  reason: collision with root package name */
    public int f3265X6FRs_4 = 0;

    /* compiled from: SolverVariable.java */
    /* loaded from: classes.dex */
    public enum KQgRr5e_0 {
        UNRESTRICTED,
        CONSTANT,
        SLACK,
        ERROR,
        UNKNOWN
    }

    public Xgtqvk_8(KQgRr5e_0 kQgRr5e_0, String str) {
        this.f1128KQgRr5e_0 = kQgRr5e_0;
    }

    public static void QxJ9d_1() {
        f3263IFxWkV_5++;
    }

    public final void KQgRr5e_0(QxJ9d_1 qxJ9d_1) {
        int i = 0;
        while (true) {
            int i2 = this.f3264Mqv2r_3;
            if (i < i2) {
                if (this.f1131KQgRr5e_0[i] == qxJ9d_1) {
                    return;
                }
                i++;
            } else {
                QxJ9d_1[] qxJ9d_1Arr = this.f1131KQgRr5e_0;
                if (i2 >= qxJ9d_1Arr.length) {
                    this.f1131KQgRr5e_0 = (QxJ9d_1[]) Arrays.copyOf(qxJ9d_1Arr, qxJ9d_1Arr.length * 2);
                }
                QxJ9d_1[] qxJ9d_1Arr2 = this.f1131KQgRr5e_0;
                int i3 = this.f3264Mqv2r_3;
                qxJ9d_1Arr2[i3] = qxJ9d_1;
                this.f3264Mqv2r_3 = i3 + 1;
                return;
            }
        }
    }

    public final void PGPF6hQ_2(QxJ9d_1 qxJ9d_1) {
        int i = this.f3264Mqv2r_3;
        for (int i2 = 0; i2 < i; i2++) {
            QxJ9d_1[] qxJ9d_1Arr = this.f1131KQgRr5e_0;
            qxJ9d_1Arr[i2].f1115KQgRr5e_0.KQgRr5e_0(qxJ9d_1Arr[i2], qxJ9d_1, false);
        }
        this.f3264Mqv2r_3 = 0;
    }

    public String toString() {
        return BuildConfig.FLAVOR + this.f1129KQgRr5e_0;
    }

    public final void QxJ9d_1(QxJ9d_1 qxJ9d_1) {
        int i = this.f3264Mqv2r_3;
        for (int i2 = 0; i2 < i; i2++) {
            if (this.f1131KQgRr5e_0[i2] == qxJ9d_1) {
                for (int i3 = 0; i3 < (i - i2) - 1; i3++) {
                    QxJ9d_1[] qxJ9d_1Arr = this.f1131KQgRr5e_0;
                    int i4 = i2 + i3;
                    qxJ9d_1Arr[i4] = qxJ9d_1Arr[i4 + 1];
                }
                this.f3264Mqv2r_3--;
                return;
            }
        }
    }

    public void KQgRr5e_0() {
        this.f1129KQgRr5e_0 = null;
        this.f1128KQgRr5e_0 = KQgRr5e_0.UNKNOWN;
        this.PGPF6hQ_2 = 0;
        this.f1127KQgRr5e_0 = -1;
        this.QxJ9d_1 = -1;
        this.KQgRr5e_0 = 0.0f;
        this.f3264Mqv2r_3 = 0;
        this.f3265X6FRs_4 = 0;
    }

    public void KQgRr5e_0(KQgRr5e_0 kQgRr5e_0, String str) {
        this.f1128KQgRr5e_0 = kQgRr5e_0;
    }
}
