	.file	"extr_lpfc_hbadisc.c_lpfc_mbx_cmpl_unreg_vpi.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"0911 cmpl_unreg_vpi, mb status = 0x%x\n"
	.align 8
.LC1:
	.string	"2798 Unreg_vpi failed vpi 0x%x, mb status = 0x%x\n"
	.text
	.p2align 4
	.type	lpfc_mbx_cmpl_unreg_vpi, @function
lpfc_mbx_cmpl_unreg_vpi:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rsi]
	mov	rdi, rbx
	call	lpfc_shost_from_vport@PLT
	mov	r8d, DWORD PTR 8[rbp]
	mov	r12, rax
	cmp	r8d, 32
	je	.L2
	cmp	r8d, 38656
	je	.L3
	cmp	r8d, 17
	je	.L2
.L4:
	mov	edi, DWORD PTR [r12]
	call	spin_lock_irq@PLT
	mov	eax, DWORD PTR LPFC_VPI_REGISTERED[rip]
	mov	edi, DWORD PTR [r12]
	not	eax
	and	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR FC_VPORT_NEEDS_REG_VPI[rip]
	or	DWORD PTR 8[rbx], eax
	call	spin_unlock_irq@PLT
	mov	eax, DWORD PTR VPORT_OK[rip]
	mov	esi, DWORD PTR 8[r13]
	mov	rdi, rbp
	mov	DWORD PTR 4[rbx], eax
	call	mempool_free@PLT
	xor	esi, esi
	mov	rdi, rbx
	call	lpfc_cleanup_vports_rrqs@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR FC_UNLOADING[rip], eax
	je	.L1
	cmp	QWORD PTR 0[r13], rbx
	je	.L1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	scsi_host_put@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r8d, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR LOG_NODE[rip]
	mov	rdi, rbx
	xor	eax, eax
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	r9d, 38656
	lea	rcx, .LC1[rip]
	call	lpfc_printf_vlog@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR FC_UNLOADING[rip], eax
	jne	.L4
	mov	ecx, DWORD PTR LPFC_EVT_RESET_HBA[rip]
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r13
	call	lpfc_workq_post_event@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR LOG_NODE[rip]
	mov	esi, DWORD PTR KERN_INFO[rip]
	mov	rdi, rbx
	xor	eax, eax
	lea	rcx, .LC0[rip]
	call	lpfc_printf_vlog@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	lpfc_mbx_cmpl_unreg_vpi, .-lpfc_mbx_cmpl_unreg_vpi
	.comm	VPORT_OK,4,4
	.comm	LPFC_VPI_REGISTERED,4,4
	.comm	LPFC_EVT_RESET_HBA,4,4
	.comm	LOG_NODE,4,4
	.comm	KERN_INFO,4,4
	.comm	KERN_ERR,4,4
	.comm	FC_VPORT_NEEDS_REG_VPI,4,4
	.comm	FC_UNLOADING,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_hbadisc.c_lpfc_mbx_cmpl_unreg_vpi.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"0911 cmpl_unreg_vpi, mb status = 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"2798 Unreg_vpi failed vpi 0x%x, mb status = 0x%x\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_mbx_cmpl_unreg_vpi, %function
lpfc_mbx_cmpl_unreg_vpi:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r4, [r1]
	mov	r7, r0
	sub	sp, sp, #8
	mov	r0, r4
	bl	lpfc_shost_from_vport
	ldr	r3, [r5, #4]
	mov	r6, r0
	cmp	r3, #32
	beq	.L2
	cmp	r3, #38656
	beq	.L3
	cmp	r3, #17
	beq	.L2
.L14:
	ldr	r8, .L16
.L4:
	ldr	r0, [r6]
	bl	spin_lock_irq
	ldr	r3, .L16+4
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	ldr	r1, .L16+8
	bic	r2, r2, r3
	ldr	r1, [r1]
	ldr	r3, [r4, #8]
	str	r2, [r4, #12]
	orr	r3, r3, r1
	str	r3, [r4, #8]
	ldr	r0, [r6]
	bl	spin_unlock_irq
	ldr	r3, .L16+12
	ldr	r1, [r7, #4]
	ldr	r3, [r3]
	mov	r0, r5
	str	r3, [r4, #4]
	bl	mempool_free
	mov	r1, #0
	mov	r0, r4
	bl	lpfc_cleanup_vports_rrqs
	ldr	r3, [r8]
	ldr	r2, [r4]
	tst	r2, r3
	beq	.L1
	ldr	r3, [r7]
	cmp	r3, r4
	beq	.L1
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	scsi_host_put
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	str	r3, [sp, #4]
	ldr	r1, [r4, #16]
	ldr	r3, .L16+16
	ldr	r2, .L16+20
	str	r1, [sp]
	ldr	r2, [r2]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L16+24
	bl	lpfc_printf_vlog
	ldr	r8, .L16
	ldr	r2, [r7]
	ldr	r3, [r8]
	ldr	r2, [r2]
	ands	r2, r2, r3
	bne	.L4
	ldr	r3, .L16+28
	mov	r1, r2
	mov	r0, r7
	ldr	r3, [r3]
	bl	lpfc_workq_post_event
	b	.L4
.L2:
	ldr	r2, .L16+20
	ldr	r1, .L16+32
	str	r3, [sp]
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r3, .L16+36
	bl	lpfc_printf_vlog
	b	.L14
.L17:
	.align	2
.L16:
	.word	FC_UNLOADING
	.word	LPFC_VPI_REGISTERED
	.word	FC_VPORT_NEEDS_REG_VPI
	.word	VPORT_OK
	.word	KERN_ERR
	.word	LOG_NODE
	.word	.LC1
	.word	LPFC_EVT_RESET_HBA
	.word	KERN_INFO
	.word	.LC0
	.size	lpfc_mbx_cmpl_unreg_vpi, .-lpfc_mbx_cmpl_unreg_vpi
	.comm	VPORT_OK,4,4
	.comm	LPFC_VPI_REGISTERED,4,4
	.comm	LPFC_EVT_RESET_HBA,4,4
	.comm	LOG_NODE,4,4
	.comm	KERN_INFO,4,4
	.comm	KERN_ERR,4,4
	.comm	FC_VPORT_NEEDS_REG_VPI,4,4
	.comm	FC_UNLOADING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
