package o; import java.util.concurrent.atomic.AtomicReference; /* loaded from: classes.dex */ public final /* synthetic */ class ksw { public static /* synthetic */ boolean a(AtomicReference atomicReference, Object obj, Object obj2) { while (!atomicReference.compareAndSet(null, obj2)) { if (atomicReference.get() != null) { return false; } } return true; } }