Mawadiʿ is the plural of mawdiʿ, meaning places. Mahajim is the plural of mihjam, associated with the cupping implement or cupping sites.
In the clause, halaqa is a past-tense verb, with the muhrim understood as the agent and mawadiʿa as its object. The subject is shaving at those sites, not simply undergoing a cupping procedure.