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

86 lines
3.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.zxing.ChecksumException;
import com.google.zxing.FormatException;
import com.google.zxing.NotFoundException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;
/* loaded from: classes2.dex */
public final class xoE implements zIz {
private static final WFF[] e = new WFF[0];
@Override // o.zIz
public final void c() {
}
@Override // o.zIz
public final WFF a(BKc bKc) throws NotFoundException, FormatException, ChecksumException {
return b(bKc, null);
}
@Override // o.zIz
public final WFF b(BKc bKc, Map<CGg, ?> map) throws NotFoundException, FormatException, ChecksumException {
WFF wff;
ArrayList arrayList = new ArrayList();
mZe b = C17210uon.b(bKc);
Iterator<qCz[]> it = b.d.iterator();
while (true) {
int i = 0;
if (!it.hasNext()) {
break;
}
qCz[] next = it.next();
C8902dZc c8902dZc = b.b;
qCz qcz = next[4];
qCz qcz2 = next[5];
qCz qcz3 = next[6];
qCz qcz4 = next[7];
qCz qcz5 = next[0];
int abs = (qcz5 == null || qcz == null) ? Integer.MAX_VALUE : (int) Math.abs(qcz5.a - qcz.a);
qCz qcz6 = next[6];
qCz qcz7 = next[2];
int min = Math.min(abs, (((qcz6 == null || qcz7 == null) ? Integer.MAX_VALUE : (int) Math.abs(qcz6.a - qcz7.a)) * 17) / 18);
qCz qcz8 = next[1];
qCz qcz9 = next[5];
int abs2 = (qcz8 == null || qcz9 == null) ? Integer.MAX_VALUE : (int) Math.abs(qcz8.a - qcz9.a);
qCz qcz10 = next[7];
qCz qcz11 = next[3];
int min2 = Math.min(min, Math.min(abs2, (((qcz10 == null || qcz11 == null) ? Integer.MAX_VALUE : (int) Math.abs(qcz10.a - qcz11.a)) * 17) / 18));
qCz qcz12 = next[0];
qCz qcz13 = next[4];
int abs3 = (qcz12 == null || qcz13 == null) ? 0 : (int) Math.abs(qcz12.a - qcz13.a);
qCz qcz14 = next[6];
qCz qcz15 = next[2];
int max = Math.max(abs3, (((qcz14 == null || qcz15 == null) ? 0 : (int) Math.abs(qcz14.a - qcz15.a)) * 17) / 18);
qCz qcz16 = next[1];
qCz qcz17 = next[5];
int abs4 = (qcz16 == null || qcz17 == null) ? 0 : (int) Math.abs(qcz16.a - qcz17.a);
qCz qcz18 = next[7];
qCz qcz19 = next[3];
if (qcz18 != null && qcz19 != null) {
i = (int) Math.abs(qcz18.a - qcz19.a);
}
Qys a = C17683yqB.a(c8902dZc, qcz, qcz2, qcz3, qcz4, min2, Math.max(max, Math.max(abs4, (i * 17) / 18)));
WFF wff2 = new WFF(a.i, a.c, next, PTS.PDF_417);
wff2.b(MoF.ERROR_CORRECTION_LEVEL, a.e);
RYc rYc = (RYc) a.d;
if (rYc != null) {
wff2.b(MoF.PDF417_EXTRA_METADATA, rYc);
}
wff2.b(MoF.ORIENTATION, Integer.valueOf(b.a));
MoF moF = MoF.SYMBOLOGY_IDENTIFIER;
StringBuilder sb = new StringBuilder("]L");
sb.append(a.f);
wff2.b(moF, sb.toString());
arrayList.add(wff2);
}
WFF[] wffArr = (WFF[]) arrayList.toArray(e);
if (wffArr.length == 0 || (wff = wffArr[0]) == null) {
throw NotFoundException.b();
}
return wff;
}
}