	.file	"extr_cq.c_mlx4_cq_free.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"HW2SW_CQ failed (%d) for CQN %06x\n"
	.text
	.p2align 4
	.globl	mlx4_cq_free
	.type	mlx4_cq_free, @function
mlx4_cq_free:
.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
	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	mlx4_priv@PLT
	mov	edx, DWORD PTR [rbx]
	xor	esi, esi
	mov	rdi, r12
	mov	rbp, rax
	call	mlx4_HW2SW_CQ@PLT
	test	eax, eax
	jne	.L13
.L2:
	lea	r13, 8[rbp]
	mov	rdi, r13
	call	spin_lock@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, 12[rbp]
	call	radix_tree_delete@PLT
	mov	rdi, r13
	call	spin_unlock@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	r13, QWORD PTR 0[rbp]
	call	MLX4_CQ_TO_EQ_VECTOR@PLT
	mov	rdi, QWORD PTR 0[r13+rax*8]
	call	synchronize_irq@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	r13, QWORD PTR 0[rbp]
	call	MLX4_CQ_TO_EQ_VECTOR@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR MLX4_EQ_ASYNC[rip]
	mov	rdi, QWORD PTR [rdx+rcx*8]
	cmp	QWORD PTR 0[r13+rax*8], rdi
	je	.L3
	call	synchronize_irq@PLT
.L3:
	lea	rdi, 8[rbx]
	lea	rbp, 4[rbx]
	call	refcount_dec_and_test@PLT
	test	rax, rax
	jne	.L14
.L4:
	mov	rdi, rbp
	call	wait_for_completion@PLT
	mov	esi, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	mlx4_cq_free_icm@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	ecx, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	mlx4_warn@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	call	complete@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	mlx4_cq_free, .-mlx4_cq_free
	.comm	MLX4_EQ_ASYNC,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_cq.c_mlx4_cq_free.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"HW2SW_CQ failed (%d) for CQN %06x\012\000"
	.text
	.align	2
	.global	mlx4_cq_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_cq_free, %function
mlx4_cq_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r0
	bl	mlx4_priv
	ldr	r2, [r4]
	mov	r5, r0
	mov	r1, #0
	mov	r0, r6
	bl	mlx4_HW2SW_CQ
	subs	r2, r0, #0
	bne	.L13
.L2:
	add	r7, r5, #4
	mov	r0, r7
	bl	spin_lock
	ldr	r1, [r4]
	add	r0, r5, #8
	bl	radix_tree_delete
	mov	r0, r7
	bl	spin_unlock
	ldr	r0, [r4, #12]
	ldr	r7, [r5]
	bl	MLX4_CQ_TO_EQ_VECTOR
	ldr	r0, [r7, r0, lsl #2]
	bl	synchronize_irq
	ldr	r0, [r4, #12]
	ldr	r7, [r5]
	bl	MLX4_CQ_TO_EQ_VECTOR
	ldr	r3, .L15
	ldr	r2, [r5]
	ldr	r1, [r3]
	ldr	r3, [r7, r0, lsl #2]
	ldr	r0, [r2, r1, lsl #2]
	cmp	r3, r0
	beq	.L3
	bl	synchronize_irq
.L3:
	add	r0, r4, #8
	bl	refcount_dec_and_test
	cmp	r0, #0
	add	r5, r4, #4
	bne	.L14
.L4:
	mov	r0, r5
	bl	wait_for_completion
	mov	r0, r6
	ldr	r1, [r4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	mlx4_cq_free_icm
.L13:
	mov	r0, r6
	ldr	r3, [r4]
	ldr	r1, .L15+4
	bl	mlx4_warn
	b	.L2
.L14:
	mov	r0, r5
	bl	complete
	b	.L4
.L16:
	.align	2
.L15:
	.word	MLX4_EQ_ASYNC
	.word	.LC0
	.size	mlx4_cq_free, .-mlx4_cq_free
	.comm	MLX4_EQ_ASYNC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
