	.file	"extr_lpfc_sli.c___lpfc_sli4_process_cq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"0369 No entry from completion queue qid=%d\n"
	.text
	.p2align 4
	.type	__lpfc_sli4_process_cq, @function
__lpfc_sli4_process_cq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	lea	rdi, 16[rsi]
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rcx], 0
	mov	QWORD PTR [rsp], rdx
	mov	edx, 1
	mov	QWORD PTR 8[rsp], rcx
	call	cmpxchg@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR 8[rbp]
	xor	r12d, r12d
	xor	r13d, r13d
.L3:
	mov	ecx, DWORD PTR LPFC_QUEUE_REARM[rip]
.L12:
	mov	edx, r12d
	mov	rsi, r15
	mov	rdi, rbp
	call	rax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L2:
	.cfi_restore_state
	mov	DWORD PTR 40[r15], 0
	mov	rdi, r15
	call	lpfc_sli4_cq_get@PLT
	mov	r14, rax
	test	rax, rax
	je	.L13
	xor	r12d, r12d
	xor	ebx, ebx
	xor	r13d, r13d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, ebx
	cdq
	idiv	DWORD PTR 4[r15]
	test	edx, edx
	jne	.L5
	mov	edx, r12d
	mov	ecx, DWORD PTR LPFC_QUEUE_NOARM[rip]
	mov	rsi, r15
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	xor	r12d, r12d
.L5:
	cmp	DWORD PTR LPFC_NVMET_CQ_NOTIFY[rip], ebx
	jne	.L6
	mov	eax, DWORD PTR HBA_NVMET_CQ_NOTIFY[rip]
	or	DWORD PTR 40[r15], eax
.L6:
	mov	rdi, r15
	call	lpfc_sli4_cq_get@PLT
	mov	r14, rax
	test	rax, rax
	je	.L25
.L7:
	mov	rdx, r14
	mov	rsi, r15
	mov	rdi, rbp
	mov	rax, QWORD PTR [rsp]
	call	rax
	add	ebx, 1
	mov	rdx, r14
	mov	rsi, r15
	mov	rdi, rbp
	or	r13d, eax
	add	r12d, 1
	call	__lpfc_sli4_consume_cqe@PLT
	mov	eax, ebx
	cdq
	idiv	DWORD PTR [r15]
	test	edx, edx
	jne	.L26
.L4:
	mov	r14d, 1
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L8
	mov	rax, QWORD PTR 8[rsp]
	xor	r14d, r14d
	mov	QWORD PTR [rax], 1
.L8:
	cmp	DWORD PTR 8[r15], ebx
	jge	.L9
	mov	DWORD PTR 8[r15], ebx
.L9:
	mov	rax, QWORD PTR 32[r15]
	mov	edi, edx
	add	DWORD PTR [rax], ebx
	call	unlikely@PLT
	test	rax, rax
	jne	.L27
.L10:
	mov	QWORD PTR 16[r15], 0
	mov	rax, QWORD PTR 8[rbp]
	mov	ecx, DWORD PTR LPFC_QUEUE_NOARM[rip]
	test	r14d, r14d
	je	.L12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L25:
	xor	edx, edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	mov	r8d, DWORD PTR 24[r15]
	mov	edx, DWORD PTR LOG_SLI[rip]
	mov	rdi, rbp
	lea	rcx, .LC0[rip]
	mov	esi, DWORD PTR KERN_INFO[rip]
	call	lpfc_printf_log@PLT
	jmp	.L10
.L13:
	mov	edx, 1
	xor	r12d, r12d
	xor	ebx, ebx
	xor	r13d, r13d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	__lpfc_sli4_process_cq, .-__lpfc_sli4_process_cq
	.comm	LPFC_QUEUE_REARM,4,4
	.comm	LPFC_QUEUE_NOARM,4,4
	.comm	LPFC_NVMET_CQ_NOTIFY,4,4
	.comm	LOG_SLI,4,4
	.comm	KERN_INFO,4,4
	.comm	HBA_NVMET_CQ_NOTIFY,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_lpfc_sli.c___lpfc_sli4_process_cq.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"0369 No entry from completion queue qid=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__lpfc_sli4_process_cq, %function
__lpfc_sli4_process_cq:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, #0
	sub	sp, sp, #20
	str	r6, [r3]
	mov	r4, r1
	mov	r7, r0
	mov	r9, r2
	add	r0, r1, #12
	mov	r2, #1
	mov	r1, r6
	str	r3, [sp, #12]
	bl	cmpxchg
	subs	r3, r0, #0
	str	r3, [sp, #8]
	beq	.L2
	mov	r8, r6
	ldr	r5, [r7, #4]
.L3:
	ldr	r3, .L28
	ldr	r3, [r3]
.L12:
	mov	r2, r6
	mov	r1, r4
	mov	r0, r7
	blx	r5
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r8, [sp, #8]
	mov	r0, r4
	str	r8, [r4, #24]
	bl	lpfc_sli4_cq_get
	subs	r10, r0, #0
	mov	r5, r8
	beq	.L13
	mov	r6, r8
	ldr	fp, .L28+4
	b	.L7
.L26:
	mov	r0, r5
	ldr	r1, [r4, #4]
	bl	__aeabi_idivmod
	subs	ip, r1, #0
	bne	.L5
	ldr	r3, .L28+8
	mov	r2, r6
	mov	r1, r4
	mov	r0, r7
	ldr	r10, [r7, #4]
	ldr	r3, [r3]
	mov	r6, ip
	blx	r10
.L5:
	ldr	r3, [fp]
	mov	r0, r4
	cmp	r3, r5
	ldreq	r2, .L28+12
	ldreq	r3, [r4, #24]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r4, #24]
	bl	lpfc_sli4_cq_get
	subs	r10, r0, #0
	beq	.L25
.L7:
	mov	r2, r10
	mov	r1, r4
	mov	r0, r7
	blx	r9
	mov	r3, r0
	mov	r2, r10
	mov	r1, r4
	mov	r0, r7
	add	r5, r5, #1
	orr	r8, r8, r3
	bl	__lpfc_sli4_consume_cqe
	mov	r0, r5
	ldr	r1, [r4]
	bl	__aeabi_idivmod
	cmp	r1, #0
	add	r6, r6, #1
	bne	.L26
	mov	r0, r1
.L4:
	ldr	r3, [r7]
	cmp	r3, r5
	mov	r3, #1
	ldrle	r2, [sp, #12]
	strgt	r3, [sp, #8]
	strle	r3, [r2]
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #20]
	cmp	r3, r5
	ldr	r3, [r2]
	strlt	r5, [r4, #8]
	add	r5, r3, r5
	str	r5, [r2]
	bl	unlikely
	cmp	r0, #0
	bne	.L27
.L10:
	mov	r3, #0
	ldr	r2, [sp, #8]
	ldr	r5, [r7, #4]
	cmp	r2, r3
	str	r3, [r4, #12]
	bne	.L3
	ldr	r3, .L28+8
	ldr	r3, [r3]
	b	.L12
.L25:
	mov	r0, r10
	b	.L4
.L27:
	ldr	r3, [r4, #16]
	ldr	r2, .L28+16
	ldr	r1, .L28+20
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r7
	str	r3, [sp]
	ldr	r3, .L28+24
	bl	lpfc_printf_log
	b	.L10
.L13:
	ldr	r8, [sp, #8]
	mov	r0, #1
	mov	r6, r8
	mov	r5, r8
	b	.L4
.L29:
	.align	2
.L28:
	.word	LPFC_QUEUE_REARM
	.word	LPFC_NVMET_CQ_NOTIFY
	.word	LPFC_QUEUE_NOARM
	.word	HBA_NVMET_CQ_NOTIFY
	.word	LOG_SLI
	.word	KERN_INFO
	.word	.LC0
	.size	__lpfc_sli4_process_cq, .-__lpfc_sli4_process_cq
	.comm	LPFC_QUEUE_REARM,4,4
	.comm	LPFC_QUEUE_NOARM,4,4
	.comm	LPFC_NVMET_CQ_NOTIFY,4,4
	.comm	LOG_SLI,4,4
	.comm	KERN_INFO,4,4
	.comm	HBA_NVMET_CQ_NOTIFY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
