	.file	"859342.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%*[^0123456789]%d"
	.text
	.globl	GetNumFromStr
	.type	GetNumFromStr, @function
GetNumFromStr:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	GetNumFromStr, .-GetNumFromStr
	.section	.rodata
.LC1:
	.string	"r"
.LC2:
	.string	"w"
.LC3:
	.string	"ENVI\n"
.LC4:
	.string	"file type = ENVI Standard\n"
.LC5:
	.string	"samples"
.LC6:
	.string	"lines"
.LC7:
	.string	"bands"
.LC8:
	.string	"bands = 1\n"
.LC9:
	.string	"data type"
.LC10:
	.string	"data type = 4\n"
.LC11:
	.string	"interleave"
.LC12:
	.string	"bsq"
.LC13:
	.string	"interleave = bsq\n"
.LC14:
	.string	"map info"
.LC15:
	.string	"coordinate system string"
.LC16:
	.string	"band names = {NDVI}\n"
.LC17:
	.string	"rb"
.LC18:
	.string	"wb"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1840
	mov	DWORD PTR -1828[rbp], edi
	mov	QWORD PTR -1840[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -1552[rbp], 0
	mov	rax, QWORD PTR -1840[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1552[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1552[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1552[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1919182894
	mov	BYTE PTR 4[rax], 0
	mov	BYTE PTR -1040[rbp], 0
	mov	rax, QWORD PTR -1840[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1040[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1919182894
	mov	BYTE PTR 4[rax], 0
	lea	rax, -1552[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1752[rbp], rax
	lea	rax, -1040[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1744[rbp], rax
	mov	rax, QWORD PTR -1744[rbp]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1744[rbp]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
.L15:
	mov	rdx, QWORD PTR -1752[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -1752[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L49
	lea	rax, -528[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L7
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	GetNumFromStr
	mov	DWORD PTR -1816[rbp], eax
	mov	rdx, QWORD PTR -1744[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L15
.L7:
	lea	rax, -528[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L9
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	GetNumFromStr
	mov	DWORD PTR -1812[rbp], eax
	mov	rdx, QWORD PTR -1744[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L15
.L9:
	lea	rax, -528[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L10
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	GetNumFromStr
	mov	DWORD PTR -1808[rbp], eax
	mov	rax, QWORD PTR -1744[rbp]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	jmp	.L15
.L10:
	lea	rax, -528[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L11
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	GetNumFromStr
	mov	DWORD PTR -1804[rbp], eax
	mov	rax, QWORD PTR -1744[rbp]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	jmp	.L15
.L11:
	lea	rax, -528[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L12
	lea	rax, -528[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L13
	lea	rax, .LC12[rip]
	mov	QWORD PTR -1584[rbp], rax
.L13:
	mov	rax, QWORD PTR -1744[rbp]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	jmp	.L15
.L12:
	lea	rax, -528[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L14
	mov	rdx, QWORD PTR -1744[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L15
.L14:
	lea	rax, -528[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L15
	mov	rdx, QWORD PTR -1744[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L15
.L49:
	nop
	mov	rax, QWORD PTR -1744[rbp]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1752[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1744[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1840[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1736[rbp], rax
	mov	rax, QWORD PTR -1840[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1728[rbp], rax
	mov	rax, QWORD PTR -1584[rbp]
	lea	rdx, .LC12[rip]
	cmp	rax, rdx
	jne	.L16
	cmp	DWORD PTR -1804[rbp], 2
	jne	.L17
	mov	eax, DWORD PTR -1816[rbp]
	add	rax, rax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1624[rbp], rax
	mov	eax, DWORD PTR -1816[rbp]
	add	rax, rax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1616[rbp], rax
	mov	eax, DWORD PTR -1816[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1608[rbp], rax
	mov	DWORD PTR -1800[rbp], 0
	jmp	.L18
.L21:
	mov	eax, DWORD PTR -1816[rbp]
	mov	edx, DWORD PTR -1812[rbp]
	lea	ecx, [rdx+rdx]
	mov	edx, DWORD PTR -1800[rbp]
	add	edx, ecx
	mov	edx, edx
	imul	rax, rdx
	add	rax, rax
	mov	QWORD PTR -1600[rbp], rax
	lea	rdx, -1600[rbp]
	mov	rax, QWORD PTR -1736[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fsetpos@PLT
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, [rax+rax]
	mov	rdx, QWORD PTR -1736[rbp]
	mov	rax, QWORD PTR -1624[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	ecx, DWORD PTR -1816[rbp]
	mov	edx, DWORD PTR -1812[rbp]
	mov	eax, edx
	add	eax, eax
	add	edx, eax
	mov	eax, DWORD PTR -1800[rbp]
	add	eax, edx
	mov	eax, eax
	imul	rax, rcx
	add	rax, rax
	mov	QWORD PTR -1600[rbp], rax
	lea	rdx, -1600[rbp]
	mov	rax, QWORD PTR -1736[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fsetpos@PLT
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, [rax+rax]
	mov	rdx, QWORD PTR -1736[rbp]
	mov	rax, QWORD PTR -1616[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1796[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -1796[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1616[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	eax, DWORD PTR -1796[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1624[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	subss	xmm0, xmm1
	mov	eax, DWORD PTR -1796[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1616[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, eax
	mov	eax, DWORD PTR -1796[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1624[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	addss	xmm1, xmm2
	mov	eax, DWORD PTR -1796[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1608[rbp]
	add	rax, rdx
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -1796[rbp], 1
.L19:
	mov	eax, DWORD PTR -1796[rbp]
	cmp	eax, DWORD PTR -1816[rbp]
	jb	.L20
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, 0[0+rax*4]
	mov	rdx, QWORD PTR -1728[rbp]
	mov	rax, QWORD PTR -1608[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -1800[rbp], 1
.L18:
	mov	eax, DWORD PTR -1800[rbp]
	cmp	eax, DWORD PTR -1812[rbp]
	jb	.L21
	mov	rax, QWORD PTR -1624[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1616[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1608[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L32
.L17:
	cmp	DWORD PTR -1804[rbp], 12
	jne	.L23
	mov	eax, DWORD PTR -1816[rbp]
	add	rax, rax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1648[rbp], rax
	mov	eax, DWORD PTR -1816[rbp]
	add	rax, rax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1640[rbp], rax
	mov	eax, DWORD PTR -1816[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1632[rbp], rax
	mov	DWORD PTR -1792[rbp], 0
	jmp	.L24
.L27:
	mov	eax, DWORD PTR -1816[rbp]
	mov	edx, DWORD PTR -1812[rbp]
	lea	ecx, [rdx+rdx]
	mov	edx, DWORD PTR -1792[rbp]
	add	edx, ecx
	mov	edx, edx
	imul	rax, rdx
	add	rax, rax
	mov	QWORD PTR -1600[rbp], rax
	lea	rdx, -1600[rbp]
	mov	rax, QWORD PTR -1736[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fsetpos@PLT
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, [rax+rax]
	mov	rdx, QWORD PTR -1736[rbp]
	mov	rax, QWORD PTR -1648[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	ecx, DWORD PTR -1816[rbp]
	mov	edx, DWORD PTR -1812[rbp]
	mov	eax, edx
	add	eax, eax
	add	edx, eax
	mov	eax, DWORD PTR -1792[rbp]
	add	eax, edx
	mov	eax, eax
	imul	rax, rcx
	add	rax, rax
	mov	QWORD PTR -1600[rbp], rax
	lea	rdx, -1600[rbp]
	mov	rax, QWORD PTR -1736[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fsetpos@PLT
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, [rax+rax]
	mov	rdx, QWORD PTR -1736[rbp]
	mov	rax, QWORD PTR -1640[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1788[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -1788[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1640[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	eax, DWORD PTR -1788[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1648[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	subss	xmm0, xmm1
	mov	eax, DWORD PTR -1788[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1640[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, eax
	mov	eax, DWORD PTR -1788[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1648[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	addss	xmm1, xmm2
	mov	eax, DWORD PTR -1788[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1632[rbp]
	add	rax, rdx
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -1788[rbp], 1
.L25:
	mov	eax, DWORD PTR -1788[rbp]
	cmp	eax, DWORD PTR -1816[rbp]
	jb	.L26
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, 0[0+rax*4]
	mov	rdx, QWORD PTR -1728[rbp]
	mov	rax, QWORD PTR -1632[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -1792[rbp], 1
.L24:
	mov	eax, DWORD PTR -1792[rbp]
	cmp	eax, DWORD PTR -1812[rbp]
	jb	.L27
	mov	rax, QWORD PTR -1648[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1640[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1632[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L32
.L23:
	cmp	DWORD PTR -1804[rbp], 4
	jne	.L32
	mov	eax, DWORD PTR -1816[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1672[rbp], rax
	mov	eax, DWORD PTR -1816[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1664[rbp], rax
	mov	eax, DWORD PTR -1816[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1656[rbp], rax
	mov	DWORD PTR -1784[rbp], 0
	jmp	.L28
.L31:
	mov	eax, DWORD PTR -1816[rbp]
	mov	edx, DWORD PTR -1812[rbp]
	lea	ecx, [rdx+rdx]
	mov	edx, DWORD PTR -1784[rbp]
	add	edx, ecx
	mov	edx, edx
	imul	rax, rdx
	sal	rax, 2
	mov	QWORD PTR -1600[rbp], rax
	lea	rdx, -1600[rbp]
	mov	rax, QWORD PTR -1736[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fsetpos@PLT
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, 0[0+rax*4]
	mov	rdx, QWORD PTR -1736[rbp]
	mov	rax, QWORD PTR -1672[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	ecx, DWORD PTR -1816[rbp]
	mov	edx, DWORD PTR -1812[rbp]
	mov	eax, edx
	add	eax, eax
	add	edx, eax
	mov	eax, DWORD PTR -1784[rbp]
	add	eax, edx
	mov	eax, eax
	imul	rax, rcx
	sal	rax, 2
	mov	QWORD PTR -1600[rbp], rax
	lea	rdx, -1600[rbp]
	mov	rax, QWORD PTR -1736[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fsetpos@PLT
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, 0[0+rax*4]
	mov	rdx, QWORD PTR -1736[rbp]
	mov	rax, QWORD PTR -1664[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1780[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -1780[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1664[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -1780[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1672[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	mov	eax, DWORD PTR -1780[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1664[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	mov	eax, DWORD PTR -1780[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1672[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	addss	xmm1, xmm2
	mov	eax, DWORD PTR -1780[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1656[rbp]
	add	rax, rdx
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -1780[rbp], 1
.L29:
	mov	eax, DWORD PTR -1780[rbp]
	cmp	eax, DWORD PTR -1816[rbp]
	jb	.L30
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, 0[0+rax*4]
	mov	rdx, QWORD PTR -1728[rbp]
	mov	rax, QWORD PTR -1656[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -1784[rbp], 1
.L28:
	mov	eax, DWORD PTR -1784[rbp]
	cmp	eax, DWORD PTR -1812[rbp]
	jb	.L31
	mov	rax, QWORD PTR -1672[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1664[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1656[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L32
.L16:
	cmp	DWORD PTR -1804[rbp], 2
	jne	.L33
	mov	edx, DWORD PTR -1816[rbp]
	mov	eax, DWORD PTR -1808[rbp]
	imul	rax, rdx
	add	rax, rax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1688[rbp], rax
	mov	eax, DWORD PTR -1816[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1680[rbp], rax
	mov	DWORD PTR -1776[rbp], 0
	jmp	.L34
.L37:
	mov	edx, DWORD PTR -1816[rbp]
	mov	eax, DWORD PTR -1808[rbp]
	imul	rax, rdx
	lea	rsi, [rax+rax]
	mov	rdx, QWORD PTR -1736[rbp]
	mov	rax, QWORD PTR -1688[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1772[rbp], 0
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1772[rbp]
	add	eax, 3
	mov	eax, eax
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1688[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	edx, ax
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1772[rbp]
	add	eax, 2
	mov	eax, eax
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -1688[rbp]
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	cwde
	sub	edx, eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, edx
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1772[rbp]
	add	eax, 3
	mov	eax, eax
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1688[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	edx, ax
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1772[rbp]
	add	eax, 2
	mov	eax, eax
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -1688[rbp]
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	cwde
	add	eax, edx
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	mov	eax, DWORD PTR -1772[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1680[rbp]
	add	rax, rdx
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -1772[rbp], 1
.L35:
	mov	eax, DWORD PTR -1772[rbp]
	cmp	eax, DWORD PTR -1816[rbp]
	jb	.L36
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, 0[0+rax*4]
	mov	rdx, QWORD PTR -1728[rbp]
	mov	rax, QWORD PTR -1680[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -1776[rbp], 1
.L34:
	mov	eax, DWORD PTR -1776[rbp]
	cmp	eax, DWORD PTR -1812[rbp]
	jb	.L37
	mov	rax, QWORD PTR -1680[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1688[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L32
.L33:
	cmp	DWORD PTR -1804[rbp], 12
	jne	.L38
	mov	edx, DWORD PTR -1816[rbp]
	mov	eax, DWORD PTR -1808[rbp]
	imul	rax, rdx
	add	rax, rax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1704[rbp], rax
	mov	eax, DWORD PTR -1816[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1696[rbp], rax
	mov	DWORD PTR -1768[rbp], 0
	jmp	.L39
.L42:
	mov	edx, DWORD PTR -1816[rbp]
	mov	eax, DWORD PTR -1808[rbp]
	imul	rax, rdx
	lea	rsi, [rax+rax]
	mov	rdx, QWORD PTR -1736[rbp]
	mov	rax, QWORD PTR -1704[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1764[rbp], 0
	jmp	.L40
.L41:
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1764[rbp]
	add	eax, 3
	mov	eax, eax
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1704[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1764[rbp]
	add	eax, 2
	mov	eax, eax
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1704[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	subss	xmm0, xmm1
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1764[rbp]
	add	eax, 3
	mov	eax, eax
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1704[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, eax
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1764[rbp]
	add	eax, 2
	mov	eax, eax
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -1704[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	addss	xmm1, xmm2
	mov	eax, DWORD PTR -1764[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1696[rbp]
	add	rax, rdx
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -1764[rbp], 1
.L40:
	mov	eax, DWORD PTR -1764[rbp]
	cmp	eax, DWORD PTR -1816[rbp]
	jb	.L41
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, 0[0+rax*4]
	mov	rdx, QWORD PTR -1728[rbp]
	mov	rax, QWORD PTR -1696[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -1768[rbp], 1
.L39:
	mov	eax, DWORD PTR -1768[rbp]
	cmp	eax, DWORD PTR -1812[rbp]
	jb	.L42
	mov	rax, QWORD PTR -1696[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1704[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L32
.L38:
	cmp	DWORD PTR -1804[rbp], 4
	jne	.L32
	mov	edx, DWORD PTR -1816[rbp]
	mov	eax, DWORD PTR -1808[rbp]
	imul	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1720[rbp], rax
	mov	eax, DWORD PTR -1816[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1712[rbp], rax
	mov	DWORD PTR -1760[rbp], 0
	jmp	.L43
.L46:
	mov	edx, DWORD PTR -1816[rbp]
	mov	eax, DWORD PTR -1808[rbp]
	imul	rax, rdx
	lea	rsi, 0[0+rax*4]
	mov	rdx, QWORD PTR -1736[rbp]
	mov	rax, QWORD PTR -1720[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1756[rbp], 0
	jmp	.L44
.L45:
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1756[rbp]
	add	eax, 3
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1720[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1756[rbp]
	add	eax, 2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1720[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1756[rbp]
	add	eax, 3
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1720[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR [rax]
	mov	eax, DWORD PTR -1808[rbp]
	imul	eax, DWORD PTR -1756[rbp]
	add	eax, 2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1720[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	addss	xmm1, xmm2
	mov	eax, DWORD PTR -1756[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1712[rbp]
	add	rax, rdx
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -1756[rbp], 1
.L44:
	mov	eax, DWORD PTR -1756[rbp]
	cmp	eax, DWORD PTR -1816[rbp]
	jb	.L45
	mov	eax, DWORD PTR -1816[rbp]
	lea	rsi, 0[0+rax*4]
	mov	rdx, QWORD PTR -1728[rbp]
	mov	rax, QWORD PTR -1712[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -1760[rbp], 1
.L43:
	mov	eax, DWORD PTR -1760[rbp]
	cmp	eax, DWORD PTR -1812[rbp]
	jb	.L46
	mov	rax, QWORD PTR -1712[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1720[rbp]
	mov	rdi, rax
	call	free@PLT
.L32:
	mov	rax, QWORD PTR -1736[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1728[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"859342.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%*[^0123456789]%d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GetNumFromStr
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetNumFromStr, %function
GetNumFromStr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r2, r3
	ldr	r1, .L4+4
	ldr	r0, [fp, #-16]
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC1
	.word	.LC0
	.size	GetNumFromStr, .-GetNumFromStr
	.section	.rodata
	.align	2
.LC2:
	.ascii	".hdr\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"ENVI\012\000"
	.align	2
.LC6:
	.ascii	"file type = ENVI Standard\012\000"
	.align	2
.LC7:
	.ascii	"samples\000"
	.align	2
.LC8:
	.ascii	"lines\000"
	.align	2
.LC9:
	.ascii	"bands\000"
	.align	2
.LC10:
	.ascii	"bands = 1\012\000"
	.align	2
.LC11:
	.ascii	"data type\000"
	.align	2
.LC12:
	.ascii	"data type = 4\012\000"
	.align	2
.LC13:
	.ascii	"interleave\000"
	.align	2
.LC14:
	.ascii	"bsq\000"
	.align	2
.LC15:
	.ascii	"interleave = bsq\012\000"
	.align	2
.LC16:
	.ascii	"map info\000"
	.align	2
.LC17:
	.ascii	"coordinate system string\000"
	.align	2
.LC18:
	.ascii	"band names = {NDVI}\012\000"
	.align	2
.LC19:
	.ascii	"rb\000"
	.align	2
.LC20:
	.ascii	"wb\000"
	.global	__aeabi_i2f
	.global	__aeabi_fsub
	.global	__aeabi_fadd
	.global	__aeabi_fdiv
	.global	__aeabi_ui2f
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1712
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1712
	str	r0, [fp, #-1720]
	str	r1, [fp, #-1724]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-1552]
	ldr	r3, [fp, #-1724]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #1536
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1536
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1536
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L52+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	mov	r3, #0
	strb	r3, [fp, #-1040]
	ldr	r3, [fp, #-1724]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L52+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1536
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L52+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1652]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L52+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1648]
	ldr	r3, [fp, #-1648]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L52+16
	bl	fwrite
	ldr	r3, [fp, #-1648]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L52+20
	bl	fwrite
.L17:
	sub	r3, fp, #528
	ldr	r2, [fp, #-1652]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	ldr	r0, [fp, #-1652]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	sub	r3, fp, #528
	ldr	r1, .L52+24
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #528
	mov	r0, r3
	bl	GetNumFromStr
	str	r0, [fp, #-1716]
	sub	r3, fp, #528
	ldr	r1, [fp, #-1648]
	mov	r0, r3
	bl	fputs
	b	.L17
.L9:
	sub	r3, fp, #528
	ldr	r1, .L52+28
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #528
	mov	r0, r3
	bl	GetNumFromStr
	str	r0, [fp, #-1712]
	sub	r3, fp, #528
	ldr	r1, [fp, #-1648]
	mov	r0, r3
	bl	fputs
	b	.L17
.L11:
	sub	r3, fp, #528
	ldr	r1, .L52+32
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #528
	mov	r0, r3
	bl	GetNumFromStr
	str	r0, [fp, #-1708]
	ldr	r3, [fp, #-1648]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L52+36
	bl	fwrite
	b	.L17
.L12:
	sub	r3, fp, #528
	ldr	r1, .L52+40
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #528
	mov	r0, r3
	bl	GetNumFromStr
	str	r0, [fp, #-1704]
	ldr	r3, [fp, #-1648]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L52+44
	bl	fwrite
	b	.L17
.L13:
	sub	r3, fp, #528
	ldr	r1, .L52+48
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #528
	ldr	r1, .L52+52
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L52+52
	str	r3, [fp, #-1576]
.L15:
	ldr	r3, [fp, #-1648]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L52+56
	bl	fwrite
	b	.L17
.L14:
	sub	r3, fp, #528
	ldr	r1, .L52+60
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #528
	ldr	r1, [fp, #-1648]
	mov	r0, r3
	bl	fputs
	b	.L17
.L16:
	sub	r3, fp, #528
	ldr	r1, .L52+64
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	sub	r3, fp, #528
	ldr	r1, [fp, #-1648]
	mov	r0, r3
	bl	fputs
	b	.L17
.L51:
	nop
	ldr	r3, [fp, #-1648]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L52+68
	bl	fwrite
	ldr	r0, [fp, #-1652]
	bl	fclose
	ldr	r0, [fp, #-1648]
	bl	fclose
	ldr	r3, [fp, #-1724]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L52+72
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1644]
	ldr	r3, [fp, #-1724]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L52+76
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1640]
	ldr	r3, [fp, #-1576]
	ldr	r2, .L52+52
	cmp	r3, r2
	bne	.L18
	ldr	r3, [fp, #-1704]
	cmp	r3, #2
	bne	.L19
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1588]
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1584]
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1580]
	mov	r3, #0
	str	r3, [fp, #-1700]
	b	.L20
.L23:
	ldr	r3, [fp, #-1712]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-1700]
	add	r3, r2, r3
	ldr	r2, [fp, #-1716]
	mul	r3, r2, r3
	lsl	r3, r3, #1
	str	r3, [fp, #-1564]
	sub	r3, fp, #1552
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1644]
	bl	fsetpos
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #1
	ldr	r3, [fp, #-1644]
	mov	r2, #1
	ldr	r0, [fp, #-1588]
	bl	fread
	ldr	r2, [fp, #-1712]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, [fp, #-1700]
	add	r3, r2, r3
	ldr	r2, [fp, #-1716]
	mul	r3, r2, r3
	lsl	r3, r3, #1
	str	r3, [fp, #-1564]
	sub	r3, fp, #1552
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1644]
	bl	fsetpos
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #1
	ldr	r3, [fp, #-1644]
	mov	r2, #1
	ldr	r0, [fp, #-1584]
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-1696]
	b	.L21
.L22:
	ldr	r3, [fp, #-1696]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1584]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r3, [fp, #-1696]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1588]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r5, r3
	ldr	r3, [fp, #-1696]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1584]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r3, [fp, #-1696]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1588]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-1696]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1580]
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-1696]
	add	r3, r3, #1
	str	r3, [fp, #-1696]
.L21:
	ldr	r2, [fp, #-1696]
	ldr	r3, [fp, #-1716]
	cmp	r2, r3
	bcc	.L22
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-1640]
	mov	r2, #1
	ldr	r0, [fp, #-1580]
	bl	fwrite
	ldr	r3, [fp, #-1700]
	add	r3, r3, #1
	str	r3, [fp, #-1700]
.L20:
	ldr	r2, [fp, #-1700]
	ldr	r3, [fp, #-1712]
	cmp	r2, r3
	bcc	.L23
	ldr	r0, [fp, #-1588]
	bl	free
	ldr	r0, [fp, #-1584]
	bl	free
	ldr	r0, [fp, #-1580]
	bl	free
	b	.L34
.L19:
	ldr	r3, [fp, #-1704]
	cmp	r3, #12
	bne	.L25
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1600]
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1596]
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1592]
	mov	r3, #0
	str	r3, [fp, #-1692]
	b	.L26
.L29:
	ldr	r3, [fp, #-1712]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-1692]
	add	r3, r2, r3
	ldr	r2, [fp, #-1716]
	mul	r3, r2, r3
	lsl	r3, r3, #1
	str	r3, [fp, #-1564]
	sub	r3, fp, #1552
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1644]
	bl	fsetpos
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #1
	ldr	r3, [fp, #-1644]
	mov	r2, #1
	ldr	r0, [fp, #-1600]
	bl	fread
	ldr	r2, [fp, #-1712]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, [fp, #-1692]
	add	r3, r2, r3
	ldr	r2, [fp, #-1716]
	mul	r3, r2, r3
	lsl	r3, r3, #1
	str	r3, [fp, #-1564]
	sub	r3, fp, #1552
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1644]
	bl	fsetpos
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #1
	ldr	r3, [fp, #-1644]
	mov	r2, #1
	ldr	r0, [fp, #-1596]
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-1688]
	b	.L27
.L28:
	ldr	r3, [fp, #-1688]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1596]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2f
	mov	r4, r0
	ldr	r3, [fp, #-1688]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1600]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r5, r3
	ldr	r3, [fp, #-1688]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1596]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2f
	mov	r4, r0
	ldr	r3, [fp, #-1688]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1600]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-1688]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1592]
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-1688]
	add	r3, r3, #1
	str	r3, [fp, #-1688]
.L27:
	ldr	r2, [fp, #-1688]
	ldr	r3, [fp, #-1716]
	cmp	r2, r3
	bcc	.L28
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-1640]
	mov	r2, #1
	ldr	r0, [fp, #-1592]
	bl	fwrite
	ldr	r3, [fp, #-1692]
	add	r3, r3, #1
	str	r3, [fp, #-1692]
.L26:
	ldr	r2, [fp, #-1692]
	ldr	r3, [fp, #-1712]
	cmp	r2, r3
	bcc	.L29
	ldr	r0, [fp, #-1600]
	bl	free
	ldr	r0, [fp, #-1596]
	bl	free
	ldr	r0, [fp, #-1592]
	bl	free
	b	.L34
.L25:
	ldr	r3, [fp, #-1704]
	cmp	r3, #4
	bne	.L34
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1612]
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1608]
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1604]
	mov	r3, #0
	str	r3, [fp, #-1684]
	b	.L30
.L33:
	ldr	r3, [fp, #-1712]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-1684]
	add	r3, r2, r3
	ldr	r2, [fp, #-1716]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	str	r3, [fp, #-1564]
	sub	r3, fp, #1552
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1644]
	bl	fsetpos
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-1644]
	mov	r2, #1
	ldr	r0, [fp, #-1612]
	bl	fread
	ldr	r2, [fp, #-1712]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, [fp, #-1684]
	add	r3, r2, r3
	ldr	r2, [fp, #-1716]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	str	r3, [fp, #-1564]
	sub	r3, fp, #1552
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1644]
	bl	fsetpos
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-1644]
	mov	r2, #1
	ldr	r0, [fp, #-1608]
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-1680]
	b	.L31
.L32:
	ldr	r3, [fp, #-1680]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1608]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-1680]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1612]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r5, r3
	ldr	r3, [fp, #-1680]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1608]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-1680]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1612]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-1680]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1604]
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-1680]
	add	r3, r3, #1
	str	r3, [fp, #-1680]
.L31:
	ldr	r2, [fp, #-1680]
	ldr	r3, [fp, #-1716]
	cmp	r2, r3
	bcc	.L32
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-1640]
	mov	r2, #1
	ldr	r0, [fp, #-1604]
	bl	fwrite
	ldr	r3, [fp, #-1684]
	add	r3, r3, #1
	str	r3, [fp, #-1684]
.L30:
	ldr	r2, [fp, #-1684]
	ldr	r3, [fp, #-1712]
	cmp	r2, r3
	bcc	.L33
	ldr	r0, [fp, #-1612]
	bl	free
	ldr	r0, [fp, #-1608]
	bl	free
	ldr	r0, [fp, #-1604]
	bl	free
	b	.L34
.L18:
	ldr	r3, [fp, #-1704]
	cmp	r3, #2
	bne	.L35
	ldr	r3, [fp, #-1716]
	ldr	r2, [fp, #-1708]
	mul	r3, r2, r3
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1620]
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1616]
	mov	r3, #0
	str	r3, [fp, #-1676]
	b	.L36
.L39:
	ldr	r3, [fp, #-1716]
	ldr	r2, [fp, #-1708]
	mul	r3, r2, r3
	lsl	r1, r3, #1
	ldr	r3, [fp, #-1644]
	mov	r2, #1
	ldr	r0, [fp, #-1620]
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-1672]
	b	.L37
.L38:
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1672]
	mul	r3, r2, r3
	add	r3, r3, #3
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1620]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1672]
	mul	r3, r2, r3
	add	r3, r3, #2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1620]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	sub	r3, r1, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r5, r0
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1672]
	mul	r3, r2, r3
	add	r3, r3, #3
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1620]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1672]
	mul	r3, r2, r3
	add	r3, r3, #2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1620]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	add	r3, r1, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r1, r0
	ldr	r3, [fp, #-1672]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1616]
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-1672]
	add	r3, r3, #1
	str	r3, [fp, #-1672]
.L37:
	ldr	r2, [fp, #-1672]
	ldr	r3, [fp, #-1716]
	cmp	r2, r3
	bcc	.L38
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-1640]
	mov	r2, #1
	ldr	r0, [fp, #-1616]
	bl	fwrite
	ldr	r3, [fp, #-1676]
	add	r3, r3, #1
	str	r3, [fp, #-1676]
.L36:
	ldr	r2, [fp, #-1676]
	ldr	r3, [fp, #-1712]
	cmp	r2, r3
	bcc	.L39
	ldr	r0, [fp, #-1616]
	bl	free
	ldr	r0, [fp, #-1620]
	bl	free
	b	.L34
.L35:
	ldr	r3, [fp, #-1704]
	cmp	r3, #12
	bne	.L40
	ldr	r3, [fp, #-1716]
	ldr	r2, [fp, #-1708]
	mul	r3, r2, r3
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1628]
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1624]
	mov	r3, #0
	str	r3, [fp, #-1668]
	b	.L41
.L44:
	ldr	r3, [fp, #-1716]
	ldr	r2, [fp, #-1708]
	mul	r3, r2, r3
	lsl	r1, r3, #1
	ldr	r3, [fp, #-1644]
	mov	r2, #1
	ldr	r0, [fp, #-1628]
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-1664]
	b	.L42
.L43:
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1664]
	mul	r3, r2, r3
	add	r3, r3, #3
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1628]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2f
	mov	r4, r0
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1664]
	mul	r3, r2, r3
	add	r3, r3, #2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1628]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r5, r3
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1664]
	mul	r3, r2, r3
	add	r3, r3, #3
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1628]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2f
	mov	r4, r0
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1664]
	mul	r3, r2, r3
	add	r3, r3, #2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-1628]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-1664]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1624]
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-1664]
	add	r3, r3, #1
	str	r3, [fp, #-1664]
.L42:
	ldr	r2, [fp, #-1664]
	ldr	r3, [fp, #-1716]
	cmp	r2, r3
	bcc	.L43
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-1640]
	mov	r2, #1
	ldr	r0, [fp, #-1624]
	bl	fwrite
	ldr	r3, [fp, #-1668]
	add	r3, r3, #1
	str	r3, [fp, #-1668]
.L41:
	ldr	r2, [fp, #-1668]
	ldr	r3, [fp, #-1712]
	cmp	r2, r3
	bcc	.L44
	ldr	r0, [fp, #-1624]
	bl	free
	ldr	r0, [fp, #-1628]
	bl	free
	b	.L34
.L40:
	ldr	r3, [fp, #-1704]
	cmp	r3, #4
	bne	.L34
	ldr	r3, [fp, #-1716]
	ldr	r2, [fp, #-1708]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1636]
	ldr	r3, [fp, #-1716]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1632]
	mov	r3, #0
	str	r3, [fp, #-1660]
	b	.L45
.L48:
	ldr	r3, [fp, #-1716]
	ldr	r2, [fp, #-1708]
	mul	r3, r2, r3
	lsl	r1, r3, #2
	ldr	r3, [fp, #-1644]
	mov	r2, #1
	ldr	r0, [fp, #-1636]
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-1656]
	b	.L46
.L47:
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1656]
	mul	r3, r2, r3
	add	r3, r3, #3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1636]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1656]
	mul	r3, r2, r3
	add	r3, r3, #2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1636]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r5, r3
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1656]
	mul	r3, r2, r3
	add	r3, r3, #3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1636]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-1708]
	ldr	r2, [fp, #-1656]
	mul	r3, r2, r3
	add	r3, r3, #2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1636]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-1656]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1632]
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-1656]
	add	r3, r3, #1
	str	r3, [fp, #-1656]
.L46:
	ldr	r2, [fp, #-1656]
	ldr	r3, [fp, #-1716]
	cmp	r2, r3
	bcc	.L47
	ldr	r3, [fp, #-1716]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-1640]
	mov	r2, #1
	ldr	r0, [fp, #-1632]
	bl	fwrite
	ldr	r3, [fp, #-1660]
	add	r3, r3, #1
	str	r3, [fp, #-1660]
.L45:
	ldr	r2, [fp, #-1660]
	ldr	r3, [fp, #-1712]
	cmp	r2, r3
	bcc	.L48
	ldr	r0, [fp, #-1632]
	bl	free
	ldr	r0, [fp, #-1636]
	bl	free
.L34:
	ldr	r0, [fp, #-1644]
	bl	fclose
	ldr	r0, [fp, #-1640]
	bl	fclose
	nop
	ldr	r3, .L52
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC21
	.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
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
