	.file	"extr_qlcnic_sriov_common.c_qlcnic_sriov_vf_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to read mac addr\n"
	.text
	.p2align 4
	.globl	qlcnic_sriov_vf_init
	.type	qlcnic_sriov_vf_init, @function
qlcnic_sriov_vf_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 40[rdi]
	lea	rdi, 24[r12]
	lea	r14, 20[r12]
	call	spin_lock_init@PLT
	mov	edi, DWORD PTR QLC_83XX_MBX_READY[rip]
	mov	rsi, r14
	call	set_bit@PLT
	mov	edi, DWORD PTR QLC_83XX_MODULE_LOADED[rip]
	mov	rsi, r14
	call	set_bit@PLT
	mov	eax, DWORD PTR QLC_83XX_IDC_FW_POLL_DELAY[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[r12], 0
	mov	DWORD PTR 16[r12], eax
	mov	eax, DWORD PTR QLCNIC_TX_INTR_SHARED[rip]
	mov	QWORD PTR 32[rbp], 0
	mov	DWORD PTR [r12], 1
	or	DWORD PTR 16[rbp], eax
	mov	QWORD PTR 24[rbp], 0
	call	qlcnic_sriov_check_dev_ready@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, r13d
	mov	rdi, rbp
	call	qlcnic_sriov_setup_vf@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	qlcnic_read_mac_addr@PLT
	test	rax, rax
	jne	.L10
.L3:
	mov	esi, DWORD PTR qlcnic_83xx_idc_aen_work[rip]
	lea	rdi, 4[rbp]
	call	INIT_DELAYED_WORK@PLT
	mov	edi, DWORD PTR __QLCNIC_RESETTING[rip]
	mov	rsi, rbp
	call	clear_bit@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	qlcnic_sriov_vf_init, .-qlcnic_sriov_vf_init
	.comm	qlcnic_83xx_idc_aen_work,4,4
	.comm	__QLCNIC_RESETTING,4,4
	.comm	QLC_83XX_MODULE_LOADED,4,4
	.comm	QLC_83XX_MBX_READY,4,4
	.comm	QLC_83XX_IDC_FW_POLL_DELAY,4,4
	.comm	QLCNIC_TX_INTR_SHARED,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_vf_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to read mac addr\012\000"
	.text
	.align	2
	.global	qlcnic_sriov_vf_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_sriov_vf_init, %function
qlcnic_sriov_vf_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0, #24]
	mov	r4, r0
	add	r0, r5, #16
	mov	r6, r1
	bl	spin_lock_init
	ldr	r3, .L11
	add	r7, r5, #12
	mov	r1, r7
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L11+4
	mov	r1, r7
	ldr	r0, [r3]
	bl	set_bit
	mov	r2, #0
	mov	r1, #1
	ldr	r3, .L11+8
	ldr	r0, .L11+12
	ldr	ip, [r3]
	ldr	r0, [r0]
	ldr	r3, [r4, #12]
	str	ip, [r5, #8]
	orr	r3, r3, r0
	str	r2, [r5, #4]
	mov	r0, r4
	str	r2, [r4, #20]
	str	r1, [r5]
	str	r2, [r4, #16]
	str	r3, [r4, #12]
	bl	qlcnic_sriov_check_dev_ready
	subs	r5, r0, #0
	beq	.L9
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r1, r6
	mov	r0, r4
	bl	qlcnic_sriov_setup_vf
	subs	r5, r0, #0
	bne	.L1
	mov	r0, r4
	bl	qlcnic_read_mac_addr
	cmp	r0, #0
	bne	.L10
.L3:
	ldr	r3, .L11+16
	add	r0, r4, #4
	ldr	r1, [r3]
	bl	INIT_DELAYED_WORK
	ldr	r3, .L11+20
	mov	r1, r4
	ldr	r0, [r3]
	bl	clear_bit
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r1, .L11+24
	ldr	r0, [r4, #8]
	bl	dev_warn
	b	.L3
.L12:
	.align	2
.L11:
	.word	QLC_83XX_MBX_READY
	.word	QLC_83XX_MODULE_LOADED
	.word	QLC_83XX_IDC_FW_POLL_DELAY
	.word	QLCNIC_TX_INTR_SHARED
	.word	qlcnic_83xx_idc_aen_work
	.word	__QLCNIC_RESETTING
	.word	.LC0
	.size	qlcnic_sriov_vf_init, .-qlcnic_sriov_vf_init
	.comm	qlcnic_83xx_idc_aen_work,4,4
	.comm	__QLCNIC_RESETTING,4,4
	.comm	QLC_83XX_MODULE_LOADED,4,4
	.comm	QLC_83XX_MBX_READY,4,4
	.comm	QLC_83XX_IDC_FW_POLL_DELAY,4,4
	.comm	QLCNIC_TX_INTR_SHARED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
