367 lines
12 KiB
Java
367 lines
12 KiB
Java
package o;
|
|
|
|
import o.Bgk;
|
|
import o.C1230Yni;
|
|
import o.C17026tNn;
|
|
import o.KMk;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class Vlp extends Bgk {
|
|
private static int[] a = new int[2];
|
|
|
|
public Vlp(C17026tNn c17026tNn) {
|
|
super(c17026tNn);
|
|
this.f8108o.h = KMk.LWm.LEFT;
|
|
this.c.h = KMk.LWm.RIGHT;
|
|
this.f = 0;
|
|
}
|
|
|
|
public final String toString() {
|
|
StringBuilder sb = new StringBuilder("HorizontalRun ");
|
|
sb.append(this.l.r);
|
|
return sb.toString();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.Bgk
|
|
public final void e() {
|
|
this.h = null;
|
|
this.f8108o.e();
|
|
this.c.e();
|
|
this.e.e();
|
|
this.j = false;
|
|
}
|
|
|
|
public final void i() {
|
|
this.j = false;
|
|
this.f8108o.e();
|
|
this.f8108o.j = false;
|
|
this.c.e();
|
|
this.c.j = false;
|
|
this.e.j = false;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.Bgk
|
|
public final boolean d() {
|
|
return this.d != C17026tNn.LWm.MATCH_CONSTRAINT || this.l.H == 0;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.Bgk
|
|
public final void a() {
|
|
C17026tNn c17026tNn;
|
|
C17026tNn c17026tNn2;
|
|
if (this.l.ae) {
|
|
FgJ fgJ = this.e;
|
|
C17026tNn c17026tNn3 = this.l;
|
|
fgJ.d(c17026tNn3.Z == 8 ? 0 : c17026tNn3.ac);
|
|
}
|
|
if (!this.e.j) {
|
|
this.d = this.l.B[0];
|
|
if (this.d != C17026tNn.LWm.MATCH_CONSTRAINT) {
|
|
if (this.d != C17026tNn.LWm.MATCH_PARENT || (c17026tNn2 = this.l.S) == null || (c17026tNn2.B[0] != C17026tNn.LWm.FIXED && c17026tNn2.B[0] != C17026tNn.LWm.MATCH_PARENT)) {
|
|
if (this.d == C17026tNn.LWm.FIXED) {
|
|
FgJ fgJ2 = this.e;
|
|
C17026tNn c17026tNn4 = this.l;
|
|
fgJ2.d(c17026tNn4.Z == 8 ? 0 : c17026tNn4.ac);
|
|
}
|
|
} else {
|
|
int i = c17026tNn2.Z != 8 ? c17026tNn2.ac : 0;
|
|
int e = this.l.D.e();
|
|
int e2 = this.l.X.e();
|
|
KMk kMk = this.f8108o;
|
|
KMk kMk2 = c17026tNn2.h.f8108o;
|
|
int e3 = this.l.D.e();
|
|
kMk.i.add(kMk2);
|
|
kMk.c = e3;
|
|
kMk2.d.add(kMk);
|
|
KMk kMk3 = this.c;
|
|
KMk kMk4 = c17026tNn2.h.c;
|
|
int i2 = -this.l.X.e();
|
|
kMk3.i.add(kMk4);
|
|
kMk3.c = i2;
|
|
kMk4.d.add(kMk3);
|
|
this.e.d((i - e) - e2);
|
|
return;
|
|
}
|
|
}
|
|
} else if (this.d == C17026tNn.LWm.MATCH_PARENT && (c17026tNn = this.l.S) != null && (c17026tNn.B[0] == C17026tNn.LWm.FIXED || c17026tNn.B[0] == C17026tNn.LWm.MATCH_PARENT)) {
|
|
KMk kMk5 = this.f8108o;
|
|
KMk kMk6 = c17026tNn.h.f8108o;
|
|
int e4 = this.l.D.e();
|
|
kMk5.i.add(kMk6);
|
|
kMk5.c = e4;
|
|
kMk6.d.add(kMk5);
|
|
KMk kMk7 = this.c;
|
|
KMk kMk8 = c17026tNn.h.c;
|
|
int i3 = -this.l.X.e();
|
|
kMk7.i.add(kMk8);
|
|
kMk7.c = i3;
|
|
kMk8.d.add(kMk7);
|
|
return;
|
|
}
|
|
if (this.e.j && this.l.ae) {
|
|
if (this.l.C[0].f != null && this.l.C[1].f != null) {
|
|
if (this.l.o()) {
|
|
this.f8108o.c = this.l.C[0].e();
|
|
this.c.c = -this.l.C[1].e();
|
|
return;
|
|
}
|
|
KMk c = c(this.l.C[0]);
|
|
if (c != null) {
|
|
KMk kMk9 = this.f8108o;
|
|
int e5 = this.l.C[0].e();
|
|
kMk9.i.add(c);
|
|
kMk9.c = e5;
|
|
c.d.add(kMk9);
|
|
}
|
|
KMk c2 = c(this.l.C[1]);
|
|
if (c2 != null) {
|
|
KMk kMk10 = this.c;
|
|
int i4 = -this.l.C[1].e();
|
|
kMk10.i.add(c2);
|
|
kMk10.c = i4;
|
|
c2.d.add(kMk10);
|
|
}
|
|
this.f8108o.a = true;
|
|
this.c.a = true;
|
|
return;
|
|
}
|
|
if (this.l.C[0].f != null) {
|
|
KMk c3 = c(this.l.C[0]);
|
|
if (c3 != null) {
|
|
KMk kMk11 = this.f8108o;
|
|
int e6 = this.l.C[0].e();
|
|
kMk11.i.add(c3);
|
|
kMk11.c = e6;
|
|
c3.d.add(kMk11);
|
|
KMk kMk12 = this.c;
|
|
KMk kMk13 = this.f8108o;
|
|
int i5 = this.e.l;
|
|
kMk12.i.add(kMk13);
|
|
kMk12.c = i5;
|
|
kMk13.d.add(kMk12);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (this.l.C[1].f != null) {
|
|
KMk c4 = c(this.l.C[1]);
|
|
if (c4 != null) {
|
|
KMk kMk14 = this.c;
|
|
int i6 = -this.l.C[1].e();
|
|
kMk14.i.add(c4);
|
|
kMk14.c = i6;
|
|
c4.d.add(kMk14);
|
|
KMk kMk15 = this.f8108o;
|
|
KMk kMk16 = this.c;
|
|
int i7 = -this.e.l;
|
|
kMk15.i.add(kMk16);
|
|
kMk15.c = i7;
|
|
kMk16.d.add(kMk15);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if ((this.l instanceof InterfaceC15462grE) || this.l.S == null || this.l.e(C1230Yni.HBt.CENTER).f != null) {
|
|
return;
|
|
}
|
|
KMk kMk17 = this.l.S.h.f8108o;
|
|
KMk kMk18 = this.f8108o;
|
|
int f = this.l.f();
|
|
kMk18.i.add(kMk17);
|
|
kMk18.c = f;
|
|
kMk17.d.add(kMk18);
|
|
KMk kMk19 = this.c;
|
|
KMk kMk20 = this.f8108o;
|
|
int i8 = this.e.l;
|
|
kMk19.i.add(kMk20);
|
|
kMk19.c = i8;
|
|
kMk20.d.add(kMk19);
|
|
return;
|
|
}
|
|
if (this.d == C17026tNn.LWm.MATCH_CONSTRAINT) {
|
|
int i9 = this.l.H;
|
|
if (i9 == 2) {
|
|
C17026tNn c17026tNn5 = this.l.S;
|
|
if (c17026tNn5 != null) {
|
|
FgJ fgJ3 = c17026tNn5.ak.e;
|
|
this.e.i.add(fgJ3);
|
|
fgJ3.d.add(this.e);
|
|
this.e.a = true;
|
|
this.e.d.add(this.f8108o);
|
|
this.e.d.add(this.c);
|
|
}
|
|
} else if (i9 == 3) {
|
|
if (this.l.I == 3) {
|
|
this.f8108o.n = this;
|
|
this.c.n = this;
|
|
this.l.ak.f8108o.n = this;
|
|
this.l.ak.c.n = this;
|
|
this.e.n = this;
|
|
if (this.l.k()) {
|
|
this.e.i.add(this.l.ak.e);
|
|
this.l.ak.e.d.add(this.e);
|
|
this.l.ak.e.n = this;
|
|
this.e.i.add(this.l.ak.f8108o);
|
|
this.e.i.add(this.l.ak.c);
|
|
this.l.ak.f8108o.d.add(this.e);
|
|
this.l.ak.c.d.add(this.e);
|
|
} else if (this.l.o()) {
|
|
this.l.ak.e.i.add(this.e);
|
|
this.e.d.add(this.l.ak.e);
|
|
} else {
|
|
this.l.ak.e.i.add(this.e);
|
|
}
|
|
} else {
|
|
FgJ fgJ4 = this.l.ak.e;
|
|
this.e.i.add(fgJ4);
|
|
fgJ4.d.add(this.e);
|
|
this.l.ak.f8108o.d.add(this.e);
|
|
this.l.ak.c.d.add(this.e);
|
|
this.e.a = true;
|
|
this.e.d.add(this.f8108o);
|
|
this.e.d.add(this.c);
|
|
this.f8108o.i.add(this.e);
|
|
this.c.i.add(this.e);
|
|
}
|
|
}
|
|
}
|
|
if (this.l.C[0].f != null && this.l.C[1].f != null) {
|
|
if (this.l.o()) {
|
|
this.f8108o.c = this.l.C[0].e();
|
|
this.c.c = -this.l.C[1].e();
|
|
return;
|
|
}
|
|
KMk c5 = c(this.l.C[0]);
|
|
KMk c6 = c(this.l.C[1]);
|
|
if (c5 != null) {
|
|
c5.d.add(this);
|
|
if (c5.j) {
|
|
g();
|
|
}
|
|
}
|
|
if (c6 != null) {
|
|
c6.d.add(this);
|
|
if (c6.j) {
|
|
g();
|
|
}
|
|
}
|
|
this.g = Bgk.RVV.CENTER;
|
|
return;
|
|
}
|
|
if (this.l.C[0].f != null) {
|
|
KMk c7 = c(this.l.C[0]);
|
|
if (c7 != null) {
|
|
KMk kMk21 = this.f8108o;
|
|
int e7 = this.l.C[0].e();
|
|
kMk21.i.add(c7);
|
|
kMk21.c = e7;
|
|
c7.d.add(kMk21);
|
|
d(this.c, this.f8108o, 1, this.e);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (this.l.C[1].f != null) {
|
|
KMk c8 = c(this.l.C[1]);
|
|
if (c8 != null) {
|
|
KMk kMk22 = this.c;
|
|
int i10 = -this.l.C[1].e();
|
|
kMk22.i.add(c8);
|
|
kMk22.c = i10;
|
|
c8.d.add(kMk22);
|
|
d(this.f8108o, this.c, -1, this.e);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if ((this.l instanceof InterfaceC15462grE) || this.l.S == null) {
|
|
return;
|
|
}
|
|
KMk kMk23 = this.l.S.h.f8108o;
|
|
KMk kMk24 = this.f8108o;
|
|
int f2 = this.l.f();
|
|
kMk24.i.add(kMk23);
|
|
kMk24.c = f2;
|
|
kMk23.d.add(kMk24);
|
|
d(this.c, this.f8108o, 1, this.e);
|
|
}
|
|
|
|
private static void c(int[] iArr, int i, int i2, int i3, int i4, float f, int i5) {
|
|
int i6 = i2 - i;
|
|
int i7 = i4 - i3;
|
|
if (i5 != -1) {
|
|
if (i5 == 0) {
|
|
iArr[0] = (int) ((i7 * f) + 0.5f);
|
|
iArr[1] = i7;
|
|
return;
|
|
} else {
|
|
if (i5 == 1) {
|
|
iArr[0] = i6;
|
|
iArr[1] = (int) ((i6 * f) + 0.5f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
int i8 = (int) ((i7 * f) + 0.5f);
|
|
int i9 = (int) ((i6 / f) + 0.5f);
|
|
if (i8 <= i6) {
|
|
iArr[0] = i8;
|
|
iArr[1] = i7;
|
|
} else if (i9 <= i7) {
|
|
iArr[0] = i6;
|
|
iArr[1] = i9;
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.Vlp$3, reason: invalid class name */
|
|
/* loaded from: classes.dex */
|
|
static /* synthetic */ class AnonymousClass3 {
|
|
static final int[] d;
|
|
|
|
static {
|
|
int[] iArr = new int[Bgk.RVV.values().length];
|
|
d = iArr;
|
|
try {
|
|
iArr[Bgk.RVV.START.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
d[Bgk.RVV.END.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
d[Bgk.RVV.CENTER.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:112:0x02c6, code lost:
|
|
|
|
if (r11 != 1) goto L125;
|
|
*/
|
|
@Override // o.Bgk, o.rZk
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void g() {
|
|
/*
|
|
Method dump skipped, instructions count: 1109
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.Vlp.g():void");
|
|
}
|
|
|
|
@Override // o.Bgk
|
|
public final void c() {
|
|
if (this.f8108o.j) {
|
|
this.l.f(this.f8108o.l);
|
|
}
|
|
}
|
|
}
|