	.file	"extr_storage-data.c_unload_metafiles.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unload_metafile: max_metafiles_bytes = %d, metafile_bucket_bytes[%d] = %d, metafiles = %d\n"
	.text
	.p2align 4
	.type	unload_metafiles, @function
unload_metafiles:
.LFB0:
	.cfi_startproc
	endbr64
	movsx	rax, edi
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rcx, QWORD PTR lru_meta_lst[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rax
	mov	rdx, QWORD PTR metafile_bucket_bytes[rip]
	sal	r13, 4
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rax
	lea	rsi, [rcx+r13]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdi, QWORD PTR 8[rsi]
	mov	r8, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR max_metafiles_bytes[rip]
	cmp	rsi, rdi
	je	.L20
	lea	rbp, 0[0+rax*8]
	xor	r14d, r14d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	QWORD PTR [rdi], 0
	mov	rbx, QWORD PTR 8[rdi]
	jg	.L4
	call	metafile_free@PLT
	mov	rax, QWORD PTR metafile_bucket_bytes[rip]
	mov	rdx, QWORD PTR max_metafiles_bytes[rip]
	add	r14d, 1
	mov	rcx, QWORD PTR lru_meta_lst[rip]
	mov	r8, QWORD PTR [rax+rbp]
.L4:
	lea	rax, [rcx+r13]
	cmp	rbx, rax
	je	.L21
	mov	rdi, rbx
.L2:
	cmp	r8, rdx
	jg	.L5
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	test	r14d, r14d
	sete	al
.L3:
	cmp	r8, rdx
	jle	.L1
	test	al, al
	je	.L1
	mov	r9d, DWORD PTR metafiles[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	ecx, r12d
	mov	edi, 2
	pop	rbp
	.cfi_def_cfa_offset 32
	lea	rsi, .LC0[rip]
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	vkprintf@PLT
.L20:
	.cfi_restore_state
	mov	eax, 1
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	unload_metafiles, .-unload_metafiles
	.comm	metafiles,4,4
	.comm	metafile_bucket_bytes,8,8
	.comm	max_metafiles_bytes,8,8
	.comm	lru_meta_lst,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_storage-data.c_unload_metafiles.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unload_metafile: max_metafiles_bytes = %d, metafile"
	.ascii	"_bucket_bytes[%d] = %d, metafiles = %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	unload_metafiles, %function
unload_metafiles:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	r9, .L16
	ldr	fp, .L16+4
	ldr	r3, [r9]
	ldr	r2, [fp]
	add	r3, r3, r0, lsl #3
	ldr	r0, [r3, #4]
	ldr	r7, .L16+8
	cmp	r3, r0
	ldr	r1, [r2, r6, lsl #2]
	moveq	r5, #1
	ldr	r2, [r7]
	sub	sp, sp, #12
	beq	.L3
	mov	r5, #0
	lsl	r10, r6, #3
	lsl	r8, r6, #2
	b	.L2
.L5:
	ldm	r0, {r3, r4}
	cmp	r3, #0
	bgt	.L4
	bl	metafile_free
	ldr	r3, [fp]
	ldr	r2, [r7]
	ldr	r1, [r3, r8]
	add	r5, r5, #1
.L4:
	ldr	r3, [r9]
	add	r3, r3, r10
	cmp	r4, r3
	beq	.L15
	mov	r0, r4
.L2:
	cmp	r1, r2
	bgt	.L5
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	clz	r5, r5
	lsr	r5, r5, #5
.L3:
	cmp	r1, r2
	movle	r5, #0
	andgt	r5, r5, #1
	cmp	r5, #0
	beq	.L1
	ldr	r3, .L16+12
	str	r1, [sp]
	ldr	r1, [r3]
	mov	r0, #2
	str	r1, [sp, #4]
	mov	r3, r6
	ldr	r1, .L16+16
	bl	vkprintf
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	lru_meta_lst
	.word	metafile_bucket_bytes
	.word	max_metafiles_bytes
	.word	metafiles
	.word	.LC0
	.size	unload_metafiles, .-unload_metafiles
	.comm	metafiles,4,4
	.comm	metafile_bucket_bytes,4,4
	.comm	max_metafiles_bytes,4,4
	.comm	lru_meta_lst,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
