	.file	"extr_reset.c_update_index_from_diff.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"make_cache_entry failed for path '%s'"
	.text
	.p2align 4
	.type	update_index_from_diff, @function
update_index_from_diff:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR [rdi]
	mov	r14d, DWORD PTR [rdx]
	test	eax, eax
	jle	.L1
	mov	r13, rdi
	xor	ebp, ebp
	lea	r15, the_index[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, QWORD PTR 8[rbx]
	lea	rdx, 4[rbx]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdi, r15
	call	make_cache_entry@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L11
	mov	ebx, DWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	call	_@PLT
	mov	edi, eax
	mov	esi, ebx
	call	die@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR CE_INTENT_TO_ADD[rip]
	or	DWORD PTR [r12], eax
	mov	rdi, r12
	call	set_object_name_for_intent_to_add_entry@PLT
.L13:
	mov	esi, DWORD PTR ADD_CACHE_OK_TO_ADD[rip]
	mov	rdi, r12
	or	esi, DWORD PTR ADD_CACHE_OK_TO_REPLACE[rip]
	add	rbp, 1
	call	add_cache_entry@PLT
	cmp	DWORD PTR 0[r13], ebp
	jle	.L1
.L2:
	mov	rax, QWORD PTR 8[r13]
	mov	rax, QWORD PTR [rax+rbp*8]
	mov	rbx, QWORD PTR [rax]
	cmp	QWORD PTR 8[rbx], 0
	jne	.L3
.L6:
	mov	ecx, DWORD PTR [rbx]
	test	r14d, r14d
	jne	.L17
	mov	edi, ecx
	add	rbp, 1
	call	remove_file_from_cache@PLT
	cmp	DWORD PTR 0[r13], ebp
	jg	.L2
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	r12, 4[rbx]
	mov	rdi, r12
	call	is_null_oid@PLT
	test	eax, eax
	jne	.L6
	mov	rsi, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	rdx, r12
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdi, r15
	call	make_cache_entry@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L13
	mov	ebx, DWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	call	_@PLT
	mov	edi, eax
	mov	esi, ebx
	call	die@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	update_index_from_diff, .-update_index_from_diff
	.comm	the_index,4,4
	.comm	CE_INTENT_TO_ADD,4,4
	.comm	ADD_CACHE_OK_TO_REPLACE,4,4
	.comm	ADD_CACHE_OK_TO_ADD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_reset.c_update_index_from_diff.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"make_cache_entry failed for path '%s'\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_index_from_diff, %function
update_index_from_diff:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	ldr	r8, [r2]
	cmp	r3, #0
	sub	sp, sp, #20
	ble	.L1
	mov	r5, #0
	mov	r6, r0
	mov	r7, r5
	ldr	r10, .L23
	ldr	r9, .L23+4
	ldr	fp, .L23+8
.L2:
	ldr	r3, [r6, #4]
	ldr	r3, [r3, r5, lsl #2]
	ldr	r4, [r3]
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L3
.L6:
	cmp	r8, #0
	ldr	r3, [r4]
	beq	.L21
	ldr	r1, [r4, #8]
	mov	r0, fp
	str	r7, [sp, #4]
	str	r7, [sp]
	add	r2, r4, #4
	bl	make_cache_entry
	subs	r3, r0, #0
	bne	.L11
	ldr	r0, .L23+12
	str	r3, [sp, #12]
	bl	_
	ldr	r1, [r4]
	bl	die
	ldr	r3, [sp, #12]
.L11:
	ldr	r1, .L23+16
	ldr	r2, [r3]
	ldr	r1, [r1]
	mov	r0, r3
	orr	r2, r2, r1
	str	r2, [r3]
	str	r3, [sp, #12]
	bl	set_object_name_for_intent_to_add_entry
	ldr	r3, [sp, #12]
	b	.L13
.L3:
	add	r2, r4, #4
	mov	r0, r2
	str	r2, [sp, #12]
	bl	is_null_oid
	cmp	r0, #0
	bne	.L6
	ldr	r3, [r4]
	ldr	r1, [r4, #8]
	ldr	r2, [sp, #12]
	str	r0, [sp, #4]
	str	r0, [sp]
	mov	r0, fp
	bl	make_cache_entry
	subs	r3, r0, #0
	beq	.L22
.L13:
	ldr	r1, [r10]
	ldr	r2, [r9]
	mov	r0, r3
	orr	r1, r1, r2
	bl	add_cache_entry
.L8:
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L2
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r0, r3
	bl	remove_file_from_cache
	b	.L8
.L22:
	ldr	r0, .L23+12
	str	r3, [sp, #12]
	bl	_
	ldr	r1, [r4]
	bl	die
	ldr	r3, [sp, #12]
	b	.L13
.L24:
	.align	2
.L23:
	.word	ADD_CACHE_OK_TO_ADD
	.word	ADD_CACHE_OK_TO_REPLACE
	.word	the_index
	.word	.LC0
	.word	CE_INTENT_TO_ADD
	.size	update_index_from_diff, .-update_index_from_diff
	.comm	the_index,4,4
	.comm	CE_INTENT_TO_ADD,4,4
	.comm	ADD_CACHE_OK_TO_REPLACE,4,4
	.comm	ADD_CACHE_OK_TO_ADD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
