	.file	"extr_qlcnic_sriov_pf.c_qlcnic_sriov_pf_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qlcnic_sriov_pf_init, @function
qlcnic_sriov_pf_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 104
	.cfi_def_cfa_offset 144
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	rbp, QWORD PTR 24[rbx]
	call	qlcnic_sriov_enable_check@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L16
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L16:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, r13
	call	qlcnic_sriov_pf_cfg_vlan_filtering@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, r13
	call	qlcnic_84xx_check@PLT
	test	rax, rax
	jne	.L3
.L6:
	mov	edx, 1
	mov	rsi, rbp
	mov	rdi, r13
	call	qlcnic_sriov_pf_cfg_eswitch@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	rdx, rbp
	mov	esi, 1
	mov	rdi, r13
	call	qlcnic_sriov_pf_config_vport@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L18
.L7:
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r13
	call	qlcnic_sriov_pf_cfg_eswitch@PLT
.L4:
	xor	esi, esi
	mov	rdi, r13
	call	qlcnic_sriov_pf_cfg_vlan_filtering@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r13
	call	qlcnic_sriov_pf_cfg_flood@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, 32[rsp]
	mov	rdi, r13
	call	qlcnic_sriov_get_pf_info@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rsi, rsp
	mov	rdx, rbp
	mov	rdi, r13
	call	qlcnic_get_nic_info@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	lea	rsi, 64[rsp]
	mov	rdx, rbp
	mov	rdi, r13
	call	qlcnic_sriov_pf_cal_res_limit@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	esi, 1
	mov	rdi, r13
	call	qlcnic_sriov_cfg_bc_intr@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR [rsp]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR QLC_83XX_SRIOV_MODE[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, rbp
	xor	esi, esi
	mov	rdi, r13
	call	qlcnic_sriov_pf_config_vport@PLT
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qlcnic_sriov_pf_init, .-qlcnic_sriov_pf_init
	.comm	QLC_83XX_SRIOV_MODE,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_qlcnic_sriov_pf.c_qlcnic_sriov_pf_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_sriov_pf_init, %function
qlcnic_sriov_pf_init:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L19
	ldr	r5, [r0]
	sub	sp, sp, #60
	mov	r7, r0
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	ldr	r6, [r5, #20]
	bl	qlcnic_sriov_enable_check
	subs	r4, r0, #0
	bne	.L16
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	mov	r1, #1
	mov	r0, r7
	bl	qlcnic_sriov_pf_cfg_vlan_filtering
	subs	r4, r0, #0
	bne	.L1
	mov	r0, r7
	bl	qlcnic_84xx_check
	cmp	r0, #0
	bne	.L3
.L6:
	mov	r2, #1
	mov	r1, r6
	mov	r0, r7
	bl	qlcnic_sriov_pf_cfg_eswitch
	subs	r4, r0, #0
	bne	.L4
	mov	r2, r6
	mov	r1, #1
	mov	r0, r7
	bl	qlcnic_sriov_pf_config_vport
	subs	r4, r0, #0
	beq	.L18
.L7:
	mov	r1, r6
	mov	r2, #0
	mov	r0, r7
	bl	qlcnic_sriov_pf_cfg_eswitch
.L4:
	mov	r0, r7
	mov	r1, #0
	bl	qlcnic_sriov_pf_cfg_vlan_filtering
	b	.L1
.L3:
	mov	r0, r7
	bl	qlcnic_sriov_pf_cfg_flood
	subs	r4, r0, #0
	beq	.L6
	b	.L4
.L18:
	mov	r0, r7
	add	r1, sp, #20
	bl	qlcnic_sriov_get_pf_info
	subs	r4, r0, #0
	bne	.L8
	mov	r2, r6
	mov	r0, r7
	add	r1, sp, #4
	bl	qlcnic_get_nic_info
	subs	r4, r0, #0
	bne	.L8
	mov	r2, r6
	mov	r0, r7
	add	r1, sp, #36
	bl	qlcnic_sriov_pf_cal_res_limit
	subs	r4, r0, #0
	bne	.L8
	mov	r1, #1
	mov	r0, r7
	bl	qlcnic_sriov_cfg_bc_intr
	subs	r4, r0, #0
	bne	.L8
	ldr	r3, [sp, #16]
	ldr	r2, .L19+4
	ldr	r0, [sp, #12]
	ldr	r1, [sp, #8]
	ldr	r2, [r2]
	str	r3, [r5, #16]
	ldr	r3, [sp, #4]
	str	r0, [r5, #12]
	stm	r5, {r2, r3}
	str	r1, [r5, #8]
	b	.L1
.L8:
	mov	r2, r6
	mov	r1, #0
	mov	r0, r7
	bl	qlcnic_sriov_pf_config_vport
	b	.L7
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	QLC_83XX_SRIOV_MODE
	.size	qlcnic_sriov_pf_init, .-qlcnic_sriov_pf_init
	.comm	QLC_83XX_SRIOV_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
