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

75 lines
2.9 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Enumeration;
import java.util.Hashtable;
/* renamed from: o.gpr, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public abstract class AbstractC15415gpr implements InterfaceC15418gpu {
public static Hashtable d(Hashtable hashtable) {
Hashtable hashtable2 = new Hashtable();
Enumeration keys = hashtable.keys();
while (keys.hasMoreElements()) {
Object nextElement = keys.nextElement();
hashtable2.put(nextElement, hashtable.get(nextElement));
}
return hashtable2;
}
@Override // o.InterfaceC15418gpu
public final int d(C15417gpt c15417gpt) {
C15411gpn[] c15411gpnArr = c15417gpt.b;
int length = c15411gpnArr.length;
C15411gpn[] c15411gpnArr2 = new C15411gpn[length];
System.arraycopy(c15411gpnArr, 0, c15411gpnArr2, 0, length);
int i = 0;
for (int i2 = 0; i2 != length; i2++) {
if (c15411gpnArr2[i2].d.d.size() > 1) {
C15410gpm[] b = c15411gpnArr2[i2].b();
for (int i3 = 0; i3 != b.length; i3++) {
i = (i ^ b[i3].d.hashCode()) ^ C15414gpq.b(C15414gpq.a(b[i3].c)).hashCode();
}
} else {
i = (i ^ c15411gpnArr2[i2].a().d.hashCode()) ^ C15414gpq.b(C15414gpq.a(c15411gpnArr2[i2].a().c)).hashCode();
}
}
return i;
}
@Override // o.InterfaceC15418gpu
public final boolean e(C15417gpt c15417gpt, C15417gpt c15417gpt2) {
C15411gpn[] c15411gpnArr = c15417gpt.b;
int length = c15411gpnArr.length;
C15411gpn[] c15411gpnArr2 = new C15411gpn[length];
System.arraycopy(c15411gpnArr, 0, c15411gpnArr2, 0, length);
C15411gpn[] c15411gpnArr3 = c15417gpt2.b;
int length2 = c15411gpnArr3.length;
C15411gpn[] c15411gpnArr4 = new C15411gpn[length2];
System.arraycopy(c15411gpnArr3, 0, c15411gpnArr4, 0, length2);
if (length != length2) {
return false;
}
boolean z = (c15411gpnArr2[0].a() == null || c15411gpnArr4[0].a() == null) ? false : !c15411gpnArr2[0].a().d.equals(c15411gpnArr4[0].a().d);
for (int i = 0; i != length; i++) {
C15411gpn c15411gpn = c15411gpnArr2[i];
if (z) {
for (int i2 = length2 - 1; i2 >= 0; i2--) {
C15411gpn c15411gpn2 = c15411gpnArr4[i2];
if (c15411gpn2 != null && C15414gpq.d(c15411gpn, c15411gpn2)) {
c15411gpnArr4[i2] = null;
}
}
return false;
}
for (int i3 = 0; i3 != length2; i3++) {
C15411gpn c15411gpn3 = c15411gpnArr4[i3];
if (c15411gpn3 != null && C15414gpq.d(c15411gpn, c15411gpn3)) {
c15411gpnArr4[i3] = null;
}
}
return false;
}
return true;
}
}