	.file	"extr_am53c974.c_dc390_read_eeprom.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dc390_read_eeprom, @function
dc390_read_eeprom:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR DC390_EEPROM_LEN[rip], 0
	mov	r13, QWORD PTR DC390_EEPROM_READ[rip]
	jle	.L1
	mov	rbx, rdi
	mov	r12, rsi
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	xor	edx, edx
	mov	esi, 192
	mov	rdi, rbx
	call	pci_write_config_byte@PLT
	mov	edi, 160
	call	udelay@PLT
	lea	esi, 0[rbp+r13]
	mov	rdi, rbx
	call	dc390_eeprom_prepare_read@PLT
	mov	rdi, rbx
	call	dc390_eeprom_get_data@PLT
	xor	edx, edx
	mov	esi, 128
	mov	rdi, rbx
	mov	DWORD PTR [r12+rbp*4], eax
	add	rbp, 1
	call	pci_write_config_byte@PLT
	xor	edx, edx
	mov	esi, 128
	mov	rdi, rbx
	call	pci_write_config_byte@PLT
	mov	edi, 160
	call	udelay@PLT
	cmp	QWORD PTR DC390_EEPROM_LEN[rip], rbp
	jg	.L3
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dc390_read_eeprom, .-dc390_read_eeprom
	.comm	DC390_EEPROM_READ,8,8
	.comm	DC390_EEPROM_LEN,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_am53c974.c_dc390_read_eeprom.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dc390_read_eeprom, %function
dc390_read_eeprom:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L7
	ldr	r3, .L7+4
	ldr	r2, [r7]
	ldr	r8, [r3]
	cmp	r2, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r4, r0
	mov	r6, r1
	mov	r5, #0
.L3:
	mov	r2, #0
	mov	r1, #192
	mov	r0, r4
	bl	pci_write_config_byte
	mov	r0, #160
	bl	udelay
	add	r1, r5, r8
	mov	r0, r4
	bl	dc390_eeprom_prepare_read
	mov	r0, r4
	bl	dc390_eeprom_get_data
	mov	r2, #0
	mov	r1, #128
	str	r0, [r6], #4
	mov	r0, r4
	bl	pci_write_config_byte
	mov	r2, #0
	mov	r1, #128
	mov	r0, r4
	bl	pci_write_config_byte
	mov	r0, #160
	bl	udelay
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L3
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	DC390_EEPROM_LEN
	.word	DC390_EEPROM_READ
	.size	dc390_read_eeprom, .-dc390_read_eeprom
	.comm	DC390_EEPROM_READ,4,4
	.comm	DC390_EEPROM_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
