package androidx.recyclerview.widget; import android.view.View; import com.igaworks.ssp.R; /* loaded from: classes.dex */ class p { /* renamed from: a, reason: collision with root package name */ final b f2520a; /* renamed from: b, reason: collision with root package name */ a f2521b = new a(); static class a { /* renamed from: a, reason: collision with root package name */ int f2522a = 0; /* renamed from: b, reason: collision with root package name */ int f2523b; /* renamed from: c, reason: collision with root package name */ int f2524c; /* renamed from: d, reason: collision with root package name */ int f2525d; /* renamed from: e, reason: collision with root package name */ int f2526e; a() { } void a(int i10) { this.f2522a = i10 | this.f2522a; } boolean b() { int i10 = this.f2522a; if ((i10 & 7) != 0 && (i10 & (c(this.f2525d, this.f2523b) << 0)) == 0) { return false; } int i11 = this.f2522a; if ((i11 & R.styleable.AppCompatTheme_toolbarNavigationButtonStyle) != 0 && (i11 & (c(this.f2525d, this.f2524c) << 4)) == 0) { return false; } int i12 = this.f2522a; if ((i12 & 1792) != 0 && (i12 & (c(this.f2526e, this.f2523b) << 8)) == 0) { return false; } int i13 = this.f2522a; return (i13 & 28672) == 0 || (i13 & (c(this.f2526e, this.f2524c) << 12)) != 0; } int c(int i10, int i11) { if (i10 > i11) { return 1; } return i10 == i11 ? 2 : 4; } void d() { this.f2522a = 0; } void e(int i10, int i11, int i12, int i13) { this.f2523b = i10; this.f2524c = i11; this.f2525d = i12; this.f2526e = i13; } } interface b { View a(int i10); int b(View view); int c(); int d(); int e(View view); } p(b bVar) { this.f2520a = bVar; } View a(int i10, int i11, int i12, int i13) { int c10 = this.f2520a.c(); int d10 = this.f2520a.d(); int i14 = i11 > i10 ? 1 : -1; View view = null; while (i10 != i11) { View a10 = this.f2520a.a(i10); this.f2521b.e(c10, d10, this.f2520a.b(a10), this.f2520a.e(a10)); if (i12 != 0) { this.f2521b.d(); this.f2521b.a(i12); if (this.f2521b.b()) { return a10; } } if (i13 != 0) { this.f2521b.d(); this.f2521b.a(i13); if (this.f2521b.b()) { view = a10; } } i10 += i14; } return view; } boolean b(View view, int i10) { this.f2521b.e(this.f2520a.c(), this.f2520a.d(), this.f2520a.b(view), this.f2520a.e(view)); if (i10 == 0) { return false; } this.f2521b.d(); this.f2521b.a(i10); return this.f2521b.b(); } }