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

78 lines
2.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.zxing.NotFoundException;
import com.google.zxing.ReaderException;
import java.util.EnumMap;
import java.util.Map;
/* loaded from: classes2.dex */
final class hQI {
private static final int[] b = {1, 1, 2};
private final DRd a = new DRd();
private final C15233gkt d = new C15233gkt();
/* JADX INFO: Access modifiers changed from: package-private */
public final WFF e(int i, C17416wdP c17416wdP, int i2) throws NotFoundException {
EnumMap enumMap;
int i3 = 0;
int[] d = rua.d(c17416wdP, i2, false, b);
try {
return (WFF) C15233gkt.a(new Object[]{this.d, Integer.valueOf(i), c17416wdP, d}, 1374156903, -1374156903, i);
} catch (ReaderException unused) {
DRd dRd = this.a;
StringBuilder sb = dRd.d;
sb.setLength(0);
int[] iArr = dRd.b;
iArr[0] = 0;
iArr[1] = 0;
iArr[2] = 0;
iArr[3] = 0;
int i4 = c17416wdP.d;
int i5 = d[1];
int i6 = 0;
int i7 = 0;
while (i6 < 2 && i5 < i4) {
int e = rua.e(c17416wdP, iArr, i5, rua.d);
sb.append((char) ((e % 10) + 48));
int length = iArr.length;
while (i3 < length) {
i5 += iArr[i3];
i3++;
}
if (e >= 10) {
i7 |= 1 << (1 - i6);
}
if (i6 != 1) {
i5 = c17416wdP.c(c17416wdP.a(i5));
}
i6++;
i3 = 0;
}
if (sb.length() != 2) {
throw NotFoundException.b();
}
if (Integer.parseInt(sb.toString()) % 4 == i7) {
String obj = sb.toString();
if (obj.length() != 2) {
enumMap = null;
} else {
enumMap = new EnumMap(MoF.class);
enumMap.put((EnumMap) MoF.ISSUE_NUMBER, (MoF) Integer.valueOf(obj));
}
float f = i;
WFF wff = new WFF(obj, null, new qCz[]{new qCz((d[0] + d[1]) / 2.0f, f), new qCz(i5, f)}, PTS.UPC_EAN_EXTENSION);
if (enumMap != null && enumMap != null) {
Map<MoF, Object> map = wff.e;
if (map == null) {
wff.e = enumMap;
} else {
map.putAll(enumMap);
}
}
return wff;
}
throw NotFoundException.b();
}
}
}