at 9:26 of the youtube video, right before he gets out, you will hear a clunk/clatter noise, which i think is him mishandling the gun and it banging into the floor/door sweep. he looks down at this exact moment at the gun (right hand), just before he is sprayed again. if you watch fast, it looks like he turns away because of the spray, but hes actually looking at the gun.
he doesn't want to leave the car because he knows they will search/tow it and find the gun, which will guarantee him prison time if he is a felon or the gun is otherwise illegal. so, he makes the choice to exit the vehicle with the gun. exactly where he retrieved the gun is unclear (console, under seat, glove box). i think it's clear that he didn't get the gun from the cop who was trying to restrain his right arm because the gun would have had to be on the cop's left hip, but was on the right hip.
the vehicle was never the issue, it's a piece of shit, which is why he appears to leave it there when he could have driven away. if there was more contraband in the car, like drugs (or even he was going to a drug deal, "i got people waiting on me"), he would have taken the car instead of leaving with his friend (which i assume he did, although the video cuts off too soon to confirm that).
what's not clear is what would have happened if a few more seconds went by after his friend pulls up. you can see the friend pull up around 8:53 and the perp then says "matt, help! this is my friend."
was his friend actually going to just give him a ride, or was he backup for a shootout? his friend showed up really fast, drove past 2 cops grappling with his friend in the driver's seat, and we dont know if he was on the phone the whole time, as the perp has his phone in his left hand until almost the last second.
another turning point is 8:21 where he actually does get out (without being grappled) but sits back down after they command him to get on the ground. this was the turning point where he realized he was definitely getting arrested and not getting away, which meant they would find the gun, which means guaranteed prison time.
also note the defense filed a motion to make this footage public, somehow believing it will help the perp. it's odd that the footage is edited; for example, the camera perspective changes to the dashcam at 9:04. this isn't raw footage, it's a package someone has edited. it's also odd that the footage abruptly ends immediately after the shooting despite being 10 minutes long. why can't we see maybe 30-60 seconds of aftermath to see where the perp goes? the friend is also being charged as an accomplice, would be interesting to confirm directly that the perp left with his friend.
https://ktul.com/news/local/defense...-judge-to-release-body-cam-in-david-ware-case