	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Dir_AddDir                     ## -- Begin function Dir_AddDir
	.p2align	4, 0x90
_Dir_AddDir:                            ## @Dir_AddDir
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	testq	%r14, %r14
	je	LBB0_8
LBB0_5:
	movq	_openDirectories@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_DirFindName@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_Lst_Find
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rdi
	callq	_Lst_Datum
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_Lst_Member
	testq	%rax, %rax
	jne	LBB0_19
## %bb.7:
	incl	(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_Lst_AtEnd
	jmp	LBB0_19
LBB0_1:
	movq	_DirFindName@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Lst_Find
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_Lst_Datum
	movq	%rax, %r15
	jmp	LBB0_19
LBB0_3:
	movq	_dotLast@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incl	(%rsi)
	movq	%r14, %rdi
	callq	_Lst_AtFront
	testq	%r14, %r14
	jne	LBB0_5
LBB0_8:
	movq	_DIR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_10:
	movq	%rbx, %rdi
	callq	_opendir
	movq	_d@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	$24, %edi
	callq	_bmake_malloc
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_bmake_strdup
	movl	%eax, 16(%r15)
	movq	$0, 8(%r15)
	movl	$1, (%r15)
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_Hash_InitTable
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_Hash_CreateEntry
	jmp	LBB0_14
LBB0_15:
	movl	(%r13), %edi
	callq	_closedir
	movq	_openDirectories@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_Lst_AtEnd
	testq	%r14, %r14
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_Lst_AtEnd
	jmp	LBB0_17
LBB0_11:
	xorl	%r15d, %r15d
LBB0_17:
	movl	(%r12), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_19:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR,4,2                        ## @DIR
	.comm	_d,4,2                          ## @d
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".DOTLAST"

	.comm	_DirFindName,4,2                ## @DirFindName
	.comm	_dotLast,8,3                    ## @dotLast
	.comm	_openDirectories,8,3            ## @openDirectories
	.comm	_debug_file,4,2                 ## @debug_file
L_.str.1:                               ## @.str.1
	.asciz	"Caching %s ..."

L_.str.2:                               ## @.str.2
	.asciz	"done\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Dir_AddDir                     ; -- Begin function Dir_AddDir
	.p2align	2
_Dir_AddDir:                            ; @Dir_AddDir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_11
LBB0_1:
Lloh2:
	adrp	x24, _openDirectories@GOTPAGE
Lloh3:
	ldr	x24, [x24, _openDirectories@GOTPAGEOFF]
	cbz	x19, LBB0_5
; %bb.2:
	ldr	x0, [x24]
Lloh4:
	adrp	x8, _DirFindName@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DirFindName@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_Lst_Find
	cbz	x0, LBB0_5
; %bb.3:
	bl	_Lst_Datum
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_Lst_Member
	cbnz	x0, LBB0_18
; %bb.4:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_Lst_AtEnd
	b	LBB0_18
LBB0_5:
Lloh7:
	adrp	x23, _DIR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _DIR@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_DEBUG
Lloh9:
	adrp	x22, _debug_file@GOTPAGE
Lloh10:
	ldr	x22, [x22, _debug_file@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x22]
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_7:
	mov	x0, x21
	bl	_opendir
Lloh13:
	adrp	x25, _d@GOTPAGE
Lloh14:
	ldr	x25, [x25, _d@GOTPAGEOFF]
	str	w0, [x25]
	cbz	w0, LBB0_15
; %bb.8:
	mov	w0, #24
	bl	_bmake_malloc
	mov	x20, x0
	mov	x0, x21
	bl	_bmake_strdup
	str	w0, [x20, #16]
	str	xzr, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
	add	x21, x20, #4
	mov	x0, x21
	mov	w1, #-1
	bl	_Hash_InitTable
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_readdir
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x0, #8]
	mov	x0, x21
	mov	x2, #0
	bl	_Hash_CreateEntry
	b	LBB0_9
LBB0_11:
Lloh15:
	adrp	x8, _DirFindName@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DirFindName@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_Lst_Find
	cbz	x0, LBB0_19
; %bb.12:
	bl	_Lst_Datum
	mov	x20, x0
	b	LBB0_18
LBB0_13:
	ldr	w0, [x25]
	bl	_closedir
	ldr	x0, [x24]
	mov	x1, x20
	bl	_Lst_AtEnd
	cbz	x19, LBB0_16
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	bl	_Lst_AtEnd
	b	LBB0_16
LBB0_15:
	mov	x20, #0
LBB0_16:
	ldr	w0, [x23]
	bl	_DEBUG
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w0, [x22]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
Lloh20:
	adrp	x8, _dotLast@GOTPAGE
Lloh21:
	ldr	x8, [x8, _dotLast@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x8]
	ldr	w8, [x1]
	add	w8, w8, #1
	str	w8, [x1]
	mov	x0, x19
	bl	_Lst_AtFront
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR,4,2                        ; @DIR
	.comm	_d,4,2                          ; @d
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".DOTLAST"

	.comm	_DirFindName,4,2                ; @DirFindName
	.comm	_dotLast,8,3                    ; @dotLast
	.comm	_openDirectories,8,3            ; @openDirectories
	.comm	_debug_file,4,2                 ; @debug_file
l_.str.1:                               ; @.str.1
	.asciz	"Caching %s ..."

l_.str.2:                               ; @.str.2
	.asciz	"done\n"

.subsections_via_symbols
