	.file	"extr_lpfc_els.c_lpfc_adisc_done.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lpfc_adisc_done, @function
lpfc_adisc_done:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	call	lpfc_shost_from_vport@PLT
	mov	rdi, QWORD PTR 32[rbp]
	mov	rbx, rax
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR LPFC_SLI3_NPIV_ENABLED[rip], eax
	je	.L2
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR FC_RSCN_MODE[rip], eax
	jne	.L2
	mov	rax, QWORD PTR LPFC_SLI_REV4[rip]
	cmp	QWORD PTR 8[rdi], rax
	jl	.L16
.L2:
	mov	rax, QWORD PTR LPFC_VPORT_READY[rip]
	cmp	QWORD PTR 8[rbp], rax
	jge	.L3
	mov	rsi, rbp
	call	lpfc_issue_clear_la@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR FC_ABORT_DISCOVERY[rip], eax
	jne	.L5
	cmp	QWORD PTR 24[rbp], 0
	mov	QWORD PTR 16[rbp], 0
	jne	.L6
.L7:
	mov	edi, DWORD PTR [rbx]
	call	spin_lock_irq@PLT
	mov	eax, DWORD PTR FC_NDISC_ACTIVE[rip]
	mov	edi, DWORD PTR [rbx]
	not	eax
	and	DWORD PTR 0[rbp], eax
	call	spin_unlock_irq@PLT
	mov	rdi, rbp
	call	lpfc_can_disctmo@PLT
	mov	rdi, rbp
	call	lpfc_end_rscn@PLT
.L5:
	mov	rax, QWORD PTR LPFC_VPORT_READY[rip]
	mov	QWORD PTR 8[rbp], rax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	lpfc_rscn_disc@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	lpfc_els_disc_plogi@PLT
	cmp	QWORD PTR 16[rbp], 0
	jne	.L5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rsi, rbp
	mov	QWORD PTR 8[rsp], rdi
	call	lpfc_issue_clear_la@PLT
	mov	rdi, QWORD PTR 8[rsp]
	add	rsp, 24
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	lpfc_issue_reg_vpi@PLT
	.cfi_endproc
.LFE0:
	.size	lpfc_adisc_done, .-lpfc_adisc_done
	.comm	LPFC_VPORT_READY,8,8
	.comm	LPFC_SLI_REV4,8,8
	.comm	LPFC_SLI3_NPIV_ENABLED,4,4
	.comm	FC_RSCN_MODE,4,4
	.comm	FC_NDISC_ACTIVE,4,4
	.comm	FC_ABORT_DISCOVERY,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_els.c_lpfc_adisc_done.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_adisc_done, %function
lpfc_adisc_done:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	lpfc_shost_from_vport
	ldr	r5, [r4, #16]
	ldr	r3, .L20
	ldr	r2, [r5]
	ldr	r3, [r3]
	mov	r7, r0
	tst	r2, r3
	beq	.L2
	ldr	r3, .L20+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L2
	ldr	r3, .L20+8
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L19
.L2:
	ldr	r6, .L20+12
	ldr	r2, [r4, #4]
	ldr	r3, [r6]
	cmp	r2, r3
	bge	.L3
	mov	r0, r5
	mov	r1, r4
	bl	lpfc_issue_clear_la
	ldr	r2, .L20+16
	ldr	r3, [r4]
	ldr	r2, [r2]
	ands	r3, r3, r2
	bne	.L5
	ldr	r2, [r4, #12]
	str	r3, [r4, #8]
	cmp	r2, #0
	bne	.L6
.L7:
	ldr	r0, [r7]
	bl	spin_lock_irq
	ldr	r2, .L20+20
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r0, [r7]
	bic	r3, r3, r2
	str	r3, [r4]
	bl	spin_unlock_irq
	mov	r0, r4
	bl	lpfc_can_disctmo
	mov	r0, r4
	bl	lpfc_end_rscn
.L5:
	ldr	r3, [r6]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	lpfc_rscn_disc
.L6:
	mov	r0, r4
	bl	lpfc_els_disc_plogi
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L5
	b	.L7
.L19:
	mov	r1, r4
	mov	r0, r5
	bl	lpfc_issue_clear_la
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	lpfc_issue_reg_vpi
.L21:
	.align	2
.L20:
	.word	LPFC_SLI3_NPIV_ENABLED
	.word	FC_RSCN_MODE
	.word	LPFC_SLI_REV4
	.word	LPFC_VPORT_READY
	.word	FC_ABORT_DISCOVERY
	.word	FC_NDISC_ACTIVE
	.size	lpfc_adisc_done, .-lpfc_adisc_done
	.comm	LPFC_VPORT_READY,4,4
	.comm	LPFC_SLI_REV4,4,4
	.comm	LPFC_SLI3_NPIV_ENABLED,4,4
	.comm	FC_RSCN_MODE,4,4
	.comm	FC_NDISC_ACTIVE,4,4
	.comm	FC_ABORT_DISCOVERY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
