	.file	"extr_eeprom.c_load_eeprom_dump.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
.LC1:
	.string	"fopen"
.LC2:
	.string	"%x: %x %x %x %x %x %x %x %x\n"
	.text
	.p2align 4
	.globl	load_eeprom_dump
	.type	load_eeprom_dump, @function
load_eeprom_dump:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	sub	rsp, 1088
	.cfi_def_cfa_offset 1120
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1080[rsp], rax
	xor	eax, eax
	call	fopen@PLT
	mov	r12, rax
	test	rax, rax
	je	.L15
.L2:
	lea	rbp, 48[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, r12
	mov	esi, 1024
	mov	rdi, rbp
	call	fgets@PLT
	test	rax, rax
	je	.L5
	mov	rdi, r12
	call	feof@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, rbp
	call	strlen@PLT
	test	eax, eax
	jle	.L6
	mov	rdi, rbp
	call	strlen@PLT
	sub	eax, 1
	cdqe
	mov	BYTE PTR 48[rsp+rax], 0
.L6:
	mov	rdi, rbp
	call	strlen@PLT
	test	eax, eax
	je	.L5
	lea	rcx, 16[rsp]
	lea	rdx, 12[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 1128
	mov	rdi, rbp
	lea	rax, 52[rsp]
	lea	rsi, .LC2[rip]
	push	rax
	.cfi_def_cfa_offset 1136
	lea	rax, 56[rsp]
	push	rax
	.cfi_def_cfa_offset 1144
	lea	rax, 60[rsp]
	push	rax
	.cfi_def_cfa_offset 1152
	lea	rax, 64[rsp]
	push	rax
	.cfi_def_cfa_offset 1160
	lea	rax, 68[rsp]
	push	rax
	.cfi_def_cfa_offset 1168
	lea	r9, 72[rsp]
	lea	r8, 68[rsp]
	call	sscanf@PLT
	movsx	rcx, DWORD PTR 60[rsp]
	mov	esi, DWORD PTR 64[rsp]
	lea	rax, 0[0+rcx*4]
	mov	DWORD PTR [rbx+rcx*4], esi
	mov	rdx, rcx
	mov	ecx, DWORD PTR 68[rsp]
	add	edx, 8
	mov	DWORD PTR 4[rbx+rax], ecx
	mov	ecx, DWORD PTR 72[rsp]
	mov	DWORD PTR 60[rsp], edx
	mov	edx, DWORD PTR 92[rsp]
	mov	DWORD PTR 8[rbx+rax], ecx
	mov	ecx, DWORD PTR 76[rsp]
	mov	DWORD PTR 28[rbx+rax], edx
	mov	DWORD PTR 12[rbx+rax], ecx
	mov	ecx, DWORD PTR 80[rsp]
	mov	DWORD PTR 16[rbx+rax], ecx
	mov	ecx, DWORD PTR 84[rsp]
	mov	DWORD PTR 20[rbx+rax], ecx
	mov	ecx, DWORD PTR 88[rsp]
	add	rsp, 48
	.cfi_def_cfa_offset 1120
	mov	DWORD PTR 24[rbx+rax], ecx
.L3:
	mov	rdi, r12
	call	feof@PLT
	test	rax, rax
	je	.L7
.L5:
	mov	rdi, r12
	call	fclose@PLT
	mov	rax, QWORD PTR 1080[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 1088
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L15:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L2
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	load_eeprom_dump, .-load_eeprom_dump
	.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_eeprom.c_load_eeprom_dump.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"fopen\000"
	.align	2
.LC2:
	.ascii	"%x: %x %x %x %x %x %x %x %x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	load_eeprom_dump
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_eeprom_dump, %function
load_eeprom_dump:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L20
	sub	sp, sp, #1088
	sub	sp, sp, #8
	mov	r5, r1
	ldr	r1, .L20+4
	ldr	r3, [r3]
	str	r3, [sp, #1092]
	mov	r3,#0
	bl	fopen
	subs	r4, r0, #0
	beq	.L18
.L2:
	ldr	r6, .L20+8
	b	.L3
.L7:
	mov	r2, r4
	mov	r1, #1024
	add	r0, sp, #68
	bl	fgets
	cmp	r0, #0
	beq	.L5
	mov	r0, r4
	bl	feof
	subs	r7, r0, #0
	bne	.L5
	add	r0, sp, #68
	bl	strlen
	cmp	r0, #0
	addne	r3, sp, #1088
	addne	r3, r3, #8
	addne	r0, r3, r0
	strbne	r7, [r0, #-1029]
	ldrb	r3, [sp, #68]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	add	lr, sp, #60
	add	ip, sp, #52
	add	r2, sp, #40
	add	r7, sp, #64
	add	r0, sp, #48
	add	r3, sp, #44
	add	r1, sp, #56
	str	r2, [sp]
	str	r7, [sp, #24]
	str	lr, [sp, #20]
	str	ip, [sp, #12]
	str	r0, [sp, #8]
	str	r3, [sp, #4]
	add	r2, sp, #32
	add	r3, sp, #36
	str	r1, [sp, #16]
	add	r0, sp, #68
	mov	r1, r6
	bl	sscanf
	ldr	r2, [sp, #32]
	ldr	r10, [sp, #36]
	ldr	r9, [sp, #40]
	ldr	r8, [sp, #44]
	ldr	r7, [sp, #48]
	ldr	lr, [sp, #52]
	ldr	ip, [sp, #56]
	ldr	r0, [sp, #60]
	ldr	r1, [sp, #64]
	add	r3, r5, r2, lsl #2
	str	r10, [r5, r2, lsl #2]
	add	r2, r2, #8
	str	r2, [sp, #32]
	str	r9, [r3, #4]
	str	r8, [r3, #8]
	str	r7, [r3, #12]
	str	lr, [r3, #16]
	str	ip, [r3, #20]
	str	r0, [r3, #24]
	str	r1, [r3, #28]
.L3:
	mov	r0, r4
	bl	feof
	cmp	r0, #0
	beq	.L7
.L5:
	mov	r0, r4
	bl	fclose
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #1092]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #1088
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r1, .L20+12
	mov	r0, #1
	bl	err
	b	.L2
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	load_eeprom_dump, .-load_eeprom_dump
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
