Files
rr3-apk/decompiled/sources/com/google/android/gms/internal/fido/zzcf.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

141 lines
3.8 KiB
Java

package com.google.android.gms.internal.fido;
import java.util.Arrays;
import java.util.Objects;
import java.util.Set;
/* loaded from: classes3.dex */
public abstract class zzcf extends zzby implements Set {
private transient zzcc zza;
public static int zzh(int i) {
int max = Math.max(i, 2);
if (max >= 751619276) {
if (max < 1073741824) {
return 1073741824;
}
throw new IllegalArgumentException("collection too large");
}
int highestOneBit = Integer.highestOneBit(max - 1);
do {
highestOneBit += highestOneBit;
} while (highestOneBit * 0.7d < max);
return highestOneBit;
}
public static zzcf zzk() {
return zzcu.zza;
}
public static zzcf zzl(Object obj) {
return new zzcz("FIDO");
}
public static zzcf zzm(Object obj, Object obj2) {
return zzf(2, obj, obj2);
}
@Override // java.util.Collection, java.util.Set
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if ((obj instanceof zzcf) && zzg() && ((zzcf) obj).zzg() && hashCode() != obj.hashCode()) {
return false;
}
if (obj == this) {
return true;
}
if (obj instanceof Set) {
Set set = (Set) obj;
try {
if (size() == set.size()) {
if (containsAll(set)) {
return true;
}
}
} catch (ClassCastException | NullPointerException unused) {
}
}
return false;
}
@Override // java.util.Collection, java.util.Set
public int hashCode() {
return zzcy.zza(this);
}
@Override // com.google.android.gms.internal.fido.zzby, java.util.AbstractCollection, java.util.Collection, java.lang.Iterable
/* renamed from: zzd */
public abstract zzdc iterator();
public boolean zzg() {
return false;
}
public zzcc zzi() {
zzcc zzccVar = this.zza;
if (zzccVar != null) {
return zzccVar;
}
zzcc zzj = zzj();
this.zza = zzj;
return zzj;
}
public zzcc zzj() {
Object[] array = toArray();
int i = zzcc.zzd;
return zzcc.zzh(array, array.length);
}
private static zzcf zzf(int i, Object... objArr) {
if (i == 0) {
return zzcu.zza;
}
if (i == 1) {
Object obj = objArr[0];
Objects.requireNonNull(obj);
return new zzcz(obj);
}
int zzh = zzh(i);
Object[] objArr2 = new Object[zzh];
int i2 = zzh - 1;
int i3 = 0;
int i4 = 0;
for (int i5 = 0; i5 < i; i5++) {
Object obj2 = objArr[i5];
zzcr.zza(obj2, i5);
int hashCode = obj2.hashCode();
int zza = zzbx.zza(hashCode);
while (true) {
int i6 = zza & i2;
Object obj3 = objArr2[i6];
if (obj3 == null) {
objArr[i4] = obj2;
objArr2[i6] = obj2;
i3 += hashCode;
i4++;
break;
}
if (!obj3.equals(obj2)) {
zza++;
}
}
}
Arrays.fill(objArr, i4, i, (Object) null);
if (i4 == 1) {
Object obj4 = objArr[0];
Objects.requireNonNull(obj4);
return new zzcz(obj4);
}
if (zzh(i4) < zzh / 2) {
return zzf(i4, objArr);
}
if (i4 <= 0) {
objArr = Arrays.copyOf(objArr, i4);
}
return new zzcu(objArr, i3, objArr2, i2, i4);
}
}