	.file	"extr_ah_eeprom_v3.c_legacyEepromDiag.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	legacyEepromDiag, @function
legacyEepromDiag:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rbx, esi
	call	AH_PRIVATE@PLT
	mov	rax, QWORD PTR [rax]
	cmp	ebx, 130
	jle	.L10
	cmp	ebx, 131
	jne	.L4
	mov	QWORD PTR [r12], rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	DWORD PTR 0[rbp], 8
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, DWORD PTR AH_TRUE[rip]
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	cmp	ebx, 127
	jg	.L11
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR AH_FALSE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR [rax]
	sal	rbx, 4
	xor	edx, edx
	lea	rbx, -2080[rax+rbx]
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR [r12], rax
	cmp	rax, QWORD PTR AH_NULL[rip]
	je	.L6
	mov	eax, DWORD PTR [rbx]
	mov	esi, 4
	lea	edi, 0[0+rax*4]
	call	roundup@PLT
	mov	edx, DWORD PTR [rbx]
	lea	edx, [rax+rdx*4]
.L6:
	mov	DWORD PTR 0[rbp], edx
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR AH_TRUE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	legacyEepromDiag, .-legacyEepromDiag
	.comm	AH_TRUE,4,4
	.comm	AH_NULL,8,8
	.comm	AH_FALSE,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_ah_eeprom_v3.c_legacyEepromDiag.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	legacyEepromDiag, %function
legacyEepromDiag:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	bl	AH_PRIVATE
	cmp	r4, #130
	ldr	r3, [r0]
	ble	.L10
	cmp	r4, #131
	bne	.L4
	mov	r1, #4
	ldr	r0, [sp, #16]
	ldr	r2, .L12
	str	r3, [r0]
	ldr	r3, [sp, #20]
	str	r1, [r3]
	ldr	r0, [r2]
	pop	{r4, r5, r6, pc}
.L10:
	cmp	r4, #127
	bgt	.L11
.L4:
	ldr	r3, .L12+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r5, [r3]
	add	r4, r4, #536870912
	sub	r4, r4, #130
	add	r3, r5, r4, lsl #3
	ldr	r3, [r3, #4]
	ldr	r1, [sp, #16]
	ldr	r2, .L12+8
	str	r3, [r1]
	ldr	r2, [r2]
	cmp	r3, r2
	moveq	r0, #0
	beq	.L6
	ldr	r0, [r5, r4, lsl #3]
	mov	r1, #4
	lsl	r0, r0, #2
	bl	roundup
	ldr	r3, [r5, r4, lsl #3]
	add	r0, r0, r3, lsl #2
.L6:
	ldr	r2, [sp, #20]
	ldr	r3, .L12
	str	r0, [r2]
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	AH_TRUE
	.word	AH_FALSE
	.word	AH_NULL
	.size	legacyEepromDiag, .-legacyEepromDiag
	.comm	AH_TRUE,4,4
	.comm	AH_NULL,4,4
	.comm	AH_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
