	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp22_xlg_link_state
_mvpp22_xlg_link_state:                 ## @mvpp22_xlg_link_state
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rsi)
	movq	_MVPP22_XLG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_MVPP22_XLG_STATUS_LINK_UP@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 8(%rbx)
	movl	$0, 12(%rbx)
	movq	_MVPP22_XLG_CTRL0_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_MLO_PAUSE_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 12(%rbx)
LBB0_2:
	movq	_MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_MLO_PAUSE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_MVPP22_XLG_STATUS,8,3          ## @MVPP22_XLG_STATUS
	.comm	_MVPP22_XLG_STATUS_LINK_UP,4,2  ## @MVPP22_XLG_STATUS_LINK_UP
	.comm	_MVPP22_XLG_CTRL0_REG,8,3       ## @MVPP22_XLG_CTRL0_REG
	.comm	_MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN,4,2 ## @MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN
	.comm	_MLO_PAUSE_TX,4,2               ## @MLO_PAUSE_TX
	.comm	_MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN,4,2 ## @MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN
	.comm	_MLO_PAUSE_RX,4,2               ## @MLO_PAUSE_RX
	.no_dead_strip	_mvpp22_xlg_link_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp22_xlg_link_state
_mvpp22_xlg_link_state:                 ; @mvpp22_xlg_link_state
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #16]
	movi.2s	v0, #1
	str	d0, [x1]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _MVPP22_XLG_STATUS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MVPP22_XLG_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh6:
	adrp	x8, _MVPP22_XLG_STATUS_LINK_UP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MVPP22_XLG_STATUS_LINK_UP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	stp	w8, wzr, [x19, #8]
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _MVPP22_XLG_CTRL0_REG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MVPP22_XLG_CTRL0_REG@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh12:
	adrp	x8, _MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _MLO_PAUSE_TX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLO_PAUSE_TX@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_2:
Lloh18:
	adrp	x8, _MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh21:
	adrp	x8, _MLO_PAUSE_RX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MLO_PAUSE_RX@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_MVPP22_XLG_STATUS,8,3          ; @MVPP22_XLG_STATUS
	.comm	_MVPP22_XLG_STATUS_LINK_UP,4,2  ; @MVPP22_XLG_STATUS_LINK_UP
	.comm	_MVPP22_XLG_CTRL0_REG,8,3       ; @MVPP22_XLG_CTRL0_REG
	.comm	_MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN,4,2 ; @MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN
	.comm	_MLO_PAUSE_TX,4,2               ; @MLO_PAUSE_TX
	.comm	_MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN,4,2 ; @MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN
	.comm	_MLO_PAUSE_RX,4,2               ; @MLO_PAUSE_RX
	.no_dead_strip	_mvpp22_xlg_link_state
.subsections_via_symbols
