	.file	"extr_bfad_bsg.c_bfad_iocmd_rport_get_attr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bfad_iocmd_rport_get_attr
	.type	bfad_iocmd_rport_get_attr, @function
bfad_iocmd_rport_get_attr:
.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
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	spin_lock_irqsave@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR 28[rbx]
	lea	rdi, 4[rbp]
	call	bfa_fcs_lookup_port@PLT
	test	rax, rax
	je	.L9
	mov	rdx, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rax
	test	rdx, rdx
	jne	.L10
	call	bfa_fcs_rport_lookup@PLT
	mov	rdi, rax
	test	rdi, rdi
	je	.L11
.L6:
	lea	rsi, 4[rbx]
	call	bfa_fcs_rport_get_attr@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR BFA_STATUS_OK[rip]
	mov	DWORD PTR [rbx], eax
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	bfa_fcs_lport_get_rport_by_qualifier@PLT
	mov	rdi, rax
	test	rdi, rdi
	jne	.L6
.L11:
	mov	rdi, rbp
	xor	esi, esi
	call	bfa_trc@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR BFA_STATUS_UNKNOWN_RWWN[rip]
	mov	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbp
	call	bfa_trc@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR BFA_STATUS_UNKNOWN_LWWN[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	bfad_iocmd_rport_get_attr, .-bfad_iocmd_rport_get_attr
	.comm	BFA_STATUS_UNKNOWN_RWWN,4,4
	.comm	BFA_STATUS_UNKNOWN_LWWN,4,4
	.comm	BFA_STATUS_OK,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_bsg.c_bfad_iocmd_rport_get_attr.c"
	.text
	.align	2
	.global	bfad_iocmd_rport_get_attr
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfad_iocmd_rport_get_attr, %function
bfad_iocmd_rport_get_attr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r1, [r4, #20]
	ldr	r2, [r4, #16]
	add	r0, r5, #4
	bl	bfa_fcs_lookup_port
	subs	r1, r0, #0
	beq	.L9
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #8]
	cmp	r2, #0
	bne	.L10
	bl	bfa_fcs_rport_lookup
	cmp	r0, #0
	beq	.L11
.L6:
	add	r1, r4, #4
	bl	bfa_fcs_rport_get_attr
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [r4]
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	bl	bfa_fcs_lport_get_rport_by_qualifier
	cmp	r0, #0
	bne	.L6
.L11:
	mov	r1, r0
	mov	r0, r5
	bl	bfa_trc
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L12+4
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r5
	bl	bfa_trc
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L12+8
	ldr	r3, [r3]
	str	r3, [r4]
	b	.L3
.L13:
	.align	2
.L12:
	.word	BFA_STATUS_OK
	.word	BFA_STATUS_UNKNOWN_RWWN
	.word	BFA_STATUS_UNKNOWN_LWWN
	.size	bfad_iocmd_rport_get_attr, .-bfad_iocmd_rport_get_attr
	.comm	BFA_STATUS_UNKNOWN_RWWN,4,4
	.comm	BFA_STATUS_UNKNOWN_LWWN,4,4
	.comm	BFA_STATUS_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
