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

243 lines
8.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import java.util.HashMap;
import o.C1230Yni;
import o.C17026tNn;
/* loaded from: classes.dex */
public final class kpn extends NsV {
public int c = 0;
public boolean e = true;
public int a = 0;
private boolean ai = false;
@Override // o.C17026tNn
public final boolean c() {
return true;
}
@Override // o.NsV, o.C17026tNn
public final void e(C17026tNn c17026tNn, HashMap<C17026tNn, C17026tNn> hashMap) {
super.e(c17026tNn, hashMap);
kpn kpnVar = (kpn) c17026tNn;
this.c = kpnVar.c;
this.e = kpnVar.e;
this.a = kpnVar.a;
}
@Override // o.C17026tNn
public final String toString() {
StringBuilder sb = new StringBuilder("[Barrier] ");
sb.append(this.r);
sb.append(" {");
String obj = sb.toString();
for (int i = 0; i < ((NsV) this).aF; i++) {
C17026tNn c17026tNn = ((NsV) this).aD[i];
if (i > 0) {
StringBuilder sb2 = new StringBuilder();
sb2.append(obj);
sb2.append(", ");
obj = sb2.toString();
}
StringBuilder sb3 = new StringBuilder();
sb3.append(obj);
sb3.append(c17026tNn.r);
obj = sb3.toString();
}
StringBuilder sb4 = new StringBuilder();
sb4.append(obj);
sb4.append(UrlTreeKt.componentParamSuffix);
return sb4.toString();
}
@Override // o.C17026tNn
public final void d(Npn npn, boolean z) {
boolean z2;
int i;
int i2;
int i3;
this.C[0] = this.D;
this.C[2] = this.V;
this.C[1] = this.X;
this.C[3] = this.n;
for (int i4 = 0; i4 < this.C.length; i4++) {
this.C[i4].h = npn.b(this.C[i4]);
}
int i5 = this.c;
if (i5 < 0 || i5 >= 4) {
return;
}
C1230Yni c1230Yni = this.C[this.c];
if (!this.ai) {
e();
}
if (this.ai) {
this.ai = false;
int i6 = this.c;
if (i6 == 0 || i6 == 1) {
npn.c(this.D.h, this.ag);
npn.c(this.X.h, this.ag);
return;
} else {
if (i6 == 2 || i6 == 3) {
npn.c(this.V.h, this.ah);
npn.c(this.n.h, this.ah);
return;
}
return;
}
}
for (int i7 = 0; i7 < ((NsV) this).aF; i7++) {
C17026tNn c17026tNn = ((NsV) this).aD[i7];
if ((this.e || c17026tNn.c()) && ((((i2 = this.c) == 0 || i2 == 1) && c17026tNn.B[0] == C17026tNn.LWm.MATCH_CONSTRAINT && c17026tNn.D.f != null && c17026tNn.X.f != null) || (((i3 = this.c) == 2 || i3 == 3) && c17026tNn.B[1] == C17026tNn.LWm.MATCH_CONSTRAINT && c17026tNn.V.f != null && c17026tNn.n.f != null))) {
z2 = true;
break;
}
}
z2 = false;
boolean z3 = this.D.d() || this.X.d();
boolean z4 = this.V.d() || this.n.d();
int i8 = (z2 || !(((i = this.c) == 0 && z3) || ((i == 2 && z4) || ((i == 1 && z3) || (i == 3 && z4))))) ? 4 : 5;
for (int i9 = 0; i9 < ((NsV) this).aF; i9++) {
C17026tNn c17026tNn2 = ((NsV) this).aD[i9];
if (this.e || c17026tNn2.c()) {
EsB b = npn.b(c17026tNn2.C[this.c]);
c17026tNn2.C[this.c].h = b;
int i10 = (c17026tNn2.C[this.c].f == null || c17026tNn2.C[this.c].f.i != this) ? 0 : c17026tNn2.C[this.c].b;
int i11 = this.c;
if (i11 == 0 || i11 == 2) {
EsB esB = c1230Yni.h;
int i12 = this.a - i10;
paA c = npn.c();
EsB d = npn.d();
d.h = 0;
c.e(esB, b, d, i12);
npn.e(c);
} else {
EsB esB2 = c1230Yni.h;
int i13 = this.a + i10;
paA c2 = npn.c();
EsB d2 = npn.d();
d2.h = 0;
c2.a(esB2, b, d2, i13);
npn.e(c2);
}
npn.b(c1230Yni.h, b, this.a + i10, i8);
}
}
int i14 = this.c;
if (i14 == 0) {
npn.b(this.X.h, this.D.h, 0, 8);
npn.b(this.D.h, this.S.X.h, 0, 4);
npn.b(this.D.h, this.S.D.h, 0, 0);
return;
}
if (i14 == 1) {
npn.b(this.D.h, this.X.h, 0, 8);
npn.b(this.D.h, this.S.D.h, 0, 4);
npn.b(this.D.h, this.S.X.h, 0, 0);
} else if (i14 == 2) {
npn.b(this.n.h, this.V.h, 0, 8);
npn.b(this.V.h, this.S.n.h, 0, 4);
npn.b(this.V.h, this.S.V.h, 0, 0);
} else if (i14 == 3) {
npn.b(this.V.h, this.n.h, 0, 8);
npn.b(this.V.h, this.S.V.h, 0, 4);
npn.b(this.V.h, this.S.n.h, 0, 0);
}
}
public final boolean e() {
int i;
int i2;
boolean z = true;
for (int i3 = 0; i3 < ((NsV) this).aF; i3++) {
C17026tNn c17026tNn = ((NsV) this).aD[i3];
if ((this.e || c17026tNn.c()) && ((((i = this.c) == 0 || i == 1) && !c17026tNn.a()) || (((i2 = this.c) == 2 || i2 == 3) && !c17026tNn.d()))) {
z = false;
}
}
if (!z || ((NsV) this).aF <= 0) {
return false;
}
int i4 = 0;
boolean z2 = false;
for (int i5 = 0; i5 < ((NsV) this).aF; i5++) {
C17026tNn c17026tNn2 = ((NsV) this).aD[i5];
if (this.e || c17026tNn2.c()) {
if (!z2) {
int i6 = this.c;
if (i6 == 0) {
C1230Yni e = c17026tNn2.e(C1230Yni.HBt.LEFT);
if (e.d) {
i4 = e.c;
z2 = true;
}
i4 = 0;
z2 = true;
} else if (i6 == 1) {
C1230Yni e2 = c17026tNn2.e(C1230Yni.HBt.RIGHT);
if (e2.d) {
i4 = e2.c;
z2 = true;
}
i4 = 0;
z2 = true;
} else if (i6 == 2) {
C1230Yni e3 = c17026tNn2.e(C1230Yni.HBt.TOP);
if (e3.d) {
i4 = e3.c;
z2 = true;
}
i4 = 0;
z2 = true;
} else {
if (i6 == 3) {
C1230Yni e4 = c17026tNn2.e(C1230Yni.HBt.BOTTOM);
if (e4.d) {
i4 = e4.c;
}
i4 = 0;
}
z2 = true;
}
}
int i7 = this.c;
if (i7 == 0) {
C1230Yni e5 = c17026tNn2.e(C1230Yni.HBt.LEFT);
i4 = Math.min(i4, !e5.d ? 0 : e5.c);
} else if (i7 == 1) {
C1230Yni e6 = c17026tNn2.e(C1230Yni.HBt.RIGHT);
i4 = Math.max(i4, !e6.d ? 0 : e6.c);
} else if (i7 == 2) {
C1230Yni e7 = c17026tNn2.e(C1230Yni.HBt.TOP);
i4 = Math.min(i4, !e7.d ? 0 : e7.c);
} else if (i7 == 3) {
C1230Yni e8 = c17026tNn2.e(C1230Yni.HBt.BOTTOM);
i4 = Math.max(i4, !e8.d ? 0 : e8.c);
}
}
}
int i8 = i4 + this.a;
int i9 = this.c;
if (i9 == 0 || i9 == 1) {
a(i8, i8);
} else {
c(i8, i8);
}
this.ai = true;
return true;
}
@Override // o.C17026tNn
public final boolean d() {
return this.ai;
}
@Override // o.C17026tNn
public final boolean a() {
return this.ai;
}
}