	.file	"extr_lpfc_scsi.c_lpfc_send_scsi_error_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lpfc_send_scsi_error_event, @function
lpfc_send_scsi_error_event:
.LFB0:
	.cfi_startproc
	endbr64
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [rdx]
	mov	r14, QWORD PTR [rax]
	test	r14, r14
	je	.L1
	mov	r15, QWORD PTR 8[rdx]
	mov	rbp, rdi
	mov	rdi, r14
	mov	r12, QWORD PTR 16[rdx]
	mov	rbx, rsi
	mov	rax, QWORD PTR 8[r15]
	mov	r13, QWORD PTR [r15]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR [rcx]
	mov	QWORD PTR [rsp], rax
	call	NLP_CHK_NODE_ACT@PLT
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR [r12]
	cmp	rax, QWORD PTR SAM_STAT_TASK_SET_FULL[rip]
	je	.L5
	cmp	rax, QWORD PTR SAM_STAT_BUSY[rip]
	je	.L5
	test	QWORD PTR SNS_LEN_VALID[rip], r13
	je	.L10
	cmp	QWORD PTR 24[r15], 0
	je	.L10
	mov	rax, QWORD PTR 8[r12]
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR READ_10[rip]
	je	.L11
	cmp	rax, QWORD PTR WRITE_10[rip]
	jne	.L10
.L11:
	mov	rdi, rbp
	call	lpfc_alloc_fast_evt@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR FC_REG_SCSI_EVENT[rip]
	lea	rsi, 4[r14]
	lea	rdi, 76[r13]
	mov	edx, 4
	mov	QWORD PTR 88[r13], rax
	mov	eax, DWORD PTR LPFC_EVENT_CHECK_COND[rip]
	mov	DWORD PTR 84[r13], eax
	mov	rax, QWORD PTR 32[r12]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 80[r13], eax
	call	memcpy@PLT
	mov	edx, 4
	lea	rdi, 72[r13]
	mov	rsi, r14
	call	memcpy@PLT
	mov	rax, QWORD PTR 16[r12]
	mov	edx, DWORD PTR 8[rax]
	and	edx, 15
	mov	DWORD PTR 56[r13], edx
	mov	edx, DWORD PTR 48[rax]
	mov	DWORD PTR 60[r13], edx
	mov	eax, DWORD PTR 52[rax]
	mov	DWORD PTR 64[r13], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR DMA_FROM_DEVICE[rip]
	cmp	QWORD PTR 24[r12], rax
	je	.L36
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	lpfc_alloc_fast_evt@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR FC_REG_SCSI_EVENT[rip]
	mov	rcx, QWORD PTR SAM_STAT_TASK_SET_FULL[rip]
	mov	QWORD PTR 112[r13], rax
	mov	eax, DWORD PTR LPFC_EVENT_DEVBSY[rip]
	cmp	QWORD PTR [r12], rcx
	jne	.L8
	mov	eax, DWORD PTR LPFC_EVENT_QFULL[rip]
.L8:
	mov	DWORD PTR 108[r13], eax
	mov	rax, QWORD PTR 32[r12]
	lea	rsi, 4[r14]
	lea	rdi, 100[r13]
	mov	edx, 4
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 104[r13], eax
	call	memcpy@PLT
	lea	rdi, 96[r13]
	mov	edx, 4
	mov	rsi, r14
	call	memcpy@PLT
.L9:
	mov	QWORD PTR 8[r13], rbx
	xor	r12d, r12d
	mov	rdi, rbp
	mov	rsi, r12
	call	spin_lock_irqsave@PLT
	lea	rsi, 4[rbp]
	mov	rdi, r13
	call	list_add_tail@PLT
	mov	rdi, rbp
	mov	rsi, r12
	call	spin_unlock_irqrestore@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	lpfc_worker_wake_up@PLT
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	cmp	QWORD PTR [rsp], 0
	je	.L1
	mov	edi, DWORD PTR 16[r15]
	call	be32_to_cpu@PLT
	cmp	rax, QWORD PTR [rsp]
	jne	.L12
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR SAM_STAT_GOOD[rip], rax
	jne	.L1
	mov	rax, QWORD PTR RESID_UNDER[rip]
	or	rax, QWORD PTR RESID_OVER[rip]
	test	rax, r13
	jne	.L1
.L12:
	mov	rdi, rbp
	call	lpfc_alloc_fast_evt@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR FC_REG_FABRIC_EVENT[rip]
	lea	rsi, 4[r14]
	lea	rdi, 40[r13]
	mov	edx, 4
	mov	DWORD PTR 48[r13], eax
	mov	eax, DWORD PTR LPFC_EVENT_FCPRDCHKERR[rip]
	mov	DWORD PTR 44[r13], eax
	call	memcpy@PLT
	lea	rdi, 36[r13]
	mov	edx, 4
	mov	rsi, r14
	call	memcpy@PLT
	mov	rax, QWORD PTR 32[r12]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 32[r13], eax
	mov	rax, QWORD PTR 8[r12]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 16[r13], rax
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 24[r13], rax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	lpfc_send_scsi_error_event, .-lpfc_send_scsi_error_event
	.comm	WRITE_10,8,8
	.comm	SNS_LEN_VALID,8,8
	.comm	SAM_STAT_TASK_SET_FULL,8,8
	.comm	SAM_STAT_GOOD,8,8
	.comm	SAM_STAT_BUSY,8,8
	.comm	RESID_UNDER,8,8
	.comm	RESID_OVER,8,8
	.comm	READ_10,8,8
	.comm	LPFC_EVENT_QFULL,4,4
	.comm	LPFC_EVENT_FCPRDCHKERR,4,4
	.comm	LPFC_EVENT_DEVBSY,4,4
	.comm	LPFC_EVENT_CHECK_COND,4,4
	.comm	FC_REG_SCSI_EVENT,8,8
	.comm	FC_REG_FABRIC_EVENT,4,4
	.comm	DMA_FROM_DEVICE,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_scsi.c_lpfc_send_scsi_error_event.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_send_scsi_error_event, %function
lpfc_send_scsi_error_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r2]
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [ip]
	cmp	r7, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r5, [r2, #4]
	mov	r4, r0
	ldm	r5, {r10, fp}
	mov	r0, r7
	mov	r6, r1
	ldr	r9, [r3]
	ldr	r8, [r2, #8]
	bl	NLP_CHK_NODE_ACT
	cmp	r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r2, .L36
	ldr	r3, [r8]
	ldr	r1, [r2]
	cmp	r3, r1
	beq	.L5
	ldr	r1, .L36+4
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L5
	ldr	r3, .L36+8
	ldr	r3, [r3]
	tst	r10, r3
	beq	.L10
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [r8, #4]
	ldr	r2, .L36+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L11
	ldr	r2, .L36+16
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L10
.L11:
	mov	r0, r4
	bl	lpfc_alloc_fast_evt
	subs	r5, r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r2, .L36+20
	ldr	r3, [r8, #16]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r5, #60]
	mov	r2, #4
	ldr	r1, .L36+24
	str	r3, [r5, #56]
	ldr	r1, [r1]
	add	r0, r5, #52
	str	r1, [r5, #64]
	add	r1, r7, r2
	bl	memcpy
	mov	r2, #4
	mov	r1, r7
	add	r0, r5, #48
	bl	memcpy
	ldr	r3, [r8, #8]
	ldr	r2, [r3, #8]
	and	r2, r2, #15
	str	r2, [r5, #36]
	ldr	r2, [r3, #48]
	str	r2, [r5, #40]
	ldr	r3, [r3, #52]
	str	r3, [r5, #44]
	b	.L9
.L10:
	ldr	r2, .L36+28
	ldr	r3, [r8, #12]
	ldr	r2, [r2]
	cmp	r9, #0
	sub	r3, r3, r2
	clz	r3, r3
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r0, [r5, #8]
	bl	be32_to_cpu
	cmp	r0, r9
	bne	.L12
	ldr	r3, .L36+32
	ldr	r3, [r3]
	cmp	r3, fp
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, .L36+36
	ldr	r2, .L36+40
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	tst	r3, r10
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r0, r4
	bl	lpfc_alloc_fast_evt
	subs	r5, r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r2, .L36+44
	ldr	r3, .L36+48
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r5, #32]
	mov	r2, #4
	str	r3, [r5, #28]
	add	r1, r7, r2
	add	r0, r5, #24
	bl	memcpy
	mov	r2, #4
	mov	r1, r7
	add	r0, r5, #20
	bl	memcpy
	ldr	r2, [r8, #16]
	ldr	r3, [r8, #4]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r5, #16]
	str	r3, [r5, #8]
	str	r9, [r5, #12]
	b	.L9
.L5:
	mov	r0, r4
	bl	lpfc_alloc_fast_evt
	subs	r5, r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r2, .L36
	ldr	r3, .L36+24
	ldr	r1, [r8]
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r1, r2
	str	r3, [r5, #84]
	ldreq	r3, .L36+52
	ldrne	r3, .L36+56
	add	r0, r5, #72
	ldr	r2, [r3]
	ldr	r3, [r8, #16]
	str	r2, [r5, #80]
	mov	r2, #4
	ldr	r3, [r3]
	add	r1, r7, r2
	str	r3, [r5, #76]
	bl	memcpy
	mov	r1, r7
	mov	r2, #4
	add	r0, r5, #68
	bl	memcpy
.L9:
	mov	r7, #0
	mov	r0, r4
	mov	r1, r7
	str	r6, [r5, #4]
	bl	spin_lock_irqsave
	add	r1, r4, #4
	mov	r0, r5
	bl	list_add_tail
	mov	r1, r7
	mov	r0, r4
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	lpfc_worker_wake_up
.L37:
	.align	2
.L36:
	.word	SAM_STAT_TASK_SET_FULL
	.word	SAM_STAT_BUSY
	.word	SNS_LEN_VALID
	.word	READ_10
	.word	WRITE_10
	.word	LPFC_EVENT_CHECK_COND
	.word	FC_REG_SCSI_EVENT
	.word	DMA_FROM_DEVICE
	.word	SAM_STAT_GOOD
	.word	RESID_UNDER
	.word	RESID_OVER
	.word	FC_REG_FABRIC_EVENT
	.word	LPFC_EVENT_FCPRDCHKERR
	.word	LPFC_EVENT_QFULL
	.word	LPFC_EVENT_DEVBSY
	.size	lpfc_send_scsi_error_event, .-lpfc_send_scsi_error_event
	.comm	WRITE_10,4,4
	.comm	SNS_LEN_VALID,4,4
	.comm	SAM_STAT_TASK_SET_FULL,4,4
	.comm	SAM_STAT_GOOD,4,4
	.comm	SAM_STAT_BUSY,4,4
	.comm	RESID_UNDER,4,4
	.comm	RESID_OVER,4,4
	.comm	READ_10,4,4
	.comm	LPFC_EVENT_QFULL,4,4
	.comm	LPFC_EVENT_FCPRDCHKERR,4,4
	.comm	LPFC_EVENT_DEVBSY,4,4
	.comm	LPFC_EVENT_CHECK_COND,4,4
	.comm	FC_REG_SCSI_EVENT,4,4
	.comm	FC_REG_FABRIC_EVENT,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
