	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_status_1g_serdes
_link_status_1g_serdes:                 ## @link_status_1g_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	%rsi, %r14
	movq	%rdi, %r13
	movq	_SPEED_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_DUPLEX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_spin_lock_irqsave
	movq	_PCS_MII_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nr64_pcs
	movq	_PCS_MII_STAT_LINK_STATUS@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	andl	(%rcx), %eax
	setne	%bl
	je	LBB0_2
## %bb.1:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movl	(%rax), %r15d
	movl	(%rcx), %r12d
LBB0_2:
	movl	%r15d, 8(%r13)
	movl	%r12d, 4(%r13)
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_INVALID,4,2              ## @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ## @DUPLEX_INVALID
	.comm	_PCS_MII_STAT,4,2               ## @PCS_MII_STAT
	.comm	_PCS_MII_STAT_LINK_STATUS,4,2   ## @PCS_MII_STAT_LINK_STATUS
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_link_status_1g_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_1g_serdes
_link_status_1g_serdes:                 ; @link_status_1g_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
Lloh0:
	adrp	x8, _SPEED_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _DUPLEX_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DUPLEX_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	bl	_spin_lock_irqsave
Lloh6:
	adrp	x8, _PCS_MII_STAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCS_MII_STAT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_nr64_pcs
Lloh9:
	adrp	x8, _PCS_MII_STAT_LINK_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCS_MII_STAT_LINK_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w23, ne
Lloh12:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh14:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	csel	w8, w21, w8, eq
	csel	w9, w22, w9, eq
	stp	w9, w8, [x20, #4]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	str	w23, [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
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_INVALID,4,2              ; @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ; @DUPLEX_INVALID
	.comm	_PCS_MII_STAT,4,2               ; @PCS_MII_STAT
	.comm	_PCS_MII_STAT_LINK_STATUS,4,2   ; @PCS_MII_STAT_LINK_STATUS
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_link_status_1g_serdes
.subsections_via_symbols
