>>60553532
>>60553538
>>implying you can produce it legally in some circumstances

You can, cocaine is only a schedule II drug, not schedule 1. This means that there are some narrow accepted medical use cases. It is sometimes still used as a local anesthetic in surgeries. pic related

https://www.healthline.com/health/medical-cocaine#uses