	.file	"98063.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s <app_ihex> <output_ihex>\n"
.LC1:
	.string	"rb"
	.align 8
.LC2:
	.string	"ERROR: unable to open input file %s\n"
	.align 8
.LC3:
	.string	"ERROR: bad checksum on line %d of %s; aborting merge\n"
.LC4:
	.string	"00"
.LC5:
	.string	"04"
	.align 8
.LC6:
	.string	"ERROR: presumptions about upper address are not valid; aborting\n"
.LC7:
	.string	"01"
	.align 8
.LC8:
	.string	"ERROR: CRC address was occupied; app is in conflict with bootloader\n"
	.align 8
.LC9:
	.string	"ERROR: supplied input file is faulty and used out-of-bounds addresses\n"
	.align 8
.LC10:
	.string	"ERROR: unexpected and implausible situation where input ihex has an odd number of bytes\n"
.LC11:
	.string	"wb"
	.align 8
.LC12:
	.string	"ERROR: unable to open output file %s\n"
.LC13:
	.string	":00000001FF\r\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -304[rbp], 0
	cmp	DWORD PTR -340[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR -352[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L33
.L2:
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L33
.L4:
	mov	DWORD PTR -324[rbp], 0
	mov	DWORD PTR -316[rbp], 0
	jmp	.L5
.L14:
	add	DWORD PTR -316[rbp], 1
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L6
	jmp	.L5
.L6:
	movzx	eax, BYTE PTR -272[rbp]
	cmp	al, 58
	je	.L7
	jmp	.L5
.L7:
	lea	rax, -272[rbp]
	add	rax, 1
	mov	rdi, rax
	call	checksum_passes
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -316[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L33
.L8:
	lea	rax, -272[rbp]
	add	rax, 1
	mov	esi, 2
	mov	rdi, rax
	call	readhex
	mov	DWORD PTR -308[rbp], eax
	lea	rax, -272[rbp]
	add	rax, 3
	mov	esi, 4
	mov	rdi, rax
	call	readhex
	mov	DWORD PTR -328[rbp], eax
	lea	rax, -272[rbp]
	add	rax, 7
	mov	edx, 2
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L9
	cmp	DWORD PTR -324[rbp], 0
	jne	.L9
	lea	rdx, -304[rbp]
	mov	ecx, DWORD PTR -308[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	find_blob
	mov	QWORD PTR -288[rbp], rax
	lea	rax, -272[rbp]
	add	rax, 9
	mov	QWORD PTR -296[rbp], rax
	mov	DWORD PTR -320[rbp], 0
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -296[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	readhex
	mov	edx, eax
	mov	rax, QWORD PTR -288[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -320[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -296[rbp], 2
	add	DWORD PTR -320[rbp], 1
.L10:
	mov	eax, DWORD PTR -320[rbp]
	cmp	eax, DWORD PTR -308[rbp]
	jb	.L11
	jmp	.L5
.L9:
	lea	rax, -272[rbp]
	add	rax, 7
	mov	edx, 2
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L12
	lea	rax, -272[rbp]
	add	rax, 9
	mov	esi, 4
	mov	rdi, rax
	call	readhex
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[rbp], 0
	je	.L5
	cmp	DWORD PTR -324[rbp], 1
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 64
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L33
.L12:
	lea	rax, -272[rbp]
	add	rax, 7
	mov	edx, 2
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L36
.L5:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L14
	jmp	.L13
.L36:
	nop
.L13:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -304[rbp]
	mov	QWORD PTR -288[rbp], rax
	jmp	.L15
.L21:
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 16127
	ja	.L16
	mov	rax, QWORD PTR -288[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, edx
	cmp	eax, 16128
	jbe	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 68
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L33
.L16:
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1023
	jbe	.L17
	mov	rax, QWORD PTR -288[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, edx
	cmp	eax, 16384
	jbe	.L18
.L17:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 70
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	eax, -2
	jmp	.L33
.L18:
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 1
	test	eax, eax
	je	.L20
.L19:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 88
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, -3
	jmp	.L33
.L20:
	mov	rax, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -288[rbp], rax
.L15:
	cmp	QWORD PTR -288[rbp], 0
	jne	.L21
	mov	DWORD PTR -328[rbp], 1024
	mov	DWORD PTR -312[rbp], 0
	mov	rax, QWORD PTR -304[rbp]
	mov	QWORD PTR -288[rbp], rax
.L31:
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -328[rbp], eax
	jnb	.L22
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -328[rbp]
	mov	ecx, eax
	lea	rdx, -304[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	find_blob
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	erase_blob
.L22:
	mov	DWORD PTR -320[rbp], 0
	jmp	.L23
.L26:
	cmp	DWORD PTR -328[rbp], 16126
	jne	.L24
	mov	rax, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -320[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -312[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -312[rbp]
	shr	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -320[rbp]
	add	eax, 1
	mov	eax, eax
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -320[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -288[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -320[rbp]
	add	eax, 1
	mov	eax, eax
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	add	edx, eax
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, eax
	mov	edi, edx
	call	calc_modified_crc14
	mov	DWORD PTR -312[rbp], eax
.L25:
	add	DWORD PTR -328[rbp], 2
	add	DWORD PTR -320[rbp], 2
.L23:
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -320[rbp], eax
	jb	.L26
	mov	rax, QWORD PTR -288[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, edx
	mov	DWORD PTR -328[rbp], eax
	cmp	DWORD PTR -328[rbp], 16127
	ja	.L37
	mov	rax, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L29
	mov	eax, 16384
	sub	eax, DWORD PTR -328[rbp]
	mov	ecx, eax
	lea	rdx, -304[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	find_blob
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	erase_blob
	jmp	.L31
.L29:
	mov	rax, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -288[rbp], rax
	jmp	.L31
.L37:
	nop
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L33
.L32:
	mov	rdx, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	print_blobs
	mov	rax, QWORD PTR -280[rbp]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.type	readhex, @function
readhex:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L39
.L43:
	sal	DWORD PTR -4[rbp], 4
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L40
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L40
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -4[rbp], eax
	jmp	.L41
.L40:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jle	.L42
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 70
	jg	.L42
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	sub	eax, 55
	mov	DWORD PTR -4[rbp], eax
	jmp	.L41
.L42:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 96
	jle	.L41
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 102
	jg	.L41
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	sub	eax, 87
	mov	DWORD PTR -4[rbp], eax
.L41:
	add	QWORD PTR -24[rbp], 1
.L39:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -28[rbp], edx
	test	eax, eax
	jne	.L43
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	readhex, .-readhex
	.type	find_blob, @function
find_blob:
.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	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	jmp	.L46
.L49:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jb	.L53
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
.L46:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L49
	jmp	.L48
.L53:
	nop
.L48:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	cmp	QWORD PTR -16[rbp], 0
	je	.L50
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L51
.L50:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L51:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	find_blob, .-find_blob
	.type	checksum_passes, @function
checksum_passes:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	readhex
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 4
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L55
.L56:
	add	QWORD PTR -24[rbp], 2
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	readhex
	mov	DWORD PTR -4[rbp], eax
.L55:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -12[rbp], edx
	test	eax, eax
	jne	.L56
	neg	DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -8[rbp]
	movzx	eax, al
	cmp	DWORD PTR -4[rbp], eax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	checksum_passes, .-checksum_passes
	.section	.rodata
.LC14:
	.string	":%02X%04X00"
.LC15:
	.string	"%02X"
.LC16:
	.string	"%02X\r\n"
	.text
	.type	print_blobs, @function
print_blobs:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	jmp	.L59
.L70:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L60
.L63:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L71
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L60:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L63
	jmp	.L62
.L71:
	nop
.L62:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L64
.L69:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 15
	mov	edx, eax
	mov	eax, 16
	sub	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jnb	.L65
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -24[rbp], eax
.L65:
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	shr	eax, 8
	movzx	eax, al
	add	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	movzx	eax, al
	add	DWORD PTR -32[rbp], eax
	jmp	.L66
.L68:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L67
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -20[rbp], eax
.L67:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	QWORD PTR -8[rbp], 1
	add	DWORD PTR -28[rbp], 1
	sub	DWORD PTR -20[rbp], 1
	sub	DWORD PTR -36[rbp], 1
.L66:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -24[rbp], edx
	test	eax, eax
	jne	.L68
	neg	DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -32[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L64:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L69
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -64[rbp], rax
.L59:
	cmp	QWORD PTR -64[rbp], 0
	jne	.L70
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	print_blobs, .-print_blobs
	.type	calc_modified_crc14, @function
calc_modified_crc14:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L73
.L75:
	mov	eax, DWORD PTR -20[rbp]
	xor	eax, DWORD PTR -24[rbp]
	and	eax, 1
	mov	DWORD PTR -4[rbp], eax
	shr	DWORD PTR -24[rbp]
	cmp	DWORD PTR -4[rbp], 0
	je	.L74
	xor	DWORD PTR -24[rbp], 9137
.L74:
	shr	DWORD PTR -20[rbp]
	add	DWORD PTR -8[rbp], 1
.L73:
	cmp	DWORD PTR -8[rbp], 15
	jbe	.L75
	mov	eax, DWORD PTR -24[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	calc_modified_crc14, .-calc_modified_crc14
	.type	erase_blob, @function
erase_blob:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L78
.L79:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 63
	sub	DWORD PTR -12[rbp], 2
.L78:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L79
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	erase_blob, .-erase_blob
	.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	"98063.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s <app_ihex> <output_ihex>\012\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"ERROR: unable to open input file %s\012\000"
	.align	2
.LC3:
	.ascii	"ERROR: bad checksum on line %d of %s; aborting merg"
	.ascii	"e\012\000"
	.align	2
.LC4:
	.ascii	"00\000"
	.align	2
.LC5:
	.ascii	"04\000"
	.align	2
.LC6:
	.ascii	"ERROR: presumptions about upper address are not val"
	.ascii	"id; aborting\012\000"
	.align	2
.LC7:
	.ascii	"01\000"
	.align	2
.LC8:
	.ascii	"ERROR: CRC address was occupied; app is in conflict"
	.ascii	" with bootloader\012\000"
	.align	2
.LC9:
	.ascii	"ERROR: supplied input file is faulty and used out-o"
	.ascii	"f-bounds addresses\012\000"
	.align	2
.LC10:
	.ascii	"ERROR: unexpected and implausible situation where i"
	.ascii	"nput ihex has an odd number of bytes\012\000"
	.align	2
.LC11:
	.ascii	"wb\000"
	.align	2
.LC12:
	.ascii	"ERROR: unable to open output file %s\012\000"
	.align	2
.LC13:
	.ascii	":00000001FF\015\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #312
	str	r0, [fp, #-312]
	str	r1, [fp, #-316]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-304]
	ldr	r3, [fp, #-312]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, .L38+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-316]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L38+8
	bl	fprintf
	mvn	r3, #0
	b	.L33
.L2:
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L38+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L38+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L38+16
	bl	fprintf
	mvn	r3, #0
	b	.L33
.L4:
	mov	r3, #0
	str	r3, [fp, #-296]
	mov	r3, #0
	str	r3, [fp, #-288]
	b	.L5
.L14:
	ldr	r3, [fp, #-288]
	add	r3, r3, #1
	str	r3, [fp, #-288]
	sub	r3, fp, #264
	ldr	r2, [fp, #-272]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	b	.L5
.L6:
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	cmp	r3, #58
	beq	.L7
	b	.L5
.L7:
	sub	r3, fp, #264
	add	r3, r3, #1
	mov	r0, r3
	bl	checksum_passes
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L38+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-288]
	ldr	r1, .L38+20
	bl	fprintf
	mvn	r3, #0
	b	.L33
.L8:
	sub	r3, fp, #264
	add	r3, r3, #1
	mov	r1, #2
	mov	r0, r3
	bl	readhex
	str	r0, [fp, #-268]
	sub	r3, fp, #264
	add	r3, r3, #3
	mov	r1, #4
	mov	r0, r3
	bl	readhex
	str	r0, [fp, #-300]
	sub	r3, fp, #264
	add	r3, r3, #7
	mov	r2, #2
	ldr	r1, .L38+24
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #304
	mov	r2, r3
	ldr	r1, [fp, #-268]
	ldr	r0, [fp, #-300]
	bl	find_blob
	str	r0, [fp, #-276]
	sub	r3, fp, #264
	add	r3, r3, #9
	str	r3, [fp, #-280]
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L10
.L11:
	mov	r1, #2
	ldr	r0, [fp, #-280]
	bl	readhex
	mov	r1, r0
	ldr	r3, [fp, #-276]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-292]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-280]
	add	r3, r3, #2
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L10:
	ldr	r2, [fp, #-292]
	ldr	r3, [fp, #-268]
	cmp	r2, r3
	bcc	.L11
	b	.L5
.L9:
	sub	r3, fp, #264
	add	r3, r3, #7
	mov	r2, #2
	ldr	r1, .L38+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #264
	add	r3, r3, #9
	mov	r1, #4
	mov	r0, r3
	bl	readhex
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-296]
	cmp	r3, #1
	beq	.L5
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, #64
	mov	r1, #1
	ldr	r0, .L38+32
	bl	fwrite
	mvn	r3, #0
	b	.L33
.L12:
	sub	r3, fp, #264
	add	r3, r3, #7
	mov	r2, #2
	ldr	r1, .L38+36
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
.L5:
	ldr	r0, [fp, #-272]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	b	.L13
.L36:
	nop
.L13:
	ldr	r0, [fp, #-272]
	bl	fclose
	ldr	r3, [fp, #-304]
	str	r3, [fp, #-276]
	b	.L15
.L21:
	ldr	r3, [fp, #-276]
	ldr	r3, [r3]
	cmp	r3, #16128
	bcs	.L16
	ldr	r3, [fp, #-276]
	ldr	r2, [r3]
	ldr	r3, [fp, #-276]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	cmp	r3, #16128
	bls	.L16
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, #68
	mov	r1, #1
	ldr	r0, .L38+40
	bl	fwrite
	mvn	r3, #0
	b	.L33
.L16:
	ldr	r3, [fp, #-276]
	ldr	r3, [r3]
	cmp	r3, #1024
	bcc	.L17
	ldr	r3, [fp, #-276]
	ldr	r2, [r3]
	ldr	r3, [fp, #-276]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	cmp	r3, #16384
	bls	.L18
.L17:
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, #70
	mov	r1, #1
	ldr	r0, .L38+44
	bl	fwrite
	mvn	r3, #1
	b	.L33
.L18:
	ldr	r3, [fp, #-276]
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-276]
	ldr	r3, [r3, #4]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L20
.L19:
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, #88
	mov	r1, #1
	ldr	r0, .L38+48
	bl	fwrite
	mvn	r3, #2
	b	.L33
.L20:
	ldr	r3, [fp, #-276]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-276]
.L15:
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bne	.L21
	mov	r3, #1024
	str	r3, [fp, #-300]
	mov	r3, #0
	str	r3, [fp, #-284]
	ldr	r3, [fp, #-304]
	str	r3, [fp, #-276]
.L31:
	ldr	r3, [fp, #-276]
	ldr	r3, [r3]
	ldr	r2, [fp, #-300]
	cmp	r2, r3
	bcs	.L22
	ldr	r3, [fp, #-276]
	ldr	r2, [r3]
	ldr	r3, [fp, #-300]
	sub	r3, r2, r3
	sub	r2, fp, #304
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	find_blob
	str	r0, [fp, #-276]
	ldr	r0, [fp, #-276]
	bl	erase_blob
.L22:
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L23
.L26:
	ldr	r3, [fp, #-300]
	ldr	r2, .L38+52
	cmp	r3, r2
	bne	.L24
	ldr	r3, [fp, #-276]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-292]
	add	r3, r2, r3
	ldr	r2, [fp, #-284]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-284]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-276]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L25
.L24:
	ldr	r3, [fp, #-276]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-292]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-276]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r3, r1, r3
	ldr	r1, [fp, #-284]
	mov	r0, r3
	bl	calc_modified_crc14
	str	r0, [fp, #-284]
.L25:
	ldr	r3, [fp, #-300]
	add	r3, r3, #2
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-292]
	add	r3, r3, #2
	str	r3, [fp, #-292]
.L23:
	ldr	r3, [fp, #-276]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-292]
	cmp	r2, r3
	bcc	.L26
	ldr	r3, [fp, #-276]
	ldr	r2, [r3]
	ldr	r3, [fp, #-276]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #16128
	bcs	.L37
	ldr	r3, [fp, #-276]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-300]
	rsb	r3, r3, #16384
	sub	r2, fp, #304
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	find_blob
	str	r0, [fp, #-276]
	ldr	r0, [fp, #-276]
	bl	erase_blob
	b	.L31
.L29:
	ldr	r3, [fp, #-276]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-276]
	b	.L31
.L37:
	nop
	ldr	r3, [fp, #-316]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L38+56
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L38+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-316]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L38+60
	bl	fprintf
	mvn	r3, #0
	b	.L33
.L32:
	ldr	r3, [fp, #-304]
	mov	r1, r3
	ldr	r0, [fp, #-272]
	bl	print_blobs
	ldr	r3, [fp, #-272]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L38+64
	bl	fwrite
	ldr	r0, [fp, #-272]
	bl	fclose
	mov	r3, #0
.L33:
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC14
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	16126
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	readhex, %function
readhex:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L41
.L45:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L42
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L42
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-8]
	b	.L43
.L42:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L44
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #70
	bhi	.L44
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #55
	str	r3, [fp, #-8]
	b	.L43
.L44:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L43
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #102
	bhi	.L43
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #87
	str	r3, [fp, #-8]
.L43:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L41:
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	readhex, .-readhex
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_blob, %function
find_blob:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L48
.L51:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bcc	.L55
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-16]
.L48:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L51
	b	.L50
.L55:
	nop
.L50:
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r2, #16
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r0, [fp, #-28]
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #12]
	b	.L53
.L52:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L53:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	find_blob, .-find_blob
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	checksum_passes, %function
checksum_passes:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	readhex
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L57
.L58:
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	readhex
	str	r0, [fp, #-8]
.L57:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	str	r2, [fp, #-16]
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	checksum_passes, .-checksum_passes
	.section	.rodata
	.align	2
.LC15:
	.ascii	":%02X%04X00\000"
	.align	2
.LC16:
	.ascii	"%02X\000"
	.align	2
.LC17:
	.ascii	"%02X\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_blobs, %function
print_blobs:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	b	.L61
.L72:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L62
.L65:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L73
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
.L62:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L65
	b	.L64
.L73:
	nop
.L64:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	b	.L66
.L71:
	ldr	r3, [fp, #-24]
	and	r3, r3, #15
	rsb	r3, r3, #16
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcs	.L67
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
.L67:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r1, .L74
	ldr	r0, [fp, #-40]
	bl	fprintf
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	lsr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	and	r3, r3, #255
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	b	.L68
.L70:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L69
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
.L69:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L74+4
	ldr	r0, [fp, #-40]
	bl	fprintf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L68:
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	cmp	r3, #0
	bne	.L70
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	and	r3, r3, #255
	mov	r2, r3
	ldr	r1, .L74+8
	ldr	r0, [fp, #-40]
	bl	fprintf
.L66:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L71
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-44]
.L61:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L72
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	print_blobs, .-print_blobs
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_modified_crc14, %function
calc_modified_crc14:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L77
.L79:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	eor	r3, r3, r2
	and	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L78
	ldr	r3, [fp, #-20]
	eor	r3, r3, #9088
	eor	r3, r3, #49
	str	r3, [fp, #-20]
.L78:
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L77:
	ldr	r3, [fp, #-12]
	cmp	r3, #15
	bls	.L79
	ldr	r3, [fp, #-20]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	calc_modified_crc14, .-calc_modified_crc14
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	erase_blob, %function
erase_blob:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	b	.L82
.L83:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #63
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #2
	str	r3, [fp, #-8]
.L82:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L83
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	erase_blob, .-erase_blob
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
