	.file	"extr_items.c_lru_maintainer_bumps.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lru_maintainer_bumps, @function
lru_maintainer_bumps:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rdi, bump_buf_lock[rip]
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	pthread_mutex_lock@PLT
	mov	rbp, QWORD PTR bump_buf_head[rip]
	test	rbp, rbp
	je	.L2
	lea	r12, 4[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbp, QWORD PTR 8[rbp]
	test	rbp, rbp
	je	.L2
.L6:
	mov	rdi, rbp
	call	pthread_mutex_lock@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, r12
	call	bipbuf_peek_all@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	pthread_mutex_unlock@PLT
	test	rbx, rbx
	je	.L3
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L4
	lea	r13d, [rax+rbx]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR [rbx]
	add	rbx, 8
	call	item_lock@PLT
	mov	edi, DWORD PTR -4[rbx]
	call	do_item_update@PLT
	mov	edi, DWORD PTR -4[rbx]
	call	do_item_remove@PLT
	mov	edi, DWORD PTR -8[rbx]
	call	item_unlock@PLT
	cmp	r13d, ebx
	jne	.L5
.L4:
	mov	rdi, rbp
	mov	r13d, 1
	call	pthread_mutex_lock@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR 4[rsp]
	call	bipbuf_poll@PLT
	mov	rdi, rbp
	call	pthread_mutex_unlock@PLT
	mov	rbp, QWORD PTR 8[rbp]
	test	rbp, rbp
	jne	.L6
.L2:
	lea	rdi, bump_buf_lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lru_maintainer_bumps, .-lru_maintainer_bumps
	.comm	bump_buf_lock,4,4
	.comm	bump_buf_head,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_items.c_lru_maintainer_bumps.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lru_maintainer_bumps, %function
lru_maintainer_bumps:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L20
	sub	sp, sp, #8
	ldr	r0, .L20+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	pthread_mutex_lock
	ldr	r3, .L20+8
	ldr	r5, [r3]
	cmp	r5, #0
	beq	.L8
	mov	r6, #0
	b	.L6
.L3:
	ldr	r5, [r5, #8]
	cmp	r5, #0
	beq	.L2
.L6:
	mov	r0, r5
	bl	pthread_mutex_lock
	mov	r1, sp
	ldr	r0, [r5, #4]
	bl	bipbuf_peek_all
	mov	r4, r0
	mov	r0, r5
	bl	pthread_mutex_unlock
	cmp	r4, #0
	beq	.L3
	ldr	r6, [sp]
	cmp	r6, #0
	beq	.L4
	add	r6, r4, r6
.L5:
	ldr	r0, [r4]
	bl	item_lock
	ldr	r0, [r4, #4]
	bl	do_item_update
	ldr	r0, [r4, #4]
	bl	do_item_remove
	ldr	r0, [r4], #8
	bl	item_unlock
	cmp	r4, r6
	bne	.L5
.L4:
	mov	r0, r5
	bl	pthread_mutex_lock
	ldr	r1, [sp]
	ldr	r0, [r5, #4]
	bl	bipbuf_poll
	mov	r0, r5
	bl	pthread_mutex_unlock
	ldr	r5, [r5, #8]
	mov	r6, #1
	cmp	r5, #0
	bne	.L6
.L2:
	ldr	r0, .L20+4
	bl	pthread_mutex_unlock
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	mov	r6, r5
	b	.L2
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	bump_buf_lock
	.word	bump_buf_head
	.size	lru_maintainer_bumps, .-lru_maintainer_bumps
	.comm	bump_buf_lock,4,4
	.comm	bump_buf_head,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
