15589Fermer15591
bearbecueLe 29/03/2011 à 12:40
; handle the 'this' and return ptr balls-breaking order on the windows ABI: their order is reversed, 'this' comes first, them the return ptr... god dammit...

test rax, rax
jnz _SkipFuckingSwap
mov r11, [rsp + r12 + 38h] ; right.. we do have a return value. see if we happen to have a 'this' too:
cmp r11d, CC_THISCALL
jne _SkipFuckingSwap
xchg rcx, rdx ; fucker !
_SkipFuckingSwap:

call r10



</goret> embarrassed