	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_stdio_parent_use_pipes     ## -- Begin function fpm_stdio_parent_use_pipes
	.p2align	4, 0x90
_fpm_stdio_parent_use_pipes:            ## @fpm_stdio_parent_use_pipes
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_fd_stdout@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	callq	_close
	movq	_fd_stderr@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	callq	_close
	movq	(%r14), %rax
	movq	(%rax), %rsi
	movq	%rsi, 24(%rbx)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	leaq	16(%rbx), %r14
	movq	_FPM_EV_READ@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_fpm_stdio_child_said@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%rbx, %r8
	callq	_fpm_event_set
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_fpm_event_add
	movq	8(%rbx), %rsi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %r8
	callq	_fpm_event_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fpm_event_add
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fd_stdout,8,3                  ## @fd_stdout
	.comm	_fd_stderr,8,3                  ## @fd_stderr
	.comm	_FPM_EV_READ,4,2                ## @FPM_EV_READ
	.comm	_fpm_stdio_child_said,4,2       ## @fpm_stdio_child_said
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_stdio_parent_use_pipes     ; -- Begin function fpm_stdio_parent_use_pipes
	.p2align	2
_fpm_stdio_parent_use_pipes:            ; @fpm_stdio_parent_use_pipes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _fd_stdout@GOTPAGE
Lloh1:
	ldr	x20, [x20, _fd_stdout@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	bl	_close
Lloh2:
	adrp	x21, _fd_stderr@GOTPAGE
Lloh3:
	ldr	x21, [x21, _fd_stderr@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8, #8]
	bl	_close
	ldr	x8, [x20]
	ldr	x1, [x8]
	str	x1, [x19, #24]
	ldr	x8, [x21]
	ldr	x8, [x8]
	str	x8, [x19, #8]
	add	x20, x19, #16
Lloh4:
	adrp	x21, _FPM_EV_READ@GOTPAGE
Lloh5:
	ldr	x21, [x21, _FPM_EV_READ@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh6:
	adrp	x22, _fpm_stdio_child_said@GOTPAGE
Lloh7:
	ldr	x22, [x22, _fpm_stdio_child_said@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x4, x19
	bl	_fpm_event_set
	mov	x0, x20
	mov	w1, #0
	bl	_fpm_event_add
	ldr	x1, [x19, #8]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	x4, x19
	bl	_fpm_event_set
	mov	x0, x19
	mov	w1, #0
	bl	_fpm_event_add
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_fd_stdout,8,3                  ; @fd_stdout
	.comm	_fd_stderr,8,3                  ; @fd_stderr
	.comm	_FPM_EV_READ,4,2                ; @FPM_EV_READ
	.comm	_fpm_stdio_child_said,4,2       ; @fpm_stdio_child_said
.subsections_via_symbols
