	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_piped_stdio             ## -- Begin function create_piped_stdio
	.p2align	4, 0x90
_create_piped_stdio:                    ## @create_piped_stdio
	.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	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_open_fd_from_actual_fd
	movq	_current@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_open_fd_from_actual_fd
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_open_fd_from_actual_fd
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 16(%rcx)
	xorl	%ebx, %ebx
	cmpq	$1, %rax
	sbbl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_current,8,3                    ## @current
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.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	_create_piped_stdio             ; -- Begin function create_piped_stdio
	.p2align	2
_create_piped_stdio:                    ; @create_piped_stdio
	.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
Lloh0:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_open_fd_from_actual_fd
Lloh3:
	adrp	x19, _current@GOTPAGE
Lloh4:
	ldr	x19, [x19, _current@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x0, [x8]
	cbz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_open_fd_from_actual_fd
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x0, [x8, #8]
	cbz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_open_fd_from_actual_fd
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x0, [x8, #16]
	cmp	x0, #0
	csetm	w0, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_current,8,3                    ; @current
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
.subsections_via_symbols
