	.file	"extr_bfad_attr.c_bfad_im_vport_disable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bfad_im_vport_disable, @function
bfad_im_vport_disable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	r13, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	rdi, QWORD PTR [rax]
	call	fc_host_port_name@PLT
	lea	rsi, 4[rsp]
	mov	edi, eax
	call	u64_to_wwn@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	edx, DWORD PTR 4[rsp]
	lea	rdi, 4[r13]
	xor	esi, esi
	call	bfa_fcs_vport_lookup@PLT
	mov	rsi, r14
	mov	rdi, r13
	mov	r12, rax
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR VPCERR_BAD_WWN[rip]
	test	r12, r12
	je	.L1
	mov	rdi, r12
	test	ebx, ebx
	je	.L4
	call	bfa_fcs_vport_stop@PLT
	mov	esi, DWORD PTR FC_VPORT_DISABLED[rip]
	mov	rdi, rbp
	call	fc_vport_set_state@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	call	bfa_fcs_vport_start@PLT
	mov	esi, DWORD PTR FC_VPORT_ACTIVE[rip]
	mov	rdi, rbp
	call	fc_vport_set_state@PLT
	xor	eax, eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bfad_im_vport_disable, .-bfad_im_vport_disable
	.comm	VPCERR_BAD_WWN,4,4
	.comm	FC_VPORT_DISABLED,4,4
	.comm	FC_VPORT_ACTIVE,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_bfad_attr.c_bfad_im_vport_disable.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfad_im_vport_disable, %function
bfad_im_vport_disable:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	ldr	r3, [r0]
	sub	sp, sp, #8
	ldm	r3, {r2, r6}
	ldr	r3, .L11
	mov	r8, r0
	ldr	r0, [r2]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r1
	bl	fc_host_port_name
	mov	r1, sp
	bl	u64_to_wwn
	mov	r1, r7
	mov	r0, r6
	bl	spin_lock_irqsave
	mov	r1, r7
	ldr	r2, [sp]
	add	r0, r6, #4
	bl	bfa_fcs_vport_lookup
	mov	r5, r0
	mov	r1, r7
	mov	r0, r6
	bl	spin_unlock_irqrestore
	cmp	r5, r7
	beq	.L8
	cmp	r4, #0
	mov	r0, r5
	bne	.L9
	bl	bfa_fcs_vport_start
	ldr	r3, .L11+4
	mov	r0, r8
	ldr	r1, [r3]
	bl	fc_vport_set_state
	mov	r0, r4
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	bl	bfa_fcs_vport_stop
	ldr	r3, .L11+8
	mov	r0, r8
	ldr	r1, [r3]
	bl	fc_vport_set_state
	mov	r0, #0
	b	.L1
.L8:
	ldr	r3, .L11+12
	ldr	r0, [r3]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	FC_VPORT_ACTIVE
	.word	FC_VPORT_DISABLED
	.word	VPCERR_BAD_WWN
	.size	bfad_im_vport_disable, .-bfad_im_vport_disable
	.comm	VPCERR_BAD_WWN,4,4
	.comm	FC_VPORT_DISABLED,4,4
	.comm	FC_VPORT_ACTIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
