	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_mdio_phyxgxs_lane_sync
_ef4_mdio_phyxgxs_lane_sync:            ## @ef4_mdio_phyxgxs_lane_sync
	.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
	movq	_MDIO_MMD_PHYXS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MDIO_PHYXS_LNSTAT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_ef4_mdio_read
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_ef4_mdio_read
	movl	%eax, %ebx
	movq	_MDIO_PHYXS_LNSTAT_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%ebx, %r15d
	jne	LBB0_2
## %bb.1:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, %r8d
	callq	_netif_dbg
LBB0_2:
	xorl	%eax, %eax
	testl	%ebx, %r15d
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PHYXS,4,2             ## @MDIO_MMD_PHYXS
	.comm	_MDIO_PHYXS_LNSTAT,4,2          ## @MDIO_PHYXS_LNSTAT
	.comm	_MDIO_PHYXS_LNSTAT_ALIGN,4,2    ## @MDIO_PHYXS_LNSTAT_ALIGN
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XGXS lane status: %x\n"

	.no_dead_strip	_ef4_mdio_phyxgxs_lane_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_mdio_phyxgxs_lane_sync
_ef4_mdio_phyxgxs_lane_sync:            ; @ef4_mdio_phyxgxs_lane_sync
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _MDIO_MMD_PHYXS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MDIO_MMD_PHYXS@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _MDIO_PHYXS_LNSTAT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MDIO_PHYXS_LNSTAT@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_ef4_mdio_read
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ef4_mdio_read
Lloh4:
	adrp	x8, _MDIO_PHYXS_LNSTAT_ALIGN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MDIO_PHYXS_LNSTAT_ALIGN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ands	w20, w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	x4, x0
Lloh7:
	adrp	x8, _hw@GOTPAGE
Lloh8:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
LBB0_2:
	cmp	w20, #0
	cset	w0, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PHYXS,4,2             ; @MDIO_MMD_PHYXS
	.comm	_MDIO_PHYXS_LNSTAT,4,2          ; @MDIO_PHYXS_LNSTAT
	.comm	_MDIO_PHYXS_LNSTAT_ALIGN,4,2    ; @MDIO_PHYXS_LNSTAT_ALIGN
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XGXS lane status: %x\n"

	.no_dead_strip	_ef4_mdio_phyxgxs_lane_sync
.subsections_via_symbols
