Added OverwriteMode logic for X32
Use stack to save and reload arguments when allocation might fail