	.file	"903022.c"
	.intel_syntax noprefix
	.text
	.globl	NvmmWrite
	.type	NvmmWrite, @function
NvmmWrite:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	ecx, esi
	mov	eax, edx
	mov	edx, ecx
	mov	WORD PTR -12[rbp], dx
	mov	WORD PTR -16[rbp], ax
	movzx	edx, WORD PTR -12[rbp]
	movzx	eax, WORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	EepromMcuWriteBuffer@PLT
	cmp	al, 1
	jne	.L2
	movzx	eax, WORD PTR -12[rbp]
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	NvmmWrite, .-NvmmWrite
	.globl	NvmmRead
	.type	NvmmRead, @function
NvmmRead:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	ecx, esi
	mov	eax, edx
	mov	edx, ecx
	mov	WORD PTR -12[rbp], dx
	mov	WORD PTR -16[rbp], ax
	movzx	edx, WORD PTR -12[rbp]
	movzx	eax, WORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	EepromMcuReadBuffer@PLT
	cmp	al, 1
	jne	.L5
	movzx	eax, WORD PTR -12[rbp]
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	NvmmRead, .-NvmmRead
	.globl	NvmmCrc32Check
	.type	NvmmCrc32Check, @function
NvmmCrc32Check:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	edx, edi
	mov	eax, esi
	mov	WORD PTR -36[rbp], dx
	mov	WORD PTR -40[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -27[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	movzx	edx, WORD PTR -40[rbp]
	movzx	eax, WORD PTR -36[rbp]
	add	eax, edx
	sub	eax, 8
	movzx	edx, ax
	lea	rax, -24[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	NvmmRead
	cmp	ax, 8
	jne	.L8
	call	Crc32Init@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	WORD PTR -26[rbp], 0
	jmp	.L9
.L12:
	movzx	edx, WORD PTR -40[rbp]
	movzx	eax, WORD PTR -26[rbp]
	add	eax, edx
	movzx	edx, ax
	lea	rax, -27[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	NvmmRead
	cmp	ax, 1
	je	.L10
	mov	eax, 0
	jmp	.L13
.L10:
	lea	rcx, -27[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	Crc32Update@PLT
	mov	QWORD PTR -16[rbp], rax
	movzx	eax, WORD PTR -26[rbp]
	add	eax, 1
	mov	WORD PTR -26[rbp], ax
.L9:
	movzx	eax, WORD PTR -26[rbp]
	movzx	edx, WORD PTR -36[rbp]
	sub	rdx, 8
	cmp	rax, rdx
	jb	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	Crc32Finalize@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	cmp	QWORD PTR -16[rbp], rax
	je	.L8
	mov	eax, 0
	jmp	.L13
.L8:
	mov	eax, 1
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	NvmmCrc32Check, .-NvmmCrc32Check
	.globl	NvmmReset
	.type	NvmmReset, @function
NvmmReset:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	edx, edi
	mov	eax, esi
	mov	WORD PTR -20[rbp], dx
	mov	WORD PTR -24[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 0
	movzx	edx, WORD PTR -24[rbp]
	movzx	eax, WORD PTR -20[rbp]
	add	eax, edx
	sub	eax, 8
	movzx	eax, ax
	lea	rcx, -16[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	EepromMcuWriteBuffer@PLT
	cmp	al, 1
	jne	.L16
	mov	eax, 1
	jmp	.L18
.L16:
	mov	eax, 0
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	NvmmReset, .-NvmmReset
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"903022.c"
	.text
	.align	2
	.global	NvmmWrite
	.syntax unified
	.arm
	.fpu softvfp
	.type	NvmmWrite, %function
NvmmWrite:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r3, r1
	strh	r3, [fp, #-10]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-12]	@ movhi
	ldrh	r2, [fp, #-10]
	ldrh	r3, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	EepromMcuWriteBuffer
	mov	r3, r0
	cmp	r3, #1
	bne	.L2
	ldrh	r3, [fp, #-10]
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	NvmmWrite, .-NvmmWrite
	.align	2
	.global	NvmmRead
	.syntax unified
	.arm
	.fpu softvfp
	.type	NvmmRead, %function
NvmmRead:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r3, r1
	strh	r3, [fp, #-10]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-12]	@ movhi
	ldrh	r2, [fp, #-10]
	ldrh	r3, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	EepromMcuReadBuffer
	mov	r3, r0
	cmp	r3, #1
	bne	.L5
	ldrh	r3, [fp, #-10]
	b	.L6
.L5:
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	NvmmRead, .-NvmmRead
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	NvmmCrc32Check
	.syntax unified
	.arm
	.fpu softvfp
	.type	NvmmCrc32Check, %function
NvmmCrc32Check:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, r0
	mov	r2, r1
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-19]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldrh	r2, [fp, #-24]	@ movhi
	ldrh	r3, [fp, #-22]	@ movhi
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #4
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #16
	mov	r1, #4
	mov	r0, r3
	bl	NvmmRead
	mov	r3, r0
	cmp	r3, #4
	bne	.L8
	bl	Crc32Init
	str	r0, [fp, #-12]
	mov	r3, #0
	strh	r3, [fp, #-18]	@ movhi
	b	.L9
.L12:
	ldrh	r2, [fp, #-24]	@ movhi
	ldrh	r3, [fp, #-18]	@ movhi
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #19
	mov	r1, #1
	mov	r0, r3
	bl	NvmmRead
	mov	r3, r0
	cmp	r3, #1
	beq	.L10
	mov	r3, #0
	b	.L13
.L10:
	sub	r3, fp, #19
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	Crc32Update
	str	r0, [fp, #-12]
	ldrh	r3, [fp, #-18]
	add	r3, r3, #1
	strh	r3, [fp, #-18]	@ movhi
.L9:
	ldrh	r2, [fp, #-18]
	ldrh	r3, [fp, #-22]
	sub	r3, r3, #4
	cmp	r2, r3
	bcc	.L12
	ldr	r0, [fp, #-12]
	bl	Crc32Finalize
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L8
	mov	r3, #0
	b	.L13
.L8:
	mov	r3, #1
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	NvmmCrc32Check, .-NvmmCrc32Check
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	NvmmReset
	.syntax unified
	.arm
	.fpu softvfp
	.type	NvmmReset, %function
NvmmReset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	mov	r2, r1
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-16]	@ movhi
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	ldrh	r2, [fp, #-16]	@ movhi
	ldrh	r3, [fp, #-14]	@ movhi
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #4
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r1, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	EepromMcuWriteBuffer
	mov	r3, r0
	cmp	r3, #1
	bne	.L18
	mov	r3, #1
	b	.L20
.L18:
	mov	r3, #0
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC1
	.size	NvmmReset, .-NvmmReset
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
