Gear shift wire on SRAM after an accident
It should run something like this, and be pinched under the washer behind the pinch bolt. judging by the scratches on your derailleur (if they are from the fall), it's pretty likely that your derailleur and/or derailleur hanger are bent.

SRAM has pretty great manuals @ service.sram.com if you know the model of your derailleur that should include cable routing.