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

100 lines
2.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* loaded from: classes2.dex */
public final class Ayo {
public static final Ayo a;
public static final Ayo b = new Ayo(4201, 4096, 1);
public static final Ayo c = new Ayo(1033, 1024, 1);
public static final Ayo d;
public static final Ayo e;
public static final Ayo g;
public static final Ayo i;
public static final Ayo j;
final int[] f;
final int h;
private final int k;
final uTj l;
final int[] m;
final int n;
/* renamed from: o, reason: collision with root package name */
final uTj f8102o;
/* JADX INFO: Access modifiers changed from: package-private */
public static int a(int i2, int i3) {
return i2 ^ i3;
}
static {
Ayo ayo = new Ayo(67, 64, 1);
e = ayo;
a = new Ayo(19, 16, 1);
i = new Ayo(285, 256, 0);
Ayo ayo2 = new Ayo(301, 256, 1);
j = ayo2;
d = ayo2;
g = ayo;
}
private Ayo(int i2, int i3, int i4) {
this.k = i2;
this.n = i3;
this.h = i4;
this.f = new int[i3];
this.m = new int[i3];
int i5 = 1;
for (int i6 = 0; i6 < i3; i6++) {
this.f[i6] = i5;
i5 <<= 1;
if (i5 >= i3) {
i5 = (i5 ^ i2) & (i3 - 1);
}
}
for (int i7 = 0; i7 < i3 - 1; i7++) {
this.m[this.f[i7]] = i7;
}
this.l = new uTj(this, new int[]{0});
this.f8102o = new uTj(this, new int[]{1});
}
/* JADX INFO: Access modifiers changed from: package-private */
public final uTj b(int i2, int i3) {
if (i2 < 0) {
throw new IllegalArgumentException();
}
if (i3 == 0) {
return this.l;
}
int[] iArr = new int[i2 + 1];
iArr[0] = i3;
return new uTj(this, iArr);
}
/* JADX INFO: Access modifiers changed from: package-private */
public final int c(int i2) {
if (i2 == 0) {
throw new ArithmeticException();
}
return this.f[(this.n - this.m[i2]) - 1];
}
/* JADX INFO: Access modifiers changed from: package-private */
public final int e(int i2, int i3) {
if (i2 == 0 || i3 == 0) {
return 0;
}
int[] iArr = this.f;
int[] iArr2 = this.m;
return iArr[(iArr2[i2] + iArr2[i3]) % (this.n - 1)];
}
public final String toString() {
StringBuilder sb = new StringBuilder("GF(0x");
sb.append(Integer.toHexString(this.k));
sb.append(',');
sb.append(this.n);
sb.append(')');
return sb.toString();
}
}