	.file	"extr_bnx2fc_fcoe.c_bnx2fc_npiv_create_vports.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Exceeded count max of npiv table\n"
	.align 8
.LC1:
	.string	"First NPIV table entries invalid.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"NPIV[%u]:%016llx-%016llx"
.LC3:
	.string	"Creating vport %s:%s.\n"
.LC4:
	.string	"Failed to create vport\n"
	.text
	.p2align 4
	.type	bnx2fc_npiv_create_vports, @function
bnx2fc_npiv_create_vports:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 152
	.cfi_def_cfa_offset 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR MAX_NPIV_ENTRIES[rip]
	cmp	QWORD PTR [rsi], rax
	jg	.L14
	mov	rax, QWORD PTR 16[rsi]
	mov	r15, rsi
	mov	edi, DWORD PTR [rax]
	call	wwn_to_u64@PLT
	test	rax, rax
	je	.L15
.L4:
	mov	eax, DWORD PTR FC_PORT_ROLE_FCP_INITIATOR[rip]
	xor	r12d, r12d
	cmp	QWORD PTR [r15], 0
	mov	DWORD PTR 16[rsp], 0
	mov	DWORD PTR 48[rsp], eax
	mov	eax, DWORD PTR FC_PORTTYPE_NPIV[rip]
	mov	DWORD PTR 44[rsp], eax
	je	.L1
	lea	rax, 16[rsp]
	xor	r14d, r14d
	lea	r13, 96[rsp]
	mov	QWORD PTR 8[rsp], rax
	lea	rbx, 64[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	add	r12, 1
	add	r14, 1
	cmp	QWORD PTR [r15], r14
	jbe	.L1
.L8:
	mov	rax, QWORD PTR 16[r15]
	lea	rdx, 0[0+r14*4]
	mov	QWORD PTR [rsp], rdx
	mov	edi, DWORD PTR [rax+r14*4]
	call	wwn_to_u64@PLT
	mov	rdx, QWORD PTR [rsp]
	test	rax, rax
	je	.L16
.L5:
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR 8[r15]
	mov	edi, DWORD PTR [rax+rdx]
	call	wwn_to_u64@PLT
	mov	r9, QWORD PTR 32[rsp]
	mov	edi, DWORD PTR 40[rsp]
	mov	rcx, r12
	mov	r8, rax
	mov	esi, 4
	mov	QWORD PTR 24[rsp], rax
	lea	rdx, .LC2[rip]
	call	scnprintf@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	edx, 32
	mov	rsi, r13
	call	fcoe_wwn_to_str@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	edx, 32
	mov	rsi, rbx
	call	fcoe_wwn_to_str@PLT
	mov	rdx, r13
	mov	rdi, rbp
	xor	eax, eax
	lea	rsi, .LC3[rip]
	mov	rcx, rbx
	call	BNX2FC_HBA_DBG@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 8[rsp]
	xor	esi, esi
	call	fc_vport_create@PLT
	test	rax, rax
	jne	.L17
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	xor	eax, eax
	add	r14, 1
	call	BNX2FC_HBA_DBG@PLT
	cmp	QWORD PTR [r15], r14
	ja	.L8
.L3:
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 136[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 152
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC0[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	BNX2FC_HBA_DBG@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 8[r15]
	mov	edi, DWORD PTR [rax]
	call	wwn_to_u64@PLT
	test	rax, rax
	jne	.L4
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	call	BNX2FC_HBA_DBG@PLT
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bnx2fc_npiv_create_vports, .-bnx2fc_npiv_create_vports
	.comm	MAX_NPIV_ENTRIES,8,8
	.comm	FC_PORT_ROLE_FCP_INITIATOR,4,4
	.comm	FC_PORTTYPE_NPIV,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_bnx2fc_fcoe.c_bnx2fc_npiv_create_vports.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Exceeded count max of npiv table\012\000"
	.align	2
.LC1:
	.ascii	"First NPIV table entries invalid.\012\000"
	.align	2
.LC2:
	.ascii	"NPIV[%u]:%016llx-%016llx\000"
	.align	2
.LC3:
	.ascii	"Creating vport %s:%s.\012\000"
	.align	2
.LC4:
	.ascii	"Failed to create vport\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2fc_npiv_create_vports, %function
bnx2fc_npiv_create_vports:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L17
	ldr	r2, [r1]
	ldr	r3, [r3]
	mov	r5, r1
	ldr	r1, .L17+4
	sub	sp, sp, #108
	cmp	r2, r3
	ldr	r1, [r1]
	str	r1, [sp, #100]
	mov	r1,#0
	bgt	.L14
	ldr	r3, [r5, #8]
	mov	r7, r0
	ldr	r0, [r3]
	bl	wwn_to_u64
	cmp	r0, #0
	beq	.L15
.L4:
	mov	r6, #0
	ldr	r1, .L17+8
	ldr	r2, .L17+12
	ldr	r3, [r5]
	ldr	r1, [r1]
	ldr	r2, [r2]
	cmp	r3, r6
	str	r1, [sp, #32]
	str	r2, [sp, #28]
	str	r6, [sp, #12]
	beq	.L10
	mov	r4, r6
	ldr	r9, .L17+16
	ldr	r8, .L17+20
	ldr	r10, .L17+24
	b	.L8
.L7:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L1
.L8:
	ldr	r3, [r5, #8]
	lsl	fp, r4, #2
	ldr	r0, [r3, r4, lsl #2]
	bl	wwn_to_u64
	cmp	r0, #0
	ldreq	r0, [r7]
	ldr	r3, [r5, #4]
	str	r0, [sp, #20]
	ldr	r0, [r3, fp]
	bl	wwn_to_u64
	mov	ip, r0
	ldr	r3, [sp, #20]
	mov	r2, r9
	mov	r1, #4
	str	r0, [sp]
	str	r3, [sp, #4]
	ldr	r0, [sp, #24]
	mov	r3, r6
	str	ip, [sp, #16]
	bl	scnprintf
	mov	r2, #32
	add	r1, sp, #68
	ldr	r0, [sp, #20]
	bl	fcoe_wwn_to_str
	mov	r2, #32
	add	r1, sp, #36
	ldr	r0, [sp, #16]
	bl	fcoe_wwn_to_str
	mov	r1, r8
	add	r3, sp, #36
	add	r2, sp, #68
	mov	r0, r7
	bl	BNX2FC_HBA_DBG
	mov	r1, #0
	ldr	r0, [r7, #4]
	add	r2, sp, #12
	bl	fc_vport_create
	cmp	r0, #0
	addne	r6, r6, #1
	bne	.L7
	mov	r1, r10
	mov	r0, r7
	bl	BNX2FC_HBA_DBG
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L8
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r6
	add	sp, sp, #108
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r1, .L17+28
	bl	BNX2FC_HBA_DBG
	mov	r6, #0
	b	.L1
.L15:
	ldr	r3, [r5, #4]
	ldr	r0, [r3]
	bl	wwn_to_u64
	subs	r6, r0, #0
	bne	.L4
	mov	r0, r7
	ldr	r1, .L17+32
	bl	BNX2FC_HBA_DBG
	b	.L1
.L10:
.L3:
	mov	r6, r3
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	MAX_NPIV_ENTRIES
	.word	.LC5
	.word	FC_PORT_ROLE_FCP_INITIATOR
	.word	FC_PORTTYPE_NPIV
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.size	bnx2fc_npiv_create_vports, .-bnx2fc_npiv_create_vports
	.comm	MAX_NPIV_ENTRIES,4,4
	.comm	FC_PORT_ROLE_FCP_INITIATOR,4,4
	.comm	FC_PORTTYPE_NPIV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
