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

52 lines
1.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.zxing.NotFoundException;
/* loaded from: classes2.dex */
public final class pNh extends rua {
static final int[] a = {0, 11, 13, 14, 19, 25, 28, 21, 22, 26};
private final int[] g = new int[4];
/* JADX INFO: Access modifiers changed from: protected */
@Override // o.rua
public final int b(C17416wdP c17416wdP, int[] iArr, StringBuilder sb) throws NotFoundException {
int[] iArr2 = this.g;
iArr2[0] = 0;
iArr2[1] = 0;
iArr2[2] = 0;
iArr2[3] = 0;
int i = c17416wdP.d;
int i2 = iArr[1];
int i3 = 0;
for (int i4 = 0; i4 < 6 && i2 < i; i4++) {
int e = e(c17416wdP, iArr2, i2, d);
sb.append((char) ((e % 10) + 48));
for (int i5 : iArr2) {
i2 += i5;
}
if (e >= 10) {
i3 |= 1 << (5 - i4);
}
}
for (int i6 = 0; i6 < 10; i6++) {
if (i3 == a[i6]) {
sb.insert(0, (char) (i6 + 48));
int i7 = d(c17416wdP, i2, true, e)[1];
for (int i8 = 0; i8 < 6 && i7 < i; i8++) {
sb.append((char) (e(c17416wdP, iArr2, i7, c) + 48));
for (int i9 : iArr2) {
i7 += i9;
}
}
return i7;
}
}
throw NotFoundException.b();
}
@Override // o.rua
final PTS d() {
return PTS.EAN_13;
}
}