	.file	"extr_e1000_nvm.c_e1000_poll_eerd_eewr_done.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"e1000_poll_eerd_eewr_done"
	.text
	.p2align 4
	.globl	e1000_poll_eerd_eewr_done
	.type	e1000_poll_eerd_eewr_done, @function
e1000_poll_eerd_eewr_done:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, 100000
	call	DEBUGFUNC@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR E1000_EEWR[rip]
	mov	rdi, r12
	call	E1000_READ_REG@PLT
	test	QWORD PTR E1000_NVM_RW_REG_DONE[rip], rax
	jne	.L10
.L4:
	mov	edi, 5
	call	usec_delay@PLT
	sub	rbx, 1
	je	.L11
.L6:
	cmp	DWORD PTR E1000_NVM_POLL_READ[rip], ebp
	jne	.L2
	mov	esi, DWORD PTR E1000_EERD[rip]
	mov	rdi, r12
	call	E1000_READ_REG@PLT
	test	QWORD PTR E1000_NVM_RW_REG_DONE[rip], rax
	je	.L4
.L10:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR E1000_SUCCESS[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR E1000_ERR_NVM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	e1000_poll_eerd_eewr_done, .-e1000_poll_eerd_eewr_done
	.comm	E1000_SUCCESS,4,4
	.comm	E1000_NVM_RW_REG_DONE,8,8
	.comm	E1000_NVM_POLL_READ,4,4
	.comm	E1000_ERR_NVM,4,4
	.comm	E1000_EEWR,4,4
	.comm	E1000_EERD,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_e1000_nvm.c_e1000_poll_eerd_eewr_done.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"e1000_poll_eerd_eewr_done\000"
	.text
	.align	2
	.global	e1000_poll_eerd_eewr_done
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_poll_eerd_eewr_done, %function
e1000_poll_eerd_eewr_done:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	r0, .L11
	mov	r5, r1
	ldr	r4, .L11+4
	bl	DEBUGFUNC
	ldr	r8, .L11+8
	ldr	r7, .L11+12
	ldr	r9, .L11+16
	ldr	r10, .L11+20
	b	.L6
.L4:
	mov	r0, #5
	bl	usec_delay
	subs	r4, r4, #1
	beq	.L10
.L6:
	ldr	r3, [r8]
	mov	r0, r6
	cmp	r3, r5
	ldreq	r1, [r10]
	ldrne	r1, [r9]
	bl	E1000_READ_REG
	ldr	r3, [r7]
	tst	r0, r3
	beq	.L4
	ldr	r3, .L11+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, .L11+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	100000
	.word	E1000_NVM_POLL_READ
	.word	E1000_NVM_RW_REG_DONE
	.word	E1000_EEWR
	.word	E1000_EERD
	.word	E1000_SUCCESS
	.word	E1000_ERR_NVM
	.size	e1000_poll_eerd_eewr_done, .-e1000_poll_eerd_eewr_done
	.comm	E1000_SUCCESS,4,4
	.comm	E1000_NVM_RW_REG_DONE,4,4
	.comm	E1000_NVM_POLL_READ,4,4
	.comm	E1000_ERR_NVM,4,4
	.comm	E1000_EEWR,4,4
	.comm	E1000_EERD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
