	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_stdio_child_use_pipes      ## -- Begin function fpm_stdio_child_use_pipes
	.p2align	4, 0x90
_fpm_stdio_child_use_pipes:             ## @fpm_stdio_child_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_fd_stdout@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	movq	_fd_stderr@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_close
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_close
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_close
	movq	(%r14), %rax
	movl	4(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_close                          ## TAILCALL
LBB0_2:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dup2                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fd_stdout,8,3                  ## @fd_stdout
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_fd_stderr,8,3                  ## @fd_stderr
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_stdio_child_use_pipes      ; -- Begin function fpm_stdio_child_use_pipes
	.p2align	2
_fpm_stdio_child_use_pipes:             ; @fpm_stdio_child_use_pipes
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x19, _fd_stdout@GOTPAGE
Lloh1:
	ldr	x19, [x19, _fd_stdout@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
Lloh2:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_dup2
Lloh5:
	adrp	x20, _fd_stderr@GOTPAGE
Lloh6:
	ldr	x20, [x20, _fd_stderr@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
Lloh7:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_dup2
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_close
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_close
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_close
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_close
LBB0_2:
Lloh10:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dup2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_fd_stdout,8,3                  ; @fd_stdout
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_fd_stderr,8,3                  ; @fd_stderr
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
.subsections_via_symbols
