	.file	"extr_cq.c_c4iw_flush_sq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	c4iw_flush_sq
	.type	c4iw_flush_sq, @function
c4iw_flush_sq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14d, DWORD PTR 4[rdi]
	mov	eax, DWORD PTR [rdi]
	mov	rcx, QWORD PTR 16[rdi]
	sub	r14d, edx
	add	eax, edx
	mov	edi, r14d
	cdqe
	shr	edi, 31
	lea	rbx, [rcx+rax*8]
	call	BUG_ON@PLT
	test	r14d, r14d
	je	.L1
	lea	r12d, -1[r14]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR [rbx], 0
	mov	rdx, rbx
	mov	rsi, r13
	mov	rdi, rbp
	add	rbx, 8
	call	insert_sq_cqe@PLT
	mov	rax, QWORD PTR 16[rbp]
	movsx	rdx, DWORD PTR 8[rbp]
	lea	rdx, [rax+rdx*8]
	cmp	rbx, rdx
	cmove	rbx, rax
	sub	r12d, 1
	cmp	r12d, -1
	jne	.L4
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
	.cfi_endproc
.LFE0:
	.size	c4iw_flush_sq, .-c4iw_flush_sq
	.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_cq.c_c4iw_flush_sq.c"
	.text
	.align	2
	.global	c4iw_flush_sq
	.syntax unified
	.arm
	.fpu softvfp
	.type	c4iw_flush_sq, %function
c4iw_flush_sq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldm	r0, {r3, r8}
	ldr	r4, [r0, #12]
	sub	r8, r8, r2
	mov	r5, r0
	add	r2, r2, r3
	lsr	r0, r8, #31
	mov	r7, r1
	add	r4, r4, r2, lsl #2
	bl	BUG_ON
	cmp	r8, #0
	beq	.L1
	mov	r9, #0
	sub	r6, r8, #1
.L4:
	str	r9, [r4]
	mov	r2, r4
	mov	r1, r7
	mov	r0, r5
	bl	insert_sq_cqe
	ldr	r2, [r5, #12]
	ldr	r3, [r5, #8]
	add	r4, r4, #4
	add	r3, r2, r3, lsl #2
	cmp	r4, r3
	sub	r6, r6, #1
	moveq	r4, r2
	cmn	r6, #1
	bne	.L4
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	c4iw_flush_sq, .-c4iw_flush_sq
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
