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

84 lines
2.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class Poe {
static final Poe e = new Poe(nYp.a, 0, 0, 0);
final int a;
final nYp b;
final int c;
final int d;
private final int i;
/* JADX INFO: Access modifiers changed from: package-private */
public Poe(nYp nyp, int i, int i2, int i3) {
this.b = nyp;
this.d = i;
this.c = i2;
this.a = i3;
this.i = i2 > 62 ? 21 : i2 > 31 ? 20 : i2 > 0 ? 10 : 0;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final Poe a(int i, int i2) {
int i3 = this.a;
nYp nyp = this.b;
if (i != this.d) {
int i4 = C16011kTV.b[this.d][i];
int i5 = i4 >> 16;
i3 += i5;
nyp = new C5300bqT(nyp, i4 & 65535, i5);
}
int i6 = i == 2 ? 4 : 5;
return new Poe(new C5300bqT(nyp, i2, i6), i, 0, i3 + i6);
}
/* JADX INFO: Access modifiers changed from: package-private */
public final Poe e(int i, int i2) {
nYp nyp = this.b;
int i3 = this.d == 2 ? 4 : 5;
return new Poe(new C5300bqT(new C5300bqT(nyp, C16011kTV.a[this.d][i], i3), i2, 5), this.d, 0, this.a + i3 + 5);
}
/* JADX INFO: Access modifiers changed from: package-private */
public final Poe b(int i) {
nYp nyp = this.b;
int i2 = this.d;
int i3 = this.a;
if (i2 == 4 || i2 == 2) {
int i4 = C16011kTV.b[i2][0];
int i5 = i4 >> 16;
C5300bqT c5300bqT = new C5300bqT(nyp, i4 & 65535, i5);
i3 += i5;
i2 = 0;
nyp = c5300bqT;
}
int i6 = this.c;
Poe poe = new Poe(nyp, i2, i6 + 1, i3 + ((i6 == 0 || i6 == 31) ? 18 : i6 == 62 ? 9 : 8));
return poe.c == 2078 ? poe.e(i + 1) : poe;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean b(Poe poe) {
int i = this.a + (C16011kTV.b[this.d][poe.d] >> 16);
int i2 = this.c;
int i3 = poe.c;
if (i2 < i3) {
i += poe.i - this.i;
} else if (i2 > i3 && i3 > 0) {
i += 10;
}
return i <= poe.a;
}
public final String toString() {
return String.format("%s bits=%d bytes=%d", C16011kTV.c[this.d], Integer.valueOf(this.a), Integer.valueOf(this.c));
}
/* JADX INFO: Access modifiers changed from: package-private */
public final Poe e(int i) {
int i2 = this.c;
return i2 == 0 ? this : new Poe(new C0764OUo(this.b, i - i2, i2), this.d, 0, this.a);
}
}