extract setting of arguments to be passed to a helper function
move the hardfloat specific argument copying code to the helper function