	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function script_run
_script_run:                            ## @script_run
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_pipe
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	je	LBB0_7
## %bb.3:
	movl	-32(%rbp), %edi
	callq	_close
	movl	-28(%rbp), %ebx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
LBB0_7:
	movl	-28(%rbp), %edi
	callq	_close
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	movl	-32(%rbp), %edi
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_dup2
	cmpq	(%rbx), %rax
	jne	LBB0_10
## %bb.9:
	movl	$3, %edi
	callq	_closefrom
	movq	(%r14), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_execve
LBB0_10:
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/null"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_STDIN_FILENO,8,3               ## @STDIN_FILENO
	.no_dead_strip	_script_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function script_run
_script_run:                            ; @script_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	bl	_fork
	tbnz	x0, #63, LBB0_1
; %bb.3:
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w0, [sp]
	bl	_close
	ldr	w0, [sp, #4]
LBB0_5:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	bl	___stack_chk_fail
LBB0_8:
	ldr	w0, [sp, #4]
	bl	_close
Lloh6:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	tbnz	w0, #31, LBB0_11
; %bb.9:
	ldr	w0, [sp]
Lloh11:
	adrp	x20, _STDIN_FILENO@GOTPAGE
Lloh12:
	ldr	x20, [x20, _STDIN_FILENO@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_dup2
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #3
	bl	_closefrom
	ldr	x0, [x19]
	mov	x1, x19
	mov	x2, #0
	bl	_execve
LBB0_11:
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/null"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_STDIN_FILENO,8,3               ; @STDIN_FILENO
	.no_dead_strip	_script_run
.subsections_via_symbols
