	.file	"extr_cacheplcs.c_cache_lfu_policy_get_next_item.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cache_lfu_policy_get_next_item, @function
cache_lfu_policy_get_next_item:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	lea	rdi, cache_lfu_policy_get_next_item[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	TRACE_IN@PLT
	mov	esi, DWORD PTR entries[rip]
	mov	rdi, rbx
	call	TAILQ_NEXT@PLT
	mov	r13, rax
	test	rax, rax
	je	.L11
.L2:
	lea	rdi, cache_lfu_policy_get_next_item[rip]
	call	TRACE_OUT@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
	mov	ebx, DWORD PTR [rbx]
	add	ebx, 1
	movsx	rbp, ebx
	sal	rbp, 2
	cmp	ebx, DWORD PTR CACHELIB_MAX_FREQUENCY[rip]
	jl	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	add	ebx, 1
	add	rbp, 4
	cmp	DWORD PTR CACHELIB_MAX_FREQUENCY[rip], ebx
	jle	.L2
.L5:
	mov	rdi, QWORD PTR [r12]
	add	rdi, rbp
	call	TAILQ_EMPTY@PLT
	test	eax, eax
	jne	.L4
	mov	rdi, QWORD PTR [r12]
	add	rdi, rbp
	call	TAILQ_FIRST@PLT
	mov	r13, rax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	cache_lfu_policy_get_next_item, .-cache_lfu_policy_get_next_item
	.comm	entries,4,4
	.comm	CACHELIB_MAX_FREQUENCY,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_cacheplcs.c_cache_lfu_policy_get_next_item.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cache_lfu_policy_get_next_item, %function
cache_lfu_policy_get_next_item:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r0, .L11
	bl	TRACE_IN
	ldr	r3, .L11+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	TAILQ_NEXT
	subs	r6, r0, #0
	beq	.L10
.L2:
	ldr	r0, .L11
	bl	TRACE_OUT
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r7, .L11+8
	ldr	r4, [r4]
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r4, r3
	blt	.L3
	b	.L2
.L4:
	ldr	r3, [r7]
	cmp	r3, r4
	ble	.L2
.L3:
	ldr	r0, [r5]
	lsl	r8, r4, #2
	add	r0, r0, r4, lsl #2
	bl	TAILQ_EMPTY
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L4
	ldr	r0, [r5]
	add	r0, r0, r8
	bl	TAILQ_FIRST
	mov	r6, r0
	b	.L2
.L12:
	.align	2
.L11:
	.word	cache_lfu_policy_get_next_item
	.word	entries
	.word	CACHELIB_MAX_FREQUENCY
	.size	cache_lfu_policy_get_next_item, .-cache_lfu_policy_get_next_item
	.comm	entries,4,4
	.comm	CACHELIB_MAX_FREQUENCY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
