	.file	"extr_lpfc_hbadisc.c_lpfc_init_vpi_cmpl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"2609 Init VPI mailbox failed 0x%x\n"
	.align 8
.LC1:
	.string	"2731 Cannot find fabric controller node\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"2606 No NPIV Fabric support\n"
	.text
	.p2align 4
	.globl	lpfc_init_vpi_cmpl
	.type	lpfc_init_vpi_cmpl, @function
lpfc_init_vpi_cmpl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 8[rsi]
	mov	rdi, rbp
	call	lpfc_shost_from_vport@PLT
	mov	r8, QWORD PTR [r12]
	test	r8, r8
	jne	.L11
	mov	edi, DWORD PTR [rax]
	mov	r13, rax
	call	spin_lock_irq@PLT
	mov	eax, DWORD PTR FC_VPORT_NEEDS_INIT_VPI[rip]
	mov	edi, DWORD PTR 0[r13]
	not	eax
	and	DWORD PTR 8[rbp], eax
	call	spin_unlock_irq@PLT
	cmp	QWORD PTR 8[rbx], rbp
	je	.L3
	mov	rax, QWORD PTR LPFC_FDISC[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L3
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR LS_NPIV_FAB_SUPPORTED[rip], eax
	je	.L7
	mov	rdi, rbp
	call	lpfc_initial_fdisc@PLT
.L8:
	mov	esi, DWORD PTR 4[rbx]
	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	mempool_free@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, DWORD PTR LOG_MBOX[rip]
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rcx, .LC0[rip]
	call	lpfc_printf_vlog@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, r12
	call	mempool_free@PLT
	mov	esi, DWORD PTR FC_VPORT_FAILED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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	lpfc_vport_set_state@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR FC_VPORT_NO_FABRIC_SUPP[rip]
	mov	rdi, rbp
	call	lpfc_vport_set_state@PLT
	mov	edx, DWORD PTR LOG_ELS[rip]
	mov	rdi, rbp
	xor	eax, eax
	mov	esi, DWORD PTR KERN_ERR[rip]
	lea	rcx, .LC2[rip]
	call	lpfc_printf_vlog@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR Fabric_DID[rip]
	mov	rdi, rbp
	call	lpfc_findnode_did@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L12
	mov	rsi, rbp
	mov	rdi, rbx
	call	lpfc_register_new_vport@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, DWORD PTR LOG_DISCOVERY[rip]
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rcx, .LC1[rip]
	call	lpfc_printf_vlog@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	lpfc_init_vpi_cmpl, .-lpfc_init_vpi_cmpl
	.comm	LS_NPIV_FAB_SUPPORTED,4,4
	.comm	LPFC_FDISC,8,8
	.comm	LOG_MBOX,4,4
	.comm	LOG_ELS,4,4
	.comm	LOG_DISCOVERY,4,4
	.comm	KERN_ERR,4,4
	.comm	Fabric_DID,4,4
	.comm	FC_VPORT_NO_FABRIC_SUPP,4,4
	.comm	FC_VPORT_NEEDS_INIT_VPI,4,4
	.comm	FC_VPORT_FAILED,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_init_vpi_cmpl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"2609 Init VPI mailbox failed 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"2731 Cannot find fabric controller node\012\000"
	.align	2
.LC2:
	.ascii	"2606 No NPIV Fabric support\012\000"
	.text
	.align	2
	.global	lpfc_init_vpi_cmpl
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_init_vpi_cmpl, %function
lpfc_init_vpi_cmpl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r1
	ldr	r4, [r1, #4]
	mov	r6, r0
	sub	sp, sp, #12
	mov	r0, r4
	bl	lpfc_shost_from_vport
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L11
	mov	r7, r0
	ldr	r0, [r0]
	bl	spin_lock_irq
	ldr	r2, .L13
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r0, [r7]
	bic	r3, r3, r2
	str	r3, [r4, #4]
	bl	spin_unlock_irq
	ldr	r3, [r6, #8]
	cmp	r3, r4
	beq	.L3
	ldr	r3, .L13+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
	ldr	r3, .L13+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L7
	mov	r0, r4
	bl	lpfc_initial_fdisc
.L8:
	mov	r0, r5
	ldr	r1, [r6, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	mempool_free
.L11:
	ldr	r2, .L13+12
	ldr	r1, .L13+16
	str	r3, [sp]
	ldr	r2, [r2]
	ldr	r3, .L13+20
	mov	r0, r4
	ldr	r1, [r1]
	bl	lpfc_printf_vlog
	ldr	r1, [r6, #4]
	mov	r0, r5
	bl	mempool_free
	mov	r0, r4
	ldr	r3, .L13+24
	ldr	r1, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	lpfc_vport_set_state
.L7:
	ldr	r3, .L13+28
	mov	r0, r4
	ldr	r1, [r3]
	bl	lpfc_vport_set_state
	ldr	r3, .L13+16
	ldr	r2, .L13+32
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r3, .L13+36
	bl	lpfc_printf_vlog
	b	.L8
.L3:
	ldr	r3, .L13+40
	mov	r0, r4
	ldr	r1, [r3]
	bl	lpfc_findnode_did
	subs	r2, r0, #0
	beq	.L12
	mov	r1, r4
	mov	r0, r6
	bl	lpfc_register_new_vport
	b	.L8
.L12:
	ldr	r3, .L13+16
	ldr	r2, .L13+44
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r3, .L13+48
	bl	lpfc_printf_vlog
	b	.L8
.L14:
	.align	2
.L13:
	.word	FC_VPORT_NEEDS_INIT_VPI
	.word	LPFC_FDISC
	.word	LS_NPIV_FAB_SUPPORTED
	.word	LOG_MBOX
	.word	KERN_ERR
	.word	.LC0
	.word	FC_VPORT_FAILED
	.word	FC_VPORT_NO_FABRIC_SUPP
	.word	LOG_ELS
	.word	.LC2
	.word	Fabric_DID
	.word	LOG_DISCOVERY
	.word	.LC1
	.size	lpfc_init_vpi_cmpl, .-lpfc_init_vpi_cmpl
	.comm	LS_NPIV_FAB_SUPPORTED,4,4
	.comm	LPFC_FDISC,4,4
	.comm	LOG_MBOX,4,4
	.comm	LOG_ELS,4,4
	.comm	LOG_DISCOVERY,4,4
	.comm	KERN_ERR,4,4
	.comm	Fabric_DID,4,4
	.comm	FC_VPORT_NO_FABRIC_SUPP,4,4
	.comm	FC_VPORT_NEEDS_INIT_VPI,4,4
	.comm	FC_VPORT_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
