	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_command
_exec_command:                          ## @exec_command
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leal	-1(%r14), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	cmpl	$2, %r14d
	jl	LBB0_6
## %bb.1:
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	leaq	L_.str.1(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_printf
	incq	%r12
	cmpq	%r12, %rbx
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r12,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$32, %edi
	callq	_putchar
	movq	(%r13,%r12,8), %rsi
	jmp	LBB0_2
LBB0_6:
	movl	$10, %edi
	callq	_putchar
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	leaq	-60(%rbp), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_waitpid
	testq	%rax, %rax
	js	LBB0_21
## %bb.8:
	movl	-60(%rbp), %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	je	LBB0_26
## %bb.9:
	movl	-60(%rbp), %edi
	callq	_WEXITSTATUS
	movl	%eax, %ebx
	jmp	LBB0_27
LBB0_10:
	xorl	%edi, %edi
	callq	_close
	movq	_O_RDONLY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_open
	movl	%eax, -60(%rbp)
	testl	%eax, %eax
	js	LBB0_26
## %bb.11:
	movl	$1, %edi
	callq	_close
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_open
	movl	%eax, -56(%rbp)
	testl	%eax, %eax
	js	LBB0_23
## %bb.12:
	movl	$2, %edi
	callq	_close
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_open
	movl	%eax, -52(%rbp)
	movl	$2, %ebx
	testl	%eax, %eax
	js	LBB0_24
## %bb.13:
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_30
## %bb.14:
	movq	%rax, %r15
	cmpl	$2, %r14d
	jl	LBB0_18
## %bb.15:
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rdi
	callq	_strdup
	movq	%rax, (%r15,%rbx,8)
	testq	%rax, %rax
	je	LBB0_30
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_16
LBB0_18:
	movq	%r15, %rdi
	callq	_exec_command.cold.1
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.19:
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_21:
	movq	%rax, %rbx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	callq	_fprintf
	jmp	LBB0_27
LBB0_23:
	movl	$1, %ebx
LBB0_24:
	incq	%rbx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	-68(%rbp,%rbx,4), %edi
	callq	_close
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_25
LBB0_26:
	movl	$-1, %ebx
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.28:
	movl	%ebx, %eax
LBB0_29:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function exec_command.cold.1
_exec_command.cold.1:                   ## @exec_command.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rsi
	movq	(%rdi), %rdi
	callq	_execvp
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Executing command: "

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

L_.str.2:                               ## @.str.2
	.asciz	"/dev/null"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"execvp()"

	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"waitpid() failed: %s\n"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_exec_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_command
_exec_command:                          ; @exec_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	sub	w22, w20, #1
	cmp	w20, #2
	b.lt	LBB0_6
; %bb.1:
	mov	x23, #0
	lsl	x24, x22, #3
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [sp]
	mov	x0, x21
	bl	_printf
	add	x23, x23, #8
	cmp	x24, x23
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, x23]
	cbz	x8, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x23, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #32
	bl	_putchar
	ldr	x8, [x19, x23]
	b	LBB0_2
LBB0_6:
	mov	w0, #10
	bl	_putchar
	bl	_fork
	cbz	x0, LBB0_10
; %bb.7:
	add	x1, sp, #12
	mov	w2, #0
	bl	_waitpid
	tbnz	x0, #63, LBB0_16
; %bb.8:
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cbz	x0, LBB0_15
; %bb.9:
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	mov	x19, x0
	b	LBB0_17
LBB0_10:
	bl	_close
Lloh7:
	adrp	x24, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x24, [x24, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_open
	str	w0, [sp, #12]
	tbnz	w0, #31, LBB0_15
; %bb.11:
	mov	w23, #1
	mov	w0, #1
	bl	_close
	ldr	w1, [x24]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_open
	mov	x21, x0
	str	w0, [sp, #16]
	tbnz	w0, #31, LBB0_13
; %bb.12:
	mov	w23, #2
	mov	w0, #2
	bl	_close
	ldr	w1, [x24]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_open
	str	w0, [sp, #20]
	tbz	w0, #31, LBB0_20
LBB0_13:
	add	x8, sp, #12
	add	x19, x8, x23, lsl #2
	ldur	w0, [x19, #-4]
	bl	_close
	tbnz	w21, #31, LBB0_15
; %bb.14:
	ldur	w0, [x19, #-8]
	bl	_close
LBB0_15:
	mov	w19, #-1
	b	LBB0_17
LBB0_16:
	mov	x19, x0
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_fprintf
LBB0_17:
	ldr	x8, [sp, #24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_19:
	bl	___stack_chk_fail
LBB0_20:
	mov	x0, x20
	mov	w1, #8
	bl	_calloc
	cbnz	x0, LBB0_22
LBB0_21:
Lloh26:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_exit
LBB0_22:
	mov	x21, x0
	cmp	w20, #2
	b.lt	LBB0_26
; %bb.23:
	mov	x20, x21
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_strdup
	str	x0, [x20]
	cbz	x0, LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x20, x20, #8
	add	x19, x19, #8
	subs	x22, x22, #1
	b.ne	LBB0_24
LBB0_26:
	mov	x0, x21
	bl	_exec_command.cold.1
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function exec_command.cold.1
_exec_command.cold.1:                   ; @exec_command.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x1, x0
	ldr	x0, [x0]
	bl	_execvp
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
Lloh31:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Executing command: "

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

l_.str.2:                               ; @.str.2
	.asciz	"/dev/null"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"execvp()"

	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"waitpid() failed: %s\n"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_exec_command
.subsections_via_symbols
