	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_xmac_link_ok
_falcon_xmac_link_ok:                   ## @falcon_xmac_link_ok
	.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	(%rdi), %rax
	movq	_LOOPBACK_XGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_falcon_xgxs_link_ok
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	8(%rbx), %eax
	movq	_MDIO_MMD_PHYXS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %r14d
	btl	%ecx, %eax
	jae	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_LOOPBACK_INTERNAL
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_ef4_mdio_phyxgxs_lane_sync
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	jmp	LBB0_6
LBB0_2:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOOPBACK_XGMII,8,3             ## @LOOPBACK_XGMII
	.comm	_MDIO_MMD_PHYXS,4,2             ## @MDIO_MMD_PHYXS
	.no_dead_strip	_falcon_xmac_link_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_xmac_link_ok
_falcon_xmac_link_ok:                   ; @falcon_xmac_link_ok
	.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	x8, [x0]
Lloh0:
	adrp	x9, _LOOPBACK_XGMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LOOPBACK_XGMII@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_falcon_xgxs_link_ok
	cbz	x0, LBB0_6
LBB0_2:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _MDIO_MMD_PHYXS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MDIO_MMD_PHYXS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_LOOPBACK_INTERNAL
	cbz	x0, LBB0_5
LBB0_4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_ef4_mdio_phyxgxs_lane_sync
	cmp	x0, #0
	cset	w0, ne
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LOOPBACK_XGMII,8,3             ; @LOOPBACK_XGMII
	.comm	_MDIO_MMD_PHYXS,4,2             ; @MDIO_MMD_PHYXS
	.no_dead_strip	_falcon_xmac_link_ok
.subsections_via_symbols
