	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_after_unlink
_read_after_unlink:                     ## @read_after_unlink
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TBSIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	xorl	%eax, %eax
	callq	_FSTEST_ENTER
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rcx), %esi
	leaq	L_.str(%rip), %r12
	movq	%r12, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	xorl	%eax, %eax
	callq	_rump_sys_open
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_RL
	movl	(%r15), %edx
	movq	%r13, %rdi
	movl	$68, %esi
	callq	_memset
	movl	(%r15), %edx
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_rump_sys_write
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_ATF_REQUIRE_EQ
	movl	%ebx, %edi
	callq	_rump_sys_close
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_rump_sys_unmount
	xorl	%esi, %esi
	cmpl	$-1, %eax
	sete	%sil
	movl	%ebx, %edi
	callq	_ATF_REQUIRE_ERRNO
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_rump_sys_open
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_RL
	movq	%r12, %rdi
	callq	_rump_sys_unlink
	movl	%eax, %edi
	callq	_RL
	movl	(%r15), %edx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_rump_sys_read
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_ATF_REQUIRE_EQ
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_memcmp
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ATF_REQUIRE_EQ
	movl	%ebx, %edi
	callq	_rump_sys_close
	xorl	%eax, %eax
	callq	_FSTEST_EXIT
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TBSIZE,4,2                     ## @TBSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_read_after_unlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_after_unlink
_read_after_unlink:                     ; @read_after_unlink
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _TBSIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _TBSIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x19, x9, x12
	mov	sp, x19
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x20, x8, x12
	mov	sp, x20
	bl	_FSTEST_ENTER
Lloh9:
	adrp	x25, _O_RDWR@GOTPAGE
Lloh10:
	ldr	x25, [x25, _O_RDWR@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh11:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w8, #438
	str	x8, [sp, #-16]!
Lloh14:
	adrp	x22, l_.str@PAGE
Lloh15:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	bl	_rump_sys_open
	add	sp, sp, #16
	mov	x23, x0
	bl	_RL
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #68
	bl	_memset
	ldr	w2, [x24]
	mov	x0, x23
	mov	x1, x19
	bl	_rump_sys_write
	ldr	w1, [x24]
	bl	_ATF_REQUIRE_EQ
	mov	x0, x23
	bl	_rump_sys_close
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_rump_sys_unmount
	cmn	w0, #1
	cset	w1, eq
	mov	x0, x23
	bl	_ATF_REQUIRE_ERRNO
	ldr	w1, [x25]
	mov	x0, x22
	bl	_rump_sys_open
	mov	x21, x0
	bl	_RL
	mov	x0, x22
	bl	_rump_sys_unlink
	bl	_RL
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x20
	bl	_rump_sys_read
	ldr	w1, [x24]
	bl	_ATF_REQUIRE_EQ
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_memcmp
	mov	w1, #0
	bl	_ATF_REQUIRE_EQ
	mov	x0, x21
	bl	_rump_sys_close
	bl	_FSTEST_EXIT
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TBSIZE,4,2                     ; @TBSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_read_after_unlink
.subsections_via_symbols
