Adderall anyone? There's a panoply of legal ways to obtain amphetamines, but the US medical system is far less competent at customer service than the black market due to regulatory capture.
I think it's critical to appreciate that Physician Regulations, the AMA, etc. are the main culprits here. How they avoid getting properly blamed for things like the opioid epidemic, I have no idea.