package o; import android.content.Intent; import android.os.Bundle; import java.util.EnumMap; import java.util.Map; import java.util.regex.Pattern; /* loaded from: classes2.dex */ public final class UeV { static { Pattern.compile(","); } public static Map NM_(Intent intent) { Bundle extras = intent.getExtras(); if (extras == null || extras.isEmpty()) { return null; } EnumMap enumMap = new EnumMap(CGg.class); for (CGg cGg : CGg.values()) { if (cGg != CGg.CHARACTER_SET && cGg != CGg.NEED_RESULT_POINT_CALLBACK && cGg != CGg.POSSIBLE_FORMATS) { String name = cGg.name(); if (extras.containsKey(name)) { if (cGg.valueType.equals(Void.class)) { enumMap.put((EnumMap) cGg, (CGg) Boolean.TRUE); } else { Object obj = extras.get(name); if (cGg.valueType.isInstance(obj)) { enumMap.put((EnumMap) cGg, (CGg) obj); } } } } } return enumMap; } }