Mavs will have about 35 million coming off the books this summer.
If they amnesty Haywood, they'll have a payroll of about 33 million which leaves them 25 million under the cap.
If this has any chance of happening (and working well) Dirk would have to use the new provision in the CBA to reduce his salary and increase the length of his contract, that way they'd be able to sign both Deron + Dwight.
Hopefully Kidd would resign for peanuts to help them get another chip. Let the rest of the pieces fall ass they may.