	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_an73_tx_training
_xgbe_an73_tx_training:                 ## @xgbe_an73_tx_training
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_XGBE_RX_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	callq	_xgbe_in_kr_mode
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MDIO_AN_ADVERTISE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	$2, %rdx
	movq	%rbx, %rdi
	callq	_XMDIO_READ
	movl	%eax, %r14d
	movl	(%r15), %esi
	movq	_MDIO_AN_LPA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	$2, %rdx
	movq	%rbx, %rdi
	callq	_XMDIO_READ
	movl	%eax, %r15d
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MDIO_PMA_10GBR_FECCTRL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movq	%rbx, %rdi
	callq	_XMDIO_READ
	movq	_MDIO_PMA_10GBR_FECABLE_ABLE@GOTPCREL(%rip), %rdx
	movq	_MDIO_PMA_10GBR_FECABLE_ERRABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	testl	$49152, %r14d                   ## imm = 0xC000
	je	LBB0_4
## %bb.2:
	andl	$49152, %r15d                   ## imm = 0xC000
	je	LBB0_4
## %bb.3:
	orl	(%rbx), %ecx
LBB0_4:
	movl	(%r12), %esi
	movq	(%r13), %rdx
	movq	%rbx, %rdi
	callq	_XMDIO_WRITE
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movl	(%r12), %esi
	movq	_MDIO_PMA_10GBR_PMD_CTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	callq	_XMDIO_READ
	movq	_XGBE_KR_TRAINING_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_XGBE_KR_TRAINING_START@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %esi
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_XMDIO_WRITE
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_dbg
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_8:
	movq	_XGBE_AN_PAGE_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGBE_RX_COMPLETE,4,2           ## @XGBE_RX_COMPLETE
	.comm	_XGBE_AN_PAGE_RECEIVED,4,2      ## @XGBE_AN_PAGE_RECEIVED
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_AN_ADVERTISE,8,3          ## @MDIO_AN_ADVERTISE
	.comm	_MDIO_AN_LPA,8,3                ## @MDIO_AN_LPA
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_MDIO_PMA_10GBR_FECCTRL,8,3     ## @MDIO_PMA_10GBR_FECCTRL
	.comm	_MDIO_PMA_10GBR_FECABLE_ABLE,4,2 ## @MDIO_PMA_10GBR_FECABLE_ABLE
	.comm	_MDIO_PMA_10GBR_FECABLE_ERRABLE,4,2 ## @MDIO_PMA_10GBR_FECABLE_ERRABLE
	.comm	_MDIO_PMA_10GBR_PMD_CTRL,8,3    ## @MDIO_PMA_10GBR_PMD_CTRL
	.comm	_XGBE_KR_TRAINING_ENABLE,4,2    ## @XGBE_KR_TRAINING_ENABLE
	.comm	_XGBE_KR_TRAINING_START,4,2     ## @XGBE_KR_TRAINING_START
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KR training initiated\n"

	.no_dead_strip	_xgbe_an73_tx_training
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_an73_tx_training
_xgbe_an73_tx_training:                 ; @xgbe_an73_tx_training
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _XGBE_RX_COMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XGBE_RX_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	bl	_xgbe_in_kr_mode
	cbz	w0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x21, _MDIO_MMD_AN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _MDIO_AN_ADVERTISE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_AN_ADVERTISE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x2, x8, #2
	mov	x0, x19
	bl	_XMDIO_READ
	mov	x20, x0
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _MDIO_AN_LPA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MDIO_AN_LPA@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x2, x8, #2
	mov	x0, x19
	bl	_XMDIO_READ
	mov	x21, x0
Lloh11:
	adrp	x22, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh13:
	adrp	x23, _MDIO_PMA_10GBR_FECCTRL@GOTPAGE
Lloh14:
	ldr	x23, [x23, _MDIO_PMA_10GBR_FECCTRL@GOTPAGEOFF]
	ldr	x2, [x23]
	mov	x0, x19
	bl	_XMDIO_READ
Lloh15:
	adrp	x8, _MDIO_PMA_10GBR_FECABLE_ABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MDIO_PMA_10GBR_FECABLE_ABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _MDIO_PMA_10GBR_FECABLE_ERRABLE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MDIO_PMA_10GBR_FECABLE_ERRABLE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w3, w0, w8
	and	w8, w20, #0xc000
	and	w9, w21, #0xc000
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	orr	w3, w8, w3
LBB0_3:
	ldr	w1, [x22]
	ldr	x2, [x23]
	mov	x0, x19
	bl	_XMDIO_WRITE
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
LBB0_5:
	ldr	w1, [x22]
Lloh21:
	adrp	x20, _MDIO_PMA_10GBR_PMD_CTRL@GOTPAGE
Lloh22:
	ldr	x20, [x20, _MDIO_PMA_10GBR_PMD_CTRL@GOTPAGEOFF]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_XMDIO_READ
Lloh23:
	adrp	x8, _XGBE_KR_TRAINING_ENABLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XGBE_KR_TRAINING_ENABLE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh26:
	adrp	x9, _XGBE_KR_TRAINING_START@GOTPAGE
Lloh27:
	ldr	x9, [x9, _XGBE_KR_TRAINING_START@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	w1, [x22]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_XMDIO_WRITE
Lloh29:
	adrp	x8, _link@GOTPAGE
Lloh30:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
Lloh32:
	adrp	x3, l_.str@PAGE
Lloh33:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x8
LBB0_7:
Lloh34:
	adrp	x8, _XGBE_AN_PAGE_RECEIVED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _XGBE_AN_PAGE_RECEIVED@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_XGBE_RX_COMPLETE,4,2           ; @XGBE_RX_COMPLETE
	.comm	_XGBE_AN_PAGE_RECEIVED,4,2      ; @XGBE_AN_PAGE_RECEIVED
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_AN_ADVERTISE,8,3          ; @MDIO_AN_ADVERTISE
	.comm	_MDIO_AN_LPA,8,3                ; @MDIO_AN_LPA
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_MDIO_PMA_10GBR_FECCTRL,8,3     ; @MDIO_PMA_10GBR_FECCTRL
	.comm	_MDIO_PMA_10GBR_FECABLE_ABLE,4,2 ; @MDIO_PMA_10GBR_FECABLE_ABLE
	.comm	_MDIO_PMA_10GBR_FECABLE_ERRABLE,4,2 ; @MDIO_PMA_10GBR_FECABLE_ERRABLE
	.comm	_MDIO_PMA_10GBR_PMD_CTRL,8,3    ; @MDIO_PMA_10GBR_PMD_CTRL
	.comm	_XGBE_KR_TRAINING_ENABLE,4,2    ; @XGBE_KR_TRAINING_ENABLE
	.comm	_XGBE_KR_TRAINING_START,4,2     ; @XGBE_KR_TRAINING_START
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KR training initiated\n"

	.no_dead_strip	_xgbe_an73_tx_training
.subsections_via_symbols
