	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openhere
_openhere:                              ## @openhere
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_pipe
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_error
LBB0_2:
	movq	(%rbx), %rax
	movq	_NXHERE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rbx
LBB0_4:
	movq	(%rbx), %r14
	movq	%r14, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %r15
	movl	-52(%rbp), %edi
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %ebx
	movl	-52(%rbp), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%ebx, %edx
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	movl	-52(%rbp), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_write
	xorl	%r12d, %r12d
	testq	%rax, %rax
	cmovgq	%rax, %r12
	cmpq	%r15, %r12
	je	LBB0_11
## %bb.9:
	movl	-52(%rbp), %edi
	movl	(%r13), %esi
	movl	%ebx, %edx
	callq	_fcntl
	jmp	LBB0_10
LBB0_7:
	xorl	%r12d, %r12d
LBB0_10:
	movq	_FORK_NOJOB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_forkshell
	testq	%rax, %rax
	je	LBB0_13
LBB0_11:
	movl	-52(%rbp), %edi
	callq	_close
	movl	-56(%rbp), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
LBB0_13:
	movl	-56(%rbp), %edi
	callq	_close
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGQUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGTSTP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_DFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	-52(%rbp), %edi
	addq	%r12, %r14
	subq	%r12, %r15
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_xwrite
	xorl	%edi, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pipe call failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_NXHERE,8,3                     ## @NXHERE
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_FORK_NOJOB,4,2                 ## @FORK_NOJOB
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_SIGTSTP,4,2                    ## @SIGTSTP
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.no_dead_strip	_openhere
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function openhere
_openhere:                              ; @openhere
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x0, sp
	bl	_pipe
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _NXHERE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NXHERE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	ldr	x19, [x19, #8]
LBB0_4:
	ldr	x19, [x19]
	mov	x0, x19
	bl	_strlen
	cbz	x0, LBB0_11
; %bb.5:
	mov	x20, x0
	ldr	w0, [sp, #4]
Lloh11:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.6:
	mov	x21, x0
Lloh14:
	adrp	x23, _F_SETFL@GOTPAGE
Lloh15:
	ldr	x23, [x23, _F_SETFL@GOTPAGEOFF]
	ldr	w0, [sp, #4]
	ldr	w1, [x23]
Lloh16:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w2, w8, w21
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.7:
	ldr	w0, [sp, #4]
	mov	x1, x19
	mov	x2, x20
	bl	_write
	cmp	x0, #0
	csel	x22, x0, xzr, gt
	cmp	x22, x20
	b.eq	LBB0_11
; %bb.8:
	ldr	w0, [sp, #4]
	ldr	w1, [x23]
	mov	x2, x21
	bl	_fcntl
	b	LBB0_10
LBB0_9:
	mov	x22, #0
LBB0_10:
Lloh19:
	adrp	x8, _FORK_NOJOB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FORK_NOJOB@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_forkshell
	cbz	x0, LBB0_14
LBB0_11:
	ldr	w0, [sp, #4]
	bl	_close
	ldr	w0, [sp]
	ldr	x8, [sp, #8]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	bl	___stack_chk_fail
LBB0_14:
	ldr	w0, [sp]
	bl	_close
Lloh25:
	adrp	x8, _SIGINT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x21, _SIG_IGN@GOTPAGE
Lloh29:
	ldr	x21, [x21, _SIG_IGN@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_signal
Lloh30:
	adrp	x8, _SIGQUIT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SIGQUIT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_signal
Lloh33:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_signal
Lloh36:
	adrp	x8, _SIGTSTP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SIGTSTP@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_signal
Lloh39:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	bl	_signal
	ldr	w0, [sp, #4]
	add	x1, x19, x22
	sub	x2, x20, x22
	bl	_xwrite
	mov	w0, #0
	bl	__exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pipe call failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_NXHERE,8,3                     ; @NXHERE
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_FORK_NOJOB,4,2                 ; @FORK_NOJOB
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_SIGTSTP,4,2                    ; @SIGTSTP
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.no_dead_strip	_openhere
.subsections_via_symbols
