def find_enabled_origins(sectors, enabled, entrance_list, entrance_map, key):
    for sector in sectors:
        for region in sector.regions:
            if ((region.name in enabled.keys()) and (region.name not in entrance_list)):
                entrance_list.append(region.name)
                (origin_reg, origin_dungeon) = enabled[region.name]
                if ((origin_reg != region.name) and (origin_dungeon != region.dungeon)):
                    if (key not in entrance_map.keys()):
                        key = ' '.join(key.split(' ')[:(- 1)])
                    entrance_map[key].append(region.name)
            if drop_exception(region.name):
                entrance_list.append(region.name)
def find_enabled_origins(sectors, enabled, entrance_list, entrance_map, key):
    for sector in sectors:
        for region in sector.regions:
            if ((region.name in enabled.keys()) and (region.name not in entrance_list)):
                entrance_list.append(region.name)
                (origin_reg, origin_dungeon) = enabled[region.name]
                if ((origin_reg != region.name) and (origin_dungeon != region.dungeon)):
                    if (key not in entrance_map.keys()):
                        key = ' '.join(key.split(' ')[:(- 1)])
                    entrance_map[key].append(region.name)
            if drop_exception(region.name):
                entrance_list.append(region.name)