	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_ethtool_set_eee            ## -- Begin function phy_ethtool_set_eee
	.p2align	4, 0x90
_phy_ethtool_set_eee:                   ## @phy_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 4(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_PCS_EEE_ABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_phy_read_mmd
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.2:
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_AN_EEE_ADV@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_phy_read_mmd
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.4:
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.5:
	callq	_ethtool_adv_to_mmd_eee_adv_t
	andl	%eax, %ebx
LBB0_6:
	movl	(%r14), %ecx
	notl	%ecx
	andl	%ebx, %ecx
	cmpl	%ecx, %r12d
	jne	LBB0_10
	jmp	LBB0_12
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_8:
	movl	%r12d, %ebx
	jmp	LBB0_15
LBB0_9:
	xorl	%ecx, %ecx
	cmpl	%ecx, %r12d
	je	LBB0_12
LBB0_10:
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_phy_write_mmd
	testl	%eax, %eax
	js	LBB0_14
## %bb.11:
	movq	%r14, %rdi
	callq	_phy_restart_aneg
	testl	%eax, %eax
	js	LBB0_14
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MDIO_MMD_PCS,4,2               ## @MDIO_MMD_PCS
	.comm	_MDIO_PCS_EEE_ABLE,4,2          ## @MDIO_PCS_EEE_ABLE
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_AN_EEE_ADV,4,2            ## @MDIO_AN_EEE_ADV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_ethtool_set_eee            ; -- Begin function phy_ethtool_set_eee
	.p2align	2
_phy_ethtool_set_eee:                   ; @phy_ethtool_set_eee
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MDIO_MMD_PCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_MMD_PCS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MDIO_PCS_EEE_ABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_PCS_EEE_ABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_phy_read_mmd
	mov	x20, x0
	tbnz	w0, #31, LBB0_14
; %bb.2:
Lloh6:
	adrp	x23, _MDIO_MMD_AN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x24, _MDIO_AN_EEE_ADV@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MDIO_AN_EEE_ADV@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_phy_read_mmd
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	w0, [x21]
	cbz	w0, LBB0_6
; %bb.5:
	bl	_ethtool_adv_to_mmd_eee_adv_t
	and	w20, w0, w20
LBB0_6:
	ldr	w8, [x19]
	bic	w3, w20, w8
	cmp	w22, w3
	b.ne	LBB0_10
	b	LBB0_12
LBB0_7:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_8:
	mov	x20, x22
	b	LBB0_14
LBB0_9:
	mov	w3, #0
	cmp	w22, w3
	b.eq	LBB0_12
LBB0_10:
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_phy_write_mmd
	tbnz	w0, #31, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_phy_restart_aneg
	tbnz	w0, #31, LBB0_13
LBB0_12:
	mov	w20, #0
	b	LBB0_14
LBB0_13:
	mov	x20, x0
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MDIO_MMD_PCS,4,2               ; @MDIO_MMD_PCS
	.comm	_MDIO_PCS_EEE_ABLE,4,2          ; @MDIO_PCS_EEE_ABLE
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_AN_EEE_ADV,4,2            ; @MDIO_AN_EEE_ADV
.subsections_via_symbols
