package o; import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView.zJl; import java.util.ArrayList; /* renamed from: o.eqD, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public abstract class AbstractC12010eqD extends RecyclerView.Sts { public final int a; public ArrayList c; public AbstractC12010eqD(ArrayList arrayList) { C14957gcv.e(arrayList, ""); this.c = arrayList; this.a = 1073741823; } public final int b(int i) { if (this.c.size() == 0) { return 0; } int i2 = this.a; if (i < i2) { int size = (i2 - i) % this.c.size(); if (size == 0) { return 0; } return this.c.size() - size; } return (i - i2) % this.c.size(); } @Override // androidx.recyclerview.widget.RecyclerView.Sts public int getItemCount() { if (this.c.size() <= 1) { return this.c.size(); } return Integer.MAX_VALUE; } }