	.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
	movl	%r15d, (%r14)
	movq	_VMXNET3_STATE_BIT_RESETTING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rax, %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%r12), %edi
	movq	%rbx, %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	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_7
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	callq	_vmxnet3_activate_dev
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	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_10
LBB0_9:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	mov	x19, x0
	str	w21, [x20]
Lloh0:
	adrp	x22, _VMXNET3_STATE_BIT_RESETTING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VMXNET3_STATE_BIT_RESETTING@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	b	LBB0_1
LBB0_3:
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_9
; %bb.4:
	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_6
; %bb.5:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_vmxnet3_activate_dev
	cbz	w0, LBB0_9
; %bb.7:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	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_10
LBB0_9:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
	mov	w21, #0
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.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
