	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_copier
_setup_copier:                          ## @setup_copier
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_pipe_a_like
	leaq	-40(%rbp), %rdi
	callq	_pipe_a_like
	leaq	-48(%rbp), %rdi
	callq	_pipe_a_like
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	js	LBB0_1
## %bb.5:
	jne	LBB0_2
## %bb.6:
	movl	-28(%rbp), %edi
	callq	_close
	movl	-40(%rbp), %edi
	callq	_close
	movl	-48(%rbp), %edi
	callq	_close
	movl	-32(%rbp), %edi
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	movl	-36(%rbp), %edi
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	movl	-44(%rbp), %edi
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	movl	-32(%rbp), %edi
	callq	_close
	movl	-36(%rbp), %edi
	callq	_close
	movl	-44(%rbp), %edi
	callq	_close
	jmp	LBB0_7
LBB0_1:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_fatal
LBB0_2:
	movl	-32(%rbp), %edi
	callq	_close
	movl	-36(%rbp), %edi
	callq	_close
	movl	-44(%rbp), %edi
	callq	_close
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edx
	callq	_net_write
	cmpl	$1, %eax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	callq	_fatal
LBB0_4:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-28(%rbp), %esi
	movl	(%rbx), %edx
	movl	-40(%rbp), %ecx
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	-48(%rbp), %r9d
	movl	%r14d, (%rsp)
	callq	_rshd_loop
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fork"

L_.str.1:                               ## @.str.1
	.asciz	"Could not create child process."

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"net_write"

L_.str.4:                               ## @.str.4
	.asciz	"Write failure."

	.no_dead_strip	_setup_copier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_copier
_setup_copier:                          ; @setup_copier
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x0, sp, #16
	bl	_pipe_a_like
	add	x0, sp, #8
	bl	_pipe_a_like
	mov	x0, sp
	bl	_pipe_a_like
	bl	_fork
	tbnz	x0, #63, LBB0_3
; %bb.1:
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w0, [sp, #20]
	bl	_close
	ldr	w0, [sp, #8]
	bl	_close
	ldr	w0, [sp]
	bl	_close
	ldr	w0, [sp, #16]
Lloh3:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_dup2
	ldr	w0, [sp, #12]
Lloh6:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_dup2
	ldr	w0, [sp, #4]
Lloh9:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_dup2
	ldr	w0, [sp, #16]
	bl	_close
	ldr	w0, [sp, #12]
	bl	_close
	ldr	w0, [sp, #4]
	bl	_close
	b	LBB0_7
LBB0_3:
Lloh12:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_4:
	ldr	w0, [sp, #16]
	bl	_close
	ldr	w0, [sp, #12]
	bl	_close
	ldr	w0, [sp, #4]
	bl	_close
Lloh19:
	adrp	x20, _STDOUT_FILENO@GOTPAGE
Lloh20:
	ldr	x20, [x20, _STDOUT_FILENO@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_net_write
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x20]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh25:
	adrp	x2, l_.str.4@PAGE
Lloh26:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_fatal
LBB0_6:
Lloh27:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [sp, #20]
	ldr	w2, [x20]
	ldr	w3, [sp, #8]
Lloh30:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh32:
	ldr	w4, [x8]
	ldr	w5, [sp]
	mov	x6, x19
	bl	_rshd_loop
LBB0_7:
	ldr	x8, [sp, #24]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fork"

l_.str.1:                               ; @.str.1
	.asciz	"Could not create child process."

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"net_write"

l_.str.4:                               ; @.str.4
	.asciz	"Write failure."

	.no_dead_strip	_setup_copier
.subsections_via_symbols
