	.file	"extr_qla_init.c_qla2x00_update_fcport.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qla2x00_update_fcport
	.type	qla2x00_update_fcport, @function
qla2x00_update_fcport:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	QWORD PTR 16[rsi], rdi
	mov	edi, DWORD PTR [rdi]
	call	IS_QLAFX00@PLT
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR FCF_LOGIN_NEEDED[rip]
	or	eax, DWORD PTR FCF_ASYNC_SENT[rip]
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, rbp
	not	eax
	and	DWORD PTR 0[rbp], eax
	mov	esi, DWORD PTR FCS_ONLINE[rip]
	call	qla2x00_set_fcport_state@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	qla2x00_iidma_fcport@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	qla24xx_update_fcport_fcp_prio@PLT
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	qla2x00_reg_remote_port@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR FCS_ONLINE[rip]
	mov	rdi, rbp
	call	qla2x00_set_fcport_state@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	qla2x00_update_fcport, .-qla2x00_update_fcport
	.comm	FCS_ONLINE,4,4
	.comm	FCF_LOGIN_NEEDED,4,4
	.comm	FCF_ASYNC_SENT,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_qla_init.c_qla2x00_update_fcport.c"
	.text
	.align	2
	.global	qla2x00_update_fcport
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla2x00_update_fcport, %function
qla2x00_update_fcport:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0]
	str	r5, [r1, #8]
	mov	r4, r1
	bl	IS_QLAFX00
	subs	r3, r0, #0
	bne	.L5
	ldr	r2, .L6
	ldr	r1, .L6+4
	ldr	r0, [r2]
	ldr	r1, [r1]
	ldr	r2, [r4]
	orr	r1, r1, r0
	ldr	r0, .L6+8
	bic	r2, r2, r1
	stm	r4, {r2, r3}
	ldr	r1, [r0]
	mov	r0, r4
	bl	qla2x00_set_fcport_state
	mov	r1, r4
	mov	r0, r5
	bl	qla2x00_iidma_fcport
	mov	r1, r4
	mov	r0, r5
	bl	qla24xx_update_fcport_fcp_prio
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	qla2x00_reg_remote_port
.L5:
	ldr	r3, .L6+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	qla2x00_set_fcport_state
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	qla2x00_reg_remote_port
.L7:
	.align	2
.L6:
	.word	FCF_ASYNC_SENT
	.word	FCF_LOGIN_NEEDED
	.word	FCS_ONLINE
	.size	qla2x00_update_fcport, .-qla2x00_update_fcport
	.comm	FCS_ONLINE,4,4
	.comm	FCF_LOGIN_NEEDED,4,4
	.comm	FCF_ASYNC_SENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
