Pass correct thunk arg register to CallApiFunctionAndReturn