	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_pipe_reader
_test_pipe_reader:                      ## @test_pipe_reader
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r14)
	jle	LBB0_6
## %bb.1:
	movl	$1, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	-1(%rax), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_memset
	movl	(%r14), %edx
	movl	8(%r14), %edi
	movq	_MSG_WAITALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	callq	_recv
	movq	%rbx, %r13
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_3
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %ecx
	movl	%ecx, %edi
	movl	%ebx, %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_ATF_CHECK_EQ_MSG
	movl	(%r14), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_memcmp
	xorl	%edi, %edi
	movl	%eax, %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_ATF_CHECK_EQ_MSG
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	4(%r14), %eax
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rbx
	movl	(%r14), %r13d
	incl	%eax
	jmp	LBB0_2
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_test_pipe_reader.cold.1
	jmp	LBB0_4
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function test_pipe_reader.cold.1
_test_pipe_reader.cold.1:               ## @test_pipe_reader.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	_MSG_WAITALL,4,2                ## @MSG_WAITALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recv"

L_.str.1:                               ## @.str.1
	.asciz	"recv returned < 0"

L_.str.2:                               ## @.str.2
	.asciz	"expected %zd=send(...) but got %zd"

L_.str.3:                               ## @.str.3
	.asciz	"Received data miscompare on packet %d"

	.no_dead_strip	_test_pipe_reader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_pipe_reader
_test_pipe_reader:                      ; @test_pipe_reader
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w2, [x0]
	mov	x9, x2
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x12, x9, #0x1fffffff0
	sub	x20, x8, x12
	mov	sp, x20
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w26, #1
Lloh7:
	adrp	x27, _MSG_WAITALL@GOTPAGE
Lloh8:
	ldr	x27, [x27, _MSG_WAITALL@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.2@PAGE
Lloh10:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh11:
	adrp	x23, l_.str.3@PAGE
Lloh12:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w24, w26, #1
	mov	x0, x21
	mov	x1, x24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
	ldr	w0, [x19, #8]
	ldr	w2, [x19]
	ldr	w3, [x27]
	mov	x1, x20
	bl	_recv
	mov	x25, x0
	tbnz	x0, #63, LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19]
	str	x25, [sp, #-16]!
	mov	x1, x25
	mov	x2, x22
	mov	x3, x0
	bl	_ATF_CHECK_EQ_MSG
	add	sp, sp, #16
	ldr	w2, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_memcmp
	mov	x1, x0
	mov	w0, #0
	mov	x2, x23
	mov	x3, x24
	bl	_ATF_CHECK_EQ_MSG
	ldr	w8, [x19, #4]
	cmp	w26, w8
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x19]
	add	w26, w26, #1
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_test_pipe_reader.cold.1
	b	LBB0_3
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, #0
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function test_pipe_reader.cold.1
_test_pipe_reader.cold.1:               ; @test_pipe_reader.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
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_fail
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_WAITALL,4,2                ; @MSG_WAITALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recv"

l_.str.1:                               ; @.str.1
	.asciz	"recv returned < 0"

l_.str.2:                               ; @.str.2
	.asciz	"expected %zd=send(...) but got %zd"

l_.str.3:                               ; @.str.3
	.asciz	"Received data miscompare on packet %d"

	.no_dead_strip	_test_pipe_reader
.subsections_via_symbols
