reverse_map_total_n function

Reverse the *_map_total_n() process