	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_fault
_read_fault:                            ## @read_fault
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movb	$123, -17(%rbp)
	xorl	%eax, %eax
	callq	_FSTEST_ENTER
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %r14
	movq	%r14, %rdi
	movl	$511, %edx                      ## imm = 0x1FF
	xorl	%eax, %eax
	callq	_rump_sys_open
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_RL
	leaq	-17(%rbp), %rsi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_rump_sys_write
	movl	%eax, %edi
	movl	$1, %esi
	callq	_ATF_REQUIRE_EQ
	movl	%ebx, %edi
	callq	_rump_sys_close
	movl	%eax, %edi
	callq	_RL
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_RSYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_rump_sys_open
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_RL
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_rump_sys_read
	xorl	%esi, %esi
	cmpl	$-1, %eax
	sete	%sil
	movl	%r14d, %edi
	callq	_ATF_REQUIRE_ERRNO
	movl	%ebx, %edi
	callq	_rump_sys_close
	movl	%eax, %edi
	callq	_RL
	xorl	%eax, %eax
	callq	_FSTEST_EXIT
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_SYNC,4,2                     ## @O_SYNC
	.comm	_O_RSYNC,4,2                    ## @O_RSYNC
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_read_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_fault
_read_fault:                            ; @read_fault
	.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
	mov	w8, #123
	strb	w8, [sp, #15]
	bl	_FSTEST_ENTER
Lloh0:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w8, #511
	str	x8, [sp]
Lloh6:
	adrp	x19, l_.str@PAGE
Lloh7:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rump_sys_open
	mov	x20, x0
	bl	_RL
	add	x1, sp, #15
	mov	x0, x20
	mov	w2, #1
	bl	_rump_sys_write
	mov	w1, #1
	bl	_ATF_REQUIRE_EQ
	mov	x0, x20
	bl	_rump_sys_close
	bl	_RL
Lloh8:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _O_SYNC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_SYNC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _O_RSYNC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _O_RSYNC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_rump_sys_open
	mov	x19, x0
	bl	_RL
Lloh17:
	adrp	x8, _EFAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #1
	bl	_rump_sys_read
	cmn	w0, #1
	cset	w1, eq
	mov	x0, x20
	bl	_ATF_REQUIRE_ERRNO
	mov	x0, x19
	bl	_rump_sys_close
	bl	_RL
	bl	_FSTEST_EXIT
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_SYNC,4,2                     ; @O_SYNC
	.comm	_O_RSYNC,4,2                    ; @O_RSYNC
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_read_fault
.subsections_via_symbols
