	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_remove
_netvsc_remove:                         ## @netvsc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_hv_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	leaq	16(%rax), %rdi
	callq	_cancel_delayed_work_sync
	xorl	%eax, %eax
	callq	_rtnl_lock
	movl	12(%r12), %edi
	callq	_rtnl_dereference
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_cancel_work_sync
LBB0_4:
	movl	8(%r12), %edi
	callq	_rtnl_dereference
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdi
	callq	_netvsc_unregister_vf
LBB0_6:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rndis_filter_device_remove
LBB0_8:
	movq	%r15, %rdi
	callq	_unregister_netdevice
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_list_del
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_hv_set_drvdata
	movl	(%r12), %edi
	callq	_free_percpu
	movq	%r15, %rdi
	callq	_free_netdev
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No net device to remove\n"

	.no_dead_strip	_netvsc_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_remove
_netvsc_remove:                         ; @netvsc_remove
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_hv_get_drvdata
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	add	x0, x0, #16
	bl	_cancel_delayed_work_sync
	bl	_rtnl_lock
	ldr	w0, [x21, #12]
	bl	_rtnl_dereference
	mov	x22, x0
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_cancel_work_sync
LBB0_3:
	ldr	w0, [x21, #8]
	bl	_rtnl_dereference
	cbz	x0, LBB0_5
; %bb.4:
	bl	_netvsc_unregister_vf
LBB0_5:
	cbz	x22, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x22
	bl	_rndis_filter_device_remove
LBB0_7:
	mov	x0, x19
	bl	_unregister_netdevice
	add	x0, x21, #4
	bl	_list_del
	bl	_rtnl_unlock
	mov	x0, x20
	mov	x1, #0
	bl	_hv_set_drvdata
	ldr	w0, [x21]
	bl	_free_percpu
	mov	x0, x19
	bl	_free_netdev
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No net device to remove\n"

	.no_dead_strip	_netvsc_remove
.subsections_via_symbols
