	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_status_10g
_link_status_10g:                       ## @link_status_10g
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	24(%r12), %rax
	movq	_LOOPBACK_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	(%r12), %rsi
	movq	16(%r12), %rax
	movl	8(%rax), %edi
	callq	_phy_decode
	movq	(%r12), %rcx
	movq	16(%r12), %rdx
	movq	(%rdx), %rdx
	cltq
	movq	(%rdx,%rax,8), %rax
	movq	_NIU_PHY_ID_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rax,%rcx,4), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	cmpl	$128, %edx
	jne	LBB0_3
## %bb.2:
	callq	_link_status_10g_mrvl
	jmp	LBB0_4
LBB0_3:
	callq	_link_status_10g_bcom
LBB0_4:
	movl	%eax, %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LOOPBACK_DISABLED,8,3          ## @LOOPBACK_DISABLED
	.comm	_NIU_PHY_ID_MASK,4,2            ## @NIU_PHY_ID_MASK
	.no_dead_strip	_link_status_10g
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_status_10g
_link_status_10g:                       ; @link_status_10g
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #24]
Lloh3:
	adrp	x9, _LOOPBACK_DISABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LOOPBACK_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #8]
	ldr	x1, [x21]
	bl	_phy_decode
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
Lloh6:
	adrp	x9, _NIU_PHY_ID_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NIU_PHY_ID_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
	mov	x0, x21
	mov	x1, x20
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
	bl	_link_status_10g_mrvl
	b	LBB0_5
LBB0_3:
	neg	w20, w22
	b	LBB0_6
LBB0_4:
	bl	_link_status_10g_bcom
LBB0_5:
	mov	x20, x0
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LOOPBACK_DISABLED,8,3          ; @LOOPBACK_DISABLED
	.comm	_NIU_PHY_ID_MASK,4,2            ; @NIU_PHY_ID_MASK
	.no_dead_strip	_link_status_10g
.subsections_via_symbols
