package defpackage;

/* renamed from: ᵡᵽᵡ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3234 {

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public boolean f12164;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public int f12167;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public int f12168;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public int f12171;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public int f12172;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public int f12174;

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public int f12163 = 2;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public int f12166 = 3;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public int f12165 = 0;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public float f12173 = 50.0f;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public int f12170 = Integer.MIN_VALUE;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public int f12169 = Integer.MAX_VALUE;

    public final String toString() {
        return " min:" + this.f12170 + " " + this.f12174 + " max:" + this.f12169 + " " + this.f12167;
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final void m7574(int i, int i2, int i3, int i4) {
        this.f12170 = i;
        this.f12169 = i2;
        int i5 = (this.f12168 - this.f12171) - this.f12172;
        int iM7575 = m7575();
        int i6 = this.f12170;
        boolean z = i6 == Integer.MIN_VALUE;
        int i7 = this.f12169;
        boolean z2 = i7 == Integer.MAX_VALUE;
        if (!z) {
            boolean z3 = this.f12164;
            int i8 = this.f12166;
            if (z3 ? (i8 & 2) == 0 : (i8 & 1) == 0) {
                this.f12174 = i3 - iM7575;
            } else {
                this.f12174 = i6 - this.f12171;
            }
        }
        if (!z2) {
            boolean z4 = this.f12164;
            int i9 = this.f12166;
            if (z4 ? (i9 & 1) == 0 : (i9 & 2) == 0) {
                this.f12167 = i4 - iM7575;
            } else {
                this.f12167 = (i7 - this.f12171) - i5;
            }
        }
        if (z2 || z) {
            return;
        }
        boolean z5 = this.f12164;
        int i10 = this.f12166;
        if (z5) {
            if ((i10 & 1) != 0) {
                if ((this.f12163 & 1) != 0) {
                    this.f12167 = Math.max(this.f12167, i3 - iM7575);
                }
                this.f12174 = Math.min(this.f12174, this.f12167);
                return;
            } else {
                if ((i10 & 2) != 0) {
                    if ((this.f12163 & 2) != 0) {
                        this.f12174 = Math.min(this.f12174, i4 - iM7575);
                    }
                    this.f12167 = Math.max(this.f12174, this.f12167);
                    return;
                }
                return;
            }
        }
        if ((i10 & 1) != 0) {
            if ((this.f12163 & 1) != 0) {
                this.f12174 = Math.min(this.f12174, i4 - iM7575);
            }
            this.f12167 = Math.max(this.f12174, this.f12167);
        } else if ((i10 & 2) != 0) {
            if ((this.f12163 & 2) != 0) {
                this.f12167 = Math.max(this.f12167, i3 - iM7575);
            }
            this.f12174 = Math.min(this.f12174, this.f12167);
        }
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final int m7575() {
        boolean z = this.f12164;
        int i = this.f12165;
        if (z) {
            int i2 = i >= 0 ? this.f12168 - i : -i;
            float f = this.f12173;
            return f != -1.0f ? i2 - ((int) ((this.f12168 * f) / 100.0f)) : i2;
        }
        if (i < 0) {
            i += this.f12168;
        }
        float f2 = this.f12173;
        return f2 != -1.0f ? i + ((int) ((this.f12168 * f2) / 100.0f)) : i;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final int m7576(int i) {
        int i2;
        int i3;
        int i4 = this.f12168;
        int iM7575 = m7575();
        int i5 = this.f12170;
        boolean z = i5 == Integer.MIN_VALUE;
        int i6 = this.f12169;
        boolean z2 = i6 == Integer.MAX_VALUE;
        if (!z) {
            int i7 = this.f12171;
            int i8 = iM7575 - i7;
            boolean z3 = this.f12164;
            int i9 = this.f12166;
            if (z3 ? (i9 & 2) != 0 : (i9 & 1) != 0) {
                if (i - i5 <= i8) {
                    int i10 = i5 - i7;
                    return (z2 || i10 <= (i3 = this.f12167)) ? i10 : i3;
                }
            }
        }
        if (!z2) {
            int i11 = this.f12172;
            int i12 = (i4 - iM7575) - i11;
            boolean z4 = this.f12164;
            int i13 = this.f12166;
            if (z4 ? (1 & i13) != 0 : (i13 & 2) != 0) {
                if (i6 - i <= i12) {
                    int i14 = i6 - (i4 - i11);
                    return (z || i14 >= (i2 = this.f12174)) ? i14 : i2;
                }
            }
        }
        return i - iM7575;
    }
}
