	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aio_read_test
_aio_read_test:                         ## @aio_read_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movl	(%rbx), %esi
	callq	_bzero
	leaq	-56(%rbp), %rdi
	movl	$32, %esi
	callq	_bzero
	movq	8(%rbx), %rax
	movq	%rax, -32(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -40(%rbp)
	movq	$0, -48(%rbp)
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	movl	%eax, -52(%rbp)
LBB0_2:
	leaq	-56(%rbp), %rdi
	callq	_aio_read
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_atf_tc_fail
LBB0_4:
	leaq	-56(%rbp), %rdi
	callq	*%r14
	movq	%rax, %r14
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_atf_tc_fail
LBB0_6:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%r14d, %ecx
	callq	_ATF_REQUIRE_EQ_MSG
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	callq	_aio_test_buffer
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_atf_tc_fail
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aio_read failed: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"aio failed: %s"

L_.str.2:                               ## @.str.2
	.asciz	"aio short read (%jd)"

L_.str.3:                               ## @.str.3
	.asciz	"buffer mismatched"

	.no_dead_strip	_aio_read_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aio_read_test
_aio_read_test:                         ; @aio_read_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	w1, [x19]
	bl	_bzero
	add	x0, sp, #16
	mov	w1, #32
	bl	_bzero
	ldr	x8, [x19, #8]
	str	x8, [sp, #40]
	ldr	w8, [x19]
	str	w8, [sp, #16]
	ldr	w8, [x19, #16]
	str	w8, [sp, #32]
	str	xzr, [sp, #24]
	cbz	x21, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	str	w8, [sp, #20]
LBB0_2:
	add	x0, sp, #16
	bl	_aio_read
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_fail
LBB0_4:
	add	x0, sp, #16
	blr	x20
	mov	x20, x0
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_fail
LBB0_6:
	ldr	w1, [x19]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x20
	bl	_ATF_REQUIRE_EQ_MSG
	ldr	x0, [x19, #8]
	ldp	w1, w2, [x19]
	bl	_aio_test_buffer
	cbnz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_atf_tc_fail
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aio_read failed: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"aio failed: %s"

l_.str.2:                               ; @.str.2
	.asciz	"aio short read (%jd)"

l_.str.3:                               ; @.str.3
	.asciz	"buffer mismatched"

	.no_dead_strip	_aio_read_test
.subsections_via_symbols
