	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_init_eee                   ## -- Begin function phy_init_eee
	.p2align	4, 0x90
_phy_init_eee:                          ## @phy_init_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, 12(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.3:
	movl	%esi, %r14d
	movq	_common@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___ETHTOOL_DECLARE_LINK_MODE_MASK
	movq	_lp@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	___ETHTOOL_DECLARE_LINK_MODE_MASK
	movq	_adv@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	___ETHTOOL_DECLARE_LINK_MODE_MASK
	movq	%r15, %rdi
	callq	_phy_read_status
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_PCS_EEE_ABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	movl	%eax, %edi
	callq	_mmd_eee_cap_to_ethtool_sup_t
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_AN_EEE_LPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	movl	%eax, %ebx
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_AN_EEE_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_mmd_eee_adv_to_linkmode
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_mmd_eee_adv_to_linkmode
	movq	_common@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movl	(%r13), %edx
	callq	_linkmode_and
	movl	8(%r15), %edi
	movq	(%r15), %rsi
	movl	(%rbx), %edx
	callq	_phy_check_valid
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.10:
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PCS_CTRL1_CLKSTOP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_phy_set_bits_mmd
	jmp	LBB0_13
LBB0_11:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	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	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_common,4,2                     ## @common
	.comm	_lp,4,2                         ## @lp
	.comm	_adv,4,2                        ## @adv
	.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_LPABLE,4,2         ## @MDIO_AN_EEE_LPABLE
	.comm	_MDIO_AN_EEE_ADV,4,2            ## @MDIO_AN_EEE_ADV
	.comm	_MDIO_CTRL1,4,2                 ## @MDIO_CTRL1
	.comm	_MDIO_PCS_CTRL1_CLKSTOP_EN,4,2  ## @MDIO_PCS_CTRL1_CLKSTOP_EN
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_init_eee                   ; -- Begin function phy_init_eee
	.p2align	2
_phy_init_eee:                          ; @phy_init_eee
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	mov	x20, x1
Lloh3:
	adrp	x22, _common@GOTPAGE
Lloh4:
	ldr	x22, [x22, _common@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	___ETHTOOL_DECLARE_LINK_MODE_MASK
Lloh5:
	adrp	x23, _lp@GOTPAGE
Lloh6:
	ldr	x23, [x23, _lp@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	___ETHTOOL_DECLARE_LINK_MODE_MASK
Lloh7:
	adrp	x25, _adv@GOTPAGE
Lloh8:
	ldr	x25, [x25, _adv@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	___ETHTOOL_DECLARE_LINK_MODE_MASK
	mov	x0, x19
	bl	_phy_read_status
	cbnz	w0, LBB0_13
; %bb.3:
Lloh9:
	adrp	x24, _MDIO_MMD_PCS@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MDIO_MMD_PCS@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh11:
	adrp	x8, _MDIO_PCS_EEE_ABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MDIO_PCS_EEE_ABLE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.4:
	bl	_mmd_eee_cap_to_ethtool_sup_t
	cbz	w0, LBB0_10
; %bb.5:
Lloh14:
	adrp	x26, _MDIO_MMD_AN@GOTPAGE
Lloh15:
	ldr	x26, [x26, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh16:
	adrp	x8, _MDIO_AN_EEE_LPABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MDIO_AN_EEE_LPABLE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x21, x0
	ldr	w1, [x26]
Lloh19:
	adrp	x8, _MDIO_AN_EEE_ADV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MDIO_AN_EEE_ADV@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x1, x0
	ldr	w0, [x25]
	bl	_mmd_eee_adv_to_linkmode
	ldr	w0, [x23]
	mov	x1, x21
	bl	_mmd_eee_adv_to_linkmode
	ldr	w0, [x22]
	ldr	w1, [x25]
	ldr	w2, [x23]
	bl	_linkmode_and
	ldr	w0, [x19, #8]
	ldr	x1, [x19]
	ldr	w2, [x22]
	bl	_phy_check_valid
	cbz	w0, LBB0_10
; %bb.8:
	cbz	w20, LBB0_14
; %bb.9:
	ldr	w1, [x24]
Lloh22:
	adrp	x8, _MDIO_CTRL1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MDIO_CTRL1@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _MDIO_PCS_CTRL1_CLKSTOP_EN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MDIO_PCS_CTRL1_CLKSTOP_EN@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_phy_set_bits_mmd
	mov	w0, #0
	b	LBB0_13
LBB0_10:
Lloh28:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh30:
	adrp	x8, _EIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_common,4,2                     ; @common
	.comm	_lp,4,2                         ; @lp
	.comm	_adv,4,2                        ; @adv
	.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_LPABLE,4,2         ; @MDIO_AN_EEE_LPABLE
	.comm	_MDIO_AN_EEE_ADV,4,2            ; @MDIO_AN_EEE_ADV
	.comm	_MDIO_CTRL1,4,2                 ; @MDIO_CTRL1
	.comm	_MDIO_PCS_CTRL1_CLKSTOP_EN,4,2  ; @MDIO_PCS_CTRL1_CLKSTOP_EN
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
.subsections_via_symbols
