package androidx.constraintlayout.solver;

import java.util.Arrays;
import ඓ.K.K.K.C1293;
import ῲ.ⁱ.ῲ.C2073;
import ῲ.ⁱ.ῲ.C2080;

public class SolverVariable {

    /* renamed from: ᓣ  reason: contains not printable characters */
    public static int f788 = 1;

    /* renamed from: ʬ  reason: contains not printable characters */
    public int f789 = -1;

    /* renamed from: Ԕ  reason: contains not printable characters */
    public boolean f790 = false;

    /* renamed from: ؿ  reason: contains not printable characters */
    public float f791 = 0.0f;

    /* renamed from: ඓ  reason: contains not printable characters */
    public int f792 = 0;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public C2073[] f793 = new C2073[16];

    /* renamed from: ᨨ  reason: contains not printable characters */
    public float[] f794 = new float[9];

    /* renamed from: ῲ  reason: contains not printable characters */
    public String f795;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public boolean f796 = false;

    /* renamed from: K  reason: contains not printable characters */
    public boolean f797;

    /* renamed from: 㑃  reason: contains not printable characters */
    public int f798 = 0;

    /* renamed from: 㗗  reason: contains not printable characters */
    public int f799 = -1;

    /* renamed from: 㳳  reason: contains not printable characters */
    public Type f800;

    /* renamed from: 㴹  reason: contains not printable characters */
    public float f801;

    /* renamed from: 㸾  reason: contains not printable characters */
    public int f802 = -1;

    /* renamed from: 㿎  reason: contains not printable characters */
    public float[] f803 = new float[9];

    /* renamed from: 䁗  reason: contains not printable characters */
    public int f804 = 0;

    public enum Type {
        UNRESTRICTED,
        CONSTANT,
        SLACK,
        ERROR,
        UNKNOWN
    }

    public SolverVariable(Type type) {
        this.f800 = type;
    }

    public String toString() {
        if (this.f795 != null) {
            StringBuilder r0 = C1293.m3416("");
            r0.append(this.f795);
            return r0.toString();
        }
        StringBuilder r02 = C1293.m3416("");
        r02.append(this.f789);
        return r02.toString();
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public final void m449(C2073 r5) {
        int i = this.f798;
        int i2 = 0;
        while (i2 < i) {
            if (this.f793[i2] == r5) {
                while (i2 < i - 1) {
                    C2073[] r52 = this.f793;
                    int i3 = i2 + 1;
                    r52[i2] = r52[i3];
                    i2 = i3;
                }
                this.f798--;
                return;
            }
            i2++;
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m451(C2073 r4) {
        int i = 0;
        while (true) {
            int i2 = this.f798;
            if (i >= i2) {
                C2073[] r0 = this.f793;
                if (i2 >= r0.length) {
                    this.f793 = (C2073[]) Arrays.copyOf(r0, r0.length * 2);
                }
                C2073[] r02 = this.f793;
                int i3 = this.f798;
                r02[i3] = r4;
                this.f798 = i3 + 1;
                return;
            } else if (this.f793[i] != r4) {
                i++;
            } else {
                return;
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m453(C2080 r5, C2073 r6) {
        int i = this.f798;
        for (int i2 = 0; i2 < i; i2++) {
            this.f793[i2].m5410(r5, r6, false);
        }
        this.f798 = 0;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m452(C2080 r4, float f) {
        this.f801 = f;
        this.f796 = true;
        this.f790 = false;
        this.f799 = -1;
        this.f791 = 0.0f;
        int i = this.f798;
        this.f802 = -1;
        for (int i2 = 0; i2 < i; i2++) {
            this.f793[i2].m5409(r4, this, false);
        }
        this.f798 = 0;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m450() {
        this.f795 = null;
        this.f800 = Type.UNKNOWN;
        this.f792 = 0;
        this.f789 = -1;
        this.f802 = -1;
        this.f801 = 0.0f;
        this.f796 = false;
        this.f790 = false;
        this.f799 = -1;
        this.f791 = 0.0f;
        int i = this.f798;
        for (int i2 = 0; i2 < i; i2++) {
            this.f793[i2] = null;
        }
        this.f798 = 0;
        this.f804 = 0;
        this.f797 = false;
        Arrays.fill(this.f794, 0.0f);
    }
}
