	.file	"extr_qlcnic_sriov_common.c_qlcnic_sriov_setup_vf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Device does not support MSI interrupts\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Failed to setup interrupt\n"
.LC2:
	.string	"%s: XGbE port initialized\n"
	.text
	.p2align 4
	.type	qlcnic_sriov_setup_vf, @function
qlcnic_sriov_setup_vf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	eax, DWORD PTR QLCNIC_VLAN_FILTERING[rip]
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	or	DWORD PTR 28[rdi], eax
	mov	rax, QWORD PTR [rdi]
	add	rdi, 24
	mov	DWORD PTR [rax], 1
	call	INIT_LIST_HEAD@PLT
	mov	edx, DWORD PTR qlcnic_use_msi_x[rip]
	test	edx, edx
	jne	.L2
	mov	eax, DWORD PTR qlcnic_use_msi[rip]
	test	eax, eax
	jne	.L12
.L2:
	mov	esi, DWORD PTR QLCNIC_SINGLE_RING[rip]
	mov	rdi, rbp
	call	qlcnic_set_tx_ring_count@PLT
	mov	esi, DWORD PTR QLCNIC_SINGLE_RING[rip]
	mov	rdi, rbp
	call	qlcnic_set_sds_ring_count@PLT
	mov	rdi, rbp
	call	qlcnic_setup_intr@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	rdi, rbp
	call	qlcnic_83xx_setup_mbx_intr@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L14
.L4:
	mov	rdi, rbp
	call	qlcnic_teardown_intr@PLT
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L14:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, rbp
	call	qlcnic_sriov_init@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
.L5:
	endbr64
	mov	rdi, rbp
	call	qlcnic_83xx_free_mbx_intr@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR 16[rbp]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 16[rbp]
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, 1
	mov	rdi, rbp
	call	qlcnic_sriov_cfg_bc_intr@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	esi, DWORD PTR QLCNIC_BC_CMD_CHANNEL_INIT[rip]
	mov	rdi, rbp
	call	qlcnic_sriov_channel_cfg_cmd@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L16
.L7:
	xor	esi, esi
	mov	rdi, rbp
	call	qlcnic_sriov_cfg_bc_intr@PLT
.L6:
	mov	rdi, rbp
	call	__qlcnic_sriov_cleanup@PLT
	mov	rdi, rbp
	call	qlcnic_83xx_free_mbx_intr@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbp
	call	qlcnic_sriov_vf_init_driver@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, rbp
	call	qlcnic_sriov_get_vf_acl@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rsi, QWORD PTR 8[rbp]
	mov	edx, r13d
	mov	rdi, rbp
	call	qlcnic_setup_netdev@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, QWORD PTR 16[rbp]
	mov	rsi, rbp
	call	pci_set_drvdata@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 16[rbp]
	lea	rsi, .LC2[rip]
	mov	edx, DWORD PTR [rax]
	call	dev_info@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR qlcnic_sriov_vf_poll_dev_state[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR 4[rax]
	call	qlcnic_schedule_work@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR QLCNIC_BC_CMD_CHANNEL_TERM[rip]
	mov	rdi, rbp
	call	qlcnic_sriov_channel_cfg_cmd@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	qlcnic_sriov_setup_vf, .-qlcnic_sriov_setup_vf
	.comm	qlcnic_use_msi_x,4,4
	.comm	qlcnic_use_msi,4,4
	.comm	qlcnic_sriov_vf_poll_dev_state,4,4
	.comm	QLCNIC_VLAN_FILTERING,4,4
	.comm	QLCNIC_SINGLE_RING,4,4
	.comm	QLCNIC_BC_CMD_CHANNEL_TERM,4,4
	.comm	QLCNIC_BC_CMD_CHANNEL_INIT,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_common.c_qlcnic_sriov_setup_vf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Device does not support MSI interrupts\012\000"
	.align	2
.LC1:
	.ascii	"Failed to setup interrupt\012\000"
	.align	2
.LC2:
	.ascii	"%s: XGbE port initialized\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_sriov_setup_vf, %function
qlcnic_sriov_setup_vf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	ip, #1
	mov	r4, r0
	ldr	r2, .L20
	ldr	r3, [r0, #16]
	ldr	r2, [r2]
	mov	r6, r1
	orr	r3, r3, r2
	ldr	r2, [r0], #12
	str	r3, [r4, #16]
	str	ip, [r2]
	bl	INIT_LIST_HEAD
	ldr	r3, .L20+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L20+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
.L2:
	ldr	r5, .L20+12
	mov	r0, r4
	ldr	r1, [r5]
	bl	qlcnic_set_tx_ring_count
	ldr	r1, [r5]
	mov	r0, r4
	bl	qlcnic_set_sds_ring_count
	mov	r0, r4
	bl	qlcnic_setup_intr
	subs	r5, r0, #0
	bne	.L16
	mov	r0, r4
	bl	qlcnic_83xx_setup_mbx_intr
	subs	r5, r0, #0
	beq	.L17
.L4:
	mov	r0, r4
	bl	qlcnic_teardown_intr
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L17:
	mov	r1, #1
	mov	r0, r4
	bl	qlcnic_sriov_init
	subs	r5, r0, #0
	beq	.L18
.L5:
	mov	r0, r4
	bl	qlcnic_83xx_free_mbx_intr
	b	.L4
.L16:
	ldr	r1, .L20+16
	ldr	r0, [r4, #8]
	bl	dev_err
	b	.L4
.L15:
	ldr	r1, .L20+20
	ldr	r0, [r4, #8]
	bl	dev_warn
	b	.L2
.L18:
	mov	r1, #1
	mov	r0, r4
	bl	qlcnic_sriov_cfg_bc_intr
	subs	r5, r0, #0
	bne	.L6
	ldr	r3, .L20+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	qlcnic_sriov_channel_cfg_cmd
	subs	r5, r0, #0
	beq	.L19
.L7:
	mov	r1, #0
	mov	r0, r4
	bl	qlcnic_sriov_cfg_bc_intr
.L6:
	mov	r0, r4
	bl	__qlcnic_sriov_cleanup
	mov	r0, r4
	bl	qlcnic_83xx_free_mbx_intr
	b	.L4
.L19:
	mov	r0, r4
	bl	qlcnic_sriov_vf_init_driver
	subs	r5, r0, #0
	bne	.L8
	mov	r0, r4
	bl	qlcnic_sriov_get_vf_acl
	subs	r5, r0, #0
	bne	.L8
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r4, #4]
	bl	qlcnic_setup_netdev
	subs	r5, r0, #0
	bne	.L8
	mov	r1, r4
	ldr	r0, [r4, #8]
	bl	pci_set_drvdata
	ldr	r3, [r4, #4]
	ldr	r1, .L20+28
	ldr	r2, [r3]
	ldr	r0, [r4, #8]
	bl	dev_info
	ldr	r2, [r4]
	ldr	r3, .L20+32
	mov	r0, r4
	ldr	r2, [r2, #4]
	ldr	r1, [r3]
	bl	qlcnic_schedule_work
	b	.L1
.L8:
	ldr	r3, .L20+36
	mov	r0, r4
	ldr	r1, [r3]
	bl	qlcnic_sriov_channel_cfg_cmd
	b	.L7
.L21:
	.align	2
.L20:
	.word	QLCNIC_VLAN_FILTERING
	.word	qlcnic_use_msi_x
	.word	qlcnic_use_msi
	.word	QLCNIC_SINGLE_RING
	.word	.LC1
	.word	.LC0
	.word	QLCNIC_BC_CMD_CHANNEL_INIT
	.word	.LC2
	.word	qlcnic_sriov_vf_poll_dev_state
	.word	QLCNIC_BC_CMD_CHANNEL_TERM
	.size	qlcnic_sriov_setup_vf, .-qlcnic_sriov_setup_vf
	.comm	qlcnic_use_msi_x,4,4
	.comm	qlcnic_use_msi,4,4
	.comm	qlcnic_sriov_vf_poll_dev_state,4,4
	.comm	QLCNIC_VLAN_FILTERING,4,4
	.comm	QLCNIC_SINGLE_RING,4,4
	.comm	QLCNIC_BC_CMD_CHANNEL_TERM,4,4
	.comm	QLCNIC_BC_CMD_CHANNEL_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
