	.file	"extr_ixgbe_common.c_ixgbe_read_eerd_buffer_generic.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Eeprom read timed out\n"
	.text
	.p2align 4
	.globl	ixgbe_read_eerd_buffer_generic
	.type	ixgbe_read_eerd_buffer_generic, @function
ixgbe_read_eerd_buffer_generic:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	[QWORD PTR 8[rdi]]
	test	r13, r13
	je	.L12
	cmp	QWORD PTR 0[rbp], rbx
	jle	.L13
	test	r13, r13
	jle	.L8
	mov	rax, rbx
	add	r13, rbx
	neg	rax
	lea	r14, [r12+rax*8]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR IXGBE_EERD[rip]
	mov	rdi, rbp
	call	IXGBE_READ_REG@PLT
	mov	rcx, QWORD PTR IXGBE_EEPROM_RW_REG_DATA[rip]
	sar	rax, cl
	mov	QWORD PTR [r14+rbx*8], rax
	add	rbx, 1
	cmp	rbx, r13
	je	.L8
.L6:
	mov	rcx, QWORD PTR IXGBE_EEPROM_RW_ADDR_SHIFT[rip]
	mov	esi, DWORD PTR IXGBE_EERD[rip]
	mov	rdx, rbx
	mov	rdi, rbp
	sal	rdx, cl
	or	rdx, QWORD PTR IXGBE_EEPROM_RW_REG_START[rip]
	call	IXGBE_WRITE_REG@PLT
	mov	esi, DWORD PTR IXGBE_NVM_POLL_READ[rip]
	mov	rdi, rbp
	call	ixgbe_poll_eerd_eewr_done@PLT
	mov	r12, rax
	test	rax, rax
	je	.L14
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	hw_dbg@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r12, QWORD PTR IXGBE_ERR_EEPROM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L3:
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	r12, QWORD PTR IXGBE_ERR_INVALID_ARGUMENT[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ixgbe_read_eerd_buffer_generic, .-ixgbe_read_eerd_buffer_generic
	.comm	IXGBE_NVM_POLL_READ,4,4
	.comm	IXGBE_ERR_INVALID_ARGUMENT,8,8
	.comm	IXGBE_ERR_EEPROM,8,8
	.comm	IXGBE_EERD,4,4
	.comm	IXGBE_EEPROM_RW_REG_START,8,8
	.comm	IXGBE_EEPROM_RW_REG_DATA,8,8
	.comm	IXGBE_EEPROM_RW_ADDR_SHIFT,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_ixgbe_common.c_ixgbe_read_eerd_buffer_generic.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Eeprom read timed out\012\000"
	.text
	.align	2
	.global	ixgbe_read_eerd_buffer_generic
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_read_eerd_buffer_generic, %function
ixgbe_read_eerd_buffer_generic:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r2
	sub	sp, sp, #12
	ldr	r2, [r0, #4]
	mov	r4, r0
	mov	r7, r1
	mov	r5, r3
	blx	r2
	cmp	r6, #0
	beq	.L12
	ldr	r3, [r4]
	cmp	r3, r7
	ble	.L13
	cmp	r6, #0
	ble	.L8
	mov	r8, r7
	ldr	r10, .L15
	ldr	r9, .L15+4
	ldr	r7, .L15+8
	ldr	fp, .L15+12
	add	r6, r6, r8
	sub	r5, r5, #4
	b	.L6
.L14:
	mov	r0, r4
	ldr	r1, [r7]
	bl	IXGBE_READ_REG
	ldr	r2, [fp]
	cmp	r8, r6
	asr	r0, r0, r2
	str	r0, [r5, #4]!
	beq	.L8
.L6:
	ldr	r0, [r10]
	ldr	r2, [r9]
	ldr	r1, [r7]
	orr	r2, r2, r8, lsl r0
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	ldr	r3, .L15+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	ixgbe_poll_eerd_eewr_done
	subs	r2, r0, #0
	add	r8, r8, #1
	beq	.L14
	mov	r0, r4
	ldr	r1, .L15+20
	str	r2, [sp, #4]
	bl	hw_dbg
	ldr	r2, [sp, #4]
	mov	r0, r2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, .L15+24
	ldr	r2, [r3]
	mov	r0, r2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
.L12:
	ldr	r3, .L15+28
	ldr	r2, [r3]
	mov	r0, r2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r2, #0
	mov	r0, r2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	IXGBE_EEPROM_RW_ADDR_SHIFT
	.word	IXGBE_EEPROM_RW_REG_START
	.word	IXGBE_EERD
	.word	IXGBE_EEPROM_RW_REG_DATA
	.word	IXGBE_NVM_POLL_READ
	.word	.LC0
	.word	IXGBE_ERR_EEPROM
	.word	IXGBE_ERR_INVALID_ARGUMENT
	.size	ixgbe_read_eerd_buffer_generic, .-ixgbe_read_eerd_buffer_generic
	.comm	IXGBE_NVM_POLL_READ,4,4
	.comm	IXGBE_ERR_INVALID_ARGUMENT,4,4
	.comm	IXGBE_ERR_EEPROM,4,4
	.comm	IXGBE_EERD,4,4
	.comm	IXGBE_EEPROM_RW_REG_START,4,4
	.comm	IXGBE_EEPROM_RW_REG_DATA,4,4
	.comm	IXGBE_EEPROM_RW_ADDR_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
