	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_ethtool_set_eee
_mvneta_ethtool_set_eee:                ## @mvneta_ethtool_set_eee
	.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
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.1:
	cmpl	$256, (%r14)                    ## imm = 0x100
	jl	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_MVNETA_LPI_CTRL_0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mvreg_read
	andl	$-65281, %eax                   ## imm = 0xFFFF00FF
	movl	(%r14), %edx
	shll	$8, %edx
	orl	%eax, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mvreg_write
	movq	8(%r14), %rax
	movq	%rax, 16(%rbx)
	movq	16(%r14), %rcx
	movq	%rcx, 8(%rbx)
	testq	%rcx, %rcx
	setne	%cl
	testq	%rax, %rax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %esi
	movq	%rbx, %rdi
	callq	_mvneta_set_eee
	movl	(%rbx), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phylink_ethtool_set_eee        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MVNETA_LPI_CTRL_0,4,2          ## @MVNETA_LPI_CTRL_0
	.no_dead_strip	_mvneta_ethtool_set_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_ethtool_set_eee
_mvneta_ethtool_set_eee:                ; @mvneta_ethtool_set_eee
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #256
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	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_3:
Lloh3:
	adrp	x21, _MVNETA_LPI_CTRL_0@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MVNETA_LPI_CTRL_0@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mvreg_read
	and	w8, w0, #0xffff00ff
	ldr	w9, [x19]
	orr	w2, w8, w9, lsl #8
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mvreg_write
	ldp	x8, x9, [x19, #8]
	stp	x9, x8, [x20, #8]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	cset	w1, ne
	mov	x0, x20
	bl	_mvneta_set_eee
	ldr	w0, [x20]
	mov	x1, x19
	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
	b	_phylink_ethtool_set_eee
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MVNETA_LPI_CTRL_0,4,2          ; @MVNETA_LPI_CTRL_0
	.no_dead_strip	_mvneta_ethtool_set_eee
.subsections_via_symbols
