	.file	"237644142.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 4
	.type	origin_addr, @object
	.size	origin_addr, 4
origin_addr:
	.long	1024
	.align 4
	.type	app_len_offset, @object
	.size	app_len_offset, 4
app_len_offset:
	.long	16
	.align 4
	.type	app_crc_offset, @object
	.size	app_crc_offset, 4
app_crc_offset:
	.long	20
	.local	eh
	.comm	eh,52,32
	.text
	.type	read_uint8, @function
read_uint8:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	read_uint8, .-read_uint8
	.type	read_uint16, @function
read_uint16:
.LFB1:
	.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	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	WORD PTR -2[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	sal	eax, 8
	mov	edx, eax
	movzx	eax, WORD PTR -2[rbp]
	or	eax, edx
	mov	WORD PTR -2[rbp], ax
	movzx	eax, WORD PTR -2[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	read_uint16, .-read_uint16
	.type	read_uint32, @function
read_uint32:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	sal	eax, 8
	or	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	sal	eax, 16
	or	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	sal	eax, 24
	or	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	read_uint32, .-read_uint32
	.section	.rodata
.LC0:
	.string	"e_ident[0] %x\n"
.LC1:
	.string	"e_ident[1-3] "
.LC2:
	.string	"e_ident[4] %x\n"
.LC3:
	.string	"e_ident[5] %x\n"
.LC4:
	.string	"e_ident[6] %x\n"
.LC5:
	.string	"e_ident[7] %x\n"
.LC6:
	.string	"e_type %x\n"
.LC7:
	.string	"e_machine %x\n"
.LC8:
	.string	"e_version %x\n"
.LC9:
	.string	"e_entry %x\n"
.LC10:
	.string	"e_phoff %x\n"
.LC11:
	.string	"e_shoff %x\n"
.LC12:
	.string	"e_flags %x\n"
.LC13:
	.string	"e_ehsize %x\n"
.LC14:
	.string	"e_phentsize %x\n"
.LC15:
	.string	"e_phnum %x\n"
.LC16:
	.string	"e_shentsize %x\n"
.LC17:
	.string	"e_shnum %x\n"
.LC18:
	.string	"e_shstrndx %x\n"
	.text
	.type	printEh, @function
printEh:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	movzx	eax, BYTE PTR eh[rip]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, eh[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L8:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L9
	mov	edi, 10
	call	putchar@PLT
	movzx	eax, BYTE PTR eh[rip+4]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR eh[rip+5]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR eh[rip+6]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR eh[rip+7]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR eh[rip+16]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR eh[rip+18]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR eh[rip+20]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR eh[rip+24]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR eh[rip+28]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR eh[rip+32]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR eh[rip+36]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR eh[rip+40]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR eh[rip+42]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR eh[rip+44]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR eh[rip+46]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR eh[rip+48]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR eh[rip+50]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	printEh, .-printEh
	.globl	readEh
	.type	readEh, @function
readEh:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint8
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, eh[rip]
	mov	BYTE PTR [rdx+rcx], al
	add	DWORD PTR -4[rbp], 1
.L11:
	cmp	DWORD PTR -4[rbp], 15
	jle	.L12
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint16
	mov	WORD PTR eh[rip+16], ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint16
	mov	WORD PTR eh[rip+18], ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR eh[rip+20], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR eh[rip+24], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR eh[rip+28], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR eh[rip+32], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR eh[rip+36], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint16
	mov	WORD PTR eh[rip+40], ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint16
	mov	WORD PTR eh[rip+42], ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint16
	mov	WORD PTR eh[rip+44], ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint16
	mov	WORD PTR eh[rip+46], ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint16
	mov	WORD PTR eh[rip+48], ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	read_uint16
	mov	WORD PTR eh[rip+50], ax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	readEh, .-readEh
	.section	.rodata
.LC19:
	.string	"ERROR: wrong e_ident"
	.align 8
.LC20:
	.string	"ERROR: wrong e_type 0x%x != 0x2\n"
	.align 8
.LC21:
	.string	"ERROR: wrong e_machine 0x%x != 0x28\n"
	.align 8
.LC22:
	.string	"ERROR: wrong e_version 0x%x != 0x1\n"
	.text
	.type	checkEh, @function
checkEh:
.LFB5:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -15[rbp], 1179403647
	mov	WORD PTR -11[rbp], 257
	mov	BYTE PTR -9[rbp], 1
	lea	rax, -15[rbp]
	mov	edx, 7
	mov	rsi, rax
	lea	rdi, eh[rip]
	call	memcmp@PLT
	test	eax, eax
	je	.L14
	mov	DWORD PTR -20[rbp], 1
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L14:
	movzx	eax, WORD PTR eh[rip+16]
	cmp	ax, 2
	je	.L15
	mov	DWORD PTR -20[rbp], 1
	movzx	eax, WORD PTR eh[rip+16]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	movzx	eax, WORD PTR eh[rip+18]
	cmp	ax, 40
	je	.L16
	mov	DWORD PTR -20[rbp], 1
	movzx	eax, WORD PTR eh[rip+18]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	eax, DWORD PTR eh[rip+20]
	cmp	eax, 1
	je	.L17
	mov	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR eh[rip+20]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	mov	eax, DWORD PTR -20[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	checkEh, .-checkEh
	.type	readSh, @function
readSh:
.LFB6:
	.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, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	QWORD PTR -88[rbp], rdx
	movzx	eax, WORD PTR eh[rip+46]
	movzx	eax, ax
	imul	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR eh[rip+32]
	add	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	readSh, .-readSh
	.type	readPh, @function
readPh:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	movzx	eax, WORD PTR eh[rip+42]
	movzx	eax, ax
	imul	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR eh[rip+28]
	add	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	read_uint32
	mov	DWORD PTR -4[rbp], eax
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	QWORD PTR 24[rcx], rdx
	mov	rax, QWORD PTR -40[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readPh, .-readPh
	.type	find_blob, @function
find_blob:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	jmp	.L25
.L28:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jb	.L32
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
.L25:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L28
	jmp	.L27
.L32:
	nop
.L27:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -40[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, 255
	mov	rdi, rax
	call	memset@PLT
	cmp	QWORD PTR -16[rbp], 0
	je	.L29
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L30:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	find_blob, .-find_blob
	.section	.rodata
	.align 32
	.type	crc32_table, @object
	.size	crc32_table, 1024
crc32_table:
	.long	0
	.long	1996959894
	.long	-301047508
	.long	-1727442502
	.long	124634137
	.long	1886057615
	.long	-379345611
	.long	-1637575261
	.long	249268274
	.long	2044508324
	.long	-522852066
	.long	-1747789432
	.long	162941995
	.long	2125561021
	.long	-407360249
	.long	-1866523247
	.long	498536548
	.long	1789927666
	.long	-205950648
	.long	-2067906082
	.long	450548861
	.long	1843258603
	.long	-187386543
	.long	-2083289657
	.long	325883990
	.long	1684777152
	.long	-43845254
	.long	-1973040660
	.long	335633487
	.long	1661365465
	.long	-99664541
	.long	-1928851979
	.long	997073096
	.long	1281953886
	.long	-715111964
	.long	-1570279054
	.long	1006888145
	.long	1258607687
	.long	-770865667
	.long	-1526024853
	.long	901097722
	.long	1119000684
	.long	-608450090
	.long	-1396901568
	.long	853044451
	.long	1172266101
	.long	-589951537
	.long	-1412350631
	.long	651767980
	.long	1373503546
	.long	-925412992
	.long	-1076862698
	.long	565507253
	.long	1454621731
	.long	-809855591
	.long	-1195530993
	.long	671266974
	.long	1594198024
	.long	-972236366
	.long	-1324619484
	.long	795835527
	.long	1483230225
	.long	-1050600021
	.long	-1234817731
	.long	1994146192
	.long	31158534
	.long	-1731059524
	.long	-271249366
	.long	1907459465
	.long	112637215
	.long	-1614814043
	.long	-390540237
	.long	2013776290
	.long	251722036
	.long	-1777751922
	.long	-519137256
	.long	2137656763
	.long	141376813
	.long	-1855689577
	.long	-429695999
	.long	1802195444
	.long	476864866
	.long	-2056965928
	.long	-228458418
	.long	1812370925
	.long	453092731
	.long	-2113342271
	.long	-183516073
	.long	1706088902
	.long	314042704
	.long	-1950435094
	.long	-54949764
	.long	1658658271
	.long	366619977
	.long	-1932296973
	.long	-69972891
	.long	1303535960
	.long	984961486
	.long	-1547960204
	.long	-725929758
	.long	1256170817
	.long	1037604311
	.long	-1529756563
	.long	-740887301
	.long	1131014506
	.long	879679996
	.long	-1385723834
	.long	-631195440
	.long	1141124467
	.long	855842277
	.long	-1442165665
	.long	-586318647
	.long	1342533948
	.long	654459306
	.long	-1106571248
	.long	-921952122
	.long	1466479909
	.long	544179635
	.long	-1184443383
	.long	-832445281
	.long	1591671054
	.long	702138776
	.long	-1328506846
	.long	-942167884
	.long	1504918807
	.long	783551873
	.long	-1212326853
	.long	-1061524307
	.long	-306674912
	.long	-1698712650
	.long	62317068
	.long	1957810842
	.long	-355121351
	.long	-1647151185
	.long	81470997
	.long	1943803523
	.long	-480048366
	.long	-1805370492
	.long	225274430
	.long	2053790376
	.long	-468791541
	.long	-1828061283
	.long	167816743
	.long	2097651377
	.long	-267414716
	.long	-2029476910
	.long	503444072
	.long	1762050814
	.long	-144550051
	.long	-2140837941
	.long	426522225
	.long	1852507879
	.long	-19653770
	.long	-1982649376
	.long	282753626
	.long	1742555852
	.long	-105259153
	.long	-1900089351
	.long	397917763
	.long	1622183637
	.long	-690576408
	.long	-1580100738
	.long	953729732
	.long	1340076626
	.long	-776247311
	.long	-1497606297
	.long	1068828381
	.long	1219638859
	.long	-670225446
	.long	-1358292148
	.long	906185462
	.long	1090812512
	.long	-547295293
	.long	-1469587627
	.long	829329135
	.long	1181335161
	.long	-882789492
	.long	-1134132454
	.long	628085408
	.long	1382605366
	.long	-871598187
	.long	-1156888829
	.long	570562233
	.long	1426400815
	.long	-977650754
	.long	-1296233688
	.long	733239954
	.long	1555261956
	.long	-1026031705
	.long	-1244606671
	.long	752459403
	.long	1541320221
	.long	-1687895376
	.long	-328994266
	.long	1969922972
	.long	40735498
	.long	-1677130071
	.long	-351390145
	.long	1913087877
	.long	83908371
	.long	-1782625662
	.long	-491226604
	.long	2075208622
	.long	213261112
	.long	-1831694693
	.long	-438977011
	.long	2094854071
	.long	198958881
	.long	-2032938284
	.long	-237706686
	.long	1759359992
	.long	534414190
	.long	-2118248755
	.long	-155638181
	.long	1873836001
	.long	414664567
	.long	-2012718362
	.long	-15766928
	.long	1711684554
	.long	285281116
	.long	-1889165569
	.long	-127750551
	.long	1634467795
	.long	376229701
	.long	-1609899400
	.long	-686959890
	.long	1308918612
	.long	956543938
	.long	-1486412191
	.long	-799009033
	.long	1231636301
	.long	1047427035
	.long	-1362007478
	.long	-640263460
	.long	1088359270
	.long	936918000
	.long	-1447252397
	.long	-558129467
	.long	1202900863
	.long	817233897
	.long	-1111625188
	.long	-893730166
	.long	1404277552
	.long	615818150
	.long	-1160759803
	.long	-841546093
	.long	1423857449
	.long	601450431
	.long	-1285129682
	.long	-1000256840
	.long	1567103746
	.long	711928724
	.long	-1274298825
	.long	-1022587231
	.long	1510334235
	.long	755167117
	.align 32
	.type	high_lookup, @object
	.size	high_lookup, 256
high_lookup:
	.string	""
	.ascii	"A\303\202\206\307E\004M\f\216\317\313\212\bI\232\333Y\030\034"
	.ascii	"]\337\236\327\226\024UQ\020\222\323u4\266\367\363\2620q8y\373"
	.ascii	"\272\276\377}<\357\256,mi(\252\353\242\343a $e\347\246\352\253"
	.ascii	")hl-\257\356\247\346d%!`\342\243p1\263\362\366\2675t=|\376\277"
	.ascii	"\273\372x9\237\336\\\035\031X\332\233\322\223\021PT\025\227\326"
	.ascii	"\005D\306\207\203\302@\001H\t\213\312\316\217\rL\225\324V\027"
	.ascii	"\023R\320\221\330\231\033Z^\037\235\334\017N\314\215\211\310"
	.ascii	"J\013B\003\201\300\304\205\007F\340\241#bf'\245\344\255\354n"
	.ascii	"/+j\350\251z;\271\370\374\275?~7v\364\265\261\360r3\177>\274"
	.ascii	"\375\371\270:{2s\361\260\264\365w6\345\244&gc\"\240\341\250\351"
	.ascii	"k*.o\355\254\nK\311\210\214\315O\016G\006\204\305\301\200\002"
	.ascii	"C\220\321S\022\026W\325\224\335\234\036_[\032\230\331"
	.text
	.type	crc32_calc, @function
crc32_calc:
.LFB9:
	.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	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	jmp	.L34
.L35:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	xor	eax, DWORD PTR -4[rbp]
	movzx	eax, al
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, crc32_table[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 8
	xor	eax, edx
	mov	DWORD PTR -4[rbp], eax
.L34:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -8[rbp], edx
	test	eax, eax
	jne	.L35
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	crc32_calc, .-crc32_calc
	.type	reverse_crc32_calc, @function
reverse_crc32_calc:
.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	jmp	.L38
.L39:
	sub	QWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 24
	mov	BYTE PTR -9[rbp], al
	movzx	eax, BYTE PTR -9[rbp]
	cdqe
	lea	rdx, high_lookup[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, crc32_table[rip]
	mov	eax, DWORD PTR [rdx+rax]
	xor	DWORD PTR -20[rbp], eax
	sal	DWORD PTR -20[rbp], 8
	movzx	eax, BYTE PTR -9[rbp]
	cdqe
	lea	rdx, high_lookup[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	xor	eax, edx
	movzx	eax, al
	add	DWORD PTR -20[rbp], eax
.L38:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -24[rbp], edx
	test	eax, eax
	jne	.L39
	mov	eax, DWORD PTR -20[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	reverse_crc32_calc, .-reverse_crc32_calc
	.type	calc_span, @function
calc_span:
.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	DWORD PTR -12[rbp], 3
	jmp	.L42
.L43:
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 8
	mov	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	shr	eax, 24
	mov	edx, eax
	lea	rax, high_lookup[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	or	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movzx	eax, al
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, crc32_table[rip]
	mov	eax, DWORD PTR [rdx+rax]
	xor	eax, DWORD PTR -24[rbp]
	sal	eax, 8
	mov	DWORD PTR -24[rbp], eax
	sub	DWORD PTR -12[rbp], 1
.L42:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L43
	mov	DWORD PTR -12[rbp], 0
	jmp	.L44
.L45:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	xor	eax, edx
	mov	BYTE PTR -13[rbp], al
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 8
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	movzx	eax, al
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, crc32_table[rip]
	mov	eax, DWORD PTR [rdx+rax]
	xor	eax, ecx
	mov	DWORD PTR -20[rbp], eax
	shr	DWORD PTR -8[rbp], 8
	movzx	eax, BYTE PTR -13[rbp]
	sal	eax, 24
	or	DWORD PTR -8[rbp], eax
	shr	DWORD PTR -4[rbp], 8
	add	DWORD PTR -12[rbp], 1
.L44:
	cmp	DWORD PTR -12[rbp], 3
	jle	.L45
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	calc_span, .-calc_span
	.section	.rodata
.LC23:
	.string	"%s <input.elf> <output.dfu>\n"
.LC24:
	.string	"rb"
	.align 8
.LC25:
	.string	"ERROR: unable to open file <%s> for reading\n"
	.align 8
.LC26:
	.string	"ERROR: nothing useable in ELF; DFU cannot be created"
	.align 8
.LC27:
	.string	"ERROR: provided ELF intrudes into bootloader space; DFU cannot be created"
	.align 8
.LC28:
	.string	"ERROR: provided ELF must start at 0x%x; DFU cannot be created\n"
.LC29:
	.string	"wb"
	.align 8
.LC30:
	.string	"ERROR: unable to open file <%s> for writing\n"
	.align 8
.LC31:
	.string	"WARNING: overwriting 0x%x at 0x%x with length value (0x%x)\n"
	.align 8
.LC32:
	.string	"WARNING: overwriting 0x%x at 0x%x with CRC value (0x%x)\n"
	.align 8
.LC33:
	.string	"ERROR: something has gone wrong with the CRC calculation; value was 0x%x\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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, 280
	.cfi_offset 3, -24
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -244[rbp], 2
	jg	.L48
	mov	rax, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L75
.L48:
	mov	rax, QWORD PTR -256[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L50
	mov	rax, QWORD PTR -256[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L75
.L50:
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	readEh
	call	checkEh
	test	eax, eax
	je	.L51
	call	printEh
	mov	eax, -1
	jmp	.L75
.L51:
	movzx	eax, WORD PTR eh[rip+44]
	movzx	eax, ax
	sal	rax, 5
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	DWORD PTR -228[rbp], 0
	jmp	.L52
.L53:
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	lea	rbx, [rdx+rax]
	lea	rax, -288[rbp]
	mov	rdx, QWORD PTR -176[rbp]
	mov	ecx, DWORD PTR -228[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	readPh
	mov	rax, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR -280[rbp]
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 8[rbx], rdx
	mov	rax, QWORD PTR -272[rbp]
	mov	rdx, QWORD PTR -264[rbp]
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 24[rbx], rdx
	add	DWORD PTR -228[rbp], 1
.L52:
	movzx	eax, WORD PTR eh[rip+44]
	movzx	eax, ax
	cmp	DWORD PTR -228[rbp], eax
	jl	.L53
	mov	QWORD PTR -192[rbp], 0
	mov	DWORD PTR -228[rbp], 0
	jmp	.L54
.L61:
	lea	rax, -144[rbp]
	mov	rdx, QWORD PTR -176[rbp]
	mov	ecx, DWORD PTR -228[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	readSh
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 6
	test	eax, eax
	je	.L77
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, 1
	je	.L57
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, 14
	je	.L57
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, 15
	je	.L57
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, 16
	je	.L57
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, 1879048193
	jne	.L56
.L57:
	mov	DWORD PTR -224[rbp], 0
	jmp	.L58
.L60:
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	jb	.L59
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, DWORD PTR -224[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 5
	mov	rdx, QWORD PTR -168[rbp]
	add	rdx, rcx
	mov	ecx, DWORD PTR 8[rdx]
	mov	edx, DWORD PTR -224[rbp]
	movsx	rdx, edx
	mov	rsi, rdx
	sal	rsi, 5
	mov	rdx, QWORD PTR -168[rbp]
	add	rdx, rsi
	mov	edx, DWORD PTR 20[rdx]
	add	edx, ecx
	cmp	eax, edx
	jnb	.L59
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	je	.L59
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, DWORD PTR -224[rbp]
	movsx	rdx, edx
	mov	rsi, rdx
	sal	rsi, 5
	mov	rdx, QWORD PTR -168[rbp]
	add	rdx, rsi
	mov	edx, DWORD PTR 8[rdx]
	sub	eax, edx
	add	eax, ecx
	mov	DWORD PTR -220[rbp], eax
	mov	ecx, DWORD PTR -124[rbp]
	lea	rdx, -192[rbp]
	mov	eax, DWORD PTR -220[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	find_blob
	mov	QWORD PTR -184[rbp], rax
	mov	eax, DWORD PTR -128[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -176[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -176[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	jmp	.L56
.L59:
	add	DWORD PTR -224[rbp], 1
.L58:
	movzx	eax, WORD PTR eh[rip+44]
	movzx	eax, ax
	cmp	DWORD PTR -224[rbp], eax
	jl	.L60
	jmp	.L56
.L77:
	nop
.L56:
	add	DWORD PTR -228[rbp], 1
.L54:
	movzx	eax, WORD PTR eh[rip+48]
	movzx	eax, ax
	cmp	DWORD PTR -228[rbp], eax
	jl	.L61
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	jne	.L62
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L75
.L62:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 1024
	cmp	eax, edx
	jnb	.L63
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L75
.L63:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 1024
	cmp	eax, edx
	je	.L64
	mov	eax, 1024
	mov	esi, eax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L75
.L64:
	mov	rax, QWORD PTR -256[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -160[rbp], rax
	cmp	QWORD PTR -160[rbp], 0
	jne	.L65
	mov	rax, QWORD PTR -256[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L75
.L65:
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -184[rbp], rax
	mov	DWORD PTR -220[rbp], 1024
	jmp	.L66
.L68:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -220[rbp]
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], 0
	je	.L67
	lea	rdx, -192[rbp]
	mov	ecx, DWORD PTR -212[rbp]
	mov	eax, DWORD PTR -220[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	find_blob
.L67:
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, edx
	mov	DWORD PTR -220[rbp], eax
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -184[rbp], rax
.L66:
	cmp	QWORD PTR -184[rbp], 0
	jne	.L68
	mov	edx, 1024
	mov	eax, DWORD PTR -220[rbp]
	sub	eax, edx
	mov	DWORD PTR -216[rbp], eax
	mov	eax, DWORD PTR -220[rbp]
	and	eax, 3
	test	eax, eax
	je	.L69
	mov	eax, DWORD PTR -220[rbp]
	and	eax, 3
	mov	edx, eax
	mov	eax, 4
	sub	eax, edx
	mov	DWORD PTR -212[rbp], eax
	mov	eax, DWORD PTR -212[rbp]
	add	DWORD PTR -216[rbp], eax
	lea	rdx, -192[rbp]
	mov	ecx, DWORD PTR -212[rbp]
	mov	eax, DWORD PTR -220[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	find_blob
.L69:
	mov	eax, DWORD PTR -216[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -152[rbp], rax
	jmp	.L70
.L71:
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -184[rbp]
	mov	edx, DWORD PTR [rdx]
	mov	edx, edx
	mov	ecx, 1024
	mov	edi, ecx
	mov	rcx, rdx
	sub	rcx, rdi
	mov	rdx, QWORD PTR -152[rbp]
	add	rcx, rdx
	mov	rdx, rsi
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	free@PLT
.L70:
	mov	rax, QWORD PTR -192[rbp]
	test	rax, rax
	jne	.L71
	mov	eax, 16
	add	eax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	DWORD PTR -212[rbp], eax
	mov	eax, 16
	add	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	DWORD PTR -212[rbp], eax
	mov	eax, 16
	add	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	DWORD PTR -212[rbp], eax
	mov	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], 0
	je	.L72
	mov	eax, DWORD PTR -212[rbp]
	cmp	eax, DWORD PTR -216[rbp]
	je	.L72
	mov	edx, 1024
	mov	eax, 16
	lea	esi, [rdx+rax]
	mov	edx, DWORD PTR -216[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	ecx, edx
	mov	edx, esi
	mov	esi, eax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
.L72:
	mov	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -216[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -216[rbp]
	shr	eax, 8
	mov	edx, eax
	mov	eax, 16
	add	eax, 1
	mov	ecx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -216[rbp]
	shr	eax, 16
	mov	edx, eax
	mov	eax, 16
	add	eax, 2
	mov	ecx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -216[rbp]
	shr	eax, 24
	mov	edx, eax
	mov	eax, 16
	add	eax, 3
	mov	ecx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	edx, 20
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	mov	edi, -1
	call	crc32_calc
	mov	DWORD PTR -208[rbp], eax
	mov	edx, 20
	mov	eax, DWORD PTR -216[rbp]
	sub	eax, edx
	lea	edx, -4[rax]
	mov	eax, 20
	mov	eax, eax
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rcx
	mov	rsi, rax
	mov	edi, 0
	call	reverse_crc32_calc
	mov	DWORD PTR -204[rbp], eax
	mov	edx, DWORD PTR -204[rbp]
	mov	eax, DWORD PTR -208[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calc_span
	mov	DWORD PTR -200[rbp], eax
	mov	eax, 20
	add	eax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	DWORD PTR -212[rbp], eax
	mov	eax, 20
	add	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	DWORD PTR -212[rbp], eax
	mov	eax, 20
	add	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	DWORD PTR -212[rbp], eax
	mov	eax, 20
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], 0
	je	.L73
	mov	eax, DWORD PTR -212[rbp]
	cmp	eax, DWORD PTR -200[rbp]
	je	.L73
	mov	edx, 1024
	mov	eax, 20
	lea	esi, [rdx+rax]
	mov	edx, DWORD PTR -200[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	ecx, edx
	mov	edx, esi
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
.L73:
	mov	eax, 20
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -200[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -200[rbp]
	shr	eax, 8
	mov	edx, eax
	mov	eax, 20
	add	eax, 1
	mov	ecx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -200[rbp]
	shr	eax, 16
	mov	edx, eax
	mov	eax, 20
	add	eax, 2
	mov	ecx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -200[rbp]
	shr	eax, 24
	mov	edx, eax
	mov	eax, 20
	add	eax, 3
	mov	ecx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	edx, DWORD PTR -216[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	mov	edi, -1
	call	crc32_calc
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], 0
	je	.L74
	mov	eax, DWORD PTR -212[rbp]
	mov	esi, eax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L75
.L74:
	mov	edx, DWORD PTR -216[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	mov	edi, -1
	call	crc32_calc
	mov	DWORD PTR -196[rbp], eax
	mov	esi, DWORD PTR -216[rbp]
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -228[rbp], 0
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], -1
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], -1
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], 1
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], 49
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], 108
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], 114
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], 0
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], 1
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], 85
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], 70
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], 68
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	cdqe
	mov	BYTE PTR -96[rbp+rax], 16
	mov	edx, DWORD PTR -228[rbp]
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	crc32_calc
	mov	DWORD PTR -196[rbp], eax
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	mov	edx, DWORD PTR -196[rbp]
	cdqe
	mov	BYTE PTR -96[rbp+rax], dl
	mov	eax, DWORD PTR -196[rbp]
	shr	eax, 8
	mov	ecx, eax
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -96[rbp+rax], dl
	mov	eax, DWORD PTR -196[rbp]
	shr	eax, 16
	mov	ecx, eax
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -96[rbp+rax], dl
	mov	eax, DWORD PTR -196[rbp]
	shr	eax, 24
	mov	ecx, eax
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -228[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -96[rbp+rax], dl
	mov	eax, DWORD PTR -228[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -160[rbp]
	lea	rax, -96[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L75:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L76
	call	__stack_chk_fail@PLT
.L76:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"237644142.c"
	.text
	.section	.rodata
	.align	2
	.type	origin_addr, %object
	.size	origin_addr, 4
origin_addr:
	.word	1024
	.align	2
	.type	app_len_offset, %object
	.size	app_len_offset, 4
app_len_offset:
	.word	16
	.align	2
	.type	app_crc_offset, %object
	.size	app_crc_offset, 4
app_crc_offset:
	.word	20
	.local	eh
	.comm	eh,52,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_uint8, %function
read_uint8:
	@ 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	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_uint8, .-read_uint8
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_uint16, %function
read_uint16:
	@ 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	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrsh	r3, [fp, #-6]
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_uint16, .-read_uint16
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_uint32, %function
read_uint32:
	@ 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	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	lsl	r3, r3, #8
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	lsl	r3, r3, #16
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	lsl	r3, r3, #24
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_uint32, .-read_uint32
	.section	.rodata
	.align	2
.LC0:
	.ascii	"e_ident[0] %x\012\000"
	.align	2
.LC1:
	.ascii	"e_ident[1-3] \000"
	.align	2
.LC2:
	.ascii	"e_ident[4] %x\012\000"
	.align	2
.LC3:
	.ascii	"e_ident[5] %x\012\000"
	.align	2
.LC4:
	.ascii	"e_ident[6] %x\012\000"
	.align	2
.LC5:
	.ascii	"e_ident[7] %x\012\000"
	.align	2
.LC6:
	.ascii	"e_type %x\012\000"
	.align	2
.LC7:
	.ascii	"e_machine %x\012\000"
	.align	2
.LC8:
	.ascii	"e_version %x\012\000"
	.align	2
.LC9:
	.ascii	"e_entry %x\012\000"
	.align	2
.LC10:
	.ascii	"e_phoff %x\012\000"
	.align	2
.LC11:
	.ascii	"e_shoff %x\012\000"
	.align	2
.LC12:
	.ascii	"e_flags %x\012\000"
	.align	2
.LC13:
	.ascii	"e_ehsize %x\012\000"
	.align	2
.LC14:
	.ascii	"e_phentsize %x\012\000"
	.align	2
.LC15:
	.ascii	"e_phnum %x\012\000"
	.align	2
.LC16:
	.ascii	"e_shentsize %x\012\000"
	.align	2
.LC17:
	.ascii	"e_shnum %x\012\000"
	.align	2
.LC18:
	.ascii	"e_shstrndx %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	printEh, %function
printEh:
	@ 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	r3, .L10
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+4
	bl	printf
	ldr	r0, .L10+8
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L8
.L9:
	ldr	r2, .L10
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L9
	mov	r0, #10
	bl	putchar
	ldr	r3, .L10
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
	ldr	r3, .L10
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+16
	bl	printf
	ldr	r3, .L10
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+20
	bl	printf
	ldr	r3, .L10
	ldrb	r3, [r3, #7]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, .L10
	ldrh	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	ldr	r3, .L10
	ldrh	r3, [r3, #18]
	mov	r1, r3
	ldr	r0, .L10+32
	bl	printf
	ldr	r3, .L10
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L10+36
	bl	printf
	ldr	r3, .L10
	ldr	r3, [r3, #24]
	mov	r1, r3
	ldr	r0, .L10+40
	bl	printf
	ldr	r3, .L10
	ldr	r3, [r3, #28]
	mov	r1, r3
	ldr	r0, .L10+44
	bl	printf
	ldr	r3, .L10
	ldr	r3, [r3, #32]
	mov	r1, r3
	ldr	r0, .L10+48
	bl	printf
	ldr	r3, .L10
	ldr	r3, [r3, #36]
	mov	r1, r3
	ldr	r0, .L10+52
	bl	printf
	ldr	r3, .L10
	ldrh	r3, [r3, #40]
	mov	r1, r3
	ldr	r0, .L10+56
	bl	printf
	ldr	r3, .L10
	ldrh	r3, [r3, #42]
	mov	r1, r3
	ldr	r0, .L10+60
	bl	printf
	ldr	r3, .L10
	ldrh	r3, [r3, #44]
	mov	r1, r3
	ldr	r0, .L10+64
	bl	printf
	ldr	r3, .L10
	ldrh	r3, [r3, #46]
	mov	r1, r3
	ldr	r0, .L10+68
	bl	printf
	ldr	r3, .L10
	ldrh	r3, [r3, #48]
	mov	r1, r3
	ldr	r0, .L10+72
	bl	printf
	ldr	r3, .L10
	ldrh	r3, [r3, #50]
	mov	r1, r3
	ldr	r0, .L10+76
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	eh
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	printEh, .-printEh
	.align	2
	.global	readEh
	.syntax unified
	.arm
	.fpu softvfp
	.type	readEh, %function
readEh:
	@ 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, #0
	str	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r0, [fp, #-16]
	bl	read_uint8
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L15
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L14
	ldr	r0, [fp, #-16]
	bl	read_uint16
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15
	strh	r2, [r3, #16]	@ movhi
	ldr	r0, [fp, #-16]
	bl	read_uint16
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15
	strh	r2, [r3, #18]	@ movhi
	ldr	r0, [fp, #-16]
	bl	read_uint32
	mov	r3, r0
	ldr	r2, .L15
	str	r3, [r2, #20]
	ldr	r0, [fp, #-16]
	bl	read_uint32
	mov	r3, r0
	ldr	r2, .L15
	str	r3, [r2, #24]
	ldr	r0, [fp, #-16]
	bl	read_uint32
	mov	r3, r0
	ldr	r2, .L15
	str	r3, [r2, #28]
	ldr	r0, [fp, #-16]
	bl	read_uint32
	mov	r3, r0
	ldr	r2, .L15
	str	r3, [r2, #32]
	ldr	r0, [fp, #-16]
	bl	read_uint32
	mov	r3, r0
	ldr	r2, .L15
	str	r3, [r2, #36]
	ldr	r0, [fp, #-16]
	bl	read_uint16
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15
	strh	r2, [r3, #40]	@ movhi
	ldr	r0, [fp, #-16]
	bl	read_uint16
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15
	strh	r2, [r3, #42]	@ movhi
	ldr	r0, [fp, #-16]
	bl	read_uint16
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15
	strh	r2, [r3, #44]	@ movhi
	ldr	r0, [fp, #-16]
	bl	read_uint16
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15
	strh	r2, [r3, #46]	@ movhi
	ldr	r0, [fp, #-16]
	bl	read_uint16
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15
	strh	r2, [r3, #48]	@ movhi
	ldr	r0, [fp, #-16]
	bl	read_uint16
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15
	strh	r2, [r3, #50]	@ movhi
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	eh
	.size	readEh, .-readEh
	.section	.rodata
	.align	2
.LC20:
	.ascii	"ERROR: wrong e_ident\000"
	.align	2
.LC21:
	.ascii	"ERROR: wrong e_type 0x%x != 0x2\012\000"
	.align	2
.LC22:
	.ascii	"ERROR: wrong e_machine 0x%x != 0x28\012\000"
	.align	2
.LC23:
	.ascii	"ERROR: wrong e_version 0x%x != 0x1\012\000"
	.align	2
.LC19:
	.ascii	"\177ELF\001\001\001"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkEh, %function
checkEh:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r2, .L24+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #16
	mov	r2, #7
	mov	r1, r3
	ldr	r0, .L24+8
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r0, .L24+12
	bl	puts
.L18:
	ldr	r3, .L24+8
	ldrh	r3, [r3, #16]
	cmp	r3, #2
	beq	.L19
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, .L24+8
	ldrh	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, .L24+16
	bl	printf
.L19:
	ldr	r3, .L24+8
	ldrh	r3, [r3, #18]
	cmp	r3, #40
	beq	.L20
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, .L24+8
	ldrh	r3, [r3, #18]
	mov	r1, r3
	ldr	r0, .L24+20
	bl	printf
.L20:
	ldr	r3, .L24+8
	ldr	r3, [r3, #20]
	cmp	r3, #1
	beq	.L21
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, .L24+8
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L24+24
	bl	printf
.L21:
	ldr	r3, [fp, #-20]
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC24
	.word	.LC19
	.word	eh
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	checkEh, .-checkEh
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	readSh, %function
readSh:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L28
	ldrh	r3, [r3, #46]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L28
	ldr	r3, [r3, #32]
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	fseek
	ldr	r0, [fp, #-56]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-56]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-56]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-56]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-56]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-56]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-56]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-56]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-56]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-56]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-48]
	mov	lr, r3
	sub	ip, fp, #44
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	ldr	r0, [fp, #-48]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	eh
	.size	readSh, .-readSh
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	readPh, %function
readPh:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L32
	ldrh	r3, [r3, #42]
	mov	r2, r3
	ldr	r3, [fp, #-44]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L32
	ldr	r3, [r3, #28]
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	fseek
	ldr	r0, [fp, #-48]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-48]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-48]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-48]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-48]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-48]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-48]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-48]
	bl	read_uint32
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-40]
	mov	lr, r3
	sub	ip, fp, #36
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	ldr	r0, [fp, #-40]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	eh
	.size	readPh, .-readPh
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_blob, %function
find_blob:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L35
.L38:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bcc	.L42
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-16]
.L35:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L38
	b	.L37
.L42:
	nop
.L37:
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-28]
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-28]
	mov	r1, #255
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #12]
	b	.L40
.L39:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L40:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	find_blob, .-find_blob
	.section	.rodata
	.align	2
	.type	crc32_table, %object
	.size	crc32_table, 1024
crc32_table:
	.word	0
	.word	1996959894
	.word	-301047508
	.word	-1727442502
	.word	124634137
	.word	1886057615
	.word	-379345611
	.word	-1637575261
	.word	249268274
	.word	2044508324
	.word	-522852066
	.word	-1747789432
	.word	162941995
	.word	2125561021
	.word	-407360249
	.word	-1866523247
	.word	498536548
	.word	1789927666
	.word	-205950648
	.word	-2067906082
	.word	450548861
	.word	1843258603
	.word	-187386543
	.word	-2083289657
	.word	325883990
	.word	1684777152
	.word	-43845254
	.word	-1973040660
	.word	335633487
	.word	1661365465
	.word	-99664541
	.word	-1928851979
	.word	997073096
	.word	1281953886
	.word	-715111964
	.word	-1570279054
	.word	1006888145
	.word	1258607687
	.word	-770865667
	.word	-1526024853
	.word	901097722
	.word	1119000684
	.word	-608450090
	.word	-1396901568
	.word	853044451
	.word	1172266101
	.word	-589951537
	.word	-1412350631
	.word	651767980
	.word	1373503546
	.word	-925412992
	.word	-1076862698
	.word	565507253
	.word	1454621731
	.word	-809855591
	.word	-1195530993
	.word	671266974
	.word	1594198024
	.word	-972236366
	.word	-1324619484
	.word	795835527
	.word	1483230225
	.word	-1050600021
	.word	-1234817731
	.word	1994146192
	.word	31158534
	.word	-1731059524
	.word	-271249366
	.word	1907459465
	.word	112637215
	.word	-1614814043
	.word	-390540237
	.word	2013776290
	.word	251722036
	.word	-1777751922
	.word	-519137256
	.word	2137656763
	.word	141376813
	.word	-1855689577
	.word	-429695999
	.word	1802195444
	.word	476864866
	.word	-2056965928
	.word	-228458418
	.word	1812370925
	.word	453092731
	.word	-2113342271
	.word	-183516073
	.word	1706088902
	.word	314042704
	.word	-1950435094
	.word	-54949764
	.word	1658658271
	.word	366619977
	.word	-1932296973
	.word	-69972891
	.word	1303535960
	.word	984961486
	.word	-1547960204
	.word	-725929758
	.word	1256170817
	.word	1037604311
	.word	-1529756563
	.word	-740887301
	.word	1131014506
	.word	879679996
	.word	-1385723834
	.word	-631195440
	.word	1141124467
	.word	855842277
	.word	-1442165665
	.word	-586318647
	.word	1342533948
	.word	654459306
	.word	-1106571248
	.word	-921952122
	.word	1466479909
	.word	544179635
	.word	-1184443383
	.word	-832445281
	.word	1591671054
	.word	702138776
	.word	-1328506846
	.word	-942167884
	.word	1504918807
	.word	783551873
	.word	-1212326853
	.word	-1061524307
	.word	-306674912
	.word	-1698712650
	.word	62317068
	.word	1957810842
	.word	-355121351
	.word	-1647151185
	.word	81470997
	.word	1943803523
	.word	-480048366
	.word	-1805370492
	.word	225274430
	.word	2053790376
	.word	-468791541
	.word	-1828061283
	.word	167816743
	.word	2097651377
	.word	-267414716
	.word	-2029476910
	.word	503444072
	.word	1762050814
	.word	-144550051
	.word	-2140837941
	.word	426522225
	.word	1852507879
	.word	-19653770
	.word	-1982649376
	.word	282753626
	.word	1742555852
	.word	-105259153
	.word	-1900089351
	.word	397917763
	.word	1622183637
	.word	-690576408
	.word	-1580100738
	.word	953729732
	.word	1340076626
	.word	-776247311
	.word	-1497606297
	.word	1068828381
	.word	1219638859
	.word	-670225446
	.word	-1358292148
	.word	906185462
	.word	1090812512
	.word	-547295293
	.word	-1469587627
	.word	829329135
	.word	1181335161
	.word	-882789492
	.word	-1134132454
	.word	628085408
	.word	1382605366
	.word	-871598187
	.word	-1156888829
	.word	570562233
	.word	1426400815
	.word	-977650754
	.word	-1296233688
	.word	733239954
	.word	1555261956
	.word	-1026031705
	.word	-1244606671
	.word	752459403
	.word	1541320221
	.word	-1687895376
	.word	-328994266
	.word	1969922972
	.word	40735498
	.word	-1677130071
	.word	-351390145
	.word	1913087877
	.word	83908371
	.word	-1782625662
	.word	-491226604
	.word	2075208622
	.word	213261112
	.word	-1831694693
	.word	-438977011
	.word	2094854071
	.word	198958881
	.word	-2032938284
	.word	-237706686
	.word	1759359992
	.word	534414190
	.word	-2118248755
	.word	-155638181
	.word	1873836001
	.word	414664567
	.word	-2012718362
	.word	-15766928
	.word	1711684554
	.word	285281116
	.word	-1889165569
	.word	-127750551
	.word	1634467795
	.word	376229701
	.word	-1609899400
	.word	-686959890
	.word	1308918612
	.word	956543938
	.word	-1486412191
	.word	-799009033
	.word	1231636301
	.word	1047427035
	.word	-1362007478
	.word	-640263460
	.word	1088359270
	.word	936918000
	.word	-1447252397
	.word	-558129467
	.word	1202900863
	.word	817233897
	.word	-1111625188
	.word	-893730166
	.word	1404277552
	.word	615818150
	.word	-1160759803
	.word	-841546093
	.word	1423857449
	.word	601450431
	.word	-1285129682
	.word	-1000256840
	.word	1567103746
	.word	711928724
	.word	-1274298825
	.word	-1022587231
	.word	1510334235
	.word	755167117
	.align	2
	.type	high_lookup, %object
	.size	high_lookup, 256
high_lookup:
	.ascii	"\000A\303\202\206\307E\004M\014\216\317\313\212\010"
	.ascii	"I\232\333Y\030\034]\337\236\327\226\024UQ\020\222\323"
	.ascii	"u4\266\367\363\2620q8y\373\272\276\377}<\357\256,mi"
	.ascii	"(\252\353\242\343a $e\347\246\352\253)hl-\257\356\247"
	.ascii	"\346d%!`\342\243p1\263\362\366\2675t=|\376\277\273\372"
	.ascii	"x9\237\336\\\035\031X\332\233\322\223\021PT\025\227"
	.ascii	"\326\005D\306\207\203\302@\001H\011\213\312\316\217"
	.ascii	"\015L\225\324V\027\023R\320\221\330\231\033Z^\037\235"
	.ascii	"\334\017N\314\215\211\310J\013B\003\201\300\304\205"
	.ascii	"\007F\340\241#bf'\245\344\255\354n/+j\350\251z;\271"
	.ascii	"\370\374\275?~7v\364\265\261\360r3\177>\274\375\371"
	.ascii	"\270:{2s\361\260\264\365w6\345\244&gc\"\240\341\250"
	.ascii	"\351k*.o\355\254\012K\311\210\214\315O\016G\006\204"
	.ascii	"\305\301\200\002C\220\321S\022\026W\325\224\335\234"
	.ascii	"\036_[\032\230\331"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	crc32_calc, %function
crc32_calc:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	b	.L44
.L45:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	eor	r3, r3, r2
	and	r3, r3, #255
	ldr	r2, .L47
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #8
	eor	r3, r3, r2
	str	r3, [fp, #-8]
.L44:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	str	r2, [fp, #-16]
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L48:
	.align	2
.L47:
	.word	crc32_table
	.size	crc32_calc, .-crc32_calc
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverse_crc32_calc, %function
reverse_crc32_calc:
	@ 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	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L50
.L51:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #24
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, .L53
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L53+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-16]
	eor	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #8
	str	r3, [fp, #-16]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, .L53
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, r2
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-16]
.L50:
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	str	r2, [fp, #-24]
	cmp	r3, #0
	bne	.L51
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L54:
	.align	2
.L53:
	.word	high_lookup
	.word	crc32_table
	.size	reverse_crc32_calc, .-reverse_crc32_calc
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_span, %function
calc_span:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, #3
	str	r3, [fp, #-16]
	b	.L56
.L57:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #8
	ldr	r2, [fp, #-28]
	lsr	r2, r2, #24
	ldr	r1, .L61
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	ldr	r2, .L61+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-28]
	eor	r3, r3, r2
	lsl	r3, r3, #8
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L56:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L57
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L58
.L59:
	ldr	r3, [fp, #-24]
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	eor	r3, r3, r2
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-24]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	ldr	r1, .L61+4
	ldr	r3, [r1, r3, lsl #2]
	eor	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	lsr	r3, r3, #8
	str	r3, [fp, #-12]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	lsl	r3, r3, #24
	ldr	r2, [fp, #-12]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #8
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L58:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L59
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L62:
	.align	2
.L61:
	.word	high_lookup
	.word	crc32_table
	.size	calc_span, .-calc_span
	.section	.rodata
	.align	2
.LC25:
	.ascii	"%s <input.elf> <output.dfu>\012\000"
	.align	2
.LC26:
	.ascii	"rb\000"
	.align	2
.LC27:
	.ascii	"ERROR: unable to open file <%s> for reading\012\000"
	.align	2
.LC28:
	.ascii	"ERROR: nothing useable in ELF; DFU cannot be create"
	.ascii	"d\000"
	.align	2
.LC29:
	.ascii	"ERROR: provided ELF intrudes into bootloader space;"
	.ascii	" DFU cannot be created\000"
	.align	2
.LC30:
	.ascii	"ERROR: provided ELF must start at 0x%x; DFU cannot "
	.ascii	"be created\012\000"
	.align	2
.LC31:
	.ascii	"wb\000"
	.align	2
.LC32:
	.ascii	"ERROR: unable to open file <%s> for writing\012\000"
	.align	2
.LC33:
	.ascii	"WARNING: overwriting 0x%x at 0x%x with length value"
	.ascii	" (0x%x)\012\000"
	.align	2
.LC34:
	.ascii	"WARNING: overwriting 0x%x at 0x%x with CRC value (0"
	.ascii	"x%x)\012\000"
	.align	2
.LC35:
	.ascii	"ERROR: something has gone wrong with the CRC calcul"
	.ascii	"ation; value was 0x%x\012\000"
	.align	2
.LC36:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #212
	str	r0, [fp, #-184]
	str	r1, [fp, #-188]
	ldr	r3, .L94
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-184]
	cmp	r3, #2
	bgt	.L64
	ldr	r3, [fp, #-188]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L94+4
	bl	printf
	mvn	r3, #0
	b	.L91
.L64:
	ldr	r3, [fp, #-188]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L94+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bne	.L66
	ldr	r3, [fp, #-188]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L94+12
	bl	printf
	mvn	r3, #0
	b	.L91
.L66:
	ldr	r0, [fp, #-156]
	bl	readEh
	bl	checkEh
	mov	r3, r0
	cmp	r3, #0
	beq	.L67
	bl	printEh
	mvn	r3, #0
	b	.L91
.L67:
	ldr	r3, .L94+16
	ldrh	r3, [r3, #44]
	lsl	r3, r3, #5
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L68
.L69:
	ldr	r3, [fp, #-176]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-152]
	add	r4, r2, r3
	sub	r3, fp, #220
	ldr	r2, [fp, #-156]
	ldr	r1, [fp, #-176]
	mov	r0, r3
	bl	readPh
	mov	lr, r4
	sub	ip, fp, #220
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
.L68:
	ldr	r3, .L94+16
	ldrh	r3, [r3, #44]
	mov	r2, r3
	ldr	r3, [fp, #-176]
	cmp	r3, r2
	blt	.L69
	mov	r3, #0
	str	r3, [fp, #-180]
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L70
.L77:
	sub	r3, fp, #120
	ldr	r2, [fp, #-156]
	ldr	r1, [fp, #-176]
	mov	r0, r3
	bl	readSh
	ldr	r3, [fp, #-112]
	and	r3, r3, #6
	cmp	r3, #0
	beq	.L93
	ldr	r3, [fp, #-116]
	cmp	r3, #1
	beq	.L73
	ldr	r3, [fp, #-116]
	cmp	r3, #14
	beq	.L73
	ldr	r3, [fp, #-116]
	cmp	r3, #15
	beq	.L73
	ldr	r3, [fp, #-116]
	cmp	r3, #16
	beq	.L73
	ldr	r3, [fp, #-116]
	cmp	r3, #1879048193
	bne	.L72
.L73:
	mov	r3, #0
	str	r3, [fp, #-172]
	b	.L74
.L76:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #5
	ldr	r1, [fp, #-152]
	add	r3, r1, r3
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bcc	.L75
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #5
	ldr	r1, [fp, #-152]
	add	r3, r1, r3
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #5
	ldr	r0, [fp, #-152]
	add	r3, r0, r3
	ldr	r3, [r3, #20]
	add	r3, r1, r3
	cmp	r2, r3
	bcs	.L75
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-152]
	add	r3, r2, r3
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-152]
	add	r3, r2, r3
	ldr	r2, [r3, #12]
	ldr	r1, [fp, #-108]
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #5
	ldr	r0, [fp, #-152]
	add	r3, r0, r3
	ldr	r3, [r3, #8]
	sub	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-100]
	sub	r2, fp, #180
	mov	r1, r3
	ldr	r0, [fp, #-164]
	bl	find_blob
	str	r0, [fp, #-168]
	ldr	r3, [fp, #-104]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-156]
	bl	fseek
	ldr	r3, [fp, #-168]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-168]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-156]
	mov	r2, #1
	bl	fread
	b	.L72
.L75:
	ldr	r3, [fp, #-172]
	add	r3, r3, #1
	str	r3, [fp, #-172]
.L74:
	ldr	r3, .L94+16
	ldrh	r3, [r3, #44]
	mov	r2, r3
	ldr	r3, [fp, #-172]
	cmp	r3, r2
	blt	.L76
	b	.L72
.L93:
	nop
.L72:
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
.L70:
	ldr	r3, .L94+16
	ldrh	r3, [r3, #48]
	mov	r2, r3
	ldr	r3, [fp, #-176]
	cmp	r3, r2
	blt	.L77
	ldr	r0, [fp, #-156]
	bl	fclose
	ldr	r3, [fp, #-180]
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L78
	ldr	r0, .L94+20
	bl	puts
	mvn	r3, #0
	b	.L91
.L78:
	ldr	r3, [fp, #-168]
	ldr	r3, [r3]
	mov	r2, #1024
	cmp	r3, r2
	bcs	.L79
	ldr	r0, .L94+24
	bl	puts
	mvn	r3, #0
	b	.L91
.L79:
	ldr	r3, [fp, #-168]
	ldr	r3, [r3]
	mov	r2, #1024
	cmp	r3, r2
	beq	.L80
	mov	r3, #1024
	mov	r1, r3
	ldr	r0, .L94+28
	bl	printf
	mvn	r3, #0
	b	.L91
.L80:
	ldr	r3, [fp, #-188]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L94+32
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bne	.L81
	ldr	r3, [fp, #-188]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L94+36
	bl	printf
	mvn	r3, #0
	b	.L91
.L81:
	ldr	r3, [fp, #-180]
	str	r3, [fp, #-168]
	mov	r3, #1024
	str	r3, [fp, #-164]
	b	.L82
.L84:
	ldr	r3, [fp, #-168]
	ldr	r2, [r3]
	ldr	r3, [fp, #-164]
	sub	r3, r2, r3
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L83
	sub	r3, fp, #180
	mov	r2, r3
	ldr	r1, [fp, #-144]
	ldr	r0, [fp, #-164]
	bl	find_blob
.L83:
	ldr	r3, [fp, #-168]
	ldr	r2, [r3]
	ldr	r3, [fp, #-168]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-168]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-168]
.L82:
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L84
	mov	r2, #1024
	ldr	r3, [fp, #-164]
	sub	r3, r3, r2
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-164]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L85
	ldr	r3, [fp, #-164]
	and	r3, r3, #3
	rsb	r3, r3, #4
	str	r3, [fp, #-144]
	ldr	r2, [fp, #-160]
	ldr	r3, [fp, #-144]
	add	r3, r2, r3
	str	r3, [fp, #-160]
	sub	r3, fp, #180
	mov	r2, r3
	ldr	r1, [fp, #-144]
	ldr	r0, [fp, #-164]
	bl	find_blob
.L85:
	ldr	r0, [fp, #-160]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-140]
	b	.L86
.L87:
	ldr	r3, [fp, #-180]
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-168]
	ldr	r3, [r3]
	mov	r2, #1024
	sub	r3, r3, r2
	ldr	r2, [fp, #-140]
	add	r0, r2, r3
	ldr	r3, [fp, #-168]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-168]
	ldr	r3, [r3, #4]
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-180]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-180]
	ldr	r0, [fp, #-168]
	bl	free
.L86:
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bne	.L87
	mov	r3, #16
	add	r3, r3, #3
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	str	r3, [fp, #-144]
	mov	r3, #16
	add	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	ldr	r2, [fp, #-144]
	orr	r3, r2, r3
	str	r3, [fp, #-144]
	mov	r3, #16
	add	r3, r3, #1
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-144]
	orr	r3, r2, r3
	str	r3, [fp, #-144]
	mov	r2, #16
	ldr	r3, [fp, #-140]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-144]
	orr	r3, r3, r2
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L88
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	beq	.L88
	mov	r2, #1024
	mov	r3, #16
	add	r2, r2, r3
	ldr	r3, [fp, #-160]
	ldr	r1, [fp, #-144]
	ldr	r0, .L94+40
	bl	printf
.L88:
	mov	r2, #16
	ldr	r3, [fp, #-140]
	add	r3, r3, r2
	ldr	r2, [fp, #-160]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-160]
	lsr	r2, r3, #8
	mov	r3, #16
	add	r3, r3, #1
	ldr	r1, [fp, #-140]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-160]
	lsr	r2, r3, #16
	mov	r3, #16
	add	r3, r3, #2
	ldr	r1, [fp, #-140]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-160]
	lsr	r2, r3, #24
	mov	r3, #16
	add	r3, r3, #3
	ldr	r1, [fp, #-140]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	mov	r3, #20
	mov	r2, r3
	ldr	r1, [fp, #-140]
	mvn	r0, #0
	bl	crc32_calc
	str	r0, [fp, #-136]
	mov	r3, #20
	add	r3, r3, #4
	ldr	r2, [fp, #-140]
	add	r1, r2, r3
	mov	r2, #20
	ldr	r3, [fp, #-160]
	sub	r3, r3, r2
	sub	r3, r3, #4
	mov	r2, r3
	mov	r0, #0
	bl	reverse_crc32_calc
	str	r0, [fp, #-132]
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-136]
	bl	calc_span
	str	r0, [fp, #-128]
	mov	r3, #20
	add	r3, r3, #3
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	str	r3, [fp, #-144]
	mov	r3, #20
	add	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	ldr	r2, [fp, #-144]
	orr	r3, r2, r3
	str	r3, [fp, #-144]
	mov	r3, #20
	add	r3, r3, #1
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-144]
	orr	r3, r2, r3
	str	r3, [fp, #-144]
	mov	r2, #20
	ldr	r3, [fp, #-140]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-144]
	orr	r3, r3, r2
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L89
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	beq	.L89
	mov	r2, #1024
	mov	r3, #20
	add	r2, r2, r3
	ldr	r3, [fp, #-128]
	ldr	r1, [fp, #-144]
	ldr	r0, .L94+44
	bl	printf
.L89:
	mov	r2, #20
	ldr	r3, [fp, #-140]
	add	r3, r3, r2
	ldr	r2, [fp, #-128]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-128]
	lsr	r2, r3, #8
	mov	r3, #20
	add	r3, r3, #1
	ldr	r1, [fp, #-140]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-128]
	lsr	r2, r3, #16
	mov	r3, #20
	add	r3, r3, #2
	ldr	r1, [fp, #-140]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-128]
	lsr	r2, r3, #24
	mov	r3, #20
	add	r3, r3, #3
	ldr	r1, [fp, #-140]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-160]
	ldr	r1, [fp, #-140]
	mvn	r0, #0
	bl	crc32_calc
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L90
	ldr	r1, [fp, #-144]
	ldr	r0, .L94+48
	bl	printf
	mvn	r3, #0
	b	.L91
.L90:
	ldr	r2, [fp, #-160]
	ldr	r1, [fp, #-140]
	mvn	r0, #0
	bl	crc32_calc
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-148]
	mov	r2, #1
	ldr	r1, [fp, #-160]
	ldr	r0, [fp, #-140]
	bl	fwrite
	ldr	r0, [fp, #-140]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #49
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #108
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #114
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #85
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #70
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #68
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #16
	strb	r2, [r3, #-68]
	ldr	r2, [fp, #-176]
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	crc32_calc
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	str	r2, [fp, #-176]
	ldr	r2, [fp, #-124]
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-124]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-176]
	add	r1, r3, #1
	str	r1, [fp, #-176]
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-124]
	lsr	r2, r3, #16
	ldr	r3, [fp, #-176]
	add	r1, r3, #1
	str	r1, [fp, #-176]
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-68]
	ldr	r3, [fp, #-124]
	lsr	r2, r3, #24
	ldr	r3, [fp, #-176]
	add	r1, r3, #1
	str	r1, [fp, #-176]
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-68]
	ldr	r1, [fp, #-176]
	sub	r0, fp, #80
	ldr	r3, [fp, #-148]
	mov	r2, #1
	bl	fwrite
	ldr	r0, [fp, #-148]
	bl	fclose
	mov	r3, #0
.L91:
	ldr	r2, .L94
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L92
	bl	__stack_chk_fail
.L92:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L95:
	.align	2
.L94:
	.word	.LC36
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	eh
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
