While on patrol, Officers observed a subject possibly smoking an illicit substance. While conversing with him, the subject passed out. Suspecting it was Fentanyl, the officers administered two doses of Narcan and requested for Code 3 medical. The subject eventually gained consciousness. Medical arrived and transported the subject to SF General Hospital.