	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_change_mtu
_mvpp2_change_mtu:                      ## @mvpp2_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_netif_running
	movl	%eax, %r15d
	movq	16(%r13), %rbx
	movl	%r12d, %edi
	callq	_MVPP2_RX_PKT_SIZE
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_MVPP2_RX_PKT_SIZE
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_ALIGN
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_netdev_info
	movl	%r12d, %edi
	callq	_MVPP2_RX_PKT_SIZE
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_ALIGN
	movl	%eax, %r12d
LBB0_2:
	movl	%r12d, %edi
	callq	_MVPP2_RX_PKT_SIZE
	movq	_MVPP2_BM_LONG_PKT_SIZE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_3
## %bb.10:
	cmpq	$0, 16(%rbx)
	je	LBB0_13
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_netdev_warn
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_3:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	movq	(%rcx,%r15,8), %rcx
	cmpq	%r13, %rcx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rcx), %rax
	movl	(%rax), %edi
	callq	_MVPP2_RX_PKT_SIZE
	cmpq	(%r14), %rax
	jle	LBB0_7
	jmp	LBB0_13
LBB0_9:
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	movl	$1, %esi
LBB0_12:
	movq	%rbx, %rdi
	callq	_mvpp2_bm_switch_buffers
LBB0_13:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_mvpp2_stop_dev
LBB0_15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mvpp2_bm_update_mtu
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_err
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_mvpp2_bm_update_mtu
	testl	%r15d, %r15d
	je	LBB0_20
LBB0_19:
	movq	%r13, %rdi
	callq	_mvpp2_start_dev
	movq	%r13, %rdi
	callq	_mvpp2_egress_enable
	movq	%r13, %rdi
	callq	_mvpp2_ingress_enable
LBB0_20:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%r12d, %edi
	callq	_MVPP2_RX_PKT_SIZE
	movq	%rax, (%r13)
	testl	%r15d, %r15d
	jne	LBB0_19
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal MTU value %d, round to %d\n"

	.comm	_MVPP2_BM_LONG_PKT_SIZE,8,3     ## @MVPP2_BM_LONG_PKT_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"mtu %d too high, switching to shared buffers"

L_.str.2:                               ## @.str.2
	.asciz	"all ports have a low MTU, switching to per-cpu buffers"

L_.str.3:                               ## @.str.3
	.asciz	"failed to change MTU\n"

	.no_dead_strip	_mvpp2_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_change_mtu
_mvpp2_change_mtu:                      ; @mvpp2_change_mtu
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x21
	bl	_netif_running
	mov	x20, x0
	ldr	x23, [x19, #16]
	mov	x0, x22
	bl	_MVPP2_RX_PKT_SIZE
	mov	w1, #8
	bl	_IS_ALIGNED
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_MVPP2_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, x21
	mov	x2, x22
	bl	_netdev_info
	mov	x0, x22
	bl	_MVPP2_RX_PKT_SIZE
	mov	w1, #8
	bl	_ALIGN
	mov	x22, x0
LBB0_2:
	mov	x0, x22
	bl	_MVPP2_RX_PKT_SIZE
Lloh2:
	adrp	x24, _MVPP2_BM_LONG_PKT_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MVPP2_BM_LONG_PKT_SIZE@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.le	LBB0_5
; %bb.3:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_13
; %bb.4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_netdev_warn
	mov	w1, #0
	b	LBB0_12
LBB0_5:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x25, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #8]
	ldr	x9, [x9, x25, lsl #3]
	cmp	x9, x19
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x9, #8]
	ldr	w0, [x8]
	bl	_MVPP2_RX_PKT_SIZE
	ldr	x8, [x24]
	cmp	x0, x8
	b.le	LBB0_7
	b	LBB0_13
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	mov	w1, #1
LBB0_12:
	mov	x0, x23
	bl	_mvpp2_bm_switch_buffers
LBB0_13:
	cbz	w20, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_mvpp2_stop_dev
LBB0_15:
	mov	x0, x21
	mov	x1, x22
	bl	_mvpp2_bm_update_mtu
	mov	x23, x0
	cbz	w0, LBB0_19
; %bb.16:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_netdev_err
	ldr	w1, [x21]
	mov	x0, x21
	bl	_mvpp2_bm_update_mtu
	cbz	w20, LBB0_18
LBB0_17:
	mov	x0, x19
	bl	_mvpp2_start_dev
	mov	x0, x19
	bl	_mvpp2_egress_enable
	mov	x0, x19
	bl	_mvpp2_ingress_enable
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, x22
	bl	_MVPP2_RX_PKT_SIZE
	str	x0, [x19]
	cbnz	w20, LBB0_17
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal MTU value %d, round to %d\n"

	.comm	_MVPP2_BM_LONG_PKT_SIZE,8,3     ; @MVPP2_BM_LONG_PKT_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"mtu %d too high, switching to shared buffers"

l_.str.2:                               ; @.str.2
	.asciz	"all ports have a low MTU, switching to per-cpu buffers"

l_.str.3:                               ; @.str.3
	.asciz	"failed to change MTU\n"

	.no_dead_strip	_mvpp2_change_mtu
.subsections_via_symbols
