package n0;

import I0.AbstractC0301k;
import I0.AbstractC0303l;
import androidx.compose.runtime.collection.MutableVector;
import i0.AbstractC2254r;
import q.AbstractC2761L;

/* JADX INFO: loaded from: classes.dex */
public final class x {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final x f21556b = new x();

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final x f21557c = new x();

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final x f21558d = new x();

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final MutableVector f21559a = new MutableVector(new z[16], 0);

    /* JADX WARN: Code restructure failed: missing block: B:69:0x005b, code lost:
    
        continue;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static boolean a(x xVar) {
        xVar.getClass();
        if (xVar == f21556b) {
            throw new IllegalStateException("\n    Please check whether the focusRequester is FocusRequester.Cancel or FocusRequester.Default\n    before invoking any functions on the focusRequester.\n");
        }
        if (xVar == f21557c) {
            throw new IllegalStateException("\n    Please check whether the focusRequester is FocusRequester.Cancel or FocusRequester.Default\n    before invoking any functions on the focusRequester.\n");
        }
        MutableVector mutableVector = xVar.f21559a;
        if (mutableVector.getSize() == 0) {
            System.out.println((Object) "FocusRelatedWarning: \n   FocusRequester is not initialized. Here are some possible fixes:\n\n   1. Remember the FocusRequester: val focusRequester = remember { FocusRequester() }\n   2. Did you forget to add a Modifier.focusRequester() ?\n   3. Are you attempting to request focus during composition? Focus requests should be made in\n   response to some event. Eg Modifier.clickable { focusRequester.requestFocus() }\n");
            return false;
        }
        Object[] objArr = mutableVector.content;
        int size = mutableVector.getSize();
        boolean z6 = false;
        for (int i6 = 0; i6 < size; i6++) {
            AbstractC2254r abstractC2254r = (AbstractC2254r) ((z) objArr[i6]);
            if (!abstractC2254r.getNode().isAttached()) {
                F0.a.b("visitChildren called on an unattached node");
            }
            MutableVector mutableVector2 = new MutableVector(new AbstractC2254r[16], 0);
            AbstractC2254r child$ui = abstractC2254r.getNode().getChild$ui();
            if (child$ui == null) {
                AbstractC0303l.b(mutableVector2, abstractC2254r.getNode());
            } else {
                mutableVector2.add(child$ui);
            }
            while (true) {
                if (mutableVector2.getSize() != 0) {
                    AbstractC2254r abstractC2254rE = (AbstractC2254r) AbstractC2761L.e(1, mutableVector2);
                    if ((abstractC2254rE.getAggregateChildKindSet$ui() & 1024) == 0) {
                        AbstractC0303l.b(mutableVector2, abstractC2254rE);
                    } else {
                        while (true) {
                            if (abstractC2254rE == null) {
                                break;
                            }
                            if ((abstractC2254rE.getKindSet$ui() & 1024) != 0) {
                                MutableVector mutableVector3 = null;
                                while (abstractC2254rE != null) {
                                    if (abstractC2254rE instanceof E) {
                                        if (((E) abstractC2254rE).A0(7)) {
                                            z6 = true;
                                            break;
                                        }
                                    } else if ((abstractC2254rE.getKindSet$ui() & 1024) != 0 && (abstractC2254rE instanceof AbstractC0301k)) {
                                        int i7 = 0;
                                        for (AbstractC2254r child$ui2 = ((AbstractC0301k) abstractC2254rE).f2431b; child$ui2 != null; child$ui2 = child$ui2.getChild$ui()) {
                                            if ((child$ui2.getKindSet$ui() & 1024) != 0) {
                                                i7++;
                                                if (i7 == 1) {
                                                    abstractC2254rE = child$ui2;
                                                } else {
                                                    if (mutableVector3 == null) {
                                                        mutableVector3 = new MutableVector(new AbstractC2254r[16], 0);
                                                    }
                                                    if (abstractC2254rE != null) {
                                                        mutableVector3.add(abstractC2254rE);
                                                        abstractC2254rE = null;
                                                    }
                                                    mutableVector3.add(child$ui2);
                                                }
                                            }
                                        }
                                        if (i7 == 1) {
                                        }
                                    }
                                    abstractC2254rE = AbstractC0303l.e(mutableVector3);
                                }
                            } else {
                                abstractC2254rE = abstractC2254rE.getChild$ui();
                            }
                        }
                    }
                }
            }
        }
        return z6;
    }
}
