	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_cmd_loop
_run_cmd_loop:                          ## @run_cmd_loop
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -200(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_ARGS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	incl	%eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	$0, -180(%rbp)                  ## 4-byte Folded Spill
	leaq	L_.str.2(%rip), %r13
	leaq	-208(%rbp), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r15d, %rax
	movq	$0, (%rbx,%rax,8)
	testl	%eax, %eax
	jne	LBB0_8
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	_stdout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	(%r15), %edi
	callq	_fflush
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	callq	_fgets
	movq	%rax, -208(%rbp)
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strsep
	movq	%rax, (%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strsep
	movslq	%r15d, %rcx
	movq	%rax, (%rbx,%rcx,8)
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpb	$0, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	incl	%r15d
	cmpl	(%r12), %r15d
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	movq	%rdi, -192(%rbp)                ## 8-byte Spill
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_run_cmd
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	jmp	LBB0_1
LBB0_11:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -180(%rbp)                ## 4-byte Spill
LBB0_13:
	movq	-200(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	-180(%rbp), %eax                ## 4-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ARGS,4,2                   ## @MAX_ARGS
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"> "

	.comm	_stdin,4,2                      ## @stdin
L_.str.1:                               ## @.str.1
	.asciz	"stdin error"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	" \t\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"exit"

	.no_dead_strip	_run_cmd_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_cmd_loop
_run_cmd_loop:                          ; @run_cmd_loop
	.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, #160
	mov	x27, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x28, _MAX_ARGS@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MAX_ARGS@GOTPAGEOFF]
	ldr	w8, [x28]
	add	w8, w8, #1
	lsl	x8, x8, #3
	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, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	w19, #0
Lloh7:
	adrp	x24, _stdout@GOTPAGE
Lloh8:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
Lloh9:
	adrp	x21, l_.str@PAGE
Lloh10:
	add	x21, x21, l_.str@PAGEOFF
Lloh11:
	adrp	x23, _stdin@GOTPAGE
Lloh12:
	ldr	x23, [x23, _stdin@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.2@PAGE
Lloh14:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh15:
	adrp	x26, l_.str.4@PAGE
Lloh16:
	add	x26, x26, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x20, w25, sxtw #3]
	cbnz	w25, LBB0_7
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w0, [x24]
	mov	x1, x21
	bl	_fprintf
	ldr	w0, [x24]
	bl	_fflush
	ldr	w2, [x23]
	sub	x0, x29, #224
	mov	w1, #128
	bl	_fgets
	stur	x0, [x29, #-232]
	cbz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x0, x29, #232
	mov	x1, x22
	bl	_strsep
	str	x0, [x20]
	mov	w25, #0
	cbnz	x0, LBB0_5
	b	LBB0_1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	sub	x0, x29, #232
	mov	x1, x22
	bl	_strsep
	str	x0, [x20, w25, sxtw #3]
	cbz	x0, LBB0_1
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w25, w25, #1
	ldr	w8, [x28]
	cmp	w25, w8
	b.ne	LBB0_4
	b	LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	stur	w19, [x29, #-236]               ; 4-byte Folded Spill
	mov	x19, x27
	mov	x27, x26
	ldr	x26, [x20]
	mov	x0, x26
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
	mov	x26, x27
	mov	x1, x27
	bl	_strcmp
	mov	x27, x19
	ldur	w19, [x29, #-236]               ; 4-byte Folded Reload
	cbz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	mov	x1, x20
	bl	_run_cmd
	mov	x19, x0
	b	LBB0_2
LBB0_10:
	ldr	w0, [x23]
	bl	_ferror
	cbz	x0, LBB0_12
; %bb.11:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
LBB0_12:
	mov	sp, x27
	ldur	x8, [x29, #-96]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	mov	x0, x19
	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_14:
	mov	x27, x19
	ldur	w19, [x29, #-236]               ; 4-byte Folded Reload
	b	LBB0_12
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ARGS,4,2                   ; @MAX_ARGS
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"> "

	.comm	_stdin,4,2                      ; @stdin
l_.str.1:                               ; @.str.1
	.asciz	"stdin error"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	" \t\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"exit"

	.no_dead_strip	_run_cmd_loop
.subsections_via_symbols
