	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swapfunc
_swapfunc:                              ## @swapfunc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_pthread_self
	movq	_nself@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	_oself@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_ATF_REQUIRE_EQ
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_nctx@GOTPCREL(%rip), %rdi
	movq	_octx@GOTPCREL(%rip), %rsi
	callq	_swapcontext
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ATF_REQUIRE                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nself,8,3                      ## @nself
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"after swapcontext self = %p\n"

	.comm	_oself,4,2                      ## @oself
	.comm	_nctx,4,2                       ## @nctx
	.comm	_octx,4,2                       ## @octx
L_str:                                  ## @str
	.asciz	"Test succeeded"

	.no_dead_strip	_swapfunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swapfunc
_swapfunc:                              ; @swapfunc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_pthread_self
Lloh0:
	adrp	x19, _nself@GOTPAGE
Lloh1:
	ldr	x19, [x19, _nself@GOTPAGEOFF]
	str	x0, [x19]
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh4:
	adrp	x8, _oself@GOTPAGE
Lloh5:
	ldr	x8, [x8, _oself@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_ATF_REQUIRE_EQ
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh9:
	adrp	x0, _nctx@GOTPAGE
Lloh10:
	ldr	x0, [x0, _nctx@GOTPAGEOFF]
Lloh11:
	adrp	x1, _octx@GOTPAGE
Lloh12:
	ldr	x1, [x1, _octx@GOTPAGEOFF]
	bl	_swapcontext
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ATF_REQUIRE
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_nself,8,3                      ; @nself
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"after swapcontext self = %p\n"

	.comm	_oself,4,2                      ; @oself
	.comm	_nctx,4,2                       ; @nctx
	.comm	_octx,4,2                       ; @octx
l_str:                                  ; @str
	.asciz	"Test succeeded"

	.no_dead_strip	_swapfunc
.subsections_via_symbols
