what-the-bank/sources/o/uxh.java

93 lines
2.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.zxing.FormatException;
/* loaded from: classes2.dex */
final class uxh {
C0480Hnn a;
EFY b;
final C8902dZc d;
boolean e;
/* JADX INFO: Access modifiers changed from: package-private */
public uxh(C8902dZc c8902dZc) throws FormatException {
int i = c8902dZc.c;
if (i >= 21 && (i & 3) == 1) {
this.d = c8902dZc;
return;
}
throw FormatException.c();
}
/* JADX INFO: Access modifiers changed from: package-private */
public final EFY b() throws FormatException {
EFY efy = this.b;
if (efy != null) {
return efy;
}
int i = 0;
int i2 = 0;
for (int i3 = 0; i3 < 6; i3++) {
i2 = b(i3, 8, i2);
}
int b = b(8, 7, b(8, 8, b(7, 8, i2)));
for (int i4 = 5; i4 >= 0; i4--) {
b = b(8, i4, b);
}
int i5 = this.d.c;
for (int i6 = i5 - 1; i6 >= i5 - 7; i6--) {
i = b(8, i6, i);
}
for (int i7 = i5 - 8; i7 < i5; i7++) {
i = b(i7, 8, i);
}
EFY a = EFY.a(b, i);
this.b = a;
if (a != null) {
return a;
}
throw FormatException.c();
}
private int b(int i, int i2, int i3) {
return this.e ? this.d.b(i2, i) : this.d.b(i, i2) ? (i3 << 1) | 1 : i3 << 1;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final C0480Hnn d() throws FormatException {
C0480Hnn c0480Hnn = this.a;
if (c0480Hnn != null) {
return c0480Hnn;
}
int i = this.d.c;
int i2 = (i - 17) / 4;
if (i2 <= 6) {
return C0480Hnn.a(i2);
}
int i3 = i - 11;
int i4 = 0;
int i5 = 0;
for (int i6 = 5; i6 >= 0; i6--) {
for (int i7 = i - 9; i7 >= i3; i7--) {
i5 = b(i7, i6, i5);
}
}
C0480Hnn e = C0480Hnn.e(i5);
if (e != null && (e.e << 2) + 17 == i) {
this.a = e;
return e;
}
for (int i8 = 5; i8 >= 0; i8--) {
for (int i9 = i - 9; i9 >= i3; i9--) {
i4 = b(i8, i9, i4);
}
}
C0480Hnn e2 = C0480Hnn.e(i4);
if (e2 != null && (e2.e << 2) + 17 == i) {
this.a = e2;
return e2;
}
throw FormatException.c();
}
}