	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pipe_command                   ## -- Begin function pipe_command
	.p2align	4, 0x90
_pipe_command:                          ## @pipe_command
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -200(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	$-1, (%rbx)
LBB0_2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movl	$-1, 4(%rbx)
LBB0_4:
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	$-1, 8(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	_start_command
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:
	movl	(%rbx), %eax
	movl	%eax, -192(%rbp)
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -152(%rbp)
	movq	%r15, -168(%rbp)
	movq	%r13, -160(%rbp)
	movl	$1, %esi
	testq	%r12, %r12
	je	LBB0_13
LBB0_12:
	movl	4(%rbx), %eax
	movl	%esi, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	movl	%eax, -192(%rbp,%rcx)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -152(%rbp,%rcx)
	movq	%r12, -176(%rbp,%rcx)
	movq	-200(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -184(%rbp,%rcx)
	incl	%esi
LBB0_13:
	testq	%r14, %r14
	je	LBB0_15
## %bb.14:
	movq	16(%rbp), %rax
	movl	8(%rbx), %ecx
	movl	%esi, %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movl	%ecx, -192(%rbp,%rdx)
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -152(%rbp,%rdx)
	movq	%r14, -176(%rbp,%rdx)
	movq	%rax, -184(%rbp,%rdx)
	incl	%esi
LBB0_15:
	leaq	-192(%rbp), %rdi
	callq	_pump_io
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_finish_command
	movl	%eax, %ecx
	testq	%r14, %r14
	movl	$-1, %eax
	cmovnsl	%ecx, %eax
	jmp	LBB0_16
LBB0_7:
	movl	$-1, %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%esi, %esi
	testq	%r12, %r12
	jne	LBB0_12
	jmp	LBB0_13
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLOUT,8,3                    ## @POLLOUT
	.comm	_POLLIN,8,3                     ## @POLLIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pipe_command                   ; -- Begin function pipe_command
	.p2align	2
_pipe_command:                          ; @pipe_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	x1, LBB0_2
; %bb.1:
	mov	w8, #-1
	str	w8, [x19]
LBB0_2:
	cbz	x23, LBB0_4
; %bb.3:
	mov	w8, #-1
	str	w8, [x19, #4]
LBB0_4:
	cbz	x21, LBB0_6
; %bb.5:
	mov	w8, #-1
	str	w8, [x19, #8]
LBB0_6:
	mov	x0, x19
	bl	_start_command
	tbnz	x0, #63, LBB0_9
; %bb.7:
	cbz	x25, LBB0_10
; %bb.8:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _POLLOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POLLOUT@GOTPAGEOFF]
	str	w8, [sp, #8]
Lloh5:
	ldr	x8, [x9]
	stp	x24, x8, [sp, #40]
	str	x25, [sp, #32]
	mov	w1, #1
	b	LBB0_11
LBB0_9:
	mov	w0, #-1
	b	LBB0_16
LBB0_10:
	mov	w1, #0
LBB0_11:
Lloh6:
	adrp	x8, _POLLIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
	cbz	x23, LBB0_13
; %bb.12:
	ldr	w9, [x19, #4]
	mov	w10, #48
	add	x11, sp, #8
	umaddl	x10, w1, w10, x11
	str	w9, [x10]
	ldr	x9, [x8]
	str	x9, [x10, #40]
	stp	x22, x23, [x10, #8]
	add	w1, w1, #1
LBB0_13:
	cbz	x21, LBB0_15
; %bb.14:
	ldr	w9, [x19, #8]
	mov	w10, #48
	add	x11, sp, #8
	umaddl	x10, w1, w10, x11
	str	w9, [x10]
	ldr	x8, [x8]
	str	x8, [x10, #40]
	stp	x20, x21, [x10, #8]
	add	w1, w1, #1
LBB0_15:
	add	x0, sp, #8
	bl	_pump_io
	mov	x20, x0
	mov	x0, x19
	bl	_finish_command
	cmp	x20, #0
	csinv	w0, w0, wzr, ge
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLOUT,8,3                    ; @POLLOUT
	.comm	_POLLIN,8,3                     ; @POLLIN
.subsections_via_symbols
