	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netvsc_device_remove           ## -- Begin function netvsc_device_remove
	.p2align	4, 0x90
_netvsc_device_remove:                  ## @netvsc_device_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_hv_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %edi
	callq	_rtnl_dereference
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_netvsc_revoke_recv_buf
	movq	_vmbus_proto_version@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_VERSION_WIN10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_netvsc_teardown_recv_gpadl
LBB0_2:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_netvsc_revoke_send_buf
	movq	(%rbx), %rax
	movq	_VERSION_WIN10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_netvsc_teardown_send_gpadl
LBB0_4:
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.5:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%r12, %rdi
	callq	_netif_napi_del
	incq	%rbx
	movslq	(%r13), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_dbg
	movl	(%r14), %edi
	callq	_vmbus_close
	movq	_vmbus_proto_version@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VERSION_WIN10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_netvsc_teardown_recv_gpadl
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_netvsc_teardown_send_gpadl
LBB0_9:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netvsc_device_rcu         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vmbus_proto_version,8,3        ## @vmbus_proto_version
	.comm	_VERSION_WIN10,8,3              ## @VERSION_WIN10
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"net device safe to remove\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netvsc_device_remove           ; -- Begin function netvsc_device_remove
	.p2align	2
_netvsc_device_remove:                  ; @netvsc_device_remove
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_hv_get_drvdata
	mov	x20, x0
	bl	_netdev_priv
	mov	x22, x0
	ldr	w0, [x0]
	bl	_rtnl_dereference
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_netvsc_revoke_recv_buf
Lloh0:
	adrp	x23, _vmbus_proto_version@GOTPAGE
Lloh1:
	ldr	x23, [x23, _vmbus_proto_version@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x24, _VERSION_WIN10@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VERSION_WIN10@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_netvsc_teardown_recv_gpadl
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_netvsc_revoke_send_buf
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_netvsc_teardown_send_gpadl
LBB0_4:
	ldr	w0, [x22]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
	mov	x25, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x22
	bl	_netif_napi_del
	add	x25, x25, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x25, x8
	b.lt	LBB0_6
LBB0_7:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldr	w0, [x19]
	bl	_vmbus_close
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_netvsc_teardown_recv_gpadl
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_netvsc_teardown_send_gpadl
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_free_netvsc_device_rcu
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_vmbus_proto_version,8,3        ; @vmbus_proto_version
	.comm	_VERSION_WIN10,8,3              ; @VERSION_WIN10
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"net device safe to remove\n"

.subsections_via_symbols
