	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_link_status
_xgene_enet_link_status:                ## @xgene_enet_link_status
	.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	%rdi, %r14
	movq	_INT_PHY_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SGMII_BASE_PAGE_ABILITY_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	sarl	$2, %edx
	callq	_xgene_mii_phy_read
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_LINK_SPEED
	movq	_PHY_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movl	%ebx, %edi
	callq	_LINK_SPEED
	movq	_PHY_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_PHY_ADDR,4,2               ## @INT_PHY_ADDR
	.comm	_SGMII_BASE_PAGE_ABILITY_ADDR,4,2 ## @SGMII_BASE_PAGE_ABILITY_ADDR
	.comm	_PHY_SPEED_1000,8,3             ## @PHY_SPEED_1000
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_PHY_SPEED_100,8,3              ## @PHY_SPEED_100
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_LINK_UP,4,2                    ## @LINK_UP
	.no_dead_strip	_xgene_enet_link_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_link_status
_xgene_enet_link_status:                ; @xgene_enet_link_status
	.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, x0
Lloh0:
	adrp	x8, _INT_PHY_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_PHY_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SGMII_BASE_PAGE_ABILITY_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SGMII_BASE_PAGE_ABILITY_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w2, w8, #2
	bl	_xgene_mii_phy_read
	mov	x20, x0
	bl	_LINK_SPEED
Lloh6:
	adrp	x8, _PHY_SPEED_1000@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHY_SPEED_1000@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_LINK_SPEED
Lloh11:
	adrp	x8, _PHY_SPEED_100@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHY_SPEED_100@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh16:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh17:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x10, x9, eq
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh18:
	adrp	x8, _LINK_UP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LINK_UP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w0, w8, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_PHY_ADDR,4,2               ; @INT_PHY_ADDR
	.comm	_SGMII_BASE_PAGE_ABILITY_ADDR,4,2 ; @SGMII_BASE_PAGE_ABILITY_ADDR
	.comm	_PHY_SPEED_1000,8,3             ; @PHY_SPEED_1000
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_PHY_SPEED_100,8,3              ; @PHY_SPEED_100
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_LINK_UP,4,2                    ; @LINK_UP
	.no_dead_strip	_xgene_enet_link_status
.subsections_via_symbols
