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

168 lines
4.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* renamed from: o.zBR, reason: case insensitive filesystem */
/* loaded from: classes2.dex */
public final class C17712zBR {
public pgq b;
public final C8902dZc c;
public C17712zBR(C8902dZc c8902dZc) {
this.c = c8902dZc;
}
private float a(int i, int i2, int i3, int i4) {
float f;
float f2;
float c = c(i, i2, i3, i4);
int i5 = i - (i3 - i);
int i6 = 0;
if (i5 < 0) {
f = i / (i - i5);
i5 = 0;
} else if (i5 >= this.c.e) {
f = ((this.c.e - 1) - i) / (i5 - i);
i5 = this.c.e - 1;
} else {
f = 1.0f;
}
float f3 = i2;
int i7 = (int) (f3 - ((i4 - i2) * f));
if (i7 < 0) {
f2 = f3 / (i2 - i7);
} else if (i7 >= this.c.c) {
f2 = ((this.c.c - 1) - i2) / (i7 - i2);
i6 = this.c.c - 1;
} else {
i6 = i7;
f2 = 1.0f;
}
return (c + c(i, i2, (int) (i + ((i5 - i) * f2)), i6)) - 1.0f;
}
private float c(int i, int i2, int i3, int i4) {
int i5;
int i6;
int i7;
int i8;
int i9;
int i10;
int i11;
double sqrt;
C17712zBR c17712zBR;
int i12;
int i13 = 1;
boolean z = Math.abs(i4 - i2) > Math.abs(i3 - i);
if (z) {
i6 = i;
i5 = i2;
i8 = i3;
i7 = i4;
} else {
i5 = i;
i6 = i2;
i7 = i3;
i8 = i4;
}
int abs = Math.abs(i7 - i5);
int i14 = i8 - i6;
int abs2 = Math.abs(i14);
int i15 = 2;
int i16 = (-abs) / 2;
int i17 = i5 < i7 ? 1 : -1;
int i18 = i6 < i8 ? 1 : -1;
int i19 = i7 + i17;
int i20 = i5;
int i21 = i6;
int i22 = 0;
while (true) {
if (i20 == i19) {
i9 = i19;
i10 = i14;
i11 = i15;
break;
}
int i23 = z ? i21 : i20;
boolean z2 = z;
int i24 = z ? i20 : i21;
if (i22 == i13) {
i9 = i19;
i10 = i14;
i12 = i13;
c17712zBR = this;
} else {
c17712zBR = this;
i9 = i19;
i10 = i14;
i12 = 0;
}
if (i12 == c17712zBR.c.b(i23, i24)) {
if (i22 == 2) {
double d = i20 - i5;
double d2 = i21 - i6;
sqrt = Math.sqrt((d * d) + (d2 * d2));
break;
}
i22++;
}
i16 += abs2;
if (i16 > 0) {
if (i21 == i8) {
i11 = 2;
break;
}
i21 += i18;
i16 -= abs;
}
i20 += i17;
i14 = i10;
i19 = i9;
z = z2;
i13 = 1;
i15 = 2;
}
if (i22 != i11) {
return Float.NaN;
}
double d3 = i9 - i5;
double d4 = i10;
sqrt = Math.sqrt((d3 * d3) + (d4 * d4));
return (float) sqrt;
}
private float c(qCz qcz, qCz qcz2) {
float a = a((int) qcz.a, (int) qcz.e, (int) qcz2.a, (int) qcz2.e);
float a2 = a((int) qcz2.a, (int) qcz2.e, (int) qcz.a, (int) qcz.e);
return Float.isNaN(a) ? a2 / 7.0f : Float.isNaN(a2) ? a / 7.0f : (a + a2) / 14.0f;
}
/* JADX WARN: Code restructure failed: missing block: B:108:0x017e, code lost:
r21 = r4;
r23 = r5;
r5 = 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:109:0x0187, code lost:
if (r15.b(r11) == false) goto L143;
*/
/* JADX WARN: Code restructure failed: missing block: B:110:0x0189, code lost:
r0 = r15.d(r11, r12, r7);
*/
/* JADX WARN: Code restructure failed: missing block: B:111:0x018d, code lost:
if (r0 == null) goto L144;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final o.jOu e(o.C17068tfT r39) throws com.google.zxing.NotFoundException, com.google.zxing.FormatException {
/*
Method dump skipped, instructions count: 643
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C17712zBR.e(o.tfT):o.jOu");
}
}