	.file	"extr_et131x.c_et131x_init_eeprom.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not read PCI config space for EEPROM Status\n"
	.align 8
.LC1:
	.string	"Fatal EEPROM Status Error - 0x%04x\n"
	.text
	.p2align 4
	.type	et131x_init_eeprom, @function
et131x_init_eeprom:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 16[rdi]
	mov	esi, DWORD PTR ET1310_PCI_EEPROM_STATUS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	mov	rdx, r12
	mov	rdi, rbp
	call	pci_read_config_byte@PLT
	mov	esi, DWORD PTR ET1310_PCI_EEPROM_STATUS[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	pci_read_config_byte@PLT
	test	rax, rax
	jne	.L21
	mov	edx, DWORD PTR 4[rsp]
	test	dl, 76
	je	.L4
	cmp	DWORD PTR 0[rbp], 1
	je	.L22
.L5:
	lea	rdi, 4[rbp]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	mov	DWORD PTR [rbx], 0
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L23
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L4:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 1
	mov	rdx, QWORD PTR 8[rbx]
	mov	esi, 112
	mov	rdi, rbx
	call	eeprom_read@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, 113
	mov	rdi, rbx
	lea	rdx, 4[rax]
	call	eeprom_read@PLT
	mov	rdx, QWORD PTR 8[rbx]
	xor	eax, eax
	cmp	DWORD PTR [rdx], 205
	je	.L1
	mov	DWORD PTR 4[rdx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, 4[rbp]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	xor	r12d, r12d
	mov	edx, 254
	xor	r13d, r13d
	lea	r14, eedata.1947[rip]
.L8:
	mov	esi, r12d
	mov	rdi, rbx
	call	eeprom_write@PLT
	test	rax, rax
	mov	eax, 1
	cmovs	r13d, eax
	add	r12, 1
	cmp	r12, 3
	je	.L7
	mov	edx, DWORD PTR [r14+r12*4]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	DWORD PTR 0[rbp], 1
	jne	.L12
	and	r13d, 1
	je	.L4
.L12:
	mov	edx, DWORD PTR 4[rsp]
	jmp	.L5
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	et131x_init_eeprom, .-et131x_init_eeprom
	.section	.rodata
	.align 16
	.type	eedata.1947, @object
	.size	eedata.1947, 16
eedata.1947:
	.long	254
	.long	19
	.long	16
	.long	255
	.comm	ET1310_PCI_EEPROM_STATUS,4,4
	.comm	EIO,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_et131x.c_et131x_init_eeprom.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not read PCI config space for EEPROM Status\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Fatal EEPROM Status Error - 0x%04x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	et131x_init_eeprom, %function
et131x_init_eeprom:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r5, .L24
	ldr	r7, [r0, #8]
	sub	sp, sp, #12
	ldr	r3, .L24+4
	ldr	r1, [r5]
	mov	r2, sp
	mov	r4, r0
	mov	r0, r7
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	pci_read_config_byte
	ldr	r1, [r5]
	mov	r2, sp
	mov	r0, r7
	bl	pci_read_config_byte
	subs	r5, r0, #0
	bne	.L21
	ldr	r2, [sp]
	tst	r2, #76
	beq	.L4
	ldr	r3, [r7]
	cmp	r3, #1
	beq	.L22
.L5:
	ldr	r1, .L24+8
	add	r0, r7, #4
	bl	dev_err
	mov	r2, #0
	ldr	r3, .L24+12
	str	r2, [r4]
	ldr	r0, [r3]
	rsb	r5, r0, #0
.L1:
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L4:
	mov	r3, #1
	mov	r1, #112
	str	r3, [r4]
	ldr	r2, [r4, #4]
	mov	r0, r4
	bl	eeprom_read
	ldr	r2, [r4, #4]
	mov	r1, #113
	add	r2, r2, #4
	mov	r0, r4
	bl	eeprom_read
	ldr	r3, [r4, #4]
	ldr	r2, [r3]
	cmp	r2, #205
	movne	r2, #0
	strne	r2, [r3, #4]
	b	.L1
.L21:
	ldr	r1, .L24+16
	add	r0, r7, #4
	bl	dev_err
	ldr	r3, .L24+12
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L22:
	mov	r6, r5
	mov	r8, r5
	mov	r2, #254
	ldr	r9, .L24+20
.L8:
	mov	r1, r6
	mov	r0, r4
	bl	eeprom_write
	add	r6, r6, #1
	cmp	r0, #0
	movlt	r8, #1
	cmp	r6, #3
	ldrne	r2, [r9], #4
	bne	.L8
.L7:
	ldr	r3, [r7]
	cmp	r3, #1
	orrne	r8, r8, #1
	tst	r8, #1
	beq	.L4
	ldr	r2, [sp]
	b	.L5
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	ET1310_PCI_EEPROM_STATUS
	.word	.LC2
	.word	.LC1
	.word	EIO
	.word	.LC0
	.word	.LANCHOR0+4
	.size	et131x_init_eeprom, .-et131x_init_eeprom
	.comm	ET1310_PCI_EEPROM_STATUS,4,4
	.comm	EIO,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	eedata.4231, %object
	.size	eedata.4231, 16
eedata.4231:
	.word	254
	.word	19
	.word	16
	.word	255
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
