	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_command                   ## -- Begin function find_command
	.p2align	4, 0x90
_find_command:                          ## @find_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rcx, -72(%rbp)
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_CMDNORMAL@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	$0, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_cmdlookup
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	_CMDFUNCTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.5:
	movq	_DO_NOFUNC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_30
LBB0_6:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_find_builtin
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_cmdlookup
	movq	(%rax), %rcx
	movq	_CMDFUNCTION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	leaq	-88(%rbp), %r13
	cmovneq	%rax, %r13
	movq	_CMDBUILTIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movl	%r15d, 12(%r13)
	movl	-64(%rbp), %eax
	movl	%eax, 8(%r13)
LBB0_30:
	movq	(%r13), %rax
	movq	%rax, (%r14)
	movl	12(%r13), %eax
	movl	%eax, 12(%r14)
	movl	8(%r13), %eax
LBB0_31:
	movl	%eax, 8(%r14)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	-72(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdx
	callq	_padvance
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ENOTDIR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	%eax, %ecx
	cmovel	%r13d, %ecx
	movq	_ENOENT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	cmovnel	%ecx, %r13d
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_stunalloc
	leaq	-72(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdx
	callq	_padvance
	movq	%rax, %rbx
	incl	%r15d
	testq	%rax, %rax
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$47, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovnel	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	leaq	-112(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_13
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_EACCES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	-112(%rbp), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_14
## %bb.20:
	cmpq	$0, -56(%rbp)
	je	LBB0_27
## %bb.21:
	movq	%rbx, %rdi
	callq	_readcmdfile
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_cmdlookup
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	(%r13), %rax
	movq	_CMDFUNCTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_24
LBB0_23:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_error
LBB0_24:
	movq	%rbx, %rdi
	callq	_stunalloc
	jmp	LBB0_28
LBB0_15:
	movq	_DO_ERR@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_26
## %bb.16:
	movq	_out2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_18
## %bb.17:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_18
## %bb.25:
	movl	%r13d, %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_outfmt
LBB0_26:
	movq	_CMDUNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_18:
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_outfmt
	movq	_CMDUNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_27:
	movq	%rbx, %rdi
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_stunalloc
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_cmdlookup
	movq	(%rax), %rcx
	movq	_CMDFUNCTION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	leaq	-88(%rbp), %r13
	cmovneq	%rax, %r13
	movq	_CMDNORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movl	%r15d, 12(%r13)
	movl	$0, 8(%r13)
LBB0_28:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_30
## %bb.29:
	movq	_cmdtable_cd@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDNORMAL,8,3                  ## @CMDNORMAL
	.comm	_CMDFUNCTION,8,3                ## @CMDFUNCTION
	.comm	_DO_NOFUNC,4,2                  ## @DO_NOFUNC
	.comm	_INTOFF,4,2                     ## @INTOFF
	.comm	_CMDBUILTIN,8,3                 ## @CMDBUILTIN
	.comm	_INTON,4,2                      ## @INTON
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"func"

	.comm	_errno,4,2                      ## @errno
	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
	.comm	_EACCES,4,2                     ## @EACCES
L_.str.1:                               ## @.str.1
	.asciz	"%s not defined in %s"

	.comm	_DO_ERR,4,2                     ## @DO_ERR
	.comm	_out2,4,2                       ## @out2
L_.str.3:                               ## @.str.3
	.asciz	"%s: not found\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s: %s\n"

	.comm	_CMDUNKNOWN,8,3                 ## @CMDUNKNOWN
	.comm	_cmdtable_cd,4,2                ## @cmdtable_cd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_command                   ; -- Begin function find_command
	.p2align	2
_find_command:                          ; @find_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	x3, [sp, #72]
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.1:
	mov	w8, #0
Lloh0:
	adrp	x9, _CMDNORMAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMDNORMAL@GOTPAGEOFF]
LBB0_2:
	ldr	x9, [x9]
	str	x9, [x19]
	str	wzr, [x19, #12]
	b	LBB0_9
LBB0_3:
	mov	x0, x20
	mov	w1, #0
	bl	_cmdlookup
	cbz	x0, LBB0_6
; %bb.4:
	mov	x23, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _CMDFUNCTION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CMDFUNCTION@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _DO_NOFUNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DO_NOFUNC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
LBB0_6:
	add	x1, sp, #20
	mov	x0, x20
	bl	_find_builtin
	tbnz	w0, #31, LBB0_10
; %bb.7:
	mov	x22, x0
	mov	x0, x20
	mov	w1, #1
	bl	_cmdlookup
Lloh8:
	adrp	x8, _CMDFUNCTION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMDFUNCTION@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh10:
	ldr	x8, [x8]
	add	x10, sp, #56
Lloh11:
	adrp	x11, _CMDBUILTIN@GOTPAGE
Lloh12:
	ldr	x11, [x11, _CMDBUILTIN@GOTPAGEOFF]
	cmp	x9, x8
	csel	x23, x10, x0, eq
Lloh13:
	ldr	x8, [x11]
	str	x8, [x23]
	ldr	w8, [sp, #20]
	stp	w8, w22, [x23, #8]
LBB0_8:
	ldr	x8, [x23]
	str	x8, [x19]
	ldr	w8, [x23, #12]
	str	w8, [x19, #12]
	ldr	w8, [x23, #8]
LBB0_9:
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_10:
Lloh14:
	adrp	x27, _ENOENT@GOTPAGE
Lloh15:
	ldr	x27, [x27, _ENOENT@GOTPAGEOFF]
	ldr	w23, [x27]
	add	x0, sp, #72
	add	x1, sp, #48
	mov	x2, x20
	bl	_padvance
	cbz	x0, LBB0_23
; %bb.11:
	mov	x22, x0
	mov	w26, #0
	mov	w25, #0
Lloh16:
	adrp	x28, _EACCES@GOTPAGE
Lloh17:
	ldr	x28, [x28, _EACCES@GOTPAGEOFF]
Lloh18:
	adrp	x24, l_.str@PAGE
Lloh19:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x27]
Lloh23:
	adrp	x10, _ENOTDIR@GOTPAGE
Lloh24:
	ldr	x10, [x10, _ENOTDIR@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	w8, w10
	ccmp	w8, w9, #4, ne
	csel	w23, w23, w8, eq
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x22
	bl	_stunalloc
	add	x0, sp, #72
	add	x1, sp, #48
	mov	x2, x20
	bl	_padvance
	mov	x22, x0
	add	w26, w26, #1
	cbz	x0, LBB0_23
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #48]
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x24
	mov	w2, #4
	bl	_strncmp
	cbnz	x0, LBB0_13
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w8, [x22]
	cmp	w8, #47
	csinc	w25, w25, wzr, eq
	add	x1, sp, #24
	mov	x0, x22
	bl	_stat
	tbnz	x0, #63, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w23, [x28]
	ldr	w0, [sp, #24]
	bl	_S_ISREG
	cbz	w0, LBB0_13
; %bb.18:
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_29
; %bb.19:
	mov	x0, x22
	bl	_readcmdfile
	mov	x0, x20
	mov	w1, #0
	bl	_cmdlookup
	mov	x23, x0
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x8, [x23]
Lloh26:
	adrp	x9, _CMDFUNCTION@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CMDFUNCTION@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
LBB0_21:
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_error
LBB0_22:
	mov	x0, x22
	bl	_stunalloc
	b	LBB0_30
LBB0_23:
Lloh31:
	adrp	x8, _DO_ERR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DO_ERR@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_28
; %bb.24:
	ldr	w8, [x27]
Lloh34:
	adrp	x9, _ENOTDIR@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ENOTDIR@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _out2@GOTPAGE
Lloh38:
	ldr	x10, [x10, _out2@GOTPAGEOFF]
Lloh39:
	ldr	w21, [x10]
	cmp	w23, w8
	ccmp	w23, w9, #4, ne
	b.ne	LBB0_26
; %bb.25:
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_27
LBB0_26:
	mov	x0, x23
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh42:
	adrp	x1, l_.str.4@PAGE
Lloh43:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_27:
	mov	x0, x21
	mov	x2, x20
	bl	_outfmt
LBB0_28:
	mov	w8, #0
Lloh44:
	adrp	x9, _CMDUNKNOWN@GOTPAGE
Lloh45:
	ldr	x9, [x9, _CMDUNKNOWN@GOTPAGEOFF]
	b	LBB0_2
LBB0_29:
	mov	x0, x22
	bl	_TRACE
	mov	x0, x22
	bl	_stunalloc
	mov	x0, x20
	mov	w1, #1
	bl	_cmdlookup
	ldr	x8, [x0]
Lloh46:
	adrp	x9, _CMDFUNCTION@GOTPAGE
Lloh47:
	ldr	x9, [x9, _CMDFUNCTION@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	add	x10, sp, #56
	cmp	x8, x9
	csel	x23, x10, x0, eq
Lloh49:
	adrp	x8, _CMDNORMAL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CMDNORMAL@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	str	x8, [x23]
	stp	wzr, w26, [x23, #8]
LBB0_30:
	cbz	w25, LBB0_8
; %bb.31:
Lloh52:
	adrp	x8, _cmdtable_cd@GOTPAGE
Lloh53:
	ldr	x8, [x8, _cmdtable_cd@GOTPAGEOFF]
	mov	w9, #1
Lloh54:
	str	w9, [x8]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDNORMAL,8,3                  ; @CMDNORMAL
	.comm	_CMDFUNCTION,8,3                ; @CMDFUNCTION
	.comm	_DO_NOFUNC,4,2                  ; @DO_NOFUNC
	.comm	_INTOFF,4,2                     ; @INTOFF
	.comm	_CMDBUILTIN,8,3                 ; @CMDBUILTIN
	.comm	_INTON,4,2                      ; @INTON
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"func"

	.comm	_errno,4,2                      ; @errno
	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
	.comm	_EACCES,4,2                     ; @EACCES
l_.str.1:                               ; @.str.1
	.asciz	"%s not defined in %s"

	.comm	_DO_ERR,4,2                     ; @DO_ERR
	.comm	_out2,4,2                       ; @out2
l_.str.3:                               ; @.str.3
	.asciz	"%s: not found\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s: %s\n"

	.comm	_CMDUNKNOWN,8,3                 ; @CMDUNKNOWN
	.comm	_cmdtable_cd,4,2                ; @cmdtable_cd
.subsections_via_symbols
