	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genphy_c45_read_lpa            ## -- Begin function genphy_c45_read_lpa
	.p2align	4, 0x90
_genphy_c45_read_lpa:                   ## @genphy_c45_read_lpa
	.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
	movq	%rdi, %r14
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MDIO_STAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_phy_read_mmd
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_MDIO_AN_STAT1_COMPLETE@GOTPCREL(%rip), %rax
	movq	_ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	8(%r14), %esi
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_MDIO_AN_STAT1_LPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	callq	_linkmode_mod_bit
	movl	(%r15), %esi
	movq	_MDIO_AN_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_read_mmd
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movl	8(%r14), %edi
	movl	%ebx, %esi
	callq	_mii_adv_mod_linkmode_adv_t
	movq	_LPA_PAUSE_CAP@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, (%r14)
	movq	_LPA_PAUSE_ASYM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, 4(%r14)
	movl	(%r15), %esi
	movq	_MDIO_AN_10GBT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_read_mmd
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	8(%r14), %edi
	movl	%ebx, %esi
	callq	_mii_10gbt_stat_mod_linkmode_lpa_t
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	callq	_linkmode_clear_bit
	movl	8(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_mii_10gbt_stat_mod_linkmode_lpa_t
	movl	8(%r14), %edi
	xorl	%esi, %esi
	callq	_mii_adv_mod_linkmode_adv_t
	movq	$0, (%r14)
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_STAT1,4,2                 ## @MDIO_STAT1
	.comm	_MDIO_AN_STAT1_COMPLETE,4,2     ## @MDIO_AN_STAT1_COMPLETE
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ## @ETHTOOL_LINK_MODE_Autoneg_BIT
	.comm	_MDIO_AN_STAT1_LPABLE,4,2       ## @MDIO_AN_STAT1_LPABLE
	.comm	_MDIO_AN_LPA,4,2                ## @MDIO_AN_LPA
	.comm	_LPA_PAUSE_CAP,4,2              ## @LPA_PAUSE_CAP
	.comm	_LPA_PAUSE_ASYM,4,2             ## @LPA_PAUSE_ASYM
	.comm	_MDIO_AN_10GBT_STAT,4,2         ## @MDIO_AN_10GBT_STAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genphy_c45_read_lpa            ; -- Begin function genphy_c45_read_lpa
	.p2align	2
_genphy_c45_read_lpa:                   ; @genphy_c45_read_lpa
	.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	x19, x0
Lloh0:
	adrp	x21, _MDIO_MMD_AN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _MDIO_STAT1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_STAT1@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_phy_read_mmd
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh5:
	adrp	x8, _MDIO_AN_STAT1_COMPLETE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_AN_STAT1_COMPLETE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	ldr	w1, [x19, #8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.2:
Lloh11:
	adrp	x8, _MDIO_AN_STAT1_LPABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MDIO_AN_STAT1_LPABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w2, w8, w20
	bl	_linkmode_mod_bit
	ldr	w1, [x21]
Lloh14:
	adrp	x8, _MDIO_AN_LPA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MDIO_AN_LPA@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_mii_adv_mod_linkmode_adv_t
Lloh17:
	adrp	x8, _LPA_PAUSE_CAP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LPA_PAUSE_CAP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w8, ne
	str	w8, [x19]
Lloh20:
	adrp	x8, _LPA_PAUSE_ASYM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LPA_PAUSE_ASYM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w8, ne
	str	w8, [x19, #4]
	ldr	w1, [x21]
Lloh23:
	adrp	x8, _MDIO_AN_10GBT_STAT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MDIO_AN_10GBT_STAT@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_mii_10gbt_stat_mod_linkmode_lpa_t
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	bl	_linkmode_clear_bit
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_mii_10gbt_stat_mod_linkmode_lpa_t
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_mii_adv_mod_linkmode_adv_t
	mov	w20, #0
	str	xzr, [x19]
LBB0_6:
	mov	x0, x20
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_STAT1,4,2                 ; @MDIO_STAT1
	.comm	_MDIO_AN_STAT1_COMPLETE,4,2     ; @MDIO_AN_STAT1_COMPLETE
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ; @ETHTOOL_LINK_MODE_Autoneg_BIT
	.comm	_MDIO_AN_STAT1_LPABLE,4,2       ; @MDIO_AN_STAT1_LPABLE
	.comm	_MDIO_AN_LPA,4,2                ; @MDIO_AN_LPA
	.comm	_LPA_PAUSE_CAP,4,2              ; @LPA_PAUSE_CAP
	.comm	_LPA_PAUSE_ASYM,4,2             ; @LPA_PAUSE_ASYM
	.comm	_MDIO_AN_10GBT_STAT,4,2         ; @MDIO_AN_10GBT_STAT
.subsections_via_symbols
