	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_mgmt_change_mtu
_octeon_mgmt_change_mtu:                ## @octeon_mgmt_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, %r14d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%r14d, %ebx
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	%r14d, (%r12)
	movq	_AGL_GMX_RX_FRM_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_cvmx_write_csr
	movq	_AGL_GMX_RX_JABBER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rbx,%rax,2), %esi
	addl	$7, %esi
	andl	$65528, %esi                    ## imm = 0xFFF8
	callq	_cvmx_write_csr
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_AGL_GMX_RX_FRM_MAX,8,3         ## @AGL_GMX_RX_FRM_MAX
	.comm	_AGL_GMX_RX_JABBER,8,3          ## @AGL_GMX_RX_JABBER
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.no_dead_strip	_octeon_mgmt_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_mgmt_change_mtu
_octeon_mgmt_change_mtu:                ; @octeon_mgmt_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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w8, w19
	add	w22, w8, w9
	str	w19, [x20]
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _AGL_GMX_RX_FRM_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AGL_GMX_RX_FRM_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x22
	bl	_cvmx_write_csr
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _AGL_GMX_RX_JABBER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AGL_GMX_RX_JABBER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
Lloh12:
	adrp	x8, _VLAN_HLEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VLAN_HLEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w8, w22, w8, lsl #1
	add	w8, w8, #7
	and	w1, w8, #0xfff8
	bl	_cvmx_write_csr
	mov	w0, #0
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_AGL_GMX_RX_FRM_MAX,8,3         ; @AGL_GMX_RX_FRM_MAX
	.comm	_AGL_GMX_RX_JABBER,8,3          ; @AGL_GMX_RX_JABBER
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.no_dead_strip	_octeon_mgmt_change_mtu
.subsections_via_symbols
