	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DirLookupSubdir
_DirLookupSubdir:                       ## @DirLookupSubdir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_dot@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rdi), %edi
	movq	_STR_ADDSLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_str_concat
	jmp	LBB0_3
LBB0_2:
	movq	%rsi, %rdi
	callq	_bmake_strdup
LBB0_3:
	movq	%rax, %rbx
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf
LBB0_5:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cached_stat
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_nearmisses@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dot,8,3                        ## @dot
	.comm	_STR_ADDSLASH,4,2               ## @STR_ADDSLASH
	.comm	_DIR,4,2                        ## @DIR
	.comm	_debug_file,4,2                 ## @debug_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"checking %s ...\n"

	.comm	_nearmisses,4,2                 ## @nearmisses
	.no_dead_strip	_DirLookupSubdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DirLookupSubdir
_DirLookupSubdir:                       ; @DirLookupSubdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _dot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dot@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _STR_ADDSLASH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STR_ADDSLASH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_str_concat
	b	LBB0_3
LBB0_2:
	mov	x0, x1
	bl	_bmake_strdup
LBB0_3:
	mov	x19, x0
Lloh6:
	adrp	x8, _DIR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_DEBUG
	cbz	x0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _debug_file@GOTPAGE
Lloh10:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_cached_stat
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _nearmisses@GOTPAGE
Lloh15:
	ldr	x8, [x8, _nearmisses@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_dot,8,3                        ; @dot
	.comm	_STR_ADDSLASH,4,2               ; @STR_ADDSLASH
	.comm	_DIR,4,2                        ; @DIR
	.comm	_debug_file,4,2                 ; @debug_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"checking %s ...\n"

	.comm	_nearmisses,4,2                 ; @nearmisses
	.no_dead_strip	_DirLookupSubdir
.subsections_via_symbols
