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

126 lines
2.9 KiB
Java

package o;
import android.view.View;
/* loaded from: classes.dex */
public final class sQk {
final LWm c;
private IeS d = new IeS();
/* loaded from: classes.dex */
public interface LWm {
int b();
int c(View view);
View c(int i);
int d(View view);
int e();
}
public sQk(LWm lWm) {
this.c = lWm;
}
/* loaded from: classes.dex */
static class IeS {
int a;
int b;
int c;
int d;
int e = 0;
IeS() {
}
final boolean d() {
int i = this.e;
int i2 = 2;
if ((i & 7) != 0) {
int i3 = this.b;
int i4 = this.a;
if (((i3 > i4 ? 1 : i3 == i4 ? 2 : 4) & i) == 0) {
return false;
}
}
if ((i & 112) != 0) {
int i5 = this.b;
int i6 = this.c;
if ((((i5 > i6 ? 1 : i5 == i6 ? 2 : 4) << 4) & i) == 0) {
return false;
}
}
if ((i & 1792) != 0) {
int i7 = this.d;
int i8 = this.a;
if ((((i7 > i8 ? 1 : i7 == i8 ? 2 : 4) << 8) & i) == 0) {
return false;
}
}
if ((i & 28672) != 0) {
int i9 = this.d;
int i10 = this.c;
if (i9 > i10) {
i2 = 1;
} else if (i9 != i10) {
i2 = 4;
}
if ((i & (i2 << 12)) == 0) {
return false;
}
}
return true;
}
}
public final View c(int i, int i2, int i3, int i4) {
int b = this.c.b();
int e = this.c.e();
int i5 = i2 > i ? 1 : -1;
View view = null;
while (i != i2) {
View c = this.c.c(i);
int d = this.c.d(c);
int c2 = this.c.c(c);
IeS ieS = this.d;
ieS.a = b;
ieS.c = e;
ieS.b = d;
ieS.d = c2;
if (i3 != 0) {
this.d.e = 0;
this.d.e |= i3;
if (this.d.d()) {
return c;
}
}
if (i4 != 0) {
this.d.e = 0;
this.d.e |= i4;
if (this.d.d()) {
view = c;
}
}
i += i5;
}
return view;
}
public final boolean e(View view) {
IeS ieS = this.d;
int b = this.c.b();
int e = this.c.e();
int d = this.c.d(view);
int c = this.c.c(view);
ieS.a = b;
ieS.c = e;
ieS.b = d;
ieS.d = c;
this.d.e = 0;
this.d.e |= 24579;
return this.d.d();
}
}