	.file	"extr_lpfc_nvmet.c_lpfc_nvmet_unsol_fcp_issue_abort.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"6417 NVMET ABORT ctx freed %d %d oxid x%x\n"
	.align 8
.LC1:
	.string	"6135 Failed to Issue ABTS for oxid x%x. Status x%x (%x)\n"
	.text
	.p2align 4
	.type	lpfc_nvmet_unsol_fcp_issue_abort, @function
lpfc_nvmet_unsol_fcp_issue_abort:
.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
	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	rax, QWORD PTR 24[rdi]
	mov	rbx, rsi
	cmp	QWORD PTR 48[rsi], 0
	mov	r12, QWORD PTR [rax]
	je	.L14
	mov	r8, QWORD PTR [rbx]
	cmp	r8, QWORD PTR LPFC_NVMET_STE_FREE[rip]
	mov	r9d, DWORD PTR 8[rbx]
	je	.L15
.L3:
	movsx	rax, DWORD PTR LPFC_NVMET_STE_ABORT[rip]
	add	r9d, 1
	mov	rsi, rbx
	mov	rdi, rbp
	mov	DWORD PTR 8[rbx], r9d
	mov	QWORD PTR [rbx], rax
	call	lpfc_nvmet_unsol_issue_abort@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L16
.L4:
	lea	r14, 32[rbx]
	xor	esi, esi
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR LPFC_NVMET_CTX_RLS[rip]
	test	eax, edx
	jne	.L17
	or	edx, DWORD PTR LPFC_NVMET_ABORT_OP[rip]
	xor	esi, esi
	mov	rdi, r14
	not	edx
	and	edx, eax
	mov	DWORD PTR 16[rbx], edx
	call	spin_unlock_irqrestore@PLT
	mov	rdi, r12
	call	atomic_inc@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r8d, DWORD PTR 12[rbx]
	mov	r9d, r13d
	push	0
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR LOG_NVME_ABTS[rip]
	mov	rdi, rbp
	lea	rcx, .LC1[rip]
	mov	esi, DWORD PTR KERN_ERR[rip]
	call	lpfc_printf_log@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rdx
	.cfi_def_cfa_offset 48
.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
.L16:
	.cfi_restore_state
	lea	r14, 16[rbp]
	xor	esi, esi
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
	mov	rdx, QWORD PTR 48[rbx]
	mov	eax, DWORD PTR lpfc_nvmet_unsol_fcp_abort_cmp[rip]
	mov	rsi, QWORD PTR 40[rbx]
	mov	DWORD PTR 24[rdx], eax
	mov	eax, DWORD PTR LPFC_IO_NVMET[rip]
	mov	QWORD PTR 16[rdx], 0
	or	DWORD PTR 8[rdx], eax
	test	rsi, rsi
	je	.L18
.L5:
	mov	rdi, rbp
	call	lpfc_sli4_issue_wqe@PLT
	xor	esi, esi
	mov	rdi, r14
	mov	r13d, eax
	call	spin_unlock_irqrestore@PLT
	xor	eax, eax
	cmp	DWORD PTR WQE_SUCCESS[rip], r13d
	jne	.L4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbp
	call	spin_lock@PLT
	lea	rdi, 36[rbx]
	call	list_del_init@PLT
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	eax, DWORD PTR LPFC_NVMET_ABORT_OP[rip]
	xor	esi, esi
	mov	rdi, r14
	or	eax, DWORD PTR LPFC_NVMET_CTX_RLS[rip]
	not	eax
	and	DWORD PTR 16[rbx], eax
	call	spin_unlock_irqrestore@PLT
	mov	rdi, r12
	call	atomic_inc@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r8d, DWORD PTR 12[rbx]
	mov	r9d, r13d
	push	1
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR LOG_NVME_ABTS[rip]
	mov	rdi, rbp
	lea	rcx, .LC1[rip]
	mov	esi, DWORD PTR KERN_ERR[rip]
	call	lpfc_printf_log@PLT
	mov	rsi, QWORD PTR 24[rbx]
	mov	rdi, rbp
	call	lpfc_nvmet_ctxbuf_post@PLT
	pop	rcx
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rsi
	.cfi_def_cfa_offset 48
	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
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rsi]
	mov	r8, QWORD PTR [rbx]
	cmp	r8, QWORD PTR LPFC_NVMET_STE_FREE[rip]
	mov	r9d, DWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 48[rsi], rax
	mov	QWORD PTR [rax], 0
	jne	.L3
.L15:
	mov	eax, DWORD PTR 12[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	edx, DWORD PTR LOG_NVME_IOERR[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR KERN_ERR[rip]
	lea	rcx, .LC0[rip]
	push	rax
	.cfi_def_cfa_offset 64
	call	lpfc_printf_log@PLT
	pop	rdi
	.cfi_def_cfa_offset 56
	mov	r13d, DWORD PTR WQE_BUSY[rip]
	pop	r8
	.cfi_def_cfa_offset 48
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rcx, QWORD PTR [rdx]
	mov	rax, QWORD PTR 8[rbp]
	lea	rsi, [rax+rcx*4]
	mov	QWORD PTR 40[rbx], rsi
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	lpfc_nvmet_unsol_fcp_issue_abort, .-lpfc_nvmet_unsol_fcp_issue_abort
	.comm	lpfc_nvmet_unsol_fcp_abort_cmp,4,4
	.comm	WQE_SUCCESS,4,4
	.comm	WQE_BUSY,4,4
	.comm	LPFC_NVMET_STE_FREE,8,8
	.comm	LPFC_NVMET_STE_ABORT,4,4
	.comm	LPFC_NVMET_CTX_RLS,4,4
	.comm	LPFC_NVMET_ABORT_OP,4,4
	.comm	LPFC_IO_NVMET,4,4
	.comm	LOG_NVME_IOERR,4,4
	.comm	LOG_NVME_ABTS,4,4
	.comm	KERN_ERR,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_nvmet.c_lpfc_nvmet_unsol_fcp_issue_abort.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"6417 NVMET ABORT ctx freed %d %d oxid x%x\012\000"
	.align	2
.LC1:
	.ascii	"6135 Failed to Issue ABTS for oxid x%x. Status x%x "
	.ascii	"(%x)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_nvmet_unsol_fcp_issue_abort, %function
lpfc_nvmet_unsol_fcp_issue_abort:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r1, [r1, #32]
	mov	r5, r0
	ldr	r0, [r0, #12]
	cmp	r1, #0
	ldr	r8, [r0]
	ldreq	r0, [r4, #16]
	sub	sp, sp, #20
	ldreq	r0, [r0]
	streq	r0, [r4, #32]
	streq	r1, [r0]
	ldr	r1, .L17
	ldr	r0, [r4]
	ldr	ip, [r1]
	ldr	r1, [r4, #4]
	cmp	r0, ip
	beq	.L15
	ldr	r0, .L17+4
	add	r1, r1, #1
	ldr	r0, [r0]
	stm	r4, {r0, r1}
	mov	r1, r4
	mov	r0, r5
	bl	lpfc_nvmet_unsol_issue_abort
	subs	r6, r0, #0
	bne	.L11
.L13:
	ldr	r7, .L17+8
.L4:
	ldr	r9, .L17+12
	add	fp, r4, #20
	mov	r0, fp
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r2, [r9]
	ldr	r3, [r4, #12]
	ands	r10, r3, r2
	bne	.L16
	ldr	r1, .L17+16
	mov	r0, fp
	ldr	ip, [r1]
	mov	r1, #0
	orr	r2, r2, ip
	bic	r3, r3, r2
	str	r3, [r4, #12]
	bl	spin_unlock_irqrestore
	mov	r0, r8
	bl	atomic_inc
	ldr	r2, [r4, #8]
	ldr	r3, .L17+20
	stm	sp, {r2, r6, r10}
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [r7]
	ldr	r3, .L17+24
	bl	lpfc_printf_log
	mov	r0, #1
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	add	r7, r5, #8
	mov	r1, #0
	mov	r0, r7
	bl	spin_lock_irqsave
	mov	r0, #0
	ldr	r2, [r4, #32]
	ldr	r3, .L17+28
	ldr	r1, .L17+32
	ldr	ip, [r3]
	ldr	r1, [r1]
	ldr	r3, [r2, #4]
	str	ip, [r2, #12]
	orr	r3, r3, r1
	ldr	r1, [r4, #28]
	str	r3, [r2, #4]
	cmp	r1, r0
	ldreq	r3, [r2]
	ldreq	r1, [r5, #4]
	str	r0, [r2, #8]
	addeq	r1, r1, r3, lsl #2
	streq	r1, [r4, #28]
	mov	r0, r5
	bl	lpfc_sli4_issue_wqe
	mov	r6, r0
	mov	r1, #0
	mov	r0, r7
	bl	spin_unlock_irqrestore
	ldr	r3, .L17+36
	ldr	r3, [r3]
	cmp	r3, r6
	moveq	r0, #0
	bne	.L13
	b	.L1
.L16:
	mov	r10, #1
	mov	r0, r5
	bl	spin_lock
	add	r0, r4, #24
	bl	list_del_init
	mov	r0, r5
	bl	spin_unlock
	ldr	r3, .L17+16
	ldr	r2, [r9]
	ldr	r3, [r3]
	mov	r1, #0
	orr	r2, r3, r2
	ldr	r3, [r4, #12]
	mov	r0, fp
	bic	r3, r3, r2
	str	r3, [r4, #12]
	bl	spin_unlock_irqrestore
	mov	r0, r8
	bl	atomic_inc
	ldr	r3, [r4, #8]
	ldr	r2, .L17+20
	str	r6, [sp, #4]
	ldr	r1, [r7]
	str	r10, [sp, #8]
	ldr	r2, [r2]
	mov	r0, r5
	str	r3, [sp]
	ldr	r3, .L17+24
	bl	lpfc_printf_log
	mov	r0, r5
	ldr	r1, [r4, #16]
	bl	lpfc_nvmet_ctxbuf_post
	mov	r0, r10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, [r4, #8]
	stm	sp, {r0, r1}
	ldr	r2, .L17+40
	ldr	r7, .L17+8
	ldr	r2, [r2]
	ldr	r1, [r7]
	mov	r0, r5
	str	r3, [sp, #8]
	ldr	r3, .L17+44
	bl	lpfc_printf_log
	ldr	r3, .L17+48
	ldr	r6, [r3]
	b	.L4
.L18:
	.align	2
.L17:
	.word	LPFC_NVMET_STE_FREE
	.word	LPFC_NVMET_STE_ABORT
	.word	KERN_ERR
	.word	LPFC_NVMET_CTX_RLS
	.word	LPFC_NVMET_ABORT_OP
	.word	LOG_NVME_ABTS
	.word	.LC1
	.word	lpfc_nvmet_unsol_fcp_abort_cmp
	.word	LPFC_IO_NVMET
	.word	WQE_SUCCESS
	.word	LOG_NVME_IOERR
	.word	.LC0
	.word	WQE_BUSY
	.size	lpfc_nvmet_unsol_fcp_issue_abort, .-lpfc_nvmet_unsol_fcp_issue_abort
	.comm	lpfc_nvmet_unsol_fcp_abort_cmp,4,4
	.comm	WQE_SUCCESS,4,4
	.comm	WQE_BUSY,4,4
	.comm	LPFC_NVMET_STE_FREE,4,4
	.comm	LPFC_NVMET_STE_ABORT,4,4
	.comm	LPFC_NVMET_CTX_RLS,4,4
	.comm	LPFC_NVMET_ABORT_OP,4,4
	.comm	LPFC_IO_NVMET,4,4
	.comm	LOG_NVME_IOERR,4,4
	.comm	LOG_NVME_ABTS,4,4
	.comm	KERN_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
