	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_cmd
_run_cmd:                               ## @run_cmd
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_choose_temp_base
	movq	%rax, %r15
	movq	%r14, %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$32, %cl
	je	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%cl, %cl
	jne	LBB0_2
## %bb.5:
	leal	32(,%rbx,8), %edi
	callq	_alloca
	movq	%rax, %r13
	xorl	%eax, %eax
	movq	%r14, %rcx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rcx
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movb	(%rcx), %dl
	cmpb	$32, %dl
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testb	%dl, %dl
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$34, %dl
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$39, %dl
	jne	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rcx
	movl	$2, %esi
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movb	$32, %dl
	movl	$1, %esi
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, (%r13,%rax,8)
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rcx), %ebx
	incq	%rcx
	cmpb	%dl, %bl
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	testb	%bl, %bl
	jne	LBB0_14
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rax
	testb	%bl, %bl
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movb	$0, -1(%rcx)
	addq	%rsi, %rcx
	decq	%rcx
	jmp	LBB0_7
LBB0_18:
	cltq
	movq	$0, (%r13,%rax,8)
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_open
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.19:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fatal
LBB0_20:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_dup
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rbx
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fatal
LBB0_22:
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_dup2
	movq	(%r13), %rdi
	movq	_program_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PEXECUTE_ONE@GOTPCREL(%rip), %rax
	movq	_PEXECUTE_SEARCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rsp)
	leaq	-80(%rbp), %r8
	leaq	-72(%rbp), %r9
	movq	%r13, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_pexecute
	movq	%rbx, %rcx
	movl	%eax, %ebx
	movl	(%rcx), %esi
	movl	%r14d, %edi
	callq	_dup2
	movl	%r15d, %edi
	callq	_close
	cmpl	$-1, %ebx
	je	LBB0_26
## %bb.23:
	leaq	-44(%rbp), %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_pwait
	cmpl	$-1, %eax
	je	LBB0_27
## %bb.24:
	movl	-44(%rbp), %edi
	callq	_WIFSIGNALED
	testq	%rax, %rax
	je	LBB0_31
## %bb.25:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_WTERMSIG
	jmp	LBB0_28
LBB0_26:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	-80(%rbp), %r14
	movq	-72(%rbp), %r15
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_29
LBB0_27:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
LBB0_28:
	movslq	%eax, %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_fatal
LBB0_29:
	movl	$1, %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_30
## %bb.32:
	movl	-44(%rbp), %edi
	callq	_WEXITSTATUS
	testl	%eax, %eax
	je	LBB0_34
## %bb.33:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movl	-44(%rbp), %edi
	callq	_WEXITSTATUS
	movl	%r14d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_30
LBB0_34:
	xorl	%ebx, %ebx
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't open temporary file `%s': %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
L_.str.1:                               ## @.str.1
	.asciz	"can't redirect stdout: `%s': %s"

	.comm	_program_name,4,2               ## @program_name
	.comm	_PEXECUTE_ONE,4,2               ## @PEXECUTE_ONE
	.comm	_PEXECUTE_SEARCH,4,2            ## @PEXECUTE_SEARCH
L_.str.2:                               ## @.str.2
	.asciz	"%s %s: %s"

L_.str.3:                               ## @.str.3
	.asciz	"wait: %s"

L_.str.4:                               ## @.str.4
	.asciz	"subprocess got fatal signal %d"

L_.str.5:                               ## @.str.5
	.asciz	"%s exited with status %d"

	.no_dead_strip	_run_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_cmd
_run_cmd:                               ; @run_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_choose_temp_base
	mov	x20, x0
	mov	w8, #0
	mov	x9, x19
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	cmp	w10, #32
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w10, LBB0_2
; %bb.5:
	lsl	w8, w8, #3
	add	w0, w8, #32
	bl	_alloca
	mov	x22, x0
	mov	x8, #0
	mov	x9, x19
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #1
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldrb	w10, [x9]
	cmp	w10, #32
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w10, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w10, #34
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w10, #39
	b.ne	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #1
	mov	w11, #2
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w10, #32
	mov	w11, #1
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x9, [x22, x8, lsl #3]
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w12, [x9], #1
	cmp	w12, w10
	ccmp	w12, #0, #4, ne
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	cbz	w12, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	sturb	wzr, [x9, #-1]
	add	x9, x11, x9
	sub	x9, x9, #1
	b	LBB0_7
LBB0_17:
	sbfiz	x8, x8, #3, #32
	str	xzr, [x22, x8]
Lloh0:
	adrp	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_fflush
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_fflush
Lloh6:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x21
	mov	w2, #438
	bl	_open
	mov	x23, x0
	cmn	w0, #1
	b.ne	LBB0_19
; %bb.18:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x24, x0
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x24
	mov	x1, x21
	bl	_fatal
LBB0_19:
Lloh20:
	adrp	x26, _STDOUT_FILENO@GOTPAGE
Lloh21:
	ldr	x26, [x26, _STDOUT_FILENO@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_dup
	mov	x24, x0
	cmn	w0, #1
	b.ne	LBB0_21
; %bb.20:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x25, x0
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x25
	mov	x1, x21
	bl	_fatal
LBB0_21:
	ldr	w1, [x26]
	mov	x0, x23
	bl	_dup2
	ldr	x0, [x22]
Lloh27:
	adrp	x8, _program_name@GOTPAGE
Lloh28:
	ldr	x8, [x8, _program_name@GOTPAGEOFF]
Lloh29:
	adrp	x9, _PEXECUTE_ONE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PEXECUTE_ONE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	ldr	w8, [x9]
Lloh33:
	adrp	x9, _PEXECUTE_SEARCH@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PEXECUTE_SEARCH@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w6, w9, w8
	add	x4, sp, #32
	add	x5, sp, #24
	mov	x1, x22
	mov	x3, x20
	bl	_pexecute
	mov	x20, x0
	ldr	w1, [x26]
	mov	x0, x24
	bl	_dup2
	mov	x0, x23
	bl	_close
	cmn	w20, #1
	b.eq	LBB0_25
; %bb.22:
	add	x1, sp, #44
	mov	x0, x20
	mov	w2, #0
	bl	_pwait
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.23:
	ldr	w0, [sp, #44]
	bl	_WIFSIGNALED
	cbz	x0, LBB0_31
; %bb.24:
Lloh36:
	adrp	x0, l_.str.4@PAGE
Lloh37:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x19, x0
	ldr	w0, [sp, #44]
	bl	_WTERMSIG
	b	LBB0_27
LBB0_25:
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x19, x0
	ldp	x21, x20, [sp, #24]
Lloh40:
	adrp	x8, _errno@GOTPAGE
Lloh41:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
	mov	x0, x19
	mov	x1, x20
	b	LBB0_28
LBB0_26:
Lloh43:
	adrp	x0, l_.str.3@PAGE
Lloh44:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x19, x0
Lloh45:
	adrp	x8, _errno@GOTPAGE
Lloh46:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_strerror
LBB0_27:
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x19
LBB0_28:
	bl	_fatal
LBB0_29:
	mov	w0, #1
LBB0_30:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_31:
	ldr	w0, [sp, #44]
	bl	_WIFEXITED
	cbz	x0, LBB0_29
; %bb.32:
	ldr	w0, [sp, #44]
	bl	_WEXITSTATUS
	cbz	w0, LBB0_30
; %bb.33:
Lloh48:
	adrp	x0, l_.str.5@PAGE
Lloh49:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x20, x0
	ldr	w0, [sp, #44]
	bl	_WEXITSTATUS
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x19
	b	LBB0_28
	.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	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't open temporary file `%s': %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
l_.str.1:                               ; @.str.1
	.asciz	"can't redirect stdout: `%s': %s"

	.comm	_program_name,4,2               ; @program_name
	.comm	_PEXECUTE_ONE,4,2               ; @PEXECUTE_ONE
	.comm	_PEXECUTE_SEARCH,4,2            ; @PEXECUTE_SEARCH
l_.str.2:                               ; @.str.2
	.asciz	"%s %s: %s"

l_.str.3:                               ; @.str.3
	.asciz	"wait: %s"

l_.str.4:                               ; @.str.4
	.asciz	"subprocess got fatal signal %d"

l_.str.5:                               ; @.str.5
	.asciz	"%s exited with status %d"

	.no_dead_strip	_run_cmd
.subsections_via_symbols
