package o; /* renamed from: o.pkz, reason: case insensitive filesystem */ /* loaded from: classes2.dex */ final class C16621pkz extends iJs { final boolean a; /* JADX INFO: Access modifiers changed from: package-private */ public C16621pkz(hOP hop, boolean z) { super(hop); this.a = z; } /* JADX INFO: Access modifiers changed from: package-private */ public final void c(vDP[] vdpArr, YdT ydT) { for (int i = 0; i < vdpArr.length; i++) { vDP vdp = vdpArr[i]; if (vdp != null) { int i2 = vdp.e % 30; int i3 = vdp.b; if (i3 > ydT.b) { vdpArr[i] = null; } else { if (!this.a) { i3 += 2; } int i4 = i3 % 3; if (i4 != 0) { if (i4 != 1) { if (i4 == 2 && i2 + 1 != ydT.c) { vdpArr[i] = null; } } else if (i2 / 3 != ydT.a || i2 % 3 != ydT.d) { vdpArr[i] = null; } } else if ((i2 * 3) + 1 != ydT.e) { vdpArr[i] = null; } } } } } @Override // o.iJs public final String toString() { StringBuilder sb = new StringBuilder("IsLeft: "); sb.append(this.a); sb.append('\n'); sb.append(super.toString()); return sb.toString(); } /* JADX INFO: Access modifiers changed from: package-private */ public final YdT a() { vDP[] vdpArr = this.e; C17191uge c17191uge = new C17191uge(); C17191uge c17191uge2 = new C17191uge(); C17191uge c17191uge3 = new C17191uge(); C17191uge c17191uge4 = new C17191uge(); for (vDP vdp : vdpArr) { if (vdp != null) { vdp.b = ((vdp.e / 30) * 3) + (vdp.c / 3); int i = vdp.e % 30; int i2 = vdp.b; if (!this.a) { i2 += 2; } int i3 = i2 % 3; if (i3 == 0) { c17191uge2.a((i * 3) + 1); } else if (i3 == 1) { c17191uge4.a(i / 3); c17191uge3.a(i % 3); } else if (i3 == 2) { c17191uge.a(i + 1); } } } if (c17191uge.c().length == 0 || c17191uge2.c().length == 0 || c17191uge3.c().length == 0 || c17191uge4.c().length == 0 || c17191uge.c()[0] <= 0 || c17191uge2.c()[0] + c17191uge3.c()[0] < 3 || c17191uge2.c()[0] + c17191uge3.c()[0] > 90) { return null; } YdT ydT = new YdT(c17191uge.c()[0], c17191uge2.c()[0], c17191uge3.c()[0], c17191uge4.c()[0]); c(vdpArr, ydT); return ydT; } }