	.file	"964877.c"
	.intel_syntax noprefix
	.text
	.globl	eeprom
	.bss
	.align 32
	.type	eeprom, @object
	.size	eeprom, 4096
eeprom:
	.zero	4096
	.section	.rodata
	.align 2
	.type	k_EEPROM_magic, @object
	.size	k_EEPROM_magic, 2
k_EEPROM_magic:
	.value	20545
	.align 2
	.type	k_EEPROM_revision, @object
	.size	k_EEPROM_revision, 2
k_EEPROM_revision:
	.value	2
	.type	k_key_sentinel, @object
	.size	k_key_sentinel, 1
k_key_sentinel:
	.byte	-1
.LC0:
	.string	"ERROR: %s\n"
	.text
	.globl	fail
	.type	fail, @function
fail:
.LFB6:
	.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	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	fail, .-fail
	.section	.rodata
.LC1:
	.string	"missing EEPROM file name"
.LC2:
	.string	"rb"
.LC3:
	.string	"can't open EEPROM file"
.LC4:
	.string	"can't read EEPROM file"
.LC5:
	.string	"bad magic in EEPROM file"
	.align 8
.LC6:
	.string	"unsupported EEPROM format revision"
.LC7:
	.string	"Header OK"
.LC8:
	.string	"end sentinel at %u\n"
.LC9:
	.string	"%04x: key %u size %d\n "
.LC10:
	.string	" %02x"
.LC11:
	.string	"missing end sentinel"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 2
	je	.L3
	lea	rdi, .LC1[rip]
	call	fail
.L3:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L4
	lea	rdi, .LC3[rip]
	call	fail
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4096
	lea	rdi, eeprom[rip]
	call	fread@PLT
	cmp	rax, 1
	je	.L5
	lea	rdi, .LC4[rip]
	call	fail
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, eeprom[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, WORD PTR [rax]
	mov	edx, 20545
	cmp	ax, dx
	je	.L6
	lea	rdi, .LC5[rip]
	call	fail
.L6:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 2
	je	.L7
	lea	rdi, .LC6[rip]
	call	fail
.L7:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -32[rbp], 4
.L13:
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, eeprom[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	edx, -1
	cmp	al, dl
	jne	.L8
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L8:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 63
	movzx	eax, al
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 1[rax]
	movzx	edx, al
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 2
	mov	DWORD PTR -28[rbp], 0
	jmp	.L10
.L11:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	mov	edx, eax
	lea	rax, eeprom[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L10:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 63
	movzx	eax, al
	cmp	DWORD PTR -28[rbp], eax
	jbe	.L11
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 63
	movzx	edx, al
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 4095
	jbe	.L13
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, .LC11[rip]
	call	fail
	jmp	.L13
.L15:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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	"964877.c"
	.text
	.comm	eeprom,4096,4
	.section	.rodata
	.align	1
	.type	k_EEPROM_magic, %object
	.size	k_EEPROM_magic, 2
k_EEPROM_magic:
	.short	20545
	.align	1
	.type	k_EEPROM_revision, %object
	.size	k_EEPROM_revision, 2
k_EEPROM_revision:
	.short	2
	.type	k_key_sentinel, %object
	.size	k_key_sentinel, 1
k_key_sentinel:
	.byte	-1
	.align	2
.LC0:
	.ascii	"ERROR: %s\012\000"
	.text
	.align	2
	.global	fail
	.syntax unified
	.arm
	.fpu softvfp
	.type	fail, %function
fail:
	@ 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]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	fail, .-fail
	.section	.rodata
	.align	2
.LC1:
	.ascii	"missing EEPROM file name\000"
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.ascii	"can't open EEPROM file\000"
	.align	2
.LC4:
	.ascii	"can't read EEPROM file\000"
	.align	2
.LC5:
	.ascii	"bad magic in EEPROM file\000"
	.align	2
.LC6:
	.ascii	"unsupported EEPROM format revision\000"
	.align	2
.LC7:
	.ascii	"Header OK\000"
	.align	2
.LC8:
	.ascii	"end sentinel at %u\012\000"
	.align	2
.LC9:
	.ascii	"%04x: key %u size %d\012 \000"
	.align	2
.LC10:
	.ascii	" %02x\000"
	.align	2
.LC11:
	.ascii	"missing end sentinel\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	beq	.L5
	ldr	r0, .L18
	bl	fail
.L5:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L18+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L18+8
	bl	fail
.L6:
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, #4096
	ldr	r0, .L18+12
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L7
	ldr	r0, .L18+16
	bl	fail
.L7:
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r3, .L18+12
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L18+20
	cmp	r3, r2
	beq	.L8
	ldr	r0, .L18+24
	bl	fail
.L8:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #2
	beq	.L9
	ldr	r0, .L18+28
	bl	fail
.L9:
	ldr	r0, .L18+32
	bl	puts
	mov	r3, #4
	str	r3, [fp, #-24]
.L15:
	ldr	r3, [fp, #-24]
	ldr	r2, .L18+12
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r2, #255
	cmp	r3, r2
	bne	.L10
	ldr	r1, [fp, #-24]
	ldr	r0, .L18+36
	bl	printf
	b	.L17
.L10:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]
	and	r3, r3, #63
	and	r3, r3, #255
	add	r3, r3, #1
	ldr	r1, [fp, #-24]
	ldr	r0, .L18+40
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L12
.L13:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, .L18+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L18+44
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L12:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]
	and	r3, r3, #63
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bls	.L13
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]
	and	r3, r3, #63
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #4096
	bcc	.L15
	ldr	r3, .L18+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L18+52
	bl	fail
	b	.L15
.L17:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	eeprom
	.word	.LC4
	.word	20545
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	stdout
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
