package com.google.ads.interactivemedia.v3.internal;

import com.google.ads.interactivemedia.v3.internal.zztg;
import java.util.Set;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
import java.util.logging.Level;
import javax.annotation.CheckForNull;

/* JADX INFO: loaded from: classes2.dex */
class zztw extends zztg.zzi {
    private static final zzts zza;
    private static final zzut zzd = new zzut(zztw.class);
    private volatile int remaining;

    @CheckForNull
    private volatile Set<Throwable> seenExceptions = null;

    static {
        zzts zztvVar;
        Throwable th;
        zztu zztuVar = null;
        try {
            zztvVar = new zztt(AtomicReferenceFieldUpdater.newUpdater(zztw.class, Set.class, "seenExceptions"), AtomicIntegerFieldUpdater.newUpdater(zztw.class, "remaining"));
            th = null;
        } catch (Throwable th2) {
            zztvVar = new zztv(zztuVar);
            th = th2;
        }
        zza = zztvVar;
        if (th != null) {
            zzd.zza().logp(Level.SEVERE, "com.google.common.util.concurrent.AggregateFutureState", "<clinit>", "SafeAtomicHelper is broken!", th);
        }
    }

    public zztw(int i10) {
        this.remaining = i10;
    }

    public final int zzx() {
        return zza.zza(this);
    }

    public final void zzz() {
        this.seenExceptions = null;
    }
}
