	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p_open
_p_open:                                ## @p_open
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_pipe
	movl	$-1, %ebx
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.1:
	movq	__PATH_DEVNULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.2:
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_fork
	cmpq	$-1, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movl	%r12d, %edi
	callq	_close
	movl	-56(%rbp), %edi
	callq	_close
	movl	-52(%rbp), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdx
	leaq	-256(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$200, %esi
	movl	%r13d, %ecx
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_logerror
LBB0_10:
	movq	%r13, (%r14)
	movl	-52(%rbp), %ebx
	jmp	LBB0_11
LBB0_13:
	movl	%r12d, %edi
	callq	_close
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.12:
	movl	%ebx, %eax
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
LBB0_4:
	xorl	%eax, %eax
	callq	_setsid
	leaq	L_.str(%rip), %rdi
	callq	_strdup
	movq	%rax, %r14
	movq	%rax, -256(%rbp)
	leaq	L_.str.1(%rip), %rdi
	callq	_strdup
	movq	%rax, %rbx
	movq	%rax, -248(%rbp)
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	testq	%r14, %r14
	je	LBB0_14
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.6:
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	xorl	%edi, %edi
	callq	_alarm
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_DFL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGQUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movl	-56(%rbp), %edi
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_dup2
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_dup2
	movl	(%rbx), %edi
	incl	%edi
	callq	_closefrom
	movq	__PATH_BSHELL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-256(%rbp), %rsi
	callq	_execvp
	movl	$255, %edi
	callq	__exit
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	callq	_logerror
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_DEVNULL,4,2              ## @_PATH_DEVNULL
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh"

L_.str.1:                               ## @.str.1
	.asciz	"-c"

L_.str.2:                               ## @.str.2
	.asciz	"strdup"

	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.comm	__PATH_BSHELL,4,2               ## @_PATH_BSHELL
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.3:                               ## @.str.3
	.asciz	"Warning: cannot change pipe to PID %d to non-blocking behaviour."

	.no_dead_strip	_p_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p_open
_p_open:                                ; @p_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	sub	x0, x29, #64
	bl	_pipe
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, __PATH_DEVNULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, __PATH_DEVNULL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:
	mov	x19, x0
	bl	_fork
	cmn	x0, #1
	b.eq	LBB0_7
; %bb.3:
	mov	x22, x0
	cbz	x0, LBB0_11
; %bb.4:
	mov	x0, x19
	bl	_close
	ldur	w0, [x29, #-64]
	bl	_close
	ldur	w0, [x29, #-60]
Lloh9:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_fcntl
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w1, #200
	mov	x3, x22
	bl	_snprintf
	add	x0, sp, #8
	bl	_logerror
LBB0_6:
	str	x22, [x20]
	ldur	w0, [x29, #-60]
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_close
	mov	w0, #-1
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_10:
	bl	___stack_chk_fail
LBB0_11:
	bl	_setsid
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strdup
	mov	x22, x0
	str	x0, [sp, #8]
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strdup
	mov	x20, x0
	str	x0, [sp, #16]
	mov	x0, x21
	bl	_strdup
	stp	x0, xzr, [sp, #24]
	cbz	x22, LBB0_15
; %bb.12:
	cbz	x20, LBB0_15
; %bb.13:
	cbz	x0, LBB0_15
; %bb.14:
	mov	w0, #0
	bl	_alarm
Lloh24:
	adrp	x8, _SIGINT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x20, _SIG_DFL@GOTPAGE
Lloh28:
	ldr	x20, [x20, _SIG_DFL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_signal
Lloh29:
	adrp	x8, _SIGQUIT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SIGQUIT@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_signal
Lloh32:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_signal
	ldur	w0, [x29, #-64]
Lloh35:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_dup2
Lloh38:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dup2
Lloh41:
	adrp	x20, _STDERR_FILENO@GOTPAGE
Lloh42:
	ldr	x20, [x20, _STDERR_FILENO@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_dup2
	ldr	w8, [x20]
	add	w0, w8, #1
	bl	_closefrom
Lloh43:
	adrp	x8, __PATH_BSHELL@GOTPAGE
Lloh44:
	ldr	x8, [x8, __PATH_BSHELL@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_execvp
	mov	w0, #255
	bl	__exit
LBB0_15:
Lloh46:
	adrp	x0, l_.str.2@PAGE
Lloh47:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_logerror
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_DEVNULL,4,2              ; @_PATH_DEVNULL
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh"

l_.str.1:                               ; @.str.1
	.asciz	"-c"

l_.str.2:                               ; @.str.2
	.asciz	"strdup"

	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.comm	__PATH_BSHELL,4,2               ; @_PATH_BSHELL
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.3:                               ; @.str.3
	.asciz	"Warning: cannot change pipe to PID %d to non-blocking behaviour."

	.no_dead_strip	_p_open
.subsections_via_symbols
