	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genphy_read_abilities          ## -- Begin function genphy_read_abilities
	.p2align	4, 0x90
_genphy_read_abilities:                 ## @genphy_read_abilities
	.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	_phy_basic_ports_array@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	(%r14), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_linkmode_set_bit_array
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_BMSR_ANEGCAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	callq	_linkmode_mod_bit
	movq	_ETHTOOL_LINK_MODE_100baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_BMSR_100FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	callq	_linkmode_mod_bit
	movq	_ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_BMSR_100HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	callq	_linkmode_mod_bit
	movq	_ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_BMSR_10FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	callq	_linkmode_mod_bit
	movq	_ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_BMSR_10HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	callq	_linkmode_mod_bit
	movq	_BMSR_ESTATEN@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.2:
	movq	_MII_ESTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_ESTATUS_1000_TFULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	callq	_linkmode_mod_bit
	movq	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_ESTATUS_1000_THALF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	callq	_linkmode_mod_bit
	movq	_ETHTOOL_LINK_MODE_1000baseX_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_ESTATUS_1000_XFULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	callq	_linkmode_mod_bit
	jmp	LBB0_6
LBB0_5:
	movl	%ebx, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_phy_basic_ports_array,4,2      ## @phy_basic_ports_array
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ## @ETHTOOL_LINK_MODE_Autoneg_BIT
	.comm	_BMSR_ANEGCAPABLE,4,2           ## @BMSR_ANEGCAPABLE
	.comm	_ETHTOOL_LINK_MODE_100baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_100baseT_Full_BIT
	.comm	_BMSR_100FULL,4,2               ## @BMSR_100FULL
	.comm	_ETHTOOL_LINK_MODE_100baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_100baseT_Half_BIT
	.comm	_BMSR_100HALF,4,2               ## @BMSR_100HALF
	.comm	_ETHTOOL_LINK_MODE_10baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_10baseT_Full_BIT
	.comm	_BMSR_10FULL,4,2                ## @BMSR_10FULL
	.comm	_ETHTOOL_LINK_MODE_10baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_10baseT_Half_BIT
	.comm	_BMSR_10HALF,4,2                ## @BMSR_10HALF
	.comm	_BMSR_ESTATEN,4,2               ## @BMSR_ESTATEN
	.comm	_MII_ESTATUS,4,2                ## @MII_ESTATUS
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Full_BIT
	.comm	_ESTATUS_1000_TFULL,4,2         ## @ESTATUS_1000_TFULL
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.comm	_ESTATUS_1000_THALF,4,2         ## @ESTATUS_1000_THALF
	.comm	_ETHTOOL_LINK_MODE_1000baseX_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseX_Full_BIT
	.comm	_ESTATUS_1000_XFULL,4,2         ## @ESTATUS_1000_XFULL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genphy_read_abilities          ; -- Begin function genphy_read_abilities
	.p2align	2
_genphy_read_abilities:                 ; @genphy_read_abilities
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _phy_basic_ports_array@GOTPAGE
Lloh1:
	ldr	x8, [x8, _phy_basic_ports_array@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x20
	bl	_linkmode_set_bit_array
Lloh3:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh9:
	adrp	x8, _BMSR_ANEGCAPABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMSR_ANEGCAPABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w2, w8, w20
	bl	_linkmode_mod_bit
Lloh12:
	adrp	x8, _ETHTOOL_LINK_MODE_100baseT_Full_BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_100baseT_Full_BIT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh15:
	adrp	x8, _BMSR_100FULL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BMSR_100FULL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w2, w8, w20
	bl	_linkmode_mod_bit
Lloh18:
	adrp	x8, _ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh21:
	adrp	x8, _BMSR_100HALF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BMSR_100HALF@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	and	w2, w8, w20
	bl	_linkmode_mod_bit
Lloh24:
	adrp	x8, _ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh27:
	adrp	x8, _BMSR_10FULL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BMSR_10FULL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	and	w2, w8, w20
	bl	_linkmode_mod_bit
Lloh30:
	adrp	x8, _ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh33:
	adrp	x8, _BMSR_10HALF@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BMSR_10HALF@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	and	w2, w8, w20
	bl	_linkmode_mod_bit
Lloh36:
	adrp	x8, _BMSR_ESTATEN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BMSR_ESTATEN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
Lloh39:
	adrp	x8, _MII_ESTATUS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MII_ESTATUS@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh42:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh45:
	adrp	x8, _ESTATUS_1000_TFULL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ESTATUS_1000_TFULL@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	and	w2, w8, w20
	bl	_linkmode_mod_bit
Lloh48:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh51:
	adrp	x8, _ESTATUS_1000_THALF@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ESTATUS_1000_THALF@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	and	w2, w8, w20
	bl	_linkmode_mod_bit
Lloh54:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseX_Full_BIT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseX_Full_BIT@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh57:
	adrp	x8, _ESTATUS_1000_XFULL@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ESTATUS_1000_XFULL@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	and	w2, w8, w20
	bl	_linkmode_mod_bit
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_phy_basic_ports_array,4,2      ; @phy_basic_ports_array
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ; @ETHTOOL_LINK_MODE_Autoneg_BIT
	.comm	_BMSR_ANEGCAPABLE,4,2           ; @BMSR_ANEGCAPABLE
	.comm	_ETHTOOL_LINK_MODE_100baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_100baseT_Full_BIT
	.comm	_BMSR_100FULL,4,2               ; @BMSR_100FULL
	.comm	_ETHTOOL_LINK_MODE_100baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_100baseT_Half_BIT
	.comm	_BMSR_100HALF,4,2               ; @BMSR_100HALF
	.comm	_ETHTOOL_LINK_MODE_10baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_10baseT_Full_BIT
	.comm	_BMSR_10FULL,4,2                ; @BMSR_10FULL
	.comm	_ETHTOOL_LINK_MODE_10baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_10baseT_Half_BIT
	.comm	_BMSR_10HALF,4,2                ; @BMSR_10HALF
	.comm	_BMSR_ESTATEN,4,2               ; @BMSR_ESTATEN
	.comm	_MII_ESTATUS,4,2                ; @MII_ESTATUS
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Full_BIT
	.comm	_ESTATUS_1000_TFULL,4,2         ; @ESTATUS_1000_TFULL
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.comm	_ESTATUS_1000_THALF,4,2         ; @ESTATUS_1000_THALF
	.comm	_ETHTOOL_LINK_MODE_1000baseX_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseX_Full_BIT
	.comm	_ESTATUS_1000_XFULL,4,2         ; @ESTATUS_1000_XFULL
.subsections_via_symbols
