	.file	"845950.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s\n\n"
	.align 8
.LC1:
	.ascii	"Usage: teensy_loader_cli --mcu=<MCU> [-w] [-h] [-n] [-b] [-v"
	.ascii	"] <file.hex>\n\t-w : Wait for device to appear\n\t-r : Use h"
	.ascii	"ard reboot if device not online\n\t-s : Use soft reboot if d"
	.ascii	"evice "
	.string	"not online (Teensy3.x only)\n\t-n : No reboot after programming\n\t-b : Boot only, do not program\n\t-v : Verbose output\n\nUse `teensy_loader_cli --list-mcus` to list supported MCUs.\n\nFor more information, please visit:\nhttp://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
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L2:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 436
	mov	esi, 1
	lea	rdi, .LC1[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	soft_reboot_device
	.align 4
	.type	soft_reboot_device, @object
	.size	soft_reboot_device, 4
soft_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	boot_only
	.align 4
	.type	boot_only, @object
	.size	boot_only, 4
boot_only:
	.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
.LC2:
	.string	"Filename must be specified"
.LC3:
	.string	"MCU type must be specified"
	.align 8
.LC4:
	.string	"Teensy Loader, Command Line, Version 2.1\n"
	.align 8
.LC5:
	.string	"error reading intel hex file \"%s\""
	.align 8
.LC7:
	.string	"Read \"%s\": %d bytes, %.1f%% usage\n"
.LC8:
	.string	"Unable to find rebootor\n"
.LC9:
	.string	"Hard Reboot performed\n"
.LC10:
	.string	"Soft reboot performed\n"
	.align 8
.LC11:
	.string	"Unable to open device (hint: try -w option)\n"
.LC12:
	.string	"Waiting for Teensy device...\n"
	.align 8
.LC13:
	.string	" (hint: press the reset button)\n"
.LC15:
	.string	"Found HalfKay Bootloader\n"
.LC16:
	.string	"Programming"
.LC17:
	.string	"."
.LC18:
	.string	"Unknown code/block size\n"
.LC21:
	.string	"error writing to Teensy\n"
.LC22:
	.string	"\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, 2112
	mov	DWORD PTR -2100[rbp], edi
	mov	QWORD PTR -2112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2080[rbp], 1
	mov	DWORD PTR -2076[rbp], 0
	mov	rdx, QWORD PTR -2112[rbp]
	mov	eax, DWORD PTR -2100[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parse_options
	mov	rax, QWORD PTR filename[rip]
	test	rax, rax
	jne	.L4
	mov	eax, DWORD PTR boot_only[rip]
	test	eax, eax
	jne	.L4
	lea	rdi, .LC2[rip]
	call	usage
.L4:
	mov	eax, DWORD PTR code_size[rip]
	test	eax, eax
	jne	.L5
	lea	rdi, .LC3[rip]
	call	usage
.L5:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf_verbose
	mov	eax, DWORD PTR block_size[rip]
	cmp	eax, 512
	je	.L6
	mov	eax, DWORD PTR block_size[rip]
	cmp	eax, 1024
	jne	.L7
.L6:
	mov	eax, DWORD PTR block_size[rip]
	add	eax, 64
	mov	DWORD PTR -2084[rbp], eax
	jmp	.L8
.L7:
	mov	eax, DWORD PTR block_size[rip]
	add	eax, 2
	mov	DWORD PTR -2084[rbp], eax
.L8:
	mov	eax, DWORD PTR boot_only[rip]
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR filename[rip]
	mov	rdi, rax
	call	read_intel_hex
	mov	DWORD PTR -2072[rbp], eax
	cmp	DWORD PTR -2072[rbp], 0
	jns	.L10
	mov	rax, QWORD PTR filename[rip]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	die
.L10:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -2072[rbp]
	mov	eax, DWORD PTR code_size[rip]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm1, xmm0
	movq	rcx, xmm1
	mov	rax, QWORD PTR filename[rip]
	mov	edx, DWORD PTR -2072[rbp]
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf_verbose
.L19:
	call	teensy_open@PLT
	test	eax, eax
	jne	.L41
	mov	eax, DWORD PTR hard_reboot_device[rip]
	test	eax, eax
	je	.L13
	call	hard_reboot@PLT
	test	eax, eax
	jne	.L14
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	die
.L14:
	lea	rdi, .LC9[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
.L13:
	mov	eax, DWORD PTR soft_reboot_device[rip]
	test	eax, eax
	je	.L15
	call	soft_reboot@PLT
	test	eax, eax
	je	.L16
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf_verbose
.L16:
	mov	DWORD PTR soft_reboot_device[rip], 0
	mov	DWORD PTR wait_for_device_to_appear[rip], 1
.L15:
	mov	eax, DWORD PTR wait_for_device_to_appear[rip]
	test	eax, eax
	jne	.L17
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	die
.L17:
	cmp	DWORD PTR -2076[rbp], 0
	jne	.L18
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf_verbose
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf_verbose
	mov	DWORD PTR -2076[rbp], 1
.L18:
	mov	rax, QWORD PTR .LC14[rip]
	movq	xmm0, rax
	call	delay
	jmp	.L19
.L41:
	nop
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf_verbose
	mov	eax, DWORD PTR boot_only[rip]
	test	eax, eax
	je	.L20
	mov	edx, DWORD PTR -2084[rbp]
	lea	rax, -2064[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	boot
	call	teensy_close@PLT
	mov	eax, 0
	jmp	.L38
.L20:
	cmp	DWORD PTR -2076[rbp], 0
	je	.L22
	mov	rax, QWORD PTR filename[rip]
	mov	rdi, rax
	call	read_intel_hex
	mov	DWORD PTR -2072[rbp], eax
	cmp	DWORD PTR -2072[rbp], 0
	jns	.L23
	mov	rax, QWORD PTR filename[rip]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	die
.L23:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -2072[rbp]
	mov	eax, DWORD PTR code_size[rip]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm1, xmm0
	movq	rcx, xmm1
	mov	rax, QWORD PTR filename[rip]
	mov	edx, DWORD PTR -2072[rbp]
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf_verbose
.L22:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf_verbose
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -2088[rbp], 0
	jmp	.L24
.L36:
	cmp	DWORD PTR -2080[rbp], 0
	jne	.L25
	mov	edx, DWORD PTR block_size[rip]
	mov	eax, DWORD PTR -2088[rbp]
	add	eax, edx
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -2088[rbp]
	mov	esi, edx
	mov	edi, eax
	call	ihex_bytes_within_range
	test	eax, eax
	je	.L42
.L25:
	cmp	DWORD PTR -2080[rbp], 0
	jne	.L27
	mov	edx, DWORD PTR block_size[rip]
	mov	eax, DWORD PTR -2088[rbp]
	mov	esi, edx
	mov	edi, eax
	call	memory_is_blank
	test	eax, eax
	jne	.L43
.L27:
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf_verbose
	mov	eax, DWORD PTR block_size[rip]
	cmp	eax, 256
	jg	.L28
	mov	eax, DWORD PTR code_size[rip]
	cmp	eax, 65535
	jg	.L28
	mov	eax, DWORD PTR -2088[rbp]
	mov	BYTE PTR -2064[rbp], al
	mov	eax, DWORD PTR -2088[rbp]
	sar	eax, 8
	mov	BYTE PTR -2063[rbp], al
	lea	rax, -2064[rbp]
	add	rax, 2
	mov	esi, DWORD PTR block_size[rip]
	mov	ecx, DWORD PTR -2088[rbp]
	mov	rdx, rax
	mov	edi, ecx
	call	ihex_get_data
	mov	eax, DWORD PTR block_size[rip]
	add	eax, 2
	mov	DWORD PTR -2084[rbp], eax
	jmp	.L29
.L28:
	mov	eax, DWORD PTR block_size[rip]
	cmp	eax, 256
	jne	.L30
	mov	eax, DWORD PTR -2088[rbp]
	sar	eax, 8
	mov	BYTE PTR -2064[rbp], al
	mov	eax, DWORD PTR -2088[rbp]
	sar	eax, 16
	mov	BYTE PTR -2063[rbp], al
	lea	rax, -2064[rbp]
	add	rax, 2
	mov	esi, DWORD PTR block_size[rip]
	mov	ecx, DWORD PTR -2088[rbp]
	mov	rdx, rax
	mov	edi, ecx
	call	ihex_get_data
	mov	eax, DWORD PTR block_size[rip]
	add	eax, 2
	mov	DWORD PTR -2084[rbp], eax
	jmp	.L29
.L30:
	mov	eax, DWORD PTR block_size[rip]
	cmp	eax, 512
	je	.L31
	mov	eax, DWORD PTR block_size[rip]
	cmp	eax, 1024
	jne	.L32
.L31:
	mov	eax, DWORD PTR -2088[rbp]
	mov	BYTE PTR -2064[rbp], al
	mov	eax, DWORD PTR -2088[rbp]
	sar	eax, 8
	mov	BYTE PTR -2063[rbp], al
	mov	eax, DWORD PTR -2088[rbp]
	sar	eax, 16
	mov	BYTE PTR -2062[rbp], al
	lea	rax, -2064[rbp]
	add	rax, 3
	mov	edx, 61
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -2064[rbp]
	add	rax, 64
	mov	esi, DWORD PTR block_size[rip]
	mov	ecx, DWORD PTR -2088[rbp]
	mov	rdx, rax
	mov	edi, ecx
	call	ihex_get_data
	mov	eax, DWORD PTR block_size[rip]
	add	eax, 64
	mov	DWORD PTR -2084[rbp], eax
	jmp	.L29
.L32:
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	die
.L29:
	cmp	DWORD PTR -2080[rbp], 0
	je	.L33
	mov	rax, QWORD PTR .LC19[rip]
	jmp	.L34
.L33:
	mov	rax, QWORD PTR .LC20[rip]
.L34:
	mov	ecx, DWORD PTR -2084[rbp]
	lea	rdx, -2064[rbp]
	movq	xmm0, rax
	mov	esi, ecx
	mov	rdi, rdx
	call	teensy_write@PLT
	mov	DWORD PTR -2068[rbp], eax
	cmp	DWORD PTR -2068[rbp], 0
	jne	.L35
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	die
.L35:
	mov	DWORD PTR -2080[rbp], 0
	jmp	.L26
.L42:
	nop
	jmp	.L26
.L43:
	nop
.L26:
	mov	eax, DWORD PTR block_size[rip]
	add	DWORD PTR -2088[rbp], eax
.L24:
	mov	eax, DWORD PTR code_size[rip]
	cmp	DWORD PTR -2088[rbp], eax
	jl	.L36
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf_verbose
	mov	eax, DWORD PTR reboot_after_programming[rip]
	test	eax, eax
	je	.L37
	mov	edx, DWORD PTR -2084[rbp]
	lea	rax, -2064[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	boot
.L37:
	call	teensy_close@PLT
	mov	eax, 0
.L38:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.local	firmware_image
	.comm	firmware_image,1048576,32
	.local	firmware_mask
	.comm	firmware_mask,1048576,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
.LC23:
	.string	"r"
	.align 8
.LC24:
	.string	"Warning, HEX parse error line %d\n"
	.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	.L45
.L46:
	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
.L45:
	cmp	DWORD PTR -1056[rbp], 1048575
	jle	.L46
	mov	DWORD PTR extended_addr[rip], 0
	mov	rax, QWORD PTR -1064[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L49
	mov	eax, -1
	jmp	.L55
.L54:
	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	.L57
	add	DWORD PTR -1052[rbp], 1
	movzx	eax, BYTE PTR -1040[rbp]
	test	al, al
	je	.L52
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	parse_hex_line
	test	eax, eax
	jne	.L52
	mov	eax, DWORD PTR -1052[rbp]
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -2
	jmp	.L55
.L52:
	mov	eax, DWORD PTR end_record_seen[rip]
	test	eax, eax
	jne	.L58
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L59
.L49:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L54
	jmp	.L51
.L57:
	nop
	jmp	.L51
.L58:
	nop
	jmp	.L51
.L59:
	nop
.L51:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR byte_count[rip]
.L55:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	read_intel_hex, .-read_intel_hex
	.section	.rodata
.LC25:
	.string	"%02x"
.LC26:
	.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	.L61
	mov	eax, 0
	jmp	.L84
.L61:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 10
	ja	.L63
	mov	eax, 0
	jmp	.L84
.L63:
	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, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L64
	mov	eax, 0
	jmp	.L84
.L64:
	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	.L65
	mov	eax, 0
	jmp	.L84
.L65:
	lea	rdx, -60[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L66
	mov	eax, 0
	jmp	.L84
.L66:
	add	QWORD PTR -32[rbp], 4
	lea	rdx, -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L67
	mov	eax, 0
	jmp	.L84
.L67:
	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, 1048575
	jbe	.L68
	mov	eax, 0
	jmp	.L84
.L68:
	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	.L69
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 1
	jne	.L70
	mov	DWORD PTR end_record_seen[rip], 1
	mov	eax, 1
	jmp	.L84
.L70:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 2
	jne	.L71
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 2
	jne	.L71
	lea	rdx, -44[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L72
	mov	eax, 1
	jmp	.L84
.L72:
	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, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L73
	mov	eax, 1
	jmp	.L84
.L73:
	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	.L74
	mov	eax, 1
	jmp	.L84
.L74:
	mov	eax, DWORD PTR -44[rbp]
	sal	eax, 4
	mov	DWORD PTR extended_addr[rip], eax
.L71:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 4
	jne	.L75
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 2
	jne	.L75
	lea	rdx, -44[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L76
	mov	eax, 1
	jmp	.L84
.L76:
	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, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L77
	mov	eax, 1
	jmp	.L84
.L77:
	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	.L78
	mov	eax, 1
	jmp	.L84
.L78:
	mov	eax, DWORD PTR -44[rbp]
	sal	eax, 16
	mov	DWORD PTR extended_addr[rip], eax
	mov	eax, DWORD PTR code_size[rip]
	cmp	eax, 1048576
	jle	.L75
	mov	eax, DWORD PTR block_size[rip]
	cmp	eax, 1023
	jle	.L75
	mov	eax, DWORD PTR extended_addr[rip]
	cmp	eax, 1610612735
	jbe	.L75
	mov	eax, DWORD PTR code_size[rip]
	add	eax, 1610612736
	mov	edx, eax
	mov	eax, DWORD PTR extended_addr[rip]
	cmp	edx, eax
	jbe	.L75
	mov	eax, DWORD PTR extended_addr[rip]
	sub	eax, 1610612736
	mov	DWORD PTR extended_addr[rip], eax
.L75:
	mov	eax, 1
	jmp	.L84
.L69:
	mov	edx, DWORD PTR byte_count[rip]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	mov	DWORD PTR byte_count[rip], eax
	jmp	.L79
.L81:
	lea	rdx, -44[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L80
	mov	eax, 0
	jmp	.L84
.L80:
	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	.L79
	mov	eax, 0
	jmp	.L84
.L79:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jne	.L81
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jne	.L82
	mov	eax, 0
	jmp	.L84
.L82:
	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	.L83
	mov	eax, 0
	jmp	.L84
.L83:
	mov	eax, 1
.L84:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L85
	call	__stack_chk_fail@PLT
.L85:
	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	.L87
	cmp	DWORD PTR -20[rbp], 1048575
	jg	.L87
	cmp	DWORD PTR -24[rbp], 0
	js	.L87
	cmp	DWORD PTR -24[rbp], 1048575
	jle	.L88
.L87:
	mov	eax, 0
	jmp	.L89
.L88:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L90
.L92:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, firmware_mask[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L91
	mov	eax, 1
	jmp	.L89
.L91:
	add	DWORD PTR -4[rbp], 1
.L90:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L92
	mov	eax, 0
.L89:
	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	.L94
	cmp	DWORD PTR -24[rbp], 0
	js	.L94
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cmp	eax, 1048575
	jle	.L95
.L94:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L96
.L97:
	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
.L96:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L97
	jmp	.L93
.L95:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L99
.L102:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, firmware_mask[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L100
	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	.L101
.L100:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
.L101:
	add	DWORD PTR -20[rbp], 1
	add	DWORD PTR -4[rbp], 1
.L99:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L102
.L93:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ihex_get_data, .-ihex_get_data
	.globl	memory_is_blank
	.type	memory_is_blank, @function
memory_is_blank:
.LFB12:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 0
	js	.L104
	cmp	DWORD PTR -4[rbp], 1048576
	jle	.L107
.L104:
	mov	eax, 1
	jmp	.L106
.L110:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, firmware_mask[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L108
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, firmware_image[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, -1
	je	.L108
	mov	eax, 0
	jmp	.L106
.L108:
	add	DWORD PTR -4[rbp], 1
	sub	DWORD PTR -8[rbp], 1
.L107:
	cmp	DWORD PTR -8[rbp], 0
	je	.L109
	cmp	DWORD PTR -4[rbp], 1048575
	jle	.L110
.L109:
	mov	eax, 1
.L106:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	memory_is_blank, .-memory_is_blank
	.globl	printf_verbose
	.type	printf_verbose, @function
printf_verbose:
.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, 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	.L112
	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
.L112:
	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	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L113
	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
	mov	eax, DWORD PTR -212[rbp]
	jmp	.L115
.L113:
	mov	eax, 0
.L115:
	mov	rcx, QWORD PTR -184[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L116
	call	__stack_chk_fail@PLT
.L116:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	printf_verbose, .-printf_verbose
	.globl	delay
	.type	delay, @function
delay:
.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, 16
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm1, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR .LC27[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	edi, eax
	call	usleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	delay, .-delay
	.globl	die
	.type	die, @function
die:
.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, 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	.L119
	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
.L119:
	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
.LFE15:
	.size	die, .-die
	.section	.rodata
.LC28:
	.string	"at90usb162"
.LC29:
	.string	"atmega32u4"
.LC30:
	.string	"at90usb646"
.LC31:
	.string	"at90usb1286"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	MCUs, @object
	.size	MCUs, 80
MCUs:
	.quad	.LC28
	.long	15872
	.long	128
	.quad	.LC29
	.long	32256
	.long	128
	.quad	.LC30
	.long	64512
	.long	256
	.quad	.LC31
	.long	130048
	.long	256
	.quad	0
	.long	0
	.long	0
	.section	.rodata
.LC32:
	.string	"Supported MCUs are:"
.LC33:
	.string	" - %s\n"
	.text
	.globl	list_mcus
	.type	list_mcus, @function
list_mcus:
.LFB16:
	.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
	lea	rdi, .LC32[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L122
.L123:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, MCUs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L122:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, MCUs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L123
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE16:
	.size	list_mcus, .-list_mcus
	.section	.rodata
.LC34:
	.string	"No MCU specified.\n"
.LC35:
	.string	"Unknown MCU type \"%s\"\n"
	.text
	.globl	read_mcu
	.type	read_mcu, @function
read_mcu:
.LFB17:
	.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
	cmp	QWORD PTR -24[rbp], 0
	jne	.L125
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	eax, 0
	call	list_mcus
.L125:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L126
.L129:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, MCUs[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L127
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, MCUs[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR code_size[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, MCUs[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR block_size[rip], eax
	jmp	.L124
.L127:
	add	DWORD PTR -4[rbp], 1
.L126:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, MCUs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L129
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	call	list_mcus
.L124:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	read_mcu, .-read_mcu
	.section	.rodata
.LC36:
	.string	"Unknown flag '%c'\n\n"
	.text
	.globl	parse_flag
	.type	parse_flag, @function
parse_flag:
.LFB18:
	.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
	mov	DWORD PTR -4[rbp], 1
	jmp	.L131
.L141:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 98
	cmp	eax, 21
	ja	.L132
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L134[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L134[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L134:
	.long	.L139-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L138-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L137-.L134
	.long	.L136-.L134
	.long	.L132-.L134
	.long	.L132-.L134
	.long	.L135-.L134
	.long	.L133-.L134
	.text
.L133:
	mov	DWORD PTR wait_for_device_to_appear[rip], 1
	jmp	.L140
.L137:
	mov	DWORD PTR hard_reboot_device[rip], 1
	jmp	.L140
.L136:
	mov	DWORD PTR soft_reboot_device[rip], 1
	jmp	.L140
.L138:
	mov	DWORD PTR reboot_after_programming[rip], 0
	jmp	.L140
.L135:
	mov	DWORD PTR verbose[rip], 1
	jmp	.L140
.L139:
	mov	DWORD PTR boot_only[rip], 1
	jmp	.L140
.L132:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	usage
.L140:
	add	DWORD PTR -4[rbp], 1
.L131:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L141
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	parse_flag, .-parse_flag
	.section	.rodata
.LC37:
	.string	"-mmcu="
.LC38:
	.string	"help"
.LC39:
	.string	"mcu"
.LC40:
	.string	"list-mcus"
.LC41:
	.string	"Unknown option \"%s\"\n\n"
	.text
	.globl	parse_options
	.type	parse_options, @function
parse_options:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -28[rbp], 1
	jmp	.L143
.L153:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 6
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L144
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 61
	mov	rdi, rax
	call	strchr@PLT
	add	rax, 1
	mov	rdi, rax
	call	read_mcu
	jmp	.L145
.L144:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L146
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L147
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 2
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 61
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L148
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L149
.L148:
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	add	QWORD PTR -24[rbp], 1
.L149:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L150
	mov	edi, 0
	call	usage
	jmp	.L145
.L150:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L151
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_mcu
	jmp	.L145
.L151:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L152
	mov	eax, 0
	call	list_mcus
	jmp	.L145
.L152:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	usage
	jmp	.L145
.L147:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	parse_flag
	jmp	.L145
.L146:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR filename[rip], rax
.L145:
	add	DWORD PTR -28[rbp], 1
.L143:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L153
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	parse_options, .-parse_options
	.section	.rodata
.LC42:
	.string	"Booting\n"
	.text
	.globl	boot
	.type	boot, @function
boot:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf_verbose
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	mov	BYTE PTR [rax], -1
	mov	rcx, QWORD PTR .LC20[rip]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rcx
	mov	esi, edx
	mov	rdi, rax
	call	teensy_write@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	boot, .-boot
	.section	.rodata
	.align 8
.LC6:
	.long	0
	.long	1079574528
	.align 8
.LC14:
	.long	0
	.long	1070596096
	.align 8
.LC19:
	.long	0
	.long	1075052544
	.align 8
.LC20:
	.long	0
	.long	1071644672
	.align 8
.LC27:
	.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	"845950.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\012\012\000"
	.align	2
.LC1:
	.ascii	"Usage: teensy_loader_cli --mcu=<MCU> [-w] [-h] [-n]"
	.ascii	" [-b] [-v] <file.hex>\012\011-w : Wait for device t"
	.ascii	"o appear\012\011-r : Use hard reboot if device not "
	.ascii	"online\012\011-s : Use soft reboot if device not on"
	.ascii	"line (Teensy3.x only)\012\011-n : No reboot after p"
	.ascii	"rogramming\012\011-b : Boot only, do not program\012"
	.ascii	"\011-v : Verbose output\012\012Use `teensy_loader_c"
	.ascii	"li --list-mcus` to list supported MCUs.\012\012For "
	.ascii	"more information, please visit:\012http://www.pjrc."
	.ascii	"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 = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L3+4
	mov	r0, r3
	bl	fprintf
.L2:
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #436
	mov	r1, #1
	ldr	r0, .L3+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L4:
	.align	2
.L3:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.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	soft_reboot_device
	.align	2
	.type	soft_reboot_device, %object
	.size	soft_reboot_device, 4
soft_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	boot_only
	.align	2
	.type	boot_only, %object
	.size	boot_only, 4
boot_only:
	.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
.LC2:
	.ascii	"Filename must be specified\000"
	.align	2
.LC3:
	.ascii	"MCU type must be specified\000"
	.align	2
.LC4:
	.ascii	"Teensy Loader, Command Line, Version 2.1\012\000"
	.align	2
.LC5:
	.ascii	"error reading intel hex file \"%s\"\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.align	2
.LC6:
	.ascii	"Read \"%s\": %d bytes, %.1f%% usage\012\000"
	.align	2
.LC7:
	.ascii	"Unable to find rebootor\012\000"
	.align	2
.LC8:
	.ascii	"Hard Reboot performed\012\000"
	.align	2
.LC9:
	.ascii	"Soft reboot performed\012\000"
	.align	2
.LC10:
	.ascii	"Unable to open device (hint: try -w option)\012\000"
	.align	2
.LC11:
	.ascii	"Waiting for Teensy device...\012\000"
	.align	2
.LC12:
	.ascii	" (hint: press the reset button)\012\000"
	.align	2
.LC13:
	.ascii	"Found HalfKay Bootloader\012\000"
	.align	2
.LC14:
	.ascii	"Programming\000"
	.align	2
.LC15:
	.ascii	".\000"
	.align	2
.LC16:
	.ascii	"Unknown code/block size\012\000"
	.align	2
.LC17:
	.ascii	"error writing to Teensy\012\000"
	.align	2
.LC18:
	.ascii	"\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #2096
	sub	sp, sp, #4
	str	r0, [fp, #-2104]
	str	r1, [fp, #-2108]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-2088]
	mov	r3, #0
	str	r3, [fp, #-2084]
	ldr	r1, [fp, #-2108]
	ldr	r0, [fp, #-2104]
	bl	parse_options
	ldr	r3, .L46+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L46+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L46+12
	bl	usage
.L6:
	ldr	r3, .L46+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L46+20
	bl	usage
.L7:
	ldr	r0, .L46+24
	bl	printf_verbose
	ldr	r3, .L46+28
	ldr	r3, [r3]
	cmp	r3, #512
	beq	.L8
	ldr	r3, .L46+28
	ldr	r3, [r3]
	cmp	r3, #1024
	bne	.L9
.L8:
	ldr	r3, .L46+28
	ldr	r3, [r3]
	add	r3, r3, #64
	str	r3, [fp, #-2092]
	b	.L10
.L9:
	ldr	r3, .L46+28
	ldr	r3, [r3]
	add	r3, r3, #2
	str	r3, [fp, #-2092]
.L10:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L46+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	read_intel_hex
	str	r0, [fp, #-2080]
	ldr	r3, [fp, #-2080]
	cmp	r3, #0
	bge	.L12
	ldr	r3, .L46+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L46+32
	bl	die
.L12:
	ldr	r3, .L46+4
	ldr	r6, [r3]
	ldr	r0, [fp, #-2080]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L46+16
	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, .L46+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-2080]
	mov	r1, r6
	ldr	r0, .L46+40
	bl	printf_verbose
.L21:
	bl	teensy_open
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r3, .L46+44
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	bl	hard_reboot
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L46+48
	bl	die
.L16:
	ldr	r0, .L46+52
	bl	printf_verbose
	ldr	r3, .L46+44
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L46+56
	mov	r2, #1
	str	r2, [r3]
.L15:
	ldr	r3, .L46+60
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	bl	soft_reboot
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L46+64
	bl	printf_verbose
.L18:
	ldr	r3, .L46+60
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L46+56
	mov	r2, #1
	str	r2, [r3]
.L17:
	ldr	r3, .L46+56
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	ldr	r0, .L46+68
	bl	die
.L19:
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L46+72
	bl	printf_verbose
	ldr	r0, .L46+76
	bl	printf_verbose
	mov	r3, #1
	str	r3, [fp, #-2084]
.L20:
	mov	r0, #0
	ldr	r1, .L46+80
	bl	delay
	b	.L21
.L43:
	nop
	ldr	r0, .L46+84
	bl	printf_verbose
	ldr	r3, .L46+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-2092]
	mov	r0, r3
	bl	boot
	bl	teensy_close
	mov	r3, #0
	b	.L40
.L22:
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L46+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	read_intel_hex
	str	r0, [fp, #-2080]
	ldr	r3, [fp, #-2080]
	cmp	r3, #0
	bge	.L25
	ldr	r3, .L46+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L46+32
	bl	die
.L25:
	ldr	r3, .L46+4
	ldr	r6, [r3]
	ldr	r0, [fp, #-2080]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L46+16
	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, .L46+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-2080]
	mov	r1, r6
	ldr	r0, .L46+40
	bl	printf_verbose
.L24:
	ldr	r0, .L46+88
	bl	printf_verbose
	ldr	r3, .L46+92
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-2096]
	b	.L26
.L38:
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L46+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-2096]
	add	r3, r2, r3
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-2096]
	bl	ihex_bytes_within_range
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
.L27:
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L46+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-2096]
	bl	memory_is_blank
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
.L29:
	ldr	r0, .L46+96
	bl	printf_verbose
	ldr	r3, .L46+28
	ldr	r3, [r3]
	cmp	r3, #256
	bgt	.L30
	ldr	r3, .L46+16
	ldr	r3, [r3]
	cmp	r3, #65536
	bge	.L30
	ldr	r3, [fp, #-2096]
	and	r3, r3, #255
	strb	r3, [fp, #-2072]
	ldr	r3, [fp, #-2096]
	asr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-2071]
	ldr	r3, .L46+28
	ldr	r1, [r3]
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	mov	r2, r3
	ldr	r0, [fp, #-2096]
	bl	ihex_get_data
	ldr	r3, .L46+28
	ldr	r3, [r3]
	add	r3, r3, #2
	str	r3, [fp, #-2092]
	b	.L31
.L30:
	ldr	r3, .L46+28
	ldr	r3, [r3]
	cmp	r3, #256
	bne	.L32
	ldr	r3, [fp, #-2096]
	asr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-2072]
	ldr	r3, [fp, #-2096]
	asr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-2071]
	ldr	r3, .L46+28
	ldr	r1, [r3]
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	mov	r2, r3
	ldr	r0, [fp, #-2096]
	bl	ihex_get_data
	ldr	r3, .L46+28
	ldr	r3, [r3]
	add	r3, r3, #2
	str	r3, [fp, #-2092]
	b	.L31
.L32:
	ldr	r3, .L46+28
	ldr	r3, [r3]
	cmp	r3, #512
	beq	.L33
	ldr	r3, .L46+28
	ldr	r3, [r3]
	cmp	r3, #1024
	bne	.L34
.L33:
	ldr	r3, [fp, #-2096]
	and	r3, r3, #255
	strb	r3, [fp, #-2072]
	ldr	r3, [fp, #-2096]
	asr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-2071]
	ldr	r3, [fp, #-2096]
	asr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-2070]
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #3
	mov	r2, #61
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L46+28
	ldr	r1, [r3]
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #64
	mov	r2, r3
	ldr	r0, [fp, #-2096]
	bl	ihex_get_data
	ldr	r3, .L46+28
	ldr	r3, [r3]
	add	r3, r3, #64
	str	r3, [fp, #-2092]
	b	.L31
.L34:
	ldr	r0, .L46+100
	bl	die
.L31:
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	beq	.L35
	mov	r2, #0
	ldr	r3, .L46+104
	b	.L36
.L35:
	mov	r2, #0
	ldr	r3, .L46+108
.L36:
	sub	r0, fp, #2064
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r1, [fp, #-2092]
	bl	teensy_write
	str	r0, [fp, #-2076]
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	bne	.L37
	ldr	r0, .L46+112
	bl	die
.L37:
	mov	r3, #0
	str	r3, [fp, #-2088]
	b	.L28
.L44:
	nop
	b	.L28
.L45:
	nop
.L28:
	ldr	r3, .L46+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-2096]
	add	r3, r2, r3
	str	r3, [fp, #-2096]
.L26:
	ldr	r3, .L46+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-2096]
	cmp	r2, r3
	blt	.L38
	ldr	r0, .L46+116
	bl	printf_verbose
	ldr	r3, .L46+120
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L39
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-2092]
	mov	r0, r3
	bl	boot
.L39:
	bl	teensy_close
	mov	r3, #0
.L40:
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC19
	.word	filename
	.word	boot_only
	.word	.LC2
	.word	code_size
	.word	.LC3
	.word	.LC4
	.word	block_size
	.word	.LC5
	.word	1079574528
	.word	.LC6
	.word	hard_reboot_device
	.word	.LC7
	.word	.LC8
	.word	wait_for_device_to_appear
	.word	soft_reboot_device
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	1070596096
	.word	.LC13
	.word	.LC14
	.word	stdout
	.word	.LC15
	.word	.LC16
	.word	1075052544
	.word	1071644672
	.word	.LC17
	.word	.LC18
	.word	reboot_after_programming
	.size	main, .-main
	.local	firmware_image
	.comm	firmware_image,1048576,4
	.local	firmware_mask
	.comm	firmware_mask,1048576,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
.LC20:
	.ascii	"r\000"
	.align	2
.LC21:
	.ascii	"Warning, HEX parse error line %d\012\000"
	.align	2
.LC22:
	.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, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1040]
	ldr	r3, .L64+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L64+8
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L49
.L50:
	ldr	r2, .L64+12
	ldr	r3, [fp, #-1044]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r2, .L64+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]
.L49:
	ldr	r3, [fp, #-1044]
	cmp	r3, #1048576
	blt	.L50
	ldr	r3, .L64+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L64+24
	ldr	r0, [fp, #-1048]
	bl	fopen
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bne	.L53
	mvn	r3, #0
	b	.L59
.L58:
	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	.L61
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
	ldrb	r3, [fp, #-1032]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L56
	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	.L56
	ldr	r1, [fp, #-1040]
	ldr	r0, .L64+28
	bl	printf
	mvn	r3, #1
	b	.L59
.L56:
	ldr	r3, .L64+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L62
	ldr	r3, .L64+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
.L53:
	ldr	r0, [fp, #-1036]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	b	.L55
.L61:
	nop
	b	.L55
.L62:
	nop
	b	.L55
.L63:
	nop
.L55:
	ldr	r0, [fp, #-1036]
	bl	fclose
	ldr	r3, .L64+4
	ldr	r3, [r3]
.L59:
	ldr	r2, .L64
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC22
	.word	byte_count
	.word	end_record_seen
	.word	firmware_image
	.word	firmware_mask
	.word	extended_addr
	.word	.LC20
	.word	.LC21
	.word	stdin
	.size	read_intel_hex, .-read_intel_hex
	.section	.rodata
	.align	2
.LC23:
	.ascii	"%02x\000"
	.align	2
.LC24:
	.ascii	"%04x\000"
	.align	2
.LC25:
	.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, .L92
	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	.L67
	mov	r3, #0
	b	.L90
.L67:
	ldr	r0, [fp, #-56]
	bl	strlen
	mov	r3, r0
	cmp	r3, #10
	bhi	.L69
	mov	r3, #0
	b	.L90
.L69:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L92+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	mov	r3, #0
	b	.L90
.L70:
	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	.L71
	mov	r3, #0
	b	.L90
.L71:
	sub	r3, fp, #48
	mov	r2, r3
	ldr	r1, .L92+8
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	mov	r3, #0
	b	.L90
.L72:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	sub	r3, fp, #44
	mov	r2, r3
	ldr	r1, .L92+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L73
	mov	r3, #0
	b	.L90
.L73:
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r3, .L92+12
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	add	r3, r3, r2
	cmp	r3, #1048576
	bcc	.L74
	mov	r3, #0
	b	.L90
.L74:
	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	.L75
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	bne	.L76
	ldr	r3, .L92+16
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #1
	b	.L90
.L76:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	bne	.L77
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bne	.L77
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L92+8
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L78
	mov	r3, #1
	b	.L90
.L78:
	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, .L92+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	mov	r3, #1
	b	.L90
.L79:
	ldr	r3, [fp, #-36]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L80
	mov	r3, #1
	b	.L90
.L80:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L92+12
	str	r2, [r3]
.L77:
	ldr	r3, [fp, #-44]
	cmp	r3, #4
	bne	.L81
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bne	.L81
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L92+8
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L82
	mov	r3, #1
	b	.L90
.L82:
	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, .L92+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L83
	mov	r3, #1
	b	.L90
.L83:
	ldr	r3, [fp, #-36]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L84
	mov	r3, #1
	b	.L90
.L84:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #16
	mov	r2, r3
	ldr	r3, .L92+12
	str	r2, [r3]
	ldr	r3, .L92+20
	ldr	r3, [r3]
	cmp	r3, #1048576
	ble	.L81
	ldr	r3, .L92+24
	ldr	r3, [r3]
	cmp	r3, #1024
	blt	.L81
	ldr	r3, .L92+12
	ldr	r3, [r3]
	cmn	r3, #-1610612735
	bls	.L81
	ldr	r3, .L92+20
	ldr	r3, [r3]
	add	r3, r3, #1610612736
	mov	r2, r3
	ldr	r3, .L92+12
	ldr	r3, [r3]
	cmp	r2, r3
	bls	.L81
	ldr	r3, .L92+12
	ldr	r3, [r3]
	add	r3, r3, #-1610612736
	ldr	r2, .L92+12
	str	r3, [r2]
.L81:
	mov	r3, #1
	b	.L90
.L75:
	ldr	r3, .L92+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, .L92+28
	str	r3, [r2]
	b	.L85
.L87:
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L92+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L86
	mov	r3, #0
	b	.L90
.L86:
	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, .L92+12
	ldr	r3, [r3]
	add	r1, r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	and	r1, r2, #255
	ldr	r2, .L92+32
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r3, .L92+12
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L92+36
	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	.L85
	mov	r3, #0
	b	.L90
.L85:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L87
	sub	r3, fp, #36
	mov	r2, r3
	ldr	r1, .L92+4
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L88
	mov	r3, #0
	b	.L90
.L88:
	ldr	r3, [fp, #-36]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L89
	mov	r3, #0
	b	.L90
.L89:
	mov	r3, #1
.L90:
	ldr	r2, .L92
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L91
	bl	__stack_chk_fail
.L91:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L93:
	.align	2
.L92:
	.word	.LC25
	.word	.LC23
	.word	.LC24
	.word	extended_addr
	.word	end_record_seen
	.word	code_size
	.word	block_size
	.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	.L95
	ldr	r3, [fp, #-16]
	cmp	r3, #1048576
	bge	.L95
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L95
	ldr	r3, [fp, #-20]
	cmp	r3, #1048576
	blt	.L96
.L95:
	mov	r3, #0
	b	.L97
.L96:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L98
.L100:
	ldr	r2, .L101
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L99
	mov	r3, #1
	b	.L97
.L99:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L98:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L100
	mov	r3, #0
.L97:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L102:
	.align	2
.L101:
	.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	.L104
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L104
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	cmp	r3, #1048576
	blt	.L105
.L104:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L106
.L107:
	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]
.L106:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L107
	b	.L103
.L105:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L109
.L112:
	ldr	r2, .L113
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L110
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r1, .L113+4
	ldr	r2, [fp, #-16]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L111
.L110:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
.L111:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L109:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L112
.L103:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L114:
	.align	2
.L113:
	.word	firmware_mask
	.word	firmware_image
	.size	ihex_get_data, .-ihex_get_data
	.align	2
	.global	memory_is_blank
	.syntax unified
	.arm
	.fpu softvfp
	.type	memory_is_blank, %function
memory_is_blank:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L116
	ldr	r3, [fp, #-8]
	cmp	r3, #1048576
	ble	.L119
.L116:
	mov	r3, #1
	b	.L118
.L122:
	ldr	r2, .L123
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L120
	ldr	r2, .L123+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #255
	beq	.L120
	mov	r3, #0
	b	.L118
.L120:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L119:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L121
	ldr	r3, [fp, #-8]
	cmp	r3, #1048576
	blt	.L122
.L121:
	mov	r3, #1
.L118:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L124:
	.align	2
.L123:
	.word	firmware_mask
	.word	firmware_image
	.size	memory_is_blank, .-memory_is_blank
	.section	.rodata
	.align	2
.LC26:
	.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, .L130
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-16]
	ldr	r3, .L130+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L126
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	vprintf
	str	r0, [fp, #-12]
	ldr	r3, .L130+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-12]
	b	.L128
.L126:
	mov	r3, #0
.L128:
	ldr	r2, .L130
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L129
	bl	__stack_chk_fail
.L129:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L131:
	.align	2
.L130:
	.word	.LC26
	.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, .L133
	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}
.L134:
	.align	2
.L133:
	.word	1093567616
	.size	delay, .-delay
	.section	.rodata
	.align	2
.LC27:
	.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, .L137
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldr	r3, .L137+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, .L137+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r0, #1
	bl	exit
.L138:
	.align	2
.L137:
	.word	.LC27
	.word	stderr
	.size	die, .-die
	.section	.rodata
	.align	2
.LC28:
	.ascii	"at90usb162\000"
	.align	2
.LC29:
	.ascii	"atmega32u4\000"
	.align	2
.LC30:
	.ascii	"at90usb646\000"
	.align	2
.LC31:
	.ascii	"at90usb1286\000"
	.align	2
	.type	MCUs, %object
	.size	MCUs, 60
MCUs:
	.word	.LC28
	.word	15872
	.word	128
	.word	.LC29
	.word	32256
	.word	128
	.word	.LC30
	.word	64512
	.word	256
	.word	.LC31
	.word	130048
	.word	256
	.word	0
	.word	0
	.word	0
	.align	2
.LC32:
	.ascii	"Supported MCUs are:\000"
	.align	2
.LC33:
	.ascii	" - %s\012\000"
	.text
	.align	2
	.global	list_mcus
	.syntax unified
	.arm
	.fpu softvfp
	.type	list_mcus, %function
list_mcus:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L142
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L140
.L141:
	ldr	r1, .L142+4
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L142+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L140:
	ldr	r1, .L142+4
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L141
	mov	r0, #1
	bl	exit
.L143:
	.align	2
.L142:
	.word	.LC32
	.word	MCUs
	.word	.LC33
	.size	list_mcus, .-list_mcus
	.section	.rodata
	.align	2
.LC34:
	.ascii	"No MCU specified.\012\000"
	.align	2
.LC35:
	.ascii	"Unknown MCU type \"%s\"\012\000"
	.text
	.align	2
	.global	read_mcu
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_mcu, %function
read_mcu:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L145
	ldr	r3, .L150
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L150+4
	bl	fwrite
	bl	list_mcus
.L145:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L146
.L149:
	ldr	r1, .L150+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L147
	ldr	r1, .L150+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L150+12
	str	r3, [r2]
	ldr	r1, .L150+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, .L150+16
	str	r3, [r2]
	b	.L144
.L147:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L146:
	ldr	r1, .L150+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L149
	ldr	r3, .L150
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L150+20
	mov	r0, r3
	bl	fprintf
	bl	list_mcus
.L144:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L151:
	.align	2
.L150:
	.word	stderr
	.word	.LC34
	.word	MCUs
	.word	code_size
	.word	block_size
	.word	.LC35
	.size	read_mcu, .-read_mcu
	.section	.rodata
	.align	2
.LC36:
	.ascii	"Unknown flag '%c'\012\012\000"
	.text
	.align	2
	.global	parse_flag
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_flag, %function
parse_flag:
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L153
.L163:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #98
	cmp	r3, #21
	ldrls	pc, [pc, r3, asl #2]
	b	.L154
.L156:
	.word	.L161
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L160
	.word	.L154
	.word	.L154
	.word	.L154
	.word	.L159
	.word	.L158
	.word	.L154
	.word	.L154
	.word	.L157
	.word	.L155
.L155:
	ldr	r3, .L164
	mov	r2, #1
	str	r2, [r3]
	b	.L162
.L159:
	ldr	r3, .L164+4
	mov	r2, #1
	str	r2, [r3]
	b	.L162
.L158:
	ldr	r3, .L164+8
	mov	r2, #1
	str	r2, [r3]
	b	.L162
.L160:
	ldr	r3, .L164+12
	mov	r2, #0
	str	r2, [r3]
	b	.L162
.L157:
	ldr	r3, .L164+16
	mov	r2, #1
	str	r2, [r3]
	b	.L162
.L161:
	ldr	r3, .L164+20
	mov	r2, #1
	str	r2, [r3]
	b	.L162
.L154:
	ldr	r3, .L164+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L164+28
	bl	fprintf
	mov	r0, #0
	bl	usage
.L162:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L153:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L163
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L165:
	.align	2
.L164:
	.word	wait_for_device_to_appear
	.word	hard_reboot_device
	.word	soft_reboot_device
	.word	reboot_after_programming
	.word	verbose
	.word	boot_only
	.word	stderr
	.word	.LC36
	.size	parse_flag, .-parse_flag
	.section	.rodata
	.align	2
.LC37:
	.ascii	"-mmcu=\000"
	.align	2
.LC38:
	.ascii	"help\000"
	.align	2
.LC39:
	.ascii	"mcu\000"
	.align	2
.LC40:
	.ascii	"list-mcus\000"
	.align	2
.LC41:
	.ascii	"Unknown option \"%s\"\012\012\000"
	.text
	.align	2
	.global	parse_options
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_options, %function
parse_options:
	@ 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]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L167
.L177:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r2, #6
	ldr	r1, .L178
	ldr	r0, [fp, #-12]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L168
	mov	r1, #61
	ldr	r0, [fp, #-12]
	bl	strchr
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	read_mcu
	b	.L169
.L168:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L170
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L171
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	str	r3, [fp, #-8]
	mov	r1, #61
	ldr	r0, [fp, #-8]
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L172
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L173
.L172:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L173:
	ldr	r1, .L178+4
	ldr	r0, [fp, #-8]
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L174
	mov	r0, #0
	bl	usage
	b	.L169
.L174:
	ldr	r1, .L178+8
	ldr	r0, [fp, #-8]
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L175
	ldr	r0, [fp, #-16]
	bl	read_mcu
	b	.L169
.L175:
	ldr	r1, .L178+12
	ldr	r0, [fp, #-8]
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L176
	bl	list_mcus
	b	.L169
.L176:
	ldr	r3, .L178+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L178+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	usage
	b	.L169
.L171:
	ldr	r0, [fp, #-12]
	bl	parse_flag
	b	.L169
.L170:
	ldr	r2, .L178+24
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L169:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L167:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L177
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L179:
	.align	2
.L178:
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	stderr
	.word	.LC41
	.word	filename
	.size	parse_options, .-parse_options
	.section	.rodata
	.align	2
.LC42:
	.ascii	"Booting\012\000"
	.text
	.align	2
	.global	boot
	.syntax unified
	.arm
	.fpu softvfp
	.type	boot, %function
boot:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r0, .L181
	bl	printf_verbose
	ldr	r3, [fp, #-12]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-8]
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	mvn	r2, #0
	strb	r2, [r3]
	mov	r2, #0
	ldr	r3, .L181+4
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	teensy_write
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L182:
	.align	2
.L181:
	.word	.LC42
	.word	1071644672
	.size	boot, .-boot
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
