package sm;

import java.util.Map;
import java.util.NoSuchElementException;

/* loaded from: classes3.dex */
abstract class o0 {
    public static final Object a(Map map, Object obj) {
        kotlin.jvm.internal.t.g(map, "<this>");
        if (map instanceof m0) {
            return ((m0) map).l(obj);
        }
        Object obj2 = map.get(obj);
        if (obj2 != null || map.containsKey(obj)) {
            return obj2;
        }
        throw new NoSuchElementException("Key " + obj + " is missing in the map.");
    }
}
