	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function attach_fork_parent
_attach_fork_parent:                    ## @attach_fork_parent
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_close
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_CHILD_REQUIRE
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, -20(%rbp)
	movl	4(%r14), %edi
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_write
	xorl	%edi, %edi
	cmpl	$4, %eax
	sete	%dil
	callq	_CHILD_REQUIRE
	movl	4(%r14), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_read
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_CHILD_REQUIRE                  ## TAILCALL
LBB0_1:
	movl	$3, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_attach_fork_parent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function attach_fork_parent
_attach_fork_parent:                    ; @attach_fork_parent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	bl	_close
	bl	_fork
	mov	x20, x0
	cmn	w0, #1
	cset	w0, ne
	bl	_CHILD_REQUIRE
	cbnz	w20, LBB0_2
; %bb.1:
	bl	_getpid
	str	w0, [sp, #12]
	ldr	w0, [x19, #4]
	add	x1, sp, #12
	mov	w2, #4
	bl	_write
	cmp	w0, #4
	cset	w0, eq
	bl	_CHILD_REQUIRE
	ldr	w0, [x19, #4]
	add	x1, sp, #12
	mov	w2, #4
	bl	_read
	cmp	x0, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_CHILD_REQUIRE
LBB0_2:
	mov	w0, #3
	bl	__exit
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_attach_fork_parent
.subsections_via_symbols
