package p037.p107.p108;

import android.view.View;

/* JADX INFO: renamed from: މ.ޏ.ށ.ޠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C2371 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final InterfaceC2373 f7518;

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

    /* JADX INFO: renamed from: މ.ޏ.ށ.ޠ$֏, reason: contains not printable characters */
    public static class C2372 {

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

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

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

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

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

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public int m4433(int i, int i2) {
            if (i > i2) {
                return 1;
            }
            return i == i2 ? 2 : 4;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public boolean m4434() {
            int i = this.f7520;
            if ((i & 7) != 0 && (i & (m4433(this.f7523, this.f7521) << 0)) == 0) {
                return false;
            }
            int i2 = this.f7520;
            if ((i2 & 112) != 0 && (i2 & (m4433(this.f7523, this.f7522) << 4)) == 0) {
                return false;
            }
            int i3 = this.f7520;
            if ((i3 & 1792) != 0 && (i3 & (m4433(this.f7524, this.f7521) << 8)) == 0) {
                return false;
            }
            int i4 = this.f7520;
            return (i4 & 28672) == 0 || (i4 & (m4433(this.f7524, this.f7522) << 12)) != 0;
        }
    }

    /* JADX INFO: renamed from: މ.ޏ.ށ.ޠ$ؠ, reason: contains not printable characters */
    public interface InterfaceC2373 {
        /* JADX INFO: renamed from: ֏ */
        int mo688();

        /* JADX INFO: renamed from: ֏ */
        int mo689(View view);

        /* JADX INFO: renamed from: ֏ */
        View mo690(int i);

        /* JADX INFO: renamed from: ؠ */
        int mo691();

        /* JADX INFO: renamed from: ؠ */
        int mo692(View view);
    }

    public C2371(InterfaceC2373 interfaceC2373) {
        this.f7518 = interfaceC2373;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public View m4431(int i, int i2, int i3, int i4) {
        int iMo691 = this.f7518.mo691();
        int iMo688 = this.f7518.mo688();
        int i5 = i2 > i ? 1 : -1;
        View view = null;
        while (i != i2) {
            View viewMo690 = this.f7518.mo690(i);
            int iMo689 = this.f7518.mo689(viewMo690);
            int iMo692 = this.f7518.mo692(viewMo690);
            C2372 c2372 = this.f7519;
            c2372.f7521 = iMo691;
            c2372.f7522 = iMo688;
            c2372.f7523 = iMo689;
            c2372.f7524 = iMo692;
            if (i3 != 0) {
                c2372.f7520 = 0;
                c2372.f7520 = i3 | 0;
                if (c2372.m4434()) {
                    return viewMo690;
                }
            }
            if (i4 != 0) {
                C2372 c23722 = this.f7519;
                c23722.f7520 = 0;
                c23722.f7520 = i4 | 0;
                if (c23722.m4434()) {
                    view = viewMo690;
                }
            }
            i += i5;
        }
        return view;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public boolean m4432(View view, int i) {
        C2372 c2372 = this.f7519;
        int iMo691 = this.f7518.mo691();
        int iMo688 = this.f7518.mo688();
        int iMo689 = this.f7518.mo689(view);
        int iMo692 = this.f7518.mo692(view);
        c2372.f7521 = iMo691;
        c2372.f7522 = iMo688;
        c2372.f7523 = iMo689;
        c2372.f7524 = iMo692;
        if (i == 0) {
            return false;
        }
        C2372 c23722 = this.f7519;
        c23722.f7520 = 0;
        c23722.f7520 = 0 | i;
        return c23722.m4434();
    }
}
