	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_ethtool_get_eee            ## -- Begin function phy_ethtool_get_eee
	.p2align	4, 0x90
_phy_ethtool_get_eee:                   ## @phy_ethtool_get_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
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	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
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	%eax, %edi
	callq	_mmd_eee_cap_to_ethtool_sup_t
	movl	%eax, 16(%r14)
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MDIO_AN_EEE_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movl	%eax, %edi
	callq	_mmd_eee_adv_to_ethtool_adv_t
	movl	%eax, (%r14)
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 4(%r14)
	movl	(%r15), %esi
	movq	_MDIO_AN_EEE_LPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	%eax, %edi
	callq	_mmd_eee_adv_to_ethtool_adv_t
	movl	%eax, 8(%r14)
	xorl	%ecx, %ecx
	andl	(%r14), %eax
	setne	%cl
	movl	%ecx, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	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
	.comm	_MDIO_AN_EEE_LPABLE,4,2         ## @MDIO_AN_EEE_LPABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_ethtool_get_eee            ; -- Begin function phy_ethtool_get_eee
	.p2align	2
_phy_ethtool_get_eee:                   ; @phy_ethtool_get_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
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, 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
	tbnz	w0, #31, LBB0_6
; %bb.2:
	bl	_mmd_eee_cap_to_ethtool_sup_t
	str	w0, [x19, #16]
Lloh6:
	adrp	x21, _MDIO_MMD_AN@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _MDIO_AN_EEE_ADV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MDIO_AN_EEE_ADV@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_6
; %bb.3:
	bl	_mmd_eee_adv_to_ethtool_adv_t
	cmp	w0, #0
	cset	w8, ne
	stp	w0, w8, [x19]
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _MDIO_AN_EEE_LPABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MDIO_AN_EEE_LPABLE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_6
; %bb.4:
	bl	_mmd_eee_adv_to_ethtool_adv_t
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	tst	w9, w8
	cset	w9, ne
	stp	w8, w9, [x19, #8]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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
	.comm	_MDIO_AN_EEE_LPABLE,4,2         ; @MDIO_AN_EEE_LPABLE
.subsections_via_symbols
