	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_status_10g_serdes
_link_status_10g_serdes:                ## @link_status_10g_serdes
	.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, %r12
	movq	_NIU_FLAGS_10G@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_SPEED_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_DUPLEX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	xorl	%edi, %edi
	callq	_XPCS_STATUS
	movl	%eax, %edi
	callq	_nr64_xpcs
	movl	%eax, %ebx
	movq	_XMAC_INTER2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nr64_mac
	testl	$16777216, %eax                 ## imm = 0x1000000
	sete	%al
	shrl	$12, %ebx
	andb	%al, %bl
	movzbl	%bl, %ebx
	testb	%bl, %bl
	je	LBB0_3
## %bb.2:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movl	(%rax), %r13d
	movl	(%rcx), %r14d
LBB0_3:
	movl	%r13d, 12(%r12)
	movl	%r14d, 8(%r12)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_link_status_1g_serdes          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NIU_FLAGS_10G,4,2              ## @NIU_FLAGS_10G
	.comm	_SPEED_INVALID,4,2              ## @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ## @DUPLEX_INVALID
	.comm	_XMAC_INTER2,4,2                ## @XMAC_INTER2
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_link_status_10g_serdes
.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_serdes
_link_status_10g_serdes:                ; @link_status_10g_serdes
	.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, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NIU_FLAGS_10G@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NIU_FLAGS_10G@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SPEED_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPEED_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _DUPLEX_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DUPLEX_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	w0, #0
	bl	_XPCS_STATUS
	bl	_nr64_xpcs
	mov	x22, x0
Lloh9:
	adrp	x8, _XMAC_INTER2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XMAC_INTER2@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_nr64_mac
	tst	w0, #0x1000000
	cset	w8, eq
Lloh12:
	adrp	x9, _SPEED_10000@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SPEED_10000@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	ands	w22, w8, w22, lsr #12
	csel	w8, w9, w23, ne
	csel	w9, w10, w24, ne
	stp	w9, w8, [x20, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	str	w22, [x19]
	mov	w0, #0
	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
	ret
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	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	_link_status_1g_serdes
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NIU_FLAGS_10G,4,2              ; @NIU_FLAGS_10G
	.comm	_SPEED_INVALID,4,2              ; @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ; @DUPLEX_INVALID
	.comm	_XMAC_INTER2,4,2                ; @XMAC_INTER2
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_link_status_10g_serdes
.subsections_via_symbols
