"Well regulated" translated from 1700's speak just means "in good working order", not meaning regulated by a bureaucracy issuing permits.
The intention was for state governors not having to rely solely on National Guardsman or Federal government, and can simply pluck a militia ran by civilians who developed a military-like hierarchy in their organization to answer to said governor of the state in order to address issues withinthe states with threats of violence.