	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_index_from_diff
_update_index_from_diff:                ## @update_index_from_diff
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_14
## %bb.1:
	movq	%rdi, %r12
	movl	(%rdx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ADD_CACHE_OK_TO_REPLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADD_CACHE_OK_TO_ADD@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_add_cache_entry
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	4(%r14), %rdi
	callq	_is_null_oid
	testl	%eax, %eax
	sete	%r13b
	testb	%r13b, %r13b
	je	LBB0_6
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	testb	%r13b, %r13b
	jne	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	callq	_remove_file_from_cache
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rsi
	leaq	4(%r14), %rdx
	movl	(%r14), %ecx
	movq	_the_index@GOTPCREL(%rip), %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_make_cache_entry
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	%r13b, %r13b
	jne	LBB0_12
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_die
	testb	%r13b, %r13b
	jne	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CE_INTENT_TO_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_set_object_name_for_intent_to_add_entry
	jmp	LBB0_12
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_index,4,2                  ## @the_index
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"make_cache_entry failed for path '%s'"

	.comm	_CE_INTENT_TO_ADD,4,2           ## @CE_INTENT_TO_ADD
	.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
	.no_dead_strip	_update_index_from_diff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_index_from_diff
_update_index_from_diff:                ; @update_index_from_diff
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	ldr	w24, [x2]
Lloh0:
	adrp	x20, _the_index@GOTPAGE
Lloh1:
	ldr	x20, [x20, _the_index@GOTPAGEOFF]
Lloh2:
	adrp	x25, _ADD_CACHE_OK_TO_ADD@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ADD_CACHE_OK_TO_ADD@GOTPAGEOFF]
Lloh4:
	adrp	x26, _ADD_CACHE_OK_TO_REPLACE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ADD_CACHE_OK_TO_REPLACE@GOTPAGEOFF]
Lloh6:
	adrp	x27, _CE_INTENT_TO_ADD@GOTPAGE
Lloh7:
	ldr	x27, [x27, _CE_INTENT_TO_ADD@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_add_cache_entry
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x28, [x8]
	ldr	x8, [x28, #8]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x28, #4
	bl	_is_null_oid
	cmp	w0, #0
	cset	w21, eq
	tbz	w21, #0, LBB0_7
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
	tbnz	w21, #0, LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w24, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
	bl	_remove_file_from_cache
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x28, #8]
	add	x2, x28, #4
	ldr	w3, [x28]
	mov	x0, x20
	mov	w4, #0
	mov	w5, #0
	bl	_make_cache_entry
	mov	x22, x0
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w21, #0, LBB0_2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	w1, [x28]
	bl	_die
	tbnz	w21, #0, LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	mov	x0, x22
	bl	_set_object_name_for_intent_to_add_entry
	b	LBB0_2
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_the_index,4,2                  ; @the_index
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"make_cache_entry failed for path '%s'"

	.comm	_CE_INTENT_TO_ADD,4,2           ; @CE_INTENT_TO_ADD
	.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
	.no_dead_strip	_update_index_from_diff
.subsections_via_symbols
