Microsoft x64 calling convention
Windows' own rules for function calls on x86-64 — four register arguments, 32 bytes of shadow space and no red zone — incompatible with what Linux uses on the very same CPU.
When Microsoft built 64-bit Windows it went its own way rather than adopting the System V convention. The first four arguments travel in rcx, rdx, r8 and r9, or xmm0–xmm3 for floating point. Slots are assigned by position: a float as the second argument takes xmm1 and leaves rdx empty. The caller must also reserve 32 bytes of shadow space on the stack, a parking spot where the callee can spill its register arguments — handy for debuggers and variadic functions.
More registers are callee-saved than on Linux, including rdi, rsi and xmm6–xmm15. There is no red zone. Instead, Windows requires every non-leaf function to describe its prologue in unwind tables, so exceptions can walk the stack without frame pointers. Anyone writing assembly for both platforms effectively writes it twice, and GCC and Clang carry an ms_abi attribute precisely so projects like Wine can call across the divide.