	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm_phy_set_eee                ## -- Begin function bcm_phy_set_eee
	.p2align	4, 0x90
_bcm_phy_set_eee:                       ## @bcm_phy_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_BRCM_CL45VEN_EEE_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	_LPI_FEATURE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_LPI_FEATURE_EN_DIG1000X@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	orl	%eax, %ecx
	orl	%edx, %ecx
	jmp	LBB0_4
LBB0_3:
	orl	%ecx, %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, %ecx
LBB0_4:
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_phy_write_mmd
	movl	(%r15), %esi
	movq	_BCM_CL45VEN_EEE_ADV@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	movq	_MDIO_EEE_100TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MDIO_EEE_1000T@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	orl	%eax, %ecx
	orl	%edx, %ecx
	jmp	LBB0_8
LBB0_7:
	orl	%ecx, %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, %ecx
LBB0_8:
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_phy_write_mmd
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_BRCM_CL45VEN_EEE_CONTROL,4,2   ## @BRCM_CL45VEN_EEE_CONTROL
	.comm	_LPI_FEATURE_EN,4,2             ## @LPI_FEATURE_EN
	.comm	_LPI_FEATURE_EN_DIG1000X,4,2    ## @LPI_FEATURE_EN_DIG1000X
	.comm	_BCM_CL45VEN_EEE_ADV,4,2        ## @BCM_CL45VEN_EEE_ADV
	.comm	_MDIO_EEE_100TX,4,2             ## @MDIO_EEE_100TX
	.comm	_MDIO_EEE_1000T,4,2             ## @MDIO_EEE_1000T
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm_phy_set_eee                ; -- Begin function bcm_phy_set_eee
	.p2align	2
_bcm_phy_set_eee:                       ; @bcm_phy_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _MDIO_MMD_AN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _BRCM_CL45VEN_EEE_CONTROL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BRCM_CL45VEN_EEE_CONTROL@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _LPI_FEATURE_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LPI_FEATURE_EN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _LPI_FEATURE_EN_DIG1000X@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LPI_FEATURE_EN_DIG1000X@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w10, w0, w10
	orr	w8, w8, w0
	orr	w8, w8, w9
	cmp	w20, #0
	csel	w3, w10, w8, eq
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_phy_write_mmd
	ldr	w1, [x21]
Lloh10:
	adrp	x22, _BCM_CL45VEN_EEE_ADV@GOTPAGE
Lloh11:
	ldr	x22, [x22, _BCM_CL45VEN_EEE_ADV@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _MDIO_EEE_100TX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_EEE_100TX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MDIO_EEE_1000T@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MDIO_EEE_1000T@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w10, w0, w10
	orr	w8, w8, w0
	orr	w8, w8, w9
	cmp	w20, #0
	csel	w3, w10, w8, eq
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_phy_write_mmd
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_BRCM_CL45VEN_EEE_CONTROL,4,2   ; @BRCM_CL45VEN_EEE_CONTROL
	.comm	_LPI_FEATURE_EN,4,2             ; @LPI_FEATURE_EN
	.comm	_LPI_FEATURE_EN_DIG1000X,4,2    ; @LPI_FEATURE_EN_DIG1000X
	.comm	_BCM_CL45VEN_EEE_ADV,4,2        ; @BCM_CL45VEN_EEE_ADV
	.comm	_MDIO_EEE_100TX,4,2             ; @MDIO_EEE_100TX
	.comm	_MDIO_EEE_1000T,4,2             ; @MDIO_EEE_1000T
.subsections_via_symbols
