	.file	"649834.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: hid_bootloader_cli -mmcu=<MCU> [-w] [-h] [-n] [-v] <file.hex>\n"
	.align 8
.LC1:
	.string	"\t-w : Wait for device to appear\n"
	.align 8
.LC2:
	.string	"\t-r : Use hard reboot if device not online\n"
	.align 8
.LC3:
	.string	"\t-n : No reboot after programming\n"
.LC4:
	.string	"\t-v : Verbose output\n"
	.align 8
.LC5:
	.string	"\n<MCU> = atmegaXXuY or at90usbXXXY"
	.align 8
.LC6:
	.string	"\nFor support and more information, please visit:\n"
.LC7:
	.string	"http://www.lufa-lib.org\n"
	.align 8
.LC8:
	.string	"\nBased on the TeensyHID command line programmer software:\n"
	.align 8
.LC9:
	.string	"http://www.pjrc.com/teensy/loader_cli.html\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 69
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 49
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 58
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.globl	wait_for_device_to_appear
	.bss
	.align 4
	.type	wait_for_device_to_appear, @object
	.size	wait_for_device_to_appear, 4
wait_for_device_to_appear:
	.zero	4
	.globl	hard_reboot_device
	.align 4
	.type	hard_reboot_device, @object
	.size	hard_reboot_device, 4
hard_reboot_device:
	.zero	4
	.globl	reboot_after_programming
	.data
	.align 4
	.type	reboot_after_programming, @object
	.size	reboot_after_programming, 4
reboot_after_programming:
	.long	1
	.globl	verbose
	.bss
	.align 4
	.type	verbose, @object
	.size	verbose, 4
verbose:
	.zero	4
	.globl	code_size
	.align 4
	.type	code_size, @object
	.size	code_size, 4
code_size:
	.zero	4
	.globl	block_size
	.align 4
	.type	block_size, @object
	.size	block_size, 4
block_size:
	.zero	4
	.globl	filename
	.align 8
	.type	filename, @object
	.size	filename, 8
filename:
	.zero	8
	.section	.rodata
	.align 8
.LC10:
	.string	"\nhid_bootloader_cli v3.0 by Dean Camera, modified by Dreg\n"
.LC11:
	.string	"Filename must be specified\n\n"
.LC12:
	.string	"MCU type must be specified\n\n"
	.align 8
.LC13:
	.string	"Teensy Loader, Command Line, Version 2.0\n"
	.align 8
.LC14:
	.string	"error reading intel hex file \"%s\""
	.align 8
.LC16:
	.string	"Read \"%s\": %d bytes, %.1f%% usage\n"
.LC17:
	.string	"Unable to find rebootor\n"
.LC18:
	.string	"Hard Reboot performed\n"
.LC19:
	.string	"Unable to open device\n"
.LC20:
	.string	"Waiting for Teensy device...\n"
	.align 8
.LC21:
	.string	" (hint: press the reset button)\n"
.LC23:
	.string	"Found HalfKay Bootloader\n"
.LC24:
	.string	"Programming"
.LC25:
	.string	"."
.LC27:
	.string	"error writing to Teensy\n"
.LC28:
	.string	"\n"
.LC29:
	.string	"Booting\n"
	.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, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -288[rbp], 1
	mov	DWORD PTR -284[rbp], 0
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR -320[rbp]
	mov	eax, DWORD PTR -308[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parse_options
	mov	rax, QWORD PTR filename[rip]
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	call	usage
.L3:
	mov	eax, DWORD PTR code_size[rip]
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	call	usage
.L4:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf_verbose
	mov	rax, QWORD PTR filename[rip]
	mov	rdi, rax
	call	read_intel_hex
	mov	DWORD PTR -280[rbp], eax
	cmp	DWORD PTR -280[rbp], 0
	jns	.L5
	mov	rax, QWORD PTR filename[rip]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	die
.L5:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -280[rbp]
	mov	eax, DWORD PTR code_size[rip]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC15[rip]
	mulsd	xmm1, xmm0
	movq	rcx, xmm1
	mov	rax, QWORD PTR filename[rip]
	mov	edx, DWORD PTR -280[rbp]
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf_verbose
.L12:
	call	teensy_open@PLT
	test	eax, eax
	jne	.L28
	mov	eax, DWORD PTR hard_reboot_device[rip]
	test	eax, eax
	je	.L8
	call	hard_reboot@PLT
	test	eax, eax
	jne	.L9
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	die
.L9:
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf_verbose
	mov	DWORD PTR hard_reboot_device[rip], 0
	mov	DWORD PTR wait_for_device_to_appear[rip], 1
.L8:
	mov	eax, DWORD PTR wait_for_device_to_appear[rip]
	test	eax, eax
	jne	.L10
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	die
.L10:
	cmp	DWORD PTR -284[rbp], 0
	jne	.L11
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf_verbose
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf_verbose
	mov	DWORD PTR -284[rbp], 1
.L11:
	mov	rax, QWORD PTR .LC22[rip]
	movq	xmm0, rax
	call	delay
	jmp	.L12
.L28:
	nop
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf_verbose
	cmp	DWORD PTR -284[rbp], 0
	je	.L13
	mov	rax, QWORD PTR filename[rip]
	mov	rdi, rax
	call	read_intel_hex
	mov	DWORD PTR -280[rbp], eax
	cmp	DWORD PTR -280[rbp], 0
	jns	.L14
	mov	rax, QWORD PTR filename[rip]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	die
.L14:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -280[rbp]
	mov	eax, DWORD PTR code_size[rip]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC15[rip]
	mulsd	xmm1, xmm0
	movq	rcx, xmm1
	mov	rax, QWORD PTR filename[rip]
	mov	edx, DWORD PTR -280[rbp]
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf_verbose
.L13:
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf_verbose
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -292[rbp], 0
	jmp	.L15
.L23:
	cmp	DWORD PTR -292[rbp], 0
	jle	.L16
	mov	edx, DWORD PTR block_size[rip]
	mov	eax, DWORD PTR -292[rbp]
	add	eax, edx
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -292[rbp]
	mov	esi, edx
	mov	edi, eax
	call	ihex_bytes_within_range
	test	eax, eax
	je	.L29
.L16:
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf_verbose
	mov	eax, DWORD PTR code_size[rip]
	cmp	eax, 65535
	jg	.L18
	mov	eax, DWORD PTR -292[rbp]
	mov	BYTE PTR -272[rbp], al
	mov	eax, DWORD PTR -292[rbp]
	sar	eax, 8
	mov	BYTE PTR -271[rbp], al
	jmp	.L19
.L18:
	mov	eax, DWORD PTR -292[rbp]
	sar	eax, 8
	mov	BYTE PTR -272[rbp], al
	mov	eax, DWORD PTR -292[rbp]
	sar	eax, 16
	mov	BYTE PTR -271[rbp], al
.L19:
	lea	rax, -272[rbp]
	add	rax, 2
	mov	esi, DWORD PTR block_size[rip]
	mov	ecx, DWORD PTR -292[rbp]
	mov	rdx, rax
	mov	edi, ecx
	call	ihex_get_data
	cmp	DWORD PTR -288[rbp], 0
	je	.L20
	mov	rax, QWORD PTR .LC26[rip]
	jmp	.L21
.L20:
	mov	rax, QWORD PTR .LC22[rip]
.L21:
	mov	edx, DWORD PTR block_size[rip]
	lea	ecx, 2[rdx]
	lea	rdx, -272[rbp]
	movq	xmm0, rax
	mov	esi, ecx
	mov	rdi, rdx
	call	teensy_write@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jne	.L22
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	die
.L22:
	mov	DWORD PTR -288[rbp], 0
	jmp	.L17
.L29:
	nop
.L17:
	mov	eax, DWORD PTR block_size[rip]
	add	DWORD PTR -292[rbp], eax
.L15:
	mov	eax, DWORD PTR code_size[rip]
	cmp	DWORD PTR -292[rbp], eax
	jl	.L23
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf_verbose
	mov	eax, DWORD PTR reboot_after_programming[rip]
	test	eax, eax
	je	.L24
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf_verbose
	mov	BYTE PTR -272[rbp], -1
	mov	BYTE PTR -271[rbp], -1
	lea	rax, -272[rbp]
	add	rax, 2
	mov	edx, 258
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR block_size[rip]
	lea	ecx, 2[rax]
	mov	rdx, QWORD PTR .LC22[rip]
	lea	rax, -272[rbp]
	movq	xmm0, rdx
	mov	esi, ecx
	mov	rdi, rax
	call	teensy_write@PLT
.L24:
	call	teensy_close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.local	firmware_image
	.comm	firmware_image,65536,32
	.local	firmware_mask
	.comm	firmware_mask,65536,32
	.local	end_record_seen
	.comm	end_record_seen,4,4
	.local	byte_count
	.comm	byte_count,4,4
	.local	extended_addr
	.comm	extended_addr,4,4
	.section	.rodata
.LC30:
	.string	"r"
	.text
	.globl	read_intel_hex
	.type	read_intel_hex, @function
read_intel_hex:
.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, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1052[rbp], 0
	mov	DWORD PTR byte_count[rip], 0
	mov	DWORD PTR end_record_seen[rip], 0
	mov	DWORD PTR -1056[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -1056[rbp]
	cdqe
	lea	rdx, firmware_image[rip]
	mov	BYTE PTR [rax+rdx], -1
	mov	eax, DWORD PTR -1056[rbp]
	cdqe
	lea	rdx, firmware_mask[rip]
	mov	BYTE PTR [rax+rdx], 0
	add	DWORD PTR -1056[rbp], 1
.L31:
	cmp	DWORD PTR -1056[rbp], 65535
	jle	.L32
	mov	DWORD PTR extended_addr[rip], 0
	mov	rax, QWORD PTR -1064[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L35
	mov	eax, -1
	jmp	.L41
.L40:
	mov	BYTE PTR -1040[rbp], 0
	mov	rdx, QWORD PTR -1048[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L43
	add	DWORD PTR -1052[rbp], 1
	movzx	eax, BYTE PTR -1040[rbp]
	test	al, al
	je	.L38
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	parse_hex_line
	test	eax, eax
	jne	.L38
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, -2
	jmp	.L41
.L38:
	mov	eax, DWORD PTR end_record_seen[rip]
	test	eax, eax
	jne	.L44
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L45
.L35:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L40
	jmp	.L37
.L43:
	nop
	jmp	.L37
.L44:
	nop
	jmp	.L37
.L45:
	nop
.L37:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR byte_count[rip]
.L41:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	read_intel_hex, .-read_intel_hex
	.section	.rodata
.LC31:
	.string	"%02x"
.LC32:
	.string	"%04x"
	.text
	.type	parse_hex_line, @function
parse_hex_line:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	je	.L47
	mov	eax, 0
	jmp	.L70
.L47:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 10
	ja	.L49
	mov	eax, 0
	jmp	.L70
.L49:
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 1
	mov	QWORD PTR -32[rbp], rax
	lea	rdx, -52[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L50
	mov	eax, 0
	jmp	.L70
.L50:
	add	QWORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 5
	lea	ebx, [rax+rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	ebx, eax
	jl	.L51
	mov	eax, 0
	jmp	.L70
.L51:
	lea	rdx, -60[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L52
	mov	eax, 0
	jmp	.L70
.L52:
	add	QWORD PTR -32[rbp], 4
	lea	rdx, -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L53
	mov	eax, 0
	jmp	.L70
.L53:
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR extended_addr[rip]
	add	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	cmp	eax, 65535
	jbe	.L54
	mov	eax, 0
	jmp	.L70
.L54:
	add	QWORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -52[rbp]
	movzx	edx, al
	mov	eax, DWORD PTR -60[rbp]
	sar	eax, 8
	movzx	eax, al
	add	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	movzx	eax, al
	add	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	test	eax, eax
	je	.L55
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 1
	jne	.L56
	mov	DWORD PTR end_record_seen[rip], 1
	mov	eax, 1
	jmp	.L70
.L56:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 2
	jne	.L57
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 2
	jne	.L57
	lea	rdx, -44[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L58
	mov	eax, 1
	jmp	.L70
.L58:
	add	QWORD PTR -32[rbp], 4
	mov	eax, DWORD PTR -44[rbp]
	sar	eax, 8
	movzx	edx, al
	mov	eax, DWORD PTR -44[rbp]
	movzx	eax, al
	add	eax, edx
	add	DWORD PTR -36[rbp], eax
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L59
	mov	eax, 1
	jmp	.L70
.L59:
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	movzx	eax, al
	test	eax, eax
	je	.L60
	mov	eax, 1
	jmp	.L70
.L60:
	mov	eax, DWORD PTR -44[rbp]
	sal	eax, 4
	mov	DWORD PTR extended_addr[rip], eax
.L57:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 4
	jne	.L61
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 2
	jne	.L61
	lea	rdx, -44[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L62
	mov	eax, 1
	jmp	.L70
.L62:
	add	QWORD PTR -32[rbp], 4
	mov	eax, DWORD PTR -44[rbp]
	sar	eax, 8
	movzx	edx, al
	mov	eax, DWORD PTR -44[rbp]
	movzx	eax, al
	add	eax, edx
	add	DWORD PTR -36[rbp], eax
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L63
	mov	eax, 1
	jmp	.L70
.L63:
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	movzx	eax, al
	test	eax, eax
	je	.L64
	mov	eax, 1
	jmp	.L70
.L64:
	mov	eax, DWORD PTR -44[rbp]
	sal	eax, 16
	mov	DWORD PTR extended_addr[rip], eax
.L61:
	mov	eax, 1
	jmp	.L70
.L55:
	mov	edx, DWORD PTR byte_count[rip]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	mov	DWORD PTR byte_count[rip], eax
	jmp	.L65
.L67:
	lea	rdx, -44[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L66
	mov	eax, 0
	jmp	.L70
.L66:
	mov	eax, DWORD PTR -44[rbp]
	movzx	eax, al
	mov	DWORD PTR -44[rbp], eax
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR extended_addr[rip]
	add	ecx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, ecx
	mov	ecx, edx
	mov	edx, eax
	lea	rax, firmware_image[rip]
	mov	BYTE PTR [rdx+rax], cl
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR extended_addr[rip]
	add	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	edx, eax
	lea	rax, firmware_mask[rip]
	mov	BYTE PTR [rdx+rax], 1
	add	QWORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -44[rbp]
	add	DWORD PTR -36[rbp], eax
	add	DWORD PTR -40[rbp], 1
	cmp	DWORD PTR -40[rbp], 255
	jle	.L65
	mov	eax, 0
	jmp	.L70
.L65:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jne	.L67
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L68
	mov	eax, 0
	jmp	.L70
.L68:
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	movzx	eax, al
	test	eax, eax
	je	.L69
	mov	eax, 0
	jmp	.L70
.L69:
	mov	eax, 1
.L70:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	parse_hex_line, .-parse_hex_line
	.globl	ihex_bytes_within_range
	.type	ihex_bytes_within_range, @function
ihex_bytes_within_range:
.LFB10:
	.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
	cmp	DWORD PTR -20[rbp], 0
	js	.L73
	cmp	DWORD PTR -20[rbp], 65535
	jg	.L73
	cmp	DWORD PTR -24[rbp], 0
	js	.L73
	cmp	DWORD PTR -24[rbp], 65535
	jle	.L74
.L73:
	mov	eax, 0
	jmp	.L75
.L74:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L76
.L78:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, firmware_mask[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L77
	mov	eax, 1
	jmp	.L75
.L77:
	add	DWORD PTR -4[rbp], 1
.L76:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L78
	mov	eax, 0
.L75:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	ihex_bytes_within_range, .-ihex_bytes_within_range
	.globl	ihex_get_data
	.type	ihex_get_data, @function
ihex_get_data:
.LFB11:
	.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	QWORD PTR -32[rbp], rdx
	cmp	DWORD PTR -20[rbp], 0
	js	.L80
	cmp	DWORD PTR -24[rbp], 0
	js	.L80
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cmp	eax, 65535
	jle	.L81
.L80:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L82
.L83:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
	add	DWORD PTR -4[rbp], 1
.L82:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L83
	jmp	.L79
.L81:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L85
.L88:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, firmware_mask[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L86
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, firmware_image[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	mov	BYTE PTR [rdx], al
	jmp	.L87
.L86:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
.L87:
	add	DWORD PTR -20[rbp], 1
	add	DWORD PTR -4[rbp], 1
.L85:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L88
.L79:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ihex_get_data, .-ihex_get_data
	.globl	printf_verbose
	.type	printf_verbose, @function
printf_verbose:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L90
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L90:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -212[rbp], 0
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L91
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	vprintf@PLT
	mov	DWORD PTR -212[rbp], eax
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L91:
	mov	eax, DWORD PTR -212[rbp]
	mov	rcx, QWORD PTR -184[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L93
	call	__stack_chk_fail@PLT
.L93:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	printf_verbose, .-printf_verbose
	.globl	delay
	.type	delay, @function
delay:
.LFB13:
	.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
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm1, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR .LC33[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	edi, eax
	call	usleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	delay, .-delay
	.globl	die
	.type	die, @function
die:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L96
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L96:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE14:
	.size	die, .-die
	.section	.rodata
.LC34:
	.string	"-w"
.LC35:
	.string	"-r"
.LC36:
	.string	"-n"
.LC37:
	.string	"-v"
.LC38:
	.string	"-mmcu="
.LC39:
	.string	"at90usb"
.LC40:
	.string	"atmega"
.LC41:
	.string	"Unknown MCU type\n"
.LC42:
	.string	"128"
.LC43:
	.string	"64"
.LC44:
	.string	"32"
.LC45:
	.string	"16"
.LC46:
	.string	"8"
	.text
	.globl	parse_options
	.type	parse_options, @function
parse_options:
.LFB15:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 1
	jmp	.L99
.L114:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L100
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L101
	mov	DWORD PTR wait_for_device_to_appear[rip], 1
	jmp	.L102
.L101:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L103
	mov	DWORD PTR hard_reboot_device[rip], 1
	jmp	.L102
.L103:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L104
	mov	DWORD PTR reboot_after_programming[rip], 0
	jmp	.L102
.L104:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L105
	mov	DWORD PTR verbose[rip], 1
	jmp	.L102
.L105:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 6
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L102
	add	QWORD PTR -8[rbp], 6
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 7
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L106
	add	QWORD PTR -8[rbp], 7
	jmp	.L107
.L106:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 6
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L108
	add	QWORD PTR -8[rbp], 6
	jmp	.L107
.L108:
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	die
.L107:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 3
	lea	rsi, .LC42[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L109
	mov	DWORD PTR code_size[rip], 131072
	mov	DWORD PTR block_size[rip], 256
	jmp	.L102
.L109:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L110
	mov	DWORD PTR code_size[rip], 65536
	mov	DWORD PTR block_size[rip], 256
	jmp	.L102
.L110:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	lea	rsi, .LC44[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L111
	mov	DWORD PTR code_size[rip], 32768
	mov	DWORD PTR block_size[rip], 128
	jmp	.L102
.L111:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L112
	mov	DWORD PTR code_size[rip], 16384
	mov	DWORD PTR block_size[rip], 128
	jmp	.L102
.L112:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, BYTE PTR .LC46[rip]
	movzx	eax, al
	movzx	edx, dl
	sub	eax, edx
	test	eax, eax
	jne	.L113
	mov	DWORD PTR code_size[rip], 8192
	mov	DWORD PTR block_size[rip], 128
	jmp	.L102
.L113:
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	die
	jmp	.L102
.L100:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR filename[rip], rax
.L102:
	add	DWORD PTR -12[rbp], 1
.L99:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L114
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	parse_options, .-parse_options
	.section	.rodata
	.align 8
.LC15:
	.long	0
	.long	1079574528
	.align 8
.LC22:
	.long	0
	.long	1070596096
	.align 8
.LC26:
	.long	0
	.long	1074266112
	.align 8
.LC33:
	.long	0
	.long	1093567616
	.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	"649834.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: hid_bootloader_cli -mmcu=<MCU> [-w] [-h] [-n"
	.ascii	"] [-v] <file.hex>\012\000"
	.align	2
.LC1:
	.ascii	"\011-w : Wait for device to appear\012\000"
	.align	2
.LC2:
	.ascii	"\011-r : Use hard reboot if device not online\012\000"
	.align	2
.LC3:
	.ascii	"\011-n : No reboot after programming\012\000"
	.align	2
.LC4:
	.ascii	"\011-v : Verbose output\012\000"
	.align	2
.LC5:
	.ascii	"\012<MCU> = atmegaXXuY or at90usbXXXY\000"
	.align	2
.LC6:
	.ascii	"\012For support and more information, please visit:"
	.ascii	"\012\000"
	.align	2
.LC7:
	.ascii	"http://www.lufa-lib.org\012\000"
	.align	2
.LC8:
	.ascii	"\012Based on the TeensyHID command line programmer "
	.ascii	"software:\012\000"
	.align	2
.LC9:
	.ascii	"http://www.pjrc.com/teensy/loader_cli.html\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #69
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L2+8
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L2+12
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L2+16
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L2+20
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L2+24
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #49
	mov	r1, #1
	ldr	r0, .L2+28
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L2+32
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #58
	mov	r1, #1
	ldr	r0, .L2+36
	bl	fwrite
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L2+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	usage, .-usage
	.global	wait_for_device_to_appear
	.bss
	.align	2
	.type	wait_for_device_to_appear, %object
	.size	wait_for_device_to_appear, 4
wait_for_device_to_appear:
	.space	4
	.global	hard_reboot_device
	.align	2
	.type	hard_reboot_device, %object
	.size	hard_reboot_device, 4
hard_reboot_device:
	.space	4
	.global	reboot_after_programming
	.data
	.align	2
	.type	reboot_after_programming, %object
	.size	reboot_after_programming, 4
reboot_after_programming:
	.word	1
	.global	verbose
	.bss
	.align	2
	.type	verbose, %object
	.size	verbose, 4
verbose:
	.space	4
	.global	code_size
	.align	2
	.type	code_size, %object
	.size	code_size, 4
code_size:
	.space	4
	.global	block_size
	.align	2
	.type	block_size, %object
	.size	block_size, 4
block_size:
	.space	4
	.global	filename
	.align	2
	.type	filename, %object
	.size	filename, 4
filename:
	.space	4
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012hid_bootloader_cli v3.0 by Dean Camera, modifie"
	.ascii	"d by Dreg\012\000"
	.align	2
.LC11:
	.ascii	"Filename must be specified\012\012\000"
	.align	2
.LC12:
	.ascii	"MCU type must be specified\012\012\000"
	.align	2
.LC13:
	.ascii	"Teensy Loader, Command Line, Version 2.0\012\000"
	.align	2
.LC14:
	.ascii	"error reading intel hex file \"%s\"\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.align	2
.LC15:
	.ascii	"Read \"%s\": %d bytes, %.1f%% usage\012\000"
	.align	2
.LC16:
	.ascii	"Unable to find rebootor\012\000"
	.align	2
.LC17:
	.ascii	"Hard Reboot performed\012\000"
	.align	2
.LC18:
	.ascii	"Unable to open device\012\000"
	.align	2
.LC19:
	.ascii	"Waiting for Teensy device...\012\000"
	.align	2
.LC20:
	.ascii	" (hint: press the reset button)\012\000"
	.align	2
.LC21:
	.ascii	"Found HalfKay Bootloader\012\000"
	.align	2
.LC22:
	.ascii	"Programming\000"
	.align	2
.LC23:
	.ascii	".\000"
	.align	2
.LC24:
	.ascii	"error writing to Teensy\012\000"
	.align	2
.LC25:
	.ascii	"\012\000"
	.align	2
.LC26:
	.ascii	"Booting\012\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #308
	str	r0, [fp, #-312]
	str	r1, [fp, #-316]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-300]
	mov	r3, #0
	str	r3, [fp, #-296]
	ldr	r0, .L32+4
	bl	puts
	ldr	r1, [fp, #-316]
	ldr	r0, [fp, #-312]
	bl	parse_options
	ldr	r3, .L32+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L32+12
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L32+16
	bl	fwrite
	bl	usage
.L5:
	ldr	r3, .L32+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L32+12
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L32+24
	bl	fwrite
	bl	usage
.L6:
	ldr	r0, .L32+28
	bl	printf_verbose
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	read_intel_hex
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bge	.L7
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+32
	bl	die
.L7:
	ldr	r3, .L32+8
	ldr	r6, [r3]
	ldr	r0, [fp, #-292]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L32+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L32+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-292]
	mov	r1, r6
	ldr	r0, .L32+40
	bl	printf_verbose
.L14:
	bl	teensy_open
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, .L32+44
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	bl	hard_reboot
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L32+48
	bl	die
.L11:
	ldr	r0, .L32+52
	bl	printf_verbose
	ldr	r3, .L32+44
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L32+56
	mov	r2, #1
	str	r2, [r3]
.L10:
	ldr	r3, .L32+56
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L32+60
	bl	die
.L12:
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L32+64
	bl	printf_verbose
	ldr	r0, .L32+68
	bl	printf_verbose
	mov	r3, #1
	str	r3, [fp, #-296]
.L13:
	mov	r0, #0
	ldr	r1, .L32+72
	bl	delay
	b	.L14
.L30:
	nop
	ldr	r0, .L32+76
	bl	printf_verbose
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	read_intel_hex
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bge	.L16
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+32
	bl	die
.L16:
	ldr	r3, .L32+8
	ldr	r6, [r3]
	ldr	r0, [fp, #-292]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L32+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L32+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-292]
	mov	r1, r6
	ldr	r0, .L32+40
	bl	printf_verbose
.L15:
	ldr	r0, .L32+80
	bl	printf_verbose
	ldr	r3, .L32+84
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-304]
	b	.L17
.L25:
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	ble	.L18
	ldr	r3, .L32+88
	ldr	r2, [r3]
	ldr	r3, [fp, #-304]
	add	r3, r2, r3
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	ihex_bytes_within_range
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
.L18:
	ldr	r0, .L32+92
	bl	printf_verbose
	ldr	r3, .L32+20
	ldr	r3, [r3]
	cmp	r3, #65536
	bge	.L20
	ldr	r3, [fp, #-304]
	and	r3, r3, #255
	strb	r3, [fp, #-284]
	ldr	r3, [fp, #-304]
	asr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-283]
	b	.L21
.L20:
	ldr	r3, [fp, #-304]
	asr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-284]
	ldr	r3, [fp, #-304]
	asr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-283]
.L21:
	ldr	r3, .L32+88
	ldr	r1, [r3]
	sub	r3, fp, #284
	add	r3, r3, #2
	mov	r2, r3
	ldr	r0, [fp, #-304]
	bl	ihex_get_data
	ldr	r3, .L32+88
	ldr	r3, [r3]
	add	r1, r3, #2
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	beq	.L22
	mov	r2, #0
	ldr	r3, .L32+96
	b	.L23
.L22:
	mov	r2, #0
	ldr	r3, .L32+72
.L23:
	sub	r0, fp, #284
	bl	teensy_write
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L24
	ldr	r0, .L32+100
	bl	die
.L24:
	mov	r3, #0
	str	r3, [fp, #-300]
	b	.L19
.L31:
	nop
.L19:
	ldr	r3, .L32+88
	ldr	r3, [r3]
	ldr	r2, [fp, #-304]
	add	r3, r2, r3
	str	r3, [fp, #-304]
.L17:
	ldr	r3, .L32+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-304]
	cmp	r2, r3
	blt	.L25
	ldr	r0, .L32+104
	bl	printf_verbose
	ldr	r3, .L32+108
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L32+112
	bl	printf_verbose
	mvn	r3, #0
	strb	r3, [fp, #-284]
	mvn	r3, #0
	strb	r3, [fp, #-283]
	sub	r3, fp, #284
	add	r3, r3, #2
	ldr	r2, .L32+116
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L32+88
	ldr	r3, [r3]
	add	r1, r3, #2
	sub	r0, fp, #284
	mov	r2, #0
	ldr	r3, .L32+72
	bl	teensy_write
.L26:
	bl	teensy_close
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC27
	.word	.LC10
	.word	filename
	.word	stderr
	.word	.LC11
	.word	code_size
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	1079574528
	.word	.LC15
	.word	hard_reboot_device
	.word	.LC16
	.word	.LC17
	.word	wait_for_device_to_appear
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	1070596096
	.word	.LC21
	.word	.LC22
	.word	stdout
	.word	block_size
	.word	.LC23
	.word	1074266112
	.word	.LC24
	.word	.LC25
	.word	reboot_after_programming
	.word	.LC26
	.word	258
	.size	main, .-main
	.local	firmware_image
	.comm	firmware_image,65536,4
	.local	firmware_mask
	.comm	firmware_mask,65536,4
	.local	end_record_seen
	.comm	end_record_seen,4,4
	.local	byte_count
	.comm	byte_count,4,4
	.local	extended_addr
	.comm	extended_addr,4,4
	.section	.rodata
	.align	2
.LC28:
	.ascii	"r\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_intel_hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_intel_hex, %function
read_intel_hex:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1040]
	ldr	r3, .L50+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+8
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L35
.L36:
	ldr	r2, .L50+12
	ldr	r3, [fp, #-1044]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r2, .L50+16
	ldr	r3, [fp, #-1044]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L35:
	ldr	r3, [fp, #-1044]
	cmp	r3, #65536
	blt	.L36
	ldr	r3, .L50+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L50+24
	ldr	r0, [fp, #-1048]
	bl	fopen
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bne	.L39
	mvn	r3, #0
	b	.L45
.L44:
	mov	r3, #0
	strb	r3, [fp, #-1032]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1036]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
	ldrb	r3, [fp, #-1032]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L42
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	parse_hex_line
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	ldr	r0, [fp, #-1036]
	bl	fclose
	mvn	r3, #1
	b	.L45
.L42:
	ldr	r3, .L50+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L48
	ldr	r3, .L50+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
.L39:
	ldr	r0, [fp, #-1036]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	b	.L41
.L47:
	nop
	b	.L41
.L48:
	nop
	b	.L41
.L49:
	nop
.L41:
	ldr	r0, [fp, #-1036]
	bl	fclose
	ldr	r3, .L50+4
	ldr	r3, [r3]
.L45:
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC29
	.word	byte_count
	.word	end_record_seen
	.word	firmware_image
	.word	firmware_mask
	.word	extended_addr
	.word	.LC28
	.word	stdin
	.size	read_intel_hex, .-read_intel_hex
	.section	.rodata
	.align	2
.LC30:
	.ascii	"%02x\000"
	.align	2
.LC31:
	.ascii	"%04x\000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_hex_line, %function
parse_hex_line:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	beq	.L53
	mov	r3, #0
	b	.L76
.L53:
	ldr	r0, [fp, #-56]
	bl	strlen
	mov	r3, r0
	cmp	r3, #10
	bhi	.L55
	mov	r3, #0
	b	.L76
.L55:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L78+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L56
	mov	r3, #0
	b	.L76
.L56:
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	add	r3, r3, #5
	lsl	r4, r3, #1
	ldr	r0, [fp, #-56]
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	blt	.L57
	mov	r3, #0
	b	.L76
.L57:
	sub	r3, fp, #48
	mov	r2, r3
	ldr	r1, .L78+8
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	mov	r3, #0
	b	.L76
.L58:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	sub	r3, fp, #44
	mov	r2, r3
	ldr	r1, .L78+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	mov	r3, #0
	b	.L76
.L59:
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r3, .L78+12
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	add	r3, r3, r2
	cmp	r3, #65536
	bcc	.L60
	mov	r3, #0
	b	.L76
.L60:
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	and	r2, r3, #255
	ldr	r3, [fp, #-48]
	asr	r3, r3, #8
	and	r3, r3, #255
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	and	r3, r3, #255
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	and	r3, r3, #255
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	bne	.L62
	ldr	r3, .L78+16
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #1
	b	.L76
.L62:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	bne	.L63
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bne	.L63
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L78+8
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L64
	mov	r3, #1
	b	.L76
.L64:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	asr	r3, r3, #8
	and	r2, r3, #255
	ldr	r3, [fp, #-32]
	and	r3, r3, #255
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	sub	r3, fp, #36
	mov	r2, r3
	ldr	r1, .L78+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	mov	r3, #1
	b	.L76
.L65:
	ldr	r3, [fp, #-36]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L66
	mov	r3, #1
	b	.L76
.L66:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L78+12
	str	r2, [r3]
.L63:
	ldr	r3, [fp, #-44]
	cmp	r3, #4
	bne	.L67
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bne	.L67
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L78+8
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L68
	mov	r3, #1
	b	.L76
.L68:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	asr	r3, r3, #8
	and	r2, r3, #255
	ldr	r3, [fp, #-32]
	and	r3, r3, #255
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	sub	r3, fp, #36
	mov	r2, r3
	ldr	r1, .L78+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L69
	mov	r3, #1
	b	.L76
.L69:
	ldr	r3, [fp, #-36]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L70
	mov	r3, #1
	b	.L76
.L70:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #16
	mov	r2, r3
	ldr	r3, .L78+12
	str	r2, [r3]
.L67:
	mov	r3, #1
	b	.L76
.L61:
	ldr	r3, .L78+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, .L78+20
	str	r3, [r2]
	b	.L71
.L73:
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L78+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L72
	mov	r3, #0
	b	.L76
.L72:
	ldr	r3, [fp, #-32]
	and	r3, r3, #255
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	mov	r1, r3
	ldr	r3, .L78+12
	ldr	r3, [r3]
	add	r1, r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	and	r1, r2, #255
	ldr	r2, .L78+24
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r3, .L78+12
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L78+28
	mov	r1, #1
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #255
	ble	.L71
	mov	r3, #0
	b	.L76
.L71:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L73
	sub	r3, fp, #36
	mov	r2, r3
	ldr	r1, .L78+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L74
	mov	r3, #0
	b	.L76
.L74:
	ldr	r3, [fp, #-36]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L75
	mov	r3, #0
	b	.L76
.L75:
	mov	r3, #1
.L76:
	ldr	r2, .L78
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L77
	bl	__stack_chk_fail
.L77:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC32
	.word	.LC30
	.word	.LC31
	.word	extended_addr
	.word	end_record_seen
	.word	byte_count
	.word	firmware_image
	.word	firmware_mask
	.size	parse_hex_line, .-parse_hex_line
	.align	2
	.global	ihex_bytes_within_range
	.syntax unified
	.arm
	.fpu softvfp
	.type	ihex_bytes_within_range, %function
ihex_bytes_within_range:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L81
	ldr	r3, [fp, #-16]
	cmp	r3, #65536
	bge	.L81
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L81
	ldr	r3, [fp, #-20]
	cmp	r3, #65536
	blt	.L82
.L81:
	mov	r3, #0
	b	.L83
.L82:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L84
.L86:
	ldr	r2, .L87
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L85
	mov	r3, #1
	b	.L83
.L85:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L84:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L86
	mov	r3, #0
.L83:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L88:
	.align	2
.L87:
	.word	firmware_mask
	.size	ihex_bytes_within_range, .-ihex_bytes_within_range
	.align	2
	.global	ihex_get_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	ihex_get_data, %function
ihex_get_data:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L90
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L90
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	cmp	r3, #65536
	blt	.L91
.L90:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L92
.L93:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L92:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L93
	b	.L89
.L91:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L95
.L98:
	ldr	r2, .L99
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L96
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r1, .L99+4
	ldr	r2, [fp, #-16]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L97
.L96:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
.L97:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L95:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L98
.L89:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L100:
	.align	2
.L99:
	.word	firmware_mask
	.word	firmware_image
	.size	ihex_get_data, .-ihex_get_data
	.section	.rodata
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printf_verbose
	.syntax unified
	.arm
	.fpu softvfp
	.type	printf_verbose, %function
printf_verbose:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L105
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	add	r3, fp, #8
	str	r3, [fp, #-16]
	ldr	r3, .L105+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L102
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	vprintf
	str	r0, [fp, #-12]
	ldr	r3, .L105+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L102:
	ldr	r3, [fp, #-12]
	ldr	r2, .L105
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L104
	bl	__stack_chk_fail
.L104:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L106:
	.align	2
.L105:
	.word	.LC33
	.word	verbose
	.word	stdout
	.size	printf_verbose, .-printf_verbose
	.global	__aeabi_d2uiz
	.align	2
	.global	delay
	.syntax unified
	.arm
	.fpu softvfp
	.type	delay, %function
delay:
	@ 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, #-12]
	str	r1, [fp, #-8]
	mov	r2, #0
	ldr	r3, .L108
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	mov	r0, r3
	bl	usleep
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	1093567616
	.size	delay, .-delay
	.section	.rodata
	.align	2
.LC34:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	die
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	ldr	r3, .L112
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldr	r3, .L112+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, .L112+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r0, #1
	bl	exit
.L113:
	.align	2
.L112:
	.word	.LC34
	.word	stderr
	.size	die, .-die
	.section	.rodata
	.align	2
.LC35:
	.ascii	"-w\000"
	.align	2
.LC36:
	.ascii	"-r\000"
	.align	2
.LC37:
	.ascii	"-n\000"
	.align	2
.LC38:
	.ascii	"-v\000"
	.align	2
.LC39:
	.ascii	"-mmcu=\000"
	.align	2
.LC40:
	.ascii	"at90usb\000"
	.align	2
.LC41:
	.ascii	"atmega\000"
	.align	2
.LC42:
	.ascii	"Unknown MCU type\012\000"
	.align	2
.LC43:
	.ascii	"128\000"
	.align	2
.LC44:
	.ascii	"64\000"
	.align	2
.LC45:
	.ascii	"32\000"
	.align	2
.LC46:
	.ascii	"16\000"
	.align	2
.LC47:
	.ascii	"8\000"
	.text
	.align	2
	.global	parse_options
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_options, %function
parse_options:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L115
.L130:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L116
	ldr	r1, .L131
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L117
	ldr	r3, .L131+4
	mov	r2, #1
	str	r2, [r3]
	b	.L118
.L117:
	ldr	r1, .L131+8
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L119
	ldr	r3, .L131+12
	mov	r2, #1
	str	r2, [r3]
	b	.L118
.L119:
	ldr	r1, .L131+16
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L120
	ldr	r3, .L131+20
	mov	r2, #0
	str	r2, [r3]
	b	.L118
.L120:
	ldr	r1, .L131+24
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L121
	ldr	r3, .L131+28
	mov	r2, #1
	str	r2, [r3]
	b	.L118
.L121:
	mov	r2, #6
	ldr	r1, .L131+32
	ldr	r0, [fp, #-8]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L118
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	str	r3, [fp, #-8]
	mov	r2, #7
	ldr	r1, .L131+36
	ldr	r0, [fp, #-8]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L122
	ldr	r3, [fp, #-8]
	add	r3, r3, #7
	str	r3, [fp, #-8]
	b	.L123
.L122:
	mov	r2, #6
	ldr	r1, .L131+40
	ldr	r0, [fp, #-8]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L124
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	str	r3, [fp, #-8]
	b	.L123
.L124:
	ldr	r0, .L131+44
	bl	die
.L123:
	mov	r2, #3
	ldr	r1, .L131+48
	ldr	r0, [fp, #-8]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L125
	ldr	r3, .L131+52
	mov	r2, #131072
	str	r2, [r3]
	ldr	r3, .L131+56
	mov	r2, #256
	str	r2, [r3]
	b	.L118
.L125:
	mov	r2, #2
	ldr	r1, .L131+60
	ldr	r0, [fp, #-8]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L126
	ldr	r3, .L131+52
	mov	r2, #65536
	str	r2, [r3]
	ldr	r3, .L131+56
	mov	r2, #256
	str	r2, [r3]
	b	.L118
.L126:
	mov	r2, #2
	ldr	r1, .L131+64
	ldr	r0, [fp, #-8]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L127
	ldr	r3, .L131+52
	mov	r2, #32768
	str	r2, [r3]
	ldr	r3, .L131+56
	mov	r2, #128
	str	r2, [r3]
	b	.L118
.L127:
	mov	r2, #2
	ldr	r1, .L131+68
	ldr	r0, [fp, #-8]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L128
	ldr	r3, .L131+52
	mov	r2, #16384
	str	r2, [r3]
	ldr	r3, .L131+56
	mov	r2, #128
	str	r2, [r3]
	b	.L118
.L128:
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L131+72
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r2, r3
	cmp	r3, #0
	bne	.L129
	ldr	r3, .L131+52
	mov	r2, #8192
	str	r2, [r3]
	ldr	r3, .L131+56
	mov	r2, #128
	str	r2, [r3]
	b	.L118
.L129:
	ldr	r0, .L131+44
	bl	die
	b	.L118
.L116:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L131+76
	str	r3, [r2]
.L118:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L115:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L130
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L132:
	.align	2
.L131:
	.word	.LC35
	.word	wait_for_device_to_appear
	.word	.LC36
	.word	hard_reboot_device
	.word	.LC37
	.word	reboot_after_programming
	.word	.LC38
	.word	verbose
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	code_size
	.word	block_size
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	filename
	.size	parse_options, .-parse_options
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
