	.file	"extr_lpfc_hbadisc.c_lpfc_nlp_set_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"0904 NPort state transition x%06x, %s -> %s\n"
	.align 8
.LC1:
	.string	"node statechg    did:x%x old:%d ste:%d"
	.text
	.p2align 4
	.globl	lpfc_nlp_set_state
	.type	lpfc_nlp_set_state, @function
lpfc_nlp_set_state:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	lpfc_shost_from_vport@PLT
	mov	r14d, DWORD PTR 0[rbp]
	lea	rdi, 16[rsp]
	mov	edx, r12d
	mov	esi, 16
	mov	r15, rax
	call	lpfc_nlp_state_name@PLT
	mov	rdi, rsp
	mov	edx, r14d
	mov	esi, 16
	mov	ebx, eax
	call	lpfc_nlp_state_name@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r8d, DWORD PTR 16[rbp]
	mov	rdi, r13
	mov	edx, DWORD PTR LOG_NODE[rip]
	mov	esi, DWORD PTR KERN_INFO[rip]
	push	rbx
	.cfi_def_cfa_offset 128
	mov	r9d, eax
	lea	rcx, .LC0[rip]
	call	lpfc_printf_vlog@PLT
	mov	ecx, DWORD PTR 16[rbp]
	mov	r9d, r12d
	mov	r8d, r14d
	mov	esi, DWORD PTR LPFC_DISC_TRC_NODE[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, r13
	call	lpfc_debugfs_disc_trc@PLT
	mov	eax, DWORD PTR NLP_STE_NPR_NODE[rip]
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	cmp	eax, r12d
	je	.L2
	cmp	eax, r14d
	je	.L18
.L2:
	cmp	DWORD PTR NLP_STE_UNMAPPED_NODE[rip], r14d
	jne	.L3
	mov	eax, DWORD PTR NLP_TGT_NO_SCSIID[rip]
	not	eax
	and	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR NLP_FC_NODE[rip]
	not	eax
	and	DWORD PTR 8[rbp], eax
.L3:
	lea	rbx, 4[rbp]
	mov	rdi, rbx
	call	list_empty@PLT
	test	rax, rax
	jne	.L19
	test	r14d, r14d
	jne	.L20
.L5:
	mov	DWORD PTR 0[rbp], r12d
	mov	edx, 1
	mov	esi, r12d
	mov	rdi, r13
	call	lpfc_nlp_counters@PLT
	mov	ecx, r12d
	mov	edx, r14d
	mov	rsi, rbp
	mov	rdi, r13
	call	lpfc_nlp_state_cleanup@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.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
.L20:
	.cfi_restore_state
	mov	edx, -1
	mov	esi, r14d
	mov	rdi, r13
	call	lpfc_nlp_counters@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR [r15]
	call	spin_lock_irq@PLT
	mov	rdi, rbx
	mov	rsi, r13
	call	list_add_tail@PLT
	mov	edi, DWORD PTR [r15]
	call	spin_unlock_irq@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rsi, rbp
	mov	rdi, r13
	call	lpfc_cancel_retry_delay_tmo@PLT
	jmp	.L2
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lpfc_nlp_set_state, .-lpfc_nlp_set_state
	.comm	NLP_TGT_NO_SCSIID,4,4
	.comm	NLP_STE_UNMAPPED_NODE,4,4
	.comm	NLP_STE_NPR_NODE,4,4
	.comm	NLP_FC_NODE,4,4
	.comm	LPFC_DISC_TRC_NODE,4,4
	.comm	LOG_NODE,4,4
	.comm	KERN_INFO,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_nlp_set_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"0904 NPort state transition x%06x, %s -> %s\012\000"
	.align	2
.LC1:
	.ascii	"node statechg    did:x%x old:%d ste:%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lpfc_nlp_set_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_nlp_set_state, %function
lpfc_nlp_set_state:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L19
	sub	sp, sp, #68
	mov	r4, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	mov	r6, r0
	bl	lpfc_shost_from_vport
	mov	r9, r0
	ldr	r7, [r4]
	ldr	lr, .L19+4
	ldr	ip, .L19+8
	mov	r2, r7
	mov	r1, #16
	add	r0, sp, #28
	ldr	r10, [lr]
	ldr	fp, [ip]
	str	r9, [sp, #20]
	ldr	r9, [r4, #16]
	bl	lpfc_nlp_state_name
	mov	r2, r5
	mov	r8, r0
	mov	r1, #16
	add	r0, sp, #44
	bl	lpfc_nlp_state_name
	mov	r2, fp
	mov	r1, r10
	ldr	r3, .L19+12
	str	r0, [sp, #8]
	str	r9, [sp]
	mov	r0, r6
	str	r8, [sp, #4]
	bl	lpfc_printf_vlog
	ldr	r2, .L19+16
	str	r7, [sp]
	str	r5, [sp, #4]
	ldr	r3, [r4, #16]
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, .L19+20
	bl	lpfc_debugfs_disc_trc
	ldr	r3, .L19+24
	ldr	r3, [r3]
	subs	r2, r3, r5
	movne	r2, #1
	cmp	r3, r7
	movne	r2, #0
	cmp	r2, #0
	bne	.L15
.L2:
	ldr	r3, .L19+28
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L3
	ldr	r3, .L19+32
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	ldr	r1, .L19+36
	bic	r2, r2, r3
	ldr	r1, [r1]
	ldr	r3, [r4, #8]
	str	r2, [r4, #12]
	bic	r3, r3, r1
	str	r3, [r4, #8]
.L3:
	add	r8, r4, #4
	mov	r0, r8
	bl	list_empty
	cmp	r0, #0
	bne	.L16
	cmp	r7, #0
	bne	.L17
.L5:
	mov	r2, #1
	mov	r1, r5
	mov	r0, r6
	str	r5, [r4]
	bl	lpfc_nlp_counters
	mov	r3, r5
	mov	r2, r7
	mov	r1, r4
	mov	r0, r6
	bl	lpfc_nlp_state_cleanup
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mvn	r2, #0
	mov	r1, r7
	mov	r0, r6
	bl	lpfc_nlp_counters
	b	.L5
.L16:
	ldr	r9, [sp, #20]
	ldr	r0, [r9]
	bl	spin_lock_irq
	mov	r1, r6
	mov	r0, r8
	bl	list_add_tail
	ldr	r0, [r9]
	bl	spin_unlock_irq
	b	.L5
.L15:
	mov	r1, r4
	mov	r0, r6
	bl	lpfc_cancel_retry_delay_tmo
	b	.L2
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	KERN_INFO
	.word	LOG_NODE
	.word	.LC0
	.word	LPFC_DISC_TRC_NODE
	.word	.LC1
	.word	NLP_STE_NPR_NODE
	.word	NLP_STE_UNMAPPED_NODE
	.word	NLP_TGT_NO_SCSIID
	.word	NLP_FC_NODE
	.size	lpfc_nlp_set_state, .-lpfc_nlp_set_state
	.comm	NLP_TGT_NO_SCSIID,4,4
	.comm	NLP_STE_UNMAPPED_NODE,4,4
	.comm	NLP_STE_NPR_NODE,4,4
	.comm	NLP_FC_NODE,4,4
	.comm	LPFC_DISC_TRC_NODE,4,4
	.comm	LOG_NODE,4,4
	.comm	KERN_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
