First you need a skilled ($$$) and intelligent ($$$$) attorney who WANTS ($$$$$) you to stay out of prison (not a public defender), then you need to figure out how to not get bankrupted paying for it.
You do that by getting the state to pay YOU in advance a large sum for your defense which you...