package o;

import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.b10, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0775b10 {
    public W00 a;
    public ArrayList b;
    public long c;
    public long d;
    public long e;
    public long f;

    public static void b(AbstractC2488t10 abstractC2488t10) {
        RecyclerView recyclerView;
        int i = abstractC2488t10.j;
        if (abstractC2488t10.f() || (i & 4) != 0 || (recyclerView = abstractC2488t10.r) == null) {
            return;
        }
        recyclerView.F(abstractC2488t10);
    }

    public abstract boolean a(AbstractC2488t10 abstractC2488t10, AbstractC2488t10 abstractC2488t102, KZ kz, KZ kz2);

    public final void c(AbstractC2488t10 abstractC2488t10) {
        W00 w00 = this.a;
        if (w00 != null) {
            RecyclerView recyclerView = w00.a;
            boolean z = true;
            abstractC2488t10.n(true);
            View view = abstractC2488t10.a;
            if (abstractC2488t10.h != null && abstractC2488t10.i == null) {
                abstractC2488t10.h = null;
            }
            abstractC2488t10.i = null;
            if ((abstractC2488t10.j & 16) != 0) {
                return;
            }
            C1729l10 c1729l10 = recyclerView.m;
            recyclerView.a0();
            C3126zm0 c3126zm0 = recyclerView.p;
            C0189Hh c0189Hh = (C0189Hh) c3126zm0.n;
            W00 w002 = (W00) c3126zm0.m;
            int iIndexOfChild = w002.a.indexOfChild(view);
            if (iIndexOfChild == -1) {
                c3126zm0.V(view);
            } else if (c0189Hh.f(iIndexOfChild)) {
                c0189Hh.j(iIndexOfChild);
                c3126zm0.V(view);
                w002.h(iIndexOfChild);
            } else {
                z = false;
            }
            if (z) {
                AbstractC2488t10 abstractC2488t10I = RecyclerView.I(view);
                c1729l10.j(abstractC2488t10I);
                c1729l10.g(abstractC2488t10I);
            }
            recyclerView.b0(!z);
            if (z || !abstractC2488t10.j()) {
                return;
            }
            recyclerView.removeDetachedView(view, false);
        }
    }

    public abstract void d(AbstractC2488t10 abstractC2488t10);

    public abstract void e();

    public abstract boolean f();
}
