	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_eee_enable
_rtl_eee_enable:                        ## @rtl_eee_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movl	$123, %ecx
	btl	%eax, %ecx
	jae	LBB0_2
## %bb.6:
	testl	%esi, %esi
	je	LBB0_8
## %bb.7:
	movl	$1, %esi
	callq	_r8153_eee_en
	movq	_OCP_EEE_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	jmp	LBB0_9
LBB0_2:
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	movl	$1, %esi
	callq	_r8152_eee_en
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_AN_EEE_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %ecx
	movq	%rbx, %rdi
	jmp	LBB0_5
LBB0_8:
	xorl	%esi, %esi
	callq	_r8153_eee_en
	movq	_OCP_EEE_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ocp_reg_write                  ## TAILCALL
LBB0_4:
	xorl	%esi, %esi
	callq	_r8152_eee_en
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_AN_EEE_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_r8152_mmd_write                ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_AN_EEE_ADV,4,2            ## @MDIO_AN_EEE_ADV
	.comm	_OCP_EEE_ADV,4,2                ## @OCP_EEE_ADV
	.no_dead_strip	_rtl_eee_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_eee_enable
_rtl_eee_enable:                        ; @rtl_eee_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_10
; %bb.1:
	mov	x19, x0
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #123
	tst	w8, w9
	b.eq	LBB0_4
; %bb.2:
	cbz	w1, LBB0_6
; %bb.3:
	mov	w1, #1
	bl	_r8153_eee_en
Lloh0:
	adrp	x8, _OCP_EEE_ADV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCP_EEE_ADV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x19
	b	LBB0_7
LBB0_4:
	cbz	w1, LBB0_8
; %bb.5:
	mov	w1, #1
	bl	_r8152_eee_en
Lloh3:
	adrp	x8, _MDIO_MMD_AN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_MMD_AN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MDIO_AN_EEE_ADV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_AN_EEE_ADV@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x19, #4]
	mov	x0, x19
	b	LBB0_9
LBB0_6:
	bl	_r8153_eee_en
Lloh9:
	adrp	x8, _OCP_EEE_ADV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCP_EEE_ADV@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ocp_reg_write
LBB0_8:
	bl	_r8152_eee_en
Lloh12:
	adrp	x8, _MDIO_MMD_AN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_MMD_AN@GOTPAGEOFF]
Lloh14:
	adrp	x9, _MDIO_AN_EEE_ADV@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MDIO_AN_EEE_ADV@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	ldr	w2, [x9]
	mov	x0, x19
	mov	w3, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_r8152_mmd_write
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_AN_EEE_ADV,4,2            ; @MDIO_AN_EEE_ADV
	.comm	_OCP_EEE_ADV,4,2                ; @OCP_EEE_ADV
	.no_dead_strip	_rtl_eee_enable
.subsections_via_symbols
