	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_change_mtu
_netvsc_change_mtu:                     ## @netvsc_change_mtu
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_hv_get_drvdata
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, 16(%rax)
	je	LBB0_4
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rax), %rcx
	movq	_NVSP_PROTOCOL_VERSION_2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.6:
	movq	_NETVSC_MTU@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	cmpl	$68, %r15d
	jl	LBB0_9
## %bb.8:
	cmpl	%r15d, %ecx
	jl	LBB0_9
## %bb.10:
	movl	$1, 8(%rax)
	leaq	12(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_cancel_work_sync
	movq	%r14, %rdi
	callq	_netif_tx_disable
	movq	%r12, %rdi
	callq	_rndis_filter_device_remove
	movl	%r15d, (%r14)
	movq	%r12, (%rbx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_hv_set_drvdata
	movq	_ring_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_rndis_filter_device_add
	movq	%r14, %rdi
	callq	_netif_wake_queue
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_DATA_LEN,4,2               ## @ETH_DATA_LEN
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NVSP_PROTOCOL_VERSION_2,8,3    ## @NVSP_PROTOCOL_VERSION_2
	.comm	_NETVSC_MTU,4,2                 ## @NETVSC_MTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ring_size,4,2                  ## @ring_size
	.no_dead_strip	_netvsc_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_change_mtu
_netvsc_change_mtu:                     ; @netvsc_change_mtu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_hv_get_drvdata
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
Lloh2:
	adrp	x8, _ETH_DATA_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x0]
Lloh5:
	adrp	x10, _NVSP_PROTOCOL_VERSION_2@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NVSP_PROTOCOL_VERSION_2@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _NETVSC_MTU@GOTPAGE
Lloh9:
	ldr	x11, [x11, _NETVSC_MTU@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w8, w11, w8, eq
	cmp	w21, #68
	b.lt	LBB0_8
; %bb.6:
	cmp	w8, w21
	b.lt	LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x0, #8]
	add	x0, x22, #12
	bl	_cancel_delayed_work_sync
	add	x0, x22, #8
	bl	_cancel_work_sync
	mov	x0, x19
	bl	_netif_tx_disable
	mov	x0, x20
	bl	_rndis_filter_device_remove
	str	w21, [x19]
	str	x20, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_hv_set_drvdata
Lloh11:
	adrp	x8, _ring_size@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ring_size@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_rndis_filter_device_add
	mov	x0, x19
	bl	_netif_wake_queue
	mov	w0, #0
	b	LBB0_4
LBB0_8:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_DATA_LEN,4,2               ; @ETH_DATA_LEN
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NVSP_PROTOCOL_VERSION_2,8,3    ; @NVSP_PROTOCOL_VERSION_2
	.comm	_NETVSC_MTU,4,2                 ; @NETVSC_MTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ring_size,4,2                  ; @ring_size
	.no_dead_strip	_netvsc_change_mtu
.subsections_via_symbols
