package q1;

import androidx.compose.ui.focus.FocusTargetNode;
import j2.g0;
import j2.j1;
import j2.z0;

/* loaded from: classes.dex */
public abstract class p {
    public static final q b(FocusTargetNode focusTargetNode) {
        g0 w12;
        j1 n02;
        g focusOwner;
        z0 G1 = focusTargetNode.P0().G1();
        if (G1 == null || (w12 = G1.w1()) == null || (n02 = w12.n0()) == null || (focusOwner = n02.getFocusOwner()) == null) {
            return null;
        }
        return focusOwner.i();
    }

    public static final void c(FocusTargetNode focusTargetNode) {
        j2.k.n(focusTargetNode).getFocusOwner().a(focusTargetNode);
    }

    public static final q d(FocusTargetNode focusTargetNode) {
        return j2.k.n(focusTargetNode).getFocusOwner().i();
    }
}
