	.file	"extr_lpfc_sli.c_lpfc_sli4_sp_handle_rcqe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"2537 Receive Frame Truncated!!\n"
	.align 8
.LC1:
	.string	"6402 RQE Error x%x, posted %d err_cnt %d: %x %x %x\n"
	.text
	.p2align 4
	.type	lpfc_sli4_sp_handle_rcqe, @function
lpfc_sli4_sp_handle_rcqe:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	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	rbx, QWORD PTR 40[rdi]
	mov	r13, QWORD PTR 32[rdi]
	xor	edi, edi
	test	rbx, rbx
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L2
.L22:
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	edi, edi
	test	r13, r13
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L22
	mov	edi, DWORD PTR lpfc_cqe_code[rip]
	mov	rsi, r12
	call	bf_get@PLT
	cmp	rax, QWORD PTR CQE_CODE_RECEIVE_V1[rip]
	mov	rsi, r12
	je	.L24
	mov	edi, DWORD PTR lpfc_rcqe_rq_id[rip]
	call	bf_get@PLT
.L6:
	cmp	QWORD PTR [rbx], rax
	jne	.L22
	mov	edi, DWORD PTR lpfc_rcqe_status[rip]
	mov	rsi, r12
	call	bf_get@PLT
	cmp	rax, 130
	je	.L7
	jg	.L8
	cmp	rax, 128
	je	.L9
	cmp	rax, 129
	jne	.L22
	mov	edx, DWORD PTR LOG_SLI[rip]
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rcx, .LC0[rip]
	call	lpfc_printf_log@PLT
.L9:
	xor	r14d, r14d
	mov	rdi, rbp
	mov	rsi, r14
	call	spin_lock_irqsave@PLT
	mov	rsi, r13
	mov	rdi, rbx
	call	lpfc_sli4_rq_release@PLT
	mov	rdi, QWORD PTR 56[rbp]
	call	lpfc_sli_hbqbuf_get@PLT
	mov	r13, rax
	test	rax, rax
	je	.L25
	add	DWORD PTR 16[rbx], 1
	lea	rdi, 4[rax]
	mov	edx, 4
	mov	rsi, r12
	sub	DWORD PTR 12[rbx], 1
	call	memcpy@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	eax, DWORD PTR [rax]
	cmp	eax, DWORD PTR FC_RCTL_MDS_DIAGS[rip]
	je	.L13
	cmp	eax, DWORD PTR FC_RCTL_DD_UNSOL_DATA[rip]
	je	.L13
	lea	rsi, 24[rbp]
	mov	rdi, r13
	xor	r14d, r14d
	call	list_add_tail@PLT
	mov	eax, DWORD PTR HBA_SP_QUEUE_EVT[rip]
	or	DWORD PTR 4[rbp], eax
	mov	rsi, r14
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR lpfc_rcqe_rq_id_v1[rip]
	call	bf_get@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	rax, 131
	jne	.L22
	mov	eax, DWORD PTR 16[rbp]
	test	eax, eax
	jne	.L26
.L7:
	add	DWORD PTR 8[rbx], 1
	xor	r14d, r14d
	mov	rdi, rbp
	mov	rsi, r14
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR HBA_POST_RECEIVE_BUFFER[rip]
	or	DWORD PTR 4[rbp], eax
	mov	rsi, r14
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	mov	eax, 1
	jmp	.L1
.L25:
	add	DWORD PTR 20[rbx], 1
	mov	rsi, r14
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	xor	eax, eax
	jmp	.L1
.L26:
	mov	rax, QWORD PTR 8[rbp]
	mov	r12, QWORD PTR [rax]
	mov	rdi, r12
	call	atomic_read@PLT
	lea	rdi, 4[r12]
	mov	r14d, eax
	call	atomic_read@PLT
	lea	rdi, 8[r12]
	mov	r13d, eax
	call	atomic_read@PLT
	mov	r9d, DWORD PTR 12[rbx]
	push	r14
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	push	r13
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	r8d, 131
	lea	rcx, .LC1[rip]
	push	rax
	.cfi_def_cfa_offset 72
	mov	eax, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR LOG_SLI[rip]
	or	edx, DWORD PTR LOG_NVME[rip]
	push	rax
	.cfi_def_cfa_offset 80
	xor	eax, eax
	call	lpfc_printf_log@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	xor	r14d, r14d
	mov	rdi, rbp
	mov	rsi, r14
	call	spin_unlock_irqrestore@PLT
	mov	edi, DWORD PTR 48[rbp]
	mov	rsi, r13
	call	lpfc_sli4_handle_mds_loopback@PLT
	jmp	.L22
	.cfi_endproc
.LFE0:
	.size	lpfc_sli4_sp_handle_rcqe, .-lpfc_sli4_sp_handle_rcqe
	.comm	lpfc_rcqe_status,4,4
	.comm	lpfc_rcqe_rq_id_v1,4,4
	.comm	lpfc_rcqe_rq_id,4,4
	.comm	lpfc_cqe_code,4,4
	.comm	LOG_SLI,4,4
	.comm	LOG_NVME,4,4
	.comm	KERN_ERR,4,4
	.comm	HBA_SP_QUEUE_EVT,4,4
	.comm	HBA_POST_RECEIVE_BUFFER,4,4
	.comm	FC_RCTL_MDS_DIAGS,4,4
	.comm	FC_RCTL_DD_UNSOL_DATA,4,4
	.comm	CQE_CODE_RECEIVE_V1,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_lpfc_sli.c_lpfc_sli4_sp_handle_rcqe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"2537 Receive Frame Truncated!!\012\000"
	.align	2
.LC1:
	.ascii	"6402 RQE Error x%x, posted %d err_cnt %d: %x %x %x\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_sli4_sp_handle_rcqe, %function
lpfc_sli4_sp_handle_rcqe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r0, #24]
	mov	r4, r0
	clz	r0, r7
	sub	sp, sp, #36
	lsr	r0, r0, #5
	mov	r6, r1
	ldr	r8, [r4, #20]
	bl	unlikely
	cmp	r0, #0
	beq	.L2
.L4:
	mov	r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	clz	r0, r8
	lsr	r0, r0, #5
	bl	unlikely
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, .L23
	mov	r1, r6
	ldr	r0, [r3]
	bl	bf_get
	ldr	r3, .L23+4
	mov	r1, r6
	ldr	r3, [r3]
	cmp	r0, r3
	ldreq	r3, .L23+8
	ldrne	r3, .L23+12
	ldr	r0, [r3]
	bl	bf_get
	ldr	r3, [r7]
	cmp	r3, r0
	bne	.L4
	ldr	r3, .L23+16
	mov	r1, r6
	ldr	r0, [r3]
	bl	bf_get
	sub	r0, r0, #128
	cmp	r0, #3
	ldrls	pc, [pc, r0, asl #2]
	b	.L1
.L8:
	.word	.L11
	.word	.L10
	.word	.L20
	.word	.L7
.L10:
	ldr	r3, .L23+20
	ldr	r2, .L23+24
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r3, .L23+28
	bl	lpfc_printf_log
.L11:
	mov	r1, #0
	mov	r0, r4
	bl	spin_lock_irqsave
	mov	r1, r8
	mov	r0, r7
	bl	lpfc_sli4_rq_release
	ldr	r0, [r4, #32]
	bl	lpfc_sli_hbqbuf_get
	subs	r8, r0, #0
	beq	.L22
	ldr	r2, [r7, #12]
	ldr	r3, [r7, #8]
	add	r2, r2, #1
	str	r2, [r7, #12]
	mov	r2, #4
	sub	r3, r3, #1
	str	r3, [r7, #8]
	add	r0, r8, r2
	mov	r1, r6
	bl	memcpy
	ldr	r3, [r8, #8]
	ldr	r2, .L23+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L14
	ldr	r2, .L23+36
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L14
	add	r1, r4, #16
	mov	r0, r8
	bl	list_add_tail
	ldr	r2, .L23+40
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	mov	r0, r4
	orr	r3, r3, r2
	mov	r1, #0
	str	r3, [r4, #4]
	bl	spin_unlock_irqrestore
	mov	r5, #1
	b	.L1
.L7:
	ldr	r3, [r4, #12]
	ldr	r5, [r7, #4]
	cmp	r3, #0
	beq	.L12
	ldr	r2, .L23+24
	ldr	r3, .L23+44
	ldr	r1, [r4, #8]
	ldr	r8, [r2]
	ldr	r2, [r3]
	ldr	r3, .L23+20
	ldr	r10, [r1]
	ldr	r1, [r3]
	add	r0, r10, #8
	orr	r8, r8, r2
	str	r1, [sp, #28]
	ldr	fp, [r7, #8]
	bl	atomic_read
	mov	r9, r0
	add	r0, r10, #4
	bl	atomic_read
	mov	r6, r0
	mov	r0, r10
	bl	atomic_read
	mov	r3, #131
	str	r0, [sp, #20]
	str	r3, [sp]
	mov	r2, r8
	mov	r0, r4
	ldr	r1, [sp, #28]
	ldr	r3, .L23+48
	str	r9, [sp, #12]
	str	r6, [sp, #16]
	str	fp, [sp, #4]
	str	r5, [sp, #8]
	bl	lpfc_printf_log
.L20:
	ldr	r5, [r7, #4]
.L12:
	mov	r6, #0
	add	r5, r5, #1
	mov	r1, r6
	str	r5, [r7, #4]
	mov	r0, r4
	bl	spin_lock_irqsave
	ldr	r2, .L23+52
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	mov	r1, r6
	orr	r3, r3, r2
	mov	r0, r4
	str	r3, [r4, #4]
	bl	spin_unlock_irqrestore
	mov	r5, #1
	b	.L1
.L14:
	mov	r1, #0
	mov	r0, r4
	bl	spin_unlock_irqrestore
	mov	r1, r8
	ldr	r0, [r4, #28]
	bl	lpfc_sli4_handle_mds_loopback
	b	.L1
.L22:
	ldr	r3, [r7, #16]
	mov	r0, r4
	add	r3, r3, #1
	mov	r1, #0
	str	r3, [r7, #16]
	bl	spin_unlock_irqrestore
	b	.L1
.L24:
	.align	2
.L23:
	.word	lpfc_cqe_code
	.word	CQE_CODE_RECEIVE_V1
	.word	lpfc_rcqe_rq_id_v1
	.word	lpfc_rcqe_rq_id
	.word	lpfc_rcqe_status
	.word	KERN_ERR
	.word	LOG_SLI
	.word	.LC0
	.word	FC_RCTL_MDS_DIAGS
	.word	FC_RCTL_DD_UNSOL_DATA
	.word	HBA_SP_QUEUE_EVT
	.word	LOG_NVME
	.word	.LC1
	.word	HBA_POST_RECEIVE_BUFFER
	.size	lpfc_sli4_sp_handle_rcqe, .-lpfc_sli4_sp_handle_rcqe
	.comm	lpfc_rcqe_status,4,4
	.comm	lpfc_rcqe_rq_id_v1,4,4
	.comm	lpfc_rcqe_rq_id,4,4
	.comm	lpfc_cqe_code,4,4
	.comm	LOG_SLI,4,4
	.comm	LOG_NVME,4,4
	.comm	KERN_ERR,4,4
	.comm	HBA_SP_QUEUE_EVT,4,4
	.comm	HBA_POST_RECEIVE_BUFFER,4,4
	.comm	FC_RCTL_MDS_DIAGS,4,4
	.comm	FC_RCTL_DD_UNSOL_DATA,4,4
	.comm	CQE_CODE_RECEIVE_V1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
