	.file	"extr_csio_attr.c_csio_vport_set_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"READY"
	.text
	.p2align 4
	.type	csio_vport_set_state, @function
csio_vport_set_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR 8[rdi]
	mov	r13, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	mov	rsi, r12
	mov	rdi, rbx
	call	csio_lnode_state_to_str@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	strcmp@PLT
	test	rax, rax
	jne	.L9
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR CSIO_LNF_NPIVSUPP[rip], eax
	je	.L11
	mov	rsi, r12
	mov	rdi, rbp
	call	csio_lnode_state_to_str@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	strcmp@PLT
	test	rax, rax
	jne	.L9
	mov	esi, DWORD PTR FC_VPORT_ACTIVE[rip]
	mov	rdi, r13
	call	fc_vport_set_state@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR FC_VPORT_LINKDOWN[rip]
	mov	rdi, r13
	call	fc_vport_set_state@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR FC_VPORT_NO_FABRIC_SUPP[rip]
	mov	rdi, r13
	call	fc_vport_set_state@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	csio_vport_set_state, .-csio_vport_set_state
	.comm	FC_VPORT_NO_FABRIC_SUPP,4,4
	.comm	FC_VPORT_LINKDOWN,4,4
	.comm	FC_VPORT_ACTIVE,4,4
	.comm	CSIO_LNF_NPIVSUPP,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_csio_attr.c_csio_vport_set_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"READY\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	csio_vport_set_state, %function
csio_vport_set_state:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r7, [r0, #4]
	sub	sp, sp, #28
	ldr	r3, .L18
	mov	r0, r7
	add	r1, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r5, [r4, #8]
	bl	csio_lnode_state_to_str
	ldr	r3, .L18+4
	ldr	r6, [sp, #4]
	cmp	r6, r3
	beq	.L15
.L7:
	ldr	r3, .L18+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	fc_vport_set_state
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	ldrh	r3, [sp, #8]
	cmp	r3, #89
	bne	.L7
	ldr	r3, .L18+12
	ldr	r2, [r7]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L17
	mov	r0, r4
	add	r1, sp, #4
	bl	csio_lnode_state_to_str
	ldr	r3, [sp, #4]
	cmp	r3, r6
	bne	.L7
	ldrh	r3, [sp, #8]
	cmp	r3, #89
	bne	.L7
	ldr	r3, .L18+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	fc_vport_set_state
	b	.L1
.L17:
	ldr	r3, .L18+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	fc_vport_set_state
	b	.L1
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	1145128274
	.word	FC_VPORT_LINKDOWN
	.word	CSIO_LNF_NPIVSUPP
	.word	FC_VPORT_ACTIVE
	.word	FC_VPORT_NO_FABRIC_SUPP
	.size	csio_vport_set_state, .-csio_vport_set_state
	.comm	FC_VPORT_NO_FABRIC_SUPP,4,4
	.comm	FC_VPORT_LINKDOWN,4,4
	.comm	FC_VPORT_ACTIVE,4,4
	.comm	CSIO_LNF_NPIVSUPP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
