350 lines
11 KiB
Java
350 lines
11 KiB
Java
package o;
|
|
|
|
import com.google.zxing.ChecksumException;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class IiO extends xue {
|
|
static final int b;
|
|
private static final char[] c = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*".toCharArray();
|
|
static final int[] e;
|
|
private final StringBuilder d = new StringBuilder(20);
|
|
private final int[] a = new int[6];
|
|
|
|
static {
|
|
int[] iArr = {276, 328, 324, 322, 296, 292, 290, 336, 274, 266, 424, 420, 418, 404, 402, 394, 360, 356, 354, 308, 282, 344, 332, 326, 300, 278, 436, 434, 428, 422, 406, 410, 364, 358, 310, 314, 302, 468, 466, 458, 366, 374, 430, 294, 474, 470, 306, 350};
|
|
e = iArr;
|
|
b = iArr[47];
|
|
}
|
|
|
|
private static int e(int[] iArr) {
|
|
int i = 0;
|
|
for (int i2 : iArr) {
|
|
i += i2;
|
|
}
|
|
int length = iArr.length;
|
|
int i3 = 0;
|
|
for (int i4 = 0; i4 < length; i4++) {
|
|
int round = Math.round((iArr[i4] * 9.0f) / i);
|
|
if (round <= 0 || round > 4) {
|
|
return -1;
|
|
}
|
|
if ((i4 & 1) == 0) {
|
|
for (int i5 = 0; i5 < round; i5++) {
|
|
i3 = (i3 << 1) | 1;
|
|
}
|
|
} else {
|
|
i3 <<= round;
|
|
}
|
|
}
|
|
return i3;
|
|
}
|
|
|
|
private static void c(CharSequence charSequence, int i, int i2) throws ChecksumException {
|
|
int i3 = 0;
|
|
int i4 = 1;
|
|
for (int i5 = i - 1; i5 >= 0; i5--) {
|
|
i3 += "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*".indexOf(charSequence.charAt(i5)) * i4;
|
|
i4++;
|
|
if (i4 > i2) {
|
|
i4 = 1;
|
|
}
|
|
}
|
|
if (charSequence.charAt(i) != c[i3 % 47]) {
|
|
throw ChecksumException.e();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:100:0x0141, code lost:
|
|
|
|
r5 = '`';
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:102:0x0146, code lost:
|
|
|
|
if (r6 < 'X') goto L131;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:103:0x0148, code lost:
|
|
|
|
if (r6 > 'Z') goto L132;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:104:0x014a, code lost:
|
|
|
|
r5 = com.google.common.base.Ascii.MAX;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:107:0x0151, code lost:
|
|
|
|
throw com.google.zxing.FormatException.c();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:109:0x0152, code lost:
|
|
|
|
if (r6 < 'A') goto L134;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:110:0x0154, code lost:
|
|
|
|
if (r6 > 'Z') goto L135;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:111:0x0156, code lost:
|
|
|
|
r6 = r6 - '@';
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:114:0x015e, code lost:
|
|
|
|
throw com.google.zxing.FormatException.c();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:116:0x015f, code lost:
|
|
|
|
r5 = 0;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:119:0x0168, code lost:
|
|
|
|
throw com.google.zxing.FormatException.c();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:120:0x0169, code lost:
|
|
|
|
r2.append(r5);
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:123:0x016f, code lost:
|
|
|
|
r13 = r13;
|
|
r15 = new o.WFF(r2.toString(), null, new o.qCz[]{new o.qCz((r15[1] + r15[0]) / 2.0f, r13), new o.qCz(r1 + (r8 / 2.0f), r13)}, o.PTS.CODE_93);
|
|
r15.b(o.MoF.SYMBOLOGY_IDENTIFIER, "]G0");
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:124:0x019e, code lost:
|
|
|
|
return r15;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:126:0x01a3, code lost:
|
|
|
|
throw com.google.zxing.NotFoundException.b();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:128:0x01a8, code lost:
|
|
|
|
throw com.google.zxing.NotFoundException.b();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:28:0x0064, code lost:
|
|
|
|
r5 = o.IiO.c[r6];
|
|
r4.append(r5);
|
|
r6 = r3.length;
|
|
r7 = 0;
|
|
r8 = r1;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:29:0x006e, code lost:
|
|
|
|
if (r7 >= r6) goto L128;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:30:0x0070, code lost:
|
|
|
|
r8 = r8 + r3[r7];
|
|
r7 = r7 + 1;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:32:0x0076, code lost:
|
|
|
|
r6 = r14.a(r8);
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:33:0x007c, code lost:
|
|
|
|
if (r5 != '*') goto L108;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:36:0x007e, code lost:
|
|
|
|
r4.deleteCharAt(r4.length() - 1);
|
|
r5 = r3.length;
|
|
r7 = 0;
|
|
r8 = 0;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:37:0x0089, code lost:
|
|
|
|
if (r7 >= r5) goto L129;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:38:0x008b, code lost:
|
|
|
|
r8 = r8 + r3[r7];
|
|
r7 = r7 + 1;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:40:0x0091, code lost:
|
|
|
|
if (r6 == r2) goto L106;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:42:0x009e, code lost:
|
|
|
|
if ((r14.a[r6 / 32] & (1 << (r6 & 31))) == 0) goto L106;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:44:0x00a4, code lost:
|
|
|
|
if (r4.length() < 2) goto L104;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:45:0x00a6, code lost:
|
|
|
|
r14 = r4.length();
|
|
c(r4, r14 - 2, 20);
|
|
c(r4, r14 - 1, 15);
|
|
r4.setLength(r4.length() - 2);
|
|
r14 = r4.length();
|
|
r2 = new java.lang.StringBuilder(r14);
|
|
r3 = 0;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:46:0x00c9, code lost:
|
|
|
|
if (r3 >= r14) goto L133;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:47:0x00cb, code lost:
|
|
|
|
r5 = r4.charAt(r3);
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:48:0x00d1, code lost:
|
|
|
|
if (r5 < 'a') goto L100;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:50:0x00d5, code lost:
|
|
|
|
if (r5 > 'd') goto L100;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:52:0x00d9, code lost:
|
|
|
|
if (r3 >= (r14 - 1)) goto L136;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:53:0x00db, code lost:
|
|
|
|
r3 = r3 + 1;
|
|
r6 = r4.charAt(r3);
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:54:0x00e7, code lost:
|
|
|
|
switch(r5) {
|
|
case 97: goto L90;
|
|
case 98: goto L58;
|
|
case 99: goto L51;
|
|
case 100: goto L46;
|
|
default: goto L96;
|
|
};
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:55:0x00ec, code lost:
|
|
|
|
if (r6 < 'A') goto L137;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:56:0x00ee, code lost:
|
|
|
|
if (r6 > 'Z') goto L138;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:57:0x00f0, code lost:
|
|
|
|
r6 = r6 + ' ';
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:58:0x0158, code lost:
|
|
|
|
r5 = (char) r6;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:59:0x0160, code lost:
|
|
|
|
r2.append(r5);
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:61:0x016c, code lost:
|
|
|
|
r3 = r3 + 1;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:64:0x00f8, code lost:
|
|
|
|
throw com.google.zxing.FormatException.c();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:67:0x00f9, code lost:
|
|
|
|
if (r6 < 'A') goto L54;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:68:0x00fb, code lost:
|
|
|
|
if (r6 > 'O') goto L54;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:69:0x00fd, code lost:
|
|
|
|
r6 = r6 - ' ';
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:70:0x0100, code lost:
|
|
|
|
if (r6 != 'Z') goto L130;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:71:0x0102, code lost:
|
|
|
|
r5 = ':';
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:74:0x0109, code lost:
|
|
|
|
throw com.google.zxing.FormatException.c();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:75:0x010a, code lost:
|
|
|
|
if (r6 < 'A') goto L62;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:77:0x010e, code lost:
|
|
|
|
if (r6 > 'E') goto L62;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:78:0x0110, code lost:
|
|
|
|
r6 = r6 - '&';
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:80:0x0115, code lost:
|
|
|
|
if (r6 < 'F') goto L67;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:82:0x0119, code lost:
|
|
|
|
if (r6 > 'J') goto L67;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:83:0x011b, code lost:
|
|
|
|
r6 = r6 - 11;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:85:0x0120, code lost:
|
|
|
|
if (r6 < 'K') goto L71;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:86:0x0122, code lost:
|
|
|
|
if (r6 > 'O') goto L71;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:87:0x0124, code lost:
|
|
|
|
r6 = r6 + 16;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:89:0x0129, code lost:
|
|
|
|
if (r6 < 'P') goto L76;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:91:0x012d, code lost:
|
|
|
|
if (r6 > 'T') goto L76;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:92:0x012f, code lost:
|
|
|
|
r6 = r6 + '+';
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:94:0x0134, code lost:
|
|
|
|
if (r6 == 'U') goto L96;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:96:0x0138, code lost:
|
|
|
|
if (r6 != 'V') goto L81;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:97:0x013a, code lost:
|
|
|
|
r5 = '@';
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:99:0x013f, code lost:
|
|
|
|
if (r6 != 'W') goto L84;
|
|
*/
|
|
@Override // o.xue
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final o.WFF d(int r13, o.C17416wdP r14, java.util.Map<o.CGg, ?> r15) throws com.google.zxing.NotFoundException, com.google.zxing.ChecksumException, com.google.zxing.FormatException {
|
|
/*
|
|
Method dump skipped, instructions count: 488
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.IiO.d(int, o.wdP, java.util.Map):o.WFF");
|
|
}
|
|
}
|