package o; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.util.ArrayList; import o.C17026tNn; /* loaded from: classes.dex */ public final class zvH { public WqU d; public final ArrayList c = new ArrayList<>(); private Sts a = new Sts(); /* loaded from: classes.dex */ public interface RVV { void a(C17026tNn c17026tNn, Sts sts); void e(); } /* loaded from: classes.dex */ public static class Sts { public int a; public boolean b; public int c; public int d; public C17026tNn.LWm e; public int f; public int g; public C17026tNn.LWm h; public boolean i; public int j; } public final void d(WqU wqU) { this.c.clear(); int size = ((C16458oZD) wqU).az.size(); for (int i = 0; i < size; i++) { C17026tNn c17026tNn = ((C16458oZD) wqU).az.get(i); if (c17026tNn.B[0] == C17026tNn.LWm.MATCH_CONSTRAINT || c17026tNn.B[1] == C17026tNn.LWm.MATCH_CONSTRAINT) { this.c.add(c17026tNn); } } wqU.ai.a = true; } public zvH(WqU wqU) { this.d = wqU; } public final void c(WqU wqU, int i, int i2, int i3) { int i4 = wqU.i(); int g = wqU.g(); wqU.g(0); wqU.j(0); wqU.i(i2); wqU.c(i3); wqU.g(i4); wqU.j(g); this.d.aw = i; this.d.e(); } public final boolean b(RVV rvv, C17026tNn c17026tNn, int i) { this.a.e = c17026tNn.B[0]; this.a.h = c17026tNn.B[1]; this.a.a = c17026tNn.Z == 8 ? 0 : c17026tNn.ac; this.a.j = c17026tNn.Z == 8 ? 0 : c17026tNn.p; this.a.i = false; this.a.c = i; boolean z = this.a.e == C17026tNn.LWm.MATCH_CONSTRAINT; boolean z2 = this.a.h == C17026tNn.LWm.MATCH_CONSTRAINT; boolean z3 = z && c17026tNn.s > BitmapDescriptorFactory.HUE_RED; boolean z4 = z2 && c17026tNn.s > BitmapDescriptorFactory.HUE_RED; if (z3 && c17026tNn.U[0] == 4) { this.a.e = C17026tNn.LWm.FIXED; } if (z4 && c17026tNn.U[1] == 4) { this.a.h = C17026tNn.LWm.FIXED; } rvv.a(c17026tNn, this.a); c17026tNn.i(this.a.g); c17026tNn.c(this.a.f); c17026tNn.d = this.a.b; int i2 = this.a.d; c17026tNn.k = i2; c17026tNn.d = i2 > 0; this.a.c = 0; return this.a.i; } }