package p037.p091.p095;

import p138.p139.p143.p144.C2803;

/* JADX INFO: renamed from: މ.މ.ލ.ޤ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C2192 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public int f7111 = 0;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final C2193 f7112 = new C2193();

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final C2193 f7113;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public C2193 f7114;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public C2193 f7115;

    /* JADX INFO: renamed from: މ.މ.ލ.ޤ$֏, reason: contains not printable characters */
    public static class C2193 {

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public int f7118;

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public int f7119;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public int f7124;

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public int f7125;

        /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
        public int f7126;

        /* JADX INFO: renamed from: މ, reason: contains not printable characters */
        public boolean f7127;

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public int f7120 = 2;

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public int f7121 = 3;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public int f7122 = 0;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public float f7123 = 50.0f;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public int f7117 = Integer.MIN_VALUE;

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public int f7116 = Integer.MAX_VALUE;

        public String toString() {
            StringBuilder sbM4889 = C2803.m4889(" min:");
            sbM4889.append(this.f7117);
            sbM4889.append(" ");
            sbM4889.append(this.f7119);
            sbM4889.append(" max:");
            sbM4889.append(this.f7116);
            sbM4889.append(" ");
            sbM4889.append(this.f7118);
            return sbM4889.toString();
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final int m4252() {
            if (this.f7127) {
                int i = this.f7122;
                int i2 = i >= 0 ? this.f7124 - i : -i;
                float f = this.f7123;
                return f != -1.0f ? i2 - ((int) ((this.f7124 * f) / 100.0f)) : i2;
            }
            int i3 = this.f7122;
            if (i3 < 0) {
                i3 += this.f7124;
            }
            float f2 = this.f7123;
            return f2 != -1.0f ? i3 + ((int) ((this.f7124 * f2) / 100.0f)) : i3;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final int m4253(int i) {
            int i2;
            int i3;
            int i4 = this.f7124;
            int iM4252 = m4252();
            boolean zM4257 = m4257();
            boolean zM4256 = m4256();
            if (!zM4257) {
                int i5 = iM4252 - this.f7125;
                if (this.f7127 ? (this.f7121 & 2) != 0 : (this.f7121 & 1) != 0) {
                    int i6 = this.f7117;
                    if (i - i6 <= i5) {
                        int i7 = i6 - this.f7125;
                        return (zM4256 || i7 <= (i3 = this.f7118)) ? i7 : i3;
                    }
                }
            }
            if (!zM4256) {
                int i8 = (i4 - iM4252) - this.f7126;
                if (this.f7127 ? (this.f7121 & 1) != 0 : (this.f7121 & 2) != 0) {
                    int i9 = this.f7116;
                    if (i9 - i <= i8) {
                        int i10 = i9 - (i4 - this.f7126);
                        return (zM4257 || i10 >= (i2 = this.f7119)) ? i10 : i2;
                    }
                }
            }
            return i - iM4252;
        }

        /* JADX WARN: Code restructure failed: missing block: B:11:0x0027, code lost:
        
            r5.f7119 = r5.f7117 - r5.f7125;
         */
        /* JADX WARN: Code restructure failed: missing block: B:21:0x0045, code lost:
        
            r5.f7118 = (r5.f7116 - r5.f7125) - r6;
         */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public final void m4254(int i, int i2, int i3, int i4) {
            this.f7117 = i;
            this.f7116 = i2;
            int iM4255 = m4255();
            int iM4252 = m4252();
            boolean zM4257 = m4257();
            boolean zM4256 = m4256();
            if (!zM4257) {
                if (this.f7127) {
                    this.f7119 = i3 - iM4252;
                } else {
                    this.f7119 = i3 - iM4252;
                }
            }
            if (!zM4256) {
                if (this.f7127) {
                    this.f7118 = i4 - iM4252;
                } else {
                    this.f7118 = i4 - iM4252;
                }
            }
            if (zM4256 || zM4257) {
                return;
            }
            if (this.f7127) {
                int i5 = this.f7121;
                if ((i5 & 1) != 0) {
                    if ((this.f7120 & 1) != 0) {
                        this.f7118 = Math.max(this.f7118, i3 - iM4252);
                    }
                    this.f7119 = Math.min(this.f7119, this.f7118);
                    return;
                } else {
                    if ((i5 & 2) != 0) {
                        if ((this.f7120 & 2) != 0) {
                            this.f7119 = Math.min(this.f7119, i4 - iM4252);
                        }
                        this.f7118 = Math.max(this.f7119, this.f7118);
                        return;
                    }
                    return;
                }
            }
            int i6 = this.f7121;
            if ((i6 & 1) != 0) {
                if ((this.f7120 & 1) != 0) {
                    this.f7119 = Math.min(this.f7119, i4 - iM4252);
                }
                this.f7118 = Math.max(this.f7119, this.f7118);
            } else if ((i6 & 2) != 0) {
                if ((this.f7120 & 2) != 0) {
                    this.f7118 = Math.max(this.f7118, i3 - iM4252);
                }
                this.f7119 = Math.min(this.f7119, this.f7118);
            }
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final int m4255() {
            return (this.f7124 - this.f7125) - this.f7126;
        }

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public final boolean m4256() {
            return this.f7116 == Integer.MAX_VALUE;
        }

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public final boolean m4257() {
            return this.f7117 == Integer.MIN_VALUE;
        }
    }

    public C2192() {
        C2193 c2193 = new C2193();
        this.f7113 = c2193;
        this.f7114 = c2193;
        this.f7115 = this.f7112;
    }

    public String toString() {
        StringBuilder sbM4889 = C2803.m4889("horizontal=");
        sbM4889.append(this.f7113);
        sbM4889.append("; vertical=");
        sbM4889.append(this.f7112);
        return sbM4889.toString();
    }
}
