	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_cb
_read_cb:                               ## @read_cb
	.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	%rdx, %rbx
	leaq	-36(%rbp), %rsi
	xorl	%r12d, %r12d
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_recv
	testl	%eax, %eax
	movq	_failures@GOTPCREL(%rip), %r14
	movq	_count@GOTPCREL(%rip), %rcx
	cmovsq	%r14, %rcx
	movl	$1, %edx
	cmovnsl	%eax, %edx
	addl	%edx, (%rcx)
	movq	_writes@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.1:
	incl	%ebx
	movq	_num_pipes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	cmovll	%r12d, %eax
	subl	%eax, %ebx
	movq	_pipes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leal	(%rbx,%rbx), %ecx
	incl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_send
	cmpl	$1, %eax
	je	LBB0_3
## %bb.2:
	incl	(%r14)
LBB0_3:
	decq	(%r15)
	movq	_fired@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_count,4,2                      ## @count
	.comm	_failures,4,2                   ## @failures
	.comm	_writes,8,3                     ## @writes
	.comm	_num_pipes,4,2                  ## @num_pipes
	.comm	_pipes,8,3                      ## @pipes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"e"

	.comm	_fired,4,2                      ## @fired
	.no_dead_strip	_read_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_cb
_read_cb:                               ; @read_cb
	.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, x2
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #0
	bl	_recv
Lloh0:
	adrp	x20, _failures@GOTPAGE
Lloh1:
	ldr	x20, [x20, _failures@GOTPAGEOFF]
Lloh2:
	adrp	x8, _count@GOTPAGE
Lloh3:
	ldr	x8, [x8, _count@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x20, ge
	csinc	w9, w0, wzr, ge
	ldr	w10, [x8]
	add	w9, w10, w9
	str	w9, [x8]
Lloh4:
	adrp	x21, _writes@GOTPAGE
Lloh5:
	ldr	x21, [x21, _writes@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _num_pipes@GOTPAGE
Lloh7:
	ldr	x8, [x8, _num_pipes@GOTPAGEOFF]
	add	w9, w19, #1
Lloh8:
	ldr	w8, [x8]
	cmp	w9, w8
	csel	w8, wzr, w8, lt
Lloh9:
	adrp	x10, _pipes@GOTPAGE
Lloh10:
	ldr	x10, [x10, _pipes@GOTPAGEOFF]
	sub	w8, w9, w8
Lloh11:
	ldr	x9, [x10]
	mov	w10, #1
	bfi	w10, w8, #1, #31
	ldr	w0, [x9, w10, sxtw #2]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	mov	w3, #0
	bl	_send
	cmp	w0, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_3:
	ldr	x8, [x21]
	sub	x8, x8, #1
	str	x8, [x21]
Lloh14:
	adrp	x8, _fired@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fired@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_4:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_count,4,2                      ; @count
	.comm	_failures,4,2                   ; @failures
	.comm	_writes,8,3                     ; @writes
	.comm	_num_pipes,4,2                  ; @num_pipes
	.comm	_pipes,8,3                      ; @pipes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"e"

	.comm	_fired,4,2                      ; @fired
	.no_dead_strip	_read_cb
.subsections_via_symbols
