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,230 @@
package w;
import C.w;
import u.AbstractC0629f;
import u.C0625b;
import u.C0626c;
import u.C0630g;
/* renamed from: w.a, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0643a extends i {
/* renamed from: s0, reason: collision with root package name */
public int f8638s0;
/* renamed from: t0, reason: collision with root package name */
public boolean f8639t0;
/* renamed from: u0, reason: collision with root package name */
public int f8640u0;
/* renamed from: v0, reason: collision with root package name */
public boolean f8641v0;
@Override // w.d
public final boolean A() {
return this.f8641v0;
}
@Override // w.d
public final boolean B() {
return this.f8641v0;
}
public final boolean T() {
int i;
int i4;
int i5;
boolean z3 = true;
int i6 = 0;
while (true) {
i = this.f8801r0;
if (i6 >= i) {
break;
}
d dVar = this.f8800q0[i6];
if ((this.f8639t0 || dVar.c()) && ((((i4 = this.f8638s0) == 0 || i4 == 1) && !dVar.A()) || (((i5 = this.f8638s0) == 2 || i5 == 3) && !dVar.B()))) {
z3 = false;
}
i6++;
}
if (!z3 || i <= 0) {
return false;
}
int i7 = 0;
boolean z4 = false;
for (int i8 = 0; i8 < this.f8801r0; i8++) {
d dVar2 = this.f8800q0[i8];
if (this.f8639t0 || dVar2.c()) {
if (!z4) {
int i9 = this.f8638s0;
if (i9 == 0) {
i7 = dVar2.i(2).d();
} else if (i9 == 1) {
i7 = dVar2.i(4).d();
} else if (i9 == 2) {
i7 = dVar2.i(3).d();
} else if (i9 == 3) {
i7 = dVar2.i(5).d();
}
z4 = true;
}
int i10 = this.f8638s0;
if (i10 == 0) {
i7 = Math.min(i7, dVar2.i(2).d());
} else if (i10 == 1) {
i7 = Math.max(i7, dVar2.i(4).d());
} else if (i10 == 2) {
i7 = Math.min(i7, dVar2.i(3).d());
} else if (i10 == 3) {
i7 = Math.max(i7, dVar2.i(5).d());
}
}
}
int i11 = i7 + this.f8640u0;
int i12 = this.f8638s0;
if (i12 == 0 || i12 == 1) {
J(i11, i11);
} else {
K(i11, i11);
}
this.f8641v0 = true;
return true;
}
public final int U() {
int i = this.f8638s0;
if (i == 0 || i == 1) {
return 0;
}
return (i == 2 || i == 3) ? 1 : -1;
}
@Override // w.d
public final void b(C0626c c0626c, boolean z3) {
boolean z4;
int i;
int i4;
c[] cVarArr = this.f8678Q;
c cVar = this.f8671I;
cVarArr[0] = cVar;
c cVar2 = this.J;
int i5 = 2;
cVarArr[2] = cVar2;
c cVar3 = this.f8672K;
cVarArr[1] = cVar3;
c cVar4 = this.f8673L;
cVarArr[3] = cVar4;
for (c cVar5 : cVarArr) {
cVar5.i = c0626c.k(cVar5);
}
int i6 = this.f8638s0;
if (i6 < 0 || i6 >= 4) {
return;
}
c cVar6 = cVarArr[i6];
if (!this.f8641v0) {
T();
}
if (this.f8641v0) {
this.f8641v0 = false;
int i7 = this.f8638s0;
if (i7 == 0 || i7 == 1) {
c0626c.d(cVar.i, this.f8686Y);
c0626c.d(cVar3.i, this.f8686Y);
return;
} else {
if (i7 == 2 || i7 == 3) {
c0626c.d(cVar2.i, this.Z);
c0626c.d(cVar4.i, this.Z);
return;
}
return;
}
}
for (int i8 = 0; i8 < this.f8801r0; i8++) {
d dVar = this.f8800q0[i8];
if ((this.f8639t0 || dVar.c()) && ((((i4 = this.f8638s0) == 0 || i4 == 1) && dVar.f8715p0[0] == 3 && dVar.f8671I.f8661f != null && dVar.f8672K.f8661f != null) || ((i4 == 2 || i4 == 3) && dVar.f8715p0[1] == 3 && dVar.J.f8661f != null && dVar.f8673L.f8661f != null))) {
z4 = true;
break;
}
}
z4 = false;
boolean z5 = cVar.g() || cVar3.g();
boolean z6 = cVar2.g() || cVar4.g();
int i9 = (z4 || !(((i = this.f8638s0) == 0 && z5) || ((i == 2 && z6) || ((i == 1 && z5) || (i == 3 && z6))))) ? 4 : 5;
int i10 = 0;
while (i10 < this.f8801r0) {
d dVar2 = this.f8800q0[i10];
if (this.f8639t0 || dVar2.c()) {
C0630g k4 = c0626c.k(dVar2.f8678Q[this.f8638s0]);
int i11 = this.f8638s0;
c cVar7 = dVar2.f8678Q[i11];
cVar7.i = k4;
c cVar8 = cVar7.f8661f;
int i12 = (cVar8 == null || cVar8.f8659d != this) ? 0 : cVar7.f8662g;
if (i11 == 0 || i11 == i5) {
C0630g c0630g = cVar6.i;
int i13 = this.f8640u0 - i12;
C0625b l4 = c0626c.l();
C0630g m4 = c0626c.m();
m4.f8587d = 0;
l4.c(c0630g, k4, m4, i13);
c0626c.c(l4);
} else {
C0630g c0630g2 = cVar6.i;
int i14 = this.f8640u0 + i12;
C0625b l5 = c0626c.l();
C0630g m5 = c0626c.m();
m5.f8587d = 0;
l5.b(c0630g2, k4, m5, i14);
c0626c.c(l5);
}
c0626c.e(cVar6.i, k4, this.f8640u0 + i12, i9);
}
i10++;
i5 = 2;
}
int i15 = this.f8638s0;
if (i15 == 0) {
c0626c.e(cVar3.i, cVar.i, 0, 8);
c0626c.e(cVar.i, this.f8681T.f8672K.i, 0, 4);
c0626c.e(cVar.i, this.f8681T.f8671I.i, 0, 0);
return;
}
if (i15 == 1) {
c0626c.e(cVar.i, cVar3.i, 0, 8);
c0626c.e(cVar.i, this.f8681T.f8671I.i, 0, 4);
c0626c.e(cVar.i, this.f8681T.f8672K.i, 0, 0);
} else if (i15 == 2) {
c0626c.e(cVar4.i, cVar2.i, 0, 8);
c0626c.e(cVar2.i, this.f8681T.f8673L.i, 0, 4);
c0626c.e(cVar2.i, this.f8681T.J.i, 0, 0);
} else if (i15 == 3) {
c0626c.e(cVar2.i, cVar4.i, 0, 8);
c0626c.e(cVar2.i, this.f8681T.J.i, 0, 4);
c0626c.e(cVar2.i, this.f8681T.f8673L.i, 0, 0);
}
}
@Override // w.d
public final boolean c() {
return true;
}
@Override // w.d
public final String toString() {
String r4 = w.r(new StringBuilder("[Barrier] "), this.f8701h0, " {");
for (int i = 0; i < this.f8801r0; i++) {
d dVar = this.f8800q0[i];
if (i > 0) {
r4 = w.n(r4, ", ");
}
StringBuilder a2 = AbstractC0629f.a(r4);
a2.append(dVar.f8701h0);
r4 = a2.toString();
}
return w.n(r4, "}");
}
}

View File

@@ -0,0 +1,60 @@
package w;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.ArrayList;
/* renamed from: w.b, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0644b {
/* renamed from: a, reason: collision with root package name */
public final d f8642a;
/* renamed from: b, reason: collision with root package name */
public d f8643b;
/* renamed from: c, reason: collision with root package name */
public d f8644c;
/* renamed from: d, reason: collision with root package name */
public d f8645d;
/* renamed from: e, reason: collision with root package name */
public d f8646e;
/* renamed from: f, reason: collision with root package name */
public d f8647f;
/* renamed from: g, reason: collision with root package name */
public d f8648g;
public ArrayList h;
public int i;
/* renamed from: j, reason: collision with root package name */
public int f8649j;
/* renamed from: k, reason: collision with root package name */
public float f8650k = BitmapDescriptorFactory.HUE_RED;
/* renamed from: l, reason: collision with root package name */
public final int f8651l;
/* renamed from: m, reason: collision with root package name */
public final boolean f8652m;
/* renamed from: n, reason: collision with root package name */
public boolean f8653n;
/* renamed from: o, reason: collision with root package name */
public boolean f8654o;
public boolean p;
/* renamed from: q, reason: collision with root package name */
public boolean f8655q;
public C0644b(d dVar, int i, boolean z3) {
this.f8642a = dVar;
this.f8651l = i;
this.f8652m = z3;
}
}

View File

@@ -0,0 +1,271 @@
package w;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import kotlin.jvm.internal.IntCompanionObject;
import u.AbstractC0629f;
import u.C0630g;
import x.m;
/* loaded from: classes.dex */
public final class c {
/* renamed from: b, reason: collision with root package name */
public int f8657b;
/* renamed from: c, reason: collision with root package name */
public boolean f8658c;
/* renamed from: d, reason: collision with root package name */
public final d f8659d;
/* renamed from: e, reason: collision with root package name */
public final int f8660e;
/* renamed from: f, reason: collision with root package name */
public c f8661f;
public C0630g i;
/* renamed from: a, reason: collision with root package name */
public HashSet f8656a = null;
/* renamed from: g, reason: collision with root package name */
public int f8662g = 0;
public int h = IntCompanionObject.MIN_VALUE;
public c(d dVar, int i) {
this.f8659d = dVar;
this.f8660e = i;
}
public final void a(c cVar, int i) {
b(cVar, i, IntCompanionObject.MIN_VALUE, false);
}
public final boolean b(c cVar, int i, int i4, boolean z3) {
if (cVar == null) {
j();
return true;
}
if (!z3 && !i(cVar)) {
return false;
}
this.f8661f = cVar;
if (cVar.f8656a == null) {
cVar.f8656a = new HashSet();
}
HashSet hashSet = this.f8661f.f8656a;
if (hashSet != null) {
hashSet.add(this);
}
this.f8662g = i;
this.h = i4;
return true;
}
public final void c(int i, ArrayList arrayList, m mVar) {
HashSet hashSet = this.f8656a;
if (hashSet != null) {
Iterator it = hashSet.iterator();
while (it.hasNext()) {
x.g.b(((c) it.next()).f8659d, i, arrayList, mVar);
}
}
}
public final int d() {
if (this.f8658c) {
return this.f8657b;
}
return 0;
}
public final int e() {
c cVar;
if (this.f8659d.f8700g0 == 8) {
return 0;
}
int i = this.h;
return (i == Integer.MIN_VALUE || (cVar = this.f8661f) == null || cVar.f8659d.f8700g0 != 8) ? this.f8662g : i;
}
public final c f() {
int i = this.f8660e;
int b4 = AbstractC0629f.b(i);
d dVar = this.f8659d;
switch (b4) {
case 0:
case 5:
case 6:
case 7:
case 8:
return null;
case 1:
return dVar.f8672K;
case 2:
return dVar.f8673L;
case 3:
return dVar.f8671I;
case 4:
return dVar.J;
default:
throw new AssertionError(com.google.android.gms.measurement.internal.a.A(i));
}
}
public final boolean g() {
HashSet hashSet = this.f8656a;
if (hashSet == null) {
return false;
}
Iterator it = hashSet.iterator();
while (it.hasNext()) {
if (((c) it.next()).f().h()) {
return true;
}
}
return false;
}
public final boolean h() {
return this.f8661f != null;
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
/* JADX WARN: Failed to find 'out' block for switch in B:13:0x0026. Please report as an issue. */
/* JADX WARN: Removed duplicated region for block: B:10:0x0063 A[RETURN] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean i(w.c r10) {
/*
r9 = this;
r0 = 0
if (r10 != 0) goto L5
goto L65
L5:
r1 = 6
int r2 = r9.f8660e
r3 = 1
w.d r4 = r10.f8659d
int r10 = r10.f8660e
if (r10 != r2) goto L1c
if (r2 != r1) goto L63
boolean r10 = r4.f8667E
if (r10 == 0) goto L65
w.d r9 = r9.f8659d
boolean r9 = r9.f8667E
if (r9 != 0) goto L63
goto L65
L1c:
int r9 = u.AbstractC0629f.b(r2)
r5 = 8
r6 = 9
r7 = 4
r8 = 2
switch(r9) {
case 0: goto L65;
case 1: goto L53;
case 2: goto L3f;
case 3: goto L53;
case 4: goto L3f;
case 5: goto L3a;
case 6: goto L33;
case 7: goto L65;
case 8: goto L65;
default: goto L29;
}
L29:
java.lang.AssertionError r9 = new java.lang.AssertionError
java.lang.String r10 = com.google.android.gms.measurement.internal.a.A(r2)
r9.<init>(r10)
throw r9
L33:
if (r10 == r1) goto L65
if (r10 == r5) goto L65
if (r10 == r6) goto L65
goto L63
L3a:
if (r10 == r8) goto L65
if (r10 != r7) goto L63
goto L65
L3f:
r9 = 3
if (r10 == r9) goto L48
r9 = 5
if (r10 != r9) goto L46
goto L48
L46:
r9 = r0
goto L49
L48:
r9 = r3
L49:
boolean r1 = r4 instanceof w.h
if (r1 == 0) goto L52
if (r9 != 0) goto L63
if (r10 != r6) goto L65
goto L63
L52:
return r9
L53:
if (r10 == r8) goto L5a
if (r10 != r7) goto L58
goto L5a
L58:
r9 = r0
goto L5b
L5a:
r9 = r3
L5b:
boolean r1 = r4 instanceof w.h
if (r1 == 0) goto L64
if (r9 != 0) goto L63
if (r10 != r5) goto L65
L63:
return r3
L64:
return r9
L65:
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: w.c.i(w.c):boolean");
}
public final void j() {
HashSet hashSet;
c cVar = this.f8661f;
if (cVar != null && (hashSet = cVar.f8656a) != null) {
hashSet.remove(this);
if (this.f8661f.f8656a.size() == 0) {
this.f8661f.f8656a = null;
}
}
this.f8656a = null;
this.f8661f = null;
this.f8662g = 0;
this.h = IntCompanionObject.MIN_VALUE;
this.f8658c = false;
this.f8657b = 0;
}
public final void k() {
C0630g c0630g = this.i;
if (c0630g == null) {
this.i = new C0630g(1);
} else {
c0630g.c();
}
}
public final void l(int i) {
this.f8657b = i;
this.f8658c = true;
}
public final String toString() {
return this.f8659d.f8701h0 + ":" + com.google.android.gms.measurement.internal.a.A(this.f8660e);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,530 @@
package w;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import r3.m;
import u.C0626c;
import x.C0653b;
import x.C0654c;
import x.n;
/* loaded from: classes.dex */
public final class e extends d {
public int A0;
/* renamed from: B0, reason: collision with root package name */
public C0644b[] f8726B0;
/* renamed from: C0, reason: collision with root package name */
public C0644b[] f8727C0;
/* renamed from: D0, reason: collision with root package name */
public int f8728D0;
public boolean E0;
/* renamed from: F0, reason: collision with root package name */
public boolean f8729F0;
/* renamed from: G0, reason: collision with root package name */
public WeakReference f8730G0;
/* renamed from: H0, reason: collision with root package name */
public WeakReference f8731H0;
/* renamed from: I0, reason: collision with root package name */
public WeakReference f8732I0;
/* renamed from: J0, reason: collision with root package name */
public WeakReference f8733J0;
/* renamed from: K0, reason: collision with root package name */
public final HashSet f8734K0;
/* renamed from: L0, reason: collision with root package name */
public final C0653b f8735L0;
/* renamed from: q0, reason: collision with root package name */
public ArrayList f8736q0 = new ArrayList();
/* renamed from: r0, reason: collision with root package name */
public final R0.h f8737r0;
/* renamed from: s0, reason: collision with root package name */
public final m f8738s0;
/* renamed from: t0, reason: collision with root package name */
public int f8739t0;
/* renamed from: u0, reason: collision with root package name */
public androidx.constraintlayout.widget.f f8740u0;
/* renamed from: v0, reason: collision with root package name */
public boolean f8741v0;
/* renamed from: w0, reason: collision with root package name */
public final C0626c f8742w0;
/* renamed from: x0, reason: collision with root package name */
public int f8743x0;
/* renamed from: y0, reason: collision with root package name */
public int f8744y0;
/* renamed from: z0, reason: collision with root package name */
public int f8745z0;
/* JADX WARN: Type inference failed for: r0v1, types: [java.lang.Object, R0.h] */
/* JADX WARN: Type inference failed for: r0v5, types: [java.lang.Object, x.b] */
public e() {
?? obj = new Object();
obj.f1413a = new ArrayList();
obj.f1414b = new Object();
obj.f1415c = this;
this.f8737r0 = obj;
m mVar = new m();
mVar.f8293b = true;
mVar.f8294c = true;
mVar.f8297f = new ArrayList();
new ArrayList();
mVar.f8298g = null;
mVar.h = new Object();
mVar.i = new ArrayList();
mVar.f8295d = this;
mVar.f8296e = this;
this.f8738s0 = mVar;
this.f8740u0 = null;
this.f8741v0 = false;
this.f8742w0 = new C0626c();
this.f8745z0 = 0;
this.A0 = 0;
this.f8726B0 = new C0644b[4];
this.f8727C0 = new C0644b[4];
this.f8728D0 = 257;
this.E0 = false;
this.f8729F0 = false;
this.f8730G0 = null;
this.f8731H0 = null;
this.f8732I0 = null;
this.f8733J0 = null;
this.f8734K0 = new HashSet();
this.f8735L0 = new Object();
}
public static void V(d dVar, androidx.constraintlayout.widget.f fVar, C0653b c0653b) {
int i;
int i4;
if (fVar == null) {
return;
}
if (dVar.f8700g0 == 8 || (dVar instanceof h) || (dVar instanceof C0643a)) {
c0653b.f8815e = 0;
c0653b.f8816f = 0;
return;
}
int[] iArr = dVar.f8715p0;
c0653b.f8811a = iArr[0];
c0653b.f8812b = iArr[1];
c0653b.f8813c = dVar.q();
c0653b.f8814d = dVar.k();
c0653b.i = false;
c0653b.f8818j = 0;
boolean z3 = c0653b.f8811a == 3;
boolean z4 = c0653b.f8812b == 3;
boolean z5 = z3 && dVar.f8684W > BitmapDescriptorFactory.HUE_RED;
boolean z6 = z4 && dVar.f8684W > BitmapDescriptorFactory.HUE_RED;
if (z3 && dVar.t(0) && dVar.f8717r == 0 && !z5) {
c0653b.f8811a = 2;
if (z4 && dVar.f8718s == 0) {
c0653b.f8811a = 1;
}
z3 = false;
}
if (z4 && dVar.t(1) && dVar.f8718s == 0 && !z6) {
c0653b.f8812b = 2;
if (z3 && dVar.f8717r == 0) {
c0653b.f8812b = 1;
}
z4 = false;
}
if (dVar.A()) {
c0653b.f8811a = 1;
z3 = false;
}
if (dVar.B()) {
c0653b.f8812b = 1;
z4 = false;
}
int[] iArr2 = dVar.f8719t;
if (z5) {
if (iArr2[0] == 4) {
c0653b.f8811a = 1;
} else if (!z4) {
if (c0653b.f8812b == 1) {
i4 = c0653b.f8814d;
} else {
c0653b.f8811a = 2;
fVar.b(dVar, c0653b);
i4 = c0653b.f8816f;
}
c0653b.f8811a = 1;
c0653b.f8813c = (int) (dVar.f8684W * i4);
}
}
if (z6) {
if (iArr2[1] == 4) {
c0653b.f8812b = 1;
} else if (!z3) {
if (c0653b.f8811a == 1) {
i = c0653b.f8813c;
} else {
c0653b.f8812b = 2;
fVar.b(dVar, c0653b);
i = c0653b.f8815e;
}
c0653b.f8812b = 1;
if (dVar.f8685X == -1) {
c0653b.f8814d = (int) (i / dVar.f8684W);
} else {
c0653b.f8814d = (int) (dVar.f8684W * i);
}
}
}
fVar.b(dVar, c0653b);
dVar.O(c0653b.f8815e);
dVar.L(c0653b.f8816f);
dVar.f8667E = c0653b.h;
dVar.I(c0653b.f8817g);
c0653b.f8818j = 0;
}
@Override // w.d
public final void C() {
this.f8742w0.t();
this.f8743x0 = 0;
this.f8744y0 = 0;
this.f8736q0.clear();
super.C();
}
@Override // w.d
public final void F(R0.h hVar) {
super.F(hVar);
int size = this.f8736q0.size();
for (int i = 0; i < size; i++) {
((d) this.f8736q0.get(i)).F(hVar);
}
}
@Override // w.d
public final void P(boolean z3, boolean z4) {
super.P(z3, z4);
int size = this.f8736q0.size();
for (int i = 0; i < size; i++) {
((d) this.f8736q0.get(i)).P(z3, z4);
}
}
public final void R(d dVar, int i) {
if (i == 0) {
int i4 = this.f8745z0 + 1;
C0644b[] c0644bArr = this.f8727C0;
if (i4 >= c0644bArr.length) {
this.f8727C0 = (C0644b[]) Arrays.copyOf(c0644bArr, c0644bArr.length * 2);
}
C0644b[] c0644bArr2 = this.f8727C0;
int i5 = this.f8745z0;
c0644bArr2[i5] = new C0644b(dVar, 0, this.f8741v0);
this.f8745z0 = i5 + 1;
return;
}
if (i == 1) {
int i6 = this.A0 + 1;
C0644b[] c0644bArr3 = this.f8726B0;
if (i6 >= c0644bArr3.length) {
this.f8726B0 = (C0644b[]) Arrays.copyOf(c0644bArr3, c0644bArr3.length * 2);
}
C0644b[] c0644bArr4 = this.f8726B0;
int i7 = this.A0;
c0644bArr4[i7] = new C0644b(dVar, 1, this.f8741v0);
this.A0 = i7 + 1;
}
}
public final void S(C0626c c0626c) {
e eVar;
C0626c c0626c2;
boolean W3 = W(64);
b(c0626c, W3);
int size = this.f8736q0.size();
boolean z3 = false;
for (int i = 0; i < size; i++) {
d dVar = (d) this.f8736q0.get(i);
boolean[] zArr = dVar.f8680S;
zArr[0] = false;
zArr[1] = false;
if (dVar instanceof C0643a) {
z3 = true;
}
}
if (z3) {
for (int i4 = 0; i4 < size; i4++) {
d dVar2 = (d) this.f8736q0.get(i4);
if (dVar2 instanceof C0643a) {
C0643a c0643a = (C0643a) dVar2;
for (int i5 = 0; i5 < c0643a.f8801r0; i5++) {
d dVar3 = c0643a.f8800q0[i5];
if (c0643a.f8639t0 || dVar3.c()) {
int i6 = c0643a.f8638s0;
if (i6 == 0 || i6 == 1) {
dVar3.f8680S[0] = true;
} else if (i6 == 2 || i6 == 3) {
dVar3.f8680S[1] = true;
}
}
}
}
}
}
HashSet hashSet = this.f8734K0;
hashSet.clear();
for (int i7 = 0; i7 < size; i7++) {
d dVar4 = (d) this.f8736q0.get(i7);
dVar4.getClass();
boolean z4 = dVar4 instanceof g;
if (z4 || (dVar4 instanceof h)) {
if (z4) {
hashSet.add(dVar4);
} else {
dVar4.b(c0626c, W3);
}
}
}
while (hashSet.size() > 0) {
int size2 = hashSet.size();
Iterator it = hashSet.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
g gVar = (g) ((d) it.next());
for (int i8 = 0; i8 < gVar.f8801r0; i8++) {
if (hashSet.contains(gVar.f8800q0[i8])) {
gVar.b(c0626c, W3);
hashSet.remove(gVar);
break;
}
}
}
if (size2 == hashSet.size()) {
Iterator it2 = hashSet.iterator();
while (it2.hasNext()) {
((d) it2.next()).b(c0626c, W3);
}
hashSet.clear();
}
}
if (C0626c.p) {
HashSet hashSet2 = new HashSet();
for (int i9 = 0; i9 < size; i9++) {
d dVar5 = (d) this.f8736q0.get(i9);
dVar5.getClass();
if (!(dVar5 instanceof g) && !(dVar5 instanceof h)) {
hashSet2.add(dVar5);
}
}
eVar = this;
c0626c2 = c0626c;
eVar.a(this, c0626c2, hashSet2, this.f8715p0[0] == 2 ? 0 : 1, false);
Iterator it3 = hashSet2.iterator();
while (it3.hasNext()) {
d dVar6 = (d) it3.next();
j.b(eVar, c0626c2, dVar6);
dVar6.b(c0626c2, W3);
}
} else {
eVar = this;
c0626c2 = c0626c;
for (int i10 = 0; i10 < size; i10++) {
d dVar7 = (d) eVar.f8736q0.get(i10);
if (dVar7 instanceof e) {
int[] iArr = dVar7.f8715p0;
int i11 = iArr[0];
int i12 = iArr[1];
if (i11 == 2) {
dVar7.M(1);
}
if (i12 == 2) {
dVar7.N(1);
}
dVar7.b(c0626c2, W3);
if (i11 == 2) {
dVar7.M(i11);
}
if (i12 == 2) {
dVar7.N(i12);
}
} else {
j.b(eVar, c0626c2, dVar7);
if (!(dVar7 instanceof g) && !(dVar7 instanceof h)) {
dVar7.b(c0626c2, W3);
}
}
}
}
if (eVar.f8745z0 > 0) {
j.a(eVar, c0626c2, null, 0);
}
if (eVar.A0 > 0) {
j.a(eVar, c0626c2, null, 1);
}
}
public final boolean T(int i, boolean z3) {
boolean z4;
m mVar = this.f8738s0;
e eVar = (e) mVar.f8295d;
boolean z5 = false;
int j4 = eVar.j(0);
int j5 = eVar.j(1);
int r4 = eVar.r();
int s4 = eVar.s();
ArrayList arrayList = (ArrayList) mVar.f8297f;
if (z3 && (j4 == 2 || j5 == 2)) {
Iterator it = arrayList.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
n nVar = (n) it.next();
if (nVar.f8849f == i && !nVar.k()) {
z3 = false;
break;
}
}
if (i == 0) {
if (z3 && j4 == 2) {
eVar.M(1);
eVar.O(mVar.d(eVar, 0));
eVar.f8693d.f8848e.d(eVar.q());
}
} else if (z3 && j5 == 2) {
eVar.N(1);
eVar.L(mVar.d(eVar, 1));
eVar.f8695e.f8848e.d(eVar.k());
}
}
int[] iArr = eVar.f8715p0;
if (i == 0) {
int i4 = iArr[0];
if (i4 == 1 || i4 == 4) {
int q4 = eVar.q() + r4;
eVar.f8693d.i.d(q4);
eVar.f8693d.f8848e.d(q4 - r4);
z4 = true;
}
z4 = false;
} else {
int i5 = iArr[1];
if (i5 == 1 || i5 == 4) {
int k4 = eVar.k() + s4;
eVar.f8695e.i.d(k4);
eVar.f8695e.f8848e.d(k4 - s4);
z4 = true;
}
z4 = false;
}
mVar.g();
Iterator it2 = arrayList.iterator();
while (it2.hasNext()) {
n nVar2 = (n) it2.next();
if (nVar2.f8849f == i && (nVar2.f8845b != eVar || nVar2.f8850g)) {
nVar2.e();
}
}
Iterator it3 = arrayList.iterator();
while (true) {
if (!it3.hasNext()) {
z5 = true;
break;
}
n nVar3 = (n) it3.next();
if (nVar3.f8849f == i && (z4 || nVar3.f8845b != eVar)) {
if (!nVar3.h.f8828j) {
break;
}
if (!nVar3.i.f8828j) {
break;
}
if (!(nVar3 instanceof C0654c) && !nVar3.f8848e.f8828j) {
break;
}
}
}
eVar.M(j4);
eVar.N(j5);
return z5;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:215:0x06bd */
/* JADX WARN: Removed duplicated region for block: B:224:0x06da */
/* JADX WARN: Removed duplicated region for block: B:263:0x07e4 */
/* JADX WARN: Removed duplicated region for block: B:277:0x0842 A[ADDED_TO_REGION] */
/* JADX WARN: Removed duplicated region for block: B:282:0x084f A[LOOP:14: B:281:0x084d->B:282:0x084f, LOOP_END] */
/* JADX WARN: Removed duplicated region for block: B:295:0x08b5 */
/* JADX WARN: Removed duplicated region for block: B:298:0x08d5 */
/* JADX WARN: Removed duplicated region for block: B:300:0x08e2 */
/* JADX WARN: Removed duplicated region for block: B:313:0x091e */
/* JADX WARN: Removed duplicated region for block: B:316:0x0920 */
/* JADX WARN: Removed duplicated region for block: B:319:0x091a */
/* JADX WARN: Removed duplicated region for block: B:320:0x08de */
/* JADX WARN: Removed duplicated region for block: B:321:0x08c2 */
/* JADX WARN: Removed duplicated region for block: B:322:0x0825 */
/* JADX WARN: Removed duplicated region for block: B:364:0x092e */
/* JADX WARN: Removed duplicated region for block: B:416:0x03a1 */
/* JADX WARN: Removed duplicated region for block: B:428:0x03c7 */
/* JADX WARN: Removed duplicated region for block: B:601:0x061f */
/* JADX WARN: Removed duplicated region for block: B:620:0x064d A[ADDED_TO_REGION] */
/* JADX WARN: Removed duplicated region for block: B:623:0x0652 */
/* JADX WARN: Removed duplicated region for block: B:630:0x0668 */
/* JADX WARN: Type inference failed for: r14v3 */
/* JADX WARN: Type inference failed for: r14v4, types: [boolean] */
/* JADX WARN: Type inference failed for: r14v8 */
/* JADX WARN: Type inference failed for: r6v140, types: [java.lang.Object, x.b] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void U() {
/*
Method dump skipped, instructions count: 2364
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: w.e.U():void");
}
public final boolean W(int i) {
return (this.f8728D0 & i) == i;
}
@Override // w.d
public final void n(StringBuilder sb) {
sb.append(this.f8703j + ":{\n");
StringBuilder sb2 = new StringBuilder(" actualWidth:");
sb2.append(this.f8682U);
sb.append(sb2.toString());
sb.append("\n");
sb.append(" actualHeight:" + this.f8683V);
sb.append("\n");
Iterator it = this.f8736q0.iterator();
while (it.hasNext()) {
((d) it.next()).n(sb);
sb.append(",\n");
}
sb.append("}");
}
}

View File

@@ -0,0 +1,502 @@
package w;
/* loaded from: classes.dex */
public final class f {
/* renamed from: a, reason: collision with root package name */
public int f8746a;
/* renamed from: d, reason: collision with root package name */
public c f8749d;
/* renamed from: e, reason: collision with root package name */
public c f8750e;
/* renamed from: f, reason: collision with root package name */
public c f8751f;
/* renamed from: g, reason: collision with root package name */
public c f8752g;
public int h;
public int i;
/* renamed from: j, reason: collision with root package name */
public int f8753j;
/* renamed from: k, reason: collision with root package name */
public int f8754k;
/* renamed from: q, reason: collision with root package name */
public int f8759q;
/* renamed from: r, reason: collision with root package name */
public final /* synthetic */ g f8760r;
/* renamed from: b, reason: collision with root package name */
public d f8747b = null;
/* renamed from: c, reason: collision with root package name */
public int f8748c = 0;
/* renamed from: l, reason: collision with root package name */
public int f8755l = 0;
/* renamed from: m, reason: collision with root package name */
public int f8756m = 0;
/* renamed from: n, reason: collision with root package name */
public int f8757n = 0;
/* renamed from: o, reason: collision with root package name */
public int f8758o = 0;
public int p = 0;
public f(g gVar, int i, c cVar, c cVar2, c cVar3, c cVar4, int i4) {
this.f8760r = gVar;
this.f8746a = i;
this.f8749d = cVar;
this.f8750e = cVar2;
this.f8751f = cVar3;
this.f8752g = cVar4;
this.h = gVar.f8790w0;
this.i = gVar.f8786s0;
this.f8753j = gVar.f8791x0;
this.f8754k = gVar.f8787t0;
this.f8759q = i4;
}
public final void a(d dVar) {
int i = this.f8746a;
g gVar = this.f8760r;
if (i == 0) {
int U3 = gVar.U(dVar, this.f8759q);
if (dVar.f8715p0[0] == 3) {
this.p++;
U3 = 0;
}
this.f8755l = U3 + (dVar.f8700g0 != 8 ? gVar.f8774P0 : 0) + this.f8755l;
int T3 = gVar.T(dVar, this.f8759q);
if (this.f8747b == null || this.f8748c < T3) {
this.f8747b = dVar;
this.f8748c = T3;
this.f8756m = T3;
}
} else {
int U4 = gVar.U(dVar, this.f8759q);
int T4 = gVar.T(dVar, this.f8759q);
if (dVar.f8715p0[1] == 3) {
this.p++;
T4 = 0;
}
this.f8756m = T4 + (dVar.f8700g0 != 8 ? gVar.f8775Q0 : 0) + this.f8756m;
if (this.f8747b == null || this.f8748c < U4) {
this.f8747b = dVar;
this.f8748c = U4;
this.f8755l = U4;
}
}
this.f8758o++;
}
public final void b(int i, boolean z3, boolean z4) {
g gVar;
int i4;
int i5;
d dVar;
boolean z5;
char c4;
float f2;
float f4;
int i6;
float f5;
float f6;
int i7;
int i8 = this.f8758o;
int i9 = 0;
while (true) {
gVar = this.f8760r;
if (i9 >= i8 || (i7 = this.f8757n + i9) >= gVar.f8785b1) {
break;
}
d dVar2 = gVar.f8784a1[i7];
if (dVar2 != null) {
dVar2.D();
}
i9++;
}
if (i8 == 0 || this.f8747b == null) {
return;
}
boolean z6 = z4 && i == 0;
int i10 = -1;
int i11 = -1;
for (int i12 = 0; i12 < i8; i12++) {
int i13 = this.f8757n + (z3 ? (i8 - 1) - i12 : i12);
if (i13 >= gVar.f8785b1) {
break;
}
d dVar3 = gVar.f8784a1[i13];
if (dVar3 != null && dVar3.f8700g0 == 0) {
if (i10 == -1) {
i10 = i12;
}
i11 = i12;
}
}
if (this.f8746a != 0) {
boolean z7 = z6;
d dVar4 = this.f8747b;
dVar4.f8702i0 = gVar.f8763D0;
int i14 = this.h;
if (i > 0) {
i14 += gVar.f8774P0;
}
c cVar = dVar4.f8671I;
c cVar2 = dVar4.f8672K;
if (z3) {
cVar2.a(this.f8751f, i14);
if (z4) {
cVar.a(this.f8749d, this.f8753j);
}
if (i > 0) {
this.f8751f.f8659d.f8671I.a(cVar2, 0);
}
} else {
cVar.a(this.f8749d, i14);
if (z4) {
cVar2.a(this.f8751f, this.f8753j);
}
if (i > 0) {
this.f8749d.f8659d.f8672K.a(cVar, 0);
}
}
d dVar5 = null;
for (int i15 = 0; i15 < i8; i15++) {
int i16 = this.f8757n + i15;
if (i16 >= gVar.f8785b1) {
return;
}
d dVar6 = gVar.f8784a1[i16];
if (dVar6 != null) {
c cVar3 = dVar6.J;
if (i15 == 0) {
dVar6.f(cVar3, this.f8750e, this.i);
int i17 = gVar.E0;
float f7 = gVar.f8769K0;
if (this.f8757n == 0) {
i5 = gVar.f8765G0;
i4 = -1;
if (i5 != -1) {
f7 = gVar.f8771M0;
i17 = i5;
dVar6.f8704j0 = i17;
dVar6.f8696e0 = f7;
}
} else {
i4 = -1;
}
if (z4 && (i5 = gVar.f8767I0) != i4) {
f7 = gVar.f8773O0;
i17 = i5;
}
dVar6.f8704j0 = i17;
dVar6.f8696e0 = f7;
}
if (i15 == i8 - 1) {
dVar6.f(dVar6.f8673L, this.f8752g, this.f8754k);
}
if (dVar5 != null) {
int i18 = gVar.f8775Q0;
c cVar4 = dVar5.f8673L;
cVar3.a(cVar4, i18);
if (i15 == i10) {
int i19 = this.i;
if (cVar3.h()) {
cVar3.h = i19;
}
}
cVar4.a(cVar3, 0);
if (i15 == i11 + 1) {
int i20 = this.f8754k;
if (cVar4.h()) {
cVar4.h = i20;
}
}
}
if (dVar6 != dVar4) {
c cVar5 = dVar6.f8672K;
c cVar6 = dVar6.f8671I;
if (z3) {
int i21 = gVar.f8776R0;
if (i21 == 0) {
cVar5.a(cVar2, 0);
} else if (i21 == 1) {
cVar6.a(cVar, 0);
} else if (i21 == 2) {
cVar6.a(cVar, 0);
cVar5.a(cVar2, 0);
}
} else {
int i22 = gVar.f8776R0;
if (i22 == 0) {
cVar6.a(cVar, 0);
} else if (i22 == 1) {
cVar5.a(cVar2, 0);
} else if (i22 == 2) {
if (z7) {
cVar6.a(this.f8749d, this.h);
cVar5.a(this.f8751f, this.f8753j);
} else {
cVar6.a(cVar, 0);
cVar5.a(cVar2, 0);
}
}
dVar5 = dVar6;
}
}
dVar5 = dVar6;
}
}
return;
}
d dVar7 = this.f8747b;
dVar7.f8704j0 = gVar.E0;
int i23 = this.i;
if (i > 0) {
i23 += gVar.f8775Q0;
}
c cVar7 = this.f8750e;
c cVar8 = dVar7.J;
cVar8.a(cVar7, i23);
c cVar9 = dVar7.f8673L;
if (z4) {
cVar9.a(this.f8752g, this.f8754k);
}
if (i > 0) {
this.f8750e.f8659d.f8673L.a(cVar8, 0);
}
if (gVar.f8777S0 == 3 && !dVar7.f8667E) {
for (int i24 = 0; i24 < i8; i24++) {
int i25 = this.f8757n + (z3 ? (i8 - 1) - i24 : i24);
if (i25 >= gVar.f8785b1) {
break;
}
dVar = gVar.f8784a1[i25];
if (dVar.f8667E) {
break;
}
}
}
dVar = dVar7;
int i26 = 0;
d dVar8 = null;
while (i26 < i8) {
int i27 = z3 ? (i8 - 1) - i26 : i26;
int i28 = this.f8757n + i27;
if (i28 >= gVar.f8785b1) {
return;
}
d dVar9 = gVar.f8784a1[i28];
if (dVar9 == null) {
z5 = z6;
c4 = 3;
} else {
c cVar10 = dVar9.f8671I;
if (i26 == 0) {
dVar9.f(cVar10, this.f8749d, this.h);
}
if (i27 == 0) {
int i29 = gVar.f8763D0;
if (z3) {
f2 = 1.0f;
f4 = 1.0f - gVar.f8768J0;
} else {
f2 = 1.0f;
f4 = gVar.f8768J0;
}
if (this.f8757n == 0) {
i6 = gVar.f8764F0;
z5 = z6;
if (i6 != -1) {
if (z3) {
f6 = gVar.f8770L0;
f4 = f2 - f6;
dVar9.f8702i0 = i6;
dVar9.f8694d0 = f4;
} else {
f5 = gVar.f8770L0;
f4 = f5;
dVar9.f8702i0 = i6;
dVar9.f8694d0 = f4;
}
}
} else {
z5 = z6;
}
if (!z4 || (i6 = gVar.f8766H0) == -1) {
i6 = i29;
dVar9.f8702i0 = i6;
dVar9.f8694d0 = f4;
} else if (z3) {
f6 = gVar.f8772N0;
f4 = f2 - f6;
dVar9.f8702i0 = i6;
dVar9.f8694d0 = f4;
} else {
f5 = gVar.f8772N0;
f4 = f5;
dVar9.f8702i0 = i6;
dVar9.f8694d0 = f4;
}
} else {
z5 = z6;
}
if (i26 == i8 - 1) {
dVar9.f(dVar9.f8672K, this.f8751f, this.f8753j);
}
if (dVar8 != null) {
int i30 = gVar.f8774P0;
c cVar11 = dVar8.f8672K;
cVar10.a(cVar11, i30);
if (i26 == i10) {
int i31 = this.h;
if (cVar10.h()) {
cVar10.h = i31;
}
}
cVar11.a(cVar10, 0);
if (i26 == i11 + 1) {
int i32 = this.f8753j;
if (cVar11.h()) {
cVar11.h = i32;
}
}
}
if (dVar9 != dVar7) {
int i33 = gVar.f8777S0;
c4 = 3;
if (i33 == 3 && dVar.f8667E && dVar9 != dVar && dVar9.f8667E) {
dVar9.f8674M.a(dVar.f8674M, 0);
} else {
c cVar12 = dVar9.J;
if (i33 != 0) {
c cVar13 = dVar9.f8673L;
if (i33 == 1) {
cVar13.a(cVar9, 0);
} else if (z5) {
cVar12.a(this.f8750e, this.i);
cVar13.a(this.f8752g, this.f8754k);
} else {
cVar12.a(cVar8, 0);
cVar13.a(cVar9, 0);
}
} else {
cVar12.a(cVar8, 0);
}
}
} else {
c4 = 3;
}
dVar8 = dVar9;
}
i26++;
z6 = z5;
}
}
public final int c() {
return this.f8746a == 1 ? this.f8756m - this.f8760r.f8775Q0 : this.f8756m;
}
public final int d() {
return this.f8746a == 0 ? this.f8755l - this.f8760r.f8774P0 : this.f8755l;
}
public final void e(int i) {
g gVar;
int i4;
int i5 = this.p;
if (i5 == 0) {
return;
}
int i6 = this.f8758o;
int i7 = i / i5;
int i8 = 0;
while (true) {
gVar = this.f8760r;
if (i8 >= i6 || (i4 = this.f8757n + i8) >= gVar.f8785b1) {
break;
}
d dVar = gVar.f8784a1[i4];
if (this.f8746a == 0) {
if (dVar != null) {
int[] iArr = dVar.f8715p0;
if (iArr[0] == 3 && dVar.f8717r == 0) {
gVar.V(1, i7, iArr[1], dVar.k(), dVar);
}
}
} else if (dVar != null) {
int[] iArr2 = dVar.f8715p0;
if (iArr2[1] == 3 && dVar.f8718s == 0) {
int i9 = iArr2[0];
int i10 = i7;
gVar.V(i9, dVar.q(), 1, i10, dVar);
i7 = i10;
}
}
i8++;
}
this.f8755l = 0;
this.f8756m = 0;
this.f8747b = null;
this.f8748c = 0;
int i11 = this.f8758o;
for (int i12 = 0; i12 < i11; i12++) {
int i13 = this.f8757n + i12;
if (i13 >= gVar.f8785b1) {
return;
}
d dVar2 = gVar.f8784a1[i13];
if (this.f8746a == 0) {
int q4 = dVar2.q();
int i14 = gVar.f8774P0;
if (dVar2.f8700g0 == 8) {
i14 = 0;
}
this.f8755l = q4 + i14 + this.f8755l;
int T3 = gVar.T(dVar2, this.f8759q);
if (this.f8747b == null || this.f8748c < T3) {
this.f8747b = dVar2;
this.f8748c = T3;
this.f8756m = T3;
}
} else {
int U3 = gVar.U(dVar2, this.f8759q);
int T4 = gVar.T(dVar2, this.f8759q);
int i15 = gVar.f8775Q0;
if (dVar2.f8700g0 == 8) {
i15 = 0;
}
this.f8756m = T4 + i15 + this.f8756m;
if (this.f8747b == null || this.f8748c < U3) {
this.f8747b = dVar2;
this.f8748c = U3;
this.f8755l = U3;
}
}
}
}
public final void f(int i, c cVar, c cVar2, c cVar3, c cVar4, int i4, int i5, int i6, int i7, int i8) {
this.f8746a = i;
this.f8749d = cVar;
this.f8750e = cVar2;
this.f8751f = cVar3;
this.f8752g = cVar4;
this.h = i4;
this.i = i5;
this.f8753j = i6;
this.f8754k = i7;
this.f8759q = i8;
}
}

View File

@@ -0,0 +1,322 @@
package w;
import java.util.ArrayList;
import u.C0626c;
import x.C0653b;
/* loaded from: classes.dex */
public final class g extends i {
public int A0;
/* renamed from: B0, reason: collision with root package name */
public C0653b f8761B0;
/* renamed from: C0, reason: collision with root package name */
public androidx.constraintlayout.widget.f f8762C0;
/* renamed from: D0, reason: collision with root package name */
public int f8763D0;
public int E0;
/* renamed from: F0, reason: collision with root package name */
public int f8764F0;
/* renamed from: G0, reason: collision with root package name */
public int f8765G0;
/* renamed from: H0, reason: collision with root package name */
public int f8766H0;
/* renamed from: I0, reason: collision with root package name */
public int f8767I0;
/* renamed from: J0, reason: collision with root package name */
public float f8768J0;
/* renamed from: K0, reason: collision with root package name */
public float f8769K0;
/* renamed from: L0, reason: collision with root package name */
public float f8770L0;
/* renamed from: M0, reason: collision with root package name */
public float f8771M0;
/* renamed from: N0, reason: collision with root package name */
public float f8772N0;
/* renamed from: O0, reason: collision with root package name */
public float f8773O0;
/* renamed from: P0, reason: collision with root package name */
public int f8774P0;
/* renamed from: Q0, reason: collision with root package name */
public int f8775Q0;
/* renamed from: R0, reason: collision with root package name */
public int f8776R0;
/* renamed from: S0, reason: collision with root package name */
public int f8777S0;
/* renamed from: T0, reason: collision with root package name */
public int f8778T0;
/* renamed from: U0, reason: collision with root package name */
public int f8779U0;
/* renamed from: V0, reason: collision with root package name */
public int f8780V0;
/* renamed from: W0, reason: collision with root package name */
public ArrayList f8781W0;
/* renamed from: X0, reason: collision with root package name */
public d[] f8782X0;
public d[] Y0;
/* renamed from: Z0, reason: collision with root package name */
public int[] f8783Z0;
/* renamed from: a1, reason: collision with root package name */
public d[] f8784a1;
/* renamed from: b1, reason: collision with root package name */
public int f8785b1;
/* renamed from: s0, reason: collision with root package name */
public int f8786s0;
/* renamed from: t0, reason: collision with root package name */
public int f8787t0;
/* renamed from: u0, reason: collision with root package name */
public int f8788u0;
/* renamed from: v0, reason: collision with root package name */
public int f8789v0;
/* renamed from: w0, reason: collision with root package name */
public int f8790w0;
/* renamed from: x0, reason: collision with root package name */
public int f8791x0;
/* renamed from: y0, reason: collision with root package name */
public boolean f8792y0;
/* renamed from: z0, reason: collision with root package name */
public int f8793z0;
@Override // w.i
public final void S() {
for (int i = 0; i < this.f8801r0; i++) {
d dVar = this.f8800q0[i];
if (dVar != null) {
dVar.f8668F = true;
}
}
}
public final int T(d dVar, int i) {
d dVar2;
if (dVar != null) {
int[] iArr = dVar.f8715p0;
if (iArr[1] == 3) {
int i4 = dVar.f8718s;
if (i4 != 0) {
if (i4 == 2) {
int i5 = (int) (dVar.f8725z * i);
if (i5 != dVar.k()) {
dVar.f8699g = true;
V(iArr[0], dVar.q(), 1, i5, dVar);
}
return i5;
}
dVar2 = dVar;
if (i4 == 1) {
return dVar2.k();
}
if (i4 == 3) {
return (int) ((dVar2.q() * dVar2.f8684W) + 0.5f);
}
}
} else {
dVar2 = dVar;
}
return dVar2.k();
}
return 0;
}
public final int U(d dVar, int i) {
d dVar2;
if (dVar != null) {
int[] iArr = dVar.f8715p0;
if (iArr[0] == 3) {
int i4 = dVar.f8717r;
if (i4 != 0) {
if (i4 == 2) {
int i5 = (int) (dVar.f8722w * i);
if (i5 != dVar.q()) {
dVar.f8699g = true;
V(1, i5, iArr[1], dVar.k(), dVar);
}
return i5;
}
dVar2 = dVar;
if (i4 == 1) {
return dVar2.q();
}
if (i4 == 3) {
return (int) ((dVar2.k() * dVar2.f8684W) + 0.5f);
}
}
} else {
dVar2 = dVar;
}
return dVar2.q();
}
return 0;
}
public final void V(int i, int i4, int i5, int i6, d dVar) {
androidx.constraintlayout.widget.f fVar;
d dVar2;
while (true) {
fVar = this.f8762C0;
if (fVar != null || (dVar2 = this.f8681T) == null) {
break;
} else {
this.f8762C0 = ((e) dVar2).f8740u0;
}
}
C0653b c0653b = this.f8761B0;
c0653b.f8811a = i;
c0653b.f8812b = i5;
c0653b.f8813c = i4;
c0653b.f8814d = i6;
fVar.b(dVar, c0653b);
dVar.O(c0653b.f8815e);
dVar.L(c0653b.f8816f);
dVar.f8667E = c0653b.h;
dVar.I(c0653b.f8817g);
}
@Override // w.d
public final void b(C0626c c0626c, boolean z3) {
d dVar;
float f2;
int i;
super.b(c0626c, z3);
d dVar2 = this.f8681T;
boolean z4 = dVar2 != null && ((e) dVar2).f8741v0;
int i4 = this.f8778T0;
ArrayList arrayList = this.f8781W0;
if (i4 != 0) {
if (i4 == 1) {
int size = arrayList.size();
int i5 = 0;
while (i5 < size) {
((f) arrayList.get(i5)).b(i5, z4, i5 == size + (-1));
i5++;
}
} else if (i4 != 2) {
if (i4 == 3) {
int size2 = arrayList.size();
int i6 = 0;
while (i6 < size2) {
((f) arrayList.get(i6)).b(i6, z4, i6 == size2 + (-1));
i6++;
}
}
} else if (this.f8783Z0 != null && this.Y0 != null && this.f8782X0 != null) {
for (int i7 = 0; i7 < this.f8785b1; i7++) {
this.f8784a1[i7].D();
}
int[] iArr = this.f8783Z0;
int i8 = iArr[0];
int i9 = iArr[1];
float f4 = this.f8768J0;
d dVar3 = null;
int i10 = 0;
while (i10 < i8) {
if (z4) {
i = (i8 - i10) - 1;
f2 = 1.0f - this.f8768J0;
} else {
f2 = f4;
i = i10;
}
d dVar4 = this.Y0[i];
if (dVar4 != null && dVar4.f8700g0 != 8) {
c cVar = dVar4.f8671I;
if (i10 == 0) {
dVar4.f(cVar, this.f8671I, this.f8790w0);
dVar4.f8702i0 = this.f8763D0;
dVar4.f8694d0 = f2;
}
if (i10 == i8 - 1) {
dVar4.f(dVar4.f8672K, this.f8672K, this.f8791x0);
}
if (i10 > 0 && dVar3 != null) {
int i11 = this.f8774P0;
c cVar2 = dVar3.f8672K;
dVar4.f(cVar, cVar2, i11);
dVar3.f(cVar2, cVar, 0);
}
dVar3 = dVar4;
}
i10++;
f4 = f2;
}
for (int i12 = 0; i12 < i9; i12++) {
d dVar5 = this.f8782X0[i12];
if (dVar5 != null && dVar5.f8700g0 != 8) {
c cVar3 = dVar5.J;
if (i12 == 0) {
dVar5.f(cVar3, this.J, this.f8786s0);
dVar5.f8704j0 = this.E0;
dVar5.f8696e0 = this.f8769K0;
}
if (i12 == i9 - 1) {
dVar5.f(dVar5.f8673L, this.f8673L, this.f8787t0);
}
if (i12 > 0 && dVar3 != null) {
int i13 = this.f8775Q0;
c cVar4 = dVar3.f8673L;
dVar5.f(cVar3, cVar4, i13);
dVar3.f(cVar4, cVar3, 0);
}
dVar3 = dVar5;
}
}
for (int i14 = 0; i14 < i8; i14++) {
for (int i15 = 0; i15 < i9; i15++) {
int i16 = (i15 * i8) + i14;
if (this.f8780V0 == 1) {
i16 = (i14 * i9) + i15;
}
d[] dVarArr = this.f8784a1;
if (i16 < dVarArr.length && (dVar = dVarArr[i16]) != null && dVar.f8700g0 != 8) {
d dVar6 = this.Y0[i14];
d dVar7 = this.f8782X0[i15];
if (dVar != dVar6) {
dVar.f(dVar.f8671I, dVar6.f8671I, 0);
dVar.f(dVar.f8672K, dVar6.f8672K, 0);
}
if (dVar != dVar7) {
dVar.f(dVar.J, dVar7.J, 0);
dVar.f(dVar.f8673L, dVar7.f8673L, 0);
}
}
}
}
}
} else if (arrayList.size() > 0) {
((f) arrayList.get(0)).b(0, z4, true);
}
this.f8792y0 = false;
}
}

View File

@@ -0,0 +1,186 @@
package w;
import java.util.ArrayList;
import u.AbstractC0629f;
import u.C0625b;
import u.C0626c;
import u.C0630g;
/* loaded from: classes.dex */
public final class h extends d {
/* renamed from: q0, reason: collision with root package name */
public float f8794q0 = -1.0f;
/* renamed from: r0, reason: collision with root package name */
public int f8795r0 = -1;
/* renamed from: s0, reason: collision with root package name */
public int f8796s0 = -1;
/* renamed from: t0, reason: collision with root package name */
public c f8797t0 = this.J;
/* renamed from: u0, reason: collision with root package name */
public int f8798u0 = 0;
/* renamed from: v0, reason: collision with root package name */
public boolean f8799v0;
public h() {
this.f8679R.clear();
this.f8679R.add(this.f8797t0);
int length = this.f8678Q.length;
for (int i = 0; i < length; i++) {
this.f8678Q[i] = this.f8797t0;
}
}
@Override // w.d
public final boolean A() {
return this.f8799v0;
}
@Override // w.d
public final boolean B() {
return this.f8799v0;
}
@Override // w.d
public final void Q(C0626c c0626c, boolean z3) {
if (this.f8681T == null) {
return;
}
c cVar = this.f8797t0;
c0626c.getClass();
int n4 = C0626c.n(cVar);
if (this.f8798u0 == 1) {
this.f8686Y = n4;
this.Z = 0;
L(this.f8681T.k());
O(0);
return;
}
this.f8686Y = 0;
this.Z = n4;
O(this.f8681T.q());
L(0);
}
public final void R(int i) {
this.f8797t0.l(i);
this.f8799v0 = true;
}
public final void S(int i) {
if (this.f8798u0 == i) {
return;
}
this.f8798u0 = i;
ArrayList arrayList = this.f8679R;
arrayList.clear();
if (this.f8798u0 == 1) {
this.f8797t0 = this.f8671I;
} else {
this.f8797t0 = this.J;
}
arrayList.add(this.f8797t0);
c[] cVarArr = this.f8678Q;
int length = cVarArr.length;
for (int i4 = 0; i4 < length; i4++) {
cVarArr[i4] = this.f8797t0;
}
}
@Override // w.d
public final void b(C0626c c0626c, boolean z3) {
e eVar = (e) this.f8681T;
if (eVar == null) {
return;
}
Object i = eVar.i(2);
Object i4 = eVar.i(4);
d dVar = this.f8681T;
boolean z4 = dVar != null && dVar.f8715p0[0] == 2;
if (this.f8798u0 == 0) {
i = eVar.i(3);
i4 = eVar.i(5);
d dVar2 = this.f8681T;
z4 = dVar2 != null && dVar2.f8715p0[1] == 2;
}
if (this.f8799v0) {
c cVar = this.f8797t0;
if (cVar.f8658c) {
C0630g k4 = c0626c.k(cVar);
c0626c.d(k4, this.f8797t0.d());
if (this.f8795r0 != -1) {
if (z4) {
c0626c.f(c0626c.k(i4), k4, 0, 5);
}
} else if (this.f8796s0 != -1 && z4) {
C0630g k5 = c0626c.k(i4);
c0626c.f(k4, c0626c.k(i), 0, 5);
c0626c.f(k5, k4, 0, 5);
}
this.f8799v0 = false;
return;
}
}
if (this.f8795r0 != -1) {
C0630g k6 = c0626c.k(this.f8797t0);
c0626c.e(k6, c0626c.k(i), this.f8795r0, 8);
if (z4) {
c0626c.f(c0626c.k(i4), k6, 0, 5);
return;
}
return;
}
if (this.f8796s0 != -1) {
C0630g k7 = c0626c.k(this.f8797t0);
C0630g k8 = c0626c.k(i4);
c0626c.e(k7, k8, -this.f8796s0, 8);
if (z4) {
c0626c.f(k7, c0626c.k(i), 0, 5);
c0626c.f(k8, k7, 0, 5);
return;
}
return;
}
if (this.f8794q0 != -1.0f) {
C0630g k9 = c0626c.k(this.f8797t0);
C0630g k10 = c0626c.k(i4);
float f2 = this.f8794q0;
C0625b l4 = c0626c.l();
l4.f8565d.g(k9, -1.0f);
l4.f8565d.g(k10, f2);
c0626c.c(l4);
}
}
@Override // w.d
public final boolean c() {
return true;
}
@Override // w.d
public final c i(int i) {
int b4 = AbstractC0629f.b(i);
if (b4 != 1) {
if (b4 != 2) {
if (b4 != 3) {
if (b4 != 4) {
return null;
}
}
}
if (this.f8798u0 == 0) {
return this.f8797t0;
}
return null;
}
if (this.f8798u0 == 1) {
return this.f8797t0;
}
return null;
}
}

View File

@@ -0,0 +1,30 @@
package w;
import java.util.ArrayList;
import x.m;
/* loaded from: classes.dex */
public abstract class i extends d {
/* renamed from: q0, reason: collision with root package name */
public d[] f8800q0 = new d[4];
/* renamed from: r0, reason: collision with root package name */
public int f8801r0 = 0;
public final void R(int i, ArrayList arrayList, m mVar) {
for (int i4 = 0; i4 < this.f8801r0; i4++) {
d dVar = this.f8800q0[i4];
ArrayList arrayList2 = mVar.f8839a;
if (!arrayList2.contains(dVar)) {
arrayList2.add(dVar);
}
}
for (int i5 = 0; i5 < this.f8801r0; i5++) {
x.g.b(this.f8800q0[i5], i, arrayList, mVar);
}
}
public void S() {
}
}

View File

@@ -0,0 +1,101 @@
package w;
import u.C0626c;
import u.C0630g;
/* loaded from: classes.dex */
public abstract class j {
/* renamed from: a, reason: collision with root package name */
public static final boolean[] f8802a = new boolean[3];
/* JADX WARN: Code restructure failed: missing block: B:162:0x028e, code lost:
if (r8.f8659d == r6) goto L190;
*/
/* JADX WARN: Code restructure failed: missing block: B:37:0x010c, code lost:
if (r4.f8659d == r8) goto L75;
*/
/* JADX WARN: Removed duplicated region for block: B:263:0x0695 A[ADDED_TO_REGION] */
/* JADX WARN: Removed duplicated region for block: B:269:0x06a1 */
/* JADX WARN: Removed duplicated region for block: B:272:0x06ac */
/* JADX WARN: Removed duplicated region for block: B:275:0x06b5 */
/* JADX WARN: Removed duplicated region for block: B:277:0x06bc */
/* JADX WARN: Removed duplicated region for block: B:282:0x06cc */
/* JADX WARN: Removed duplicated region for block: B:284:0x06d0 A[ADDED_TO_REGION] */
/* JADX WARN: Removed duplicated region for block: B:288:0x06ec A[ADDED_TO_REGION, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:289:0x06b8 */
/* JADX WARN: Removed duplicated region for block: B:290:0x06af */
/* JADX WARN: Removed duplicated region for block: B:31:0x00f4 */
/* JADX WARN: Removed duplicated region for block: B:34:0x0100 */
/* JADX WARN: Removed duplicated region for block: B:39:0x0113 */
/* JADX WARN: Removed duplicated region for block: B:42:0x0116 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static void a(w.e r39, u.C0626c r40, java.util.ArrayList r41, int r42) {
/*
Method dump skipped, instructions count: 1787
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: w.j.a(w.e, u.c, java.util.ArrayList, int):void");
}
public static void b(e eVar, C0626c c0626c, d dVar) {
dVar.f8713o = -1;
dVar.p = -1;
int i = eVar.f8715p0[0];
int[] iArr = dVar.f8715p0;
if (i != 2 && iArr[0] == 4) {
c cVar = dVar.f8671I;
int i4 = cVar.f8662g;
int q4 = eVar.q();
c cVar2 = dVar.f8672K;
int i5 = q4 - cVar2.f8662g;
cVar.i = c0626c.k(cVar);
cVar2.i = c0626c.k(cVar2);
c0626c.d(cVar.i, i4);
c0626c.d(cVar2.i, i5);
dVar.f8713o = 2;
dVar.f8686Y = i4;
int i6 = i5 - i4;
dVar.f8682U = i6;
int i7 = dVar.f8690b0;
if (i6 < i7) {
dVar.f8682U = i7;
}
}
if (eVar.f8715p0[1] == 2 || iArr[1] != 4) {
return;
}
c cVar3 = dVar.J;
int i8 = cVar3.f8662g;
int k4 = eVar.k();
c cVar4 = dVar.f8673L;
int i9 = k4 - cVar4.f8662g;
cVar3.i = c0626c.k(cVar3);
cVar4.i = c0626c.k(cVar4);
c0626c.d(cVar3.i, i8);
c0626c.d(cVar4.i, i9);
if (dVar.f8688a0 > 0 || dVar.f8700g0 == 8) {
c cVar5 = dVar.f8674M;
C0630g k5 = c0626c.k(cVar5);
cVar5.i = k5;
c0626c.d(k5, dVar.f8688a0 + i8);
}
dVar.p = 2;
dVar.Z = i8;
int i10 = i9 - i8;
dVar.f8683V = i10;
int i11 = dVar.f8692c0;
if (i10 < i11) {
dVar.f8683V = i11;
}
}
public static final boolean c(int i, int i4) {
return (i & i4) == i4;
}
}