	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function runShellCommand
_runShellCommand:                       ## @runShellCommand
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHELL_COMMAND_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	jle	LBB0_14
## %bb.1:
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movl	%ebx, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %r12
	leaq	(%r12,%r13), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	addl	%r14d, %r12d
	incq	%r15
	cmpq	%r15, -152(%rbp)                ## 8-byte Folded Reload
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r15,8), %rbx
	cmpb	$58, (%rbx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rbx), %rsi
	cmpb	$58, 1(%rbx)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_getVariable
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r14d
	cmpq	$1, %r15
	movl	%r12d, %eax
	sbbl	$-1, %eax
	addl	%r14d, %eax
	movq	_SHELL_COMMAND_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rax
	incl	%r12d
	movb	$32, (%r13,%rax)
	jmp	LBB0_12
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_13:
	movslq	%r12d, %r12
	movq	-144(%rbp), %r15                ## 8-byte Reload
LBB0_14:
	movb	$0, (%r13,%r12)
	testq	%r15, %r15
	je	LBB0_15
## %bb.19:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_popen
	testq	%rax, %rax
	je	LBB0_18
## %bb.20:
	movq	%rax, %rbx
	leaq	-112(%rbp), %rdi
	movl	$64, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_21
## %bb.24:
	movq	%rbx, %rdi
	callq	_pclose
	testq	%rax, %rax
	js	LBB0_25
## %bb.26:
	leaq	-112(%rbp), %rdi
	leaq	-136(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %r14
	movq	-136(%rbp), %rbx
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_30
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_28
LBB0_30:
	movq	%rbx, -136(%rbp)
	cmpb	$0, -112(%rbp)
	je	LBB0_32
## %bb.31:
	cmpb	$0, (%rbx)
	je	LBB0_34
LBB0_32:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdx
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-112(%rbp), %rcx
	jmp	LBB0_33
LBB0_15:
	movq	%r13, %rdi
	callq	_system
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	_timer_exceeded@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	jne	LBB0_35
LBB0_18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_21:
	movq	_timer_exceeded@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_23
## %bb.22:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_23:
	movq	%rbx, %rdi
	callq	_pclose
	xorl	%ebx, %ebx
	jmp	LBB0_35
LBB0_16:
	movl	$1, %ebx
	jmp	LBB0_35
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdx
	movq	(%rax,%r15,8), %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
LBB0_33:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_35
LBB0_25:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	leaq	L_.str.7(%rip), %rsi
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_putVariableInt
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_35
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHELL_COMMAND_SIZE,4,2         ## @SHELL_COMMAND_SIZE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: undefined variable \"%s\"\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: shell command is too long\n"

	.comm	_timer_exceeded,4,2             ## @timer_exceeded
L_.str.2:                               ## @.str.2
	.asciz	"%s: could not launch shell command\n"

L_.str.3:                               ## @.str.3
	.asciz	"r"

L_.str.4:                               ## @.str.4
	.asciz	"%s: could not read result of shell command\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s: could not close shell command\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s: shell command must return an integer (not \"%s\")\n"

L_.str.7:                               ## @.str.7
	.asciz	"setshell"

	.no_dead_strip	_runShellCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function runShellCommand
_runShellCommand:                       ; @runShellCommand
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #96
	mov	x19, x2
	mov	x23, 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, #-88]
Lloh3:
	adrp	x25, _SHELL_COMMAND_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SHELL_COMMAND_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cmp	w3, #1
	b.lt	LBB0_9
; %bb.1:
	stur	x23, [x29, #-168]               ; 8-byte Folded Spill
	mov	x26, #0
	mov	w27, #0
	mov	w8, w3
	lsl	x28, x8, #3
	mov	w20, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x22, w27, sxtw
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
	add	w27, w27, w24
	add	x26, x26, #8
	cmp	x28, x26
	b.eq	LBB0_20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, x26]
	ldrb	w8, [x23]
	cmp	w8, #58
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x23, #1]!
	cmp	w8, #58
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_getVariable
	mov	x23, x0
	cbz	x0, LBB0_28
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_strlen
	cmp	x26, #0
	cinc	w8, w27, ne
	ldr	w9, [x25]
	sub	w9, w9, #1
	add	w8, w8, w0
	cmp	w8, w9
	b.ge	LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	cbz	x26, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	w20, [x22, w27, sxtw]
	add	w8, w27, #1
	mov	x27, x8
	b	LBB0_2
LBB0_9:
	mov	x8, #0
	strb	wzr, [x22, x8]
	cbz	x23, LBB0_21
LBB0_10:
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_popen
	cbz	x0, LBB0_23
; %bb.11:
	mov	x22, x0
	sub	x0, x29, #152
	mov	w1, #64
	mov	x2, x22
	bl	_fgets
	cbz	x0, LBB0_24
; %bb.12:
	mov	x0, x22
	bl	_pclose
	tbnz	x0, #63, LBB0_30
; %bb.13:
	sub	x0, x29, #152
	sub	x1, x29, #160
	mov	w2, #10
	bl	_strtol
	mov	x22, x0
	ldur	x20, [x29, #-160]
	ldrb	w8, [x20]
	cbz	w8, LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isspace
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w8, [x20, #1]!
	cbnz	w8, LBB0_14
LBB0_16:
	stur	x20, [x29, #-160]
	ldurb	w8, [x29, #-152]
	cbz	w8, LBB0_18
; %bb.17:
	ldrb	w8, [x20]
	cbz	w8, LBB0_35
LBB0_18:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x2, [x19]
	sub	x8, x29, #152
	str	x8, [sp, #-16]!
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_29
LBB0_19:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_31
LBB0_20:
	sxtw	x8, w27
	ldur	x23, [x29, #-168]               ; 8-byte Folded Reload
	strb	wzr, [x22, x8]
	cbnz	x23, LBB0_10
LBB0_21:
	mov	x0, x22
	bl	_system
	cbz	x0, LBB0_27
; %bb.22:
Lloh19:
	adrp	x8, _timer_exceeded@GOTPAGE
Lloh20:
	ldr	x8, [x8, _timer_exceeded@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cbnz	w8, LBB0_32
LBB0_23:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_31
LBB0_24:
Lloh27:
	adrp	x8, _timer_exceeded@GOTPAGE
Lloh28:
	ldr	x8, [x8, _timer_exceeded@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cbnz	w8, LBB0_26
; %bb.25:
Lloh30:
	adrp	x8, _stderr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_26:
	mov	x0, x22
	bl	_pclose
	b	LBB0_32
LBB0_27:
	mov	w0, #1
	b	LBB0_33
LBB0_28:
Lloh35:
	adrp	x8, _stderr@GOTPAGE
Lloh36:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	x2, [x19]
	ldr	x8, [x19, x26]
	str	x8, [sp, #-16]!
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
LBB0_29:
	bl	_fprintf
	add	sp, sp, #16
	b	LBB0_32
LBB0_30:
Lloh40:
	adrp	x8, _stderr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_31:
	bl	_fprintf
LBB0_32:
	mov	w0, #0
LBB0_33:
	ldur	x8, [x29, #-88]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.34:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_35:
Lloh48:
	adrp	x1, l_.str.7@PAGE
Lloh49:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	mov	x3, x22
	bl	_putVariableInt
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_33
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_SHELL_COMMAND_SIZE,4,2         ; @SHELL_COMMAND_SIZE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: undefined variable \"%s\"\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: shell command is too long\n"

	.comm	_timer_exceeded,4,2             ; @timer_exceeded
l_.str.2:                               ; @.str.2
	.asciz	"%s: could not launch shell command\n"

l_.str.3:                               ; @.str.3
	.asciz	"r"

l_.str.4:                               ; @.str.4
	.asciz	"%s: could not read result of shell command\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s: could not close shell command\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s: shell command must return an integer (not \"%s\")\n"

l_.str.7:                               ; @.str.7
	.asciz	"setshell"

	.no_dead_strip	_runShellCommand
.subsections_via_symbols
