#include "../../../cmd/ld/textflag.h"
TEXT crosscall2(SB),NOSPLIT,$0
SUBQ $0x58, SP
MOVQ BX, 0x10(SP)
MOVQ BP, 0x18(SP)
MOVQ R12, 0x20(SP)
MOVQ R13, 0x28(SP)
MOVQ R14, 0x30(SP)
MOVQ R15, 0x38(SP)
#ifdef GOOS_windows
MOVQ DI, 0x40(SP)
MOVQ SI, 0x48(SP)
MOVQ DX, 0(SP)
MOVQ R8, 8(SP)
CALL CX
MOVQ 0x40(SP), DI
MOVQ 0x48(SP), SI
#else
MOVQ SI, 0(SP)
MOVQ DX, 8(SP)
CALL DI
#endif
MOVQ 0x10(SP), BX
MOVQ 0x18(SP), BP
MOVQ 0x20(SP), R12
MOVQ 0x28(SP), R13
MOVQ 0x30(SP), R14
MOVQ 0x38(SP), R15
ADDQ $0x58, SP
RET