package ῲ.䀟.K;

import android.view.View;

/* renamed from: ῲ.䀟.K.㶋  reason: contains not printable characters */
/* compiled from: ViewBoundsCheck */
public class C2334 {

    /* renamed from: ῲ  reason: contains not printable characters */
    public C2336 f8063 = new C2336();

    /* renamed from: K  reason: contains not printable characters */
    public final AbstractC2335 f8064;

    /* renamed from: ῲ.䀟.K.㶋$ῲ  reason: contains not printable characters */
    /* compiled from: ViewBoundsCheck */
    public interface AbstractC2335 {
        /* renamed from: ῲ  reason: contains not printable characters */
        int m6118();

        /* renamed from: ῲ  reason: contains not printable characters */
        int m6119(View view);

        /* renamed from: K  reason: contains not printable characters */
        int m6120();

        /* renamed from: K  reason: contains not printable characters */
        int m6121(View view);

        /* renamed from: K  reason: contains not printable characters */
        View m6122(int i);
    }

    /* renamed from: ῲ.䀟.K.㶋$K  reason: contains not printable characters */
    /* compiled from: ViewBoundsCheck */
    public static class C2336 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public int f8065;

        /* renamed from: ඓ  reason: contains not printable characters */
        public int f8066;

        /* renamed from: ῲ  reason: contains not printable characters */
        public int f8067;

        /* renamed from: K  reason: contains not printable characters */
        public int f8068 = 0;

        /* renamed from: 㸾  reason: contains not printable characters */
        public int f8069;

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

        /* renamed from: K  reason: contains not printable characters */
        public boolean m6124() {
            int i = this.f8068;
            if ((i & 7) != 0 && (i & (m6123(this.f8069, this.f8067) << 0)) == 0) {
                return false;
            }
            int i2 = this.f8068;
            if ((i2 & 112) != 0 && (i2 & (m6123(this.f8069, this.f8065) << 4)) == 0) {
                return false;
            }
            int i3 = this.f8068;
            if ((i3 & 1792) != 0 && (i3 & (m6123(this.f8066, this.f8067) << 8)) == 0) {
                return false;
            }
            int i4 = this.f8068;
            if ((i4 & 28672) == 0 || (i4 & (m6123(this.f8066, this.f8065) << 12)) != 0) {
                return true;
            }
            return false;
        }
    }

    public C2334(AbstractC2335 r1) {
        this.f8064 = r1;
    }

    /* renamed from: K  reason: contains not printable characters */
    public View m6116(int i, int i2, int i3, int i4) {
        int r0 = this.f8064.m6118();
        int r1 = this.f8064.m6120();
        int i5 = i2 > i ? 1 : -1;
        View view = null;
        while (i != i2) {
            View r4 = this.f8064.m6122(i);
            int r5 = this.f8064.m6119(r4);
            int r6 = this.f8064.m6121(r4);
            C2336 k = this.f8063;
            k.f8067 = r0;
            k.f8065 = r1;
            k.f8069 = r5;
            k.f8066 = r6;
            if (i3 != 0) {
                k.f8068 = 0;
                k.f8068 |= i3;
                if (k.m6124()) {
                    return r4;
                }
            }
            if (i4 != 0) {
                C2336 k2 = this.f8063;
                k2.f8068 = 0;
                k2.f8068 |= i4;
                if (k2.m6124()) {
                    view = r4;
                }
            }
            i += i5;
        }
        return view;
    }

    /* renamed from: K  reason: contains not printable characters */
    public boolean m6117(View view, int i) {
        C2336 k = this.f8063;
        int r1 = this.f8064.m6118();
        int r2 = this.f8064.m6120();
        int r3 = this.f8064.m6119(view);
        int r6 = this.f8064.m6121(view);
        k.f8067 = r1;
        k.f8065 = r2;
        k.f8069 = r3;
        k.f8066 = r6;
        if (i == 0) {
            return false;
        }
        C2336 k2 = this.f8063;
        k2.f8068 = 0;
        k2.f8068 |= i;
        return k2.m6124();
    }
}
