	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_linkstat_from_phy
_jme_linkstat_from_phy:                 ## @jme_linkstat_from_phy
	.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
	movl	(%rdi), %esi
	movl	4(%rdi), %edi
	movl	$17, %edx
	callq	_jme_mdio_read
	movl	%eax, %r14d
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_jme_mdio_read
	movq	_BMSR_ANCOMP@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_2
## %bb.1:
	movq	_PHY_LINK_AUTONEG_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_BMSR_ANCOMP,4,2                ## @BMSR_ANCOMP
	.comm	_PHY_LINK_AUTONEG_COMPLETE,4,2  ## @PHY_LINK_AUTONEG_COMPLETE
	.no_dead_strip	_jme_linkstat_from_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_linkstat_from_phy
_jme_linkstat_from_phy:                 ; @jme_linkstat_from_phy
	.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
	ldr	w0, [x0, #4]
	ldr	w1, [x19]
	mov	w2, #17
	bl	_jme_mdio_read
	mov	x20, x0
	ldp	w1, w0, [x19]
Lloh0:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_jme_mdio_read
Lloh3:
	adrp	x8, _BMSR_ANCOMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMSR_ANCOMP@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PHY_LINK_AUTONEG_COMPLETE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PHY_LINK_AUTONEG_COMPLETE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w0, w8, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_BMSR_ANCOMP,4,2                ; @BMSR_ANCOMP
	.comm	_PHY_LINK_AUTONEG_COMPLETE,4,2  ; @PHY_LINK_AUTONEG_COMPLETE
	.no_dead_strip	_jme_linkstat_from_phy
.subsections_via_symbols
