	.file	"extr_update-index.c_do_reupdate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"HEAD"
	.text
	.p2align 4
	.type	do_reupdate, @function
do_reupdate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rcx, rdx
	lea	r8, 8[rsi]
	xor	esi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, the_index[rip]
	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, 40
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR PATHSPEC_PREFER_CWD[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r13, 20[rsp]
	mov	rdi, r13
	call	parse_pathspec@PLT
	lea	rsi, head_oid[rip]
	lea	rdi, .LC0[rip]
	call	read_ref@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR active_nr[rip]
.L8:
	test	eax, eax
	jle	.L9
	xor	ebx, ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L24:
	xor	ecx, ecx
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r14
	call	ce_path_match@PLT
	test	eax, eax
	je	.L3
	cmp	QWORD PTR 8[rsp], 0
	jne	.L6
	mov	rdi, rbp
	call	ce_namelen@PLT
	mov	edx, DWORD PTR 8[rbp]
	xor	r8d, r8d
	xor	edi, edi
	mov	ecx, eax
	lea	rsi, head_oid[rip]
	call	read_one_ent@PLT
	mov	r15, rax
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR 0[rbp], rax
	je	.L23
.L7:
	mov	edi, DWORD PTR 8[rbp]
	mov	r12d, DWORD PTR active_nr[rip]
	call	xstrdup@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	update_one@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	rdi, r15
	call	discard_cache_entry@PLT
	mov	eax, DWORD PTR active_nr[rip]
	cmp	eax, r12d
	jne	.L8
.L5:
	add	rbx, 1
	cmp	r12d, ebx
	jle	.L9
.L2:
	mov	rax, QWORD PTR active_cache[rip]
	mov	rbp, QWORD PTR [rax+rbx*8]
	mov	rdi, rbp
	call	ce_stage@PLT
	test	rax, rax
	je	.L24
.L3:
	mov	r12d, DWORD PTR active_nr[rip]
	add	rbx, 1
	cmp	r12d, ebx
	jg	.L2
.L9:
	mov	rdi, r13
	call	clear_pathspec@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L6:
	.cfi_restore_state
	xor	r15d, r15d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rsi, 12[r15]
	lea	rdi, 12[rbp]
	call	oideq@PLT
	test	rax, rax
	je	.L7
	mov	rdi, r15
	call	discard_cache_entry@PLT
	mov	r12d, DWORD PTR active_nr[rip]
	jmp	.L5
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	do_reupdate, .-do_reupdate
	.comm	the_index,4,4
	.comm	head_oid,4,4
	.comm	active_nr,4,4
	.comm	active_cache,8,8
	.comm	PATHSPEC_PREFER_CWD,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_update-index.c_do_reupdate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"HEAD\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_reupdate, %function
do_reupdate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r0, .L23
	sub	sp, sp, #20
	add	r1, r1, #4
	str	r1, [sp]
	ldr	ip, .L23+4
	mov	r3, r2
	mov	r1, #0
	ldr	r2, [r0]
	add	r0, sp, #8
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	parse_pathspec
	ldr	r1, .L23+8
	ldr	r0, .L23+12
	bl	read_ref
	mov	r8, r0
	ldr	r6, .L23+16
	ldr	r7, .L23+20
	ldr	r3, [r6]
	ldr	r9, .L23+24
.L10:
	cmp	r3, #0
	ble	.L11
	mov	r4, #0
	b	.L2
.L21:
	mov	r3, fp
	mov	r1, r5
	mov	r0, r9
	add	r2, sp, #8
	bl	ce_path_match
	cmp	r0, #0
	beq	.L3
	cmp	r8, #0
	ldr	r10, [r5, #4]
	bne	.L6
	mov	r0, r5
	bl	ce_namelen
	mov	r2, r10
	mov	r3, r0
	ldr	r1, .L23+8
	mov	r0, r8
	str	r8, [sp]
	bl	read_one_ent
	subs	fp, r0, #0
	beq	.L19
	ldr	r2, [r5]
	ldr	r3, [fp]
	cmp	r2, r3
	beq	.L8
.L19:
	ldr	r10, [r5, #4]
.L6:
	mov	r0, r10
	ldr	r5, [r6]
	bl	xstrdup
	mov	r10, r0
	bl	update_one
	mov	r0, r10
	bl	free
	mov	r0, fp
	bl	discard_cache_entry
	ldr	r3, [r6]
	cmp	r3, r5
	bne	.L10
.L5:
	add	r4, r4, #1
	cmp	r4, r5
	bge	.L11
.L2:
	ldr	r3, [r7]
	ldr	r5, [r3, r4, lsl #2]
	mov	r0, r5
	bl	ce_stage
	subs	fp, r0, #0
	beq	.L21
.L3:
	ldr	r5, [r6]
	add	r4, r4, #1
	cmp	r4, r5
	blt	.L2
.L11:
	add	r0, sp, #8
	bl	clear_pathspec
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	add	r1, fp, #8
	add	r0, r5, #8
	bl	oideq
	cmp	r0, #0
	beq	.L19
	mov	r0, fp
	bl	discard_cache_entry
	ldr	r5, [r6]
	b	.L5
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	PATHSPEC_PREFER_CWD
	.word	.LC1
	.word	head_oid
	.word	.LC0
	.word	active_nr
	.word	active_cache
	.word	the_index
	.size	do_reupdate, .-do_reupdate
	.comm	the_index,4,4
	.comm	head_oid,4,4
	.comm	active_nr,4,4
	.comm	active_cache,4,4
	.comm	PATHSPEC_PREFER_CWD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
