	.file	"extr_eeprom.c_p54_convert_db.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	p54_convert_db, @function
p54_convert_db:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 16[rdi]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	r14, rax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	r13, rax
	call	le16_to_cpu@PLT
	mov	r12, r13
	mov	edi, DWORD PTR 4[rbx]
	mov	rbp, rax
	call	le16_to_cpu@PLT
	imul	r12, rbp
	xor	r8d, r8d
	mov	QWORD PTR 8[rsp], rax
	add	r12, rax
	cmp	r12, r14
	jne	.L1
	lea	rax, 20[r12]
	cmp	rax, r15
	jne	.L1
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	edi, 40[r12]
	call	kmalloc@PLT
	mov	r8, rax
	test	rax, rax
	je	.L1
	mov	rdx, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 32[rax]
	mov	QWORD PTR [rax], r13
	mov	QWORD PTR 8[rax], rbp
	mov	esi, DWORD PTR [rbx]
	mov	QWORD PTR 16[rax], rdx
	mov	rdx, r12
	mov	QWORD PTR 24[rax], r12
	mov	QWORD PTR 8[rsp], rax
	call	memcpy@PLT
	mov	r8, QWORD PTR 8[rsp]
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rax, r8
	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
	.cfi_endproc
.LFE0:
	.size	p54_convert_db, .-p54_convert_db
	.comm	GFP_KERNEL,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_eeprom.c_p54_convert_db.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	p54_convert_db, %function
p54_convert_db:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r0, #16]
	mov	r9, r1
	bl	le16_to_cpu
	mov	r5, r0
	ldr	r0, [r4, #12]
	bl	le16_to_cpu
	mov	r8, r0
	ldr	r0, [r4, #8]
	bl	le16_to_cpu
	mov	r7, r0
	ldr	r0, [r4, #4]
	bl	le16_to_cpu
	mla	r10, r7, r8, r0
	cmp	r10, r5
	bne	.L4
	mov	r6, r0
	add	r0, r10, #20
	cmp	r0, r9
	bne	.L4
	ldr	r3, .L10
	ldr	r1, [r3]
	bl	kmalloc
	subs	r5, r0, #0
	beq	.L1
	mov	r2, r10
	ldr	r1, [r4]
	ldr	r0, [r5, #16]
	str	r8, [r5]
	str	r7, [r5, #4]
	str	r6, [r5, #8]
	str	r10, [r5, #12]
	bl	memcpy
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	GFP_KERNEL
	.size	p54_convert_db, .-p54_convert_db
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
