package defpackage;

/* JADX INFO: renamed from: ᵝˉˁˁ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C2918 {

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public int f11226;

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public boolean f11228;

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public int f11229;

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public int f11232;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public int f11233;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public int f11234;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public int f11227 = 2;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public int f11235 = 3;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public int f11231 = 0;

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public float f11225 = 50.0f;

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public int f11224 = Integer.MIN_VALUE;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public int f11230 = Integer.MAX_VALUE;

    public final String toString() {
        return " min:" + this.f11224 + " " + this.f11233 + " max:" + this.f11230 + " " + this.f11226;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final int m6982(int i) {
        int i2;
        int i3;
        int i4 = this.f11234;
        int iM6984 = m6984();
        int i5 = this.f11224;
        boolean z = i5 == Integer.MIN_VALUE;
        int i6 = this.f11230;
        boolean z2 = i6 == Integer.MAX_VALUE;
        if (!z) {
            int i7 = this.f11229;
            int i8 = iM6984 - i7;
            boolean z3 = this.f11228;
            int i9 = this.f11235;
            if (z3 ? (i9 & 2) != 0 : (i9 & 1) != 0) {
                if (i - i5 <= i8) {
                    int i10 = i5 - i7;
                    return (z2 || i10 <= (i3 = this.f11226)) ? i10 : i3;
                }
            }
        }
        if (!z2) {
            int i11 = this.f11232;
            int i12 = (i4 - iM6984) - i11;
            boolean z4 = this.f11228;
            int i13 = this.f11235;
            if (z4 ? (1 & i13) != 0 : (i13 & 2) != 0) {
                if (i6 - i <= i12) {
                    int i14 = i6 - (i4 - i11);
                    return (z || i14 >= (i2 = this.f11233)) ? i14 : i2;
                }
            }
        }
        return i - iM6984;
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final void m6983(int i, int i2, int i3, int i4) {
        this.f11224 = i;
        this.f11230 = i2;
        int i5 = (this.f11234 - this.f11229) - this.f11232;
        int iM6984 = m6984();
        int i6 = this.f11224;
        boolean z = i6 == Integer.MIN_VALUE;
        int i7 = this.f11230;
        boolean z2 = i7 == Integer.MAX_VALUE;
        if (!z) {
            boolean z3 = this.f11228;
            int i8 = this.f11235;
            if (z3 ? (i8 & 2) == 0 : (i8 & 1) == 0) {
                this.f11233 = i3 - iM6984;
            } else {
                this.f11233 = i6 - this.f11229;
            }
        }
        if (!z2) {
            boolean z4 = this.f11228;
            int i9 = this.f11235;
            if (z4 ? (i9 & 1) == 0 : (i9 & 2) == 0) {
                this.f11226 = i4 - iM6984;
            } else {
                this.f11226 = (i7 - this.f11229) - i5;
            }
        }
        if (z2 || z) {
            return;
        }
        boolean z5 = this.f11228;
        int i10 = this.f11235;
        if (z5) {
            if ((i10 & 1) != 0) {
                if ((this.f11227 & 1) != 0) {
                    this.f11226 = Math.max(this.f11226, i3 - iM6984);
                }
                this.f11233 = Math.min(this.f11233, this.f11226);
                return;
            } else {
                if ((i10 & 2) != 0) {
                    if ((this.f11227 & 2) != 0) {
                        this.f11233 = Math.min(this.f11233, i4 - iM6984);
                    }
                    this.f11226 = Math.max(this.f11233, this.f11226);
                    return;
                }
                return;
            }
        }
        if ((i10 & 1) != 0) {
            if ((this.f11227 & 1) != 0) {
                this.f11233 = Math.min(this.f11233, i4 - iM6984);
            }
            this.f11226 = Math.max(this.f11233, this.f11226);
        } else if ((i10 & 2) != 0) {
            if ((this.f11227 & 2) != 0) {
                this.f11226 = Math.max(this.f11226, i3 - iM6984);
            }
            this.f11233 = Math.min(this.f11233, this.f11226);
        }
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final int m6984() {
        boolean z = this.f11228;
        int i = this.f11231;
        if (z) {
            int i2 = i >= 0 ? this.f11234 - i : -i;
            float f = this.f11225;
            return f != -1.0f ? i2 - ((int) ((this.f11234 * f) / 100.0f)) : i2;
        }
        if (i < 0) {
            i += this.f11234;
        }
        float f2 = this.f11225;
        return f2 != -1.0f ? i + ((int) ((this.f11234 * f2) / 100.0f)) : i;
    }
}
