shithub: scc

ref: 61d8ab34d1ccd7ffdc3fd0e3fe73bf1a87bf0af6
dir: /src/libc/arch/amd64/setjmp.s/

View raw version
	.file	"setjmp.s"

	.text
	.globl	setjmp,_setjmp
_setjmp:
setjmp:
	mov	%rbx,(%rdi)
	mov	%rbp,8(%rdi)
	mov	%r12,16(%rdi)
	mov	%r13,24(%rdi)
	mov	%r14,32(%rdi)
	mov	%r15,40(%rdi)
	lea	8(%rsp),%rdx
	mov	%rdx,48(%rdi)
	mov	(%rsp),%rdx
	mov	%rdx,56(%rdi)
	xor	%rax,%rax
	ret