what-the-bank/sources/com/facetec/sdk/w.java

287 lines
14 KiB
Java

package com.facetec.sdk;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/* loaded from: classes.dex */
final class w {
C0131r e = new C0131r();
List<C0131r> a = new ArrayList();
List<List<Integer>> c = new ArrayList();
List<C0131r> b = new ArrayList();
List<List<List<Integer>>> d = new ArrayList();
int f = 0;
boolean i = false;
boolean h = false;
boolean j = false;
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean a(List<List<Integer>> list, int i, y yVar) {
int i2;
int i3;
List list2;
List<Integer> list3;
int i4;
int i5;
ArrayList arrayList;
List<Integer> list4;
int i6;
boolean z;
int i7;
int i8;
int i9;
ArrayList arrayList2;
ab abVar;
int intValue;
List<List<Integer>> list5 = list;
int i10 = i;
int i11 = 0;
if (list.size() <= i10) {
return false;
}
List asList = Arrays.asList(ad.e(ad.i(list5.subList(0, i10))));
int i12 = i10;
int i13 = 0;
while (true) {
int i14 = 1;
if (i12 >= list.size()) {
return i13 > 0;
}
List<Integer> list6 = list5.get(i12);
int i15 = i11;
while (true) {
if (i15 >= list6.size()) {
i2 = i11;
i3 = i2;
break;
}
if (asList.contains(list6.get(i15))) {
i2 = Math.max(i11, i15 - 4);
i3 = 1;
break;
}
i15 += 3;
}
if (yVar == y.INTRA_SESSION || i3 != 0) {
while (i2 < list6.size()) {
ArrayList arrayList3 = new ArrayList();
int i16 = i11;
while (true) {
int i17 = i2 + i16;
if (i17 >= list6.size()) {
break;
}
int intValue2 = list6.get(i17).intValue();
arrayList3.add(Integer.valueOf(intValue2));
if (b(arrayList3)) {
break;
}
if (intValue2 == ((Integer) arrayList3.get(arrayList3.size() - i14)).intValue()) {
while (true) {
i17 += i14;
if (i17 < list6.size() && intValue2 == (intValue = list6.get(i17).intValue())) {
arrayList3.add(Integer.valueOf(intValue));
i16++;
}
}
}
i16 += i14;
}
if (b(arrayList3)) {
int i18 = i11;
while (i18 < list.size() && (yVar == y.INTRA_SESSION || i18 < i10)) {
List<Integer> list7 = list5.get(i18);
int i19 = i11;
while (i19 < list7.size() - arrayList3.size()) {
ArrayList arrayList4 = new ArrayList();
int i20 = i11;
while (i20 < arrayList3.size()) {
int intValue3 = list7.get(i19 + i20).intValue();
boolean z2 = intValue3 == ((Integer) arrayList3.get(i20)).intValue();
boolean z3 = i19 == i2 && i18 == i12;
if (z2 && !z3) {
arrayList4.add(Integer.valueOf(intValue3));
if (arrayList4.size() == arrayList3.size()) {
int i21 = i13 + 1;
ArrayList arrayList5 = new ArrayList();
ArrayList arrayList6 = new ArrayList();
list2 = asList;
if (yVar == y.INTER_FACETEC_SESSION) {
int i22 = 0;
while (i22 < arrayList3.size()) {
int i23 = i2 + i22;
List<Integer> list8 = list6;
List<Integer> list9 = list7;
int i24 = 0;
int i25 = 0;
while (true) {
if (i24 < this.b.size()) {
C0131r c0131r = this.b.get(i24);
i7 = i21;
i8 = i20;
i9 = i2;
int i26 = i25;
int i27 = 0;
int i28 = 0;
while (i27 < c0131r.a.size()) {
List<Integer> list10 = c0131r.a.get(i27);
arrayList2 = arrayList3;
int i29 = i23 + i28;
int i30 = i23;
if (i26 == i12 && i29 < c0131r.d.size()) {
abVar = c0131r.d.get(i29);
break;
}
i26++;
i28 += list10.size();
i27++;
arrayList3 = arrayList2;
i23 = i30;
}
i24++;
i25 = i26;
i20 = i8;
i21 = i7;
i2 = i9;
} else {
i7 = i21;
i8 = i20;
i9 = i2;
arrayList2 = arrayList3;
abVar = new ab();
break;
}
}
arrayList5.add(abVar);
i22++;
list6 = list8;
list7 = list9;
i20 = i8;
i21 = i7;
i2 = i9;
arrayList3 = arrayList2;
}
i6 = i21;
list3 = list6;
i4 = i20;
i5 = i2;
arrayList = arrayList3;
list4 = list7;
for (int i31 = 0; i31 < arrayList4.size(); i31++) {
arrayList6.add(e(i18, i19 + i31));
}
this.e.h.add(new ArrayList(Arrays.asList(arrayList5, arrayList6)));
z = true;
} else {
i6 = i21;
list3 = list6;
i4 = i20;
i5 = i2;
arrayList = arrayList3;
list4 = list7;
int i32 = yVar != y.INTRA_SESSION ? 0 : this.f;
for (int i33 = 0; i33 < arrayList.size(); i33++) {
arrayList5.add(e(i32 + i12, i5 + i33));
}
for (int i34 = 0; i34 < arrayList4.size(); i34++) {
arrayList6.add(e(i32 + i18, i19 + i34));
}
if (yVar == y.INTRA_SESSION) {
z = true;
this.e.b.add(new ArrayList(Arrays.asList(arrayList5, arrayList6)));
} else {
z = true;
this.e.e.add(new ArrayList(Arrays.asList(arrayList5, arrayList6)));
}
}
i13 = i6;
if (i13 == 5) {
return z;
}
} else {
list2 = asList;
list3 = list6;
i4 = i20;
i5 = i2;
arrayList = arrayList3;
list4 = list7;
}
i20 = i4 + 1;
asList = list2;
list6 = list3;
list7 = list4;
i2 = i5;
arrayList3 = arrayList;
}
i19++;
asList = asList;
list6 = list6;
list7 = list7;
i2 = i2;
arrayList3 = arrayList3;
i11 = 0;
}
i19++;
asList = asList;
list6 = list6;
list7 = list7;
i2 = i2;
arrayList3 = arrayList3;
i11 = 0;
}
i18++;
list5 = list;
i10 = i;
i11 = 0;
}
}
i2++;
list5 = list;
i10 = i;
asList = asList;
list6 = list6;
i11 = 0;
i14 = 1;
}
}
i12++;
list5 = list;
i10 = i;
asList = asList;
i11 = 0;
}
}
private ab e(int i, int i2) {
int i3 = 0;
for (int i4 = 0; i4 < this.a.size(); i4++) {
C0131r c0131r = this.a.get(i4);
int i5 = 0;
for (int i6 = 0; i6 < c0131r.a.size(); i6++) {
List<Integer> list = c0131r.a.get(i6);
int i7 = i2 + i5;
if (i3 == i && i7 < c0131r.d.size()) {
return c0131r.d.get(i7);
}
i3++;
i5 += list.size();
}
}
return new ab();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static List<List<Integer>> c(List<C0131r> list) {
ArrayList arrayList = new ArrayList();
for (int i = 0; i < list.size(); i++) {
arrayList.addAll(list.get(i).a);
}
return arrayList;
}
private static boolean b(List<Integer> list) {
return list.size() >= 3 && ad.d(list);
}
}