	.file	"492670.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\n'########:::::'###::::'########:"
	.align 8
.LC1:
	.string	" ##.... ##:::'## ##:::... ##..::"
	.align 8
.LC2:
	.string	" ##:::: ##::'##:. ##::::: ##::::"
	.align 8
.LC3:
	.string	" ##:::: ##:'##:::. ##:::: ##::::"
	.align 8
.LC4:
	.string	" ##:::: ##: #########:::: ##::::"
	.align 8
.LC5:
	.string	" ##:::: ##: ##.... ##:::: ##::::"
	.align 8
.LC6:
	.string	" ########:: ##:::: ##:::: ##::::"
	.align 8
.LC7:
	.string	"........:::..:::::..:::::..:::::"
	.align 8
.LC8:
	.string	"'##::::'##::::'###:::::'######:::'####::'######::"
	.align 8
.LC9:
	.string	" ###::'###:::'## ##:::'##... ##::. ##::'##... ##:"
	.align 8
.LC10:
	.string	" ####'####::'##:. ##:: ##:::..:::: ##:: ##:::..::"
	.align 8
.LC11:
	.string	" ## ### ##:'##:::. ##: ##::'####:: ##:: ##:::::::"
	.align 8
.LC12:
	.string	" ##. #: ##: #########: ##::: ##::: ##:: ##:::::::"
	.align 8
.LC13:
	.string	" ##:.:: ##: ##.... ##: ##::: ##::: ##:: ##::: ##:"
	.align 8
.LC14:
	.string	" ##:::: ##: ##:::: ##:. ######:::'####:. ######::"
	.align 8
.LC15:
	.string	"..:::::..::..:::::..:::......::::....:::......:::"
	.text
	.globl	banner
	.type	banner, @function
banner:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	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
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	banner, .-banner
	.section	.rodata
.LC16:
	.string	"mame2003-plus.xml"
.LC17:
	.string	"r"
	.align 8
.LC18:
	.string	"\nTrying to open the DAT file:  %s\n"
	.align 8
.LC19:
	.string	"Could not open the DAT file:  Not found in directory.\n"
.LC20:
	.string	"w"
.LC21:
	.string	"datmagic.html"
.LC22:
	.string	"\nProcessing DAT now."
.LC23:
	.string	"<style type=\"text/css\">\n"
	.align 8
.LC24:
	.string	"\ttable, th, td {border: 1px solid black; border-collapse: collapse;}\n"
.LC25:
	.string	"\tth, td {padding: 5px;}\n"
.LC26:
	.string	"\tth {text-align: left;}\n"
.LC27:
	.string	"</style>\n\n"
.LC28:
	.string	"<h2>MAME 2003-Plus</h2>\n\n"
.LC29:
	.string	"<table style=\"width:100%\">\n"
	.align 8
.LC30:
	.string	"\t<tr style=\"background-color:lightgrey\">\n"
.LC31:
	.string	"\t\t<th>Roms</th>\n"
.LC32:
	.string	"\t\t<th>Driver status</th>\n"
.LC33:
	.string	"\t\t<th>Color</th>\n"
.LC34:
	.string	"\t\t<th>Sound</th>\n"
.LC35:
	.string	"\t\t<th>Samples</th>\n"
.LC36:
	.string	"\t\t<th>Bios</th>\n"
.LC37:
	.string	"\t</tr>\n"
.LC38:
	.string	"\t<tr>\n"
.LC39:
	.string	"\t\t<td>"
.LC40:
	.string	"</td>\n"
.LC41:
	.string	"good"
	.align 8
.LC42:
	.string	"\t\t<td style=\"background-color:lightgreen\">"
	.align 8
.LC43:
	.string	"\t\t<td style=\"background-color:pink\">"
.LC44:
	.string	"imperfect"
	.align 8
.LC45:
	.string	"\t\t<td style=\"background-color:lightyellow\">"
.LC46:
	.string	"0"
.LC47:
	.string	"\t\t<td>yes"
.LC48:
	.string	"Closing DAT file."
.LC49:
	.string	"</table>\n"
	.align 8
.LC50:
	.string	"\nRoms found and processed:  %i\n\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 448
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	banner
	lea	rax, .LC16[rip]
	mov	QWORD PTR -408[rbp], rax
	movabs	rax, 7020584489116067644
	mov	QWORD PTR -284[rbp], rax
	mov	DWORD PTR -276[rbp], 574449005
	mov	BYTE PTR -272[rbp], 0
	movabs	rax, 2334391211988710204
	mov	QWORD PTR -271[rbp], rax
	mov	DWORD PTR -263[rbp], 1701667182
	mov	WORD PTR -259[rbp], 8765
	mov	BYTE PTR -257[rbp], 0
	movabs	rax, 8387236820675027516
	movabs	rdx, 9637655044255264
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], rdx
	movabs	rax, 2338042715808359484
	movabs	rdx, 2467255119169811571
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], rdx
	mov	BYTE PTR -224[rbp], 0
	movabs	rax, 17562969016053564
	mov	QWORD PTR -319[rbp], rax
	movabs	rax, 7381229830700622195
	mov	QWORD PTR -295[rbp], rax
	mov	WORD PTR -287[rbp], 8765
	mov	BYTE PTR -285[rbp], 0
	movabs	rax, 9637710913105763
	mov	QWORD PTR -311[rbp], rax
	movabs	rax, 9637650767376243
	mov	QWORD PTR -303[rbp], rax
	mov	DWORD PTR -436[rbp], 0
	mov	DWORD PTR -432[rbp], 0
	mov	DWORD PTR -428[rbp], 0
	mov	DWORD PTR -424[rbp], 0
	mov	DWORD PTR -420[rbp], 0
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR -400[rbp], rax
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR -392[rbp], rax
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR -384[rbp], rax
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR -376[rbp], rax
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR -368[rbp], rax
	mov	edi, 2
	call	malloc@PLT
	mov	QWORD PTR -360[rbp], rax
	mov	rax, QWORD PTR -408[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -352[rbp], rax
	mov	rax, QWORD PTR -408[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -352[rbp], 0
	jne	.L3
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L33
.L3:
	lea	rsi, .LC20[rip]
	lea	rdi, .LC21[rip]
	call	fopen@PLT
	mov	QWORD PTR -344[rbp], rax
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 69
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC28[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC30[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC31[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC32[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC35[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC36[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC37[rip]
	call	fwrite@PLT
	jmp	.L5
.L32:
	mov	QWORD PTR -416[rbp], 0
	lea	rdx, -284[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	je	.L6
	mov	DWORD PTR -424[rbp], 1
	lea	rax, -284[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	QWORD PTR -336[rbp], rax
	mov	rax, QWORD PTR -336[rbp]
	mov	esi, 34
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -416[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR -416[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -416[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -416[rbp]
	mov	rax, QWORD PTR -400[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L7:
	lea	rdx, -295[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	je	.L8
	lea	rax, -295[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	QWORD PTR -336[rbp], rax
	mov	rax, QWORD PTR -336[rbp]
	mov	esi, 34
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -416[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR -416[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -416[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -428[rbp], 1
	mov	rdx, QWORD PTR -416[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L8:
	add	DWORD PTR -436[rbp], 1
	jmp	.L9
.L6:
	lea	rdx, -271[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	je	.L10
	cmp	DWORD PTR -432[rbp], 0
	jne	.L10
	mov	DWORD PTR -432[rbp], 1
	jmp	.L9
.L10:
	lea	rdx, -256[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	je	.L11
	cmp	DWORD PTR -420[rbp], 0
	jne	.L11
	mov	DWORD PTR -420[rbp], 1
	jmp	.L9
.L11:
	lea	rdx, -240[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	je	.L12
	lea	rax, -240[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	QWORD PTR -336[rbp], rax
	mov	rax, QWORD PTR -336[rbp]
	mov	esi, 34
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -416[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR -416[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -416[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -416[rbp]
	mov	rax, QWORD PTR -392[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L13:
	lea	rdx, -311[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	je	.L14
	lea	rax, -311[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	QWORD PTR -336[rbp], rax
	mov	rax, QWORD PTR -336[rbp]
	mov	esi, 34
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -416[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR -416[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -416[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -416[rbp]
	mov	rax, QWORD PTR -384[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L14:
	lea	rdx, -303[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	je	.L9
	lea	rax, -303[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	QWORD PTR -336[rbp], rax
	mov	rax, QWORD PTR -336[rbp]
	mov	esi, 34
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -416[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR -416[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -328[rbp]
	sub	rax, QWORD PTR -336[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -416[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -416[rbp]
	mov	rax, QWORD PTR -376[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L9
.L12:
	lea	rdx, -319[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	je	.L9
	cmp	DWORD PTR -432[rbp], 0
	je	.L15
	cmp	DWORD PTR -428[rbp], 0
	jne	.L15
	mov	rdx, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L16
.L15:
	cmp	DWORD PTR -432[rbp], 0
	jne	.L16
	cmp	DWORD PTR -428[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR -368[rbp]
	mov	WORD PTR [rax], 48
.L16:
	cmp	DWORD PTR -420[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -360[rbp]
	mov	WORD PTR [rax], 49
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -360[rbp]
	mov	WORD PTR [rax], 48
.L18:
	cmp	DWORD PTR -424[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC38[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC39[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -344[rbp]
	mov	rax, QWORD PTR -400[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -392[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC42[rip]
	call	fwrite@PLT
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC43[rip]
	call	fwrite@PLT
.L21:
	mov	rdx, QWORD PTR -344[rbp]
	mov	rax, QWORD PTR -392[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -384[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L22
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC42[rip]
	call	fwrite@PLT
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -384[rbp]
	lea	rsi, .LC44[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC45[rip]
	call	fwrite@PLT
	jmp	.L23
.L24:
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC43[rip]
	call	fwrite@PLT
.L23:
	mov	rdx, QWORD PTR -344[rbp]
	mov	rax, QWORD PTR -384[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -376[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L25
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC42[rip]
	call	fwrite@PLT
	jmp	.L26
.L25:
	mov	rax, QWORD PTR -376[rbp]
	lea	rsi, .LC44[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC45[rip]
	call	fwrite@PLT
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC43[rip]
	call	fwrite@PLT
.L26:
	mov	rdx, QWORD PTR -344[rbp]
	mov	rax, QWORD PTR -376[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -368[rbp]
	lea	rsi, .LC46[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L28
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC39[rip]
	call	fwrite@PLT
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC39[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -344[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L29:
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC46[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L30
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC39[rip]
	call	fwrite@PLT
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC47[rip]
	call	fwrite@PLT
.L31:
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC37[rip]
	call	fwrite@PLT
.L19:
	mov	DWORD PTR -432[rbp], 0
	mov	DWORD PTR -428[rbp], 0
	mov	DWORD PTR -424[rbp], 0
	mov	DWORD PTR -420[rbp], 0
.L9:
	mov	rax, QWORD PTR -416[rbp]
	mov	rdi, rax
	call	free@PLT
.L5:
	mov	rdx, QWORD PTR -352[rbp]
	lea	rax, -208[rbp]
	mov	esi, 200
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L32
	mov	rax, QWORD PTR -400[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -392[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -384[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -368[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -360[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC48[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC49[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -436[rbp]
	mov	esi, eax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	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	"492670.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012'########:::::'###::::'########:\000"
	.align	2
.LC1:
	.ascii	" ##.... ##:::'## ##:::... ##..::\000"
	.align	2
.LC2:
	.ascii	" ##:::: ##::'##:. ##::::: ##::::\000"
	.align	2
.LC3:
	.ascii	" ##:::: ##:'##:::. ##:::: ##::::\000"
	.align	2
.LC4:
	.ascii	" ##:::: ##: #########:::: ##::::\000"
	.align	2
.LC5:
	.ascii	" ##:::: ##: ##.... ##:::: ##::::\000"
	.align	2
.LC6:
	.ascii	" ########:: ##:::: ##:::: ##::::\000"
	.align	2
.LC7:
	.ascii	"........:::..:::::..:::::..:::::\000"
	.align	2
.LC8:
	.ascii	"'##::::'##::::'###:::::'######:::'####::'######::\000"
	.align	2
.LC9:
	.ascii	" ###::'###:::'## ##:::'##... ##::. ##::'##... ##:\000"
	.align	2
.LC10:
	.ascii	" ####'####::'##:. ##:: ##:::..:::: ##:: ##:::..::\000"
	.align	2
.LC11:
	.ascii	" ## ### ##:'##:::. ##: ##::'####:: ##:: ##:::::::\000"
	.align	2
.LC12:
	.ascii	" ##. #: ##: #########: ##::: ##::: ##:: ##:::::::\000"
	.align	2
.LC13:
	.ascii	" ##:.:: ##: ##.... ##: ##::: ##::: ##:: ##::: ##:\000"
	.align	2
.LC14:
	.ascii	" ##:::: ##: ##:::: ##:. ######:::'####:. ######::\000"
	.align	2
.LC15:
	.ascii	"..:::::..::..:::::..:::......::::....:::......:::\000"
	.text
	.align	2
	.global	banner
	.syntax unified
	.arm
	.fpu softvfp
	.type	banner, %function
banner:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	ldr	r0, .L2+4
	bl	puts
	ldr	r0, .L2+8
	bl	puts
	ldr	r0, .L2+12
	bl	puts
	ldr	r0, .L2+16
	bl	puts
	ldr	r0, .L2+20
	bl	puts
	ldr	r0, .L2+24
	bl	puts
	ldr	r0, .L2+28
	bl	puts
	ldr	r0, .L2+32
	bl	puts
	ldr	r0, .L2+36
	bl	puts
	ldr	r0, .L2+40
	bl	puts
	ldr	r0, .L2+44
	bl	puts
	ldr	r0, .L2+48
	bl	puts
	ldr	r0, .L2+52
	bl	puts
	ldr	r0, .L2+56
	bl	puts
	ldr	r0, .L2+60
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	banner, .-banner
	.section	.rodata
	.align	2
.LC16:
	.ascii	"mame2003-plus.xml\000"
	.align	2
.LC25:
	.ascii	"r\000"
	.align	2
.LC26:
	.ascii	"\012Trying to open the DAT file:  %s\012\000"
	.align	2
.LC27:
	.ascii	"Could not open the DAT file:  Not found in director"
	.ascii	"y.\012\000"
	.align	2
.LC28:
	.ascii	"w\000"
	.align	2
.LC29:
	.ascii	"datmagic.html\000"
	.align	2
.LC30:
	.ascii	"\012Processing DAT now.\000"
	.align	2
.LC31:
	.ascii	"<style type=\"text/css\">\012\000"
	.align	2
.LC32:
	.ascii	"\011table, th, td {border: 1px solid black; border-"
	.ascii	"collapse: collapse;}\012\000"
	.align	2
.LC33:
	.ascii	"\011th, td {padding: 5px;}\012\000"
	.align	2
.LC34:
	.ascii	"\011th {text-align: left;}\012\000"
	.align	2
.LC35:
	.ascii	"</style>\012\012\000"
	.align	2
.LC36:
	.ascii	"<h2>MAME 2003-Plus</h2>\012\012\000"
	.align	2
.LC37:
	.ascii	"<table style=\"width:100%\">\012\000"
	.align	2
.LC38:
	.ascii	"\011<tr style=\"background-color:lightgrey\">\012\000"
	.align	2
.LC39:
	.ascii	"\011\011<th>Roms</th>\012\000"
	.align	2
.LC40:
	.ascii	"\011\011<th>Driver status</th>\012\000"
	.align	2
.LC41:
	.ascii	"\011\011<th>Color</th>\012\000"
	.align	2
.LC42:
	.ascii	"\011\011<th>Sound</th>\012\000"
	.align	2
.LC43:
	.ascii	"\011\011<th>Samples</th>\012\000"
	.align	2
.LC44:
	.ascii	"\011\011<th>Bios</th>\012\000"
	.align	2
.LC45:
	.ascii	"\011</tr>\012\000"
	.align	2
.LC46:
	.ascii	"0\000"
	.align	2
.LC47:
	.ascii	"1\000"
	.align	2
.LC48:
	.ascii	"\011<tr>\012\000"
	.align	2
.LC49:
	.ascii	"\011\011<td>\000"
	.align	2
.LC50:
	.ascii	"</td>\012\000"
	.align	2
.LC51:
	.ascii	"good\000"
	.align	2
.LC52:
	.ascii	"\011\011<td style=\"background-color:lightgreen\">\000"
	.align	2
.LC53:
	.ascii	"\011\011<td style=\"background-color:pink\">\000"
	.align	2
.LC54:
	.ascii	"imperfect\000"
	.align	2
.LC55:
	.ascii	"\011\011<td style=\"background-color:lightyellow\">"
	.ascii	"\000"
	.align	2
.LC56:
	.ascii	"\011\011<td>yes\000"
	.align	2
.LC57:
	.ascii	"Closing DAT file.\000"
	.align	2
.LC58:
	.ascii	"</table>\012\000"
	.align	2
.LC59:
	.ascii	"\012Roms found and processed:  %i\012\012\000"
	.align	2
.LC17:
	.ascii	"<game name=\"\000"
	.align	2
.LC18:
	.ascii	"<sample name=\"\000"
	.align	2
.LC19:
	.ascii	"<biosset name=\"\000"
	.align	2
.LC20:
	.ascii	"<driver status=\"\000"
	.align	2
.LC21:
	.ascii	"</game>\000"
	.align	2
.LC22:
	.ascii	"sampleof=\"\000"
	.align	2
.LC23:
	.ascii	"color=\"\000"
	.align	2
.LC24:
	.ascii	"sound=\"\000"
	.align	2
.LC60:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 376
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #376
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	banner
	ldr	r3, .L37+4
	str	r3, [fp, #-356]
	ldr	r3, .L37+8
	sub	ip, fp, #276
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	ldr	r3, .L37+12
	sub	ip, fp, #260
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	ldr	r3, .L37+16
	sub	ip, fp, #244
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L37+20
	sub	ip, fp, #228
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strb	r3, [ip]
	ldr	r2, .L37+24
	sub	r3, fp, #312
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r2, .L37+28
	sub	r3, fp, #288
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	ldr	r2, .L37+32
	sub	r3, fp, #304
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r2, .L37+36
	sub	r3, fp, #296
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mov	r3, #0
	str	r3, [fp, #-380]
	mov	r3, #0
	str	r3, [fp, #-376]
	mov	r3, #0
	str	r3, [fp, #-372]
	mov	r3, #0
	str	r3, [fp, #-368]
	mov	r3, #0
	str	r3, [fp, #-364]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-352]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-348]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-344]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-340]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-336]
	mov	r0, #2
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-332]
	ldr	r1, .L37+40
	ldr	r0, [fp, #-356]
	bl	fopen
	str	r0, [fp, #-328]
	ldr	r1, [fp, #-356]
	ldr	r0, .L37+44
	bl	printf
	ldr	r3, [fp, #-328]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L37+48
	bl	puts
	mov	r3, #1
	b	.L35
.L5:
	ldr	r1, .L37+52
	ldr	r0, .L37+56
	bl	fopen
	str	r0, [fp, #-324]
	ldr	r0, .L37+60
	bl	puts
	ldr	r3, [fp, #-324]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L37+64
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #69
	mov	r1, #1
	ldr	r0, .L37+68
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L37+72
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L37+76
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L37+80
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L37+84
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L37+88
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L37+92
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L37+96
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L37+100
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L37+104
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L37+108
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L37+112
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L37+116
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L37+120
	bl	fwrite
	b	.L7
.L34:
	mov	r3, #0
	str	r3, [fp, #-360]
	sub	r2, fp, #276
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	beq	.L8
	mov	r3, #1
	str	r3, [fp, #-368]
	sub	r3, fp, #276
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-320]
	add	r3, r3, r2
	str	r3, [fp, #-320]
	mov	r1, #34
	ldr	r0, [fp, #-320]
	bl	strchr
	str	r0, [fp, #-316]
	ldr	r3, [fp, #-316]
	cmp	r3, #0
	beq	.L9
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-360]
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-320]
	ldr	r0, [fp, #-360]
	bl	memcpy
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-360]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-360]
	ldr	r0, [fp, #-352]
	bl	strcpy
.L9:
	sub	r2, fp, #288
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	beq	.L10
	sub	r3, fp, #288
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-320]
	add	r3, r3, r2
	str	r3, [fp, #-320]
	mov	r1, #34
	ldr	r0, [fp, #-320]
	bl	strchr
	str	r0, [fp, #-316]
	ldr	r3, [fp, #-316]
	cmp	r3, #0
	beq	.L10
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-360]
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-320]
	ldr	r0, [fp, #-360]
	bl	memcpy
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-360]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-372]
	ldr	r1, [fp, #-360]
	ldr	r0, [fp, #-336]
	bl	strcpy
.L10:
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
	b	.L11
.L8:
	sub	r2, fp, #260
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bne	.L12
	mov	r3, #1
	str	r3, [fp, #-376]
	b	.L11
.L12:
	sub	r2, fp, #244
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	bne	.L13
	mov	r3, #1
	str	r3, [fp, #-364]
	b	.L11
.L13:
	sub	r2, fp, #228
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #228
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-320]
	add	r3, r3, r2
	str	r3, [fp, #-320]
	mov	r1, #34
	ldr	r0, [fp, #-320]
	bl	strchr
	str	r0, [fp, #-316]
	ldr	r3, [fp, #-316]
	cmp	r3, #0
	beq	.L15
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-360]
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-320]
	ldr	r0, [fp, #-360]
	bl	memcpy
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-360]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-360]
	ldr	r0, [fp, #-348]
	bl	strcpy
.L15:
	sub	r2, fp, #304
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #304
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-320]
	add	r3, r3, r2
	str	r3, [fp, #-320]
	mov	r1, #34
	ldr	r0, [fp, #-320]
	bl	strchr
	str	r0, [fp, #-316]
	ldr	r3, [fp, #-316]
	cmp	r3, #0
	beq	.L16
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-360]
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-320]
	ldr	r0, [fp, #-360]
	bl	memcpy
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-360]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-360]
	ldr	r0, [fp, #-344]
	bl	strcpy
.L16:
	sub	r2, fp, #296
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #296
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-320]
	add	r3, r3, r2
	str	r3, [fp, #-320]
	mov	r1, #34
	ldr	r0, [fp, #-320]
	bl	strchr
	str	r0, [fp, #-316]
	ldr	r3, [fp, #-316]
	cmp	r3, #0
	beq	.L11
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-360]
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-320]
	ldr	r0, [fp, #-360]
	bl	memcpy
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-320]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-360]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-360]
	ldr	r0, [fp, #-340]
	bl	strcpy
	b	.L11
.L14:
	sub	r2, fp, #312
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	bne	.L17
	ldr	r1, [fp, #-352]
	ldr	r0, [fp, #-336]
	bl	strcpy
	b	.L18
.L17:
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-336]
	ldr	r2, .L37+124
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L18:
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-332]
	ldr	r2, .L37+128
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	b	.L20
.L19:
	ldr	r3, [fp, #-332]
	ldr	r2, .L37+124
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L20:
	ldr	r3, [fp, #-368]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-324]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L37+132
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L37+136
	bl	fwrite
	ldr	r1, [fp, #-324]
	ldr	r0, [fp, #-352]
	bl	fputs
	ldr	r3, [fp, #-324]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L37+140
	bl	fwrite
	ldr	r1, .L37+144
	ldr	r0, [fp, #-348]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-324]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L37+148
	bl	fwrite
	b	.L23
.L22:
	ldr	r3, [fp, #-324]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L37+152
	bl	fwrite
.L23:
	ldr	r1, [fp, #-324]
	ldr	r0, [fp, #-348]
	bl	fputs
	ldr	r3, [fp, #-324]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L37+140
	bl	fwrite
	ldr	r1, .L37+144
	ldr	r0, [fp, #-344]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-324]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L37+148
	bl	fwrite
	b	.L25
.L24:
	ldr	r1, .L37+156
	ldr	r0, [fp, #-344]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-324]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L37+160
	bl	fwrite
	b	.L25
.L26:
	ldr	r3, [fp, #-324]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L37+152
	bl	fwrite
.L25:
	ldr	r1, [fp, #-324]
	ldr	r0, [fp, #-344]
	bl	fputs
	ldr	r3, [fp, #-324]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L37+140
	bl	fwrite
	ldr	r1, .L37+144
	ldr	r0, [fp, #-340]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-324]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L37+148
	bl	fwrite
	b	.L28
.L27:
	ldr	r1, .L37+156
	ldr	r0, [fp, #-340]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-324]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L37+160
	bl	fwrite
	b	.L28
.L29:
	ldr	r3, [fp, #-324]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L37+152
	bl	fwrite
.L28:
	ldr	r1, [fp, #-324]
	ldr	r0, [fp, #-340]
	bl	fputs
	ldr	r3, [fp, #-324]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L37+140
	bl	fwrite
	ldr	r1, .L37+124
	ldr	r0, [fp, #-336]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-324]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L37+136
	bl	fwrite
	b	.L31
.L30:
	ldr	r3, [fp, #-324]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L37+136
	bl	fwrite
	ldr	r1, [fp, #-324]
	ldr	r0, [fp, #-336]
	bl	fputs
.L31:
	ldr	r3, [fp, #-324]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L37+140
	bl	fwrite
	ldr	r1, .L37+124
	ldr	r0, [fp, #-332]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-324]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L37+136
	bl	fwrite
	b	.L33
.L32:
	ldr	r3, [fp, #-324]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L37+164
	bl	fwrite
.L33:
	ldr	r3, [fp, #-324]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L37+140
	bl	fwrite
	ldr	r3, [fp, #-324]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L37+120
	bl	fwrite
.L21:
	mov	r3, #0
	str	r3, [fp, #-376]
	mov	r3, #0
	str	r3, [fp, #-372]
	mov	r3, #0
	str	r3, [fp, #-368]
	mov	r3, #0
	str	r3, [fp, #-364]
.L11:
	ldr	r0, [fp, #-360]
	bl	free
.L7:
	sub	r3, fp, #208
	ldr	r2, [fp, #-328]
	mov	r1, #200
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	ldr	r0, [fp, #-352]
	bl	free
	ldr	r0, [fp, #-348]
	bl	free
	ldr	r0, [fp, #-344]
	bl	free
	ldr	r0, [fp, #-340]
	bl	free
	ldr	r0, [fp, #-336]
	bl	free
	ldr	r0, [fp, #-332]
	bl	free
	ldr	r0, .L37+168
	bl	puts
	ldr	r3, [fp, #-324]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L37+172
	bl	fwrite
	ldr	r0, [fp, #-328]
	bl	fclose
	ldr	r0, [fp, #-324]
	bl	fclose
	ldr	r1, [fp, #-380]
	ldr	r0, .L37+176
	bl	printf
	mov	r3, #0
.L35:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC60
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
