	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_index_entry_with_check
_add_index_entry_with_check:            ## @add_index_entry_with_check
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_ADD_CACHE_OK_TO_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_ADD_CACHE_OK_TO_REPLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%edx, %ebx
	movq	_ADD_CACHE_SKIP_DFCHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ADD_CACHE_NEW_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_ADD_CACHE_KEEP_CACHE_TREE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_cache_tree_invalidate_path
LBB0_2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movl	(%r14), %edi
	movq	8(%r13), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	jle	LBB0_5
## %bb.4:
	movl	(%r13), %edi
	callq	_index_pos_to_insert_pos
	jmp	LBB0_6
LBB0_5:
	movl	(%r14), %r15d
	movq	%r14, %rdi
	callq	_ce_namelen
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ce_stage
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%rax, %rcx
	callq	_index_name_stage_pos
LBB0_6:
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	testl	%r12d, -56(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_27
## %bb.8:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_replace_index_entry
	jmp	LBB0_27
LBB0_9:
	notl	%r15d
	movq	_ADD_CACHE_KEEP_CACHE_TREE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_10
## %bb.11:
	cmpl	%r15d, (%r13)
	jg	LBB0_12
	jmp	LBB0_14
LBB0_10:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_untracked_cache_add_to_index
	cmpl	%r15d, (%r13)
	jle	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	callq	_ce_stage
	testq	%rax, %rax
	je	LBB0_13
LBB0_14:
	testl	%r12d, -52(%rbp)                ## 4-byte Folded Reload
	je	LBB0_15
LBB0_18:
	movl	(%r14), %edi
	movl	4(%r14), %esi
	callq	_verify_path
	testl	%eax, %eax
	je	LBB0_19
## %bb.21:
	testl	%r12d, -48(%rbp)                ## 4-byte Folded Reload
	je	LBB0_22
LBB0_26:
	incl	%r15d
	movl	%r15d, %ebx
	jmp	LBB0_27
LBB0_15:
	movl	$-1, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	leaq	L_.str(%rip), %rdi
LBB0_20:
	callq	__
	movl	(%r14), %esi
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_13:
	movslq	%r15d, %rbx
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_ce_same_name
	testq	%rax, %rax
	je	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_remove_index_entry_at
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_ce_same_name
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_18
LBB0_22:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_check_file_directory_conflict
	testq	%rax, %rax
	je	LBB0_26
## %bb.23:
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.25:
	movl	(%r14), %r15d
	movq	%r14, %rdi
	callq	_ce_namelen
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ce_stage
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%rax, %rcx
	callq	_index_name_stage_pos
	movl	%eax, %r15d
	notl	%r15d
	jmp	LBB0_26
LBB0_24:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ## @ADD_CACHE_OK_TO_ADD
	.comm	_ADD_CACHE_OK_TO_REPLACE,4,2    ## @ADD_CACHE_OK_TO_REPLACE
	.comm	_ADD_CACHE_SKIP_DFCHECK,4,2     ## @ADD_CACHE_SKIP_DFCHECK
	.comm	_ADD_CACHE_NEW_ONLY,4,2         ## @ADD_CACHE_NEW_ONLY
	.comm	_ADD_CACHE_KEEP_CACHE_TREE,4,2  ## @ADD_CACHE_KEEP_CACHE_TREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid path '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"'%s' appears as both a file and as a directory"

	.no_dead_strip	_add_index_entry_with_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_index_entry_with_check
_add_index_entry_with_check:            ; @add_index_entry_with_check
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ADD_CACHE_OK_TO_ADD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADD_CACHE_OK_TO_ADD@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ADD_CACHE_OK_TO_REPLACE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADD_CACHE_OK_TO_REPLACE@GOTPAGEOFF]
Lloh4:
	ldr	w26, [x8]
Lloh5:
	ldr	w24, [x9]
Lloh6:
	adrp	x8, _ADD_CACHE_SKIP_DFCHECK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADD_CACHE_SKIP_DFCHECK@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ADD_CACHE_NEW_ONLY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADD_CACHE_NEW_ONLY@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
Lloh11:
	ldr	w27, [x9]
Lloh12:
	adrp	x28, _ADD_CACHE_KEEP_CACHE_TREE@GOTPAGE
Lloh13:
	ldr	x28, [x28, _ADD_CACHE_KEEP_CACHE_TREE@GOTPAGEOFF]
	ldr	w8, [x28]
	tst	w8, w2
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_cache_tree_invalidate_path
LBB0_2:
	ldr	w8, [x20]
	subs	w8, w8, #1
	b.lt	LBB0_13
; %bb.3:
	ldr	w0, [x19]
	ldr	x9, [x20, #8]
	ldr	x8, [x9, w8, uxtw #3]
	ldr	w1, [x8]
	bl	_strcmp
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.4:
	ldr	w0, [x20]
	bl	_index_pos_to_insert_pos
	mov	x1, x0
	tbz	w0, #31, LBB0_14
LBB0_5:
	mvn	w22, w1
	ldr	w8, [x28]
	tst	w8, w21
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_untracked_cache_add_to_index
LBB0_7:
	ldr	w8, [x20]
	cmp	w8, w22
	b.le	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_ce_stage
	cbz	x0, LBB0_21
LBB0_9:
	and	w8, w26, w21
	cbz	w8, LBB0_17
LBB0_10:
	ldp	w0, w1, [x19]
	bl	_verify_path
	cbz	w0, LBB0_19
; %bb.11:
	and	w8, w25, w21
	cbz	w8, LBB0_25
LBB0_12:
	add	w0, w22, #1
	b	LBB0_18
LBB0_13:
	ldr	w22, [x19]
	mov	x0, x19
	bl	_ce_namelen
	mov	x23, x0
	mov	x0, x19
	bl	_ce_stage
	mov	x3, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_index_name_stage_pos
	mov	x1, x0
	tbnz	w0, #31, LBB0_5
LBB0_14:
	and	w8, w27, w21
	cbz	w8, LBB0_16
; %bb.15:
	mov	w0, #0
	b	LBB0_18
LBB0_16:
	mov	x0, x20
	mov	x2, x19
	bl	_replace_index_entry
	mov	w0, #0
	b	LBB0_18
LBB0_17:
	mov	w0, #-1
LBB0_18:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
LBB0_20:
	bl	__
	ldr	w1, [x19]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_error
LBB0_21:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, w22, sxtw #3]
	mov	x1, x19
	bl	_ce_same_name
	cbz	x0, LBB0_9
; %bb.22:
	sxtw	x23, w22
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_remove_index_entry_at
	cbz	w0, LBB0_10
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x23, lsl #3]
	mov	x1, x19
	bl	_ce_same_name
	cbnz	x0, LBB0_23
	b	LBB0_10
LBB0_25:
	and	w21, w24, w21
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_check_file_directory_conflict
	cbz	x0, LBB0_12
; %bb.26:
	cbz	w21, LBB0_28
; %bb.27:
	ldr	w21, [x19]
	mov	x0, x19
	bl	_ce_namelen
	mov	x22, x0
	mov	x0, x19
	bl	_ce_stage
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_index_name_stage_pos
	mvn	w22, w0
	b	LBB0_12
LBB0_28:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_20
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ; @ADD_CACHE_OK_TO_ADD
	.comm	_ADD_CACHE_OK_TO_REPLACE,4,2    ; @ADD_CACHE_OK_TO_REPLACE
	.comm	_ADD_CACHE_SKIP_DFCHECK,4,2     ; @ADD_CACHE_SKIP_DFCHECK
	.comm	_ADD_CACHE_NEW_ONLY,4,2         ; @ADD_CACHE_NEW_ONLY
	.comm	_ADD_CACHE_KEEP_CACHE_TREE,4,2  ; @ADD_CACHE_KEEP_CACHE_TREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid path '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"'%s' appears as both a file and as a directory"

	.no_dead_strip	_add_index_entry_with_check
.subsections_via_symbols
