	.file	"86075904.c"
	.intel_syntax noprefix
	.text
	.globl	dataBuffer
	.bss
	.align 32
	.type	dataBuffer, @object
	.size	dataBuffer, 65792
dataBuffer:
	.zero	65792
	.local	use_ansi
	.comm	use_ansi,4,4
	.section	.rodata
	.align 8
.LC0:
	.string	"\n Timonel Intel Hex Parser\n ========================\n usage: tml-hexparser [--help] [--type intel-hex|raw] filename [--no-ansi]\n"
.LC1:
	.string	"--run"
.LC2:
	.string	"--type"
.LC3:
	.string	"intel-hex"
.LC4:
	.string	"raw"
	.align 8
.LC5:
	.string	"Unknown File Type specified with --type option"
.LC6:
	.string	"--help"
.LC7:
	.string	"-h"
.LC8:
	.string	""
	.align 8
.LC9:
	.string	"  --type [intel-hex, raw]: Set file type to either Intel Hex or Raw"
	.align 8
.LC10:
	.string	"                           bytes (Intel Hex is default)"
	.align 8
.LC11:
	.string	"                --no-ansi: Don't use ANSI in terminal output"
	.align 8
.LC12:
	.string	"                 filename: Path to Intel Hex or Raw data file,"
	.align 8
.LC13:
	.string	"                           or \"-\" to read from stdin"
	.align 8
.LC14:
	.string	" Timonel Hex Parser version: 0.3"
.LC15:
	.string	"--no-ansi"
	.align 8
.LC16:
	.string	"// Error loading or parsing hex file!"
.LC17:
	.string	"// Error loading raw file!"
	.align 8
.LC18:
	.string	"// No data in input file, exiting!"
	.align 8
.LC19:
	.string	"// Timonel Hex Parser done. Thank you!\n//"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -36[rbp], 1
	mov	DWORD PTR -32[rbp], 1
	lea	rax, .LC0[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR use_ansi[rip], 1
	jmp	.L2
.L12:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	DWORD PTR -28[rbp], 1
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	add	DWORD PTR -32[rbp], 1
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	DWORD PTR -36[rbp], 1
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	DWORD PTR -36[rbp], 2
	jmp	.L4
.L7:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L17
.L5:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
.L9:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L17
.L10:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	DWORD PTR use_ansi[rip], 0
	add	DWORD PTR -32[rbp], 1
	jmp	.L4
.L11:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
.L4:
	add	DWORD PTR -32[rbp], 1
.L2:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L12
	cmp	DWORD PTR -52[rbp], 1
	jg	.L13
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 1
	jmp	.L17
.L13:
	mov	DWORD PTR -44[rbp], 1
	mov	DWORD PTR -40[rbp], 0
	mov	edx, 65792
	mov	esi, 255
	lea	rdi, dataBuffer[rip]
	call	memset@PLT
	cmp	DWORD PTR -36[rbp], 1
	jne	.L14
	lea	rcx, -40[rbp]
	lea	rdx, -44[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, dataBuffer[rip]
	mov	rdi, rax
	call	parseIntelHex
	test	eax, eax
	je	.L15
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L17
.L14:
	cmp	DWORD PTR -36[rbp], 2
	jne	.L15
	lea	rcx, -40[rbp]
	lea	rdx, -44[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, dataBuffer[rip]
	mov	rdi, rax
	call	parseRaw
	test	eax, eax
	je	.L16
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L17
.L16:
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -40[rbp]
	cmp	edx, eax
	jl	.L15
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L17
.L15:
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	eax, 0
.L17:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	parseUntilColon, @function
parseUntilColon:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 58
	je	.L20
	cmp	DWORD PTR -4[rbp], -1
	jne	.L21
.L20:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parseUntilColon, .-parseUntilColon
	.type	parseHex, @function
parseHex:
.LFB8:
	.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -17[rbp+rax], dl
	add	DWORD PTR -24[rbp], 1
.L24:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L25
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -17[rbp+rax], 0
	lea	rax, -17[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parseHex, .-parseHex
	.section	.rodata
.LC20:
	.string	"-"
.LC21:
	.string	"r"
.LC22:
	.string	"//> Error opening %s: %s\n"
	.align 8
.LC23:
	.string	"//> Warning: Checksum error between address 0x%x and 0x%x\n"
.LC24:
	.string	"\n//"
.LC25:
	.string	"// Start Address: 0x%x \n"
.LC26:
	.string	"// End Address: 0x%x \n//\n"
.LC27:
	.string	"uint8_t payload[%i] = {"
.LC28:
	.string	"\n    "
.LC29:
	.string	"0x%02x"
.LC30:
	.string	", "
.LC31:
	.string	"\n};\n\n//"
	.text
	.type	parseIntelHex, @function
parseIntelHex:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L29
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	fopen@PLT
	jmp	.L30
.L29:
	mov	rax, QWORD PTR stdin[rip]
.L30:
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L33
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L32
.L39:
	mov	DWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	parseHex
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	add	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	parseHex
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	sar	eax, 8
	add	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	add	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	parseHex
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	je	.L34
	jmp	.L33
.L34:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L35
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	parseHex
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -40[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	add	DWORD PTR -32[rbp], eax
	add	DWORD PTR -36[rbp], 1
.L35:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L36
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	parseHex
	add	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	movzx	eax, al
	test	eax, eax
	je	.L37
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
.L37:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L38
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
.L38:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -40[rbp], eax
	jle	.L33
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
.L33:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	parseUntilColon
	cmp	eax, 58
	je	.L39
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L40
.L43:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jge	.L41
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
.L41:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	cmp	eax, 7
	jne	.L42
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 0
.L42:
	add	DWORD PTR -36[rbp], 1
.L40:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jle	.L43
	lea	rdi, .LC31[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	parseIntelHex, .-parseIntelHex
	.section	.rodata
.LC32:
	.string	"//> Error reading %s: %s\n"
	.text
	.type	parseRaw, @function
parseRaw:
.LFB10:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L45
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	fopen@PLT
	jmp	.L46
.L45:
	mov	rax, QWORD PTR stdin[rip]
.L46:
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L47
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L48
.L47:
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR -12[rbp], 0
.L51:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	je	.L53
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -32[rbp], 1
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L51
.L53:
	nop
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	parseRaw, .-parseRaw
	.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	"86075904.c"
	.text
	.comm	dataBuffer,65792,4
	.local	use_ansi
	.comm	use_ansi,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 Timonel Intel Hex Parser\012 ================="
	.ascii	"=======\012 usage: tml-hexparser [--help] [--type i"
	.ascii	"ntel-hex|raw] filename [--no-ansi]\012\000"
	.align	2
.LC1:
	.ascii	"--run\000"
	.align	2
.LC2:
	.ascii	"--type\000"
	.align	2
.LC3:
	.ascii	"intel-hex\000"
	.align	2
.LC4:
	.ascii	"raw\000"
	.align	2
.LC5:
	.ascii	"Unknown File Type specified with --type option\000"
	.align	2
.LC6:
	.ascii	"--help\000"
	.align	2
.LC7:
	.ascii	"-h\000"
	.align	2
.LC8:
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"  --type [intel-hex, raw]: Set file type to either "
	.ascii	"Intel Hex or Raw\000"
	.align	2
.LC10:
	.ascii	"                           bytes (Intel Hex is defa"
	.ascii	"ult)\000"
	.align	2
.LC11:
	.ascii	"                --no-ansi: Don't use ANSI in termin"
	.ascii	"al output\000"
	.align	2
.LC12:
	.ascii	"                 filename: Path to Intel Hex or Raw"
	.ascii	" data file,\000"
	.align	2
.LC13:
	.ascii	"                           or \"-\" to read from st"
	.ascii	"din\000"
	.align	2
.LC14:
	.ascii	" Timonel Hex Parser version: 0.3\000"
	.align	2
.LC15:
	.ascii	"--no-ansi\000"
	.align	2
.LC16:
	.ascii	"// Error loading or parsing hex file!\000"
	.align	2
.LC17:
	.ascii	"// Error loading raw file!\000"
	.align	2
.LC18:
	.ascii	"// No data in input file, exiting!\000"
	.align	2
.LC19:
	.ascii	"// Timonel Hex Parser done. Thank you!\012//\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, .L19+4
	str	r3, [fp, #-12]
	ldr	r3, .L19+8
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L12:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L19+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L4
.L3:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L19+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L19+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L4
.L6:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L19+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	mov	r3, #2
	str	r3, [fp, #-24]
	b	.L4
.L7:
	ldr	r0, .L19+28
	bl	printf
	mov	r3, #1
	b	.L17
.L5:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L19+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L19+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
.L9:
	ldr	r0, [fp, #-12]
	bl	puts
	ldr	r0, .L19+40
	bl	puts
	ldr	r0, .L19+44
	bl	puts
	ldr	r0, .L19+48
	bl	puts
	ldr	r0, .L19+52
	bl	puts
	ldr	r0, .L19+56
	bl	puts
	ldr	r0, .L19+60
	bl	puts
	ldr	r0, .L19+40
	bl	puts
	ldr	r0, .L19+64
	bl	puts
	mov	r3, #0
	b	.L17
.L10:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L19+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L19+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L4
.L11:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-28]
.L4:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bgt	.L13
	ldr	r0, [fp, #-12]
	bl	puts
	mov	r3, #1
	b	.L17
.L13:
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r2, .L19+72
	mov	r1, #255
	ldr	r0, .L19+76
	bl	memset
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L14
	sub	r3, fp, #32
	sub	r2, fp, #36
	ldr	r1, .L19+76
	ldr	r0, [fp, #-28]
	bl	parseIntelHex
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L19+80
	bl	puts
	mov	r3, #1
	b	.L17
.L14:
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L15
	sub	r3, fp, #32
	sub	r2, fp, #36
	ldr	r1, .L19+76
	ldr	r0, [fp, #-28]
	bl	parseRaw
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L19+84
	bl	puts
	mov	r3, #1
	b	.L17
.L16:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L15
	ldr	r0, .L19+88
	bl	puts
	mov	r3, #1
	b	.L17
.L15:
	ldr	r0, .L19+92
	bl	puts
	mov	r3, #0
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC20
	.word	.LC0
	.word	use_ansi
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	65792
	.word	dataBuffer
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseUntilColon, %function
parseUntilColon:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
.L23:
	ldr	r0, [fp, #-16]
	bl	getc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #58
	beq	.L22
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L23
.L22:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parseUntilColon, .-parseUntilColon
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseHex, %function
parseHex:
	@ 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, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L26
.L27:
	ldr	r0, [fp, #-32]
	bl	getc
	mov	r3, r0
	and	r1, r3, #255
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L26:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L27
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #20
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC21
	.size	parseHex, .-parseHex
	.section	.rodata
	.align	2
.LC22:
	.ascii	"-\000"
	.align	2
.LC23:
	.ascii	"r\000"
	.align	2
.LC24:
	.ascii	"//> Error opening %s: %s\012\000"
	.align	2
.LC25:
	.ascii	"//> Warning: Checksum error between address 0x%x an"
	.ascii	"d 0x%x\012\000"
	.align	2
.LC26:
	.ascii	"\012//\000"
	.align	2
.LC27:
	.ascii	"// Start Address: 0x%x \012\000"
	.align	2
.LC28:
	.ascii	"// End Address: 0x%x \012//\012\000"
	.align	2
.LC29:
	.ascii	"uint8_t payload[%i] = {\000"
	.align	2
.LC30:
	.ascii	"\012    \000"
	.align	2
.LC31:
	.ascii	"0x%02x\000"
	.align	2
.LC32:
	.ascii	", \000"
	.align	2
.LC33:
	.ascii	"\012};\012\012//\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseIntelHex, %function
parseIntelHex:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r1, .L48
	ldr	r0, [fp, #-48]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r1, .L48+4
	ldr	r0, [fp, #-48]
	bl	fopen
	mov	r3, r0
	b	.L34
.L33:
	ldr	r3, .L48+8
	ldr	r3, [r3]
.L34:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L37
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, .L48+12
	bl	printf
	mov	r3, #1
	b	.L36
.L43:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	parseHex
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	mov	r1, #4
	ldr	r0, [fp, #-24]
	bl	parseHex
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	asr	r3, r3, #8
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	parseHex
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L38
	b	.L37
.L38:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L39
.L40:
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	parseHex
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L39:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L40
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	parseHex
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L41
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-16]
	ldr	r0, .L48+16
	bl	printf
.L41:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L42
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
.L42:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	ble	.L37
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-40]
	str	r2, [r3]
.L37:
	ldr	r0, [fp, #-24]
	bl	parseUntilColon
	mov	r3, r0
	cmp	r3, #58
	beq	.L43
	ldr	r0, .L48+20
	bl	puts
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L48+24
	bl	printf
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L48+28
	bl	printf
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L48+32
	bl	printf
	ldr	r0, .L48+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L44
.L47:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L48+40
	bl	printf
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bge	.L45
	ldr	r0, .L48+44
	bl	printf
.L45:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	cmp	r3, #7
	bne	.L46
	ldr	r0, .L48+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
.L46:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L44:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	ble	.L47
	ldr	r0, .L48+48
	bl	puts
	ldr	r0, [fp, #-24]
	bl	fclose
	mov	r3, #0
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC22
	.word	.LC23
	.word	stdin
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.size	parseIntelHex, .-parseIntelHex
	.section	.rodata
	.align	2
.LC34:
	.ascii	"//> Error reading %s: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseRaw, %function
parseRaw:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r1, .L60
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	ldr	r1, .L60+4
	ldr	r0, [fp, #-16]
	bl	fopen
	mov	r3, r0
	b	.L52
.L51:
	ldr	r3, .L60+8
	ldr	r3, [r3]
.L52:
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L53
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L60+12
	bl	printf
	mov	r3, #1
	b	.L54
.L53:
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
.L57:
	ldr	r0, [fp, #-12]
	bl	getc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L59
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	b	.L57
.L59:
	nop
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	.LC22
	.word	.LC23
	.word	stdin
	.word	.LC34
	.size	parseRaw, .-parseRaw
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
