114 lines
4.3 KiB
Java
114 lines
4.3 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.common.primitives.UnsignedBytes;
|
||
|
import com.google.zxing.WriterException;
|
||
|
import java.nio.charset.Charset;
|
||
|
import java.nio.charset.StandardCharsets;
|
||
|
import o.C0480Hnn;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class VNp {
|
||
|
private static final int[] d = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1};
|
||
|
private static Charset b = StandardCharsets.ISO_8859_1;
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:180:0x0438, code lost:
|
||
|
|
||
|
if (r3 < 8) goto L203;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static o.zba b(java.lang.String r25, o.FVz r26, java.util.Map<o.EnumC14826gQH, ?> r27) throws com.google.zxing.WriterException {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 1572
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.VNp.b(java.lang.String, o.FVz, java.util.Map):o.zba");
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int e(int i) {
|
||
|
int[] iArr = d;
|
||
|
if (i < iArr.length) {
|
||
|
return iArr[i];
|
||
|
}
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static boolean a(String str) {
|
||
|
byte[] bytes = str.getBytes(ZHN.e);
|
||
|
int length = bytes.length;
|
||
|
if (length % 2 != 0) {
|
||
|
return false;
|
||
|
}
|
||
|
for (int i = 0; i < length; i += 2) {
|
||
|
int i2 = bytes[i] & UnsignedBytes.MAX_VALUE;
|
||
|
if ((i2 < 129 || i2 > 159) && (i2 < 224 || i2 > 235)) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
private static C0480Hnn d(int i, FVz fVz) throws WriterException {
|
||
|
for (int i2 = 1; i2 <= 40; i2++) {
|
||
|
C0480Hnn a = C0480Hnn.a(i2);
|
||
|
if (b(i, a, fVz)) {
|
||
|
return a;
|
||
|
}
|
||
|
}
|
||
|
throw new WriterException("Data too big");
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* renamed from: o.VNp$5, reason: invalid class name */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public static /* synthetic */ class AnonymousClass5 {
|
||
|
static final int[] a;
|
||
|
|
||
|
static {
|
||
|
int[] iArr = new int[JLe.values().length];
|
||
|
a = iArr;
|
||
|
try {
|
||
|
iArr[JLe.NUMERIC.ordinal()] = 1;
|
||
|
} catch (NoSuchFieldError unused) {
|
||
|
}
|
||
|
try {
|
||
|
a[JLe.ALPHANUMERIC.ordinal()] = 2;
|
||
|
} catch (NoSuchFieldError unused2) {
|
||
|
}
|
||
|
try {
|
||
|
a[JLe.BYTE.ordinal()] = 3;
|
||
|
} catch (NoSuchFieldError unused3) {
|
||
|
}
|
||
|
try {
|
||
|
a[JLe.KANJI.ordinal()] = 4;
|
||
|
} catch (NoSuchFieldError unused4) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:19:0x0050 A[LOOP:0: B:11:0x0023->B:19:0x0050, LOOP_END] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:20:0x005f A[SYNTHETIC] */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static void b(java.lang.String r8, o.JLe r9, o.C17416wdP r10, java.nio.charset.Charset r11) throws com.google.zxing.WriterException {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 279
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.VNp.b(java.lang.String, o.JLe, o.wdP, java.nio.charset.Charset):void");
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static boolean b(int i, C0480Hnn c0480Hnn, FVz fVz) {
|
||
|
int i2 = c0480Hnn.b;
|
||
|
C0480Hnn.Sts sts = c0480Hnn.c[fVz.ordinal()];
|
||
|
return i2 - (sts.b * sts.d()) >= (i + 7) / 8;
|
||
|
}
|
||
|
}
|