	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command
_command:                               ## @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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_MAXLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	jmp	LBB0_1
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	callq	_el_gets
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	movq	_MAXLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MIN
	movl	%eax, %r15d
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movslq	%r15d, %rax
	movb	$0, -1(%rax,%r13)
	movq	_H_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_history
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movb	$0, (%r13)
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_13
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$0, (%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$0, (%r13)
	je	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_makeargv
	movq	_margc@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_margv@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_getcmd
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$-1, %rax
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_str.2(%rip), %rdi
	callq	_puts
	jmp	LBB0_1
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_1
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_margc@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	_margv@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	callq	*(%rax)
	jmp	LBB0_1
LBB0_17:
	xorl	%edi, %edi
	callq	_exit
LBB0_14:
	movq	_txrx_error@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXLINE,4,2                    ## @MAXLINE
	.comm	_H_ENTER,4,2                    ## @H_ENTER
	.comm	_stdin,4,2                      ## @stdin
	.comm	_txrx_error,4,2                 ## @txrx_error
	.comm	_margc,8,3                      ## @margc
	.comm	_margv,8,3                      ## @margv
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"?Invalid command"

L_str.2:                                ## @str.2
	.asciz	"?Ambiguous command"

	.no_dead_strip	_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command
_command:                               ; @command
	.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, #16
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MAXLINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXLINE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x9, x23
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
Lloh5:
	adrp	x26, _margc@GOTPAGE
Lloh6:
	ldr	x26, [x26, _margc@GOTPAGEOFF]
Lloh7:
	adrp	x25, _H_ENTER@GOTPAGE
Lloh8:
	ldr	x25, [x25, _H_ENTER@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh9:
	adrp	x8, _stdin@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_feof
	cbnz	x0, LBB0_17
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w22, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #84
	mov	x0, x21
	bl	_el_gets
	cbz	x0, LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	w1, [x29, #-84]
	cbz	w1, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x0
Lloh12:
	adrp	x8, _MAXLINE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAXLINE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_MIN
	mov	x28, x0
	mov	x0, x24
	mov	x1, x27
	mov	x2, x28
	bl	_memcpy
	add	x8, x24, w28, sxtw
	sturb	wzr, [x8, #-1]
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x27
	bl	_history
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x24]
Lloh15:
	adrp	x8, _stdin@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x23
	bl	_fgets
	cbz	x0, LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x0]
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x24]
	cbz	w8, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_makeargv
	ldr	x8, [x26]
	cbz	x8, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh18:
	adrp	x8, _margv@GOTPAGE
Lloh19:
	ldr	x8, [x8, _margv@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_getcmd
	cbz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	cmn	x0, #1
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh21:
	adrp	x0, l_str.2@PAGE
Lloh22:
	add	x0, x0, l_str.2@PAGEOFF
	bl	_puts
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh23:
	adrp	x0, l_str@PAGE
Lloh24:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x0]
	ldr	x0, [x26]
Lloh25:
	adrp	x9, _margv@GOTPAGE
Lloh26:
	ldr	x9, [x9, _margv@GOTPAGEOFF]
Lloh27:
	ldr	x1, [x9]
	blr	x8
	b	LBB0_2
LBB0_16:
	mov	w0, #0
	bl	_exit
LBB0_17:
Lloh28:
	adrp	x8, _txrx_error@GOTPAGE
Lloh29:
	ldr	x8, [x8, _txrx_error@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXLINE,4,2                    ; @MAXLINE
	.comm	_H_ENTER,4,2                    ; @H_ENTER
	.comm	_stdin,4,2                      ; @stdin
	.comm	_txrx_error,4,2                 ; @txrx_error
	.comm	_margc,8,3                      ; @margc
	.comm	_margv,8,3                      ; @margv
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"?Invalid command"

l_str.2:                                ; @str.2
	.asciz	"?Ambiguous command"

	.no_dead_strip	_command
.subsections_via_symbols
