	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv3310_get_features
_mv3310_get_features:                   ## @mv3310_get_features
	.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
	callq	_genphy_c45_pma_read_abilities
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_mv3310_has_pma_ngbaset_quirk
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_PMA_NG_EXTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_read_mmd
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_ETHTOOL_LINK_MODE_2500baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_MDIO_PMA_NG_EXTABLE_2_5GBT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r15d, %edx
	callq	_linkmode_mod_bit
	movq	_ETHTOOL_LINK_MODE_5000baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_MDIO_PMA_NG_EXTABLE_5GBT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r15d, %edx
	callq	_linkmode_mod_bit
	jmp	LBB0_5
LBB0_3:
	movl	%r15d, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_MDIO_PMA_NG_EXTABLE,4,2        ## @MDIO_PMA_NG_EXTABLE
	.comm	_ETHTOOL_LINK_MODE_2500baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_2500baseT_Full_BIT
	.comm	_MDIO_PMA_NG_EXTABLE_2_5GBT,4,2 ## @MDIO_PMA_NG_EXTABLE_2_5GBT
	.comm	_ETHTOOL_LINK_MODE_5000baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_5000baseT_Full_BIT
	.comm	_MDIO_PMA_NG_EXTABLE_5GBT,4,2   ## @MDIO_PMA_NG_EXTABLE_5GBT
	.no_dead_strip	_mv3310_get_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv3310_get_features
_mv3310_get_features:                   ; @mv3310_get_features
	.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
	bl	_genphy_c45_pma_read_abilities
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_mv3310_has_pma_ngbaset_quirk
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MDIO_PMA_NG_EXTABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_PMA_NG_EXTABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _ETHTOOL_LINK_MODE_2500baseT_Full_BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_2500baseT_Full_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh9:
	adrp	x8, _MDIO_PMA_NG_EXTABLE_2_5GBT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_PMA_NG_EXTABLE_2_5GBT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w2, w8, w20
	bl	_linkmode_mod_bit
Lloh12:
	adrp	x8, _ETHTOOL_LINK_MODE_5000baseT_Full_BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_5000baseT_Full_BIT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh15:
	adrp	x8, _MDIO_PMA_NG_EXTABLE_5GBT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MDIO_PMA_NG_EXTABLE_5GBT@GOTPAGEOFF]
Lloh17:
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_MDIO_PMA_NG_EXTABLE,4,2        ; @MDIO_PMA_NG_EXTABLE
	.comm	_ETHTOOL_LINK_MODE_2500baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_2500baseT_Full_BIT
	.comm	_MDIO_PMA_NG_EXTABLE_2_5GBT,4,2 ; @MDIO_PMA_NG_EXTABLE_2_5GBT
	.comm	_ETHTOOL_LINK_MODE_5000baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_5000baseT_Full_BIT
	.comm	_MDIO_PMA_NG_EXTABLE_5GBT,4,2   ; @MDIO_PMA_NG_EXTABLE_5GBT
	.no_dead_strip	_mv3310_get_features
.subsections_via_symbols
