	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aio_file_test
_aio_file_test:                         ## @aio_file_test
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_ATF_REQUIRE_KERNEL_MODULE
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_UNSAFE_AIO
	movq	_FILE_PATHNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	setne	%bl
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_ATF_REQUIRE_MSG
	movq	_FILE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r12d, %edx
	callq	_aio_context_init
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_aio_write_test
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_aio_read_test
	movl	%r12d, %edi
	callq	_close
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aio"

	.comm	_FILE_PATHNAME,4,2              ## @FILE_PATHNAME
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
L_.str.1:                               ## @.str.1
	.asciz	"open failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_FILE_LEN,4,2                   ## @FILE_LEN
	.no_dead_strip	_aio_file_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aio_file_test
_aio_file_test:                         ; @aio_file_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ATF_REQUIRE_KERNEL_MODULE
	bl	_ATF_REQUIRE_UNSAFE_AIO
Lloh2:
	adrp	x8, _FILE_PATHNAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FILE_PATHNAME@GOTPAGEOFF]
Lloh4:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #384
	bl	_open
	mov	x21, x0
	cmn	w0, #1
	cset	w22, ne
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_ATF_REQUIRE_MSG
Lloh16:
	adrp	x8, _FILE_LEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FILE_LEN@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x21
	bl	_aio_context_init
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x19
	bl	_aio_write_test
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x19
	bl	_aio_read_test
	mov	x0, x21
	bl	_close
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aio"

	.comm	_FILE_PATHNAME,4,2              ; @FILE_PATHNAME
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
l_.str.1:                               ; @.str.1
	.asciz	"open failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_FILE_LEN,4,2                   ; @FILE_LEN
	.no_dead_strip	_aio_file_test
.subsections_via_symbols
