	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Dir_FindFile                   ## -- Begin function Dir_FindFile
	.p2align	4, 0x90
_Dir_FindFile:                          ## @Dir_FindFile
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r12
	testq	%rax, %rax
	cmoveq	%r14, %r12
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	cmoveq	%r15, %r13
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movl	%ebx, %edi
	callq	_Lst_Open
	movq	_FAILURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	xorl	%eax, %eax
	callq	_fprintf
LBB0_6:
	movq	_misses@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_81:
	xorl	%ebx, %ebx
	jmp	LBB0_82
LBB0_7:
	movl	%ebx, %edi
	callq	_Lst_First
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %rdi
	callq	_Lst_Datum
	movq	_dotLast@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_11
## %bb.9:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_13:
	testq	%r13, %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_16
## %bb.14:
	movq	%r12, %rax
	subq	%r14, %rax
	cmpq	$2, %rax
	jne	LBB0_22
## %bb.15:
	cmpb	$46, (%r14)
	jne	LBB0_22
LBB0_16:
	testq	%r15, %r15
	je	LBB0_61
LBB0_17:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_Lst_Next
	testq	%rax, %rax
	je	LBB0_35
## %bb.18:
	movq	_dotLast@GOTPCREL(%rip), %r15
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_Lst_Next
	testq	%rax, %rax
	je	LBB0_35
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_Lst_Datum
	cmpq	%rax, (%r15)
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_DirLookup
	testq	%rax, %rax
	je	LBB0_19
	jmp	LBB0_62
LBB0_22:
	movl	%ebx, %edi
	callq	_Lst_Close
LBB0_23:
	cmpb	$0, (%r12)
	leaq	L_.str(%rip), %r13
	cmovneq	%r12, %r13
	cmpb	$47, (%r14)
	jne	LBB0_40
## %bb.24:
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_26:
	movq	_cur@GOTPCREL(%rip), %rax
	testq	%r15, %r15
	jne	LBB0_29
## %bb.27:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.28:
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_DirLookupAbs
	testq	%rax, %rax
	jne	LBB0_66
LBB0_29:
	movq	%r15, %r12
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_Lst_Open
	movl	%ebx, %edi
	callq	_Lst_Next
	testq	%rax, %rax
	je	LBB0_63
## %bb.30:
	movq	_dotLast@GOTPCREL(%rip), %r15
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_32 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_Lst_Next
	testq	%rax, %rax
	je	LBB0_63
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_Lst_Datum
	cmpq	%rax, (%r15)
	je	LBB0_31
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_DirLookupAbs
	testq	%rax, %rax
	je	LBB0_31
## %bb.34:
	movq	%rax, %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_Lst_Close
	jmp	LBB0_67
LBB0_35:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_37
## %bb.36:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_DirFindDot
	testq	%rax, %rax
	jne	LBB0_62
LBB0_37:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_Lst_Close
	testq	%r13, %r13
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_23
## %bb.38:
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_6
## %bb.39:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_5
LBB0_40:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_42
## %bb.41:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_42:
	testq	%r15, %r15
	je	LBB0_75
LBB0_43:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_Lst_Open
	movq	_dotLast@GOTPCREL(%rip), %r12
	movq	_dot@GOTPCREL(%rip), %r13
LBB0_44:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_46 Depth 2
	movl	%r15d, %edi
	callq	_Lst_Next
	testq	%rax, %rax
	movl	%r15d, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_46
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_46 Depth=2
	movl	%ebx, %edi
	callq	_Lst_Next
	testq	%rax, %rax
	je	LBB0_52
LBB0_46:                                ##   Parent Loop BB0_44 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %rdi
	callq	_Lst_Datum
	cmpq	%rax, (%r12)
	je	LBB0_45
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=2
	cmpq	%rax, (%r13)
	jne	LBB0_50
## %bb.48:                              ##   in Loop: Header=BB0_46 Depth=2
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_45
## %bb.49:                              ##   in Loop: Header=BB0_44 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
LBB0_50:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_DirLookupSubdir
	testq	%rax, %rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_44
## %bb.51:
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_Lst_Close
	jmp	LBB0_82
LBB0_52:
	movl	%ebx, %edi
	callq	_Lst_Close
	testq	%r15, %r15
	je	LBB0_58
## %bb.53:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_56
## %bb.54:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_56
## %bb.55:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_DirLookupSubdir
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_82
LBB0_56:
	movq	_cur@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_58
## %bb.57:
	movq	%r14, %rsi
	callq	_DirLookupSubdir
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_82
LBB0_58:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_69
## %bb.59:
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_81
## %bb.60:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_74
LBB0_61:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_DirFindDot
	testq	%rax, %rax
	je	LBB0_17
LBB0_62:
	movq	%rax, %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_Lst_Close
	jmp	LBB0_82
LBB0_63:
	movl	%ebx, %edi
	callq	_Lst_Close
	testq	%r12, %r12
	je	LBB0_69
## %bb.64:
	movq	_cur@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_69
## %bb.65:
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_DirLookupAbs
	testq	%rax, %rax
	je	LBB0_69
LBB0_66:
	movq	%rax, %rbx
LBB0_67:
	cmpb	$0, (%rbx)
	jne	LBB0_82
## %bb.68:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_81
LBB0_69:
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_71
## %bb.70:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_71:
	movq	_bigmisses@GOTPCREL(%rip), %rax
	incl	(%rax)
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_cached_stat
	testq	%rax, %rax
	je	LBB0_79
## %bb.72:
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_81
## %bb.73:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
LBB0_74:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_82
LBB0_75:
	movq	_dot@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_77
## %bb.76:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_DirLookupSubdir
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_82
LBB0_77:
	movq	_cur@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_43
## %bb.78:
	movq	%r14, %rsi
	callq	_DirLookupSubdir
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_82
	jmp	LBB0_43
LBB0_79:
	movq	%r14, %rdi
	callq	_bmake_strdup
	movq	%rax, %rbx
LBB0_82:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_DIR,4,2                        ## @DIR
	.comm	_debug_file,4,2                 ## @debug_file
L_.str.1:                               ## @.str.1
	.asciz	"Searching for %s ..."

	.comm	_FAILURE,8,3                    ## @FAILURE
L_.str.2:                               ## @.str.2
	.asciz	"couldn't open path, file not found\n"

	.comm	_misses,4,2                     ## @misses
	.comm	_dotLast,8,3                    ## @dotLast
L_.str.3:                               ## @.str.3
	.asciz	"[dot last]..."

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

L_.str.5:                               ## @.str.5
	.asciz	"   failed.\n"

L_.str.6:                               ## @.str.6
	.asciz	"   Trying subdirectories...\n"

	.comm	_dot,8,3                        ## @dot
	.comm	_cur,8,3                        ## @cur
L_.str.7:                               ## @.str.7
	.asciz	"   Checked . already, returning NULL\n"

L_.str.8:                               ## @.str.8
	.asciz	"   Trying exact path matches...\n"

L_.str.9:                               ## @.str.9
	.asciz	"   Looking for \"%s\" ...\n"

	.comm	_bigmisses,4,2                  ## @bigmisses
L_.str.10:                              ## @.str.10
	.asciz	"   failed. Returning NULL\n"

	.comm	_traling_dot,8,3                ## @traling_dot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Dir_FindFile                   ; -- Begin function Dir_FindFile
	.p2align	2
_Dir_FindFile:                          ; @Dir_FindFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x27, _FALSE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _FALSE@GOTPAGEOFF]
	ldr	x25, [x27]
	mov	w1, #47
	bl	_strrchr
Lloh2:
	adrp	x26, _TRUE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, #0
	csel	x22, x25, x8, eq
	csinc	x21, x19, x0, eq
Lloh4:
	adrp	x24, _DIR@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DIR@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_DEBUG
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _debug_file@GOTPAGE
Lloh7:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_2:
	mov	x0, x20
	bl	_Lst_Open
Lloh11:
	adrp	x8, _FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x24]
	bl	_DEBUG
	cbz	x0, LBB0_6
; %bb.4:
Lloh14:
	adrp	x8, _debug_file@GOTPAGE
Lloh15:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	bl	_fprintf
LBB0_6:
	mov	x23, #0
Lloh19:
	adrp	x8, _misses@GOTPAGE
Lloh20:
	ldr	x8, [x8, _misses@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_73
LBB0_7:
	mov	x0, x20
	bl	_Lst_First
	cbz	x0, LBB0_11
; %bb.8:
	bl	_Lst_Datum
Lloh21:
	adrp	x8, _dotLast@GOTPAGE
Lloh22:
	ldr	x8, [x8, _dotLast@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_11
; %bb.9:
	ldr	x25, [x26]
	ldr	w0, [x24]
	bl	_DEBUG
	cbz	x0, LBB0_11
; %bb.10:
Lloh24:
	adrp	x8, _debug_file@GOTPAGE
Lloh25:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_11:
	ldr	w0, [x24]
	bl	_DEBUG
	cbz	x0, LBB0_13
; %bb.12:
Lloh29:
	adrp	x8, _debug_file@GOTPAGE
Lloh30:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_13:
	cbz	x22, LBB0_16
; %bb.14:
	sub	x8, x21, x19
	cmp	x8, #2
	b.ne	LBB0_22
; %bb.15:
	ldrb	w8, [x19]
	cmp	w8, #46
	b.ne	LBB0_22
LBB0_16:
	cbz	x25, LBB0_44
LBB0_17:
	mov	x0, x20
	bl	_Lst_Next
	cbz	x0, LBB0_35
; %bb.18:
Lloh34:
	adrp	x28, _dotLast@GOTPAGE
Lloh35:
	ldr	x28, [x28, _dotLast@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x20
	bl	_Lst_Next
	cbz	x0, LBB0_35
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	bl	_Lst_Datum
	ldr	x8, [x28]
	cmp	x8, x0
	b.eq	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_DirLookup
	cbz	x0, LBB0_19
	b	LBB0_45
LBB0_22:
	mov	x0, x20
	bl	_Lst_Close
LBB0_23:
	ldrb	w8, [x21]
Lloh36:
	adrp	x9, l_.str@PAGE
Lloh37:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w8, #0
	csel	x21, x9, x21, eq
	ldrb	w8, [x19]
	cmp	w8, #47
	b.ne	LBB0_40
; %bb.24:
	ldr	w0, [x24]
	bl	_DEBUG
	cbz	x0, LBB0_26
; %bb.25:
Lloh38:
	adrp	x8, _debug_file@GOTPAGE
Lloh39:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
LBB0_26:
Lloh43:
	adrp	x22, _cur@GOTPAGE
Lloh44:
	ldr	x22, [x22, _cur@GOTPAGEOFF]
	cbnz	x25, LBB0_29
; %bb.27:
	ldr	x0, [x22]
	cbz	x0, LBB0_29
; %bb.28:
	mov	x1, x19
	mov	x2, x21
	bl	_DirLookupAbs
	cbnz	x0, LBB0_49
LBB0_29:
	mov	x0, x20
	bl	_Lst_Open
	mov	x0, x20
	bl	_Lst_Next
	cbz	x0, LBB0_46
; %bb.30:
Lloh45:
	adrp	x26, _dotLast@GOTPAGE
Lloh46:
	ldr	x26, [x26, _dotLast@GOTPAGEOFF]
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x0, x20
	bl	_Lst_Next
	cbz	x0, LBB0_46
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	bl	_Lst_Datum
	ldr	x8, [x26]
	cmp	x8, x0
	b.eq	LBB0_31
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x1, x19
	mov	x2, x21
	bl	_DirLookupAbs
	cbz	x0, LBB0_31
; %bb.34:
	mov	x23, x0
	mov	x0, x20
	bl	_Lst_Close
	b	LBB0_50
LBB0_35:
	cbz	x25, LBB0_37
; %bb.36:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_DirFindDot
	cbnz	x0, LBB0_45
LBB0_37:
	mov	x0, x20
	bl	_Lst_Close
	cbnz	x22, LBB0_23
; %bb.38:
	ldr	w0, [x24]
	bl	_DEBUG
	cbz	x0, LBB0_6
; %bb.39:
Lloh47:
	adrp	x8, _debug_file@GOTPAGE
Lloh48:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x1, l_.str.5@PAGE
Lloh51:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_5
LBB0_40:
	ldr	x21, [x27]
	ldr	w0, [x24]
	bl	_DEBUG
	cbz	x0, LBB0_42
; %bb.41:
Lloh52:
	adrp	x8, _debug_file@GOTPAGE
Lloh53:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x1, l_.str.6@PAGE
Lloh56:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
LBB0_42:
Lloh57:
	adrp	x22, _dot@GOTPAGE
Lloh58:
	ldr	x22, [x22, _dot@GOTPAGEOFF]
	cbz	x25, LBB0_74
LBB0_43:
	mov	x0, x20
	bl	_Lst_Open
Lloh59:
	adrp	x27, _dotLast@GOTPAGE
Lloh60:
	ldr	x27, [x27, _dotLast@GOTPAGEOFF]
	b	LBB0_54
LBB0_44:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_DirFindDot
	cbz	x0, LBB0_17
LBB0_45:
	mov	x23, x0
	mov	x0, x20
	bl	_Lst_Close
	b	LBB0_73
LBB0_46:
	mov	x0, x20
	bl	_Lst_Close
	cbz	x25, LBB0_66
; %bb.47:
	ldr	x0, [x22]
	cbz	x0, LBB0_66
; %bb.48:
	mov	x1, x19
	mov	x2, x21
	bl	_DirLookupAbs
	cbz	x0, LBB0_66
LBB0_49:
	mov	x23, x0
LBB0_50:
	ldrb	w8, [x23]
	cbnz	w8, LBB0_73
; %bb.51:
	mov	x0, x23
	bl	_free
	b	LBB0_72
LBB0_52:                                ;   in Loop: Header=BB0_54 Depth=1
	ldr	x21, [x26]
LBB0_53:                                ;   in Loop: Header=BB0_54 Depth=1
	mov	x1, x19
	bl	_DirLookupSubdir
	cbnz	x0, LBB0_45
LBB0_54:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_Lst_Next
	cbz	x0, LBB0_58
; %bb.55:                               ;   in Loop: Header=BB0_54 Depth=1
	bl	_Lst_Datum
	ldr	x8, [x27]
	cmp	x8, x0
	b.eq	LBB0_54
; %bb.56:                               ;   in Loop: Header=BB0_54 Depth=1
	ldr	x8, [x22]
	cmp	x8, x0
	b.ne	LBB0_53
; %bb.57:                               ;   in Loop: Header=BB0_54 Depth=1
	cbnz	x21, LBB0_54
	b	LBB0_52
LBB0_58:
	mov	x0, x20
	bl	_Lst_Close
	cbz	x25, LBB0_63
; %bb.59:
	ldr	x0, [x22]
	cmp	x0, #0
	ccmp	x21, #0, #0, ne
	b.ne	LBB0_61
; %bb.60:
	ldr	x21, [x26]
	mov	x1, x19
	bl	_DirLookupSubdir
	mov	x23, x0
	cbnz	x0, LBB0_73
LBB0_61:
Lloh61:
	adrp	x8, _cur@GOTPAGE
Lloh62:
	ldr	x8, [x8, _cur@GOTPAGEOFF]
Lloh63:
	ldr	x0, [x8]
	cbz	x0, LBB0_63
; %bb.62:
	mov	x1, x19
	bl	_DirLookupSubdir
	mov	x23, x0
	cbnz	x0, LBB0_73
LBB0_63:
	cbz	x21, LBB0_66
; %bb.64:
	ldr	w0, [x24]
	bl	_DEBUG
	cbz	x0, LBB0_72
; %bb.65:
Lloh64:
	adrp	x8, _debug_file@GOTPAGE
Lloh65:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
Lloh67:
	adrp	x1, l_.str.7@PAGE
Lloh68:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_71
LBB0_66:
	ldr	w0, [x24]
	bl	_DEBUG
	cbz	x0, LBB0_68
; %bb.67:
Lloh69:
	adrp	x8, _debug_file@GOTPAGE
Lloh70:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh72:
	adrp	x1, l_.str.9@PAGE
Lloh73:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf
LBB0_68:
Lloh74:
	adrp	x8, _bigmisses@GOTPAGE
Lloh75:
	ldr	x8, [x8, _bigmisses@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_cached_stat
	cbz	x0, LBB0_78
; %bb.69:
	ldr	w0, [x24]
	bl	_DEBUG
	cbz	x0, LBB0_72
; %bb.70:
Lloh76:
	adrp	x8, _debug_file@GOTPAGE
Lloh77:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
Lloh79:
	adrp	x1, l_.str.10@PAGE
Lloh80:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_71:
	bl	_fprintf
LBB0_72:
	mov	x23, #0
LBB0_73:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_74:
	ldr	x0, [x22]
	cbz	x0, LBB0_76
; %bb.75:
	ldr	x21, [x26]
	mov	x1, x19
	bl	_DirLookupSubdir
	mov	x23, x0
	cbnz	x0, LBB0_73
LBB0_76:
Lloh81:
	adrp	x8, _cur@GOTPAGE
Lloh82:
	ldr	x8, [x8, _cur@GOTPAGEOFF]
Lloh83:
	ldr	x0, [x8]
	cbz	x0, LBB0_43
; %bb.77:
	mov	x1, x19
	bl	_DirLookupSubdir
	mov	x23, x0
	cbnz	x0, LBB0_73
	b	LBB0_43
LBB0_78:
	mov	x0, x19
	bl	_bmake_strdup
	mov	x23, x0
	b	LBB0_73
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_DIR,4,2                        ; @DIR
	.comm	_debug_file,4,2                 ; @debug_file
l_.str.1:                               ; @.str.1
	.asciz	"Searching for %s ..."

	.comm	_FAILURE,8,3                    ; @FAILURE
l_.str.2:                               ; @.str.2
	.asciz	"couldn't open path, file not found\n"

	.comm	_misses,4,2                     ; @misses
	.comm	_dotLast,8,3                    ; @dotLast
l_.str.3:                               ; @.str.3
	.asciz	"[dot last]..."

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

l_.str.5:                               ; @.str.5
	.asciz	"   failed.\n"

l_.str.6:                               ; @.str.6
	.asciz	"   Trying subdirectories...\n"

	.comm	_dot,8,3                        ; @dot
	.comm	_cur,8,3                        ; @cur
l_.str.7:                               ; @.str.7
	.asciz	"   Checked . already, returning NULL\n"

l_.str.8:                               ; @.str.8
	.asciz	"   Trying exact path matches...\n"

l_.str.9:                               ; @.str.9
	.asciz	"   Looking for \"%s\" ...\n"

	.comm	_bigmisses,4,2                  ; @bigmisses
l_.str.10:                              ; @.str.10
	.asciz	"   failed. Returning NULL\n"

	.comm	_traling_dot,8,3                ; @traling_dot
.subsections_via_symbols
