package com.google.android.gms.internal.ads; import com.google.android.gms.internal.ads.zzgax; import java.util.Collections; import java.util.Objects; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; import java.util.concurrent.atomic.AtomicReferenceFieldUpdater; import java.util.logging.Level; /* loaded from: classes3.dex */ abstract class zzgbm extends zzgax.zzi { private static final zzgbi zzbe; private static final zzgcq zzbf = new zzgcq(zzgbm.class); private volatile int remaining; private volatile Set seenExceptions = null; static { zzgbi zzgbkVar; Throwable th; zzgbl zzgblVar = null; try { zzgbkVar = new zzgbj(AtomicReferenceFieldUpdater.newUpdater(zzgbm.class, Set.class, "seenExceptions"), AtomicIntegerFieldUpdater.newUpdater(zzgbm.class, "remaining")); th = null; } catch (Throwable th2) { zzgbkVar = new zzgbk(zzgblVar); th = th2; } zzbe = zzgbkVar; if (th != null) { zzbf.zza().logp(Level.SEVERE, "com.google.common.util.concurrent.AggregateFutureState", "", "SafeAtomicHelper is broken!", th); } } public zzgbm(int i) { this.remaining = i; } public final int zzA() { return zzbe.zza(this); } public final Set zzC() { Set set = this.seenExceptions; if (set != null) { return set; } Set newSetFromMap = Collections.newSetFromMap(new ConcurrentHashMap()); zze(newSetFromMap); zzbe.zzb(this, null, newSetFromMap); Set set2 = this.seenExceptions; Objects.requireNonNull(set2); return set2; } public final void zzF() { this.seenExceptions = null; } public abstract void zze(Set set); }