	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function execute_script
_execute_script:                        ## @execute_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_bzero
	movq	%rbx, %rdi
	callq	_sigemptyset
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_SIGTSTP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	xorl	%eax, %eax
	callq	_open_console
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	movq	8(%r14), %r15
	movq	_X_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_access
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EACCES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_execv
	leaq	L_.str(%rip), %rdi
LBB0_4:
	movq	%r15, %rsi
	callq	_warning
LBB0_5:
	xorl	%eax, %eax
	callq	_get_shell
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_execv
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_stall
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SIGTSTP,4,2                    ## @SIGTSTP
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	_X_OK,4,2                       ## @X_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't directly exec %s: %m"

	.comm	_errno,8,3                      ## @errno
	.comm	_EACCES,8,3                     ## @EACCES
L_.str.1:                               ## @.str.1
	.asciz	"can't access %s: %m"

L_.str.2:                               ## @.str.2
	.asciz	"can't exec %s for %s: %m"

	.comm	_RESOURCE_RC,4,2                ## @RESOURCE_RC
	.no_dead_strip	_execute_script
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function execute_script
_execute_script:                        ; @execute_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	x19, x0
	add	x0, sp, #8
	mov	w1, #8
	bl	_bzero
	add	x0, sp, #8
	bl	_sigemptyset
Lloh0:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _SIGTSTP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGTSTP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_sigaction
Lloh6:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_sigaction
	bl	_open_console
Lloh9:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_sigprocmask
	mov	x21, x19
	ldr	x20, [x21, #8]!
Lloh12:
	adrp	x8, _X_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _X_OK@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_access
	cbz	w0, LBB0_3
; %bb.1:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _EACCES@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EACCES@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	_execv
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	mov	x1, x20
	bl	_warning
LBB0_5:
	bl	_get_shell
	mov	x21, x0
	mov	x1, x19
	bl	_execv
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_stall
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SIGTSTP,4,2                    ; @SIGTSTP
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	_X_OK,4,2                       ; @X_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't directly exec %s: %m"

	.comm	_errno,8,3                      ; @errno
	.comm	_EACCES,8,3                     ; @EACCES
l_.str.1:                               ; @.str.1
	.asciz	"can't access %s: %m"

l_.str.2:                               ; @.str.2
	.asciz	"can't exec %s for %s: %m"

	.comm	_RESOURCE_RC,4,2                ; @RESOURCE_RC
	.no_dead_strip	_execute_script
.subsections_via_symbols
