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

222 lines
7.8 KiB
Java

package o;
import java.util.ArrayList;
import java.util.List;
/* renamed from: o.gjK, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C15177gjK {
public boolean b = true;
private boolean c;
private List<Class<?>> d;
public C15177gjK() {
ArrayList arrayList = new ArrayList();
this.d = arrayList;
arrayList.add(String.class);
}
public final C15177gjK a(Object obj, Object obj2) {
if (!this.b || obj == obj2) {
return this;
}
if (obj != null && obj2 != null) {
if (obj.getClass().isArray()) {
b(obj, obj2);
} else {
this.b = obj.equals(obj2);
}
return this;
}
this.b = false;
return this;
}
private void b(Object obj, Object obj2) {
boolean z;
boolean z2;
boolean z3;
boolean z4;
boolean z5;
boolean z6;
boolean z7;
boolean z8;
if (obj.getClass() == obj2.getClass()) {
if (obj instanceof long[]) {
long[] jArr = (long[]) obj;
long[] jArr2 = (long[]) obj2;
if (!this.b || jArr == jArr2) {
return;
}
if (jArr != null && jArr2 != null && jArr.length == jArr2.length) {
for (int i = 0; i < jArr.length && (z8 = this.b); i++) {
long j = jArr[i];
long j2 = jArr2[i];
if (z8) {
this.b = j == j2;
}
}
return;
}
this.b = false;
return;
}
if (obj instanceof int[]) {
int[] iArr = (int[]) obj;
int[] iArr2 = (int[]) obj2;
if (!this.b || iArr == iArr2) {
return;
}
if (iArr != null && iArr2 != null && iArr.length == iArr2.length) {
for (int i2 = 0; i2 < iArr.length && (z7 = this.b); i2++) {
int i3 = iArr[i2];
int i4 = iArr2[i2];
if (z7) {
this.b = i3 == i4;
}
}
return;
}
this.b = false;
return;
}
if (obj instanceof short[]) {
short[] sArr = (short[]) obj;
short[] sArr2 = (short[]) obj2;
if (!this.b || sArr == sArr2) {
return;
}
if (sArr != null && sArr2 != null && sArr.length == sArr2.length) {
for (int i5 = 0; i5 < sArr.length && (z6 = this.b); i5++) {
short s = sArr[i5];
short s2 = sArr2[i5];
if (z6) {
this.b = s == s2;
}
}
return;
}
this.b = false;
return;
}
if (obj instanceof char[]) {
char[] cArr = (char[]) obj;
char[] cArr2 = (char[]) obj2;
if (!this.b || cArr == cArr2) {
return;
}
if (cArr != null && cArr2 != null && cArr.length == cArr2.length) {
for (int i6 = 0; i6 < cArr.length && (z5 = this.b); i6++) {
char c = cArr[i6];
char c2 = cArr2[i6];
if (z5) {
this.b = c == c2;
}
}
return;
}
this.b = false;
return;
}
if (obj instanceof byte[]) {
byte[] bArr = (byte[]) obj;
byte[] bArr2 = (byte[]) obj2;
if (!this.b || bArr == bArr2) {
return;
}
if (bArr != null && bArr2 != null && bArr.length == bArr2.length) {
for (int i7 = 0; i7 < bArr.length && (z4 = this.b); i7++) {
byte b = bArr[i7];
byte b2 = bArr2[i7];
if (z4) {
this.b = b == b2;
}
}
return;
}
this.b = false;
return;
}
if (obj instanceof double[]) {
double[] dArr = (double[]) obj;
double[] dArr2 = (double[]) obj2;
if (!this.b || dArr == dArr2) {
return;
}
if (dArr != null && dArr2 != null && dArr.length == dArr2.length) {
for (int i8 = 0; i8 < dArr.length && (z3 = this.b); i8++) {
double d = dArr[i8];
double d2 = dArr2[i8];
if (z3) {
long doubleToLongBits = Double.doubleToLongBits(d);
long doubleToLongBits2 = Double.doubleToLongBits(d2);
if (this.b) {
this.b = doubleToLongBits == doubleToLongBits2;
}
}
}
return;
}
this.b = false;
return;
}
if (obj instanceof float[]) {
float[] fArr = (float[]) obj;
float[] fArr2 = (float[]) obj2;
if (!this.b || fArr == fArr2) {
return;
}
if (fArr != null && fArr2 != null && fArr.length == fArr2.length) {
for (int i9 = 0; i9 < fArr.length && (z2 = this.b); i9++) {
float f = fArr[i9];
float f2 = fArr2[i9];
if (z2) {
int floatToIntBits = Float.floatToIntBits(f);
int floatToIntBits2 = Float.floatToIntBits(f2);
if (this.b) {
this.b = floatToIntBits == floatToIntBits2;
}
}
}
return;
}
this.b = false;
return;
}
if (obj instanceof boolean[]) {
boolean[] zArr = (boolean[]) obj;
boolean[] zArr2 = (boolean[]) obj2;
if (!this.b || zArr == zArr2) {
return;
}
if (zArr != null && zArr2 != null && zArr.length == zArr2.length) {
for (int i10 = 0; i10 < zArr.length && (z = this.b); i10++) {
boolean z9 = zArr[i10];
boolean z10 = zArr2[i10];
if (z) {
this.b = z9 == z10;
}
}
return;
}
this.b = false;
return;
}
Object[] objArr = (Object[]) obj;
Object[] objArr2 = (Object[]) obj2;
if (!this.b || objArr == objArr2) {
return;
}
if (objArr != null && objArr2 != null && objArr.length == objArr2.length) {
for (int i11 = 0; i11 < objArr.length && this.b; i11++) {
a(objArr[i11], objArr2[i11]);
}
return;
}
this.b = false;
return;
}
this.b = false;
}
}