	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_eagain
_test_eagain:                           ## @test_eagain
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
                                        ## kill: def $edi killed $edi def $rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edi, -64(%rbp)
	movl	%esi, -60(%rbp)
	leal	(%rsi,%rdi), %ebx
	addl	%ebx, %ebx
	movslq	%ebx, %r15
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_MIN
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %r14
	movq	%r15, %rax
	orq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%r14
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r15d
LBB0_3:
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	-56(%rbp), %rdi
	callq	_do_socketpair_nonblocking
	movl	-56(%rbp), %edi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SO_SNDBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movl	$4, %r8d
	callq	_setsockopt
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_ATF_REQUIRE_EQ
	movl	-52(%rbp), %edi
	movl	(%r12), %esi
	movq	_SO_RCVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-60(%rbp), %rcx
	movl	$4, %r8d
	callq	_setsockopt
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_ATF_REQUIRE_EQ
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bzero
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.4:
	movq	_MSG_EOR@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-56(%rbp), %edi
	callq	_close
	movl	-52(%rbp), %edi
	callq	_close
	xorl	%eax, %eax
	callq	_atf_tc_pass
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	cmpl	%r15d, %r12d
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-56(%rbp), %edi
	movl	(%r13), %ecx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_send
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_test_eagain.cold.1
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	callq	_atf_tc_fail
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function test_eagain.cold.1
_test_eagain.cold.1:                    ## @test_eagain.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	leaq	L_.str.1(%rip), %rdi
	callq	_atf_tc_fail
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_SNDBUF,4,2                  ## @SO_SNDBUF
	.comm	_SO_RCVBUF,4,2                  ## @SO_RCVBUF
	.comm	_MSG_EOR,4,2                    ## @MSG_EOR
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send"

L_.str.1:                               ## @.str.1
	.asciz	"send returned < 0 but not EAGAIN"

L_.str.2:                               ## @.str.2
	.asciz	"Never got EAGAIN"

	.no_dead_strip	_test_eagain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_eagain
_test_eagain:                           ; @test_eagain
	.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, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	stp	w1, w0, [x29, #-88]
	add	w8, w1, w0
	lsl	w8, w8, #1
	sxtw	x20, w8
	bl	_MIN
	mov	x21, sp
	add	w8, w0, #3
	cmp	w0, #0
	csel	w8, w8, w0, lt
	sbfx	x19, x8, #2, #30
	add	x8, x19, #15
	and	x8, x8, #0xfffffffffffffff0
	udiv	x22, x20, x19
	mov	x9, x19
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
	sub	x0, x29, #80
	bl	_do_socketpair_nonblocking
	ldur	w0, [x29, #-80]
Lloh5:
	adrp	x23, _SOL_SOCKET@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh7:
	adrp	x8, _SO_SNDBUF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SO_SNDBUF@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	sub	x3, x29, #84
	mov	w4, #4
	bl	_setsockopt
	mov	x1, x0
	mov	w0, #0
	bl	_ATF_REQUIRE_EQ
	ldur	w0, [x29, #-76]
	ldr	w1, [x23]
Lloh10:
	adrp	x8, _SO_RCVBUF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SO_RCVBUF@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	sub	x3, x29, #88
	mov	w4, #4
	bl	_setsockopt
	mov	x1, x0
	mov	w0, #0
	bl	_ATF_REQUIRE_EQ
	mov	x0, x20
	mov	x1, x19
	bl	_bzero
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w23, #0
Lloh13:
	adrp	x24, _MSG_EOR@GOTPAGE
Lloh14:
	ldr	x24, [x24, _MSG_EOR@GOTPAGEOFF]
Lloh15:
	adrp	x25, _errno@GOTPAGE
Lloh16:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh17:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldur	w0, [x29, #-80]
	bl	_close
	ldur	w0, [x29, #-76]
	bl	_close
	bl	_atf_tc_pass
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	cmp	w23, w22
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x29, #-80]
	ldr	w3, [x24]
	mov	x1, x20
	mov	x2, x19
	bl	_send
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_test_eagain.cold.1
	b	LBB0_3
LBB0_7:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail
	mov	sp, x21
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function test_eagain.cold.1
_test_eagain.cold.1:                    ; @test_eagain.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_fail
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_SNDBUF,4,2                  ; @SO_SNDBUF
	.comm	_SO_RCVBUF,4,2                  ; @SO_RCVBUF
	.comm	_MSG_EOR,4,2                    ; @MSG_EOR
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send"

l_.str.1:                               ; @.str.1
	.asciz	"send returned < 0 but not EAGAIN"

l_.str.2:                               ; @.str.2
	.asciz	"Never got EAGAIN"

	.no_dead_strip	_test_eagain
.subsections_via_symbols
