62 lines
2.2 KiB
Java
62 lines
2.2 KiB
Java
|
package o;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
final class EFY {
|
||
|
private static final int[][] e = {new int[]{21522, 0}, new int[]{20773, 1}, new int[]{24188, 2}, new int[]{23371, 3}, new int[]{17913, 4}, new int[]{16590, 5}, new int[]{20375, 6}, new int[]{19104, 7}, new int[]{30660, 8}, new int[]{29427, 9}, new int[]{32170, 10}, new int[]{30877, 11}, new int[]{26159, 12}, new int[]{25368, 13}, new int[]{27713, 14}, new int[]{26998, 15}, new int[]{5769, 16}, new int[]{5054, 17}, new int[]{7399, 18}, new int[]{6608, 19}, new int[]{1890, 20}, new int[]{597, 21}, new int[]{3340, 22}, new int[]{2107, 23}, new int[]{13663, 24}, new int[]{12392, 25}, new int[]{16177, 26}, new int[]{14854, 27}, new int[]{9396, 28}, new int[]{8579, 29}, new int[]{11994, 30}, new int[]{11245, 31}};
|
||
|
final FVz c;
|
||
|
final byte d;
|
||
|
|
||
|
private EFY(int i) {
|
||
|
this.c = FVz.e((i >> 3) & 3);
|
||
|
this.d = (byte) (i & 7);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int c(int i, int i2) {
|
||
|
return Integer.bitCount(i ^ i2);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static EFY a(int i, int i2) {
|
||
|
EFY d = d(i, i2);
|
||
|
return d != null ? d : d(i ^ 21522, i2 ^ 21522);
|
||
|
}
|
||
|
|
||
|
private static EFY d(int i, int i2) {
|
||
|
int bitCount;
|
||
|
int i3 = Integer.MAX_VALUE;
|
||
|
int i4 = 0;
|
||
|
for (int[] iArr : e) {
|
||
|
int i5 = iArr[0];
|
||
|
if (i5 == i || i5 == i2) {
|
||
|
return new EFY(iArr[1]);
|
||
|
}
|
||
|
int bitCount2 = Integer.bitCount(i ^ i5);
|
||
|
if (bitCount2 < i3) {
|
||
|
i4 = iArr[1];
|
||
|
i3 = bitCount2;
|
||
|
}
|
||
|
if (i != i2 && (bitCount = Integer.bitCount(i5 ^ i2)) < i3) {
|
||
|
i4 = iArr[1];
|
||
|
i3 = bitCount;
|
||
|
}
|
||
|
}
|
||
|
if (i3 <= 3) {
|
||
|
return new EFY(i4);
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
public final int hashCode() {
|
||
|
return (this.c.ordinal() << 3) | this.d;
|
||
|
}
|
||
|
|
||
|
public final boolean equals(Object obj) {
|
||
|
if (!(obj instanceof EFY)) {
|
||
|
return false;
|
||
|
}
|
||
|
EFY efy = (EFY) obj;
|
||
|
return this.c == efy.c && this.d == efy.d;
|
||
|
}
|
||
|
}
|