	.file	"extr_if_bge.c_bge_read_eeprom.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bge_read_eeprom, @function
bge_read_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
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	test	ecx, ecx
	jle	.L5
	mov	r12, rdi
	mov	ebx, edx
	lea	r13d, [rcx+rdx]
	mov	rbp, rsi
	lea	r14, 4[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR 4[rsp]
	add	ebx, 1
	add	rbp, 4
	mov	DWORD PTR -4[rbp], eax
	cmp	ebx, r13d
	je	.L5
.L4:
	mov	rdx, r14
	mov	esi, ebx
	mov	rdi, r12
	call	bge_eeprom_getbyte@PLT
	test	eax, eax
	je	.L11
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bge_read_eeprom, .-bge_read_eeprom
	.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_if_bge.c_bge_read_eeprom.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bge_read_eeprom, %function
bge_read_eeprom:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r3, #0
	push	{r4, r5, r6, r7, lr}
	mov	ip, #0
	movgt	r4, r2
	mov	r6, r0
	ldr	r0, .L13
	sub	sp, sp, #12
	ldr	r0, [r0]
	str	r0, [sp, #4]
	mov	r0,#0
	subgt	r5, r1, #4
	str	ip, [sp]
	addgt	r7, r3, r4
	bgt	.L4
	b	.L5
.L11:
	ldr	r3, [sp]
	add	r4, r4, #1
	cmp	r4, r7
	str	r3, [r5, #4]!
	beq	.L5
.L4:
	mov	r2, sp
	mov	r1, r4
	mov	r0, r6
	bl	bge_eeprom_getbyte
	cmp	r0, #0
	beq	.L11
	mov	r0, #1
	b	.L1
.L5:
	mov	r0, #0
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	bge_read_eeprom, .-bge_read_eeprom
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
