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

71 lines
1.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* loaded from: classes2.dex */
final class ECR {
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean c(byte[] bArr, int i, int i2) {
if (i < 0 || bArr.length < i2) {
return false;
}
while (i < i2) {
if (bArr[i] == 1) {
return false;
}
i++;
}
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean a(byte[][] bArr, int i, int i2, int i3) {
if (i2 < 0 || bArr.length < i3) {
return false;
}
while (i2 < i3) {
if (bArr[i2][i] == 1) {
return false;
}
i2++;
}
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int d(mUk muk, boolean z) {
int i;
int i2;
if (z) {
i = muk.d;
} else {
i = muk.c;
}
if (z) {
i2 = muk.c;
} else {
i2 = muk.d;
}
byte[][] bArr = muk.e;
int i3 = 0;
for (int i4 = 0; i4 < i; i4++) {
byte b = -1;
int i5 = 0;
for (int i6 = 0; i6 < i2; i6++) {
byte b2 = z ? bArr[i4][i6] : bArr[i6][i4];
if (b2 == b) {
i5++;
} else {
if (i5 >= 5) {
i3 += i5 - 2;
}
i5 = 1;
b = b2;
}
}
if (i5 >= 5) {
i3 += i5 - 2;
}
}
return i3;
}
}