	.file	"extr_cache.c_cache_evict_entries.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cache_evict_entries, @function
cache_evict_entries:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	git_cache_size@PLT
	cmp	rax, 16383
	ja	.L2
	mov	rdi, rbp
	call	git_cache_size@PLT
	cmp	rax, 7
	jbe	.L6
	mov	QWORD PTR [rsp], 0
	mov	ebx, 8
.L5:
	xor	r12d, r12d
	lea	r15, 16[rsp]
	lea	r13, 8[rsp]
	mov	r14, rsp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 4[rbp]
	sub	rbx, 1
	mov	rsi, QWORD PTR 16[rsp]
	add	r12d, DWORD PTR [rax]
	call	git_oidmap_delete@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	git_cached_obj_decref@PLT
	test	rbx, rbx
	je	.L7
.L8:
	mov	esi, DWORD PTR 4[rbp]
	mov	rcx, r15
	mov	rdx, r14
	mov	rdi, r13
	call	git_oidmap_iterate@PLT
	cmp	rax, QWORD PTR GIT_ITEROVER[rip]
	jne	.L14
.L7:
	sub	DWORD PTR 0[rbp], r12d
	mov	esi, r12d
	lea	rdi, git_cache__current_storage[rip]
	neg	esi
	call	git_atomic_ssize_add@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.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
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	clear_cache@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rbx, rax
	mov	rdi, rbp
	shr	rbx, 11
	call	git_cache_size@PLT
	cmp	rax, rbx
	jb	.L6
	mov	QWORD PTR [rsp], 0
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cache_evict_entries, .-cache_evict_entries
	.comm	git_cache__current_storage,4,4
	.comm	GIT_ITEROVER,8,8
	.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_cache.c_cache_evict_entries.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cache_evict_entries, %function
cache_evict_entries:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L16
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r6, r0
	bl	git_cache_size
	cmp	r0, #16384
	bcs	.L2
	mov	r0, r6
	bl	git_cache_size
	cmp	r0, #7
	movhi	r3, #0
	movhi	r4, #8
	strhi	r3, [sp]
	bls	.L6
.L5:
	mov	r7, #0
	ldr	r5, .L16+4
	b	.L8
.L14:
	ldr	r3, [sp, #4]
	ldr	r1, [sp, #8]
	ldr	r3, [r3]
	ldr	r0, [r6, #4]
	add	r7, r7, r3
	sub	r4, r4, #1
	bl	git_oidmap_delete
	ldr	r0, [sp, #4]
	bl	git_cached_obj_decref
	cmp	r4, #0
	beq	.L7
.L8:
	add	r3, sp, #8
	mov	r2, sp
	ldr	r1, [r6, #4]
	add	r0, sp, #4
	bl	git_oidmap_iterate
	ldr	r3, [r5]
	cmp	r0, r3
	bne	.L14
.L7:
	ldr	r3, [r6]
	rsb	r1, r7, #0
	sub	r7, r3, r7
	ldr	r0, .L16+8
	str	r7, [r6]
	bl	git_atomic_ssize_add
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r0, r6
	bl	clear_cache
	b	.L1
.L2:
	mov	r4, r0
	mov	r0, r6
	bl	git_cache_size
	lsr	r4, r4, #11
	cmp	r0, r4
	bcc	.L6
	mov	r3, #0
	str	r3, [sp]
	b	.L5
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	GIT_ITEROVER
	.word	git_cache__current_storage
	.size	cache_evict_entries, .-cache_evict_entries
	.comm	git_cache__current_storage,4,4
	.comm	GIT_ITEROVER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
