What should happen is the judge will say you are charged with 12500(a) and 23123(a) and that the fine for both is a certain amount of money. You pay the money and you are on your way. Since the 12500 is correctable, you will usually be given the option to get your license come back to court to show the judge you got your license. If you do this, the 12500 could be dismissed or reduced and the fine could be lowered. If you have priors, is you may have some problems. If you have immigration issues, you should hire an attorney to handle your case. Because an attorney can go to court for you and handle the whole thing so you don't have to go to court. You could probably find an attorney to handle this case for less than $1000.
What do you mean you couldn't renew because of your status? What status? To clear the 12500 with the least inconvenience to yourself you'll have to get a valid license. Are there obstacles preventing you from doing that?