package y0;

import java.util.List;
import java.util.Map;

/* loaded from: classes.dex */
public abstract class o2 {

    /* renamed from: a, reason: collision with root package name */
    private static final Object f51739a = new Object();

    /* renamed from: b, reason: collision with root package name */
    private static final Object f51740b = new Object();

    public static final Object a(Map map, Object obj) {
        Object F;
        List list = (List) map.get(obj);
        if (list == null) {
            return null;
        }
        F = sm.z.F(list);
        if (!list.isEmpty()) {
            return F;
        }
        map.remove(obj);
        return F;
    }
}
