what-the-bank/sources/com/google/android/libraries/places/internal/zzmf.java

121 lines
3.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import java.math.RoundingMode;
import java.util.Arrays;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class zzmf {
final int zza;
final int zzb;
final int zzc;
final int zzd;
private final String zze;
private final char[] zzf;
private final byte[] zzg;
private final boolean zzh;
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public zzmf(java.lang.String r10, char[] r11) {
/*
r9 = this;
r0 = 128(0x80, float:1.8E-43)
byte[] r1 = new byte[r0]
r2 = -1
java.util.Arrays.fill(r1, r2)
r3 = 0
r4 = r3
La:
int r5 = r11.length
if (r4 >= r5) goto L2b
char r5 = r11[r4]
r6 = 1
if (r5 >= r0) goto L14
r7 = r6
goto L15
L14:
r7 = r3
L15:
java.lang.String r8 = "Non-ASCII character: %s"
com.google.android.libraries.places.internal.zzig.zzf(r7, r8, r5)
r7 = r1[r5]
if (r7 != r2) goto L1f
goto L20
L1f:
r6 = r3
L20:
java.lang.String r7 = "Duplicate character: %s"
com.google.android.libraries.places.internal.zzig.zzf(r6, r7, r5)
byte r6 = (byte) r4
r1[r5] = r6
int r4 = r4 + 1
goto La
L2b:
r9.<init>(r10, r11, r1, r3)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.libraries.places.internal.zzmf.<init>(java.lang.String, char[]):void");
}
public final boolean equals(Object obj) {
if (!(obj instanceof zzmf)) {
return false;
}
zzmf zzmfVar = (zzmf) obj;
boolean z = zzmfVar.zzh;
return Arrays.equals(this.zzf, zzmfVar.zzf);
}
public final int hashCode() {
return Arrays.hashCode(this.zzf) + 1237;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final char zza(int i) {
return this.zzf[i];
}
private zzmf(String str, char[] cArr, byte[] bArr, boolean z) {
this.zze = str;
this.zzf = cArr;
try {
int length = cArr.length;
int zzb = zzacl.zzb(length, RoundingMode.UNNECESSARY);
this.zzb = zzb;
int numberOfTrailingZeros = Integer.numberOfTrailingZeros(zzb);
int i = 1 << (3 - numberOfTrailingZeros);
this.zzc = i;
this.zzd = zzb >> numberOfTrailingZeros;
this.zza = length - 1;
this.zzg = bArr;
boolean[] zArr = new boolean[i];
for (int i2 = 0; i2 < this.zzd; i2++) {
zArr[zzacl.zza(i2 << 3, this.zzb, RoundingMode.CEILING)] = true;
}
this.zzh = false;
} catch (ArithmeticException e) {
StringBuilder sb = new StringBuilder("Illegal alphabet length ");
sb.append(cArr.length);
throw new IllegalArgumentException(sb.toString(), e);
}
}
public final boolean zzb(char c) {
return c < 128 && this.zzg[c] != -1;
}
public final String toString() {
return this.zze;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ char[] zzc(zzmf zzmfVar) {
return zzmfVar.zzf;
}
}