It's not terribly complicated nor costly. And if the only thing wrong with the car is the ignition switch it'll trivially pass the "brake and light adjustment" (CA) inspection.
Taking the cash and buying the car back at salvage value is a no-brainer in this situation.
Taking the cash and buying the car back at salvage value is a no-brainer in this situation.