	.file	"extr_lpfc_sli.c_lpfc_sli_def_mbox_cmpl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"1438 UNREG cmpl deferred mbox x%x on NPort x%x Data: x%x x%x %px\n"
	.align 8
.LC1:
	.string	"2860 SLI authentication is required for INIT_LINK but has not done yet\n"
	.text
	.p2align 4
	.globl	lpfc_sli_def_mbox_cmpl
	.type	lpfc_sli_def_mbox_cmpl, @function
lpfc_sli_def_mbox_cmpl:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 56[rsi]
	mov	r14, QWORD PTR 64[rsi]
	test	r12, r12
	je	.L2
	mov	esi, DWORD PTR 4[r12]
	mov	edx, DWORD PTR [r12]
	call	lpfc_mbuf_free@PLT
	mov	rdi, r12
	call	kfree@PLT
.L2:
	mov	rdx, QWORD PTR MBX_REG_LOGIN64[rip]
	mov	rax, QWORD PTR 16[rbp]
	mov	rcx, QWORD PTR 8[r13]
	mov	rdi, rdx
	mov	rsi, rax
	mov	ecx, DWORD PTR [rcx]
	test	DWORD PTR FC_UNLOADING[rip], ecx
	jne	.L3
	cmp	rax, rdx
	je	.L33
	cmp	rax, QWORD PTR MBX_REG_VPI[rip]
	je	.L8
.L10:
	cmp	QWORD PTR MBX_UNREG_LOGIN[rip], rax
	je	.L34
.L11:
	cmp	QWORD PTR MBX_INIT_LINK[rip], rax
	je	.L35
.L14:
	mov	edi, DWORD PTR lpfc_mqe_command[rip]
	lea	rsi, 8[rbp]
	call	bf_get@PLT
	cmp	rax, QWORD PTR MBX_SLI4_CONFIG[rip]
	je	.L36
	mov	esi, DWORD PTR 0[r13]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	mempool_free@PLT
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	cmp	QWORD PTR 24[rbp], 0
	je	.L37
	cmp	rax, QWORD PTR MBX_REG_VPI[rip]
	jne	.L17
.L16:
	mov	rax, rsi
	mov	rdx, rdi
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	rax, rdx
	jne	.L10
.L17:
	mov	rdi, QWORD PTR 48[rbp]
	call	lpfc_nlp_put@PLT
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR MBX_INIT_LINK[rip], rax
	mov	QWORD PTR 56[rbp], 0
	mov	QWORD PTR 48[rbp], 0
	jne	.L14
.L35:
	mov	rax, QWORD PTR MBXERR_SEC_NO_PERMISSION[rip]
	cmp	QWORD PTR 24[rbp], rax
	jne	.L14
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	edx, DWORD PTR LOG_MBOX[rip]
	lea	rcx, .LC1[rip]
	mov	rdi, r13
	or	edx, DWORD PTR LOG_SLI[rip]
	call	lpfc_printf_log@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L36:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	mov	rdi, r13
	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
	jmp	lpfc_sli4_mbox_cmd_free@PLT
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_restore_state
	mov	r12, QWORD PTR 48[rbp]
	test	r12, r12
	je	.L11
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r9d, DWORD PTR 16[r12]
	mov	rdi, r14
	mov	r8d, DWORD PTR 20[r12]
	push	r12
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR KERN_INFO[rip]
	lea	rcx, .LC0[rip]
	push	QWORD PTR 8[r12]
	.cfi_def_cfa_offset 72
	mov	eax, DWORD PTR [r12]
	mov	edx, DWORD PTR LOG_MBOX[rip]
	push	rax
	.cfi_def_cfa_offset 80
	or	edx, DWORD PTR LOG_DISCOVERY[rip]
	call	lpfc_printf_vlog@PLT
	mov	edx, DWORD PTR [r12]
	mov	eax, DWORD PTR NLP_UNREG_INP[rip]
	add	rsp, 32
	.cfi_def_cfa_offset 48
	test	edx, eax
	je	.L12
	mov	rcx, QWORD PTR NLP_EVT_NOTHING_PENDING[rip]
	cmp	QWORD PTR 8[r12], rcx
	je	.L12
	not	eax
	mov	QWORD PTR 8[r12], rcx
	mov	esi, DWORD PTR 16[r12]
	mov	rdi, r14
	and	eax, edx
	xor	edx, edx
	mov	DWORD PTR [r12], eax
	call	lpfc_issue_els_plogi@PLT
.L13:
	mov	QWORD PTR 48[rbp], 0
	mov	rax, QWORD PTR 16[rbp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rax, QWORD PTR 40[rbp]
	mov	esi, DWORD PTR 32[rbp]
	mov	rcx, rbp
	mov	rdi, r13
	mov	edx, DWORD PTR [rax]
	call	lpfc_unreg_login@PLT
	mov	QWORD PTR 64[rbp], r14
	mov	rsi, rbp
	mov	rdi, r13
	lea	rax, lpfc_sli_def_mbox_cmpl[rip]
	mov	edx, DWORD PTR MBX_NOWAIT[rip]
	mov	QWORD PTR 0[rbp], rax
	call	lpfc_sli_issue_mbox@PLT
	cmp	DWORD PTR MBX_NOT_FINISHED[rip], eax
	jne	.L1
	mov	rax, QWORD PTR 16[rbp]
	cmp	rax, QWORD PTR MBX_REG_VPI[rip]
	mov	rsi, rax
	jne	.L31
	mov	rdx, QWORD PTR 8[r13]
	mov	edx, DWORD PTR [rdx]
	test	DWORD PTR FC_UNLOADING[rip], edx
	jne	.L31
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	QWORD PTR 24[rbp], 0
	jne	.L38
	mov	rdi, r14
	call	lpfc_shost_from_vport@PLT
	mov	edi, DWORD PTR [rax]
	mov	r12, rax
	call	spin_lock_irq@PLT
	mov	eax, DWORD PTR LPFC_VPI_REGISTERED[rip]
	or	DWORD PTR 4[r14], eax
	mov	eax, DWORD PTR FC_VPORT_NEEDS_REG_VPI[rip]
	mov	edi, DWORD PTR [r12]
	not	eax
	and	DWORD PTR [r14], eax
	call	spin_unlock_irq@PLT
	mov	rax, QWORD PTR 16[rbp]
.L31:
	mov	rdx, QWORD PTR MBX_REG_LOGIN64[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, r12
	mov	rdi, r14
	call	__lpfc_sli_rpi_release@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.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
.L38:
	.cfi_restore_state
	mov	rdi, QWORD PTR MBX_REG_LOGIN64[rip]
	jmp	.L16
	.cfi_endproc
.LFE0:
	.size	lpfc_sli_def_mbox_cmpl, .-lpfc_sli_def_mbox_cmpl
	.comm	lpfc_mqe_command,4,4
	.comm	NLP_UNREG_INP,4,4
	.comm	NLP_EVT_NOTHING_PENDING,8,8
	.comm	MBX_UNREG_LOGIN,8,8
	.comm	MBX_SLI4_CONFIG,8,8
	.comm	MBX_REG_VPI,8,8
	.comm	MBX_REG_LOGIN64,8,8
	.comm	MBX_NOWAIT,4,4
	.comm	MBX_NOT_FINISHED,4,4
	.comm	MBX_INIT_LINK,8,8
	.comm	MBXERR_SEC_NO_PERMISSION,8,8
	.comm	LPFC_VPI_REGISTERED,4,4
	.comm	LOG_SLI,4,4
	.comm	LOG_MBOX,4,4
	.comm	LOG_DISCOVERY,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_sli.c_lpfc_sli_def_mbox_cmpl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"1438 UNREG cmpl deferred mbox x%x on NPort x%x Data"
	.ascii	": x%x x%x %px\012\000"
	.align	2
.LC1:
	.ascii	"2860 SLI authentication is required for INIT_LINK b"
	.ascii	"ut has not done yet\012\000"
	.text
	.align	2
	.global	lpfc_sli_def_mbox_cmpl
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_sli_def_mbox_cmpl, %function
lpfc_sli_def_mbox_cmpl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r1, #28]
	mov	r4, r1
	cmp	r6, #0
	mov	r5, r0
	ldr	r8, [r1, #32]
	sub	sp, sp, #24
	beq	.L2
	ldr	r2, [r6]
	ldr	r1, [r6, #4]
	bl	lpfc_mbuf_free
	mov	r0, r6
	bl	kfree
.L2:
	ldr	r3, [r5, #4]
	ldr	r7, .L38
	ldr	r1, [r3]
	ldr	r2, [r7]
	ldr	r6, .L38+4
	ldr	r3, [r4, #8]
	tst	r1, r2
	mov	r1, r3
	ldr	r2, [r6]
	bne	.L3
	cmp	r3, r2
	beq	.L33
	ldr	r2, .L38+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L8
.L10:
	ldr	r2, .L38+12
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L34
.L11:
	ldr	r2, .L38+16
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L35
.L14:
	ldr	r3, .L38+20
	add	r1, r4, #4
	ldr	r0, [r3]
	bl	bf_get
	ldr	r3, .L38+24
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L36
	mov	r0, r4
	ldr	r1, [r5]
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	mempool_free
.L33:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L38+8
	ldr	r3, [r3]
	cmp	r1, r3
	bne	.L17
.L16:
	mov	r3, r1
.L31:
	ldr	r2, [r6]
.L3:
	cmp	r3, r2
	bne	.L10
.L17:
	ldr	r0, [r4, #24]
	bl	lpfc_nlp_put
	mov	r2, #0
	str	r2, [r4, #28]
	str	r2, [r4, #24]
	ldr	r2, .L38+16
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L14
.L35:
	ldr	r3, .L38+28
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L14
	ldr	r2, .L38+32
	ldr	r3, .L38+36
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L38+40
	orr	r2, r1, r2
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r3, .L38+44
	bl	lpfc_printf_log
	b	.L14
.L36:
	mov	r1, r4
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	lpfc_sli4_mbox_cmd_free
.L34:
	ldr	r6, [r4, #24]
	cmp	r6, #0
	beq	.L11
	str	r6, [sp, #16]
	ldr	r3, [r6, #4]
	ldr	r1, .L38+32
	str	r3, [sp, #12]
	ldr	r2, [r6]
	ldr	r3, .L38+48
	str	r2, [sp, #8]
	ldr	r2, [r6, #8]
	ldr	r1, [r1]
	str	r2, [sp, #4]
	ldr	r0, [r6, #12]
	ldr	r2, [r3]
	ldr	r3, .L38+52
	str	r0, [sp]
	orr	r2, r1, r2
	mov	r0, r8
	ldr	r1, [r3]
	ldr	r3, .L38+56
	bl	lpfc_printf_vlog
	ldr	r2, .L38+60
	ldr	r3, [r6]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L12
	ldr	r1, .L38+64
	ldr	r0, [r6, #4]
	ldr	r1, [r1]
	cmp	r0, r1
	beq	.L12
	bic	r3, r3, r2
	str	r1, [r6, #4]
	mov	r0, r8
	mov	r2, #0
	ldr	r1, [r6, #8]
	str	r3, [r6]
	bl	lpfc_issue_els_plogi
.L13:
	mov	r2, #0
	ldr	r3, [r4, #8]
	str	r2, [r4, #24]
	b	.L11
.L37:
	ldr	r2, [r4, #20]
	mov	r3, r4
	ldr	r2, [r2]
	ldr	r1, [r4, #16]
	mov	r0, r5
	bl	lpfc_unreg_login
	ldr	r3, .L38+68
	ldr	r2, .L38+72
	mov	r1, r4
	str	r2, [r4]
	mov	r0, r5
	ldr	r2, [r3]
	str	r8, [r4, #32]
	bl	lpfc_sli_issue_mbox
	ldr	r3, .L38+76
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L1
	ldr	r2, .L38+8
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	mov	r1, r3
	cmp	r3, r2
	bne	.L31
	ldr	r0, [r5, #4]
	ldr	r2, [r7]
	ldr	r0, [r0]
	tst	r0, r2
	bne	.L31
.L8:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L16
	mov	r0, r8
	bl	lpfc_shost_from_vport
	mov	r7, r0
	ldr	r0, [r0]
	bl	spin_lock_irq
	ldr	r3, .L38+80
	ldr	r2, [r8, #4]
	ldr	r3, [r3]
	ldr	r1, .L38+84
	orr	r2, r2, r3
	ldr	r1, [r1]
	ldr	r3, [r8]
	ldr	r0, [r7]
	bic	r3, r3, r1
	str	r2, [r8, #4]
	str	r3, [r8]
	bl	spin_unlock_irq
	ldr	r2, [r6]
	ldr	r3, [r4, #8]
	b	.L3
.L12:
	mov	r1, r6
	mov	r0, r8
	bl	__lpfc_sli_rpi_release
	b	.L13
.L1:
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L39:
	.align	2
.L38:
	.word	FC_UNLOADING
	.word	MBX_REG_LOGIN64
	.word	MBX_REG_VPI
	.word	MBX_UNREG_LOGIN
	.word	MBX_INIT_LINK
	.word	lpfc_mqe_command
	.word	MBX_SLI4_CONFIG
	.word	MBXERR_SEC_NO_PERMISSION
	.word	LOG_MBOX
	.word	LOG_SLI
	.word	KERN_ERR
	.word	.LC1
	.word	LOG_DISCOVERY
	.word	KERN_INFO
	.word	.LC0
	.word	NLP_UNREG_INP
	.word	NLP_EVT_NOTHING_PENDING
	.word	MBX_NOWAIT
	.word	lpfc_sli_def_mbox_cmpl
	.word	MBX_NOT_FINISHED
	.word	LPFC_VPI_REGISTERED
	.word	FC_VPORT_NEEDS_REG_VPI
	.size	lpfc_sli_def_mbox_cmpl, .-lpfc_sli_def_mbox_cmpl
	.comm	lpfc_mqe_command,4,4
	.comm	NLP_UNREG_INP,4,4
	.comm	NLP_EVT_NOTHING_PENDING,4,4
	.comm	MBX_UNREG_LOGIN,4,4
	.comm	MBX_SLI4_CONFIG,4,4
	.comm	MBX_REG_VPI,4,4
	.comm	MBX_REG_LOGIN64,4,4
	.comm	MBX_NOWAIT,4,4
	.comm	MBX_NOT_FINISHED,4,4
	.comm	MBX_INIT_LINK,4,4
	.comm	MBXERR_SEC_NO_PERMISSION,4,4
	.comm	LPFC_VPI_REGISTERED,4,4
	.comm	LOG_SLI,4,4
	.comm	LOG_MBOX,4,4
	.comm	LOG_DISCOVERY,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
