	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_set_82571_fiber_loopback
_e1000_set_82571_fiber_loopback:        ## @e1000_set_82571_fiber_loopback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_CTRL_SLU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	_TXCW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_CTRL_ILOS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_ew32
LBB0_2:
	movq	_SCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E1000_SCTL_ENABLE_SERDES_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_SLU,4,2             ## @E1000_CTRL_SLU
	.comm	_TXCW,4,2                       ## @TXCW
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_LU,4,2            ## @E1000_STATUS_LU
	.comm	_E1000_CTRL_ILOS,4,2            ## @E1000_CTRL_ILOS
	.comm	_SCTL,4,2                       ## @SCTL
	.comm	_E1000_SCTL_ENABLE_SERDES_LOOPBACK,4,2 ## @E1000_SCTL_ENABLE_SERDES_LOOPBACK
	.no_dead_strip	_e1000_set_82571_fiber_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_set_82571_fiber_loopback
_e1000_set_82571_fiber_loopback:        ; @e1000_set_82571_fiber_loopback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _CTRL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _CTRL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_er32
Lloh2:
	adrp	x8, _E1000_CTRL_SLU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_CTRL_SLU@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x19]
	bl	_ew32
Lloh5:
	adrp	x20, _TXCW@GOTPAGE
Lloh6:
	ldr	x20, [x20, _TXCW@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
	and	w1, w0, #0x7fffffff
	ldr	w0, [x20]
	bl	_ew32
Lloh7:
	adrp	x8, _STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_er32
Lloh10:
	adrp	x8, _E1000_STATUS_LU@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_STATUS_LU@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_er32
Lloh13:
	adrp	x8, _E1000_CTRL_ILOS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E1000_CTRL_ILOS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x19]
	bl	_ew32
LBB0_2:
Lloh16:
	adrp	x8, _SCTL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SCTL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _E1000_SCTL_ENABLE_SERDES_LOOPBACK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E1000_SCTL_ENABLE_SERDES_LOOPBACK@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_SLU,4,2             ; @E1000_CTRL_SLU
	.comm	_TXCW,4,2                       ; @TXCW
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_LU,4,2            ; @E1000_STATUS_LU
	.comm	_E1000_CTRL_ILOS,4,2            ; @E1000_CTRL_ILOS
	.comm	_SCTL,4,2                       ; @SCTL
	.comm	_E1000_SCTL_ENABLE_SERDES_LOOPBACK,4,2 ; @E1000_SCTL_ENABLE_SERDES_LOOPBACK
	.no_dead_strip	_e1000_set_82571_fiber_loopback
.subsections_via_symbols
