	.file	"extr_ethtool.c_e1000_set_82571_fiber_loopback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	e1000_set_82571_fiber_loopback, @function
e1000_set_82571_fiber_loopback:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR CTRL[rip]
	call	er32@PLT
	mov	edi, DWORD PTR CTRL[rip]
	or	eax, DWORD PTR E1000_CTRL_SLU[rip]
	mov	esi, eax
	call	ew32@PLT
	mov	edi, DWORD PTR TXCW[rip]
	call	er32@PLT
	mov	edi, DWORD PTR TXCW[rip]
	and	eax, 2147483647
	mov	esi, eax
	call	ew32@PLT
	mov	edi, DWORD PTR STATUS[rip]
	call	er32@PLT
	test	DWORD PTR E1000_STATUS_LU[rip], eax
	je	.L5
.L2:
	mov	esi, DWORD PTR E1000_SCTL_ENABLE_SERDES_LOOPBACK[rip]
	mov	edi, DWORD PTR SCTL[rip]
	call	ew32@PLT
	xor	eax, eax
	call	e1e_flush@PLT
	mov	esi, 20000
	mov	edi, 10000
	call	usleep_range@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR CTRL[rip]
	call	er32@PLT
	mov	edi, DWORD PTR CTRL[rip]
	or	eax, DWORD PTR E1000_CTRL_ILOS[rip]
	mov	esi, eax
	call	ew32@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	e1000_set_82571_fiber_loopback, .-e1000_set_82571_fiber_loopback
	.comm	TXCW,4,4
	.comm	STATUS,4,4
	.comm	SCTL,4,4
	.comm	E1000_STATUS_LU,4,4
	.comm	E1000_SCTL_ENABLE_SERDES_LOOPBACK,4,4
	.comm	E1000_CTRL_SLU,4,4
	.comm	E1000_CTRL_ILOS,4,4
	.comm	CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ethtool.c_e1000_set_82571_fiber_loopback.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_set_82571_fiber_loopback, %function
e1000_set_82571_fiber_loopback:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L6
	ldr	r5, .L6+4
	ldr	r0, [r4]
	bl	er32
	mov	r1, r0
	ldr	r3, .L6+8
	ldr	r0, [r4]
	ldr	r3, [r3]
	orr	r1, r1, r3
	bl	ew32
	ldr	r0, [r5]
	bl	er32
	mov	r1, r0
	ldr	r0, [r5]
	bic	r1, r1, #-2147483648
	bl	ew32
	ldr	r3, .L6+12
	ldr	r0, [r3]
	bl	er32
	ldr	r3, .L6+16
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L5
.L2:
	ldr	r2, .L6+20
	ldr	r3, .L6+24
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ew32
	bl	e1e_flush
	ldr	r1, .L6+28
	ldr	r0, .L6+32
	bl	usleep_range
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r0, [r4]
	bl	er32
	mov	r1, r0
	ldr	r3, .L6+36
	ldr	r0, [r4]
	ldr	r3, [r3]
	orr	r1, r1, r3
	bl	ew32
	b	.L2
.L7:
	.align	2
.L6:
	.word	CTRL
	.word	TXCW
	.word	E1000_CTRL_SLU
	.word	STATUS
	.word	E1000_STATUS_LU
	.word	E1000_SCTL_ENABLE_SERDES_LOOPBACK
	.word	SCTL
	.word	20000
	.word	10000
	.word	E1000_CTRL_ILOS
	.size	e1000_set_82571_fiber_loopback, .-e1000_set_82571_fiber_loopback
	.comm	TXCW,4,4
	.comm	STATUS,4,4
	.comm	SCTL,4,4
	.comm	E1000_STATUS_LU,4,4
	.comm	E1000_SCTL_ENABLE_SERDES_LOOPBACK,4,4
	.comm	E1000_CTRL_SLU,4,4
	.comm	E1000_CTRL_ILOS,4,4
	.comm	CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
