	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_gmac_link_state
_mvpp2_gmac_link_state:                 ## @mvpp2_gmac_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	_MVPP2_GMAC_STATUS0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_MVPP2_GMAC_STATUS0_AN_COMPLETE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, (%rbx)
	movq	_MVPP2_GMAC_STATUS0_LINK_UP@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 4(%rbx)
	movq	_MVPP2_GMAC_STATUS0_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	%eax, %esi
	andl	(%rcx), %esi
	setne	%dl
	movl	%edx, 8(%rbx)
	movl	(%r14), %edx
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpl	$129, %edx
	je	LBB0_7
## %bb.1:
	cmpl	$128, %edx
	jne	LBB0_3
## %bb.2:
	movq	_SPEED_2500@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_3:
	movq	_MVPP2_GMAC_STATUS0_GMII_SPEED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_7
## %bb.4:
	movq	_MVPP2_GMAC_STATUS0_MII_SPEED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.6:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rbx)
	movl	$0, 12(%rbx)
	movq	_MVPP2_GMAC_STATUS0_RX_PAUSE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.9:
	movq	_MLO_PAUSE_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	jmp	LBB0_10
LBB0_8:
	xorl	%ecx, %ecx
LBB0_10:
	movq	_MVPP2_GMAC_STATUS0_TX_PAUSE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_12
## %bb.11:
	movq	_MLO_PAUSE_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 12(%rbx)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_GMAC_STATUS0,8,3         ## @MVPP2_GMAC_STATUS0
	.comm	_MVPP2_GMAC_STATUS0_AN_COMPLETE,4,2 ## @MVPP2_GMAC_STATUS0_AN_COMPLETE
	.comm	_MVPP2_GMAC_STATUS0_LINK_UP,4,2 ## @MVPP2_GMAC_STATUS0_LINK_UP
	.comm	_MVPP2_GMAC_STATUS0_FULL_DUPLEX,4,2 ## @MVPP2_GMAC_STATUS0_FULL_DUPLEX
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_2500,8,3                 ## @SPEED_2500
	.comm	_MVPP2_GMAC_STATUS0_GMII_SPEED,4,2 ## @MVPP2_GMAC_STATUS0_GMII_SPEED
	.comm	_MVPP2_GMAC_STATUS0_MII_SPEED,4,2 ## @MVPP2_GMAC_STATUS0_MII_SPEED
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_MVPP2_GMAC_STATUS0_RX_PAUSE,4,2 ## @MVPP2_GMAC_STATUS0_RX_PAUSE
	.comm	_MLO_PAUSE_RX,4,2               ## @MLO_PAUSE_RX
	.comm	_MVPP2_GMAC_STATUS0_TX_PAUSE,4,2 ## @MVPP2_GMAC_STATUS0_TX_PAUSE
	.comm	_MLO_PAUSE_TX,4,2               ## @MLO_PAUSE_TX
	.no_dead_strip	_mvpp2_gmac_link_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_gmac_link_state
_mvpp2_gmac_link_state:                 ; @mvpp2_gmac_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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _MVPP2_GMAC_STATUS0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MVPP2_GMAC_STATUS0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _MVPP2_GMAC_STATUS0_AN_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MVPP2_GMAC_STATUS0_AN_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	str	w8, [x19]
Lloh6:
	adrp	x8, _MVPP2_GMAC_STATUS0_LINK_UP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MVPP2_GMAC_STATUS0_LINK_UP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
Lloh9:
	adrp	x9, _MVPP2_GMAC_STATUS0_FULL_DUPLEX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MVPP2_GMAC_STATUS0_FULL_DUPLEX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w0
	cset	w9, ne
	stp	w8, w9, [x19, #4]
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _SPEED_2500@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPEED_2500@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _MVPP2_GMAC_STATUS0_GMII_SPEED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MVPP2_GMAC_STATUS0_GMII_SPEED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
LBB0_4:
Lloh17:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	str	wzr, [x19, #12]
Lloh19:
	adrp	x8, _MVPP2_GMAC_STATUS0_RX_PAUSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MVPP2_GMAC_STATUS0_RX_PAUSE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
Lloh22:
	adrp	x8, _MLO_PAUSE_RX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MLO_PAUSE_RX@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
Lloh25:
	adrp	x9, _MVPP2_GMAC_STATUS0_TX_PAUSE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MVPP2_GMAC_STATUS0_TX_PAUSE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_10
; %bb.9:
Lloh28:
	adrp	x9, _MLO_PAUSE_TX@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MLO_PAUSE_TX@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #12]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh31:
	adrp	x8, _MVPP2_GMAC_STATUS0_MII_SPEED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MVPP2_GMAC_STATUS0_MII_SPEED@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh36:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh37:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_GMAC_STATUS0,8,3         ; @MVPP2_GMAC_STATUS0
	.comm	_MVPP2_GMAC_STATUS0_AN_COMPLETE,4,2 ; @MVPP2_GMAC_STATUS0_AN_COMPLETE
	.comm	_MVPP2_GMAC_STATUS0_LINK_UP,4,2 ; @MVPP2_GMAC_STATUS0_LINK_UP
	.comm	_MVPP2_GMAC_STATUS0_FULL_DUPLEX,4,2 ; @MVPP2_GMAC_STATUS0_FULL_DUPLEX
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_2500,8,3                 ; @SPEED_2500
	.comm	_MVPP2_GMAC_STATUS0_GMII_SPEED,4,2 ; @MVPP2_GMAC_STATUS0_GMII_SPEED
	.comm	_MVPP2_GMAC_STATUS0_MII_SPEED,4,2 ; @MVPP2_GMAC_STATUS0_MII_SPEED
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_MVPP2_GMAC_STATUS0_RX_PAUSE,4,2 ; @MVPP2_GMAC_STATUS0_RX_PAUSE
	.comm	_MLO_PAUSE_RX,4,2               ; @MLO_PAUSE_RX
	.comm	_MVPP2_GMAC_STATUS0_TX_PAUSE,4,2 ; @MVPP2_GMAC_STATUS0_TX_PAUSE
	.comm	_MLO_PAUSE_TX,4,2               ; @MLO_PAUSE_TX
	.no_dead_strip	_mvpp2_gmac_link_state
.subsections_via_symbols
