	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function child_worker
_child_worker:                          ## @child_worker
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_pipe
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	xorl	%eax, %eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.2:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
## %bb.3:
	movl	-48(%rbp), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_read
	testq	%rax, %rax
	js	LBB0_8
## %bb.4:
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
	testq	%rax, %rax
	js	LBB0_9
## %bb.5:
	movl	-48(%rbp), %edi
	callq	_close
	movl	-44(%rbp), %edi
	callq	_close
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_fail_errno
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
LBB0_10:
	callq	_fail_errno
	movl	-48(%rbp), %edi
	callq	_close
	movl	-44(%rbp), %edi
	callq	_close
LBB0_11:
	movl	$-1, %r14d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
LBB0_15:
	movq	%r15, %rdi
	callq	*%r14
	movl	%eax, -52(%rbp)
	movl	-44(%rbp), %edi
	leaq	-52(%rbp), %rsi
	movl	$4, %edx
	callq	_write
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pipe"

L_.str.1:                               ## @.str.1
	.asciz	"fork"

L_.str.2:                               ## @.str.2
	.asciz	"read(pipe)"

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

	.no_dead_strip	_child_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function child_worker
_child_worker:                          ; @child_worker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, 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, #24]
	add	x0, sp, #16
	bl	_pipe
	tbnz	x0, #63, LBB0_6
; %bb.1:
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.3:
	ldr	w0, [sp, #16]
	mov	x1, x19
	mov	w2, #4
	bl	_read
	tbnz	x0, #63, LBB0_8
; %bb.4:
	mov	x0, x22
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
	tbnz	x0, #63, LBB0_9
; %bb.5:
	ldr	w0, [sp, #16]
	bl	_close
	ldr	w0, [sp, #20]
	bl	_close
	mov	w0, #0
	b	LBB0_12
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fail_errno
	b	LBB0_11
LBB0_7:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	bl	_fail_errno
	ldr	w0, [sp, #16]
	bl	_close
	ldr	w0, [sp, #20]
	bl	_close
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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
	add	sp, sp, #80
	ret
LBB0_14:
	bl	___stack_chk_fail
LBB0_15:
	mov	x0, x21
	blr	x20
	str	w0, [sp, #12]
	ldr	w0, [sp, #20]
	add	x1, sp, #12
	mov	w2, #4
	bl	_write
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pipe"

l_.str.1:                               ; @.str.1
	.asciz	"fork"

l_.str.2:                               ; @.str.2
	.asciz	"read(pipe)"

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

	.no_dead_strip	_child_worker
.subsections_via_symbols
