	.file	"extr_bfa_fcs_lport.c_bfa_fcport_get_loop_attr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bfa_fcport_get_loop_attr
	.type	bfa_fcport_get_loop_attr, @function
bfa_fcport_get_loop_attr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 24[rdi]
	mov	edi, DWORD PTR [rax]
	call	BFA_FCPORT_MOD@PLT
	mov	r14, rax
	mov	eax, DWORD PTR 12[rax]
	mov	edi, DWORD PTR 8[r14]
	mov	DWORD PTR 16[r15], eax
	mov	DWORD PTR 32[r15], edi
	call	bfa_hton3b@PLT
	cmp	DWORD PTR FC_ALPA_MAX[rip], 7
	mov	DWORD PTR 32[r15], eax
	jle	.L6
	mov	QWORD PTR 16[rsp], 0
	xor	r12d, r12d
	mov	r13d, 1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 16[rsp]
	mov	ebx, 7
	lea	rbp, 0[0+rax*8]
	sal	eax, 3
	mov	DWORD PTR 28[rsp], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	sub	ebx, 1
	cmp	ebx, -1
	je	.L14
.L4:
	mov	rax, QWORD PTR [r14]
	mov	rsi, QWORD PTR [rax+rbp]
	mov	rax, QWORD PTR 24[r15]
	mov	edi, DWORD PTR [rax]
	call	bfa_trc@PLT
	mov	rax, QWORD PTR [r14]
	mov	edx, r13d
	mov	ecx, ebx
	sal	edx, cl
	test	DWORD PTR [rax+rbp], edx
	je	.L3
	mov	eax, DWORD PTR 28[rsp]
	mov	rsi, QWORD PTR loop_alpa_map[rip]
	lea	rcx, 0[0+r12*8]
	mov	QWORD PTR 8[rsp], rcx
	add	eax, 7
	sub	eax, ebx
	sub	ebx, 1
	mov	rsi, QWORD PTR [rsi+rax*8]
	mov	rax, QWORD PTR [r15]
	mov	QWORD PTR [rax+r12*8], rsi
	mov	rax, QWORD PTR 24[r15]
	add	r12, 1
	mov	rsi, r12
	mov	edi, DWORD PTR [rax]
	call	bfa_trc@PLT
	mov	rax, QWORD PTR [r15]
	mov	rcx, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR 8[rax+rcx]
	mov	rax, QWORD PTR 24[r15]
	mov	edi, DWORD PTR [rax]
	call	bfa_trc@PLT
	cmp	ebx, -1
	jne	.L4
.L14:
	mov	ecx, DWORD PTR FC_ALPA_MAX[rip]
	add	QWORD PTR 16[rsp], 1
	mov	rdi, QWORD PTR 16[rsp]
	test	ecx, ecx
	lea	eax, 7[rcx]
	cmovns	eax, ecx
	sar	eax, 3
	cmp	eax, edi
	jg	.L5
.L2:
	mov	QWORD PTR 8[r15], r12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	bfa_fcport_get_loop_attr, .-bfa_fcport_get_loop_attr
	.comm	loop_alpa_map,8,8
	.comm	FC_ALPA_MAX,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_bfa_fcs_lport.c_bfa_fcport_get_loop_attr.c"
	.text
	.align	2
	.global	bfa_fcport_get_loop_attr
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfa_fcport_get_loop_attr, %function
bfa_fcport_get_loop_attr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #12]
	mov	r5, r0
	sub	sp, sp, #12
	ldr	r0, [r3]
	bl	BFA_FCPORT_MOD
	mov	r10, r0
	ldmib	r0, {r0, r2}
	str	r2, [r5, #8]
	str	r0, [r5, #16]
	bl	bfa_hton3b
	ldr	r3, .L15
	mov	r7, #0
	ldr	r2, [r3]
	str	r0, [r5, #16]
	cmp	r2, #7
	ble	.L2
	mov	r8, #1
	ldr	fp, .L15+4
	str	r7, [sp, #4]
.L5:
	ldr	r3, [sp, #4]
	mov	r4, #7
	lsl	r6, r3, #2
	lsl	r3, r3, #5
	str	r3, [sp]
	b	.L4
.L3:
	subs	r4, r4, #1
	bcc	.L14
.L4:
	ldr	r3, [r5, #12]
	ldr	r2, [r10]
	ldr	r0, [r3]
	ldr	r1, [r2, r6]
	bl	bfa_trc
	ldr	r3, [r10]
	ldr	r3, [r3, r6]
	ands	r3, r3, r8, lsl r4
	beq	.L3
	ldr	r3, [fp]
	rsb	r2, r4, r4, lsl #30
	add	r3, r3, r2, lsl #2
	ldr	r2, [sp]
	lsl	r9, r7, #2
	add	r3, r3, r2
	ldr	r1, [r3, #28]
	ldr	r2, [r5]
	ldr	r3, [r5, #12]
	str	r1, [r2, r7, lsl #2]
	add	r7, r7, #1
	mov	r1, r7
	ldr	r0, [r3]
	bl	bfa_trc
	ldr	r3, [r5]
	ldr	r0, [r5, #12]
	add	r3, r3, r9
	ldr	r1, [r3, #4]
	ldr	r0, [r0]
	bl	bfa_trc
	subs	r4, r4, #1
	bcs	.L4
.L14:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	cmp	r2, #0
	add	r1, r2, #7
	movlt	r2, r1
	add	r3, r3, #1
	cmp	r3, r2, asr #3
	str	r3, [sp, #4]
	blt	.L5
.L2:
	str	r7, [r5, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	FC_ALPA_MAX
	.word	loop_alpa_map
	.size	bfa_fcport_get_loop_attr, .-bfa_fcport_get_loop_attr
	.comm	loop_alpa_map,4,4
	.comm	FC_ALPA_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
