	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_cmd                     ## -- Begin function lookup_cmd
	.p2align	4, 0x90
_lookup_cmd:                            ## @lookup_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
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -176(%rbp)
	leaq	-176(%rbp), %rdx
	movl	%r8d, %ecx
	callq	_lookup_cmd_1
	cmpq	$-1, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.6:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:
	xorl	%r12d, %r12d
	jmp	LBB0_36
LBB0_14:
	movq	-176(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_16
## %bb.15:
	movl	(%r12), %r13d
	movq	8(%r12), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	24(%r12), %rax
	movq	(%rax), %rbx
LBB0_16:
	testl	%r13d, %r13d
	js	LBB0_36
## %bb.17:
	movq	(%r15), %rdi
	xorl	%r12d, %r12d
	movabsq	$4294967809, %rax               ## imm = 0x100000201
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r12
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%r12), %ecx
	cmpq	$32, %rcx
	ja	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	btq	%rcx, %rax
	jae	LBB0_20
## %bb.21:
	movb	$0, -160(%rbp)
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.22:
	leaq	-160(%rbp), %r13
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rsi
	movl	%r12d, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	16(%rbx), %rdi
	callq	_strlen
	addl	%r14d, %eax
	cmpl	$93, %eax
	jg	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcat
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	16(%rbx), %rsi
	movq	%r13, %rdi
	callq	_strcat
LBB0_28:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	32(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	(%r15), %rdi
	jmp	LBB0_23
LBB0_2:
	movq	(%r15), %rsi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	movq	%rsi, (%r15)
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi), %eax
	cmpb	$32, %al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$9, %al
	je	LBB0_5
## %bb.32:
	cmpq	$0, 24(%r12)
	je	LBB0_36
## %bb.33:
	testb	%al, %al
	je	LBB0_36
## %bb.34:
	cmpl	$0, (%r12)
	jne	LBB0_36
## %bb.35:
	movq	8(%r12), %rdi
	callq	_undef_cmd_error
	jmp	LBB0_36
LBB0_8:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_38
## %bb.9:
	movq	%rbx, %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	incq	%r12
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_isalnum
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$45, (%rbx)
	je	LBB0_12
## %bb.13:
	movl	%r12d, %edi
	subl	(%r15), %edi
	incl	%edi
	callq	_alloca
	movq	%rax, %r14
	movq	(%r15), %rsi
	movl	%r12d, %edx
	subl	%esi, %edx
	movq	%rax, %rdi
	callq	_strncpy
	movq	%r14, %rax
	subq	(%r15), %rax
	movb	$0, (%rax,%r12)
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	callq	_undef_cmd_error
	xorl	%r12d, %r12d
	jmp	LBB0_36
LBB0_38:
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_36
LBB0_30:
	leaq	L_.str.2(%rip), %rsi
	leaq	-160(%rbp), %rdi
	callq	_strcat
LBB0_31:
	movq	(%r15), %rdx
	leaq	L_.str.3(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	-160(%rbp), %rcx
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_error
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_39
## %bb.37:
	movq	%r12, %rax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Lack of needed %scommand"

L_.str.1:                               ## @.str.1
	.asciz	", "

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

L_.str.3:                               ## @.str.3
	.asciz	"Ambiguous %scommand \"%s\": %s."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_cmd                     ; -- Begin function lookup_cmd
	.p2align	2
_lookup_cmd:                            ; @lookup_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #24]
	add	x2, sp, #24
	mov	x3, x4
	bl	_lookup_cmd_1
	cmn	x0, #1
	b.eq	LBB0_9
; %bb.1:
	mov	x22, x0
	cbnz	x0, LBB0_15
; %bb.2:
	cbnz	w23, LBB0_33
; %bb.3:
	ldr	x22, [x19]
	cbz	x22, LBB0_30
; %bb.4:
	mov	x21, x22
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	add	x22, x22, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x21]
	bl	_isalnum
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x21]
	cmp	w8, #45
	b.eq	LBB0_5
; %bb.8:
	ldr	w8, [x19]
	sub	w8, w22, w8
	add	w0, w8, #1
	bl	_alloca
	mov	x21, x0
	ldr	x1, [x19]
	sub	w2, w22, w1
	bl	_strncpy
	ldr	x8, [x19]
	sub	x8, x21, x8
	strb	wzr, [x8, x22]
	mov	x0, x20
	mov	x1, x21
	bl	_undef_cmd_error
	b	LBB0_33
LBB0_9:
	ldr	x22, [sp, #24]
	cbz	x22, LBB0_11
; %bb.10:
	ldr	w23, [x22]
	ldr	x20, [x22, #8]
	ldr	x8, [x22, #24]
	ldr	x21, [x8]
LBB0_11:
	tbnz	w23, #31, LBB0_34
; %bb.12:
	mov	x22, #0
	ldr	x0, [x19]
	mov	w8, #1
	mov	x9, #513
	movk	x9, #1, lsl #32
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x0, x22]
	cmp	w10, #32
	lsl	x10, x8, x10
	and	x10, x10, x9
	ccmp	x10, #0, #4, ls
	b.ne	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #1
	b	LBB0_13
LBB0_15:
	ldr	x1, [x19]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x1]
	cmp	w8, #32
	ccmp	w8, #9, #4, ne
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x1, x1, #1
	str	x1, [x19]
	b	LBB0_16
LBB0_18:
	ldr	x9, [x22, #24]
	cmp	x9, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_34
; %bb.19:
	ldr	w8, [x22]
	cbnz	w8, LBB0_34
; %bb.20:
	ldr	x0, [x22, #8]
	bl	_undef_cmd_error
	b	LBB0_34
LBB0_21:
	strb	wzr, [sp, #36]
	cbz	x21, LBB0_32
; %bb.22:
Lloh3:
	adrp	x23, l_.str.1@PAGE
Lloh4:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21, #16]
	mov	x2, x22
	bl	_strncmp
	cbnz	w0, LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x0, sp, #36
	bl	_strlen
	mov	x24, x0
	ldr	x0, [x21, #16]
	bl	_strlen
	add	w8, w0, w24
	cmp	w8, #93
	b.gt	LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x0, sp, #36
	bl	_strlen
	cbz	w0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x0, sp, #36
	mov	x1, x23
	bl	_strcat
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x1, [x21, #16]
	add	x0, sp, #36
	bl	_strcat
LBB0_28:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x21, [x21, #32]
	cbz	x21, LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x0, [x19]
	b	LBB0_23
LBB0_30:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_error
	b	LBB0_34
LBB0_31:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #36
	bl	_strcat
LBB0_32:
	ldr	x8, [x19]
	add	x9, sp, #36
	stp	x8, x9, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_error
LBB0_33:
	mov	x22, #0
LBB0_34:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.35:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Lack of needed %scommand"

l_.str.1:                               ; @.str.1
	.asciz	", "

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

l_.str.3:                               ; @.str.3
	.asciz	"Ambiguous %scommand \"%s\": %s."

.subsections_via_symbols
