635 lines
25 KiB
Java
635 lines
25 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Iterator;
|
||
|
import o.C1230Yni;
|
||
|
import o.C17026tNn;
|
||
|
import o.zvH;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class lDK {
|
||
|
private static zvH.Sts e = new zvH.Sts();
|
||
|
private static int b = 0;
|
||
|
private static int d = 0;
|
||
|
|
||
|
public static void c(WqU wqU, zvH.RVV rvv) {
|
||
|
kpn kpnVar;
|
||
|
int i;
|
||
|
int i2;
|
||
|
C17026tNn.LWm lWm = wqU.B[0];
|
||
|
C17026tNn.LWm lWm2 = wqU.B[1];
|
||
|
b = 0;
|
||
|
d = 0;
|
||
|
wqU.t();
|
||
|
ArrayList<C17026tNn> arrayList = ((C16458oZD) wqU).az;
|
||
|
int size = arrayList.size();
|
||
|
for (int i3 = 0; i3 < size; i3++) {
|
||
|
arrayList.get(i3).t();
|
||
|
}
|
||
|
boolean z = wqU.aq;
|
||
|
if (lWm == C17026tNn.LWm.FIXED) {
|
||
|
wqU.a(0, wqU.Z == 8 ? 0 : wqU.ac);
|
||
|
} else {
|
||
|
wqU.r();
|
||
|
}
|
||
|
boolean z2 = false;
|
||
|
boolean z3 = false;
|
||
|
for (int i4 = 0; i4 < size; i4++) {
|
||
|
C17026tNn c17026tNn = arrayList.get(i4);
|
||
|
if (c17026tNn instanceof WAE) {
|
||
|
WAE wae = (WAE) c17026tNn;
|
||
|
if (wae.a == 1) {
|
||
|
if (wae.e != -1) {
|
||
|
int i5 = wae.e;
|
||
|
C1230Yni c1230Yni = wae.c;
|
||
|
c1230Yni.c = i5;
|
||
|
c1230Yni.d = true;
|
||
|
wae.aj = true;
|
||
|
} else if (wae.am == -1 || !wqU.a()) {
|
||
|
if (wqU.a()) {
|
||
|
float f = wae.ai;
|
||
|
int i6 = wqU.Z == 8 ? 0 : wqU.ac;
|
||
|
C1230Yni c1230Yni2 = wae.c;
|
||
|
c1230Yni2.c = (int) ((f * i6) + 0.5f);
|
||
|
c1230Yni2.d = true;
|
||
|
wae.aj = true;
|
||
|
}
|
||
|
} else {
|
||
|
int i7 = (wqU.Z == 8 ? 0 : wqU.ac) - wae.am;
|
||
|
C1230Yni c1230Yni3 = wae.c;
|
||
|
c1230Yni3.c = i7;
|
||
|
c1230Yni3.d = true;
|
||
|
wae.aj = true;
|
||
|
}
|
||
|
z2 = true;
|
||
|
}
|
||
|
} else if (c17026tNn instanceof kpn) {
|
||
|
int i8 = ((kpn) c17026tNn).c;
|
||
|
if (i8 == 0 || i8 == 1) {
|
||
|
z3 = true;
|
||
|
} else if (i8 != 2) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
if (z2) {
|
||
|
for (int i9 = 0; i9 < size; i9++) {
|
||
|
C17026tNn c17026tNn2 = arrayList.get(i9);
|
||
|
if (c17026tNn2 instanceof WAE) {
|
||
|
WAE wae2 = (WAE) c17026tNn2;
|
||
|
if (wae2.a == 1) {
|
||
|
b(0, wae2, rvv, z);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
b(0, wqU, rvv, z);
|
||
|
if (z3) {
|
||
|
for (int i10 = 0; i10 < size; i10++) {
|
||
|
C17026tNn c17026tNn3 = arrayList.get(i10);
|
||
|
if (c17026tNn3 instanceof kpn) {
|
||
|
kpn kpnVar2 = (kpn) c17026tNn3;
|
||
|
int i11 = kpnVar2.c;
|
||
|
if (i11 == 0 || i11 == 1) {
|
||
|
if (kpnVar2.e()) {
|
||
|
b(1, kpnVar2, rvv, z);
|
||
|
}
|
||
|
} else if (i11 != 2) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
if (lWm2 == C17026tNn.LWm.FIXED) {
|
||
|
wqU.c(0, wqU.Z == 8 ? 0 : wqU.p);
|
||
|
} else {
|
||
|
wqU.p();
|
||
|
}
|
||
|
boolean z4 = false;
|
||
|
boolean z5 = false;
|
||
|
for (int i12 = 0; i12 < size; i12++) {
|
||
|
C17026tNn c17026tNn4 = arrayList.get(i12);
|
||
|
if (c17026tNn4 instanceof WAE) {
|
||
|
WAE wae3 = (WAE) c17026tNn4;
|
||
|
if (wae3.a == 0) {
|
||
|
if (wae3.e != -1) {
|
||
|
int i13 = wae3.e;
|
||
|
C1230Yni c1230Yni4 = wae3.c;
|
||
|
c1230Yni4.c = i13;
|
||
|
c1230Yni4.d = true;
|
||
|
wae3.aj = true;
|
||
|
} else if (wae3.am == -1 || !wqU.d()) {
|
||
|
if (wqU.d()) {
|
||
|
int i14 = (int) ((wae3.ai * (wqU.Z == 8 ? 0 : wqU.p)) + 0.5f);
|
||
|
C1230Yni c1230Yni5 = wae3.c;
|
||
|
c1230Yni5.c = i14;
|
||
|
c1230Yni5.d = true;
|
||
|
wae3.aj = true;
|
||
|
}
|
||
|
} else {
|
||
|
int i15 = (wqU.Z == 8 ? 0 : wqU.p) - wae3.am;
|
||
|
C1230Yni c1230Yni6 = wae3.c;
|
||
|
c1230Yni6.c = i15;
|
||
|
c1230Yni6.d = true;
|
||
|
wae3.aj = true;
|
||
|
}
|
||
|
z4 = true;
|
||
|
}
|
||
|
} else if ((c17026tNn4 instanceof kpn) && (i2 = ((kpn) c17026tNn4).c) != 0 && i2 != 1 && (i2 == 2 || i2 == 3)) {
|
||
|
z5 = true;
|
||
|
}
|
||
|
}
|
||
|
if (z4) {
|
||
|
for (int i16 = 0; i16 < size; i16++) {
|
||
|
C17026tNn c17026tNn5 = arrayList.get(i16);
|
||
|
if (c17026tNn5 instanceof WAE) {
|
||
|
WAE wae4 = (WAE) c17026tNn5;
|
||
|
if (wae4.a == 0) {
|
||
|
b(1, wae4, rvv);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
b(0, wqU, rvv);
|
||
|
if (z5) {
|
||
|
for (int i17 = 0; i17 < size; i17++) {
|
||
|
C17026tNn c17026tNn6 = arrayList.get(i17);
|
||
|
if ((c17026tNn6 instanceof kpn) && (i = (kpnVar = (kpn) c17026tNn6).c) != 0 && i != 1) {
|
||
|
if ((i == 2 || i == 3) && kpnVar.e()) {
|
||
|
b(1, kpnVar, rvv);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
for (int i18 = 0; i18 < size; i18++) {
|
||
|
C17026tNn c17026tNn7 = arrayList.get(i18);
|
||
|
if (c17026tNn7.O && c17026tNn7.Z != 8 && e(c17026tNn7)) {
|
||
|
WqU.e(c17026tNn7, rvv, e);
|
||
|
if (!(c17026tNn7 instanceof WAE)) {
|
||
|
b(0, c17026tNn7, rvv, z);
|
||
|
b(0, c17026tNn7, rvv);
|
||
|
} else if (((WAE) c17026tNn7).a == 0) {
|
||
|
b(0, c17026tNn7, rvv);
|
||
|
} else {
|
||
|
b(0, c17026tNn7, rvv, z);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:30:0x005d, code lost:
|
||
|
|
||
|
if (r7.b(0, r7.Z == 8 ? 0 : r7.ac) == false) goto L34;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:55:0x0098, code lost:
|
||
|
|
||
|
if (r7.b(1, r7.Z != 8 ? 0 : r7.p) != false) goto L61;
|
||
|
*/
|
||
|
/* JADX WARN: Removed duplicated region for block: B:53:0x0090 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:56:0x0092 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:60:0x00a3 A[ADDED_TO_REGION] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:65:0x00aa A[ADDED_TO_REGION] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:69:? A[ADDED_TO_REGION, RETURN, SYNTHETIC] */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static boolean e(o.C17026tNn r7) {
|
||
|
/*
|
||
|
o.tNn$LWm[] r0 = r7.B
|
||
|
r1 = 0
|
||
|
r0 = r0[r1]
|
||
|
o.tNn$LWm[] r2 = r7.B
|
||
|
r3 = 1
|
||
|
r2 = r2[r3]
|
||
|
o.tNn r4 = r7.S
|
||
|
if (r4 == 0) goto L13
|
||
|
o.tNn r4 = r7.S
|
||
|
o.WqU r4 = (o.WqU) r4
|
||
|
goto L14
|
||
|
L13:
|
||
|
r4 = 0
|
||
|
L14:
|
||
|
if (r4 == 0) goto L1c
|
||
|
o.tNn$LWm[] r5 = r4.B
|
||
|
r5 = r5[r1]
|
||
|
o.tNn$LWm r5 = o.C17026tNn.LWm.FIXED
|
||
|
L1c:
|
||
|
if (r4 == 0) goto L24
|
||
|
o.tNn$LWm[] r4 = r4.B
|
||
|
r4 = r4[r3]
|
||
|
o.tNn$LWm r4 = o.C17026tNn.LWm.FIXED
|
||
|
L24:
|
||
|
o.tNn$LWm r4 = o.C17026tNn.LWm.FIXED
|
||
|
r5 = 8
|
||
|
r6 = 0
|
||
|
if (r0 == r4) goto L61
|
||
|
boolean r4 = r7.a()
|
||
|
if (r4 != 0) goto L61
|
||
|
o.tNn$LWm r4 = o.C17026tNn.LWm.WRAP_CONTENT
|
||
|
if (r0 == r4) goto L61
|
||
|
o.tNn$LWm r4 = o.C17026tNn.LWm.MATCH_CONSTRAINT
|
||
|
if (r0 != r4) goto L49
|
||
|
int r4 = r7.H
|
||
|
if (r4 != 0) goto L49
|
||
|
float r4 = r7.s
|
||
|
int r4 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))
|
||
|
if (r4 != 0) goto L49
|
||
|
boolean r4 = r7.d(r1)
|
||
|
if (r4 != 0) goto L61
|
||
|
L49:
|
||
|
o.tNn$LWm r4 = o.C17026tNn.LWm.MATCH_CONSTRAINT
|
||
|
if (r0 != r4) goto L5f
|
||
|
int r0 = r7.H
|
||
|
if (r0 != r3) goto L5f
|
||
|
int r0 = r7.Z
|
||
|
if (r0 != r5) goto L57
|
||
|
r0 = r1
|
||
|
goto L59
|
||
|
L57:
|
||
|
int r0 = r7.ac
|
||
|
L59:
|
||
|
boolean r0 = r7.b(r1, r0)
|
||
|
if (r0 != 0) goto L61
|
||
|
L5f:
|
||
|
r0 = r1
|
||
|
goto L62
|
||
|
L61:
|
||
|
r0 = r3
|
||
|
L62:
|
||
|
o.tNn$LWm r4 = o.C17026tNn.LWm.FIXED
|
||
|
if (r2 == r4) goto L9c
|
||
|
boolean r4 = r7.d()
|
||
|
if (r4 != 0) goto L9c
|
||
|
o.tNn$LWm r4 = o.C17026tNn.LWm.WRAP_CONTENT
|
||
|
if (r2 == r4) goto L9c
|
||
|
o.tNn$LWm r4 = o.C17026tNn.LWm.MATCH_CONSTRAINT
|
||
|
if (r2 != r4) goto L84
|
||
|
int r4 = r7.I
|
||
|
if (r4 != 0) goto L84
|
||
|
float r4 = r7.s
|
||
|
int r4 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))
|
||
|
if (r4 != 0) goto L84
|
||
|
boolean r4 = r7.d(r3)
|
||
|
if (r4 != 0) goto L9c
|
||
|
L84:
|
||
|
o.tNn$LWm r4 = o.C17026tNn.LWm.MATCH_CONSTRAINT
|
||
|
if (r2 != r4) goto L9a
|
||
|
int r2 = r7.I
|
||
|
if (r2 != r3) goto L9a
|
||
|
int r2 = r7.Z
|
||
|
if (r2 != r5) goto L92
|
||
|
r2 = r1
|
||
|
goto L94
|
||
|
L92:
|
||
|
int r2 = r7.p
|
||
|
L94:
|
||
|
boolean r2 = r7.b(r3, r2)
|
||
|
if (r2 != 0) goto L9c
|
||
|
L9a:
|
||
|
r2 = r1
|
||
|
goto L9d
|
||
|
L9c:
|
||
|
r2 = r3
|
||
|
L9d:
|
||
|
float r7 = r7.s
|
||
|
int r7 = (r7 > r6 ? 1 : (r7 == r6 ? 0 : -1))
|
||
|
if (r7 <= 0) goto La8
|
||
|
if (r0 != 0) goto La7
|
||
|
if (r2 == 0) goto La8
|
||
|
La7:
|
||
|
return r3
|
||
|
La8:
|
||
|
if (r0 == 0) goto Lad
|
||
|
if (r2 == 0) goto Lad
|
||
|
r1 = r3
|
||
|
Lad:
|
||
|
return r1
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.lDK.e(o.tNn):boolean");
|
||
|
}
|
||
|
|
||
|
private static void b(int i, C17026tNn c17026tNn, zvH.RVV rvv, boolean z) {
|
||
|
if (c17026tNn.j) {
|
||
|
return;
|
||
|
}
|
||
|
boolean z2 = true;
|
||
|
b++;
|
||
|
if (!(c17026tNn instanceof WqU) && c17026tNn.O && c17026tNn.Z != 8 && e(c17026tNn)) {
|
||
|
WqU.e(c17026tNn, rvv, new zvH.Sts());
|
||
|
}
|
||
|
C1230Yni e2 = c17026tNn.e(C1230Yni.HBt.LEFT);
|
||
|
C1230Yni e3 = c17026tNn.e(C1230Yni.HBt.RIGHT);
|
||
|
int i2 = !e2.d ? 0 : e2.c;
|
||
|
int i3 = !e3.d ? 0 : e3.c;
|
||
|
if (e2.e != null && e2.d) {
|
||
|
Iterator<C1230Yni> it = e2.e.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
C1230Yni next = it.next();
|
||
|
C17026tNn c17026tNn2 = next.i;
|
||
|
int i4 = i + 1;
|
||
|
boolean e4 = e(c17026tNn2);
|
||
|
if (c17026tNn2.O && c17026tNn2.Z != 8 && e4) {
|
||
|
WqU.e(c17026tNn2, rvv, new zvH.Sts());
|
||
|
}
|
||
|
boolean z3 = ((next == c17026tNn2.D && c17026tNn2.X.f != null && c17026tNn2.X.f.d) || (next == c17026tNn2.X && c17026tNn2.D.f != null && c17026tNn2.D.f.d)) ? z2 : false;
|
||
|
if (c17026tNn2.B[0] == C17026tNn.LWm.MATCH_CONSTRAINT && !e4) {
|
||
|
if (c17026tNn2.B[0] == C17026tNn.LWm.MATCH_CONSTRAINT && c17026tNn2.E >= 0 && c17026tNn2.L >= 0 && ((c17026tNn2.Z == 8 || (c17026tNn2.H == 0 && c17026tNn2.s == BitmapDescriptorFactory.HUE_RED)) && !c17026tNn2.o() && !c17026tNn2.w && z3 && !c17026tNn2.o())) {
|
||
|
e(i4, c17026tNn, rvv, c17026tNn2, z);
|
||
|
}
|
||
|
} else if (!c17026tNn2.O || c17026tNn2.Z == 8) {
|
||
|
if (next == c17026tNn2.D && c17026tNn2.X.f == null) {
|
||
|
int e5 = c17026tNn2.D.e() + i2;
|
||
|
c17026tNn2.a(e5, (c17026tNn2.Z == 8 ? 0 : c17026tNn2.ac) + e5);
|
||
|
b(i4, c17026tNn2, rvv, z);
|
||
|
} else if (next == c17026tNn2.X && c17026tNn2.D.f == null) {
|
||
|
int e6 = i2 - c17026tNn2.X.e();
|
||
|
c17026tNn2.a(e6 - (c17026tNn2.Z == 8 ? 0 : c17026tNn2.ac), e6);
|
||
|
b(i4, c17026tNn2, rvv, z);
|
||
|
} else if (z3 && !c17026tNn2.o()) {
|
||
|
d(i4, rvv, c17026tNn2, z);
|
||
|
}
|
||
|
}
|
||
|
z2 = true;
|
||
|
}
|
||
|
}
|
||
|
if (c17026tNn instanceof WAE) {
|
||
|
return;
|
||
|
}
|
||
|
if (e3.e != null && e3.d) {
|
||
|
Iterator<C1230Yni> it2 = e3.e.iterator();
|
||
|
while (it2.hasNext()) {
|
||
|
C1230Yni next2 = it2.next();
|
||
|
C17026tNn c17026tNn3 = next2.i;
|
||
|
int i5 = i + 1;
|
||
|
boolean e7 = e(c17026tNn3);
|
||
|
if (c17026tNn3.O && c17026tNn3.Z != 8 && e7) {
|
||
|
WqU.e(c17026tNn3, rvv, new zvH.Sts());
|
||
|
}
|
||
|
boolean z4 = (next2 == c17026tNn3.D && c17026tNn3.X.f != null && c17026tNn3.X.f.d) || (next2 == c17026tNn3.X && c17026tNn3.D.f != null && c17026tNn3.D.f.d);
|
||
|
if (c17026tNn3.B[0] == C17026tNn.LWm.MATCH_CONSTRAINT && !e7) {
|
||
|
if (c17026tNn3.B[0] == C17026tNn.LWm.MATCH_CONSTRAINT) {
|
||
|
if (c17026tNn3.E >= 0) {
|
||
|
if (c17026tNn3.L >= 0) {
|
||
|
if (c17026tNn3.Z != 8) {
|
||
|
if (c17026tNn3.H == 0 && c17026tNn3.s == BitmapDescriptorFactory.HUE_RED) {
|
||
|
}
|
||
|
}
|
||
|
if (!c17026tNn3.o() && !c17026tNn3.w && z4 && !c17026tNn3.o()) {
|
||
|
e(i5, c17026tNn, rvv, c17026tNn3, z);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else if (!c17026tNn3.O || c17026tNn3.Z == 8) {
|
||
|
if (next2 == c17026tNn3.D && c17026tNn3.X.f == null) {
|
||
|
int e8 = c17026tNn3.D.e() + i3;
|
||
|
c17026tNn3.a(e8, (c17026tNn3.Z == 8 ? 0 : c17026tNn3.ac) + e8);
|
||
|
b(i5, c17026tNn3, rvv, z);
|
||
|
} else if (next2 == c17026tNn3.X && c17026tNn3.D.f == null) {
|
||
|
int e9 = i3 - c17026tNn3.X.e();
|
||
|
c17026tNn3.a(e9 - (c17026tNn3.Z == 8 ? 0 : c17026tNn3.ac), e9);
|
||
|
b(i5, c17026tNn3, rvv, z);
|
||
|
} else if (z4 && !c17026tNn3.o()) {
|
||
|
d(i5, rvv, c17026tNn3, z);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
c17026tNn.j = true;
|
||
|
}
|
||
|
|
||
|
private static void d(int i, zvH.RVV rvv, C17026tNn c17026tNn, boolean z) {
|
||
|
float f = c17026tNn.u;
|
||
|
C1230Yni c1230Yni = c17026tNn.D.f;
|
||
|
int i2 = !c1230Yni.d ? 0 : c1230Yni.c;
|
||
|
C1230Yni c1230Yni2 = c17026tNn.X.f;
|
||
|
int i3 = !c1230Yni2.d ? 0 : c1230Yni2.c;
|
||
|
int e2 = c17026tNn.D.e();
|
||
|
int e3 = c17026tNn.X.e();
|
||
|
if (i2 == i3) {
|
||
|
f = 0.5f;
|
||
|
} else {
|
||
|
i2 += e2;
|
||
|
i3 -= e3;
|
||
|
}
|
||
|
int i4 = c17026tNn.Z != 8 ? c17026tNn.ac : 0;
|
||
|
int i5 = (i3 - i2) - i4;
|
||
|
if (i2 > i3) {
|
||
|
i5 = (i2 - i3) - i4;
|
||
|
}
|
||
|
int i6 = ((int) (i5 > 0 ? (f * i5) + 0.5f : f * i5)) + i2;
|
||
|
int i7 = i6 + i4;
|
||
|
if (i2 > i3) {
|
||
|
i7 = i6 - i4;
|
||
|
}
|
||
|
c17026tNn.a(i6, i7);
|
||
|
b(i + 1, c17026tNn, rvv, z);
|
||
|
}
|
||
|
|
||
|
private static void e(int i, C17026tNn c17026tNn, zvH.RVV rvv, C17026tNn c17026tNn2, boolean z) {
|
||
|
float f = c17026tNn2.u;
|
||
|
C1230Yni c1230Yni = c17026tNn2.D.f;
|
||
|
int i2 = 0;
|
||
|
int e2 = (!c1230Yni.d ? 0 : c1230Yni.c) + c17026tNn2.D.e();
|
||
|
C1230Yni c1230Yni2 = c17026tNn2.X.f;
|
||
|
int e3 = (!c1230Yni2.d ? 0 : c1230Yni2.c) - c17026tNn2.X.e();
|
||
|
if (e3 >= e2) {
|
||
|
int i3 = c17026tNn2.Z == 8 ? 0 : c17026tNn2.ac;
|
||
|
if (c17026tNn2.Z != 8) {
|
||
|
if (c17026tNn2.H == 2) {
|
||
|
if (c17026tNn instanceof WqU) {
|
||
|
if (c17026tNn.Z != 8) {
|
||
|
i2 = c17026tNn.ac;
|
||
|
}
|
||
|
} else {
|
||
|
C17026tNn c17026tNn3 = c17026tNn.S;
|
||
|
if (c17026tNn3.Z != 8) {
|
||
|
i2 = c17026tNn3.ac;
|
||
|
}
|
||
|
}
|
||
|
i3 = (int) (c17026tNn2.u * 0.5f * i2);
|
||
|
} else if (c17026tNn2.H == 0) {
|
||
|
i3 = e3 - e2;
|
||
|
}
|
||
|
i3 = Math.max(c17026tNn2.L, i3);
|
||
|
if (c17026tNn2.E > 0) {
|
||
|
i3 = Math.min(c17026tNn2.E, i3);
|
||
|
}
|
||
|
}
|
||
|
int i4 = e2 + ((int) ((f * ((e3 - e2) - i3)) + 0.5f));
|
||
|
c17026tNn2.a(i4, i3 + i4);
|
||
|
b(i + 1, c17026tNn2, rvv, z);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static void c(int i, zvH.RVV rvv, C17026tNn c17026tNn) {
|
||
|
float f = c17026tNn.T;
|
||
|
C1230Yni c1230Yni = c17026tNn.V.f;
|
||
|
int i2 = !c1230Yni.d ? 0 : c1230Yni.c;
|
||
|
C1230Yni c1230Yni2 = c17026tNn.n.f;
|
||
|
int i3 = !c1230Yni2.d ? 0 : c1230Yni2.c;
|
||
|
int e2 = c17026tNn.V.e();
|
||
|
int e3 = c17026tNn.n.e();
|
||
|
if (i2 == i3) {
|
||
|
f = 0.5f;
|
||
|
} else {
|
||
|
i2 += e2;
|
||
|
i3 -= e3;
|
||
|
}
|
||
|
int i4 = c17026tNn.Z != 8 ? c17026tNn.p : 0;
|
||
|
int i5 = (i3 - i2) - i4;
|
||
|
if (i2 > i3) {
|
||
|
i5 = (i2 - i3) - i4;
|
||
|
}
|
||
|
int i6 = (int) (i5 > 0 ? (f * i5) + 0.5f : f * i5);
|
||
|
int i7 = i2 + i6;
|
||
|
int i8 = i7 + i4;
|
||
|
if (i2 > i3) {
|
||
|
i7 = i2 - i6;
|
||
|
i8 = i7 - i4;
|
||
|
}
|
||
|
c17026tNn.c(i7, i8);
|
||
|
b(i + 1, c17026tNn, rvv);
|
||
|
}
|
||
|
|
||
|
private static void d(int i, C17026tNn c17026tNn, zvH.RVV rvv, C17026tNn c17026tNn2) {
|
||
|
float f = c17026tNn2.T;
|
||
|
C1230Yni c1230Yni = c17026tNn2.V.f;
|
||
|
int i2 = 0;
|
||
|
int e2 = (!c1230Yni.d ? 0 : c1230Yni.c) + c17026tNn2.V.e();
|
||
|
C1230Yni c1230Yni2 = c17026tNn2.n.f;
|
||
|
int e3 = (!c1230Yni2.d ? 0 : c1230Yni2.c) - c17026tNn2.n.e();
|
||
|
if (e3 >= e2) {
|
||
|
int i3 = c17026tNn2.Z == 8 ? 0 : c17026tNn2.p;
|
||
|
if (c17026tNn2.Z != 8) {
|
||
|
if (c17026tNn2.I == 2) {
|
||
|
if (c17026tNn instanceof WqU) {
|
||
|
if (c17026tNn.Z != 8) {
|
||
|
i2 = c17026tNn.p;
|
||
|
}
|
||
|
} else {
|
||
|
C17026tNn c17026tNn3 = c17026tNn.S;
|
||
|
if (c17026tNn3.Z != 8) {
|
||
|
i2 = c17026tNn3.p;
|
||
|
}
|
||
|
}
|
||
|
i3 = (int) (f * 0.5f * i2);
|
||
|
} else if (c17026tNn2.I == 0) {
|
||
|
i3 = e3 - e2;
|
||
|
}
|
||
|
i3 = Math.max(c17026tNn2.N, i3);
|
||
|
if (c17026tNn2.F > 0) {
|
||
|
i3 = Math.min(c17026tNn2.F, i3);
|
||
|
}
|
||
|
}
|
||
|
int i4 = e2 + ((int) ((f * ((e3 - e2) - i3)) + 0.5f));
|
||
|
c17026tNn2.c(i4, i3 + i4);
|
||
|
b(i + 1, c17026tNn2, rvv);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static void b(int i, C17026tNn c17026tNn, zvH.RVV rvv) {
|
||
|
if (c17026tNn.al) {
|
||
|
return;
|
||
|
}
|
||
|
d++;
|
||
|
if (!(c17026tNn instanceof WqU) && c17026tNn.O && c17026tNn.Z != 8 && e(c17026tNn)) {
|
||
|
WqU.e(c17026tNn, rvv, new zvH.Sts());
|
||
|
}
|
||
|
C1230Yni e2 = c17026tNn.e(C1230Yni.HBt.TOP);
|
||
|
C1230Yni e3 = c17026tNn.e(C1230Yni.HBt.BOTTOM);
|
||
|
int i2 = !e2.d ? 0 : e2.c;
|
||
|
int i3 = !e3.d ? 0 : e3.c;
|
||
|
if (e2.e != null && e2.d) {
|
||
|
Iterator<C1230Yni> it = e2.e.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
C1230Yni next = it.next();
|
||
|
C17026tNn c17026tNn2 = next.i;
|
||
|
int i4 = i + 1;
|
||
|
boolean e4 = e(c17026tNn2);
|
||
|
if (c17026tNn2.O && c17026tNn2.Z != 8 && e4) {
|
||
|
WqU.e(c17026tNn2, rvv, new zvH.Sts());
|
||
|
}
|
||
|
boolean z = (next == c17026tNn2.V && c17026tNn2.n.f != null && c17026tNn2.n.f.d) || (next == c17026tNn2.n && c17026tNn2.V.f != null && c17026tNn2.V.f.d);
|
||
|
if (c17026tNn2.B[1] == C17026tNn.LWm.MATCH_CONSTRAINT && !e4) {
|
||
|
if (c17026tNn2.B[1] == C17026tNn.LWm.MATCH_CONSTRAINT && c17026tNn2.F >= 0 && c17026tNn2.N >= 0 && (c17026tNn2.Z == 8 || (c17026tNn2.I == 0 && c17026tNn2.s == BitmapDescriptorFactory.HUE_RED))) {
|
||
|
if (!c17026tNn2.k() && !c17026tNn2.w && z && !c17026tNn2.k()) {
|
||
|
d(i4, c17026tNn, rvv, c17026tNn2);
|
||
|
}
|
||
|
}
|
||
|
} else if (!c17026tNn2.O || c17026tNn2.Z == 8) {
|
||
|
if (next == c17026tNn2.V && c17026tNn2.n.f == null) {
|
||
|
int e5 = c17026tNn2.V.e() + i2;
|
||
|
c17026tNn2.c(e5, (c17026tNn2.Z == 8 ? 0 : c17026tNn2.p) + e5);
|
||
|
b(i4, c17026tNn2, rvv);
|
||
|
} else if (next == c17026tNn2.n && c17026tNn2.V.f == null) {
|
||
|
int e6 = i2 - c17026tNn2.n.e();
|
||
|
c17026tNn2.c(e6 - (c17026tNn2.Z == 8 ? 0 : c17026tNn2.p), e6);
|
||
|
b(i4, c17026tNn2, rvv);
|
||
|
} else if (z && !c17026tNn2.k()) {
|
||
|
c(i4, rvv, c17026tNn2);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
if (c17026tNn instanceof WAE) {
|
||
|
return;
|
||
|
}
|
||
|
if (e3.e != null && e3.d) {
|
||
|
Iterator<C1230Yni> it2 = e3.e.iterator();
|
||
|
while (it2.hasNext()) {
|
||
|
C1230Yni next2 = it2.next();
|
||
|
C17026tNn c17026tNn3 = next2.i;
|
||
|
int i5 = i + 1;
|
||
|
boolean e7 = e(c17026tNn3);
|
||
|
if (c17026tNn3.O && c17026tNn3.Z != 8 && e7) {
|
||
|
WqU.e(c17026tNn3, rvv, new zvH.Sts());
|
||
|
}
|
||
|
boolean z2 = (next2 == c17026tNn3.V && c17026tNn3.n.f != null && c17026tNn3.n.f.d) || (next2 == c17026tNn3.n && c17026tNn3.V.f != null && c17026tNn3.V.f.d);
|
||
|
if (c17026tNn3.B[1] == C17026tNn.LWm.MATCH_CONSTRAINT && !e7) {
|
||
|
if (c17026tNn3.B[1] == C17026tNn.LWm.MATCH_CONSTRAINT && c17026tNn3.F >= 0 && c17026tNn3.N >= 0 && (c17026tNn3.Z == 8 || (c17026tNn3.I == 0 && c17026tNn3.s == BitmapDescriptorFactory.HUE_RED))) {
|
||
|
if (!c17026tNn3.k() && !c17026tNn3.w && z2 && !c17026tNn3.k()) {
|
||
|
d(i5, c17026tNn, rvv, c17026tNn3);
|
||
|
}
|
||
|
}
|
||
|
} else if (!c17026tNn3.O || c17026tNn3.Z == 8) {
|
||
|
if (next2 == c17026tNn3.V && c17026tNn3.n.f == null) {
|
||
|
int e8 = c17026tNn3.V.e() + i3;
|
||
|
c17026tNn3.c(e8, (c17026tNn3.Z == 8 ? 0 : c17026tNn3.p) + e8);
|
||
|
b(i5, c17026tNn3, rvv);
|
||
|
} else if (next2 == c17026tNn3.n && c17026tNn3.V.f == null) {
|
||
|
int e9 = i3 - c17026tNn3.n.e();
|
||
|
c17026tNn3.c(e9 - (c17026tNn3.Z == 8 ? 0 : c17026tNn3.p), e9);
|
||
|
b(i5, c17026tNn3, rvv);
|
||
|
} else if (z2 && !c17026tNn3.k()) {
|
||
|
c(i5, rvv, c17026tNn3);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
C1230Yni e10 = c17026tNn.e(C1230Yni.HBt.BASELINE);
|
||
|
if (e10.e != null && e10.d) {
|
||
|
int i6 = !e10.d ? 0 : e10.c;
|
||
|
Iterator<C1230Yni> it3 = e10.e.iterator();
|
||
|
while (it3.hasNext()) {
|
||
|
C1230Yni next3 = it3.next();
|
||
|
C17026tNn c17026tNn4 = next3.i;
|
||
|
int i7 = i + 1;
|
||
|
boolean e11 = e(c17026tNn4);
|
||
|
if (c17026tNn4.O && c17026tNn4.Z != 8 && e11) {
|
||
|
WqU.e(c17026tNn4, rvv, new zvH.Sts());
|
||
|
}
|
||
|
if (c17026tNn4.B[1] != C17026tNn.LWm.MATCH_CONSTRAINT || e11) {
|
||
|
if (!c17026tNn4.O || c17026tNn4.Z == 8) {
|
||
|
if (next3 == c17026tNn4.f9277o) {
|
||
|
c17026tNn4.a(next3.e() + i6);
|
||
|
b(i7, c17026tNn4, rvv);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
c17026tNn.al = true;
|
||
|
}
|
||
|
}
|