Generally, you divide everything equally.
But you can negotiate an offset.
For example: If you have accumulated 100,000 in your 401k since you got married and your house has accumulated 100,000 in equity since you got married you might be able to give the house to your spouse and you keep the entire 401k.
That's just an example. How you actually end up depends on your assets and debts and what you can negotiate.