	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_script
_run_script:                            ## @run_script
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$0, -36(%rbp)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	js	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	leaq	-36(%rbp), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_waitpid
	cmpq	%rbx, %rax
	jne	LBB0_6
## %bb.5:
	movl	-36(%rbp), %r12d
	jmp	LBB0_8
LBB0_1:
	movq	(%r14), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_execve
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$127, %edi
	callq	_err
	jmp	LBB0_8
LBB0_3:
	movq	(%r14), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	jmp	LBB0_7
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
LBB0_7:
	movl	$-1, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DOWN-ROOT: Failed execute: %s"

L_.str.1:                               ## @.str.1
	.asciz	"DOWN-ROOT: Failed to fork child to run %s"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"DOWN-ROOT: waitpid() failed, don't know exit code of child (%s)\n"

	.no_dead_strip	_run_script
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_script
_run_script:                            ; @run_script
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_fork
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	tbnz	x0, #63, LBB0_5
; %bb.2:
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #0
	bl	_waitpid
	cmp	x0, x20
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [sp, #12]
	b	LBB0_8
LBB0_4:
	ldr	x0, [x19]
	mov	x1, x19
	mov	x2, x21
	bl	_execve
	ldr	x2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #127
	bl	_err
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldr	x1, [x19]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DOWN-ROOT: Failed execute: %s"

l_.str.1:                               ; @.str.1
	.asciz	"DOWN-ROOT: Failed to fork child to run %s"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"DOWN-ROOT: waitpid() failed, don't know exit code of child (%s)\n"

	.no_dead_strip	_run_script
.subsections_via_symbols
