	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv3310_aneg_done
_mv3310_aneg_done:                      ## @mv3310_aneg_done
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MV_PCS_BASE_R@GOTPCREL(%rip), %rax
	movq	_MDIO_STAT1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	(%rax), %rdx
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_MDIO_STAT1_LSTATUS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movl	$1, %eax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_genphy_c45_aneg_done           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PCS,4,2               ## @MDIO_MMD_PCS
	.comm	_MV_PCS_BASE_R,8,3              ## @MV_PCS_BASE_R
	.comm	_MDIO_STAT1,8,3                 ## @MDIO_STAT1
	.comm	_MDIO_STAT1_LSTATUS,4,2         ## @MDIO_STAT1_LSTATUS
	.no_dead_strip	_mv3310_aneg_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv3310_aneg_done
_mv3310_aneg_done:                      ; @mv3310_aneg_done
	.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, _MDIO_MMD_PCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_MMD_PCS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MV_PCS_BASE_R@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MV_PCS_BASE_R@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	x8, [x9]
Lloh6:
	adrp	x9, _MDIO_STAT1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MDIO_STAT1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x2, x9, x8
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _MDIO_STAT1_LSTATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_STAT1_LSTATUS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_genphy_c45_aneg_done
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PCS,4,2               ; @MDIO_MMD_PCS
	.comm	_MV_PCS_BASE_R,8,3              ; @MV_PCS_BASE_R
	.comm	_MDIO_STAT1,8,3                 ; @MDIO_STAT1
	.comm	_MDIO_STAT1_LSTATUS,4,2         ; @MDIO_STAT1_LSTATUS
	.no_dead_strip	_mv3310_aneg_done
.subsections_via_symbols
