Have you ever been threatened with being fired?
Try this, ask for a pen and a piece of paper, write your resignation letter, sign it, hand it back to them, and walk out the door.
9 times out of 10 you won't get to the door, half the time you'll have a pay raise by the time you get back to the office.
You're a huge valuable asset that the company has invested lots of money in that knows how things work. They want to shave pennies not lose investments. Act accordingly.