	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_change_mtu
_mvneta_change_mtu:                     ## @mvneta_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_MVNETA_RX_PKT_SIZE
	movl	%eax, %edi
	movl	$8, %esi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_MVNETA_RX_PKT_SIZE
	movl	%eax, %edi
	movl	$8, %esi
	callq	_ALIGN
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_netdev_info
	movl	%ebx, %edi
	callq	_MVNETA_RX_PKT_SIZE
	movl	%eax, %edi
	movl	$8, %esi
	callq	_ALIGN
	movl	%eax, %ebx
LBB0_2:
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	%r15, %rdi
	callq	_mvneta_stop_dev
	movq	_mvneta_percpu_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_on_each_cpu
	movq	%r15, %rdi
	callq	_mvneta_cleanup_txqs
	movq	%r15, %rdi
	callq	_mvneta_cleanup_rxqs
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mvneta_bm_update_mtu
LBB0_7:
	movl	(%r14), %edi
	callq	_MVNETA_RX_PKT_SIZE
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_mvneta_setup_rxqs
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_3:
	cmpq	$0, 8(%r15)
	je	LBB0_13
## %bb.4:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mvneta_bm_update_mtu
	jmp	LBB0_13
LBB0_10:
	movq	%r15, %rdi
	callq	_mvneta_setup_txqs
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_14
LBB0_12:
	movq	_mvneta_percpu_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_on_each_cpu
	movq	%r15, %rdi
	callq	_mvneta_start_dev
LBB0_13:
	movq	%r14, %rdi
	callq	_netdev_update_features
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal MTU value %d, rounding to %d\n"

	.comm	_mvneta_percpu_disable,4,2      ## @mvneta_percpu_disable
L_.str.1:                               ## @.str.1
	.asciz	"unable to setup rxqs after MTU change\n"

L_.str.2:                               ## @.str.2
	.asciz	"unable to setup txqs after MTU change\n"

	.comm	_mvneta_percpu_enable,4,2       ## @mvneta_percpu_enable
	.no_dead_strip	_mvneta_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_change_mtu
_mvneta_change_mtu:                     ; @mvneta_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x21
	bl	_MVNETA_RX_PKT_SIZE
	mov	w1, #8
	bl	_IS_ALIGNED
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_MVNETA_RX_PKT_SIZE
	mov	w1, #8
	bl	_ALIGN
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_info
	mov	x0, x21
	bl	_MVNETA_RX_PKT_SIZE
	mov	w1, #8
	bl	_ALIGN
	mov	x21, x0
LBB0_2:
	str	w21, [x19]
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_mvneta_stop_dev
Lloh2:
	adrp	x8, _mvneta_percpu_disable@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mvneta_percpu_disable@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #1
	bl	_on_each_cpu
	mov	x0, x20
	bl	_mvneta_cleanup_txqs
	mov	x0, x20
	bl	_mvneta_cleanup_rxqs
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_mvneta_bm_update_mtu
LBB0_5:
	ldr	w0, [x19]
	bl	_MVNETA_RX_PKT_SIZE
	str	w0, [x20]
	mov	x0, x20
	bl	_mvneta_setup_rxqs
	cbz	w0, LBB0_10
; %bb.6:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_7:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_mvneta_bm_update_mtu
LBB0_9:
	mov	x0, x19
	bl	_netdev_update_features
	mov	w21, #0
	b	LBB0_13
LBB0_10:
	mov	x0, x20
	bl	_mvneta_setup_txqs
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.11:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_netdev_err
LBB0_13:
	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
LBB0_14:
Lloh9:
	adrp	x8, _mvneta_percpu_enable@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mvneta_percpu_enable@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #1
	bl	_on_each_cpu
	mov	x0, x20
	bl	_mvneta_start_dev
	mov	x0, x19
	bl	_netdev_update_features
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal MTU value %d, rounding to %d\n"

	.comm	_mvneta_percpu_disable,4,2      ; @mvneta_percpu_disable
l_.str.1:                               ; @.str.1
	.asciz	"unable to setup rxqs after MTU change\n"

l_.str.2:                               ; @.str.2
	.asciz	"unable to setup txqs after MTU change\n"

	.comm	_mvneta_percpu_enable,4,2       ; @mvneta_percpu_enable
	.no_dead_strip	_mvneta_change_mtu
.subsections_via_symbols
