	.file	"extr_mwindow.c_git_mwindow_put_pack.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	git_mwindow_put_pack
	.type	git_mwindow_put_pack, @function
git_mwindow_put_pack:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdi, git__mwindow_mutex[rip]
	call	git_mutex_lock@PLT
	test	rax, rax
	js	.L1
	mov	edi, DWORD PTR git__pack_cache[rip]
	call	assert@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR git__pack_cache[rip]
	call	git_strmap_exists@PLT
	mov	edi, eax
	call	assert@PLT
	lea	rdi, 4[rbp]
	call	git_atomic_dec@PLT
	test	eax, eax
	je	.L6
	lea	rdi, git__mwindow_mutex[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	git_mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR git__pack_cache[rip]
	call	git_strmap_delete@PLT
	mov	rdi, rbp
	call	git_packfile_free@PLT
	lea	rdi, git__mwindow_mutex[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	git_mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	git_mwindow_put_pack, .-git_mwindow_put_pack
	.comm	git__pack_cache,4,4
	.comm	git__mwindow_mutex,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_mwindow.c_git_mwindow_put_pack.c"
	.text
	.align	2
	.global	git_mwindow_put_pack
	.syntax unified
	.arm
	.fpu softvfp
	.type	git_mwindow_put_pack, %function
git_mwindow_put_pack:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, .L7
	bl	git_mutex_lock
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	mov	r5, r4
	ldr	r6, .L7+4
	ldr	r0, [r6]
	bl	assert
	ldr	r1, [r5], #4
	ldr	r0, [r6]
	bl	git_strmap_exists
	bl	assert
	mov	r0, r5
	bl	git_atomic_dec
	cmp	r0, #0
	beq	.L6
	pop	{r4, r5, r6, lr}
	ldr	r0, .L7
	b	git_mutex_unlock
.L6:
	ldr	r1, [r4]
	ldr	r0, [r6]
	bl	git_strmap_delete
	mov	r0, r4
	bl	git_packfile_free
	pop	{r4, r5, r6, lr}
	ldr	r0, .L7
	b	git_mutex_unlock
.L8:
	.align	2
.L7:
	.word	git__mwindow_mutex
	.word	git__pack_cache
	.size	git_mwindow_put_pack, .-git_mwindow_put_pack
	.comm	git__pack_cache,4,4
	.comm	git__mwindow_mutex,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
