109 lines
3.3 KiB
Java
109 lines
3.3 KiB
Java
package o;
|
|
|
|
import com.google.zxing.FormatException;
|
|
|
|
/* renamed from: o.fui, reason: case insensitive filesystem */
|
|
/* loaded from: classes2.dex */
|
|
final class C14518fui {
|
|
private final C8902dZc b;
|
|
private final C8902dZc c;
|
|
final vax d;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public C14518fui(C8902dZc c8902dZc) throws FormatException {
|
|
int i = c8902dZc.c;
|
|
if (i < 8 || i > 144 || (i & 1) != 0) {
|
|
throw FormatException.c();
|
|
}
|
|
vax c = vax.c(c8902dZc.c, c8902dZc.e);
|
|
this.d = c;
|
|
int i2 = c.e;
|
|
int i3 = c.b;
|
|
if (c8902dZc.c != i2) {
|
|
throw new IllegalArgumentException("Dimension of bitMatrix must match the version size");
|
|
}
|
|
int i4 = c.d;
|
|
int i5 = c.a;
|
|
int i6 = i2 / i4;
|
|
int i7 = i3 / i5;
|
|
C8902dZc c8902dZc2 = new C8902dZc(i7 * i5, i6 * i4);
|
|
for (int i8 = 0; i8 < i6; i8++) {
|
|
for (int i9 = 0; i9 < i7; i9++) {
|
|
for (int i10 = 0; i10 < i4; i10++) {
|
|
for (int i11 = 0; i11 < i5; i11++) {
|
|
if (c8902dZc.b(((i5 + 2) * i9) + 1 + i11, ((i4 + 2) * i8) + 1 + i10)) {
|
|
c8902dZc2.a((i9 * i5) + i11, (i8 * i4) + i10);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.c = c8902dZc2;
|
|
this.b = new C8902dZc(c8902dZc2.e, c8902dZc2.c);
|
|
}
|
|
|
|
private boolean b(int i, int i2, int i3, int i4) {
|
|
if (i < 0) {
|
|
i += i3;
|
|
i2 += 4 - ((i3 + 4) & 7);
|
|
}
|
|
if (i2 < 0) {
|
|
i2 += i4;
|
|
i += 4 - ((i4 + 4) & 7);
|
|
}
|
|
if (i >= i3) {
|
|
i -= i3;
|
|
}
|
|
this.b.a(i2, i);
|
|
return this.c.b(i2, i);
|
|
}
|
|
|
|
private int c(int i, int i2, int i3, int i4) {
|
|
int i5 = i - 2;
|
|
int i6 = i2 - 2;
|
|
int i7 = (b(i5, i6, i3, i4) ? 1 : 0) << 1;
|
|
int i8 = i2 - 1;
|
|
if (b(i5, i8, i3, i4)) {
|
|
i7 |= 1;
|
|
}
|
|
int i9 = i7 << 1;
|
|
int i10 = i - 1;
|
|
if (b(i10, i6, i3, i4)) {
|
|
i9 |= 1;
|
|
}
|
|
int i11 = i9 << 1;
|
|
if (b(i10, i8, i3, i4)) {
|
|
i11 |= 1;
|
|
}
|
|
int i12 = i11 << 1;
|
|
if (b(i10, i2, i3, i4)) {
|
|
i12 |= 1;
|
|
}
|
|
int i13 = i12 << 1;
|
|
if (b(i, i6, i3, i4)) {
|
|
i13 |= 1;
|
|
}
|
|
int i14 = i13 << 1;
|
|
if (b(i, i8, i3, i4)) {
|
|
i14 |= 1;
|
|
}
|
|
int i15 = i14 << 1;
|
|
return b(i, i2, i3, i4) ? i15 | 1 : i15;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: Removed duplicated region for block: B:30:0x01f5 A[SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:41:0x0018 A[ADDED_TO_REGION, SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final byte[] a() throws com.google.zxing.FormatException {
|
|
/*
|
|
Method dump skipped, instructions count: 515
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.C14518fui.a():byte[]");
|
|
}
|
|
}
|