148 lines
4.6 KiB
Java
148 lines
4.6 KiB
Java
package c.i.e.m;
|
|
|
|
import c.i.e.c;
|
|
import c.i.e.d;
|
|
import c.i.e.i;
|
|
import c.i.e.j;
|
|
import c.i.e.k;
|
|
import c.i.e.l;
|
|
import c.i.e.m.d.a;
|
|
import c.i.e.n.e;
|
|
import com.google.zxing.FormatException;
|
|
import com.google.zxing.NotFoundException;
|
|
import com.google.zxing.Result;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
/* compiled from: AztecReader */
|
|
public final class b implements i {
|
|
/* JADX WARNING: Removed duplicated region for block: B:15:0x002f */
|
|
/* JADX WARNING: Removed duplicated region for block: B:30:0x005a A[LOOP:0: B:29:0x0058->B:30:0x005a, LOOP_END] */
|
|
/* JADX WARNING: Removed duplicated region for block: B:33:0x0078 */
|
|
/* JADX WARNING: Removed duplicated region for block: B:36:0x0081 */
|
|
@Override // c.i.e.i
|
|
public Result a(c cVar, Map<d, ?> map) throws NotFoundException, FormatException {
|
|
k[] kVarArr;
|
|
FormatException formatException;
|
|
NotFoundException e;
|
|
List<byte[]> list;
|
|
String str;
|
|
l lVar;
|
|
k[] kVarArr2;
|
|
FormatException e2;
|
|
a aVar = new a(cVar.a());
|
|
e eVar = null;
|
|
try {
|
|
a a = aVar.a(false);
|
|
kVarArr2 = a.b;
|
|
try {
|
|
kVarArr = kVarArr2;
|
|
formatException = null;
|
|
eVar = new c.i.e.m.c.a().a(a);
|
|
e = null;
|
|
} catch (NotFoundException e3) {
|
|
e = e3;
|
|
kVarArr = kVarArr2;
|
|
formatException = null;
|
|
if (eVar == null) {
|
|
}
|
|
while (r11 < r0) {
|
|
}
|
|
Result result = new Result(eVar.f1409c, eVar.a, eVar.b, kVarArr, c.i.e.a.AZTEC, System.currentTimeMillis());
|
|
list = eVar.d;
|
|
if (list != null) {
|
|
}
|
|
str = eVar.e;
|
|
if (str != null) {
|
|
}
|
|
return result;
|
|
} catch (FormatException e4) {
|
|
e2 = e4;
|
|
kVarArr = kVarArr2;
|
|
formatException = e2;
|
|
e = null;
|
|
if (eVar == null) {
|
|
}
|
|
while (r11 < r0) {
|
|
}
|
|
Result result = new Result(eVar.f1409c, eVar.a, eVar.b, kVarArr, c.i.e.a.AZTEC, System.currentTimeMillis());
|
|
list = eVar.d;
|
|
if (list != null) {
|
|
}
|
|
str = eVar.e;
|
|
if (str != null) {
|
|
}
|
|
return result;
|
|
}
|
|
} catch (NotFoundException e5) {
|
|
e = e5;
|
|
kVarArr2 = null;
|
|
kVarArr = kVarArr2;
|
|
formatException = null;
|
|
if (eVar == null) {
|
|
}
|
|
while (r11 < r0) {
|
|
}
|
|
Result result = new Result(eVar.f1409c, eVar.a, eVar.b, kVarArr, c.i.e.a.AZTEC, System.currentTimeMillis());
|
|
list = eVar.d;
|
|
if (list != null) {
|
|
}
|
|
str = eVar.e;
|
|
if (str != null) {
|
|
}
|
|
return result;
|
|
} catch (FormatException e6) {
|
|
e2 = e6;
|
|
kVarArr2 = null;
|
|
kVarArr = kVarArr2;
|
|
formatException = e2;
|
|
e = null;
|
|
if (eVar == null) {
|
|
}
|
|
while (r11 < r0) {
|
|
}
|
|
Result result = new Result(eVar.f1409c, eVar.a, eVar.b, kVarArr, c.i.e.a.AZTEC, System.currentTimeMillis());
|
|
list = eVar.d;
|
|
if (list != null) {
|
|
}
|
|
str = eVar.e;
|
|
if (str != null) {
|
|
}
|
|
return result;
|
|
}
|
|
if (eVar == null) {
|
|
try {
|
|
a a2 = aVar.a(true);
|
|
kVarArr = a2.b;
|
|
eVar = new c.i.e.m.c.a().a(a2);
|
|
} catch (FormatException | NotFoundException e7) {
|
|
if (e != null) {
|
|
throw e;
|
|
} else if (formatException != null) {
|
|
throw formatException;
|
|
} else {
|
|
throw e7;
|
|
}
|
|
}
|
|
}
|
|
if (!(map == null || (lVar = (l) map.get(d.NEED_RESULT_POINT_CALLBACK)) == null)) {
|
|
for (k kVar : kVarArr) {
|
|
lVar.a(kVar);
|
|
}
|
|
}
|
|
Result result = new Result(eVar.f1409c, eVar.a, eVar.b, kVarArr, c.i.e.a.AZTEC, System.currentTimeMillis());
|
|
list = eVar.d;
|
|
if (list != null) {
|
|
result.b(j.BYTE_SEGMENTS, list);
|
|
}
|
|
str = eVar.e;
|
|
if (str != null) {
|
|
result.b(j.ERROR_CORRECTION_LEVEL, str);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
@Override // c.i.e.i
|
|
public void reset() {
|
|
}
|
|
}
|