	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_local_cmd
_do_local_cmd:                          ## @do_local_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_2:
	movq	_verbose_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rsi
	callq	_fmprintf
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_5
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
LBB0_7:
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %r14d
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.8:
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.9:
	movq	8(%r12), %rsi
	movl	(%rsi), %edi
	callq	_execvp
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_perror
	movl	$1, %edi
	callq	_exit
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
LBB0_11:
	movq	_do_cmd_pid@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_killchild@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	leaq	-44(%rbp), %rsi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	je	LBB0_12
LBB0_16:
	movq	_do_cmd_pid@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movl	-44(%rbp), %edi
	callq	_WEXITSTATUS
	movq	%rax, %rcx
	xorl	%eax, %eax
	negq	%rcx
	sbbl	%eax, %eax
	jmp	LBB0_19
LBB0_12:
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %r12
	leaq	-44(%rbp), %rbx
	leaq	L_.str.5(%rip), %r15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	jne	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	cmpq	(%r12), %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	callq	_strerror
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_15
LBB0_17:
	movl	$-1, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"do_local_cmd: no arguments"

	.comm	_verbose_mode,8,3               ## @verbose_mode
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Executing:"

L_.str.2:                               ## @.str.2
	.asciz	" %s"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

L_.str.4:                               ## @.str.4
	.asciz	"do_local_cmd: fork: %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_do_cmd_pid,4,2                 ## @do_cmd_pid
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_killchild,4,2                  ## @killchild
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.5:                               ## @.str.5
	.asciz	"do_local_cmd: waitpid: %s"

	.no_dead_strip	_do_local_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_local_cmd
_do_local_cmd:                          ; @do_local_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_2:
Lloh2:
	adrp	x8, _verbose_mode@GOTPAGE
Lloh3:
	ldr	x8, [x8, _verbose_mode@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
Lloh5:
	adrp	x21, _stderr@GOTPAGE
Lloh6:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x22, #0
Lloh9:
	adrp	x19, l_.str.2@PAGE
Lloh10:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x22, lsl #2]
	mov	x1, x19
	bl	_fmprintf
	add	x22, x22, #1
	ldr	x8, [x20]
	cmp	x22, x8
	b.lo	LBB0_5
LBB0_6:
	ldr	w0, [x21]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_7:
	bl	_fork
	mov	x19, x0
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.8:
	cbnz	w19, LBB0_11
; %bb.9:
	ldr	x1, [x20, #8]
	ldr	w0, [x1]
	bl	_execvp
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_perror
	mov	w0, #1
	bl	_exit
LBB0_10:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_fatal
LBB0_11:
Lloh18:
	adrp	x21, _do_cmd_pid@GOTPAGE
Lloh19:
	ldr	x21, [x21, _do_cmd_pid@GOTPAGEOFF]
	str	w19, [x21]
Lloh20:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x20, _killchild@GOTPAGE
Lloh24:
	ldr	x20, [x20, _killchild@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_signal
Lloh25:
	adrp	x8, _SIGINT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_signal
Lloh28:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_signal
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.eq	LBB0_15
LBB0_12:
	mov	w19, #-1
	str	w19, [x21]
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cbz	w0, LBB0_14
; %bb.13:
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	cmp	x0, #0
	csetm	w19, ne
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
Lloh31:
	adrp	x22, _errno@GOTPAGE
Lloh32:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh33:
	adrp	x23, _EINTR@GOTPAGE
Lloh34:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
Lloh35:
	adrp	x20, l_.str.5@PAGE
Lloh36:
	add	x20, x20, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.ne	LBB0_12
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	bl	_fatal
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"do_local_cmd: no arguments"

	.comm	_verbose_mode,8,3               ; @verbose_mode
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Executing:"

l_.str.2:                               ; @.str.2
	.asciz	" %s"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

l_.str.4:                               ; @.str.4
	.asciz	"do_local_cmd: fork: %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_do_cmd_pid,4,2                 ; @do_cmd_pid
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_killchild,4,2                  ; @killchild
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.5:                               ; @.str.5
	.asciz	"do_local_cmd: waitpid: %s"

	.no_dead_strip	_do_local_cmd
.subsections_via_symbols
