	.file	"extr_netvsc.c_netvsc_device_remove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"net device safe to remove\n"
	.text
	.p2align 4
	.globl	netvsc_device_remove
	.type	netvsc_device_remove, @function
netvsc_device_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	hv_get_drvdata@PLT
	mov	rdi, rax
	mov	r13, rax
	call	netdev_priv@PLT
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	rtnl_dereference@PLT
	mov	rdx, r13
	mov	rdi, r12
	mov	rsi, rax
	mov	rbp, rax
	call	netvsc_revoke_recv_buf@PLT
	mov	rax, QWORD PTR VERSION_WIN10[rip]
	cmp	QWORD PTR vmbus_proto_version[rip], rax
	jl	.L10
.L2:
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	call	netvsc_revoke_send_buf@PLT
	mov	rax, QWORD PTR VERSION_WIN10[rip]
	cmp	QWORD PTR vmbus_proto_version[rip], rax
	jl	.L11
.L3:
	mov	edi, DWORD PTR [rbx]
	xor	esi, esi
	call	RCU_INIT_POINTER@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[rbp]
	lea	rdi, [rax+rbx*4]
	add	rbx, 1
	call	netif_napi_del@PLT
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L5
.L4:
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	netdev_dbg@PLT
	mov	edi, DWORD PTR [r12]
	call	vmbus_close@PLT
	mov	rax, QWORD PTR VERSION_WIN10[rip]
	cmp	QWORD PTR vmbus_proto_version[rip], rax
	jge	.L12
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	free_netvsc_device_rcu@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	call	netvsc_teardown_recv_gpadl@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	call	netvsc_teardown_recv_gpadl@PLT
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	call	netvsc_teardown_send_gpadl@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	call	netvsc_teardown_send_gpadl@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	netvsc_device_remove, .-netvsc_device_remove
	.comm	vmbus_proto_version,8,8
	.comm	VERSION_WIN10,8,8
	.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_netvsc.c_netvsc_device_remove.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"net device safe to remove\012\000"
	.text
	.align	2
	.global	netvsc_device_remove
	.syntax unified
	.arm
	.fpu softvfp
	.type	netvsc_device_remove, %function
netvsc_device_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	bl	hv_get_drvdata
	mov	r7, r0
	bl	netdev_priv
	mov	r4, r0
	ldr	r0, [r0]
	bl	rtnl_dereference
	ldr	r9, .L13
	ldr	r8, .L13+4
	mov	r2, r7
	mov	r1, r0
	mov	r5, r0
	mov	r0, r6
	bl	netvsc_revoke_recv_buf
	ldr	r2, [r9]
	ldr	r3, [r8]
	cmp	r2, r3
	blt	.L10
.L2:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	netvsc_revoke_send_buf
	ldr	r2, [r9]
	ldr	r3, [r8]
	cmp	r2, r3
	blt	.L11
.L3:
	mov	r1, #0
	ldr	r0, [r4]
	bl	RCU_INIT_POINTER
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L4
	mov	r4, #0
.L5:
	ldr	r0, [r5, #4]
	add	r0, r0, r4, lsl #2
	bl	netif_napi_del
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L4:
	ldr	r1, .L13+8
	mov	r0, r7
	bl	netdev_dbg
	ldr	r0, [r6]
	bl	vmbus_close
	ldr	r2, [r9]
	ldr	r3, [r8]
	cmp	r2, r3
	bge	.L12
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	free_netvsc_device_rcu
.L10:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	netvsc_teardown_recv_gpadl
	b	.L2
.L12:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	netvsc_teardown_recv_gpadl
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	netvsc_teardown_send_gpadl
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	free_netvsc_device_rcu
.L11:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	netvsc_teardown_send_gpadl
	b	.L3
.L14:
	.align	2
.L13:
	.word	vmbus_proto_version
	.word	VERSION_WIN10
	.word	.LC0
	.size	netvsc_device_remove, .-netvsc_device_remove
	.comm	vmbus_proto_version,4,4
	.comm	VERSION_WIN10,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
