	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_change_mtu
_vmxnet3_change_mtu:                    ## @vmxnet3_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
	.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	_VMXNET3_MIN_MTU@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_VMXNET3_MAX_MTU@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jl	LBB0_2
## %bb.3:
	cmpl	$1501, %r15d                    ## imm = 0x5DD
	jl	LBB0_5
## %bb.4:
	cmpl	$0, 4(%rbx)
	je	LBB0_2
LBB0_5:
	movl	%r15d, (%r14)
	movq	_VMXNET3_STATE_BIT_RESETTING@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
	callq	_msleep
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_8:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	%rbx, %rdi
	callq	_vmxnet3_quiesce_dev
	movq	%rbx, %rdi
	callq	_vmxnet3_reset_dev
	movq	%rbx, %rdi
	callq	_vmxnet3_rq_destroy_all
	movq	%rbx, %rdi
	callq	_vmxnet3_adjust_rx_ring_size
	movq	%rbx, %rdi
	callq	_vmxnet3_rq_create_all
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_12:
	movq	%rbx, %rdi
	callq	_vmxnet3_activate_dev
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_netdev_err
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_vmxnet3_force_close
	jmp	LBB0_15
LBB0_14:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMXNET3_MIN_MTU,4,2            ## @VMXNET3_MIN_MTU
	.comm	_VMXNET3_MAX_MTU,4,2            ## @VMXNET3_MAX_MTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VMXNET3_STATE_BIT_RESETTING,4,2 ## @VMXNET3_STATE_BIT_RESETTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to re-create rx queues,  error %d. Closing it.\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to re-activate, error %d. Closing it\n"

	.no_dead_strip	_vmxnet3_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_change_mtu
_vmxnet3_change_mtu:                    ; @vmxnet3_change_mtu
	.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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
Lloh0:
	adrp	x8, _VMXNET3_MIN_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMXNET3_MIN_MTU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VMXNET3_MAX_MTU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VMXNET3_MAX_MTU@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #8, le
	b.ge	LBB0_2
LBB0_1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_2:
	mov	x19, x0
	cmp	w21, #1501
	b.lt	LBB0_4
; %bb.3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_1
LBB0_4:
	str	w21, [x20]
Lloh9:
	adrp	x22, _VMXNET3_STATE_BIT_RESETTING@GOTPAGE
Lloh10:
	ldr	x22, [x22, _VMXNET3_STATE_BIT_RESETTING@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_msleep
	b	LBB0_5
LBB0_7:
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_13
; %bb.8:
	mov	x0, x19
	bl	_vmxnet3_quiesce_dev
	mov	x0, x19
	bl	_vmxnet3_reset_dev
	mov	x0, x19
	bl	_vmxnet3_rq_destroy_all
	mov	x0, x19
	bl	_vmxnet3_adjust_rx_ring_size
	mov	x0, x19
	bl	_vmxnet3_rq_create_all
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_vmxnet3_activate_dev
	cbz	w0, LBB0_13
; %bb.11:
	mov	x21, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	mov	x0, x20
	mov	x2, x21
	bl	_netdev_err
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
	mov	x0, x19
	bl	_vmxnet3_force_close
	b	LBB0_14
LBB0_13:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
	mov	w21, #0
LBB0_14:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VMXNET3_MIN_MTU,4,2            ; @VMXNET3_MIN_MTU
	.comm	_VMXNET3_MAX_MTU,4,2            ; @VMXNET3_MAX_MTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VMXNET3_STATE_BIT_RESETTING,4,2 ; @VMXNET3_STATE_BIT_RESETTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to re-create rx queues,  error %d. Closing it.\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to re-activate, error %d. Closing it\n"

	.no_dead_strip	_vmxnet3_change_mtu
.subsections_via_symbols
