	.file	"extr_t4_hw.c_t4_eeprom_ptov.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	t4_eeprom_ptov
	.type	t4_eeprom_ptov, @function
t4_eeprom_ptov:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	edi, 1023
	jbe	.L7
	imul	esi, edx
	mov	ecx, DWORD PTR EEPROMSIZE[rip]
	lea	eax, 1024[rsi]
	cmp	eax, edi
	ja	.L8
	mov	eax, DWORD PTR EINVAL[rip]
	lea	edx, -1024[rdi]
	sub	edx, esi
	neg	eax
	cmp	edi, ecx
	cmovb	eax, edx
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	lea	eax, -1024[rcx+rdi]
	sub	eax, esi
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	lea	eax, 31744[rdi]
	ret
	.cfi_endproc
.LFE0:
	.size	t4_eeprom_ptov, .-t4_eeprom_ptov
	.comm	EINVAL,4,4
	.comm	EEPROMSIZE,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_t4_hw.c_t4_eeprom_ptov.c"
	.text
	.align	2
	.global	t4_eeprom_ptov
	.syntax unified
	.arm
	.fpu softvfp
	.type	t4_eeprom_ptov, %function
t4_eeprom_ptov:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r0, #1024
	bcc	.L7
	mul	r2, r1, r2
	ldr	r3, .L9
	add	r1, r2, #1024
	cmp	r1, r0
	ldr	r3, [r3]
	bhi	.L8
	cmp	r0, r3
	ldrcs	r3, .L9+4
	subcc	r0, r0, #1024
	subcc	r0, r0, r2
	ldrcs	r0, [r3]
	rsbcs	r0, r0, #0
	bx	lr
.L8:
	sub	r3, r3, #1024
	add	r0, r3, r0
	sub	r0, r0, r2
	bx	lr
.L7:
	add	r0, r0, #31744
	bx	lr
.L10:
	.align	2
.L9:
	.word	EEPROMSIZE
	.word	EINVAL
	.size	t4_eeprom_ptov, .-t4_eeprom_ptov
	.comm	EINVAL,4,4
	.comm	EEPROMSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
