	.file	"175143872.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"    "
	.text
	.type	spacesByLevel, @function
spacesByLevel:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	jmp	.L2
.L3:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	spacesByLevel, .-spacesByLevel
	.section	.rodata
	.align 8
.LC1:
	.string	"flatex - create a single latex file with no include/inputs"
	.align 8
.LC2:
	.string	"\n\tflatex [-v] [-x FileName] [files]"
	.align 8
.LC3:
	.string	"\t\t-v\tVerbose, display file structure."
	.align 8
.LC4:
	.string	"\t\t-x\tUnflatex: extract files from archive"
	.align 8
.LC5:
	.string	"\t\t-q\tQuiet mode. Cleaner output but -x can not be used."
	.align 8
.LC6:
	.string	"\t\t-b\tDo not insert bibiliography file(.bbl)"
	.align 8
.LC7:
	.string	"\nFlatex page: http://www.math.tau.ac.il/~sariel/flatex.html"
	.text
	.type	printHelp, @function
printHelp:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printHelp, .-printHelp
	.section	.rodata
.LC8:
	.string	"Not enough memory"
	.text
	.type	myMalloc, @function
myMalloc:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	myMalloc, .-myMalloc
	.section	.rodata
.LC9:
	.string	"\\input"
.LC10:
	.string	"\\include"
	.align 8
.LC11:
	.string	"ERROR: Expected brace not found.\n\n\tline:%s\n"
.LC12:
	.string	".tex"
	.text
	.type	handleIncludeCommand, @function
handleIncludeCommand:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	QWORD PTR -72[rbp], r8
	mov	BYTE PTR -26[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 6
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 6
	mov	QWORD PTR -24[rbp], rax
	mov	BYTE PTR -26[rbp], 1
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 8
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	QWORD PTR -24[rbp], rax
.L10:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -25[rbp], al
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -48[rbp]
	movzx	edx, BYTE PTR -25[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 125
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 123
	jne	.L11
	cmp	QWORD PTR -16[rbp], 0
	jne	.L12
.L11:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
	mov	edi, 1000
	call	myMalloc
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	cmp	BYTE PTR -26[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	replaceExt
.L13:
	mov	eax, DWORD PTR -60[rbp]
	lea	edi, 1[rax]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	flatIt
	add	QWORD PTR -16[rbp], 1
	jmp	.L14
.L15:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -40[rbp], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L14:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	handleIncludeCommand, .-handleIncludeCommand
	.type	isBefore, @function
isBefore:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -16[rbp], 0
	jne	.L17
	mov	eax, 1
	jmp	.L18
.L17:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L19
	mov	eax, 0
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -16[rbp]
	test	eax, eax
	jns	.L20
	mov	eax, 1
	jmp	.L18
.L20:
	mov	eax, 0
.L18:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	isBefore, .-isBefore
	.type	fopenTex, @function
fopenTex:
.LFB11:
	.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	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	replaceExt
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	fopenTex, .-fopenTex
	.section	.rodata
.LC13:
	.string	"rt"
	.text
	.type	isTexFileExists, @function
isTexFileExists:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopenTex
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L26
.L25:
	mov	eax, 0
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	isTexFileExists, .-isTexFileExists
	.type	addTexExt, @function
addTexExt:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopenTex
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L29
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L29:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	addTexExt, .-addTexExt
	.type	is_str_prefix, @function
is_str_prefix:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	je	.L31
	cmp	QWORD PTR -32[rbp], 0
	jne	.L32
.L31:
	mov	eax, 0
	jmp	.L33
.L32:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	sete	al
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	is_str_prefix, .-is_str_prefix
	.section	.rodata
.LC14:
	.string	"%%%cflatex input: [%s]\n"
.LC15:
	.string	"Unable to open file: %s\n"
.LC16:
	.string	"\\bibliography"
.LC17:
	.string	"\\bibliographystyle"
.LC18:
	.string	"%"
.LC19:
	.string	"%FLATEX-REM:"
.LC20:
	.string	".bbl"
.LC21:
	.string	"(Bibiliography)"
.LC22:
	.string	"\\includeversion"
.LC23:
	.string	"\\includegraphics"
.LC24:
	.string	"\\includeonly"
	.align 8
.LC25:
	.string	"WARNING: \"\\includeonly\" command ignored\n"
	.align 8
.LC26:
	.string	"\nWarning: include-like(?) command ignored at line:\n\t%s"
.LC27:
	.string	"\\newcommand"
.LC28:
	.string	"%% flatex input end: [%s]\n"
	.text
	.type	flatIt, @function
flatIt:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 256
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -240[rbp], rsi
	mov	DWORD PTR -244[rbp], edx
	mov	QWORD PTR -256[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -240[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	addTexExt
	mov	rax, QWORD PTR -256[rbp]
	movzx	eax, BYTE PTR 2[rax]
	test	al, al
	jne	.L35
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jle	.L36
	mov	esi, 42
	jmp	.L37
.L36:
	mov	esi, 32
.L37:
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rcx, rdx
	mov	edx, esi
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L35:
	mov	rax, QWORD PTR -256[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L38
	mov	edi, 9
	call	putchar@PLT
	mov	eax, DWORD PTR -244[rbp]
	mov	edi, eax
	call	spacesByLevel
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	puts@PLT
.L38:
	mov	edi, 1000
	call	myMalloc
	mov	QWORD PTR -200[rbp], rax
	mov	edi, 1000
	call	myMalloc
	mov	QWORD PTR -192[rbp], rax
	mov	edi, 1000
	call	myMalloc
	mov	QWORD PTR -184[rbp], rax
	lea	rax, -112[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopenTex
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L39
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -112[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L39:
	mov	rax, QWORD PTR -184[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L40
.L59:
	mov	rdx, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	je	.L62
	mov	BYTE PTR -217[rbp], 0
	mov	rdx, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	esi, 37
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -160[rbp], rax
	cmp	QWORD PTR -160[rbp], 0
	je	.L57
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	BYTE PTR [rax], 0
.L57:
	mov	BYTE PTR -219[rbp], 0
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	movzx	eax, BYTE PTR 1[rax]
	test	al, al
	je	.L44
	cmp	QWORD PTR -144[rbp], 0
	jne	.L45
	cmp	QWORD PTR -136[rbp], 0
	je	.L44
.L45:
	mov	edi, 1000
	call	myMalloc
	mov	QWORD PTR -128[rbp], rax
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -256[rbp]
	movzx	eax, BYTE PTR 2[rax]
	test	al, al
	je	.L46
	lea	rax, .LC18[rip]
	jmp	.L47
.L46:
	lea	rax, .LC19[rip]
.L47:
	mov	rdx, QWORD PTR -192[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	cmp	QWORD PTR -136[rbp], 0
	je	.L63
	mov	rax, QWORD PTR -256[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	replaceExt
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -256[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -244[rbp]
	lea	edi, 1[rax]
	mov	rdx, QWORD PTR -256[rbp]
	mov	rsi, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	flatIt
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -256[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -256[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L63
	mov	edi, 9
	call	putchar@PLT
	mov	eax, DWORD PTR -244[rbp]
	add	eax, 1
	mov	edi, eax
	call	spacesByLevel
	lea	rdi, .LC21[rip]
	call	puts@PLT
	jmp	.L63
.L44:
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR -208[rbp], rax
.L54:
	mov	BYTE PTR -218[rbp], 0
	mov	rax, QWORD PTR -208[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	is_str_prefix
	test	al, al
	jne	.L50
	mov	rax, QWORD PTR -216[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	is_str_prefix
	test	al, al
	je	.L51
.L50:
	mov	BYTE PTR -218[rbp], 1
	mov	rax, QWORD PTR -216[rbp]
	add	rax, 1
	mov	QWORD PTR -208[rbp], rax
	jmp	.L52
.L51:
	mov	rax, QWORD PTR -216[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	is_str_prefix
	test	al, al
	je	.L53
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -216[rbp]
	add	rax, 1
	mov	QWORD PTR -208[rbp], rax
	mov	BYTE PTR -218[rbp], 1
	jmp	.L52
.L53:
	cmp	QWORD PTR -216[rbp], 0
	je	.L52
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -216[rbp]
	add	rax, 8
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	je	.L52
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -192[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -216[rbp]
	add	rax, 1
	mov	QWORD PTR -208[rbp], rax
	mov	BYTE PTR -218[rbp], 1
	nop
.L52:
	cmp	BYTE PTR -218[rbp], 0
	jne	.L54
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	isBefore
	test	al, al
	je	.L55
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -216[rbp], rax
.L55:
	cmp	QWORD PTR -216[rbp], 0
	je	.L56
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L56
	mov	rdi, QWORD PTR -256[rbp]
	mov	ecx, DWORD PTR -244[rbp]
	mov	rdx, QWORD PTR -232[rbp]
	mov	rsi, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	handleIncludeCommand
	mov	BYTE PTR -219[rbp], 1
	mov	BYTE PTR -217[rbp], 1
.L56:
	cmp	BYTE PTR -219[rbp], 0
	jne	.L57
	jmp	.L49
.L63:
	nop
.L49:
	cmp	BYTE PTR -217[rbp], 0
	je	.L58
	mov	rdx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rdx, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L40
.L58:
	mov	rdx, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L40:
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L59
	jmp	.L42
.L62:
	nop
.L42:
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -256[rbp]
	movzx	eax, BYTE PTR 2[rax]
	test	al, al
	jne	.L60
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -232[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L60:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	flatIt, .-flatIt
	.type	replaceExt, @function
replaceExt:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L65
.L67:
	sub	DWORD PTR -8[rbp], 1
.L65:
	cmp	DWORD PTR -8[rbp], 0
	js	.L66
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	je	.L66
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	je	.L66
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L67
.L66:
	cmp	DWORD PTR -8[rbp], 0
	js	.L68
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L68
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L68:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	replaceExt, .-replaceExt
	.section	.rodata
	.align 8
.LC29:
	.string	"Error encountered in line: [%s]"
	.text
	.type	strCmpPrefixAndCopy, @function
strCmpPrefixAndCopy:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L70
	mov	eax, 0
	jmp	.L71
.L70:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 93
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L72
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L72:
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	eax, 1
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	strCmpPrefixAndCopy, .-strCmpPrefixAndCopy
	.section	.rodata
	.align 8
.LC30:
	.string	"Scanning for flatex archive start..."
.LC31:
	.string	"wt"
.LC32:
	.string	"Unable to open file: %s"
.LC33:
	.string	"[%s]\n"
.LC34:
	.string	"% flatex input end: ["
.LC35:
	.string	"Something is wrong!!!!\n"
.LC36:
	.string	"% flatex input: ["
.LC37:
	.string	"\\input{%s}\n"
.LC38:
	.string	"%*flatex input: ["
	.text
	.type	writeFile, @function
writeFile:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2080
	mov	QWORD PTR -2056[rbp], rdi
	mov	QWORD PTR -2064[rbp], rsi
	mov	DWORD PTR -2068[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -1008[rbp], 0
	cmp	QWORD PTR -2064[rbp], 0
	jne	.L74
	mov	QWORD PTR -2032[rbp], 0
	lea	rdi, .LC30[rip]
	call	puts@PLT
	jmp	.L85
.L74:
	mov	rax, QWORD PTR -2064[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2032[rbp], rax
	cmp	QWORD PTR -2032[rbp], 0
	jne	.L76
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -2064[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L76:
	mov	eax, DWORD PTR -2068[rbp]
	mov	edi, eax
	call	spacesByLevel
	mov	rax, QWORD PTR -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
.L85:
	mov	rdx, QWORD PTR -2056[rbp]
	lea	rax, -2016[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -2024[rbp], rax
	cmp	QWORD PTR -2024[rbp], 0
	je	.L88
	lea	rdx, -1008[rbp]
	lea	rax, -2016[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strCmpPrefixAndCopy
	mov	BYTE PTR -2033[rbp], al
	cmp	BYTE PTR -2033[rbp], 0
	je	.L79
	cmp	QWORD PTR -2032[rbp], 0
	jne	.L89
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC35[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L79:
	lea	rdx, -1008[rbp]
	lea	rax, -2016[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	strCmpPrefixAndCopy
	mov	BYTE PTR -2033[rbp], al
	cmp	BYTE PTR -2033[rbp], 0
	je	.L81
	mov	eax, DWORD PTR -2068[rbp]
	lea	edx, 1[rax]
	lea	rcx, -1008[rbp]
	mov	rax, QWORD PTR -2056[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	writeFile
	cmp	QWORD PTR -2032[rbp], 0
	je	.L82
	lea	rdx, -1008[rbp]
	mov	rax, QWORD PTR -2032[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L82
.L81:
	lea	rdx, -1008[rbp]
	lea	rax, -2016[rbp]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	call	strCmpPrefixAndCopy
	mov	BYTE PTR -2033[rbp], al
	cmp	BYTE PTR -2033[rbp], 0
	je	.L83
	mov	eax, DWORD PTR -2068[rbp]
	lea	edx, 1[rax]
	lea	rcx, -1008[rbp]
	mov	rax, QWORD PTR -2056[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	writeFile
	jmp	.L82
.L83:
	cmp	QWORD PTR -2032[rbp], 0
	je	.L82
	lea	rax, -2016[rbp]
	mov	edx, 12
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L84
	lea	rax, -2016[rbp]
	add	rax, 12
	mov	rdx, QWORD PTR -2032[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L82
.L84:
	mov	rdx, QWORD PTR -2032[rbp]
	lea	rax, -2016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L82:
	mov	rax, QWORD PTR -2056[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L85
	jmp	.L78
.L88:
	nop
	jmp	.L78
.L89:
	nop
.L78:
	cmp	QWORD PTR -2032[rbp], 0
	je	.L90
	mov	rax, QWORD PTR -2032[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L90:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L87
	call	__stack_chk_fail@PLT
.L87:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	writeFile, .-writeFile
	.type	flatOutFile, @function
flatOutFile:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L92
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L92:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	writeFile
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	flatOutFile, .-flatOutFile
	.section	.rodata
.LC39:
	.string	"--Unable to open file: [%s]\n"
.LC40:
	.string	"input file: [%s]\n"
.LC41:
	.string	".flt"
.LC42:
	.string	"\n\tFile: \"%s\" generated\n"
	.text
	.type	flatFile, @function
flatFile:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	edi, 1000
	call	myMalloc
	mov	QWORD PTR -24[rbp], rax
	mov	edi, 1000
	call	myMalloc
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	isTexFileExists
	test	al, al
	jne	.L94
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L94:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 3
	jle	.L95
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	je	.L96
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L96
.L95:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 2019914798
	mov	BYTE PTR 4[rax], 0
.L96:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	replaceExt
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L97
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L97:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	rdi, rax
	call	flatIt
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	flatFile, .-flatFile
	.type	isFlag, @function
isFlag:
.LFB21:
	.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, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L99
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -28[rbp], al
	je	.L100
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	ebx, al
	movsx	eax, BYTE PTR -28[rbp]
	mov	edi, eax
	call	toupper@PLT
	cmp	ebx, eax
	jne	.L99
.L100:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L99
	mov	eax, 1
	jmp	.L101
.L99:
	mov	eax, 0
.L101:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	isFlag, .-isFlag
	.section	.rodata
	.align 8
.LC43:
	.string	"FLATEX  1.21, 1994, 1996, by Sariel Har-Peled.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1056
	mov	DWORD PTR -1044[rbp], edi
	mov	QWORD PTR -1056[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC43[rip]
	call	puts@PLT
	cmp	DWORD PTR -1044[rbp], 1
	jne	.L103
	call	printHelp
.L103:
	mov	BYTE PTR -1024[rbp], 0
	mov	BYTE PTR -1023[rbp], 1
	mov	DWORD PTR -1020[rbp], 0
	mov	BYTE PTR -1016[rbp], 0
	mov	BYTE PTR -1022[rbp], 0
	mov	DWORD PTR -1028[rbp], 1
	jmp	.L104
.L110:
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 118
	mov	rdi, rax
	call	isFlag
	test	al, al
	je	.L105
	mov	BYTE PTR -1024[rbp], 1
	jmp	.L106
.L105:
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 98
	mov	rdi, rax
	call	isFlag
	test	al, al
	je	.L107
	mov	BYTE PTR -1023[rbp], 0
	jmp	.L106
.L107:
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 113
	mov	rdi, rax
	call	isFlag
	test	al, al
	je	.L108
	mov	BYTE PTR -1022[rbp], 1
	jmp	.L106
.L108:
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 120
	mov	rdi, rax
	call	isFlag
	test	al, al
	je	.L109
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	flatOutFile
	add	DWORD PTR -1028[rbp], 1
	jmp	.L106
.L109:
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	flatFile
.L106:
	add	DWORD PTR -1028[rbp], 1
.L104:
	mov	eax, DWORD PTR -1028[rbp]
	cmp	eax, DWORD PTR -1044[rbp]
	jl	.L110
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L112
	call	__stack_chk_fail@PLT
.L112:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.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	"175143872.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"    \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spacesByLevel, %function
spacesByLevel:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	b	.L2
.L3:
	ldr	r0, .L4
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	spacesByLevel, .-spacesByLevel
	.section	.rodata
	.align	2
.LC1:
	.ascii	"flatex - create a single latex file with no include"
	.ascii	"/inputs\000"
	.align	2
.LC2:
	.ascii	"\012\011flatex [-v] [-x FileName] [files]\000"
	.align	2
.LC3:
	.ascii	"\011\011-v\011Verbose, display file structure.\000"
	.align	2
.LC4:
	.ascii	"\011\011-x\011Unflatex: extract files from archive\000"
	.align	2
.LC5:
	.ascii	"\011\011-q\011Quiet mode. Cleaner output but -x can"
	.ascii	" not be used.\000"
	.align	2
.LC6:
	.ascii	"\011\011-b\011Do not insert bibiliography file(.bbl"
	.ascii	")\000"
	.align	2
.LC7:
	.ascii	"\012Flatex page: http://www.math.tau.ac.il/~sariel/"
	.ascii	"flatex.html\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	printHelp, %function
printHelp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L7
	bl	puts
	ldr	r0, .L7+4
	bl	puts
	ldr	r0, .L7+8
	bl	puts
	ldr	r0, .L7+12
	bl	puts
	ldr	r0, .L7+16
	bl	puts
	ldr	r0, .L7+20
	bl	puts
	ldr	r0, .L7+24
	bl	puts
	mov	r0, #10
	bl	putchar
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	printHelp, .-printHelp
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Not enough memory\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	myMalloc, %function
myMalloc:
	@ 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	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L12+4
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L10:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	stderr
	.word	.LC8
	.size	myMalloc, .-myMalloc
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\\input\000"
	.align	2
.LC10:
	.ascii	"\\include\000"
	.align	2
.LC11:
	.ascii	"ERROR: Expected brace not found.\012\012\011line:%s"
	.ascii	"\012\000"
	.align	2
.LC12:
	.ascii	".tex\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handleIncludeCommand, %function
handleIncludeCommand:
	@ args = 4, 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]
	str	r3, [fp, #-36]
	mov	r3, #0
	strb	r3, [fp, #-18]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r2, #6
	ldr	r1, .L22
	ldr	r0, [fp, #-28]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-28]
	add	r3, r3, #6
	str	r3, [fp, #-16]
	mov	r3, #1
	strb	r3, [fp, #-18]
	b	.L16
.L15:
	mov	r2, #8
	ldr	r1, .L22+4
	ldr	r0, [fp, #-28]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	str	r3, [fp, #-16]
.L16:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	fputs
	ldr	r3, [fp, #-28]
	ldrb	r2, [fp, #-17]
	strb	r2, [r3]
	mov	r1, #125
	ldr	r0, [fp, #-16]
	bl	strchr
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #123
	bne	.L17
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L18
.L17:
	ldr	r3, .L22+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L22+12
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L18:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
	mov	r0, #1000
	bl	myMalloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strcpy
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
	ldr	r1, .L22+16
	ldr	r0, [fp, #-8]
	bl	replaceExt
.L19:
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	ldr	r3, [fp, #4]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	flatIt
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L20
.L21:
	ldr	r2, [fp, #-12]
	add	r3, r2, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r1, r3, #1
	str	r1, [fp, #-24]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L20:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC9
	.word	.LC10
	.word	stderr
	.word	.LC11
	.word	.LC12
	.size	handleIncludeCommand, .-handleIncludeCommand
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isBefore, %function
isBefore:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L25
	mov	r3, #1
	b	.L26
.L25:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L27
	mov	r3, #0
	b	.L26
.L27:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	cmp	r3, #0
	bge	.L28
	mov	r3, #1
	b	.L26
.L28:
	mov	r3, #0
.L26:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isBefore, .-isBefore
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fopenTex, %function
fopenTex:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-8]
	b	.L31
.L30:
	ldr	r1, .L32
	ldr	r0, [fp, #-16]
	bl	replaceExt
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC12
	.size	fopenTex, .-fopenTex
	.section	.rodata
	.align	2
.LC13:
	.ascii	"rt\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isTexFileExists, %function
isTexFileExists:
	@ 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	r1, .L37
	ldr	r0, [fp, #-16]
	bl	fopenTex
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L35
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #1
	b	.L36
.L35:
	mov	r3, #0
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC13
	.size	isTexFileExists, .-isTexFileExists
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	addTexExt, %function
addTexExt:
	@ 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	r1, .L42
	ldr	r0, [fp, #-16]
	bl	fopenTex
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L41
	ldr	r0, [fp, #-8]
	bl	fclose
.L41:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC13
	.size	addTexExt, .-addTexExt
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_str_prefix, %function
is_str_prefix:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L46
.L45:
	mov	r3, #0
	b	.L47
.L46:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_str_prefix, .-is_str_prefix
	.section	.rodata
	.align	2
.LC14:
	.ascii	"%%%cflatex input: [%s]\012\000"
	.align	2
.LC15:
	.ascii	"Unable to open file: %s\012\000"
	.align	2
.LC16:
	.ascii	"\\bibliography\000"
	.align	2
.LC17:
	.ascii	"\\bibliographystyle\000"
	.align	2
.LC18:
	.ascii	"%\000"
	.align	2
.LC19:
	.ascii	"%FLATEX-REM:\000"
	.align	2
.LC20:
	.ascii	".bbl\000"
	.align	2
.LC21:
	.ascii	"(Bibiliography)\000"
	.align	2
.LC22:
	.ascii	"\\includeversion\000"
	.align	2
.LC23:
	.ascii	"\\includegraphics\000"
	.align	2
.LC24:
	.ascii	"\\includeonly\000"
	.align	2
.LC25:
	.ascii	"WARNING: \"\\includeonly\" command ignored\012\000"
	.align	2
.LC26:
	.ascii	"\012Warning: include-like(?) command ignored at lin"
	.ascii	"e:\012\011%s\000"
	.align	2
.LC27:
	.ascii	"\\newcommand\000"
	.align	2
.LC28:
	.ascii	"%% flatex input end: [%s]\012\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flatIt, %function
flatIt:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	str	r2, [fp, #-176]
	str	r3, [fp, #-180]
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #108
	ldr	r1, [fp, #-172]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #108
	mov	r0, r3
	bl	addTexExt
	ldr	r3, [fp, #-180]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-180]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	ble	.L50
	mov	r2, #42
	b	.L51
.L50:
	mov	r2, #32
.L51:
	sub	r3, fp, #108
	ldr	r1, .L78+4
	ldr	r0, [fp, #-168]
	bl	fprintf
.L49:
	ldr	r3, [fp, #-180]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L52
	mov	r0, #9
	bl	putchar
	ldr	r0, [fp, #-176]
	bl	spacesByLevel
	sub	r3, fp, #108
	mov	r0, r3
	bl	puts
.L52:
	mov	r0, #1000
	bl	myMalloc
	str	r0, [fp, #-152]
	mov	r0, #1000
	bl	myMalloc
	str	r0, [fp, #-148]
	mov	r0, #1000
	bl	myMalloc
	str	r0, [fp, #-144]
	sub	r3, fp, #108
	ldr	r1, .L78+8
	mov	r0, r3
	bl	fopenTex
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bne	.L53
	ldr	r3, .L78+12
	ldr	r3, [r3]
	sub	r2, fp, #108
	ldr	r1, .L78+16
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L53:
	ldr	r3, [fp, #-144]
	mov	r2, #0
	strb	r2, [r3]
	b	.L54
.L73:
	ldr	r2, [fp, #-140]
	mov	r1, #1000
	ldr	r0, [fp, #-152]
	bl	fgets
	str	r0, [fp, #-136]
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	beq	.L76
	mov	r3, #0
	strb	r3, [fp, #-161]
	ldr	r1, [fp, #-152]
	ldr	r0, [fp, #-148]
	bl	strcpy
	mov	r1, #37
	ldr	r0, [fp, #-152]
	bl	strchr
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L71
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-144]
	bl	strcpy
	ldr	r3, [fp, #-132]
	mov	r2, #0
	strb	r2, [r3]
.L71:
	mov	r3, #0
	strb	r3, [fp, #-163]
	ldr	r1, .L78+20
	ldr	r0, [fp, #-152]
	bl	strstr
	str	r0, [fp, #-128]
	ldr	r1, .L78+24
	ldr	r0, [fp, #-152]
	bl	strstr
	str	r0, [fp, #-124]
	ldr	r1, .L78+28
	ldr	r0, [fp, #-152]
	bl	strstr
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-180]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L58
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L58
.L59:
	mov	r0, #1000
	bl	myMalloc
	str	r0, [fp, #-116]
	ldr	r1, [fp, #-148]
	ldr	r0, [fp, #-116]
	bl	strcpy
	ldr	r3, [fp, #-180]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L60
	ldr	r3, .L78+32
	b	.L61
.L60:
	ldr	r3, .L78+36
.L61:
	mov	r1, r3
	ldr	r0, [fp, #-148]
	bl	strcpy
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-148]
	bl	strcat
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L77
	ldr	r3, [fp, #-180]
	add	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	strcpy
	ldr	r1, .L78+40
	ldr	r0, [fp, #-116]
	bl	replaceExt
	ldr	r3, [fp, #-180]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-180]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-176]
	add	r2, r3, #1
	ldr	r3, [fp, #-180]
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-168]
	bl	flatIt
	ldr	r3, [fp, #-180]
	ldr	r3, [r3, #4]
	sub	r2, r3, #1
	ldr	r3, [fp, #-180]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-180]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L77
	mov	r0, #9
	bl	putchar
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	mov	r0, r3
	bl	spacesByLevel
	ldr	r0, .L78+44
	bl	puts
	b	.L77
.L58:
	ldr	r3, [fp, #-152]
	str	r3, [fp, #-156]
.L68:
	mov	r3, #0
	strb	r3, [fp, #-162]
	ldr	r1, .L78+48
	ldr	r0, [fp, #-156]
	bl	strstr
	str	r0, [fp, #-160]
	ldr	r1, .L78+52
	ldr	r0, [fp, #-160]
	bl	is_str_prefix
	mov	r3, r0
	cmp	r3, #0
	bne	.L64
	ldr	r1, .L78+56
	ldr	r0, [fp, #-160]
	bl	is_str_prefix
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
.L64:
	mov	r3, #1
	strb	r3, [fp, #-162]
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-156]
	b	.L66
.L65:
	ldr	r1, .L78+60
	ldr	r0, [fp, #-160]
	bl	is_str_prefix
	mov	r3, r0
	cmp	r3, #0
	beq	.L67
	ldr	r3, .L78+12
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L78+64
	bl	fwrite
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-156]
	mov	r3, #1
	strb	r3, [fp, #-162]
	b	.L66
.L67:
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L66
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-160]
	add	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L66
	ldr	r3, .L78+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-148]
	ldr	r1, .L78+68
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-156]
	mov	r3, #1
	strb	r3, [fp, #-162]
	nop
.L66:
	ldrb	r3, [fp, #-162]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L68
	ldr	r1, [fp, #-160]
	ldr	r0, [fp, #-128]
	bl	isBefore
	mov	r3, r0
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-160]
.L69:
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L70
	ldr	r1, .L78+72
	ldr	r0, [fp, #-152]
	bl	strstr
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L70
	ldr	r3, [fp, #-180]
	str	r3, [sp]
	ldr	r3, [fp, #-176]
	ldr	r2, [fp, #-168]
	ldr	r1, [fp, #-160]
	ldr	r0, [fp, #-152]
	bl	handleIncludeCommand
	mov	r3, #1
	strb	r3, [fp, #-163]
	mov	r3, #1
	strb	r3, [fp, #-161]
.L70:
	ldrb	r3, [fp, #-163]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L71
	b	.L63
.L77:
	nop
.L63:
	ldrb	r3, [fp, #-161]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L72
	ldr	r1, [fp, #-144]
	ldr	r0, [fp, #-152]
	bl	strcat
	ldr	r1, [fp, #-168]
	ldr	r0, [fp, #-152]
	bl	fputs
	b	.L54
.L72:
	ldr	r1, [fp, #-168]
	ldr	r0, [fp, #-148]
	bl	fputs
.L54:
	ldr	r0, [fp, #-140]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	b	.L56
.L76:
	nop
.L56:
	ldr	r0, [fp, #-140]
	bl	fclose
	ldr	r1, [fp, #-168]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-180]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L74
	sub	r3, fp, #108
	mov	r2, r3
	ldr	r1, .L78+76
	ldr	r0, [fp, #-168]
	bl	fprintf
.L74:
	ldr	r0, [fp, #-152]
	bl	free
	ldr	r0, [fp, #-148]
	bl	free
	ldr	r0, [fp, #-144]
	bl	free
	nop
	ldr	r3, .L78
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L75
	bl	__stack_chk_fail
.L75:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC29
	.word	.LC14
	.word	.LC13
	.word	stderr
	.word	.LC15
	.word	.LC9
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC10
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.size	flatIt, .-flatIt
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	replaceExt, %function
replaceExt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L81
.L83:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L81:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L82
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L82
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	beq	.L82
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L83
.L82:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L84
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L84
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L84:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strcat
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	replaceExt, .-replaceExt
	.section	.rodata
	.align	2
.LC30:
	.ascii	"Error encountered in line: [%s]\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	strCmpPrefixAndCopy, %function
strCmpPrefixAndCopy:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strstr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L86
	mov	r3, #0
	b	.L87
.L86:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	strcpy
	mov	r1, #93
	ldr	r0, [fp, #-24]
	bl	strchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L88
	ldr	r3, .L89
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L89+4
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L88:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #1
.L87:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	stderr
	.word	.LC30
	.size	strCmpPrefixAndCopy, .-strCmpPrefixAndCopy
	.section	.rodata
	.align	2
.LC31:
	.ascii	"Scanning for flatex archive start...\000"
	.align	2
.LC32:
	.ascii	"wt\000"
	.align	2
.LC33:
	.ascii	"Unable to open file: %s\000"
	.align	2
.LC34:
	.ascii	"[%s]\012\000"
	.align	2
.LC35:
	.ascii	"% flatex input end: [\000"
	.align	2
.LC36:
	.ascii	"Something is wrong!!!!\012\000"
	.align	2
.LC37:
	.ascii	"% flatex input: [\000"
	.align	2
.LC38:
	.ascii	"\\input{%s}\012\000"
	.align	2
.LC39:
	.ascii	"%*flatex input: [\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeFile, %function
writeFile:
	@ args = 0, pretend = 0, frame = 2032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2032
	str	r0, [fp, #-2024]
	str	r1, [fp, #-2028]
	str	r2, [fp, #-2032]
	ldr	r3, .L109
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-1008]
	ldr	r3, [fp, #-2028]
	cmp	r3, #0
	bne	.L92
	mov	r3, #0
	str	r3, [fp, #-2016]
	ldr	r0, .L109+4
	bl	puts
	b	.L103
.L92:
	ldr	r1, .L109+8
	ldr	r0, [fp, #-2028]
	bl	fopen
	str	r0, [fp, #-2016]
	ldr	r3, [fp, #-2016]
	cmp	r3, #0
	bne	.L94
	ldr	r3, .L109+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-2028]
	ldr	r1, .L109+16
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L94:
	ldr	r0, [fp, #-2032]
	bl	spacesByLevel
	ldr	r1, [fp, #-2028]
	ldr	r0, .L109+20
	bl	printf
.L103:
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2024]
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-2012]
	ldr	r3, [fp, #-2012]
	cmp	r3, #0
	beq	.L106
	sub	r2, fp, #1008
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L109+24
	mov	r0, r3
	bl	strCmpPrefixAndCopy
	mov	r3, r0
	strb	r3, [fp, #-2017]
	ldrb	r3, [fp, #-2017]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L97
	ldr	r3, [fp, #-2016]
	cmp	r3, #0
	bne	.L107
	ldr	r3, .L109+12
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L109+28
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L97:
	sub	r2, fp, #1008
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L109+32
	mov	r0, r3
	bl	strCmpPrefixAndCopy
	mov	r3, r0
	strb	r3, [fp, #-2017]
	ldrb	r3, [fp, #-2017]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L99
	ldr	r3, [fp, #-2032]
	add	r2, r3, #1
	sub	r3, fp, #1008
	mov	r1, r3
	ldr	r0, [fp, #-2024]
	bl	writeFile
	ldr	r3, [fp, #-2016]
	cmp	r3, #0
	beq	.L100
	sub	r3, fp, #1008
	mov	r2, r3
	ldr	r1, .L109+36
	ldr	r0, [fp, #-2016]
	bl	fprintf
	b	.L100
.L99:
	sub	r2, fp, #1008
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L109+40
	mov	r0, r3
	bl	strCmpPrefixAndCopy
	mov	r3, r0
	strb	r3, [fp, #-2017]
	ldrb	r3, [fp, #-2017]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L101
	ldr	r3, [fp, #-2032]
	add	r2, r3, #1
	sub	r3, fp, #1008
	mov	r1, r3
	ldr	r0, [fp, #-2024]
	bl	writeFile
	b	.L100
.L101:
	ldr	r3, [fp, #-2016]
	cmp	r3, #0
	beq	.L100
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #12
	ldr	r1, .L109+44
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L102
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #12
	ldr	r1, [fp, #-2016]
	mov	r0, r3
	bl	fputs
	b	.L100
.L102:
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-2016]
	mov	r0, r3
	bl	fputs
.L100:
	ldr	r0, [fp, #-2024]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L103
	b	.L96
.L106:
	nop
	b	.L96
.L107:
	nop
.L96:
	ldr	r3, [fp, #-2016]
	cmp	r3, #0
	beq	.L108
	ldr	r0, [fp, #-2016]
	bl	fclose
.L108:
	nop
	ldr	r3, .L109
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L105
	bl	__stack_chk_fail
.L105:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L110:
	.align	2
.L109:
	.word	.LC40
	.word	.LC31
	.word	.LC32
	.word	stderr
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC19
	.size	writeFile, .-writeFile
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flatOutFile, %function
flatOutFile:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, .L113
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L112
	ldr	r3, .L113+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L113+8
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L112:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	writeFile
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L114:
	.align	2
.L113:
	.word	.LC13
	.word	stderr
	.word	.LC33
	.size	flatOutFile, .-flatOutFile
	.section	.rodata
	.align	2
.LC41:
	.ascii	"--Unable to open file: [%s]\012\000"
	.align	2
.LC42:
	.ascii	"input file: [%s]\012\000"
	.align	2
.LC43:
	.ascii	".flt\000"
	.align	2
.LC44:
	.ascii	"\012\011File: \"%s\" generated\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flatFile, %function
flatFile:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r0, #1000
	bl	myMalloc
	str	r0, [fp, #-20]
	mov	r0, #1000
	bl	myMalloc
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	strcpy
	ldr	r0, [fp, #-20]
	bl	isTexFileExists
	mov	r3, r0
	cmp	r3, #0
	bne	.L116
	ldr	r3, .L120
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L120+4
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L116:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L117
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L118
	ldr	r3, [fp, #-12]
	sub	r3, r3, #4
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r1, .L120+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L118
.L117:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, .L120+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
.L118:
	ldr	r1, [fp, #-20]
	ldr	r0, .L120+12
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strcpy
	ldr	r1, .L120+16
	ldr	r0, [fp, #-16]
	bl	replaceExt
	ldr	r1, .L120+20
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L119
	ldr	r3, .L120
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L120+24
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L119:
	ldr	r3, [fp, #-28]
	mov	r2, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	flatIt
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r1, [fp, #-16]
	ldr	r0, .L120+28
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L121:
	.align	2
.L120:
	.word	stderr
	.word	.LC41
	.word	.LC12
	.word	.LC42
	.word	.LC43
	.word	.LC32
	.word	.LC33
	.word	.LC44
	.size	flatFile, .-flatFile
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isFlag, %function
isFlag:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L123
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L124
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r4, r3
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	cmp	r4, r3
	bne	.L123
.L124:
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L123
	mov	r3, #1
	b	.L125
.L123:
	mov	r3, #0
.L125:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	isFlag, .-isFlag
	.section	.rodata
	.align	2
.LC45:
	.ascii	"FLATEX  1.21, 1994, 1996, by Sariel Har-Peled.\012\000"
	.align	2
.LC46:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	str	r0, [fp, #-1024]
	str	r1, [fp, #-1028]
	ldr	r3, .L137
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L137+4
	bl	puts
	ldr	r3, [fp, #-1024]
	cmp	r3, #1
	bne	.L127
	bl	printHelp
.L127:
	mov	r3, #0
	strb	r3, [fp, #-1016]
	mov	r3, #1
	strb	r3, [fp, #-1015]
	mov	r3, #0
	str	r3, [fp, #-1012]
	mov	r3, #0
	strb	r3, [fp, #-1008]
	mov	r3, #0
	strb	r3, [fp, #-1014]
	mov	r3, #1
	str	r3, [fp, #-1020]
	b	.L128
.L134:
	ldr	r3, [fp, #-1020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1028]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #118
	mov	r0, r3
	bl	isFlag
	mov	r3, r0
	cmp	r3, #0
	beq	.L129
	mov	r3, #1
	strb	r3, [fp, #-1016]
	b	.L130
.L129:
	ldr	r3, [fp, #-1020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1028]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #98
	mov	r0, r3
	bl	isFlag
	mov	r3, r0
	cmp	r3, #0
	beq	.L131
	mov	r3, #0
	strb	r3, [fp, #-1015]
	b	.L130
.L131:
	ldr	r3, [fp, #-1020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1028]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #113
	mov	r0, r3
	bl	isFlag
	mov	r3, r0
	cmp	r3, #0
	beq	.L132
	mov	r3, #1
	strb	r3, [fp, #-1014]
	b	.L130
.L132:
	ldr	r3, [fp, #-1020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1028]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #120
	mov	r0, r3
	bl	isFlag
	mov	r3, r0
	cmp	r3, #0
	beq	.L133
	ldr	r3, [fp, #-1020]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1028]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #1016
	mov	r1, r2
	mov	r0, r3
	bl	flatOutFile
	ldr	r3, [fp, #-1020]
	add	r3, r3, #1
	str	r3, [fp, #-1020]
	b	.L130
.L133:
	ldr	r3, [fp, #-1020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1028]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #1016
	mov	r1, r2
	mov	r0, r3
	bl	flatFile
.L130:
	ldr	r3, [fp, #-1020]
	add	r3, r3, #1
	str	r3, [fp, #-1020]
.L128:
	ldr	r2, [fp, #-1020]
	ldr	r3, [fp, #-1024]
	cmp	r2, r3
	blt	.L134
	mov	r3, #0
	ldr	r2, .L137
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L136
	bl	__stack_chk_fail
.L136:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L138:
	.align	2
.L137:
	.word	.LC46
	.word	.LC45
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
