	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aio_unix_socketpair_test
_aio_unix_socketpair_test:              ## @aio_unix_socketpair_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_ATF_REQUIRE_KERNEL_MODULE
	movq	_PF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	setne	%bl
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_ATF_REQUIRE_MSG
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %edx
	movq	_UNIX_SOCKETPAIR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_aio_context_init
	movq	_RUSAGE_SELF@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-80(%rbp), %rsi
	callq	_getrusage
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	setne	%bl
	movl	(%r13), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_ATF_REQUIRE_MSG
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r15d, %r14d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_aio_write_test
	movl	(%r12), %edi
	leaq	-104(%rbp), %r12
	movq	%r12, %rsi
	callq	_getrusage
	xorl	%r15d, %r15d
	cmpl	$-1, %eax
	setne	%r15b
	movl	(%r13), %edi
	callq	_strerror
	movl	%r15d, %edi
	leaq	L_.str.2(%rip), %r15
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ATF_REQUIRE_MSG
	movq	-80(%rbp), %rax
	incq	%rax
	xorl	%edi, %edi
	cmpq	%rax, -104(%rbp)
	sete	%dil
	callq	_ATF_REQUIRE
	movups	-104(%rbp), %xmm0
	movaps	%xmm0, -80(%rbp)
	leaq	-64(%rbp), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_aio_read_test
	movq	_RUSAGE_SELF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_getrusage
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	setne	%bl
	movl	(%r13), %edi
	callq	_strerror
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ATF_REQUIRE_MSG
	movq	-72(%rbp), %rax
	incq	%rax
	xorl	%edi, %edi
	cmpq	%rax, -96(%rbp)
	sete	%dil
	callq	_ATF_REQUIRE
	movl	-56(%rbp), %edi
	callq	_close
	movl	-52(%rbp), %edi
	callq	_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aio"

	.comm	_PF_UNIX,4,2                    ## @PF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"socketpair failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_UNIX_SOCKETPAIR_LEN,4,2        ## @UNIX_SOCKETPAIR_LEN
	.comm	_RUSAGE_SELF,4,2                ## @RUSAGE_SELF
L_.str.2:                               ## @.str.2
	.asciz	"getrusage failed: %s"

	.no_dead_strip	_aio_unix_socketpair_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aio_unix_socketpair_test
_aio_unix_socketpair_test:              ; @aio_unix_socketpair_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ATF_REQUIRE_KERNEL_MODULE
Lloh5:
	adrp	x8, _PF_UNIX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PF_UNIX@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x3, sp, #48
	mov	w2, #0
	bl	_socketpair
	cmn	w0, #1
	cset	w21, ne
Lloh11:
	adrp	x23, _errno@GOTPAGE
Lloh12:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_strerror
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_ATF_REQUIRE_MSG
	ldp	w1, w2, [sp, #48]
Lloh15:
	adrp	x8, _UNIX_SOCKETPAIR_LEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UNIX_SOCKETPAIR_LEN@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x0, sp, #40
	bl	_aio_context_init
Lloh18:
	adrp	x24, _RUSAGE_SELF@GOTPAGE
Lloh19:
	ldr	x24, [x24, _RUSAGE_SELF@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x1, sp, #16
	bl	_getrusage
	cmn	w0, #1
	cset	w22, ne
	ldr	w0, [x23]
	bl	_strerror
	mov	x2, x0
Lloh20:
	adrp	x21, l_.str.2@PAGE
Lloh21:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_ATF_REQUIRE_MSG
	add	x0, sp, #40
	mov	x1, x20
	mov	x2, x19
	bl	_aio_write_test
	ldr	w0, [x24]
	mov	x1, sp
	bl	_getrusage
	cmn	w0, #1
	cset	w22, ne
	ldr	w0, [x23]
	bl	_strerror
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_ATF_REQUIRE_MSG
	ldr	x8, [sp]
	ldr	x9, [sp, #16]
	add	x9, x9, #1
	cmp	x8, x9
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	q0, [sp]
	str	q0, [sp, #16]
	add	x0, sp, #40
	mov	x1, x20
	mov	x2, x19
	bl	_aio_read_test
	ldr	w0, [x24]
	mov	x1, sp
	bl	_getrusage
	cmn	w0, #1
	cset	w19, ne
	ldr	w0, [x23]
	bl	_strerror
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ATF_REQUIRE_MSG
	ldr	x8, [sp, #8]
	ldr	x9, [sp, #24]
	add	x9, x9, #1
	cmp	x8, x9
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w0, [sp, #48]
	bl	_close
	ldr	w0, [sp, #52]
	bl	_close
	ldr	x8, [sp, #56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aio"

	.comm	_PF_UNIX,4,2                    ; @PF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"socketpair failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_UNIX_SOCKETPAIR_LEN,4,2        ; @UNIX_SOCKETPAIR_LEN
	.comm	_RUSAGE_SELF,4,2                ; @RUSAGE_SELF
l_.str.2:                               ; @.str.2
	.asciz	"getrusage failed: %s"

	.no_dead_strip	_aio_unix_socketpair_test
.subsections_via_symbols
