Here are a couple more comments just for the hell of it.
First if you have a small calibre weapon, make sure to use subsonic loads. Although they don't have the knockdown power of a standard load, they also have less chance of providing a through and through wound, where the ammo then wounds a bystander.
Make sure to be aware of your surroundings. Unfortunately you are in a world where you are not the only dog carrying a gun. At some point you will see police advancing on your position with weapons drawn. Place your weapon on the ground and put your foot on it. Hold your hands up and away from your body. Identify yourself as a mugging victim and indicate the location of the weapon. Because you are considered a threat, you will be ordered to back away from the weapon and kneel on the ground with your hands laced behind your head. Do what you are asked to do without protest. Have the license on your person to present to the officer. Offer a brief statement making sure to indicate that you were attacked, threatened with death and that you feared for you life. Make sure to indicate this several times in your statement. If you are not released at the scene, make sure to contact your attorney as soon as you are brought into a police station. When questioned at a police station, offer to repeat your original statement but no more or less until your attorney appears. Usually your weapon will be impounded for a period of days for testing. Assuming your statement is good, you have witnessess and testing of your weapon confirms evidence collected at the scene, you should be able to file to reclaim your weapon within 30 days. Your attorney can in some cases expedite this process. You're still subject to civil suit by the way, but at least you aren't sitting in a cell.
See how much fun this is?
Edit:
Please no PM's about this, and to anticipate the obvious questions
"How do I know all this?"
Well I received excellent training in the service. Towards the end of my service, I also trained a few myself. I volunteered my services to the LAPD for a while, and finally my Dad's legal firm filled in the blanks for me a long, long time ago. Be sure to contact your own advisors because these protocols can differ from place to place across the country.