	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_setup_fiber_serdes_link ## -- Begin function e1000e_setup_fiber_serdes_link
	.p2align	4, 0x90
_e1000e_setup_fiber_serdes_link:        ## @e1000e_setup_fiber_serdes_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, %rbx
	movq	_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_er32
	movl	%eax, %r14d
	movq	_E1000_CTRL_LRST@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	%rbx, %rdi
	callq	_e1000_commit_fc_settings_generic
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	notl	%r12d
	andl	%r12d, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	(%rbx), %rax
	movq	_e1000_media_type_internal_serdes@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movl	(%r15), %edi
	callq	_er32
	movq	_E1000_CTRL_SWDPIN1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_e1000_poll_fiber_serdes_link_generic ## TAILCALL
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dbg
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_LRST,4,2            ## @E1000_CTRL_LRST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Auto-negotiation enabled\n"

	.comm	_e1000_media_type_internal_serdes,8,3 ## @e1000_media_type_internal_serdes
	.comm	_E1000_CTRL_SWDPIN1,4,2         ## @E1000_CTRL_SWDPIN1
L_.str.1:                               ## @.str.1
	.asciz	"No signal detected\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_setup_fiber_serdes_link ; -- Begin function e1000e_setup_fiber_serdes_link
	.p2align	2
_e1000e_setup_fiber_serdes_link:        ; @e1000e_setup_fiber_serdes_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	x21, _CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CTRL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
	mov	x20, x0
Lloh2:
	adrp	x8, _E1000_CTRL_LRST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_CTRL_LRST@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_e1000_commit_fc_settings_generic
	cbz	x0, LBB0_2
LBB0_1:
	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_2:
	bic	w20, w20, w22
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	ldr	w0, [x21]
	mov	x1, x20
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _e1000_media_type_internal_serdes@GOTPAGE
Lloh8:
	ldr	x9, [x9, _e1000_media_type_internal_serdes@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x21]
	bl	_er32
Lloh10:
	adrp	x8, _E1000_CTRL_SWDPIN1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_CTRL_SWDPIN1@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
LBB0_4:
	mov	x0, x19
	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
	b	_e1000_poll_fiber_serdes_link_generic
LBB0_5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
	mov	x0, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_LRST,4,2            ; @E1000_CTRL_LRST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Auto-negotiation enabled\n"

	.comm	_e1000_media_type_internal_serdes,8,3 ; @e1000_media_type_internal_serdes
	.comm	_E1000_CTRL_SWDPIN1,4,2         ; @E1000_CTRL_SWDPIN1
l_.str.1:                               ; @.str.1
	.asciz	"No signal detected\n"

.subsections_via_symbols
