	.file	"extr_lpfc_hbadisc.c_lpfc_dev_loss_tmo_callbk.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"rport devlosscb: sid:x%x did:x%x flg:x%x"
	.align 8
.LC1:
	.string	"3181 dev_loss_callbk x%06x, rport x%px flg x%x\n"
	.align 8
.LC2:
	.string	"6789 rport name %llx != node port name %llx"
	.align 8
.LC3:
	.string	"6790 rport name %llx dev_loss_evt pending"
	.text
	.p2align 4
	.globl	lpfc_dev_loss_tmo_callbk
	.type	lpfc_dev_loss_tmo_callbk, @function
lpfc_dev_loss_tmo_callbk:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR 16[rdi]
	mov	rbp, QWORD PTR [r12]
	test	rbp, rbp
	je	.L1
	mov	rbx, rdi
	mov	rdi, rbp
	call	NLP_CHK_NODE_ACT@PLT
	test	eax, eax
	jne	.L21
.L1:
	add	rsp, 8
	.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
.L21:
	.cfi_restore_state
	mov	r13, QWORD PTR 56[rbp]
	mov	ecx, DWORD PTR 64[rbp]
	lea	rdx, .LC0[rip]
	mov	r9d, DWORD PTR 8[rbp]
	mov	r8d, DWORD PTR 48[rbp]
	mov	esi, DWORD PTR LPFC_DISC_TRC_RPORT[rip]
	mov	rdi, r13
	mov	r14, QWORD PTR 8[r13]
	call	lpfc_debugfs_disc_trc@PLT
	mov	eax, DWORD PTR 8[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	r9, QWORD PTR 40[rbp]
	movsx	r8, DWORD PTR 48[rbp]
	mov	rdi, QWORD PTR 56[rbp]
	lea	rcx, .LC1[rip]
	mov	edx, DWORD PTR LOG_NODE[rip]
	mov	esi, DWORD PTR KERN_INFO[rip]
	push	rax
	.cfi_def_cfa_offset 80
	xor	eax, eax
	call	lpfc_printf_vlog@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	mov	eax, DWORD PTR 0[r13]
	pop	rcx
	.cfi_def_cfa_offset 64
	test	DWORD PTR FC_UNLOADING[rip], eax
	jne	.L22
	mov	rax, QWORD PTR NLP_STE_MAPPED_NODE[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L1
	mov	edi, DWORD PTR 32[rbp]
	mov	r12, QWORD PTR [rbx]
	call	wwn_to_u64@PLT
	cmp	r12, rax
	je	.L7
	mov	edi, DWORD PTR 32[rbp]
	call	wwn_to_u64@PLT
	mov	r8, QWORD PTR [rbx]
	mov	rdi, r13
	mov	edx, DWORD PTR LOG_NODE[rip]
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	r9, rax
	lea	rcx, .LC2[rip]
	xor	eax, eax
	call	lpfc_printf_vlog@PLT
.L7:
	lea	r15, 16[rbp]
	mov	rdi, r15
	call	list_empty@PLT
	test	eax, eax
	je	.L23
	mov	rdi, r13
	xor	r12d, r12d
	call	lpfc_shost_from_vport@PLT
	mov	rsi, r12
	mov	rdi, QWORD PTR [rax]
	mov	rbx, rax
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR NLP_IN_DEV_LOSS[rip]
	or	DWORD PTR 8[rbp], eax
	mov	rsi, r12
	mov	rdi, QWORD PTR [rbx]
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbp
	call	lpfc_nlp_get@PLT
	mov	rsi, r12
	mov	rdi, r14
	mov	QWORD PTR 24[rbp], rax
	call	spin_lock_irqsave@PLT
	cmp	QWORD PTR 24[rbp], 0
	jne	.L24
.L9:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	r12d, r12d
	mov	rdi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rsi, r12
	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
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rax, QWORD PTR [r12]
	mov	r13, QWORD PTR 40[rbp]
	mov	QWORD PTR [r12], 0
	mov	QWORD PTR 40[rbp], 0
	test	rax, rax
	je	.L6
	mov	rdi, rbp
	call	lpfc_nlp_put@PLT
.L6:
	test	r13, r13
	je	.L1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	rdi, 8[rbx]
	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
	jmp	put_device@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	r8, QWORD PTR [rbx]
	mov	edx, DWORD PTR LOG_NODE[rip]
	mov	rdi, r13
	lea	rcx, .LC3[rip]
	mov	esi, DWORD PTR KERN_ERR[rip]
	add	rsp, 8
	.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
	jmp	lpfc_printf_vlog@PLT
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	eax, DWORD PTR LPFC_EVT_DEV_LOSS[rip]
	mov	rdi, r15
	lea	rsi, 4[r14]
	mov	DWORD PTR 20[rbp], eax
	call	list_add_tail@PLT
	mov	rdi, r14
	call	lpfc_worker_wake_up@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	lpfc_dev_loss_tmo_callbk, .-lpfc_dev_loss_tmo_callbk
	.comm	NLP_STE_MAPPED_NODE,8,8
	.comm	NLP_IN_DEV_LOSS,4,4
	.comm	LPFC_EVT_DEV_LOSS,4,4
	.comm	LPFC_DISC_TRC_RPORT,4,4
	.comm	LOG_NODE,4,4
	.comm	KERN_INFO,4,4
	.comm	KERN_ERR,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_dev_loss_tmo_callbk.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rport devlosscb: sid:x%x did:x%x flg:x%x\000"
	.align	2
.LC1:
	.ascii	"3181 dev_loss_callbk x%06x, rport x%px flg x%x\012\000"
	.align	2
.LC2:
	.ascii	"6789 rport name %llx != node port name %llx\000"
	.align	2
.LC3:
	.ascii	"6790 rport name %llx dev_loss_evt pending\000"
	.text
	.align	2
	.global	lpfc_dev_loss_tmo_callbk
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_dev_loss_tmo_callbk, %function
lpfc_dev_loss_tmo_callbk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [r0, #8]
	sub	sp, sp, #20
	ldr	r4, [r6]
	cmp	r4, #0
	beq	.L1
	mov	r5, r0
	mov	r0, r4
	bl	NLP_CHK_NODE_ACT
	cmp	r0, #0
	bne	.L24
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r7, [r4, #32]
	ldr	r2, [r4, #4]
	ldr	r3, [r4, #36]
	ldr	r9, [r7, #4]
	str	r2, [sp, #4]
	ldr	r1, [r4, #28]
	ldr	r2, .L28
	str	r1, [sp]
	ldr	r1, [r2]
	mov	r0, r7
	ldr	r2, .L28+4
	bl	lpfc_debugfs_disc_trc
	ldr	r3, [r4, #4]
	ldr	r0, [r4, #32]
	str	r3, [sp, #8]
	ldr	r3, [r4, #24]
	ldr	r8, .L28+8
	str	r3, [sp, #4]
	ldr	r2, [r4, #28]
	ldr	r3, .L28+12
	str	r2, [sp]
	ldr	r1, [r3]
	ldr	r2, [r8]
	ldr	r3, .L28+16
	bl	lpfc_printf_vlog
	ldr	r3, .L28+20
	ldr	r2, [r7]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L25
	ldr	r3, .L28+24
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L1
	ldr	r0, [r4, #20]
	ldr	r6, [r5]
	bl	wwn_to_u64
	cmp	r6, r0
	beq	.L7
	ldr	r3, .L28+28
	ldr	r0, [r4, #20]
	ldr	fp, [r3]
	ldr	r6, [r8]
	ldr	r10, [r5]
	bl	wwn_to_u64
	mov	r1, fp
	str	r0, [sp, #4]
	mov	r2, r6
	mov	r0, r7
	ldr	r3, .L28+32
	str	r10, [sp]
	bl	lpfc_printf_vlog
.L7:
	add	r6, r4, #8
	mov	r0, r6
	bl	list_empty
	cmp	r0, #0
	beq	.L26
	mov	r0, r7
	bl	lpfc_shost_from_vport
	mov	r7, #0
	mov	r5, r0
	mov	r1, r7
	ldr	r0, [r0]
	bl	spin_lock_irqsave
	ldr	r2, .L28+36
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	mov	r1, r7
	orr	r3, r3, r2
	ldr	r0, [r5]
	str	r3, [r4, #4]
	bl	spin_unlock_irqrestore
	mov	r0, r4
	bl	lpfc_nlp_get
	mov	r1, r7
	str	r0, [r4, #16]
	mov	r0, r9
	bl	spin_lock_irqsave
	ldr	r3, [r4, #16]
	cmp	r3, r7
	bne	.L27
.L9:
	mov	r0, r9
	mov	r1, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	spin_unlock_irqrestore
.L25:
	mov	r3, #0
	ldr	r2, [r6]
	ldr	r7, [r4, #24]
	cmp	r2, r3
	str	r3, [r6]
	str	r3, [r4, #24]
	beq	.L6
	mov	r0, r4
	bl	lpfc_nlp_put
.L6:
	cmp	r7, #0
	beq	.L1
	add	r0, r5, #4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	put_device
.L26:
	ldr	r2, [r5]
	ldr	r3, .L28+28
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r0, r7
	ldr	r2, [r8]
	ldr	r3, .L28+40
	bl	lpfc_printf_vlog
	b	.L1
.L27:
	ldr	r3, .L28+44
	mov	r0, r6
	ldr	r3, [r3]
	add	r1, r9, #4
	str	r3, [r4, #12]
	bl	list_add_tail
	mov	r0, r9
	bl	lpfc_worker_wake_up
	b	.L9
.L29:
	.align	2
.L28:
	.word	LPFC_DISC_TRC_RPORT
	.word	.LC0
	.word	LOG_NODE
	.word	KERN_INFO
	.word	.LC1
	.word	FC_UNLOADING
	.word	NLP_STE_MAPPED_NODE
	.word	KERN_ERR
	.word	.LC2
	.word	NLP_IN_DEV_LOSS
	.word	.LC3
	.word	LPFC_EVT_DEV_LOSS
	.size	lpfc_dev_loss_tmo_callbk, .-lpfc_dev_loss_tmo_callbk
	.comm	NLP_STE_MAPPED_NODE,4,4
	.comm	NLP_IN_DEV_LOSS,4,4
	.comm	LPFC_EVT_DEV_LOSS,4,4
	.comm	LPFC_DISC_TRC_RPORT,4,4
	.comm	LOG_NODE,4,4
	.comm	KERN_INFO,4,4
	.comm	KERN_ERR,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
