	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmdlookup
_cmdlookup:                             ## @cmdlookup
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movzbl	(%rdi), %ecx
	movl	%ecx, %eax
	shll	$4, %eax
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	leaq	1(%r15), %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%cl, %ecx
	addl	%ecx, %eax
	movzbl	(%rdx), %ecx
	incq	%rdx
	testb	%cl, %cl
	jne	LBB0_2
LBB0_3:
	movq	_cmdtable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CMDTABLESIZE@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	divl	(%rsi)
                                        ## kill: def $edx killed $edx def $rdx
	leaq	(%rcx,%rdx,8), %r12
	movq	(%rcx,%rdx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_equal
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_equal
	testq	%rax, %rax
	jne	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.7:
	addq	$8, %r12
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r14
	leal	17(%rax), %edi
	callq	_ckmalloc
	movq	%rax, %rbx
	movq	%rax, (%r12)
	movq	$0, 8(%rax)
	movq	_CMDUNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	incq	%r14
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	jmp	LBB0_12
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_11:
	addq	$8, %r12
LBB0_12:
	movq	_lastcmdentry@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmdtable,8,3                   ## @cmdtable
	.comm	_CMDTABLESIZE,4,2               ## @CMDTABLESIZE
	.comm	_INTOFF,4,2                     ## @INTOFF
	.comm	_CMDUNKNOWN,4,2                 ## @CMDUNKNOWN
	.comm	_INTON,4,2                      ## @INTON
	.comm	_lastcmdentry,8,3               ## @lastcmdentry
	.no_dead_strip	_cmdlookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmdlookup
_cmdlookup:                             ; @cmdlookup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldrb	w9, [x0]
	lsl	w8, w9, #4
	cbz	w9, LBB0_3
; %bb.1:
	add	x10, x19, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, w9, sxtb
	ldrb	w9, [x10], #1
	cbnz	w9, LBB0_2
LBB0_3:
Lloh0:
	adrp	x9, _cmdtable@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cmdtable@GOTPAGEOFF]
Lloh2:
	adrp	x10, _CMDTABLESIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CMDTABLESIZE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	ldr	w10, [x10]
	udiv	w11, w8, w10
	msub	w8, w11, w10, w8
	add	x22, x9, w8, uxtw #3
	ldr	x21, [x22]
	cbz	x21, LBB0_8
; %bb.4:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_equal
	cbnz	x0, LBB0_12
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	bl	_equal
	cbnz	x0, LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x21
	ldr	x21, [x21, #8]
	cbnz	x21, LBB0_5
; %bb.7:
	add	x22, x22, #8
LBB0_8:
	cbz	w20, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_strlen
	mov	x20, x0
	add	w0, w20, #17
	bl	_ckmalloc
	mov	x21, x0
	str	x0, [x22]
	str	xzr, [x0, #8]
Lloh6:
	adrp	x8, _CMDUNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMDUNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	w0, [x0]
	add	x2, x20, #1
	mov	x1, x19
	bl	_memcpy
	b	LBB0_12
LBB0_10:
	mov	x21, #0
	b	LBB0_12
LBB0_11:
	add	x22, x22, #8
LBB0_12:
Lloh9:
	adrp	x8, _lastcmdentry@GOTPAGE
Lloh10:
	ldr	x8, [x8, _lastcmdentry@GOTPAGEOFF]
Lloh11:
	str	x22, [x8]
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cmdtable,8,3                   ; @cmdtable
	.comm	_CMDTABLESIZE,4,2               ; @CMDTABLESIZE
	.comm	_INTOFF,4,2                     ; @INTOFF
	.comm	_CMDUNKNOWN,4,2                 ; @CMDUNKNOWN
	.comm	_INTON,4,2                      ; @INTON
	.comm	_lastcmdentry,8,3               ; @lastcmdentry
	.no_dead_strip	_cmdlookup
.subsections_via_symbols
