	.file	"extr_lpfc_sli.c_lpfc_sli4_nvmet_handle_rcqe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"6126 Receive Frame Truncated!!\n"
	.align 8
.LC1:
	.string	"6401 RQE Error x%x, posted %d err_cnt %d: %x %x %x\n"
	.text
	.p2align 4
	.type	lpfc_sli4_nvmet_handle_rcqe, @function
lpfc_sli4_nvmet_handle_rcqe:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], 0
	je	.L24
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 40[rdi]
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR [rax]
	mov	r12, QWORD PTR [rsi]
	mov	rbx, rsi
	mov	r13, rdx
	sub	r12, QWORD PTR [rax]
	mov	rax, QWORD PTR 32[rdi]
	mov	r14, QWORD PTR [rax+r12*8]
	mov	rax, QWORD PTR 24[rdi]
	xor	edi, edi
	test	r14, r14
	mov	r15, QWORD PTR [rax+r12*8]
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L3
	xor	edi, edi
	test	r15, r15
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L28
.L3:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L24:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_def_cfa_offset 80
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	edi, DWORD PTR lpfc_cqe_code[rip]
	mov	rsi, r13
	call	bf_get@PLT
	cmp	rax, QWORD PTR CQE_CODE_RECEIVE_V1[rip]
	mov	rsi, r13
	je	.L29
	mov	edi, DWORD PTR lpfc_rcqe_rq_id[rip]
	call	bf_get@PLT
.L6:
	cmp	QWORD PTR 0[rbp], 0
	je	.L3
	cmp	QWORD PTR [r14], rax
	jne	.L3
	mov	edi, DWORD PTR lpfc_rcqe_status[rip]
	mov	rsi, r13
	call	bf_get@PLT
	cmp	rax, 130
	je	.L7
	jg	.L8
	cmp	rax, 128
	je	.L9
	cmp	rax, 129
	jne	.L3
	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:
	lea	r8, 16[rbp]
	xor	esi, esi
	mov	rdi, r8
	mov	QWORD PTR 8[rsp], r8
	call	spin_lock_irqsave@PLT
	mov	rsi, r15
	mov	rdi, r14
	call	lpfc_sli4_rq_release@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	lpfc_sli_rqbuf_get@PLT
	mov	r8, QWORD PTR 8[rsp]
	test	rax, rax
	mov	r15, rax
	je	.L30
	xor	esi, esi
	mov	rdi, r8
	call	spin_unlock_irqrestore@PLT
	mov	rsi, QWORD PTR [r15]
	add	DWORD PTR 24[r14], 1
	sub	DWORD PTR 16[r14], 1
	mov	rdx, QWORD PTR FC_FC_FIRST_SEQ[rip]
	mov	rcx, QWORD PTR [rsi]
	or	rdx, QWORD PTR FC_FC_END_SEQ[rip]
	or	rdx, QWORD PTR FC_FC_SEQ_INIT[rip]
	mov	eax, DWORD PTR [rcx]
	mov	edi, DWORD PTR 4[rcx]
	sal	eax, 16
	sal	edi, 8
	or	eax, edi
	or	eax, DWORD PTR 8[rcx]
	cdqe
	and	rax, rdx
	cmp	rdx, rax
	jne	.L13
	mov	eax, DWORD PTR 12[rsi]
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR FC_TYPE_FCP[rip]
	cmp	DWORD PTR 8[rsi], eax
	je	.L31
.L13:
	mov	rsi, r15
	mov	rdi, rbp
	call	lpfc_rq_buf_free@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR lpfc_rcqe_rq_id_v1[rip]
	call	bf_get@PLT
	jmp	.L6
.L8:
	cmp	rax, 131
	jne	.L3
	cmp	QWORD PTR 0[rbp], 0
	jne	.L32
.L7:
	add	DWORD PTR 12[r14], 1
	jmp	.L3
.L30:
	add	DWORD PTR 28[r14], 1
	xor	esi, esi
	mov	rdi, r8
	call	spin_unlock_irqrestore@PLT
	jmp	.L3
.L32:
	mov	rax, QWORD PTR 8[rbp]
	mov	rbx, QWORD PTR [rax]
	mov	rdi, rbx
	call	atomic_read@PLT
	lea	rdi, 4[rbx]
	mov	r13d, eax
	call	atomic_read@PLT
	lea	rdi, 8[rbx]
	mov	r12d, eax
	call	atomic_read@PLT
	mov	r9d, DWORD PTR 16[r14]
	push	r13
	.cfi_def_cfa_offset 88
	mov	rdi, rbp
	push	r12
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	r8d, 131
	lea	rcx, .LC1[rip]
	push	rax
	.cfi_def_cfa_offset 104
	mov	eax, DWORD PTR 12[r14]
	mov	edx, DWORD PTR LOG_SLI[rip]
	or	edx, DWORD PTR LOG_NVME[rip]
	push	rax
	.cfi_def_cfa_offset 112
	xor	eax, eax
	call	lpfc_printf_log@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	jmp	.L7
.L31:
	mov	edi, DWORD PTR lpfc_rcqe_length[rip]
	mov	rsi, r13
	call	bf_get@PLT
	mov	ecx, DWORD PTR 20[rbx]
	mov	r8d, DWORD PTR 8[rbx]
	mov	rdx, r15
	mov	QWORD PTR 8[r15], rax
	and	r8d, DWORD PTR HBA_NVMET_CQ_NOTIFY[rip]
	mov	rsi, r12
	mov	rdi, rbp
	call	lpfc_nvmet_unsol_fcp_event@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	lpfc_sli4_nvmet_handle_rcqe, .-lpfc_sli4_nvmet_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_rcqe_length,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_NVMET_CQ_NOTIFY,4,4
	.comm	FC_TYPE_FCP,4,4
	.comm	FC_FC_SEQ_INIT,8,8
	.comm	FC_FC_FIRST_SEQ,8,8
	.comm	FC_FC_END_SEQ,8,8
	.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_nvmet_handle_rcqe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"6126 Receive Frame Truncated!!\012\000"
	.align	2
.LC1:
	.ascii	"6401 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_nvmet_handle_rcqe, %function
lpfc_sli4_nvmet_handle_rcqe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L25
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #20]
	mov	r4, r0
	cmp	r3, #0
	sub	sp, sp, #36
	beq	.L3
	ldr	r3, [r3]
	ldr	r5, [r1]
	mov	r6, r2
	ldr	r2, [r3]
	ldr	r3, [r0, #16]
	sub	r5, r5, r2
	ldr	r8, [r3, r5, lsl #2]
	ldr	r3, [r0, #12]
	clz	r0, r8
	lsr	r0, r0, #5
	mov	r7, r1
	ldr	r9, [r3, r5, lsl #2]
	bl	unlikely
	cmp	r0, #0
	bne	.L3
	clz	r0, r9
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	beq	.L30
.L3:
	mov	r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	mov	r0, #0
	bx	lr
.L30:
	ldr	r3, .L33
	mov	r1, r6
	ldr	r0, [r3]
	bl	bf_get
	ldr	r3, .L33+4
	mov	r1, r6
	ldr	r3, [r3]
	cmp	r0, r3
	ldreq	r3, .L33+8
	ldrne	r3, .L33+12
	ldr	r0, [r3]
	bl	bf_get
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r8]
	cmp	r3, r0
	bne	.L3
	ldr	r3, .L33+16
	mov	r1, r6
	ldr	r0, [r3]
	bl	bf_get
	sub	r0, r0, #128
	cmp	r0, #3
	ldrls	pc, [pc, r0, asl #2]
	b	.L3
.L8:
	.word	.L11
	.word	.L10
	.word	.L28
	.word	.L7
.L10:
	ldr	r3, .L33+20
	ldr	r2, .L33+24
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r3, .L33+28
	bl	lpfc_printf_log
.L11:
	add	r10, r4, #8
	mov	r1, #0
	mov	r0, r10
	bl	spin_lock_irqsave
	mov	r1, r9
	mov	r0, r8
	bl	lpfc_sli4_rq_release
	mov	r1, r8
	mov	r0, r4
	bl	lpfc_sli_rqbuf_get
	subs	r9, r0, #0
	beq	.L31
	mov	r1, #0
	mov	r0, r10
	bl	spin_unlock_irqrestore
	ldr	r2, [r8, #20]
	ldr	r3, [r8, #12]
	ldr	r1, [r9]
	ldr	ip, .L33+32
	ldr	r0, [r1]
	add	r2, r2, #1
	sub	r3, r3, #1
	str	r2, [r8, #20]
	str	r3, [r8, #12]
	ldr	r2, .L33+36
	ldr	r3, [r0, #4]
	ldr	r8, [r0]
	ldr	lr, [ip]
	ldr	ip, [r0, #8]
	ldr	r0, .L33+40
	ldr	r2, [r2]
	ldr	r0, [r0]
	lsl	r3, r3, #8
	orr	r3, r3, r8, lsl #16
	orr	r2, r2, lr
	orr	r3, r3, ip
	orr	r2, r2, r0
	bics	r3, r2, r3
	bne	.L14
	ldr	r3, [r1, #8]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L33+44
	ldr	r2, [r1, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L32
.L14:
	mov	r1, r9
	mov	r0, r4
	bl	lpfc_rq_buf_free
	b	.L3
.L7:
	ldr	r3, [r4]
	ldr	r5, [r8, #8]
	cmp	r3, #0
	beq	.L12
	ldr	r2, .L33+24
	ldr	r3, .L33+48
	ldr	r1, [r4, #4]
	ldr	r7, [r2]
	ldr	r2, [r3]
	ldr	r3, .L33+20
	ldr	r10, [r1]
	ldr	r1, [r3]
	add	r0, r10, #8
	orr	r7, r7, r2
	str	r1, [sp, #28]
	ldr	fp, [r8, #12]
	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, r7
	mov	r0, r4
	ldr	r1, [sp, #28]
	ldr	r3, .L33+52
	str	r9, [sp, #12]
	str	r6, [sp, #16]
	str	fp, [sp, #4]
	str	r5, [sp, #8]
	bl	lpfc_printf_log
.L28:
	ldr	r5, [r8, #8]
.L12:
	add	r5, r5, #1
	str	r5, [r8, #8]
	b	.L3
.L31:
	ldr	r3, [r8, #24]
	mov	r0, r10
	add	r3, r3, #1
	mov	r1, #0
	str	r3, [r8, #24]
	bl	spin_unlock_irqrestore
	b	.L3
.L32:
	ldr	r3, .L33+56
	mov	r1, r6
	ldr	r0, [r3]
	bl	bf_get
	ldr	r2, .L33+60
	ldr	r3, [r7, #4]
	ldr	r2, [r2]
	str	r0, [r9, #4]
	and	r3, r3, r2
	str	r3, [sp]
	mov	r2, r9
	mov	r1, r5
	mov	r0, r4
	ldr	r3, [r7, #16]
	bl	lpfc_nvmet_unsol_fcp_event
	b	.L3
.L34:
	.align	2
.L33:
	.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_FC_END_SEQ
	.word	FC_FC_FIRST_SEQ
	.word	FC_FC_SEQ_INIT
	.word	FC_TYPE_FCP
	.word	LOG_NVME
	.word	.LC1
	.word	lpfc_rcqe_length
	.word	HBA_NVMET_CQ_NOTIFY
	.size	lpfc_sli4_nvmet_handle_rcqe, .-lpfc_sli4_nvmet_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_rcqe_length,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_NVMET_CQ_NOTIFY,4,4
	.comm	FC_TYPE_FCP,4,4
	.comm	FC_FC_SEQ_INIT,4,4
	.comm	FC_FC_FIRST_SEQ,4,4
	.comm	FC_FC_END_SEQ,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
