	.file	"extr_packed-backend.c_packed_refs_lock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"packed_refs_lock"
.LC1:
	.string	"core.packedrefstimeout"
.LC2:
	.string	"unable to close %s: %s"
	.text
	.p2align 4
	.globl	packed_refs_lock
	.type	packed_refs_lock, @function
packed_refs_lock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	lea	rdx, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	mov	esi, DWORD PTR REF_STORE_WRITE[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	or	esi, DWORD PTR REF_STORE_MAIN[rip]
	call	packed_downcast@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR timeout_configured.1962[rip]
	test	eax, eax
	je	.L8
.L2:
	mov	esi, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR timeout_value.1963[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	hold_lock_file_for_update_timeout@PLT
	test	rax, rax
	js	.L9
	mov	rdi, rbp
	call	close_lock_file_gently@PLT
	test	rax, rax
	jne	.L10
	mov	rdi, rbp
	call	clear_snapshot@PLT
	mov	rdi, rbp
	call	get_snapshot@PLT
	xor	eax, eax
.L1:
	pop	rbp
	.cfi_remember_state
	.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
.L8:
	.cfi_restore_state
	lea	rsi, timeout_value.1963[rip]
	lea	rdi, .LC1[rip]
	call	git_config_get_int@PLT
	mov	DWORD PTR timeout_configured.1962[rip], 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edx, DWORD PTR 4[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	mov	ecx, eax
	call	strbuf_addf@PLT
	mov	rdi, rbp
	call	rollback_lock_file@PLT
	mov	eax, -1
	jmp	.L1
.L9:
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR errno[rip]
	mov	rdx, r13
	call	unable_to_lock_message@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	packed_refs_lock, .-packed_refs_lock
	.data
	.align 4
	.type	timeout_value.1963, @object
	.size	timeout_value.1963, 4
timeout_value.1963:
	.long	1000
	.local	timeout_configured.1962
	.comm	timeout_configured.1962,4,4
	.comm	errno,4,4
	.comm	REF_STORE_WRITE,4,4
	.comm	REF_STORE_MAIN,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_packed-backend.c_packed_refs_lock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"packed_refs_lock\000"
	.align	2
.LC1:
	.ascii	"core.packedrefstimeout\000"
	.align	2
.LC2:
	.ascii	"unable to close %s: %s\000"
	.text
	.align	2
	.global	packed_refs_lock
	.syntax unified
	.arm
	.fpu softvfp
	.type	packed_refs_lock, %function
packed_refs_lock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L11
	mov	r6, r2
	ldr	r2, .L11+4
	ldr	r3, [r3]
	mov	r5, r1
	ldr	r1, [r2]
	ldr	r2, .L11+8
	orr	r1, r1, r3
	bl	packed_downcast
	ldr	r7, .L11+12
	mov	r4, r0
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L8
.L2:
	ldr	r3, .L11+16
	mov	r2, r5
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	bl	hold_lock_file_for_update_timeout
	cmp	r0, #0
	blt	.L9
	mov	r0, r4
	bl	close_lock_file_gently
	subs	r5, r0, #0
	bne	.L10
	mov	r0, r4
	bl	clear_snapshot
	mov	r0, r4
	bl	get_snapshot
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r1, .L11+16
	ldr	r0, .L11+20
	bl	git_config_get_int
	mov	r3, #1
	str	r3, [r7]
	b	.L2
.L10:
	ldr	r3, .L11+24
	ldr	r5, [r4, #4]
	ldr	r0, [r3]
	bl	strerror
	mov	r2, r5
	mov	r3, r0
	ldr	r1, .L11+28
	mov	r0, r6
	bl	strbuf_addf
	mov	r0, r4
	bl	rollback_lock_file
	mvn	r5, #0
	b	.L1
.L9:
	ldr	r3, .L11+24
	mov	r2, r6
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	unable_to_lock_message
	mvn	r5, #0
	b	.L1
.L12:
	.align	2
.L11:
	.word	REF_STORE_MAIN
	.word	REF_STORE_WRITE
	.word	.LC0
	.word	.LANCHOR0
	.word	.LANCHOR1
	.word	.LC1
	.word	errno
	.word	.LC2
	.size	packed_refs_lock, .-packed_refs_lock
	.comm	errno,4,4
	.comm	REF_STORE_WRITE,4,4
	.comm	REF_STORE_MAIN,4,4
	.data
	.align	2
	.set	.LANCHOR1,. + 0
	.type	timeout_value.4247, %object
	.size	timeout_value.4247, 4
timeout_value.4247:
	.word	1000
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	timeout_configured.4246, %object
	.size	timeout_configured.4246, 4
timeout_configured.4246:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
