package o; import android.view.View; import androidx.recyclerview.widget.RecyclerView; /* loaded from: classes2.dex */ public final class CfC { public static RecyclerView.zJl a(View view) { RecyclerView recyclerView; View b; View view2 = view; while (view2 != null) { Object parent = view2.getParent(); if (parent instanceof RecyclerView) { recyclerView = (RecyclerView) parent; break; } if (!(parent instanceof View)) { break; } view2 = (View) parent; } recyclerView = null; if (recyclerView == null || (b = recyclerView.b(view)) == null) { return null; } return recyclerView.g(b); } }