	.file	"extr_qlcnic_sriov_common.c_qlcnic_sriov_vf_detach.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qlcnic_sriov_vf_detach, @function
qlcnic_sriov_vf_detach:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR 8[rdi]
	mov	r14, QWORD PTR [rdi]
	mov	rax, QWORD PTR 0[r13]
	mov	rbx, QWORD PTR 16[r13]
	mov	rdi, r14
	lea	rbp, -1[rax]
	call	netif_device_detach@PLT
	mov	rdi, r12
	call	qlcnic_83xx_detach_mailbox_work@PLT
	mov	rdi, r12
	call	qlcnic_83xx_disable_mbx_intr@PLT
	mov	rdi, r14
	call	netif_running@PLT
	test	rax, rax
	jne	.L14
.L2:
	test	rbp, rbp
	je	.L3
	mov	rax, rbx
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR [rax], rdx
	add	rdx, 1
	add	rax, 24
	mov	QWORD PTR -8[rax], 0
	mov	QWORD PTR -16[rax], 0
	cmp	rbp, rdx
	jne	.L4
.L3:
	mov	QWORD PTR 8[r13], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L14:
	.cfi_restore_state
	mov	rsi, r14
	mov	rdi, r12
	call	qlcnic_down@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	qlcnic_sriov_vf_detach, .-qlcnic_sriov_vf_detach
	.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_detach.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_sriov_vf_detach, %function
qlcnic_sriov_vf_detach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r8, [r0]
	ldr	r7, [r0, #4]
	mov	r0, r8
	ldr	r5, [r7]
	ldr	r4, [r7, #8]
	bl	netif_device_detach
	mov	r0, r6
	bl	qlcnic_83xx_detach_mailbox_work
	mov	r0, r6
	bl	qlcnic_83xx_disable_mbx_intr
	mov	r0, r8
	bl	netif_running
	cmp	r0, #0
	sub	r5, r5, #1
	bne	.L14
.L2:
	cmp	r5, #0
	beq	.L3
	mov	r2, #0
	mov	r3, r4
	mov	r1, r2
.L4:
	str	r2, [r3]
	add	r2, r2, #1
	cmp	r5, r2
	str	r1, [r3, #8]
	str	r1, [r3, #4]
	add	r3, r3, #12
	bne	.L4
.L3:
	mov	r3, #0
	str	r3, [r7, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r1, r8
	mov	r0, r6
	bl	qlcnic_down
	b	.L2
	.size	qlcnic_sriov_vf_detach, .-qlcnic_sriov_vf_detach
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
