	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv3310_config_aneg
_mv3310_config_aneg:                    ## @mv3310_config_aneg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_ETH_TP_MDI_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movq	(%rdi), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_genphy_c45_pma_setup_forced    ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_genphy_c45_an_config_aneg
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	8(%rbx), %edi
	callq	_linkmode_adv_to_mii_ctrl1000_t
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MV_AN_CTRL1000@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_ADVERTISE_1000FULL@GOTPCREL(%rip), %rdi
	movq	_ADVERTISE_1000HALF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdi), %ecx
	movq	%rbx, %rdi
	movl	%eax, %r8d
	callq	_phy_modify_mmd_changed
	testl	%eax, %eax
	js	LBB0_3
## %bb.6:
	xorl	%esi, %esi
	orl	%r14d, %eax
	setne	%sil
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_genphy_c45_check_and_restart_aneg ## TAILCALL
LBB0_3:
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_TP_MDI_AUTO,4,2            ## @ETH_TP_MDI_AUTO
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MV_AN_CTRL1000,4,2             ## @MV_AN_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ## @ADVERTISE_1000FULL
	.comm	_ADVERTISE_1000HALF,4,2         ## @ADVERTISE_1000HALF
	.no_dead_strip	_mv3310_config_aneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv3310_config_aneg
_mv3310_config_aneg:                    ; @mv3310_config_aneg
	.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, _ETH_TP_MDI_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_TP_MDI_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #12]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_genphy_c45_pma_setup_forced
LBB0_2:
	mov	x0, x19
	bl	_genphy_c45_an_config_aneg
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_linkmode_adv_to_mii_ctrl1000_t
	mov	x4, x0
Lloh6:
	adrp	x8, _MDIO_MMD_AN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_MMD_AN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MV_AN_CTRL1000@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MV_AN_CTRL1000@GOTPAGEOFF]
Lloh11:
	adrp	x9, _ADVERTISE_1000FULL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ADVERTISE_1000FULL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _ADVERTISE_1000HALF@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ADVERTISE_1000HALF@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	bl	_phy_modify_mmd_changed
	tbnz	w0, #31, LBB0_5
; %bb.4:
	orr	w8, w0, w20
	cmp	w8, #0
	cset	w1, ne
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_genphy_c45_check_and_restart_aneg
LBB0_5:
	mov	x20, x0
LBB0_6:
	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	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_TP_MDI_AUTO,4,2            ; @ETH_TP_MDI_AUTO
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MV_AN_CTRL1000,4,2             ; @MV_AN_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ; @ADVERTISE_1000FULL
	.comm	_ADVERTISE_1000HALF,4,2         ; @ADVERTISE_1000HALF
	.no_dead_strip	_mv3310_config_aneg
.subsections_via_symbols
