	.file	"20618.c"
	.intel_syntax noprefix
	.text
	.globl	dflag
	.bss
	.align 4
	.type	dflag, @object
	.size	dflag, 4
dflag:
	.zero	4
	.globl	boot_data
	.align 32
	.type	boot_data, @object
	.size	boot_data, 81920
boot_data:
	.zero	81920
	.globl	flash_data
	.align 32
	.type	flash_data, @object
	.size	flash_data, 2097152
flash_data:
	.zero	2097152
	.globl	boot_dirty
	.align 32
	.type	boot_dirty, @object
	.size	boot_dirty, 20480
boot_dirty:
	.zero	20480
	.globl	flash_dirty
	.align 32
	.type	flash_dirty, @object
	.size	flash_dirty, 524288
flash_dirty:
	.zero	524288
	.globl	boot_bytes
	.align 4
	.type	boot_bytes, @object
	.size	boot_bytes, 4
boot_bytes:
	.zero	4
	.globl	flash_bytes
	.align 4
	.type	flash_bytes, @object
	.size	flash_bytes, 4
flash_bytes:
	.zero	4
	.globl	total_bytes
	.align 4
	.type	total_bytes, @object
	.size	total_bytes, 4
total_bytes:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"%08X: address out of flash memory\n"
	.text
	.globl	store_data
	.type	store_data, @function
store_data:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	cmp	DWORD PTR -20[rbp], -1614807041
	jbe	.L2
	cmp	DWORD PTR -20[rbp], -1614725121
	ja	.L2
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1614807040
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, boot_data[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 2
	mov	edx, eax
	lea	rax, boot_dirty[rip]
	mov	BYTE PTR [rdx+rax], 1
	mov	eax, DWORD PTR boot_bytes[rip]
	add	eax, 1
	mov	DWORD PTR boot_bytes[rip], eax
	jmp	.L3
.L2:
	cmp	DWORD PTR -20[rbp], 532676607
	jbe	.L4
	cmp	DWORD PTR -20[rbp], 532758527
	ja	.L4
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 532676608
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, boot_data[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 2
	mov	edx, eax
	lea	rax, boot_dirty[rip]
	mov	BYTE PTR [rdx+rax], 1
	mov	eax, DWORD PTR boot_bytes[rip]
	add	eax, 1
	mov	DWORD PTR boot_bytes[rip], eax
	jmp	.L3
.L4:
	cmp	DWORD PTR -20[rbp], -1660944385
	jbe	.L5
	cmp	DWORD PTR -20[rbp], -1658847233
	ja	.L5
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1660944384
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, flash_data[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 2
	mov	edx, eax
	lea	rax, flash_dirty[rip]
	mov	BYTE PTR [rdx+rax], 1
	mov	eax, DWORD PTR flash_bytes[rip]
	add	eax, 1
	mov	DWORD PTR flash_bytes[rip], eax
	jmp	.L3
.L5:
	cmp	DWORD PTR -20[rbp], 486539263
	jbe	.L6
	cmp	DWORD PTR -20[rbp], 488636415
	ja	.L6
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 486539264
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, flash_data[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 2
	mov	edx, eax
	lea	rax, flash_dirty[rip]
	mov	BYTE PTR [rdx+rax], 1
	mov	eax, DWORD PTR flash_bytes[rip]
	add	eax, 1
	mov	DWORD PTR flash_bytes[rip], eax
	jmp	.L3
.L6:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L1
.L3:
	mov	eax, DWORD PTR total_bytes[rip]
	add	eax, 1
	mov	DWORD PTR total_bytes[rip], eax
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	store_data, .-store_data
	.section	.rodata
.LC1:
	.string	"r"
.LC2:
	.string	"%s: not a HEX format\n"
.LC3:
	.string	"%s: bad HEX record: %s\n"
.LC4:
	.string	"%s: too short hex line\n"
.LC5:
	.string	"%s: odd address\n"
.LC6:
	.string	"%s: bad HEX checksum\n"
	.align 8
.LC7:
	.string	"%s: invalid HEX linear address record length\n"
	.align 8
.LC8:
	.string	"%s: unknown HEX record type: %d\n"
	.text
	.globl	read_hex
	.type	read_hex, @function
read_hex:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 336
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -344[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -344[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -312[rbp], rax
	cmp	QWORD PTR -312[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	edx, 81920
	mov	esi, -1
	lea	rdi, boot_data[rip]
	call	memset@PLT
	mov	edx, 2097152
	mov	esi, -1
	lea	rdi, flash_data[rip]
	call	memset@PLT
	mov	edx, 20480
	mov	esi, 0
	lea	rdi, boot_dirty[rip]
	call	memset@PLT
	mov	edx, 524288
	mov	esi, 0
	lea	rdi, flash_dirty[rip]
	call	memset@PLT
	mov	DWORD PTR flash_bytes[rip], 0
	mov	DWORD PTR boot_bytes[rip], 0
	mov	DWORD PTR total_bytes[rip], 0
	mov	DWORD PTR -324[rbp], 0
	jmp	.L10
.L52:
	movzx	eax, BYTE PTR -288[rbp]
	cmp	al, 10
	jne	.L11
	jmp	.L10
.L11:
	movzx	eax, BYTE PTR -288[rbp]
	cmp	al, 58
	je	.L12
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -344[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -287[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4096
	test	eax, eax
	je	.L13
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -286[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4096
	test	eax, eax
	je	.L13
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -285[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4096
	test	eax, eax
	je	.L13
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -284[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4096
	test	eax, eax
	je	.L13
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -283[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4096
	test	eax, eax
	je	.L13
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -282[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4096
	test	eax, eax
	je	.L13
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -281[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4096
	test	eax, eax
	je	.L13
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -280[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4096
	test	eax, eax
	jne	.L14
.L13:
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -288[rbp]
	mov	rdx, QWORD PTR -344[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -281[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L15
	movzx	eax, BYTE PTR -281[rbp]
	sub	eax, 48
	sal	eax, 4
	mov	ebx, eax
	jmp	.L16
.L15:
	movzx	eax, BYTE PTR -281[rbp]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
	sal	eax, 4
	mov	ebx, eax
.L16:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -280[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L17
	movzx	eax, BYTE PTR -280[rbp]
	sub	eax, 48
	jmp	.L18
.L17:
	movzx	eax, BYTE PTR -280[rbp]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
.L18:
	add	eax, ebx
	mov	BYTE PTR -329[rbp], al
	cmp	BYTE PTR -329[rbp], 1
	je	.L54
	cmp	BYTE PTR -329[rbp], 5
	jne	.L21
	jmp	.L10
.L21:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -287[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L22
	movzx	eax, BYTE PTR -287[rbp]
	movzx	eax, al
	sub	eax, 48
	sal	eax, 4
	mov	ebx, eax
	jmp	.L23
.L22:
	movzx	eax, BYTE PTR -287[rbp]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
	sal	eax, 4
	mov	ebx, eax
.L23:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -286[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L24
	movzx	eax, BYTE PTR -286[rbp]
	movzx	eax, al
	sub	eax, 48
	jmp	.L25
.L24:
	movzx	eax, BYTE PTR -286[rbp]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
.L25:
	add	eax, ebx
	mov	DWORD PTR -316[rbp], eax
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -316[rbp]
	add	edx, edx
	add	edx, 11
	movsx	rdx, edx
	cmp	rax, rdx
	jnb	.L26
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -344[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	eax, DWORD PTR -324[rbp]
	sal	eax, 16
	mov	r12d, eax
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -285[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L27
	movzx	eax, BYTE PTR -285[rbp]
	movzx	eax, al
	sub	eax, 48
	sal	eax, 4
	mov	ebx, eax
	jmp	.L28
.L27:
	movzx	eax, BYTE PTR -285[rbp]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
	sal	eax, 4
	mov	ebx, eax
.L28:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -284[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L29
	movzx	eax, BYTE PTR -284[rbp]
	movzx	eax, al
	sub	eax, 48
	jmp	.L30
.L29:
	movzx	eax, BYTE PTR -284[rbp]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
.L30:
	add	eax, ebx
	sal	eax, 8
	or	r12d, eax
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -283[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L31
	movzx	eax, BYTE PTR -283[rbp]
	movzx	eax, al
	sub	eax, 48
	sal	eax, 4
	mov	ebx, eax
	jmp	.L32
.L31:
	movzx	eax, BYTE PTR -283[rbp]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
	sal	eax, 4
	mov	ebx, eax
.L32:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -282[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L33
	movzx	eax, BYTE PTR -282[rbp]
	movzx	eax, al
	sub	eax, 48
	jmp	.L34
.L33:
	movzx	eax, BYTE PTR -282[rbp]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
.L34:
	add	eax, ebx
	or	eax, r12d
	mov	DWORD PTR -328[rbp], eax
	mov	eax, DWORD PTR -328[rbp]
	and	eax, 3
	test	eax, eax
	je	.L35
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -344[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L35:
	mov	BYTE PTR -330[rbp], 0
	mov	DWORD PTR -320[rbp], 0
	jmp	.L36
.L41:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -320[rbp]
	cdqe
	add	rax, rax
	lea	rcx, 9[rax]
	lea	rax, -288[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L37
	mov	eax, DWORD PTR -320[rbp]
	cdqe
	add	rax, rax
	lea	rdx, 9[rax]
	lea	rax, -288[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	sub	eax, 48
	sal	eax, 4
	mov	ebx, eax
	jmp	.L38
.L37:
	mov	eax, DWORD PTR -320[rbp]
	cdqe
	add	rax, rax
	lea	rdx, 9[rax]
	lea	rax, -288[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
	sal	eax, 4
	mov	ebx, eax
.L38:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -320[rbp]
	cdqe
	add	rax, 5
	lea	rcx, [rax+rax]
	lea	rax, -288[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L39
	mov	eax, DWORD PTR -320[rbp]
	cdqe
	add	rax, 5
	lea	rdx, [rax+rax]
	lea	rax, -288[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	sub	eax, 48
	jmp	.L40
.L39:
	mov	eax, DWORD PTR -320[rbp]
	cdqe
	add	rax, 5
	lea	rdx, [rax+rax]
	lea	rax, -288[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
.L40:
	lea	edx, [rbx+rax]
	mov	eax, DWORD PTR -320[rbp]
	cdqe
	mov	BYTE PTR -304[rbp+rax], dl
	mov	eax, DWORD PTR -320[rbp]
	cdqe
	movzx	eax, BYTE PTR -304[rbp+rax]
	add	BYTE PTR -330[rbp], al
	add	DWORD PTR -320[rbp], 1
.L36:
	mov	eax, DWORD PTR -320[rbp]
	cmp	eax, DWORD PTR -316[rbp]
	jl	.L41
	mov	eax, DWORD PTR -316[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR -329[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -328[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -328[rbp]
	shr	eax, 8
	add	eax, edx
	add	BYTE PTR -330[rbp], al
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, rax
	lea	rcx, 9[rax]
	lea	rax, -288[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L42
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, rax
	lea	rdx, 9[rax]
	lea	rax, -288[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	sub	eax, 48
	sal	eax, 4
	mov	ebx, eax
	jmp	.L43
.L42:
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, rax
	lea	rdx, 9[rax]
	lea	rax, -288[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
	sal	eax, 4
	mov	ebx, eax
.L43:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, 5
	lea	rcx, [rax+rax]
	lea	rax, -288[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L44
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, 5
	lea	rdx, [rax+rax]
	lea	rax, -288[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	sub	eax, 48
	jmp	.L45
.L44:
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, 5
	lea	rdx, [rax+rax]
	lea	rax, -288[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	tolower@PLT
	sub	eax, 87
.L45:
	add	eax, ebx
	neg	eax
	cmp	BYTE PTR -330[rbp], al
	je	.L46
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -344[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L46:
	cmp	BYTE PTR -329[rbp], 4
	jne	.L47
	cmp	DWORD PTR -316[rbp], 2
	je	.L48
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -344[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L48:
	movzx	eax, BYTE PTR -304[rbp]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -303[rbp]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -324[rbp], eax
	jmp	.L10
.L47:
	cmp	BYTE PTR -329[rbp], 0
	je	.L49
	movzx	ecx, BYTE PTR -329[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -344[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L49:
	mov	DWORD PTR -320[rbp], 0
	jmp	.L50
.L51:
	mov	eax, DWORD PTR -320[rbp]
	cdqe
	movzx	eax, BYTE PTR -304[rbp+rax]
	movzx	edx, al
	mov	eax, DWORD PTR -328[rbp]
	lea	ecx, 1[rax]
	mov	DWORD PTR -328[rbp], ecx
	mov	esi, edx
	mov	edi, eax
	call	store_data
	add	DWORD PTR -320[rbp], 1
.L50:
	mov	eax, DWORD PTR -320[rbp]
	cmp	eax, DWORD PTR -316[rbp]
	jl	.L51
.L10:
	mov	rdx, QWORD PTR -312[rbp]
	lea	rax, -288[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L52
	jmp	.L20
.L54:
	nop
.L20:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	add	rsp, 336
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_hex, .-read_hex
	.section	.rodata
.LC9:
	.string	"%s memory:\n"
.LC10:
	.string	"    ...\t\t..."
.LC11:
	.string	"    %8x:\t%08x"
	.text
	.globl	disasm
	.type	disasm, @function
disasm:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	DWORD PTR -64[rbp], r8d
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L56
.L61:
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L57
	cmp	DWORD PTR -12[rbp], 0
	setg	al
	movzx	eax, al
	mov	DWORD PTR -16[rbp], eax
	jmp	.L58
.L57:
	cmp	DWORD PTR -16[rbp], 0
	je	.L59
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	DWORD PTR -16[rbp], 0
.L59:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR dflag[rip]
	test	eax, eax
	jne	.L60
	mov	edi, 9
	call	putchar@PLT
	mov	rdx, QWORD PTR stdout[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	print_insn_mips@PLT
.L60:
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L58:
	add	DWORD PTR -20[rbp], 4
.L56:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jb	.L61
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	disasm, .-disasm
	.section	.rodata
.LC12:
	.string	"Usage:\n"
.LC13:
	.string	"  aout [-rd] file...\n"
.LC14:
	.string	"Options:\n"
.LC15:
	.string	"  -d      Do not disassemble\n"
.LC16:
	.string	"d"
.LC17:
	.string	"File %s: %u bytes\n"
.LC18:
	.string	"Boot"
.LC19:
	.string	"Flash"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L63
.L66:
	cmp	DWORD PTR -4[rbp], 100
	jne	.L64
	mov	eax, DWORD PTR dflag[rip]
	add	eax, 1
	mov	DWORD PTR dflag[rip], eax
	jmp	.L63
.L72:
	nop
.L64:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L65
.L63:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC16[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L66
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -32[rbp], rax
	cmp	DWORD PTR -20[rbp], 0
	jle	.L72
	jmp	.L68
.L71:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	read_hex
	mov	edx, DWORD PTR total_bytes[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR boot_bytes[rip]
	test	eax, eax
	je	.L69
	mov	r8d, 81920
	mov	ecx, -1614807040
	lea	rdx, boot_dirty[rip]
	lea	rsi, boot_data[rip]
	lea	rdi, .LC18[rip]
	call	disasm
.L69:
	mov	eax, DWORD PTR flash_bytes[rip]
	test	eax, eax
	je	.L70
	mov	r8d, 2097152
	mov	ecx, -1660944384
	lea	rdx, flash_dirty[rip]
	lea	rsi, flash_data[rip]
	lea	rdi, .LC19[rip]
	call	disasm
.L70:
	add	QWORD PTR -32[rbp], 8
.L68:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -20[rbp], edx
	test	eax, eax
	jg	.L71
	mov	eax, 0
.L65:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"20618.c"
	.text
	.comm	dflag,4,4
	.comm	boot_data,81920,4
	.comm	flash_data,2097152,4
	.comm	boot_dirty,20480,4
	.comm	flash_dirty,524288,4
	.comm	boot_bytes,4,4
	.comm	flash_bytes,4,4
	.comm	total_bytes,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%08X: address out of flash memory\012\000"
	.text
	.align	2
	.global	store_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	store_data, %function
store_data:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r2, .L8
	cmp	r3, r2
	bls	.L2
	ldr	r3, [fp, #-16]
	ldr	r2, .L8+4
	cmp	r3, r2
	bhi	.L2
	ldr	r3, [fp, #-16]
	add	r3, r3, #1610612736
	add	r3, r3, #4194304
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	and	r1, r3, #255
	ldr	r2, .L8+8
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #2
	ldr	r2, .L8+12
	mov	r1, #1
	strb	r1, [r2, r3]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8+16
	str	r3, [r2]
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #532676608
	bcc	.L4
	ldr	r3, [fp, #-16]
	ldr	r2, .L8+20
	cmp	r3, r2
	bhi	.L4
	ldr	r3, [fp, #-16]
	sub	r3, r3, #532676608
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	and	r1, r3, #255
	ldr	r2, .L8+8
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #2
	ldr	r2, .L8+12
	mov	r1, #1
	strb	r1, [r2, r3]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8+16
	str	r3, [r2]
	b	.L3
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #-1660944384
	bcc	.L5
	ldr	r3, [fp, #-16]
	ldr	r2, .L8+24
	cmp	r3, r2
	bhi	.L5
	ldr	r3, [fp, #-16]
	add	r3, r3, #1660944384
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	and	r1, r3, #255
	ldr	r2, .L8+28
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #2
	ldr	r2, .L8+32
	mov	r1, #1
	strb	r1, [r2, r3]
	ldr	r3, .L8+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8+36
	str	r3, [r2]
	b	.L3
.L5:
	ldr	r3, [fp, #-16]
	cmp	r3, #486539264
	bcc	.L6
	ldr	r3, [fp, #-16]
	ldr	r2, .L8+40
	cmp	r3, r2
	bhi	.L6
	ldr	r3, [fp, #-16]
	add	r3, r3, #-486539264
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	and	r1, r3, #255
	ldr	r2, .L8+28
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #2
	ldr	r2, .L8+32
	mov	r1, #1
	strb	r1, [r2, r3]
	ldr	r3, .L8+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8+36
	str	r3, [r2]
	b	.L3
.L6:
	ldr	r3, .L8+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L8+48
	mov	r0, r3
	bl	fprintf
	b	.L1
.L3:
	ldr	r3, .L8+52
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8+52
	str	r3, [r2]
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	-1614807041
	.word	-1614725121
	.word	boot_data
	.word	boot_dirty
	.word	boot_bytes
	.word	532758527
	.word	-1658847233
	.word	flash_data
	.word	flash_dirty
	.word	flash_bytes
	.word	488636415
	.word	stderr
	.word	.LC0
	.word	total_bytes
	.size	store_data, .-store_data
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"%s: not a HEX format\012\000"
	.align	2
.LC3:
	.ascii	"%s: bad HEX record: %s\012\000"
	.align	2
.LC4:
	.ascii	"%s: too short hex line\012\000"
	.align	2
.LC5:
	.ascii	"%s: odd address\012\000"
	.align	2
.LC6:
	.ascii	"%s: bad HEX checksum\012\000"
	.align	2
.LC7:
	.ascii	"%s: invalid HEX linear address record length\012\000"
	.align	2
.LC8:
	.ascii	"%s: unknown HEX record type: %d\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_hex, %function
read_hex:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #312
	str	r0, [fp, #-320]
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L57+4
	ldr	r0, [fp, #-320]
	bl	fopen
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L11
	ldr	r0, [fp, #-320]
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	mov	r2, #81920
	mvn	r1, #0
	ldr	r0, .L57+8
	bl	memset
	mov	r2, #2097152
	mvn	r1, #0
	ldr	r0, .L57+12
	bl	memset
	mov	r2, #20480
	mov	r1, #0
	ldr	r0, .L57+16
	bl	memset
	mov	r2, #524288
	mov	r1, #0
	ldr	r0, .L57+20
	bl	memset
	ldr	r3, .L57+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L57+28
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L57+32
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-304]
	b	.L12
.L54:
	ldrb	r3, [fp, #-272]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L13
	b	.L12
.L13:
	ldrb	r3, [fp, #-272]	@ zero_extendqisi2
	cmp	r3, #58
	beq	.L14
	ldr	r0, [fp, #-296]
	bl	fclose
	ldr	r3, .L57+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-320]
	ldr	r1, .L57+40
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L14:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-271]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #4096
	cmp	r3, #0
	beq	.L15
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-270]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #4096
	cmp	r3, #0
	beq	.L15
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-269]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #4096
	cmp	r3, #0
	beq	.L15
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-268]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #4096
	cmp	r3, #0
	beq	.L15
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-267]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #4096
	cmp	r3, #0
	beq	.L15
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-266]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #4096
	cmp	r3, #0
	beq	.L15
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-265]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #4096
	cmp	r3, #0
	beq	.L15
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #4096
	cmp	r3, #0
	bne	.L16
.L15:
	ldr	r3, .L57+36
	ldr	r0, [r3]
	sub	r3, fp, #272
	ldr	r2, [fp, #-320]
	ldr	r1, .L57+44
	bl	fprintf
	mov	r0, #1
	bl	exit
.L16:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-265]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L17
	ldrb	r3, [fp, #-265]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r3, r3, #255
	lsl	r3, r3, #4
	and	r4, r3, #255
	b	.L18
.L17:
	ldrb	r3, [fp, #-265]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r3, r3, #255
	sub	r3, r3, #87
	and	r3, r3, #255
	lsl	r3, r3, #4
	and	r4, r3, #255
.L18:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L19
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r3, r3, #255
	b	.L20
.L19:
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r3, r3, #255
	sub	r3, r3, #87
	and	r3, r3, #255
.L20:
	add	r3, r4, r3
	strb	r3, [fp, #-309]
	ldrb	r3, [fp, #-309]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L56
	ldrb	r3, [fp, #-309]	@ zero_extendqisi2
	cmp	r3, #5
	bne	.L23
	b	.L12
.L23:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-271]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L24
	ldrb	r3, [fp, #-271]	@ zero_extendqisi2
	sub	r3, r3, #48
	lsl	r4, r3, #4
	b	.L25
.L24:
	ldrb	r3, [fp, #-271]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	sub	r3, r3, #87
	lsl	r4, r3, #4
.L25:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-270]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L26
	ldrb	r3, [fp, #-270]	@ zero_extendqisi2
	sub	r3, r3, #48
	b	.L27
.L26:
	ldrb	r3, [fp, #-270]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	sub	r3, r3, #87
.L27:
	add	r3, r4, r3
	str	r3, [fp, #-292]
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #1
	add	r3, r3, #11
	cmp	r2, r3
	bcs	.L28
	ldr	r3, .L57+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-320]
	ldr	r1, .L57+48
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L28:
	ldr	r3, [fp, #-304]
	lsl	r5, r3, #16
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-269]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L29
	ldrb	r3, [fp, #-269]	@ zero_extendqisi2
	sub	r3, r3, #48
	lsl	r4, r3, #4
	b	.L30
.L29:
	ldrb	r3, [fp, #-269]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	sub	r3, r3, #87
	lsl	r4, r3, #4
.L30:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-268]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L31
	ldrb	r3, [fp, #-268]	@ zero_extendqisi2
	sub	r3, r3, #48
	b	.L32
.L31:
	ldrb	r3, [fp, #-268]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	sub	r3, r3, #87
.L32:
	add	r3, r4, r3
	lsl	r3, r3, #8
	orr	r5, r5, r3
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-267]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L33
	ldrb	r3, [fp, #-267]	@ zero_extendqisi2
	sub	r3, r3, #48
	lsl	r4, r3, #4
	b	.L34
.L33:
	ldrb	r3, [fp, #-267]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	sub	r3, r3, #87
	lsl	r4, r3, #4
.L34:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-266]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L35
	ldrb	r3, [fp, #-266]	@ zero_extendqisi2
	sub	r3, r3, #48
	b	.L36
.L35:
	ldrb	r3, [fp, #-266]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	sub	r3, r3, #87
.L36:
	add	r3, r4, r3
	orr	r3, r5, r3
	str	r3, [fp, #-308]
	ldr	r3, [fp, #-308]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L57+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-320]
	ldr	r1, .L57+52
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L37:
	mov	r3, #0
	strb	r3, [fp, #-310]
	mov	r3, #0
	str	r3, [fp, #-300]
	b	.L38
.L43:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #1
	add	r3, r3, #9
	sub	r1, fp, #272
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #1
	add	r3, r3, #9
	sub	r2, fp, #272
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r3, r3, #255
	lsl	r3, r3, #4
	and	r4, r3, #255
	b	.L40
.L39:
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #1
	add	r3, r3, #9
	sub	r2, fp, #272
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r3, r3, #255
	sub	r3, r3, #87
	and	r3, r3, #255
	lsl	r3, r3, #4
	and	r4, r3, #255
.L40:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-300]
	add	r3, r3, #5
	lsl	r3, r3, #1
	sub	r1, fp, #272
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-300]
	add	r3, r3, #5
	lsl	r3, r3, #1
	sub	r2, fp, #272
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r3, r3, #255
	b	.L42
.L41:
	ldr	r3, [fp, #-300]
	add	r3, r3, #5
	lsl	r3, r3, #1
	sub	r2, fp, #272
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r3, r3, #255
	sub	r3, r3, #87
	and	r3, r3, #255
.L42:
	add	r3, r4, r3
	and	r1, r3, #255
	sub	r2, fp, #288
	ldr	r3, [fp, #-300]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r2, fp, #288
	ldr	r3, [fp, #-300]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-310]
	add	r3, r2, r3
	strb	r3, [fp, #-310]
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	str	r3, [fp, #-300]
.L38:
	ldr	r2, [fp, #-300]
	ldr	r3, [fp, #-292]
	cmp	r2, r3
	blt	.L43
	ldr	r3, [fp, #-292]
	and	r2, r3, #255
	ldrb	r3, [fp, #-309]
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-308]
	and	r3, r3, #255
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-308]
	lsr	r3, r3, #8
	and	r3, r3, #255
	add	r3, r2, r3
	and	r2, r3, #255
	ldrb	r3, [fp, #-310]
	add	r3, r2, r3
	strb	r3, [fp, #-310]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #1
	add	r3, r3, #9
	sub	r1, fp, #272
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #1
	add	r3, r3, #9
	sub	r2, fp, #272
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r3, r3, #255
	lsl	r3, r3, #4
	and	r4, r3, #255
	b	.L45
.L44:
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #1
	add	r3, r3, #9
	sub	r2, fp, #272
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r3, r3, #255
	sub	r3, r3, #87
	and	r3, r3, #255
	lsl	r3, r3, #4
	and	r4, r3, #255
.L45:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-292]
	add	r3, r3, #5
	lsl	r3, r3, #1
	sub	r1, fp, #272
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-292]
	add	r3, r3, #5
	lsl	r3, r3, #1
	sub	r2, fp, #272
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r3, r3, #255
	b	.L47
.L46:
	ldr	r3, [fp, #-292]
	add	r3, r3, #5
	lsl	r3, r3, #1
	sub	r2, fp, #272
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r3, r3, #255
	sub	r3, r3, #87
	and	r3, r3, #255
.L47:
	add	r3, r4, r3
	and	r3, r3, #255
	rsb	r3, r3, #0
	and	r3, r3, #255
	ldrb	r2, [fp, #-310]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L48
	ldr	r3, .L57+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-320]
	ldr	r1, .L57+56
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L48:
	ldrb	r3, [fp, #-309]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L49
	ldr	r3, [fp, #-292]
	cmp	r3, #2
	beq	.L50
	ldr	r3, .L57+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-320]
	ldr	r1, .L57+60
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L50:
	ldrb	r3, [fp, #-288]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldrb	r2, [fp, #-287]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-304]
	b	.L12
.L49:
	ldrb	r3, [fp, #-309]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L57+36
	ldr	r0, [r3]
	ldrb	r3, [fp, #-309]	@ zero_extendqisi2
	ldr	r2, [fp, #-320]
	ldr	r1, .L57+64
	bl	fprintf
	mov	r0, #1
	bl	exit
.L51:
	mov	r3, #0
	str	r3, [fp, #-300]
	b	.L52
.L53:
	ldr	r3, [fp, #-308]
	add	r2, r3, #1
	str	r2, [fp, #-308]
	sub	r1, fp, #288
	ldr	r2, [fp, #-300]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	store_data
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	str	r3, [fp, #-300]
.L52:
	ldr	r2, [fp, #-300]
	ldr	r3, [fp, #-292]
	cmp	r2, r3
	blt	.L53
.L12:
	sub	r3, fp, #272
	ldr	r2, [fp, #-296]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	b	.L22
.L56:
	nop
.L22:
	ldr	r0, [fp, #-296]
	bl	fclose
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC9
	.word	.LC1
	.word	boot_data
	.word	flash_data
	.word	boot_dirty
	.word	flash_dirty
	.word	flash_bytes
	.word	boot_bytes
	.word	total_bytes
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	read_hex, .-read_hex
	.section	.rodata
	.align	2
.LC10:
	.ascii	"%s memory:\012\000"
	.align	2
.LC11:
	.ascii	"    ...\011\011...\000"
	.align	2
.LC12:
	.ascii	"    %8x:\011%08x\000"
	.text
	.align	2
	.global	disasm
	.syntax unified
	.arm
	.fpu softvfp
	.type	disasm, %function
disasm:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-32]
	ldr	r0, .L66
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L60
.L65:
	ldr	r3, [fp, #-24]
	lsr	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L61
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-20]
	b	.L62
.L61:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L63
	ldr	r0, .L66+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-20]
.L63:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L66+8
	bl	printf
	ldr	r3, .L66+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L64
	mov	r0, #9
	bl	putchar
	ldr	r3, .L66+16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	print_insn_mips
.L64:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L62:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r3, [fp, #-24]
.L60:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bcc	.L65
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	dflag
	.word	stdout
	.size	disasm, .-disasm
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Usage:\012\000"
	.align	2
.LC14:
	.ascii	"  aout [-rd] file...\012\000"
	.align	2
.LC15:
	.ascii	"Options:\012\000"
	.align	2
.LC16:
	.ascii	"  -d      Do not disassemble\012\000"
	.align	2
.LC17:
	.ascii	"d\000"
	.align	2
.LC18:
	.ascii	"File %s: %u bytes\012\000"
	.align	2
.LC19:
	.ascii	"Boot\000"
	.align	2
.LC20:
	.ascii	"Flash\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	b	.L69
.L72:
	ldr	r3, [fp, #-8]
	cmp	r3, #100
	bne	.L70
	ldr	r3, .L79
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L79
	str	r3, [r2]
	b	.L69
.L78:
	nop
.L70:
	ldr	r3, .L79+4
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L79+8
	bl	fwrite
	ldr	r3, .L79+4
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L79+12
	bl	fwrite
	ldr	r3, .L79+4
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L79+16
	bl	fwrite
	ldr	r3, .L79+4
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L79+20
	bl	fwrite
	mov	r3, #1
	b	.L71
.L69:
	ldr	r2, .L79+24
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L72
	ldr	r3, .L79+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, .L79+28
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L78
	b	.L74
.L77:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	read_hex
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L79+32
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L79+36
	bl	printf
	ldr	r3, .L79+40
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L75
	mov	r3, #81920
	str	r3, [sp]
	ldr	r3, .L79+44
	ldr	r2, .L79+48
	ldr	r1, .L79+52
	ldr	r0, .L79+56
	bl	disasm
.L75:
	ldr	r3, .L79+60
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L76
	mov	r3, #2097152
	str	r3, [sp]
	mov	r3, #-1660944384
	ldr	r2, .L79+64
	ldr	r1, .L79+68
	ldr	r0, .L79+72
	bl	disasm
.L76:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
.L74:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	str	r2, [fp, #-16]
	cmp	r3, #0
	bgt	.L77
	mov	r3, #0
.L71:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L80:
	.align	2
.L79:
	.word	dflag
	.word	stderr
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	optind
	.word	total_bytes
	.word	.LC18
	.word	boot_bytes
	.word	-1614807040
	.word	boot_dirty
	.word	boot_data
	.word	.LC19
	.word	flash_bytes
	.word	flash_dirty
	.word	flash_data
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
