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

52 lines
1.3 KiB
Java

package o;
/* loaded from: classes.dex */
public final class fYT<T> {
public T[] a;
public int b;
public int c;
public int d;
public final float e;
public fYT() {
this((byte) 0);
}
private fYT(byte b) {
this.e = 0.75f;
int numberOfLeadingZeros = 1 << (32 - Integer.numberOfLeadingZeros(15));
this.c = numberOfLeadingZeros - 1;
this.b = (int) (numberOfLeadingZeros * 0.75f);
this.a = (T[]) new Object[numberOfLeadingZeros];
}
public final boolean b(int i, T[] tArr, int i2) {
int i3;
T t;
this.d--;
while (true) {
int i4 = i + 1;
while (true) {
i3 = i4 & i2;
t = tArr[i3];
if (t == null) {
tArr[i] = null;
return true;
}
int hashCode = t.hashCode() * (-1640531527);
int i5 = (hashCode ^ (hashCode >>> 16)) & i2;
if (i > i3) {
if (i >= i5 && i5 > i3) {
break;
}
i4 = i3 + 1;
} else if (i < i5 && i5 <= i3) {
i4 = i3 + 1;
}
}
tArr[i] = t;
i = i3;
}
}
}