Initial import of ADIF API reverse-engineering toolkit

This commit is contained in:
2025-12-16 08:37:56 +01:00
commit 60388529c1
11486 changed files with 1086536 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
package u;
/* renamed from: u.d, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0627d {
}

View File

@@ -0,0 +1,22 @@
package u;
/* renamed from: u.f, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract /* synthetic */ class AbstractC0629f {
/* renamed from: a, reason: collision with root package name */
public static final /* synthetic */ int[] f8583a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
public static StringBuilder a(String str) {
StringBuilder sb = new StringBuilder();
sb.append(str);
return sb;
}
public static /* synthetic */ int b(int i) {
if (i != 0) {
return i - 1;
}
throw null;
}
}

View File

@@ -0,0 +1,367 @@
package u;
import C.w;
import R0.h;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.Arrays;
/* renamed from: u.a, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0624a {
/* renamed from: b, reason: collision with root package name */
public final C0625b f8555b;
/* renamed from: c, reason: collision with root package name */
public final h f8556c;
/* renamed from: a, reason: collision with root package name */
public int f8554a = 0;
/* renamed from: d, reason: collision with root package name */
public int f8557d = 8;
/* renamed from: e, reason: collision with root package name */
public int[] f8558e = new int[8];
/* renamed from: f, reason: collision with root package name */
public int[] f8559f = new int[8];
/* renamed from: g, reason: collision with root package name */
public float[] f8560g = new float[8];
public int h = -1;
public int i = -1;
/* renamed from: j, reason: collision with root package name */
public boolean f8561j = false;
public C0624a(C0625b c0625b, h hVar) {
this.f8555b = c0625b;
this.f8556c = hVar;
}
public final void a(C0630g c0630g, float f2, boolean z3) {
if (f2 <= -0.001f || f2 >= 0.001f) {
int i = this.h;
C0625b c0625b = this.f8555b;
if (i == -1) {
this.h = 0;
this.f8560g[0] = f2;
this.f8558e[0] = c0630g.f8585b;
this.f8559f[0] = -1;
c0630g.f8592k++;
c0630g.a(c0625b);
this.f8554a++;
if (this.f8561j) {
return;
}
int i4 = this.i + 1;
this.i = i4;
int[] iArr = this.f8558e;
if (i4 >= iArr.length) {
this.f8561j = true;
this.i = iArr.length - 1;
return;
}
return;
}
int i5 = -1;
for (int i6 = 0; i != -1 && i6 < this.f8554a; i6++) {
int i7 = this.f8558e[i];
int i8 = c0630g.f8585b;
if (i7 == i8) {
float[] fArr = this.f8560g;
float f4 = fArr[i] + f2;
if (f4 > -0.001f && f4 < 0.001f) {
f4 = 0.0f;
}
fArr[i] = f4;
if (f4 == BitmapDescriptorFactory.HUE_RED) {
if (i == this.h) {
this.h = this.f8559f[i];
} else {
int[] iArr2 = this.f8559f;
iArr2[i5] = iArr2[i];
}
if (z3) {
c0630g.b(c0625b);
}
if (this.f8561j) {
this.i = i;
}
c0630g.f8592k--;
this.f8554a--;
return;
}
return;
}
if (i7 < i8) {
i5 = i;
}
i = this.f8559f[i];
}
int i9 = this.i;
int i10 = i9 + 1;
if (this.f8561j) {
int[] iArr3 = this.f8558e;
if (iArr3[i9] != -1) {
i9 = iArr3.length;
}
} else {
i9 = i10;
}
int[] iArr4 = this.f8558e;
if (i9 >= iArr4.length && this.f8554a < iArr4.length) {
int i11 = 0;
while (true) {
int[] iArr5 = this.f8558e;
if (i11 >= iArr5.length) {
break;
}
if (iArr5[i11] == -1) {
i9 = i11;
break;
}
i11++;
}
}
int[] iArr6 = this.f8558e;
if (i9 >= iArr6.length) {
i9 = iArr6.length;
int i12 = this.f8557d * 2;
this.f8557d = i12;
this.f8561j = false;
this.i = i9 - 1;
this.f8560g = Arrays.copyOf(this.f8560g, i12);
this.f8558e = Arrays.copyOf(this.f8558e, this.f8557d);
this.f8559f = Arrays.copyOf(this.f8559f, this.f8557d);
}
this.f8558e[i9] = c0630g.f8585b;
this.f8560g[i9] = f2;
if (i5 != -1) {
int[] iArr7 = this.f8559f;
iArr7[i9] = iArr7[i5];
iArr7[i5] = i9;
} else {
this.f8559f[i9] = this.h;
this.h = i9;
}
c0630g.f8592k++;
c0630g.a(c0625b);
this.f8554a++;
if (!this.f8561j) {
this.i++;
}
int i13 = this.i;
int[] iArr8 = this.f8558e;
if (i13 >= iArr8.length) {
this.f8561j = true;
this.i = iArr8.length - 1;
}
}
}
public final void b() {
int i = this.h;
for (int i4 = 0; i != -1 && i4 < this.f8554a; i4++) {
C0630g c0630g = ((C0630g[]) this.f8556c.f1415c)[this.f8558e[i]];
if (c0630g != null) {
c0630g.b(this.f8555b);
}
i = this.f8559f[i];
}
this.h = -1;
this.i = -1;
this.f8561j = false;
this.f8554a = 0;
}
public final float c(C0630g c0630g) {
int i = this.h;
for (int i4 = 0; i != -1 && i4 < this.f8554a; i4++) {
if (this.f8558e[i] == c0630g.f8585b) {
return this.f8560g[i];
}
i = this.f8559f[i];
}
return BitmapDescriptorFactory.HUE_RED;
}
public final int d() {
return this.f8554a;
}
public final C0630g e(int i) {
int i4 = this.h;
for (int i5 = 0; i4 != -1 && i5 < this.f8554a; i5++) {
if (i5 == i) {
return ((C0630g[]) this.f8556c.f1415c)[this.f8558e[i4]];
}
i4 = this.f8559f[i4];
}
return null;
}
public final float f(int i) {
int i4 = this.h;
for (int i5 = 0; i4 != -1 && i5 < this.f8554a; i5++) {
if (i5 == i) {
return this.f8560g[i4];
}
i4 = this.f8559f[i4];
}
return BitmapDescriptorFactory.HUE_RED;
}
public final void g(C0630g c0630g, float f2) {
if (f2 == BitmapDescriptorFactory.HUE_RED) {
h(c0630g, true);
return;
}
int i = this.h;
C0625b c0625b = this.f8555b;
if (i == -1) {
this.h = 0;
this.f8560g[0] = f2;
this.f8558e[0] = c0630g.f8585b;
this.f8559f[0] = -1;
c0630g.f8592k++;
c0630g.a(c0625b);
this.f8554a++;
if (this.f8561j) {
return;
}
int i4 = this.i + 1;
this.i = i4;
int[] iArr = this.f8558e;
if (i4 >= iArr.length) {
this.f8561j = true;
this.i = iArr.length - 1;
return;
}
return;
}
int i5 = -1;
for (int i6 = 0; i != -1 && i6 < this.f8554a; i6++) {
int i7 = this.f8558e[i];
int i8 = c0630g.f8585b;
if (i7 == i8) {
this.f8560g[i] = f2;
return;
}
if (i7 < i8) {
i5 = i;
}
i = this.f8559f[i];
}
int i9 = this.i;
int i10 = i9 + 1;
if (this.f8561j) {
int[] iArr2 = this.f8558e;
if (iArr2[i9] != -1) {
i9 = iArr2.length;
}
} else {
i9 = i10;
}
int[] iArr3 = this.f8558e;
if (i9 >= iArr3.length && this.f8554a < iArr3.length) {
int i11 = 0;
while (true) {
int[] iArr4 = this.f8558e;
if (i11 >= iArr4.length) {
break;
}
if (iArr4[i11] == -1) {
i9 = i11;
break;
}
i11++;
}
}
int[] iArr5 = this.f8558e;
if (i9 >= iArr5.length) {
i9 = iArr5.length;
int i12 = this.f8557d * 2;
this.f8557d = i12;
this.f8561j = false;
this.i = i9 - 1;
this.f8560g = Arrays.copyOf(this.f8560g, i12);
this.f8558e = Arrays.copyOf(this.f8558e, this.f8557d);
this.f8559f = Arrays.copyOf(this.f8559f, this.f8557d);
}
this.f8558e[i9] = c0630g.f8585b;
this.f8560g[i9] = f2;
if (i5 != -1) {
int[] iArr6 = this.f8559f;
iArr6[i9] = iArr6[i5];
iArr6[i5] = i9;
} else {
this.f8559f[i9] = this.h;
this.h = i9;
}
c0630g.f8592k++;
c0630g.a(c0625b);
int i13 = this.f8554a + 1;
this.f8554a = i13;
if (!this.f8561j) {
this.i++;
}
int[] iArr7 = this.f8558e;
if (i13 >= iArr7.length) {
this.f8561j = true;
}
if (this.i >= iArr7.length) {
this.f8561j = true;
this.i = iArr7.length - 1;
}
}
public final float h(C0630g c0630g, boolean z3) {
int i = this.h;
if (i == -1) {
return BitmapDescriptorFactory.HUE_RED;
}
int i4 = 0;
int i5 = -1;
while (i != -1 && i4 < this.f8554a) {
if (this.f8558e[i] == c0630g.f8585b) {
if (i == this.h) {
this.h = this.f8559f[i];
} else {
int[] iArr = this.f8559f;
iArr[i5] = iArr[i];
}
if (z3) {
c0630g.b(this.f8555b);
}
c0630g.f8592k--;
this.f8554a--;
this.f8558e[i] = -1;
if (this.f8561j) {
this.i = i;
}
return this.f8560g[i];
}
i4++;
i5 = i;
i = this.f8559f[i];
}
return BitmapDescriptorFactory.HUE_RED;
}
public final String toString() {
int i = this.h;
String str = "";
for (int i4 = 0; i != -1 && i4 < this.f8554a; i4++) {
StringBuilder a2 = AbstractC0629f.a(w.n(str, " -> "));
a2.append(this.f8560g[i]);
a2.append(" : ");
StringBuilder a4 = AbstractC0629f.a(a2.toString());
a4.append(((C0630g[]) this.f8556c.f1415c)[this.f8558e[i]]);
str = a4.toString();
i = this.f8559f[i];
}
return str;
}
}

View File

@@ -0,0 +1,263 @@
package u;
import R0.h;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.ArrayList;
/* renamed from: u.b, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public class C0625b {
/* renamed from: d, reason: collision with root package name */
public final C0624a f8565d;
/* renamed from: a, reason: collision with root package name */
public C0630g f8562a = null;
/* renamed from: b, reason: collision with root package name */
public float f8563b = BitmapDescriptorFactory.HUE_RED;
/* renamed from: c, reason: collision with root package name */
public final ArrayList f8564c = new ArrayList();
/* renamed from: e, reason: collision with root package name */
public boolean f8566e = false;
public C0625b(h hVar) {
this.f8565d = new C0624a(this, hVar);
}
public final void a(C0626c c0626c, int i) {
this.f8565d.g(c0626c.j(i), 1.0f);
this.f8565d.g(c0626c.j(i), -1.0f);
}
public final void b(C0630g c0630g, C0630g c0630g2, C0630g c0630g3, int i) {
boolean z3 = false;
if (i != 0) {
if (i < 0) {
i *= -1;
z3 = true;
}
this.f8563b = i;
}
if (z3) {
this.f8565d.g(c0630g, 1.0f);
this.f8565d.g(c0630g2, -1.0f);
this.f8565d.g(c0630g3, -1.0f);
} else {
this.f8565d.g(c0630g, -1.0f);
this.f8565d.g(c0630g2, 1.0f);
this.f8565d.g(c0630g3, 1.0f);
}
}
public final void c(C0630g c0630g, C0630g c0630g2, C0630g c0630g3, int i) {
boolean z3 = false;
if (i != 0) {
if (i < 0) {
i *= -1;
z3 = true;
}
this.f8563b = i;
}
if (z3) {
this.f8565d.g(c0630g, 1.0f);
this.f8565d.g(c0630g2, -1.0f);
this.f8565d.g(c0630g3, 1.0f);
} else {
this.f8565d.g(c0630g, -1.0f);
this.f8565d.g(c0630g2, 1.0f);
this.f8565d.g(c0630g3, -1.0f);
}
}
public C0630g d(boolean[] zArr) {
return f(zArr, null);
}
public boolean e() {
return this.f8562a == null && this.f8563b == BitmapDescriptorFactory.HUE_RED && this.f8565d.d() == 0;
}
public final C0630g f(boolean[] zArr, C0630g c0630g) {
int i;
int d4 = this.f8565d.d();
C0630g c0630g2 = null;
float f2 = 0.0f;
for (int i4 = 0; i4 < d4; i4++) {
float f4 = this.f8565d.f(i4);
if (f4 < BitmapDescriptorFactory.HUE_RED) {
C0630g e4 = this.f8565d.e(i4);
if ((zArr == null || !zArr[e4.f8585b]) && e4 != c0630g && (((i = e4.f8593l) == 3 || i == 4) && f4 < f2)) {
f2 = f4;
c0630g2 = e4;
}
}
}
return c0630g2;
}
public final void g(C0630g c0630g) {
C0630g c0630g2 = this.f8562a;
if (c0630g2 != null) {
this.f8565d.g(c0630g2, -1.0f);
this.f8562a.f8586c = -1;
this.f8562a = null;
}
float h = this.f8565d.h(c0630g, true) * (-1.0f);
this.f8562a = c0630g;
if (h == 1.0f) {
return;
}
this.f8563b /= h;
C0624a c0624a = this.f8565d;
int i = c0624a.h;
for (int i4 = 0; i != -1 && i4 < c0624a.f8554a; i4++) {
float[] fArr = c0624a.f8560g;
fArr[i] = fArr[i] / h;
i = c0624a.f8559f[i];
}
}
public final void h(C0626c c0626c, C0630g c0630g, boolean z3) {
if (c0630g == null || !c0630g.f8589f) {
return;
}
float c4 = this.f8565d.c(c0630g);
this.f8563b = (c0630g.f8588e * c4) + this.f8563b;
this.f8565d.h(c0630g, z3);
if (z3) {
c0630g.b(this);
}
if (this.f8565d.d() == 0) {
this.f8566e = true;
c0626c.f8568a = true;
}
}
public void i(C0626c c0626c, C0625b c0625b, boolean z3) {
C0624a c0624a = this.f8565d;
c0624a.getClass();
float c4 = c0624a.c(c0625b.f8562a);
c0624a.h(c0625b.f8562a, z3);
C0624a c0624a2 = c0625b.f8565d;
int d4 = c0624a2.d();
for (int i = 0; i < d4; i++) {
C0630g e4 = c0624a2.e(i);
c0624a.a(e4, c0624a2.c(e4) * c4, z3);
}
this.f8563b = (c0625b.f8563b * c4) + this.f8563b;
if (z3) {
c0625b.f8562a.b(this);
}
if (this.f8562a == null || this.f8565d.d() != 0) {
return;
}
this.f8566e = true;
c0626c.f8568a = true;
}
/* JADX WARN: Removed duplicated region for block: B:21:0x007c */
/* JADX WARN: Removed duplicated region for block: B:25:0x0081 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public java.lang.String toString() {
/*
r10 = this;
u.g r0 = r10.f8562a
if (r0 != 0) goto L7
java.lang.String r0 = "0"
goto L17
L7:
java.lang.StringBuilder r0 = new java.lang.StringBuilder
java.lang.String r1 = ""
r0.<init>(r1)
u.g r1 = r10.f8562a
r0.append(r1)
java.lang.String r0 = r0.toString()
L17:
java.lang.String r1 = " = "
java.lang.String r0 = C.w.n(r0, r1)
float r1 = r10.f8563b
r2 = 0
int r1 = (r1 > r2 ? 1 : (r1 == r2 ? 0 : -1))
r3 = 1
r4 = 0
if (r1 == 0) goto L35
java.lang.StringBuilder r0 = u.AbstractC0629f.a(r0)
float r1 = r10.f8563b
r0.append(r1)
java.lang.String r0 = r0.toString()
r1 = r3
goto L36
L35:
r1 = r4
L36:
u.a r5 = r10.f8565d
int r5 = r5.d()
L3c:
if (r4 >= r5) goto L9c
u.a r6 = r10.f8565d
u.g r6 = r6.e(r4)
if (r6 != 0) goto L47
goto L99
L47:
u.a r7 = r10.f8565d
float r7 = r7.f(r4)
int r8 = (r7 > r2 ? 1 : (r7 == r2 ? 0 : -1))
if (r8 != 0) goto L52
goto L99
L52:
java.lang.String r6 = r6.toString()
r9 = -1082130432(0xffffffffbf800000, float:-1.0)
if (r1 != 0) goto L66
int r1 = (r7 > r2 ? 1 : (r7 == r2 ? 0 : -1))
if (r1 >= 0) goto L76
java.lang.String r1 = "- "
java.lang.String r0 = C.w.n(r0, r1)
L64:
float r7 = r7 * r9
goto L76
L66:
if (r8 <= 0) goto L6f
java.lang.String r1 = " + "
java.lang.String r0 = C.w.n(r0, r1)
goto L76
L6f:
java.lang.String r1 = " - "
java.lang.String r0 = C.w.n(r0, r1)
goto L64
L76:
r1 = 1065353216(0x3f800000, float:1.0)
int r1 = (r7 > r1 ? 1 : (r7 == r1 ? 0 : -1))
if (r1 != 0) goto L81
java.lang.String r0 = C.w.n(r0, r6)
goto L98
L81:
java.lang.StringBuilder r1 = new java.lang.StringBuilder
r1.<init>()
r1.append(r0)
r1.append(r7)
java.lang.String r0 = " "
r1.append(r0)
r1.append(r6)
java.lang.String r0 = r1.toString()
L98:
r1 = r3
L99:
int r4 = r4 + 1
goto L3c
L9c:
if (r1 != 0) goto La5
java.lang.String r10 = "0.0"
java.lang.String r10 = C.w.n(r0, r10)
return r10
La5:
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: u.C0625b.toString():java.lang.String");
}
}

View File

@@ -0,0 +1,673 @@
package u;
import F.i;
import R0.h;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.Arrays;
/* renamed from: u.c, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0626c {
public static boolean p = false;
/* renamed from: q, reason: collision with root package name */
public static int f8567q = 1000;
/* renamed from: c, reason: collision with root package name */
public final C0628e f8570c;
/* renamed from: f, reason: collision with root package name */
public C0625b[] f8573f;
/* renamed from: l, reason: collision with root package name */
public final h f8577l;
/* renamed from: o, reason: collision with root package name */
public C0625b f8580o;
/* renamed from: a, reason: collision with root package name */
public boolean f8568a = false;
/* renamed from: b, reason: collision with root package name */
public int f8569b = 0;
/* renamed from: d, reason: collision with root package name */
public int f8571d = 32;
/* renamed from: e, reason: collision with root package name */
public int f8572e = 32;
/* renamed from: g, reason: collision with root package name */
public boolean f8574g = false;
public boolean[] h = new boolean[32];
public int i = 1;
/* renamed from: j, reason: collision with root package name */
public int f8575j = 0;
/* renamed from: k, reason: collision with root package name */
public int f8576k = 32;
/* renamed from: m, reason: collision with root package name */
public C0630g[] f8578m = new C0630g[f8567q];
/* renamed from: n, reason: collision with root package name */
public int f8579n = 0;
/* JADX WARN: Type inference failed for: r1v2, types: [u.b, java.lang.Object, u.e] */
/* JADX WARN: Type inference failed for: r2v6, types: [java.lang.Object, R0.h] */
public C0626c() {
this.f8573f = null;
this.f8573f = new C0625b[32];
s();
?? obj = new Object();
obj.f1413a = new N.c();
obj.f1414b = new N.c();
obj.f1415c = new C0630g[32];
this.f8577l = obj;
?? c0625b = new C0625b(obj);
c0625b.f8581f = new C0630g[128];
c0625b.f8582g = new C0630g[128];
c0625b.h = 0;
c0625b.i = new i((Object) c0625b, 19);
this.f8570c = c0625b;
this.f8580o = new C0625b(obj);
}
public static int n(Object obj) {
C0630g c0630g = ((w.c) obj).i;
if (c0630g != null) {
return (int) (c0630g.f8588e + 0.5f);
}
return 0;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r3v0, types: [java.lang.Object[]] */
/* JADX WARN: Type inference failed for: r4v0 */
public final C0630g a(int i) {
N.c cVar = (N.c) this.f8577l.f1414b;
int i4 = cVar.f1122b;
C0630g c0630g = null;
if (i4 > 0) {
int i5 = i4 - 1;
?? r32 = cVar.f1121a;
?? r4 = r32[i5];
r32[i5] = 0;
cVar.f1122b = i5;
c0630g = r4;
}
C0630g c0630g2 = c0630g;
if (c0630g2 == null) {
c0630g2 = new C0630g(i);
c0630g2.f8593l = i;
} else {
c0630g2.c();
c0630g2.f8593l = i;
}
int i6 = this.f8579n;
int i7 = f8567q;
if (i6 >= i7) {
int i8 = i7 * 2;
f8567q = i8;
this.f8578m = (C0630g[]) Arrays.copyOf(this.f8578m, i8);
}
C0630g[] c0630gArr = this.f8578m;
int i9 = this.f8579n;
this.f8579n = i9 + 1;
c0630gArr[i9] = c0630g2;
return c0630g2;
}
public final void b(C0630g c0630g, C0630g c0630g2, int i, float f2, C0630g c0630g3, C0630g c0630g4, int i4, int i5) {
C0625b l4 = l();
if (c0630g2 == c0630g3) {
l4.f8565d.g(c0630g, 1.0f);
l4.f8565d.g(c0630g4, 1.0f);
l4.f8565d.g(c0630g2, -2.0f);
} else if (f2 == 0.5f) {
l4.f8565d.g(c0630g, 1.0f);
l4.f8565d.g(c0630g2, -1.0f);
l4.f8565d.g(c0630g3, -1.0f);
l4.f8565d.g(c0630g4, 1.0f);
if (i > 0 || i4 > 0) {
l4.f8563b = (-i) + i4;
}
} else if (f2 <= BitmapDescriptorFactory.HUE_RED) {
l4.f8565d.g(c0630g, -1.0f);
l4.f8565d.g(c0630g2, 1.0f);
l4.f8563b = i;
} else if (f2 >= 1.0f) {
l4.f8565d.g(c0630g4, -1.0f);
l4.f8565d.g(c0630g3, 1.0f);
l4.f8563b = -i4;
} else {
float f4 = 1.0f - f2;
l4.f8565d.g(c0630g, f4 * 1.0f);
l4.f8565d.g(c0630g2, f4 * (-1.0f));
l4.f8565d.g(c0630g3, (-1.0f) * f2);
l4.f8565d.g(c0630g4, 1.0f * f2);
if (i > 0 || i4 > 0) {
l4.f8563b = (i4 * f2) + ((-i) * f4);
}
}
if (i5 != 8) {
l4.a(this, i5);
}
c(l4);
}
/* JADX WARN: Code restructure failed: missing block: B:66:0x00d3, code lost:
if (r4.f8592k <= 1) goto L69;
*/
/* JADX WARN: Code restructure failed: missing block: B:67:0x00d6, code lost:
r12 = false;
*/
/* JADX WARN: Code restructure failed: missing block: B:75:0x00e0, code lost:
if (r4.f8592k <= 1) goto L69;
*/
/* JADX WARN: Code restructure failed: missing block: B:86:0x00f5, code lost:
if (r4.f8592k <= 1) goto L87;
*/
/* JADX WARN: Code restructure failed: missing block: B:87:0x00f8, code lost:
r14 = false;
*/
/* JADX WARN: Code restructure failed: missing block: B:94:0x0102, code lost:
if (r4.f8592k <= 1) goto L87;
*/
/* JADX WARN: Removed duplicated region for block: B:136:0x01b3 */
/* JADX WARN: Removed duplicated region for block: B:146:? A[RETURN, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void c(u.C0625b r18) {
/*
Method dump skipped, instructions count: 453
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: u.C0626c.c(u.b):void");
}
public final void d(C0630g c0630g, int i) {
int i4 = c0630g.f8586c;
if (i4 == -1) {
c0630g.d(this, i);
for (int i5 = 0; i5 < this.f8569b + 1; i5++) {
C0630g c0630g2 = ((C0630g[]) this.f8577l.f1415c)[i5];
}
return;
}
if (i4 == -1) {
C0625b l4 = l();
l4.f8562a = c0630g;
float f2 = i;
c0630g.f8588e = f2;
l4.f8563b = f2;
l4.f8566e = true;
c(l4);
return;
}
C0625b c0625b = this.f8573f[i4];
if (c0625b.f8566e) {
c0625b.f8563b = i;
return;
}
if (c0625b.f8565d.d() == 0) {
c0625b.f8566e = true;
c0625b.f8563b = i;
return;
}
C0625b l5 = l();
if (i < 0) {
l5.f8563b = i * (-1);
l5.f8565d.g(c0630g, 1.0f);
} else {
l5.f8563b = i;
l5.f8565d.g(c0630g, -1.0f);
}
c(l5);
}
public final void e(C0630g c0630g, C0630g c0630g2, int i, int i4) {
if (i4 == 8 && c0630g2.f8589f && c0630g.f8586c == -1) {
c0630g.d(this, c0630g2.f8588e + i);
return;
}
C0625b l4 = l();
boolean z3 = false;
if (i != 0) {
if (i < 0) {
i *= -1;
z3 = true;
}
l4.f8563b = i;
}
if (z3) {
l4.f8565d.g(c0630g, 1.0f);
l4.f8565d.g(c0630g2, -1.0f);
} else {
l4.f8565d.g(c0630g, -1.0f);
l4.f8565d.g(c0630g2, 1.0f);
}
if (i4 != 8) {
l4.a(this, i4);
}
c(l4);
}
public final void f(C0630g c0630g, C0630g c0630g2, int i, int i4) {
C0625b l4 = l();
C0630g m4 = m();
m4.f8587d = 0;
l4.b(c0630g, c0630g2, m4, i);
if (i4 != 8) {
l4.f8565d.g(j(i4), (int) (l4.f8565d.c(m4) * (-1.0f)));
}
c(l4);
}
public final void g(C0630g c0630g, C0630g c0630g2, int i, int i4) {
C0625b l4 = l();
C0630g m4 = m();
m4.f8587d = 0;
l4.c(c0630g, c0630g2, m4, i);
if (i4 != 8) {
l4.f8565d.g(j(i4), (int) (l4.f8565d.c(m4) * (-1.0f)));
}
c(l4);
}
public final void h(C0625b c0625b) {
int i;
if (c0625b.f8566e) {
c0625b.f8562a.d(this, c0625b.f8563b);
} else {
C0625b[] c0625bArr = this.f8573f;
int i4 = this.f8575j;
c0625bArr[i4] = c0625b;
C0630g c0630g = c0625b.f8562a;
c0630g.f8586c = i4;
this.f8575j = i4 + 1;
c0630g.e(this, c0625b);
}
if (this.f8568a) {
int i5 = 0;
while (i5 < this.f8575j) {
if (this.f8573f[i5] == null) {
System.out.println("WTF");
}
C0625b c0625b2 = this.f8573f[i5];
if (c0625b2 != null && c0625b2.f8566e) {
c0625b2.f8562a.d(this, c0625b2.f8563b);
((N.c) this.f8577l.f1413a).b(c0625b2);
this.f8573f[i5] = null;
int i6 = i5 + 1;
int i7 = i6;
while (true) {
i = this.f8575j;
if (i6 >= i) {
break;
}
C0625b[] c0625bArr2 = this.f8573f;
int i8 = i6 - 1;
C0625b c0625b3 = c0625bArr2[i6];
c0625bArr2[i8] = c0625b3;
C0630g c0630g2 = c0625b3.f8562a;
if (c0630g2.f8586c == i6) {
c0630g2.f8586c = i8;
}
i7 = i6;
i6++;
}
if (i7 < i) {
this.f8573f[i7] = null;
}
this.f8575j = i - 1;
i5--;
}
i5++;
}
this.f8568a = false;
}
}
public final void i() {
for (int i = 0; i < this.f8575j; i++) {
C0625b c0625b = this.f8573f[i];
c0625b.f8562a.f8588e = c0625b.f8563b;
}
}
public final C0630g j(int i) {
if (this.i + 1 >= this.f8572e) {
o();
}
C0630g a2 = a(4);
int i4 = this.f8569b + 1;
this.f8569b = i4;
this.i++;
a2.f8585b = i4;
a2.f8587d = i;
((C0630g[]) this.f8577l.f1415c)[i4] = a2;
C0628e c0628e = this.f8570c;
c0628e.i.f490b = a2;
float[] fArr = a2.h;
Arrays.fill(fArr, BitmapDescriptorFactory.HUE_RED);
fArr[a2.f8587d] = 1.0f;
c0628e.j(a2);
return a2;
}
public final C0630g k(Object obj) {
if (obj == null) {
return null;
}
if (this.i + 1 >= this.f8572e) {
o();
}
if (!(obj instanceof w.c)) {
return null;
}
w.c cVar = (w.c) obj;
C0630g c0630g = cVar.i;
if (c0630g == null) {
cVar.k();
c0630g = cVar.i;
}
int i = c0630g.f8585b;
h hVar = this.f8577l;
if (i != -1 && i <= this.f8569b && ((C0630g[]) hVar.f1415c)[i] != null) {
return c0630g;
}
if (i != -1) {
c0630g.c();
}
int i4 = this.f8569b + 1;
this.f8569b = i4;
this.i++;
c0630g.f8585b = i4;
c0630g.f8593l = 1;
((C0630g[]) hVar.f1415c)[i4] = c0630g;
return c0630g;
}
public final C0625b l() {
Object obj;
h hVar = this.f8577l;
N.c cVar = (N.c) hVar.f1413a;
int i = cVar.f1122b;
if (i > 0) {
int i4 = i - 1;
Object[] objArr = cVar.f1121a;
obj = objArr[i4];
objArr[i4] = null;
cVar.f1122b = i4;
} else {
obj = null;
}
C0625b c0625b = (C0625b) obj;
if (c0625b == null) {
return new C0625b(hVar);
}
c0625b.f8562a = null;
c0625b.f8565d.b();
c0625b.f8563b = BitmapDescriptorFactory.HUE_RED;
c0625b.f8566e = false;
return c0625b;
}
public final C0630g m() {
if (this.i + 1 >= this.f8572e) {
o();
}
C0630g a2 = a(3);
int i = this.f8569b + 1;
this.f8569b = i;
this.i++;
a2.f8585b = i;
((C0630g[]) this.f8577l.f1415c)[i] = a2;
return a2;
}
public final void o() {
int i = this.f8571d * 2;
this.f8571d = i;
this.f8573f = (C0625b[]) Arrays.copyOf(this.f8573f, i);
h hVar = this.f8577l;
hVar.f1415c = (C0630g[]) Arrays.copyOf((C0630g[]) hVar.f1415c, this.f8571d);
int i4 = this.f8571d;
this.h = new boolean[i4];
this.f8572e = i4;
this.f8576k = i4;
}
public final void p() {
C0628e c0628e = this.f8570c;
if (c0628e.e()) {
i();
return;
}
if (!this.f8574g) {
q(c0628e);
return;
}
for (int i = 0; i < this.f8575j; i++) {
if (!this.f8573f[i].f8566e) {
q(c0628e);
return;
}
}
i();
}
public final void q(C0628e c0628e) {
int i = 0;
while (true) {
if (i >= this.f8575j) {
break;
}
C0625b c0625b = this.f8573f[i];
int i4 = 1;
if (c0625b.f8562a.f8593l != 1) {
float f2 = c0625b.f8563b;
float f4 = BitmapDescriptorFactory.HUE_RED;
if (f2 < BitmapDescriptorFactory.HUE_RED) {
boolean z3 = false;
int i5 = 0;
while (!z3) {
i5 += i4;
float f5 = Float.MAX_VALUE;
int i6 = -1;
int i7 = -1;
int i8 = 0;
int i9 = 0;
while (i8 < this.f8575j) {
C0625b c0625b2 = this.f8573f[i8];
if (c0625b2.f8562a.f8593l != i4 && !c0625b2.f8566e && c0625b2.f8563b < f4) {
int d4 = c0625b2.f8565d.d();
int i10 = 0;
while (i10 < d4) {
C0630g e4 = c0625b2.f8565d.e(i10);
float c4 = c0625b2.f8565d.c(e4);
if (c4 > f4) {
for (int i11 = 0; i11 < 9; i11++) {
float f6 = e4.f8590g[i11] / c4;
if ((f6 < f5 && i11 == i9) || i11 > i9) {
i9 = i11;
i7 = e4.f8585b;
i6 = i8;
f5 = f6;
}
}
}
i10++;
f4 = BitmapDescriptorFactory.HUE_RED;
}
}
i8++;
f4 = BitmapDescriptorFactory.HUE_RED;
i4 = 1;
}
if (i6 != -1) {
C0625b c0625b3 = this.f8573f[i6];
c0625b3.f8562a.f8586c = -1;
c0625b3.g(((C0630g[]) this.f8577l.f1415c)[i7]);
C0630g c0630g = c0625b3.f8562a;
c0630g.f8586c = i6;
c0630g.e(this, c0625b3);
} else {
z3 = true;
}
if (i5 > this.i / 2) {
z3 = true;
}
f4 = BitmapDescriptorFactory.HUE_RED;
i4 = 1;
}
}
}
i++;
}
r(c0628e);
i();
}
public final void r(C0625b c0625b) {
boolean z3;
int i = 0;
for (int i4 = 0; i4 < this.i; i4++) {
this.h[i4] = false;
}
boolean z4 = false;
int i5 = 0;
while (!z4) {
int i6 = 1;
i5++;
if (i5 >= this.i * 2) {
return;
}
C0630g c0630g = c0625b.f8562a;
if (c0630g != null) {
this.h[c0630g.f8585b] = true;
}
C0630g d4 = c0625b.d(this.h);
if (d4 != null) {
boolean[] zArr = this.h;
int i7 = d4.f8585b;
if (zArr[i7]) {
return;
} else {
zArr[i7] = true;
}
}
if (d4 != null) {
float f2 = Float.MAX_VALUE;
int i8 = i;
int i9 = -1;
while (i8 < this.f8575j) {
C0625b c0625b2 = this.f8573f[i8];
if (c0625b2.f8562a.f8593l != i6 && !c0625b2.f8566e) {
C0624a c0624a = c0625b2.f8565d;
int i10 = c0624a.h;
if (i10 != -1) {
for (int i11 = 0; i10 != -1 && i11 < c0624a.f8554a; i11++) {
if (c0624a.f8558e[i10] == d4.f8585b) {
z3 = true;
break;
}
i10 = c0624a.f8559f[i10];
}
}
z3 = false;
if (z3) {
float c4 = c0625b2.f8565d.c(d4);
if (c4 < BitmapDescriptorFactory.HUE_RED) {
float f4 = (-c0625b2.f8563b) / c4;
if (f4 < f2) {
f2 = f4;
i9 = i8;
}
}
}
}
i8++;
i6 = 1;
}
if (i9 > -1) {
C0625b c0625b3 = this.f8573f[i9];
c0625b3.f8562a.f8586c = -1;
c0625b3.g(d4);
C0630g c0630g2 = c0625b3.f8562a;
c0630g2.f8586c = i9;
c0630g2.e(this, c0625b3);
}
} else {
z4 = true;
}
i = 0;
}
}
public final void s() {
for (int i = 0; i < this.f8575j; i++) {
C0625b c0625b = this.f8573f[i];
if (c0625b != null) {
((N.c) this.f8577l.f1413a).b(c0625b);
}
this.f8573f[i] = null;
}
}
public final void t() {
h hVar;
int i = 0;
while (true) {
hVar = this.f8577l;
C0630g[] c0630gArr = (C0630g[]) hVar.f1415c;
if (i >= c0630gArr.length) {
break;
}
C0630g c0630g = c0630gArr[i];
if (c0630g != null) {
c0630g.c();
}
i++;
}
N.c cVar = (N.c) hVar.f1414b;
C0630g[] c0630gArr2 = this.f8578m;
int i4 = this.f8579n;
cVar.getClass();
if (i4 > c0630gArr2.length) {
i4 = c0630gArr2.length;
}
for (int i5 = 0; i5 < i4; i5++) {
C0630g c0630g2 = c0630gArr2[i5];
int i6 = cVar.f1122b;
Object[] objArr = cVar.f1121a;
if (i6 < objArr.length) {
objArr[i6] = c0630g2;
cVar.f1122b = i6 + 1;
}
}
this.f8579n = 0;
Arrays.fill((C0630g[]) hVar.f1415c, (Object) null);
this.f8569b = 0;
C0628e c0628e = this.f8570c;
c0628e.h = 0;
c0628e.f8563b = BitmapDescriptorFactory.HUE_RED;
this.i = 1;
for (int i7 = 0; i7 < this.f8575j; i7++) {
C0625b c0625b = this.f8573f[i7];
}
s();
this.f8575j = 0;
this.f8580o = new C0625b(hVar);
}
}

View File

@@ -0,0 +1,183 @@
package u;
import F.i;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.Arrays;
/* renamed from: u.e, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0628e extends C0625b {
/* renamed from: f, reason: collision with root package name */
public C0630g[] f8581f;
/* renamed from: g, reason: collision with root package name */
public C0630g[] f8582g;
public int h;
public i i;
@Override // u.C0625b
public final C0630g d(boolean[] zArr) {
int i = -1;
for (int i4 = 0; i4 < this.h; i4++) {
C0630g[] c0630gArr = this.f8581f;
C0630g c0630g = c0630gArr[i4];
if (!zArr[c0630g.f8585b]) {
i iVar = this.i;
iVar.f490b = c0630g;
int i5 = 8;
if (i == -1) {
while (i5 >= 0) {
float f2 = ((C0630g) iVar.f490b).h[i5];
if (f2 <= BitmapDescriptorFactory.HUE_RED) {
if (f2 < BitmapDescriptorFactory.HUE_RED) {
i = i4;
break;
}
i5--;
}
}
} else {
C0630g c0630g2 = c0630gArr[i];
while (true) {
if (i5 >= 0) {
float f4 = c0630g2.h[i5];
float f5 = ((C0630g) iVar.f490b).h[i5];
if (f5 == f4) {
i5--;
} else if (f5 >= f4) {
}
}
}
}
}
}
if (i == -1) {
return null;
}
return this.f8581f[i];
}
@Override // u.C0625b
public final boolean e() {
return this.h == 0;
}
@Override // u.C0625b
public final void i(C0626c c0626c, C0625b c0625b, boolean z3) {
C0630g c0630g = c0625b.f8562a;
if (c0630g == null) {
return;
}
C0624a c0624a = c0625b.f8565d;
int d4 = c0624a.d();
for (int i = 0; i < d4; i++) {
C0630g e4 = c0624a.e(i);
float f2 = c0624a.f(i);
i iVar = this.i;
iVar.f490b = e4;
boolean z4 = e4.f8584a;
float[] fArr = c0630g.h;
if (z4) {
boolean z5 = true;
for (int i4 = 0; i4 < 9; i4++) {
float[] fArr2 = ((C0630g) iVar.f490b).h;
float f4 = (fArr[i4] * f2) + fArr2[i4];
fArr2[i4] = f4;
if (Math.abs(f4) < 1.0E-4f) {
((C0630g) iVar.f490b).h[i4] = 0.0f;
} else {
z5 = false;
}
}
if (z5) {
((C0628e) iVar.f491c).k((C0630g) iVar.f490b);
}
} else {
for (int i5 = 0; i5 < 9; i5++) {
float f5 = fArr[i5];
if (f5 != BitmapDescriptorFactory.HUE_RED) {
float f6 = f5 * f2;
if (Math.abs(f6) < 1.0E-4f) {
f6 = 0.0f;
}
((C0630g) iVar.f490b).h[i5] = f6;
} else {
((C0630g) iVar.f490b).h[i5] = 0.0f;
}
}
j(e4);
}
this.f8563b = (c0625b.f8563b * f2) + this.f8563b;
}
k(c0630g);
}
public final void j(C0630g c0630g) {
int i;
int i4 = this.h + 1;
C0630g[] c0630gArr = this.f8581f;
if (i4 > c0630gArr.length) {
C0630g[] c0630gArr2 = (C0630g[]) Arrays.copyOf(c0630gArr, c0630gArr.length * 2);
this.f8581f = c0630gArr2;
this.f8582g = (C0630g[]) Arrays.copyOf(c0630gArr2, c0630gArr2.length * 2);
}
C0630g[] c0630gArr3 = this.f8581f;
int i5 = this.h;
c0630gArr3[i5] = c0630g;
int i6 = i5 + 1;
this.h = i6;
if (i6 > 1 && c0630gArr3[i5].f8585b > c0630g.f8585b) {
int i7 = 0;
while (true) {
i = this.h;
if (i7 >= i) {
break;
}
this.f8582g[i7] = this.f8581f[i7];
i7++;
}
Arrays.sort(this.f8582g, 0, i, new A.i(6));
for (int i8 = 0; i8 < this.h; i8++) {
this.f8581f[i8] = this.f8582g[i8];
}
}
c0630g.f8584a = true;
c0630g.a(this);
}
public final void k(C0630g c0630g) {
int i = 0;
while (i < this.h) {
if (this.f8581f[i] == c0630g) {
while (true) {
int i4 = this.h;
if (i >= i4 - 1) {
this.h = i4 - 1;
c0630g.f8584a = false;
return;
} else {
C0630g[] c0630gArr = this.f8581f;
int i5 = i + 1;
c0630gArr[i] = c0630gArr[i5];
i = i5;
}
}
} else {
i++;
}
}
}
@Override // u.C0625b
public final String toString() {
String str = " goal -> (" + this.f8563b + ") : ";
for (int i = 0; i < this.h; i++) {
C0630g c0630g = this.f8581f[i];
i iVar = this.i;
iVar.f490b = c0630g;
str = str + iVar + " ";
}
return str;
}
}

View File

@@ -0,0 +1,131 @@
package u;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.Arrays;
/* renamed from: u.g, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0630g implements Comparable {
/* renamed from: a, reason: collision with root package name */
public boolean f8584a;
/* renamed from: e, reason: collision with root package name */
public float f8588e;
/* renamed from: l, reason: collision with root package name */
public int f8593l;
/* renamed from: b, reason: collision with root package name */
public int f8585b = -1;
/* renamed from: c, reason: collision with root package name */
public int f8586c = -1;
/* renamed from: d, reason: collision with root package name */
public int f8587d = 0;
/* renamed from: f, reason: collision with root package name */
public boolean f8589f = false;
/* renamed from: g, reason: collision with root package name */
public final float[] f8590g = new float[9];
public final float[] h = new float[9];
public C0625b[] i = new C0625b[16];
/* renamed from: j, reason: collision with root package name */
public int f8591j = 0;
/* renamed from: k, reason: collision with root package name */
public int f8592k = 0;
public C0630g(int i) {
this.f8593l = i;
}
public final void a(C0625b c0625b) {
int i = 0;
while (true) {
int i4 = this.f8591j;
if (i >= i4) {
C0625b[] c0625bArr = this.i;
if (i4 >= c0625bArr.length) {
this.i = (C0625b[]) Arrays.copyOf(c0625bArr, c0625bArr.length * 2);
}
C0625b[] c0625bArr2 = this.i;
int i5 = this.f8591j;
c0625bArr2[i5] = c0625b;
this.f8591j = i5 + 1;
return;
}
if (this.i[i] == c0625b) {
return;
} else {
i++;
}
}
}
public final void b(C0625b c0625b) {
int i = this.f8591j;
int i4 = 0;
while (i4 < i) {
if (this.i[i4] == c0625b) {
while (i4 < i - 1) {
C0625b[] c0625bArr = this.i;
int i5 = i4 + 1;
c0625bArr[i4] = c0625bArr[i5];
i4 = i5;
}
this.f8591j--;
return;
}
i4++;
}
}
public final void c() {
this.f8593l = 5;
this.f8587d = 0;
this.f8585b = -1;
this.f8586c = -1;
this.f8588e = BitmapDescriptorFactory.HUE_RED;
this.f8589f = false;
int i = this.f8591j;
for (int i4 = 0; i4 < i; i4++) {
this.i[i4] = null;
}
this.f8591j = 0;
this.f8592k = 0;
this.f8584a = false;
Arrays.fill(this.h, BitmapDescriptorFactory.HUE_RED);
}
@Override // java.lang.Comparable
public final int compareTo(Object obj) {
return this.f8585b - ((C0630g) obj).f8585b;
}
public final void d(C0626c c0626c, float f2) {
this.f8588e = f2;
this.f8589f = true;
int i = this.f8591j;
this.f8586c = -1;
for (int i4 = 0; i4 < i; i4++) {
this.i[i4].h(c0626c, this, false);
}
this.f8591j = 0;
}
public final void e(C0626c c0626c, C0625b c0625b) {
int i = this.f8591j;
for (int i4 = 0; i4 < i; i4++) {
this.i[i4].i(c0626c, c0625b, false);
}
this.f8591j = 0;
}
public final String toString() {
return "" + this.f8585b;
}
}