	.file	"extr_ocrdma_hw.c_ocrdma_mq_cq_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocrdma_mq_cq_handler, @function
ocrdma_mq_cq_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	test	DWORD PTR OCRDMA_MCQE_CMPL_MASK[rip], eax
	jne	.L11
.L4:
	mov	rdi, rbp
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	rdi, r12
	call	ocrdma_mcq_inc_tail@PLT
.L5:
	mov	rdi, r12
	call	ocrdma_get_mcqe@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L2
	mov	esi, 4
	mov	rdi, rax
	add	ebx, 1
	call	ocrdma_le32_to_cpu@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR OCRDMA_MCQE_AE_MASK[rip], eax
	je	.L3
	mov	rsi, rbp
	mov	rdi, r12
	call	ocrdma_process_acqe@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, rbp
	mov	rdi, r12
	call	ocrdma_process_mcqe@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR [r12]
	mov	r8d, ebx
	mov	rdi, r12
	xor	ecx, ecx
	mov	edx, 1
	call	ocrdma_ring_cq_db@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ocrdma_mq_cq_handler, .-ocrdma_mq_cq_handler
	.comm	OCRDMA_MCQE_CMPL_MASK,4,4
	.comm	OCRDMA_MCQE_AE_MASK,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_ocrdma_hw.c_ocrdma_mq_cq_handler.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocrdma_mq_cq_handler, %function
ocrdma_mq_cq_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, #0
	mov	r5, r0
	ldr	r7, .L12
	ldr	r8, .L12+4
	sub	sp, sp, #8
	b	.L5
.L3:
	ldr	r2, [r8]
	tst	r3, r2
	bne	.L11
.L4:
	mov	r3, #0
	mov	r0, r5
	strb	r3, [r4]
	strb	r3, [r4, #1]
	strb	r3, [r4, #2]
	strb	r3, [r4, #3]
	bl	ocrdma_mcq_inc_tail
.L5:
	mov	r0, r5
	bl	ocrdma_get_mcqe
	subs	r4, r0, #0
	beq	.L2
	mov	r1, #4
	bl	ocrdma_le32_to_cpu
	ldr	r3, [r4]
	ldr	r2, [r7]
	add	r6, r6, #1
	tst	r3, r2
	beq	.L3
	mov	r1, r4
	mov	r0, r5
	bl	ocrdma_process_acqe
	b	.L4
.L11:
	mov	r1, r4
	mov	r0, r5
	bl	ocrdma_process_mcqe
	b	.L4
.L2:
	str	r6, [sp]
	mov	r3, r4
	mov	r2, #1
	mov	r0, r5
	ldr	r1, [r5]
	bl	ocrdma_ring_cq_db
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	OCRDMA_MCQE_AE_MASK
	.word	OCRDMA_MCQE_CMPL_MASK
	.size	ocrdma_mq_cq_handler, .-ocrdma_mq_cq_handler
	.comm	OCRDMA_MCQE_CMPL_MASK,4,4
	.comm	OCRDMA_MCQE_AE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
