	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_check_for_serdes_link_generic
_e1000_check_for_serdes_link_generic:   ## @e1000_check_for_serdes_link_generic
	.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, %r15
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_er32
	movl	%eax, %r12d
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, %ebx
	movq	_RXCW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	jne	LBB0_7
## %bb.1:
	movq	_E1000_RXCW_C@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_7:
	movq	_E1000_CTRL_SLU@GOTPCREL(%rip), %rbx
	testl	%r12d, (%rbx)
	je	LBB0_10
## %bb.8:
	movq	_E1000_RXCW_C@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	callq	_e_dbg
	movq	_TXCW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	_ew32
	movl	(%r13), %edi
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, %r12d
	movl	%r12d, %esi
	callq	_ew32
	movl	$1, 8(%r15)
	jmp	LBB0_16
LBB0_10:
	movq	_E1000_TXCW_ANE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_TXCW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	testl	%ebx, %eax
	jne	LBB0_16
## %bb.11:
	movl	$10, %edi
	callq	_udelay
	movq	_RXCW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_RXCW_SYNCH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.12:
	movq	_E1000_RXCW_IV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_16
## %bb.13:
	movl	$1, 8(%r15)
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_15
LBB0_2:
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_TXCW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E1000_TXCW_ANE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	4(%r15), %esi
	callq	_ew32
	movl	(%r13), %edi
	callq	_er32
	movq	_E1000_CTRL_SLU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_E1000_CTRL_FD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	%r15, %rdi
	callq	_e1000_config_fc_after_link_up
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_24
LBB0_14:
	movl	$0, 8(%r15)
	leaq	L_.str.4(%rip), %rdi
LBB0_15:
	callq	_e_dbg
	jmp	LBB0_16
LBB0_3:
	movl	$1, (%r15)
	jmp	LBB0_25
LBB0_5:
	xorl	%r14d, %r14d
LBB0_16:
	movq	_E1000_TXCW_ANE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_TXCW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	testl	%ebx, %eax
	je	LBB0_25
## %bb.17:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.18:
	movl	$10, %edi
	callq	_udelay
	movq	_RXCW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_RXCW_SYNCH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.19:
	movq	_E1000_RXCW_IV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.21:
	movl	$0, 8(%r15)
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_24
LBB0_23:
	movl	$0, 8(%r15)
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_24
LBB0_22:
	movl	$0, 8(%r15)
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_24
LBB0_20:
	movl	$1, 8(%r15)
	leaq	L_.str.5(%rip), %rdi
LBB0_24:
	callq	_e_dbg
LBB0_25:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_RXCW,4,2                       ## @RXCW
	.comm	_E1000_STATUS_LU,4,2            ## @E1000_STATUS_LU
	.comm	_E1000_RXCW_C,4,2               ## @E1000_RXCW_C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NOT RXing /C/, disable AutoNeg and force link.\n"

	.comm	_TXCW,4,2                       ## @TXCW
	.comm	_E1000_TXCW_ANE,4,2             ## @E1000_TXCW_ANE
	.comm	_E1000_CTRL_SLU,4,2             ## @E1000_CTRL_SLU
	.comm	_E1000_CTRL_FD,4,2              ## @E1000_CTRL_FD
L_.str.1:                               ## @.str.1
	.asciz	"Error configuring flow control\n"

L_.str.2:                               ## @.str.2
	.asciz	"RXing /C/, enable AutoNeg and stop forcing link.\n"

	.comm	_E1000_RXCW_SYNCH,4,2           ## @E1000_RXCW_SYNCH
	.comm	_E1000_RXCW_IV,4,2              ## @E1000_RXCW_IV
L_.str.3:                               ## @.str.3
	.asciz	"SERDES: Link up - forced.\n"

L_.str.4:                               ## @.str.4
	.asciz	"SERDES: Link down - force failed.\n"

L_.str.5:                               ## @.str.5
	.asciz	"SERDES: Link up - autoneg completed successfully.\n"

L_.str.6:                               ## @.str.6
	.asciz	"SERDES: Link down - invalidcodewords detected in autoneg.\n"

L_.str.7:                               ## @.str.7
	.asciz	"SERDES: Link down - no sync.\n"

L_.str.8:                               ## @.str.8
	.asciz	"SERDES: Link down - autoneg failed\n"

	.no_dead_strip	_e1000_check_for_serdes_link_generic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_check_for_serdes_link_generic
_e1000_check_for_serdes_link_generic:   ; @e1000_check_for_serdes_link_generic
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x28, _CTRL@GOTPAGE
Lloh4:
	ldr	x28, [x28, _CTRL@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_er32
	mov	x21, x0
Lloh5:
	adrp	x24, _STATUS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _STATUS@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_er32
	mov	x22, x0
Lloh7:
	adrp	x23, _RXCW@GOTPAGE
Lloh8:
	ldr	x23, [x23, _RXCW@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_er32
Lloh9:
	adrp	x25, _E1000_STATUS_LU@GOTPAGE
Lloh10:
	ldr	x25, [x25, _E1000_STATUS_LU@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh11:
	adrp	x26, _E1000_TXCW_ANE@GOTPAGE
Lloh12:
	ldr	x26, [x26, _E1000_TXCW_ANE@GOTPAGEOFF]
Lloh13:
	adrp	x27, _TXCW@GOTPAGE
Lloh14:
	ldr	x27, [x27, _TXCW@GOTPAGEOFF]
	tst	w8, w22
	b.ne	LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _E1000_RXCW_C@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E1000_RXCW_C@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
LBB0_2:
Lloh18:
	adrp	x22, _E1000_CTRL_SLU@GOTPAGE
Lloh19:
	ldr	x22, [x22, _E1000_CTRL_SLU@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.3:
Lloh20:
	adrp	x8, _E1000_RXCW_C@GOTPAGE
Lloh21:
	ldr	x8, [x8, _E1000_RXCW_C@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dbg
	ldr	w0, [x27]
	ldr	w1, [x20, #4]
	bl	_ew32
	ldr	w0, [x28]
	ldr	w8, [x22]
	bic	w1, w21, w8
	bl	_ew32
	mov	w8, #1
	str	w8, [x20, #8]
	b	LBB0_14
LBB0_5:
	ldr	w21, [x26]
	ldr	w0, [x27]
	bl	_er32
	tst	w0, w21
	b.ne	LBB0_14
; %bb.6:
	mov	w0, #10
	bl	_udelay
	ldr	w0, [x23]
	bl	_er32
Lloh25:
	adrp	x8, _E1000_RXCW_SYNCH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E1000_RXCW_SYNCH@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.7:
Lloh28:
	adrp	x8, _E1000_RXCW_IV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _E1000_RXCW_IV@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_14
; %bb.8:
	mov	w8, #1
	str	w8, [x20, #8]
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_9:
	ldr	w8, [x20]
	cbz	w8, LBB0_24
; %bb.10:
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	ldr	w0, [x27]
	ldr	w8, [x20, #4]
	ldr	w9, [x26]
	bic	w1, w8, w9
	bl	_ew32
	ldr	w0, [x28]
	bl	_er32
Lloh35:
	adrp	x8, _E1000_CTRL_SLU@GOTPAGE
Lloh36:
	ldr	x8, [x8, _E1000_CTRL_SLU@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _E1000_CTRL_FD@GOTPAGE
Lloh39:
	ldr	x9, [x9, _E1000_CTRL_FD@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w1, w8, w9
	ldr	w0, [x28]
	bl	_ew32
	mov	x0, x20
	bl	_e1000_config_fc_after_link_up
	mov	x19, x0
	cbz	x0, LBB0_14
; %bb.11:
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_12:
	str	wzr, [x20, #8]
Lloh43:
	adrp	x0, l_.str.4@PAGE
Lloh44:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_13:
	bl	_e_dbg
LBB0_14:
	ldr	w21, [x26]
	ldr	w0, [x27]
	bl	_er32
	tst	w0, w21
	b.eq	LBB0_23
; %bb.15:
	ldr	w0, [x24]
	bl	_er32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_19
; %bb.16:
	mov	w0, #10
	bl	_udelay
	ldr	w0, [x23]
	bl	_er32
Lloh45:
	adrp	x8, _E1000_RXCW_SYNCH@GOTPAGE
Lloh46:
	ldr	x8, [x8, _E1000_RXCW_SYNCH@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_20
; %bb.17:
Lloh48:
	adrp	x8, _E1000_RXCW_IV@GOTPAGE
Lloh49:
	ldr	x8, [x8, _E1000_RXCW_IV@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_21
; %bb.18:
	str	wzr, [x20, #8]
Lloh51:
	adrp	x0, l_.str.6@PAGE
Lloh52:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_22
LBB0_19:
	str	wzr, [x20, #8]
Lloh53:
	adrp	x0, l_.str.8@PAGE
Lloh54:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_22
LBB0_20:
	str	wzr, [x20, #8]
Lloh55:
	adrp	x0, l_.str.7@PAGE
Lloh56:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_22
LBB0_21:
	mov	w8, #1
	str	w8, [x20, #8]
Lloh57:
	adrp	x0, l_.str.5@PAGE
Lloh58:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_22:
	bl	_e_dbg
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_23
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_RXCW,4,2                       ; @RXCW
	.comm	_E1000_STATUS_LU,4,2            ; @E1000_STATUS_LU
	.comm	_E1000_RXCW_C,4,2               ; @E1000_RXCW_C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NOT RXing /C/, disable AutoNeg and force link.\n"

	.comm	_TXCW,4,2                       ; @TXCW
	.comm	_E1000_TXCW_ANE,4,2             ; @E1000_TXCW_ANE
	.comm	_E1000_CTRL_SLU,4,2             ; @E1000_CTRL_SLU
	.comm	_E1000_CTRL_FD,4,2              ; @E1000_CTRL_FD
l_.str.1:                               ; @.str.1
	.asciz	"Error configuring flow control\n"

l_.str.2:                               ; @.str.2
	.asciz	"RXing /C/, enable AutoNeg and stop forcing link.\n"

	.comm	_E1000_RXCW_SYNCH,4,2           ; @E1000_RXCW_SYNCH
	.comm	_E1000_RXCW_IV,4,2              ; @E1000_RXCW_IV
l_.str.3:                               ; @.str.3
	.asciz	"SERDES: Link up - forced.\n"

l_.str.4:                               ; @.str.4
	.asciz	"SERDES: Link down - force failed.\n"

l_.str.5:                               ; @.str.5
	.asciz	"SERDES: Link up - autoneg completed successfully.\n"

l_.str.6:                               ; @.str.6
	.asciz	"SERDES: Link down - invalidcodewords detected in autoneg.\n"

l_.str.7:                               ; @.str.7
	.asciz	"SERDES: Link down - no sync.\n"

l_.str.8:                               ; @.str.8
	.asciz	"SERDES: Link down - autoneg failed\n"

	.no_dead_strip	_e1000_check_for_serdes_link_generic
.subsections_via_symbols
