	.file	"extr_lio_request_manager.c_lio_flush_iq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lio_flush_iq
	.type	lio_flush_iq, @function
lio_flush_iq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rax, 16[rsi]
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, 1
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rax
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rax
	call	mtx_trylock@PLT
	test	eax, eax
	jne	.L16
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L16:
	.cfi_restore_state
	lea	rax, 20[r15]
	xor	r13d, r13d
	lea	r14, 32[r15]
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	mtx_lock@PLT
	mov	rdi, r15
	call	[QWORD PTR [r12]]
	mov	QWORD PTR [r15], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdx, rbp
	mov	rsi, r15
	mov	rdi, r12
	sub	rdx, r13
	call	lio_process_iq_request_list@PLT
	mov	rbx, rax
	test	rbx, rbx
	jne	.L17
.L6:
	add	r13, rbx
	cmp	rbp, r13
	jle	.L3
.L19:
	mov	rax, QWORD PTR [r15]
.L7:
	cmp	QWORD PTR 8[r15], rax
	je	.L3
	test	rbp, rbp
	jne	.L18
	xor	edx, edx
	mov	rsi, r15
	mov	rdi, r12
	call	lio_process_iq_request_list@PLT
	mov	rbx, rax
	test	rbx, rbx
	je	.L6
.L17:
	mov	rsi, rbx
	mov	rdi, r14
	add	r13, rbx
	call	atomic_subtract_int@PLT
	add	DWORD PTR 28[r15], ebx
	cmp	rbp, r13
	jg	.L19
	.p2align 4,,10
	.p2align 3
.L3:
	test	rbp, rbp
	mov	rdi, QWORD PTR 8[rsp]
	setne	r14b
	cmp	r13, rbp
	setge	al
	and	r14d, eax
	mov	eax, DWORD PTR ticks[rip]
	xor	r14d, 1
	mov	DWORD PTR 24[r15], eax
	movzx	r14d, r14b
	call	mtx_unlock@PLT
	mov	rdi, QWORD PTR [rsp]
	call	mtx_unlock@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	lio_flush_iq, .-lio_flush_iq
	.comm	ticks,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_lio_request_manager.c_lio_flush_iq.c"
	.text
	.align	2
	.global	lio_flush_iq
	.syntax unified
	.arm
	.fpu softvfp
	.type	lio_flush_iq, %function
lio_flush_iq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	r9, r1, #8
	mov	r7, r0
	mov	r0, r9
	mov	fp, r2
	mov	r6, r1
	bl	mtx_trylock
	cmp	r0, #0
	moveq	fp, #1
	bne	.L15
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	add	r10, r6, #12
	mov	r0, r10
	bl	mtx_lock
	mov	r0, r6
	ldr	r3, [r7]
	blx	r3
	mov	r8, r6
	mov	r5, #0
	str	r0, [r8], #24
	b	.L7
.L6:
	cmp	fp, r5
	ble	.L3
.L16:
	ldr	r0, [r6]
.L7:
	ldr	r3, [r6, #4]
	sub	r2, fp, r5
	cmp	r3, r0
	beq	.L3
	cmp	fp, #0
	moveq	r2, fp
	mov	r1, r6
	mov	r0, r7
	bl	lio_process_iq_request_list
	cmp	r0, #0
	mov	r4, r0
	add	r5, r5, r0
	beq	.L6
	mov	r1, r0
	mov	r0, r8
	bl	atomic_subtract_int
	ldr	r0, [r6, #20]
	cmp	fp, r5
	add	r0, r0, r4
	str	r0, [r6, #20]
	bgt	.L16
.L3:
	cmp	r5, fp
	movlt	r5, #0
	movge	r5, #1
	cmp	fp, #0
	movne	fp, r5
	moveq	fp, #0
	ldr	r3, .L17
	mov	r0, r10
	ldr	r3, [r3]
	eor	fp, fp, #1
	str	r3, [r6, #16]
	bl	mtx_unlock
	mov	r0, r9
	bl	mtx_unlock
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	ticks
	.size	lio_flush_iq, .-lio_flush_iq
	.comm	ticks,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
