	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_complete_ratechange
_xgbe_phy_complete_ratechange:          ## @xgbe_phy_complete_ratechange
	.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, %r14
	movq	_SIR1_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RATECHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_XSIR1_IOWRITE_BITS
	movq	_XGBE_RATECHANGE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SIR0_STATUS@GOTPCREL(%rip), %r12
	movq	_RX_READY@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$50, %edi
	movl	$75, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_XSIR0_IOREAD
	movl	%eax, %r15d
	movl	(%r12), %esi
	movl	(%r13), %edx
	movl	%eax, %edi
	callq	_XSIR_GET_BITS
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %esi
	movq	_TX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_XSIR_GET_BITS
	testq	%rax, %rax
	je	LBB0_3
	jmp	LBB0_5
LBB0_4:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r15d, %r8d
	callq	_netif_dbg
LBB0_5:
	movq	_RXTX_REG6@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_RESETB_RXD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_XRXTX_IOWRITE_BITS
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XRXTX_IOWRITE_BITS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIR1_SPEED,4,2                 ## @SIR1_SPEED
	.comm	_RATECHANGE,4,2                 ## @RATECHANGE
	.comm	_XGBE_RATECHANGE_COUNT,4,2      ## @XGBE_RATECHANGE_COUNT
	.comm	_SIR0_STATUS,4,2                ## @SIR0_STATUS
	.comm	_RX_READY,4,2                   ## @RX_READY
	.comm	_TX_READY,4,2                   ## @TX_READY
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SerDes rx/tx not ready (%#hx)\n"

	.comm	_RXTX_REG6,4,2                  ## @RXTX_REG6
	.comm	_RESETB_RXD,4,2                 ## @RESETB_RXD
	.no_dead_strip	_xgbe_phy_complete_ratechange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_complete_ratechange
_xgbe_phy_complete_ratechange:          ; @xgbe_phy_complete_ratechange
	.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, _SIR1_SPEED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIR1_SPEED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RATECHANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RATECHANGE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_XSIR1_IOWRITE_BITS
Lloh6:
	adrp	x8, _XGBE_RATECHANGE_COUNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XGBE_RATECHANGE_COUNT@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x22, _SIR0_STATUS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _SIR0_STATUS@GOTPAGEOFF]
Lloh11:
	adrp	x23, _RX_READY@GOTPAGE
Lloh12:
	ldr	x23, [x23, _RX_READY@GOTPAGEOFF]
Lloh13:
	adrp	x24, _TX_READY@GOTPAGE
Lloh14:
	ldr	x24, [x24, _TX_READY@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w21, w21, #1
	cbz	w21, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #50
	mov	w1, #75
	bl	_usleep_range
	ldr	w1, [x22]
	mov	x0, x19
	bl	_XSIR0_IOREAD
	mov	x20, x0
	ldr	w1, [x22]
	ldr	w2, [x23]
	bl	_XSIR_GET_BITS
	cbz	x0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_XSIR_GET_BITS
	cbz	x0, LBB0_1
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _link@GOTPAGE
Lloh16:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_netif_dbg
LBB0_5:
Lloh20:
	adrp	x20, _RXTX_REG6@GOTPAGE
Lloh21:
	ldr	x20, [x20, _RXTX_REG6@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh22:
	adrp	x21, _RESETB_RXD@GOTPAGE
Lloh23:
	ldr	x21, [x21, _RESETB_RXD@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #0
	bl	_XRXTX_IOWRITE_BITS
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #1
	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
	b	_XRXTX_IOWRITE_BITS
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SIR1_SPEED,4,2                 ; @SIR1_SPEED
	.comm	_RATECHANGE,4,2                 ; @RATECHANGE
	.comm	_XGBE_RATECHANGE_COUNT,4,2      ; @XGBE_RATECHANGE_COUNT
	.comm	_SIR0_STATUS,4,2                ; @SIR0_STATUS
	.comm	_RX_READY,4,2                   ; @RX_READY
	.comm	_TX_READY,4,2                   ; @TX_READY
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SerDes rx/tx not ready (%#hx)\n"

	.comm	_RXTX_REG6,4,2                  ; @RXTX_REG6
	.comm	_RESETB_RXD,4,2                 ; @RESETB_RXD
	.no_dead_strip	_xgbe_phy_complete_ratechange
.subsections_via_symbols
