	.file	"extr_mac.c_e1000_poll_fiber_serdes_link_generic.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Never got a valid link from auto-neg!!!\n"
	.align 8
.LC1:
	.string	"Error while checking for link\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Valid Link Found\n"
	.text
	.p2align 4
	.type	e1000_poll_fiber_serdes_link_generic, @function
e1000_poll_fiber_serdes_link_generic:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR FIBER_LINK_UP_LIMIT[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	test	rax, rax
	jg	.L4
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR FIBER_LINK_UP_LIMIT[rip]
	add	rbx, 1
	cmp	rax, rbx
	jle	.L2
.L4:
	mov	edi, 10000
	mov	esi, 20000
	call	usleep_range@PLT
	mov	edi, DWORD PTR STATUS[rip]
	call	er32@PLT
	test	QWORD PTR E1000_STATUS_LU[rip], rax
	je	.L3
	mov	rax, QWORD PTR FIBER_LINK_UP_LIMIT[rip]
.L2:
	cmp	rax, rbx
	je	.L12
	mov	DWORD PTR 0[rbp], 0
	lea	rdi, .LC2[rip]
	xor	r12d, r12d
	call	e_dbg@PLT
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	e_dbg@PLT
	mov	DWORD PTR 0[rbp], 1
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	mov	r12, rax
	test	rax, rax
	jne	.L13
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	DWORD PTR 0[rbp], 0
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	e_dbg@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	e1000_poll_fiber_serdes_link_generic, .-e1000_poll_fiber_serdes_link_generic
	.comm	STATUS,4,4
	.comm	FIBER_LINK_UP_LIMIT,8,8
	.comm	E1000_STATUS_LU,8,8
	.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_mac.c_e1000_poll_fiber_serdes_link_generic.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Never got a valid link from auto-neg!!!\012\000"
	.align	2
.LC1:
	.ascii	"Error while checking for link\012\000"
	.align	2
.LC2:
	.ascii	"Valid Link Found\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_poll_fiber_serdes_link_generic, %function
e1000_poll_fiber_serdes_link_generic:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, .L13
	mov	r8, r0
	ldr	r3, [r5]
	mov	r4, #0
	cmp	r3, #0
	ble	.L2
	ldr	r7, .L13+4
	ldr	r10, .L13+8
	ldr	r9, .L13+12
	ldr	r6, .L13+16
	b	.L4
.L3:
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L4:
	mov	r1, r9
	mov	r0, r6
	bl	usleep_range
	ldr	r0, [r7]
	bl	er32
	ldr	r3, [r10]
	tst	r0, r3
	ldr	r3, [r5]
	beq	.L3
.L2:
	cmp	r3, r4
	beq	.L12
	mov	r4, #0
	ldr	r0, .L13+20
	str	r4, [r8]
	bl	e_dbg
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r0, .L13+24
	bl	e_dbg
	mov	r2, #1
	mov	r0, r8
	ldr	r3, [r8, #4]
	str	r2, [r8]
	blx	r3
	subs	r4, r0, #0
	streq	r4, [r8]
	beq	.L1
	ldr	r0, .L13+28
	bl	e_dbg
	b	.L1
.L14:
	.align	2
.L13:
	.word	FIBER_LINK_UP_LIMIT
	.word	STATUS
	.word	E1000_STATUS_LU
	.word	20000
	.word	10000
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	e1000_poll_fiber_serdes_link_generic, .-e1000_poll_fiber_serdes_link_generic
	.comm	STATUS,4,4
	.comm	FIBER_LINK_UP_LIMIT,4,4
	.comm	E1000_STATUS_LU,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
