	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_document_command               ## -- Begin function document_command
	.p2align	4, 0x90
_document_command:                      ## @document_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	%r12
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	%rdi, -192(%rbp)
	callq	_validate_comname
	movq	_cmdlist@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	leaq	-192(%rbp), %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_lookup_cmd
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_class_user@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_error
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_sprintf
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_read_command_lines
	movq	%rax, %rbx
	movq	%rax, -184(%rbp)
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_xfree
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.6:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_strlen
	addl	%eax, %r14d
	incl	%r14d
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.8:
	incl	%r14d
	jmp	LBB0_9
LBB0_5:
	movl	$1, %r14d
LBB0_9:
	movl	%r14d, %edi
	callq	_xmalloc
	movq	%rax, 8(%r12)
	movb	$0, (%rax)
	movq	-184(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.10:
	leaq	L_.str.3(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	movq	(%rbx), %rsi
	callq	_strcat
	cmpq	$0, 8(%rbx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r12), %rdi
	movq	%r14, %rsi
	callq	_strcat
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_11
LBB0_13:
	leaq	-184(%rbp), %rdi
	callq	_free_command_lines
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$160, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cmdlist,4,2                    ## @cmdlist
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_class_user,8,3                 ## @class_user
L_.str.1:                               ## @.str.1
	.asciz	"Command \"%s\" is built-in."

L_.str.2:                               ## @.str.2
	.asciz	"Type documentation for \"%s\"."

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_document_command               ; -- Begin function document_command
	.p2align	2
_document_command:                      ; @document_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	x0, [sp, #8]
	bl	_validate_comname
Lloh3:
	adrp	x8, _cmdlist@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cmdlist@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	mov	w4, #1
	bl	_lookup_cmd
	mov	x19, x0
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _class_user@GOTPAGE
Lloh9:
	ldr	x9, [x9, _class_user@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_error
LBB0_2:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	x2, x21
	bl	_sprintf
	add	x0, sp, #24
	mov	x1, x20
	bl	_read_command_lines
	mov	x20, x0
	str	x0, [sp, #16]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_xfree
LBB0_4:
	cbz	x20, LBB0_8
; %bb.5:
	mov	w21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_strlen
	add	w8, w21, w0
	add	w21, w8, #1
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_6
; %bb.7:
	add	w0, w21, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	bl	_xmalloc
	str	x0, [x19, #8]
	strb	wzr, [x0]
	ldr	x21, [sp, #16]
	cbz	x21, LBB0_13
; %bb.10:
Lloh15:
	adrp	x20, l_.str.3@PAGE
Lloh16:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	ldr	x1, [x21]
	bl	_strcat
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_strcat
	ldr	x21, [x21, #8]
	cbnz	x21, LBB0_11
LBB0_13:
	add	x0, sp, #16
	bl	_free_command_lines
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_cmdlist,4,2                    ; @cmdlist
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_class_user,8,3                 ; @class_user
l_.str.1:                               ; @.str.1
	.asciz	"Command \"%s\" is built-in."

l_.str.2:                               ; @.str.2
	.asciz	"Type documentation for \"%s\"."

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

.subsections_via_symbols
