	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_check_for_fiber_link    ## -- Begin function e1000e_check_for_fiber_link
	.p2align	4, 0x90
_e1000e_check_for_fiber_link:           ## @e1000e_check_for_fiber_link
	.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	%rdi, %r14
	movq	_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_er32
	movl	%eax, %ebx
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, %r15d
	movq	_RXCW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_CTRL_SWDPIN1@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_7
## %bb.1:
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	jne	LBB0_7
## %bb.2:
	movq	_E1000_RXCW_C@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_7:
	movq	_E1000_CTRL_SLU@GOTPCREL(%rip), %r15
	testl	%ebx, (%r15)
	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(%r14), %esi
	callq	_ew32
	movl	(%r12), %edi
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	%ebx, %esi
	callq	_ew32
	movl	$1, 8(%r14)
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.5:
	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(%r14), %esi
	callq	_ew32
	movl	(%r12), %edi
	callq	_er32
	movq	_E1000_CTRL_SLU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_E1000_CTRL_FD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	%r14, %rdi
	callq	_e1000e_config_fc_after_link_up
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dbg
	jmp	LBB0_11
LBB0_4:
	movl	$1, (%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_RXCW,4,2                       ## @RXCW
	.comm	_E1000_CTRL_SWDPIN1,4,2         ## @E1000_CTRL_SWDPIN1
	.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 Rx'ing /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	"Rx'ing /C/, enable AutoNeg and stop forcing link.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_check_for_fiber_link    ; -- Begin function e1000e_check_for_fiber_link
	.p2align	2
_e1000e_check_for_fiber_link:           ; @e1000e_check_for_fiber_link
	.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	x19, x0
Lloh0:
	adrp	x22, _CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_er32
	mov	x20, x0
Lloh2:
	adrp	x8, _STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_er32
	mov	x21, x0
Lloh5:
	adrp	x8, _RXCW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RXCW@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_er32
Lloh8:
	adrp	x8, _E1000_CTRL_SWDPIN1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_CTRL_SWDPIN1@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _E1000_STATUS_LU@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E1000_STATUS_LU@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_3
; %bb.2:
Lloh14:
	adrp	x8, _E1000_RXCW_C@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_RXCW_C@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
LBB0_3:
Lloh17:
	adrp	x21, _E1000_CTRL_SLU@GOTPAGE
Lloh18:
	ldr	x21, [x21, _E1000_CTRL_SLU@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.4:
Lloh19:
	adrp	x8, _E1000_RXCW_C@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E1000_RXCW_C@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dbg
Lloh24:
	adrp	x8, _TXCW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TXCW@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_ew32
	ldr	w0, [x22]
	ldr	w8, [x21]
	bic	w1, w20, w8
	bl	_ew32
	mov	x20, #0
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	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
LBB0_8:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.9:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh29:
	adrp	x8, _TXCW@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TXCW@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w8, [x19, #4]
Lloh32:
	adrp	x9, _E1000_TXCW_ANE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _E1000_TXCW_ANE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	bic	w1, w8, w9
	bl	_ew32
	ldr	w0, [x22]
	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, [x22]
	bl	_ew32
	mov	x0, x19
	bl	_e1000e_config_fc_after_link_up
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.10:
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
	b	LBB0_7
LBB0_11:
	mov	x20, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_RXCW,4,2                       ; @RXCW
	.comm	_E1000_CTRL_SWDPIN1,4,2         ; @E1000_CTRL_SWDPIN1
	.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 Rx'ing /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	"Rx'ing /C/, enable AutoNeg and stop forcing link.\n"

.subsections_via_symbols
