	.file	"extr_read-cache.c_do_write_locked_index.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"1"
.LC1:
	.string	"0"
.LC2:
	.string	"%s"
.LC3:
	.string	"do_write_index"
.LC4:
	.string	"index"
.LC5:
	.string	"post-index-change"
	.text
	.p2align 4
	.type	do_write_locked_index, @function
do_write_locked_index:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	lea	rcx, .LC2[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	lea	rdi, .LC4[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rsi]
	mov	edx, DWORD PTR the_repository[rip]
	lea	rsi, .LC3[rip]
	mov	r8d, DWORD PTR [rax]
	call	trace2_region_enter_printf@PLT
	mov	rsi, QWORD PTR 0[rbp]
	xor	edx, edx
	mov	rdi, rbx
	call	do_write_index@PLT
	mov	edx, DWORD PTR the_repository[rip]
	lea	rcx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	r12d, eax
	mov	rax, QWORD PTR 0[rbp]
	lea	rdi, .LC4[rip]
	mov	r8d, DWORD PTR [rax]
	call	trace2_region_leave_printf@PLT
	test	r12d, r12d
	jne	.L1
	mov	rdi, rbp
	test	DWORD PTR COMMIT_LOCK[rip], r13d
	jne	.L11
	call	close_lock_file_gently@PLT
	mov	r12d, eax
.L4:
	lea	rax, .LC1[rip]
	cmp	QWORD PTR [rbx], 0
	lea	rdx, .LC0[rip]
	mov	rcx, rax
	lea	rsi, .LC5[rip]
	cmovne	rcx, rdx
	cmp	QWORD PTR 8[rbx], 0
	cmove	rdx, rax
	xor	r8d, r8d
	xor	edi, edi
	call	run_hook_le@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR [rbx], 0
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	commit_locked_index@PLT
	mov	r12d, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	do_write_locked_index, .-do_write_locked_index
	.comm	the_repository,4,4
	.comm	COMMIT_LOCK,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_read-cache.c_do_write_locked_index.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"1\000"
	.align	2
.LC1:
	.ascii	"0\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	"do_write_index\000"
	.align	2
.LC4:
	.ascii	"index\000"
	.align	2
.LC5:
	.ascii	"post-index-change\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_write_locked_index, %function
do_write_locked_index:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r0
	ldr	r3, [r1]
	ldr	r8, .L12
	ldr	r3, [r3]
	sub	sp, sp, #8
	ldr	r1, .L12+4
	str	r3, [sp]
	mov	r7, r2
	ldr	r3, .L12+8
	ldr	r2, [r8]
	ldr	r0, .L12+12
	bl	trace2_region_enter_printf
	mov	r2, #0
	ldr	r1, [r5]
	mov	r0, r6
	bl	do_write_index
	mov	r4, r0
	ldr	r3, [r5]
	ldr	r2, [r8]
	ldr	ip, [r3]
	ldr	r1, .L12+4
	ldr	r3, .L12+8
	ldr	r0, .L12+12
	str	ip, [sp]
	bl	trace2_region_leave_printf
	cmp	r4, #0
	bne	.L1
	ldr	r3, .L12+16
	mov	r0, r5
	ldr	r3, [r3]
	tst	r7, r3
	bne	.L11
	bl	close_lock_file_gently
	mov	r4, r0
.L4:
	mov	r5, #0
	ldr	r2, [r6, #4]
	ldr	r3, .L12+20
	ldr	r1, .L12+24
	ldr	ip, [r6]
	cmp	r2, r5
	moveq	r2, r1
	movne	r2, r3
	cmp	ip, r5
	moveq	r3, r1
	mov	r0, r5
	ldr	r1, .L12+28
	str	r5, [sp]
	bl	run_hook_le
	str	r5, [r6, #4]
	str	r5, [r6]
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	bl	commit_locked_index
	mov	r4, r0
	b	.L4
.L13:
	.align	2
.L12:
	.word	the_repository
	.word	.LC3
	.word	.LC2
	.word	.LC4
	.word	COMMIT_LOCK
	.word	.LC0
	.word	.LC1
	.word	.LC5
	.size	do_write_locked_index, .-do_write_locked_index
	.comm	the_repository,4,4
	.comm	COMMIT_LOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
