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

151 lines
4.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import io.flutter.embedding.android.KeyboardMap;
import java.io.Serializable;
/* renamed from: o.gdc, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC14971gdc {
public static final RVV e = new RVV(0);
private static final AbstractC14971gdc a = C14887gbC.c.a();
public abstract int c(int i);
public int b() {
return c(32);
}
public int a(int i) {
return a(0, i);
}
public int a(int i, int i2) {
int b;
int i3;
int i4;
if (i2 <= i) {
throw new IllegalArgumentException(gcZ.b(Integer.valueOf(i), Integer.valueOf(i2)).toString());
}
int i5 = i2 - i;
if (i5 > 0 || i5 == Integer.MIN_VALUE) {
if (((-i5) & i5) == i5) {
i4 = c(31 - Integer.numberOfLeadingZeros(i5));
return i + i4;
}
do {
b = b() >>> 1;
i3 = b % i5;
} while ((b - i3) + (i5 - 1) < 0);
i4 = i3;
return i + i4;
}
while (true) {
int b2 = b();
if (i <= b2 && b2 < i2) {
return b2;
}
}
}
public long e() {
return (b() << 32) + b();
}
/* renamed from: o.gdc$RVV */
/* loaded from: classes.dex */
public static final class RVV extends AbstractC14971gdc implements Serializable {
private RVV() {
}
/* renamed from: o.gdc$RVV$RVV, reason: collision with other inner class name */
/* loaded from: classes6.dex */
static final class C0118RVV implements Serializable {
public static final C0118RVV e = new C0118RVV();
private C0118RVV() {
}
private final Object readResolve() {
return AbstractC14971gdc.e;
}
}
private final Object writeReplace() {
return C0118RVV.e;
}
@Override // o.AbstractC14971gdc
public final int c(int i) {
return AbstractC14971gdc.a.c(i);
}
@Override // o.AbstractC14971gdc
public final int b() {
return AbstractC14971gdc.a.b();
}
@Override // o.AbstractC14971gdc
public final int a(int i) {
return AbstractC14971gdc.a.a(i);
}
@Override // o.AbstractC14971gdc
public final int a(int i, int i2) {
return AbstractC14971gdc.a.a(i, i2);
}
@Override // o.AbstractC14971gdc
public final long e() {
return AbstractC14971gdc.a.e();
}
@Override // o.AbstractC14971gdc
public final long e(long j, long j2) {
return AbstractC14971gdc.a.e(j, j2);
}
public /* synthetic */ RVV(byte b) {
this();
}
}
public long e(long j, long j2) {
long e2;
long j3;
long j4;
int b;
if (j2 <= j) {
throw new IllegalArgumentException(gcZ.b(Long.valueOf(j), Long.valueOf(j2)).toString());
}
long j5 = j2 - j;
if (j5 > 0) {
if (((-j5) & j5) == j5) {
int i = (int) j5;
int i2 = (int) (j5 >>> 32);
if (i != 0) {
b = c(31 - Integer.numberOfLeadingZeros(i));
} else if (i2 == 1) {
b = b();
} else {
j4 = (c(31 - Integer.numberOfLeadingZeros(i2)) << 32) + (b() & KeyboardMap.kValueMask);
return j + j4;
}
j4 = b & KeyboardMap.kValueMask;
return j + j4;
}
do {
e2 = e() >>> 1;
j3 = e2 % j5;
} while ((e2 - j3) + (j5 - 1) < 0);
j4 = j3;
return j + j4;
}
while (true) {
long e3 = e();
if (j <= e3 && e3 < j2) {
return e3;
}
}
}
}