	.file	"extr_if_rl.c_rl_read_eeprom.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rl_read_eeprom, @function
rl_read_eeprom:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	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	.L1
	mov	r12, rdi
	mov	r13d, r8d
	mov	ebx, edx
	mov	rbp, rsi
	lea	r14d, [rcx+rdx]
	lea	r15, 4[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 4[rsp]
	add	ebx, 1
	add	rbp, 8
	mov	DWORD PTR -8[rbp], eax
	cmp	ebx, r14d
	je	.L1
.L5:
	mov	rdx, r15
	mov	esi, ebx
	mov	rdi, r12
	call	rl_eeprom_getword@PLT
	test	r13d, r13d
	je	.L3
	mov	edi, DWORD PTR 4[rsp]
	add	ebx, 1
	add	rbp, 8
	call	ntohs@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	ebx, r14d
	jne	.L5
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rl_read_eeprom, .-rl_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_rl.c_rl_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	rl_read_eeprom, %function
rl_read_eeprom:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, .L11
	sub	sp, sp, #8
	cmp	r3, #0
	ldr	r0, [r0]
	str	r0, [sp, #4]
	mov	r0,#0
	ldr	r8, [sp, #32]
	str	ip, [sp]
	ble	.L1
	rsb	r6, r2, r2, lsl #29
	mov	r4, r2
	add	r5, r3, r2
	add	r6, r1, r6, lsl #3
	b	.L5
.L3:
	ldr	r3, [sp]
	str	r3, [r6, r4, lsl #3]
	add	r4, r4, #1
	cmp	r4, r5
	beq	.L1
.L5:
	mov	r2, sp
	mov	r1, r4
	mov	r0, r7
	bl	rl_eeprom_getword
	cmp	r8, #0
	beq	.L3
	ldr	r0, [sp]
	bl	ntohs
	str	r0, [r6, r4, lsl #3]
	add	r4, r4, #1
	cmp	r4, r5
	bne	.L5
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	rl_read_eeprom, .-rl_read_eeprom
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
