	.file	"98301.c"
	.intel_syntax noprefix
	.text
	.local	buf
	.comm	buf,1024,32
	.local	tname
	.comm	tname,4096,32
	.type	filenameof, @function
filenameof:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
.L2:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	filenameof, .-filenameof
	.type	basenameof, @function
basenameof:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	filenameof
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
.L5:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	basenameof, .-basenameof
	.section	.rodata
	.align 8
.LC0:
	.string	"-+ `~!@#$%^&*(){}[]|:;'\",<>?/|=.\\"
	.text
	.type	clean4c, @function
clean4c:
.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	QWORD PTR -24[rbp], rdi
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 95
.L8:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strpbrk@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	clean4c, .-clean4c
	.section	.rodata
.LC1:
	.string	""
.LC2:
	.string	"const "
.LC3:
	.string	"static "
.LC4:
	.string	"Unknown flag -%c\n"
	.align 8
.LC5:
	.ascii	"Usage:\n\n%s -?\n%s [-dbcs] [-n name] [-f file] [inputfile] "
	.ascii	"[outputfile]\n\t-?\tThis help\n\t-h\tThis help\n\t-d\tAdd a "
	.ascii	"directory entry for the ROM file system\n\t"
	.string	"-b\tBreak the arrays for compilers that won't handle large arrays\n\t-c\tDeclare as const (useful to ensure they end up in Flash)\n\t-s\tDeclare as static\n\t-n name\tUse \"name\" as the name of the array\n\t-f file\tUse \"file\" as the filename in the ROM directory entry\n"
	.align 8
.LC6:
	.string	"If using -d you must either specify an input filename or use -f to specify a directory entry filename\n"
.LC7:
	.string	"r"
	.align 8
.LC8:
	.string	"Could not open input file '%s'\n"
.LC9:
	.string	"w"
	.align 8
.LC10:
	.string	"Could not open output file '%s'\n"
	.align 8
.LC11:
	.string	"/**\n * This file was generated "
.LC12:
	.string	"from \"%s\" "
.LC13:
	.string	"using...\n *\n *\t%s"
.LC14:
	.string	" -"
.LC15:
	.string	"n %s"
.LC16:
	.string	" -f %s"
.LC17:
	.string	"f %s"
.LC18:
	.string	" %s"
.LC19:
	.string	"\n *\n */\n"
.LC20:
	.string	"filearray%u"
.LC21:
	.string	"%s%schar %s[] = {"
.LC22:
	.string	"\n};\n%s%schar %s_p%u[] = {"
.LC23:
	.string	" 0x%02X,"
.LC24:
	.string	"\n\t0x%02X,"
.LC25:
	.string	"\n};\n"
.LC26:
	.string	"\n#ifdef ROMFS_DIRENTRY_HEAD\n"
	.align 8
.LC27:
	.string	"\t%s%sROMFS_DIRENTRY %s_dir = { 0, 0, ROMFS_DIRENTRY_HEAD, \"%s\", %u, %s };\n"
	.align 8
.LC28:
	.string	"\t#undef ROMFS_DIRENTRY_HEAD\n\t#define ROMFS_DIRENTRY_HEAD &%s_dir\n#endif\n"
.LC29:
	.string	"Input file read error\n"
	.align 8
.LC30:
	.string	"Output file write error - disk full?\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	basenameof
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -72[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -104[rbp], 0
	mov	eax, DWORD PTR -104[rbp]
	mov	DWORD PTR -108[rbp], eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -64[rbp], rax
	jmp	.L12
.L29:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L13
	jmp	.L14
.L26:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 63
	cmp	eax, 52
	ja	.L15
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L17[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L17[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L17:
	.long	.L64-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L23-.L17
	.long	.L22-.L17
	.long	.L21-.L17
	.long	.L15-.L17
	.long	.L20-.L17
	.long	.L15-.L17
	.long	.L64-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L18-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L16-.L17
	.text
.L21:
	mov	DWORD PTR -104[rbp], 1
	jmp	.L14
.L23:
	mov	DWORD PTR -108[rbp], 1
	jmp	.L14
.L22:
	lea	rax, .LC2[rip]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L14
.L16:
	lea	rax, .LC3[rip]
	mov	QWORD PTR -64[rbp], rax
	jmp	.L14
.L18:
	add	QWORD PTR -128[rbp], 8
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L12
.L20:
	mov	DWORD PTR -104[rbp], 1
	add	QWORD PTR -128[rbp], 8
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L12
.L15:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L24
.L14:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L26
	jmp	.L12
.L13:
	cmp	QWORD PTR -96[rbp], 0
	jne	.L27
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -96[rbp], rax
	jmp	.L12
.L27:
	cmp	QWORD PTR -88[rbp], 0
	jne	.L65
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L12
.L64:
	nop
	jmp	.L24
.L65:
	nop
.L24:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L28
.L25:
.L12:
	add	QWORD PTR -128[rbp], 8
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L29
	cmp	DWORD PTR -104[rbp], 0
	je	.L30
	cmp	QWORD PTR -72[rbp], 0
	jne	.L30
	cmp	QWORD PTR -96[rbp], 0
	jne	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 102
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	jmp	.L24
.L30:
	cmp	QWORD PTR -96[rbp], 0
	je	.L31
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -96[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L24
.L31:
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -48[rbp], rax
.L32:
	cmp	QWORD PTR -88[rbp], 0
	je	.L33
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L34
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -88[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L24
.L33:
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -40[rbp], rax
.L34:
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	cmp	QWORD PTR -96[rbp], 0
	je	.L35
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L35:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	QWORD PTR -80[rbp], 0
	jne	.L36
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L36
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L36
	cmp	DWORD PTR -108[rbp], 0
	jne	.L36
	cmp	DWORD PTR -104[rbp], 0
	je	.L37
.L36:
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	cmp	DWORD PTR -104[rbp], 0
	je	.L38
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	edi, 100
	call	fputc@PLT
.L38:
	cmp	DWORD PTR -108[rbp], 0
	je	.L39
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	edi, 98
	call	fputc@PLT
.L39:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L40
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	edi, 99
	call	fputc@PLT
.L40:
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L41
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	edi, 115
	call	fputc@PLT
.L41:
	cmp	QWORD PTR -80[rbp], 0
	je	.L42
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L42:
	cmp	QWORD PTR -72[rbp], 0
	je	.L37
	cmp	QWORD PTR -80[rbp], 0
	je	.L43
	lea	rax, .LC16[rip]
	jmp	.L44
.L43:
	lea	rax, .LC17[rip]
.L44:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	mov	eax, 0
	call	fprintf@PLT
.L37:
	cmp	QWORD PTR -96[rbp], 0
	je	.L45
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L45:
	cmp	QWORD PTR -88[rbp], 0
	je	.L46
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L46:
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	cmp	QWORD PTR -80[rbp], 0
	jne	.L47
	cmp	QWORD PTR -96[rbp], 0
	je	.L48
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	lea	rdi, tname[rip]
	call	strcpy@PLT
	mov	rdi, rax
	call	basenameof
	mov	QWORD PTR -80[rbp], rax
.L48:
	cmp	QWORD PTR -80[rbp], 0
	je	.L49
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L47
.L49:
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	mov	edx, eax
	lea	rsi, .LC20[rip]
	lea	rdi, tname[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, tname[rip]
	mov	QWORD PTR -80[rbp], rax
.L47:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	clean4c
	mov	QWORD PTR -80[rbp], rax
	cmp	DWORD PTR -104[rbp], 0
	je	.L50
	cmp	QWORD PTR -72[rbp], 0
	jne	.L50
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	filenameof
	mov	QWORD PTR -72[rbp], rax
.L50:
	mov	DWORD PTR -100[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	jmp	.L51
.L58:
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -100[rbp], edx
	test	eax, eax
	jne	.L52
	mov	rsi, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rsi
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L53
.L52:
	cmp	DWORD PTR -108[rbp], 0
	je	.L53
	mov	edi, DWORD PTR -100[rbp]
	mov	rsi, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r9d, edi
	mov	r8, rsi
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L53:
	mov	QWORD PTR -24[rbp], 0
	jmp	.L54
.L57:
	lea	rdx, buf[rip]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	and	eax, 15
	test	rax, rax
	je	.L55
	lea	rax, .LC23[rip]
	jmp	.L56
.L55:
	lea	rax, .LC24[rip]
.L56:
	mov	rcx, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	mov	eax, 0
	call	fprintf@PLT
	add	QWORD PTR -24[rbp], 1
.L54:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L57
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -32[rbp], rax
.L51:
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rax
	mov	edx, 1024
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L58
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	cmp	DWORD PTR -104[rbp], 0
	je	.L59
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	mov	rdi, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	push	QWORD PTR -80[rbp]
	push	QWORD PTR -32[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L59:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L60
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
.L60:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L61
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC30[rip]
	call	fwrite@PLT
.L61:
	mov	rax, QWORD PTR stdin[rip]
	cmp	QWORD PTR -48[rbp], rax
	je	.L62
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L62:
	mov	rax, QWORD PTR stdout[rip]
	cmp	QWORD PTR -40[rbp], rax
	je	.L63
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L63:
	mov	eax, 0
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"98301.c"
	.text
	.local	buf
	.comm	buf,1024,4
	.local	tname
	.comm	tname,4096,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	filenameof, %function
filenameof:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r1, #47
	ldr	r0, [fp, #-16]
	bl	strrchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	filenameof, .-filenameof
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	basenameof, %function
basenameof:
	@ 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	filenameof
	str	r0, [fp, #-16]
	mov	r1, #46
	ldr	r0, [fp, #-16]
	bl	strchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
.L5:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	basenameof, .-basenameof
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-+ `~!@#$%^&*(){}[]|:;'\",<>?/|=.\\\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean4c, %function
clean4c:
	@ 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]
	b	.L8
.L9:
	ldr	r3, [fp, #-8]
	mov	r2, #95
	strb	r2, [r3]
.L8:
	ldr	r1, .L11
	ldr	r0, [fp, #-16]
	bl	strpbrk
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	clean4c, .-clean4c
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"const \000"
	.align	2
.LC3:
	.ascii	"static \000"
	.align	2
.LC4:
	.ascii	"Unknown flag -%c\012\000"
	.align	2
.LC5:
	.ascii	"Usage:\012\012%s -?\012%s [-dbcs] [-n name] [-f fil"
	.ascii	"e] [inputfile] [outputfile]\012\011-?\011This help\012"
	.ascii	"\011-h\011This help\012\011-d\011Add a directory en"
	.ascii	"try for the ROM file system\012\011-b\011Break the "
	.ascii	"arrays for compilers that won't handle large arrays"
	.ascii	"\012\011-c\011Declare as const (useful to ensure th"
	.ascii	"ey end up in Flash)\012\011-s\011Declare as static\012"
	.ascii	"\011-n name\011Use \"name\" as the name of the arra"
	.ascii	"y\012\011-f file\011Use \"file\" as the filename in"
	.ascii	" the ROM directory entry\012\000"
	.align	2
.LC6:
	.ascii	"If using -d you must either specify an input filena"
	.ascii	"me or use -f to specify a directory entry filename\012"
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"r\000"
	.align	2
.LC8:
	.ascii	"Could not open input file '%s'\012\000"
	.align	2
.LC9:
	.ascii	"w\000"
	.align	2
.LC10:
	.ascii	"Could not open output file '%s'\012\000"
	.align	2
.LC11:
	.ascii	"/**\012 * This file was generated \000"
	.align	2
.LC12:
	.ascii	"from \"%s\" \000"
	.align	2
.LC13:
	.ascii	"using...\012 *\012 *\011%s\000"
	.align	2
.LC14:
	.ascii	" -\000"
	.align	2
.LC15:
	.ascii	"n %s\000"
	.align	2
.LC16:
	.ascii	" -f %s\000"
	.align	2
.LC17:
	.ascii	"f %s\000"
	.align	2
.LC18:
	.ascii	" %s\000"
	.align	2
.LC19:
	.ascii	"\012 *\012 */\012\000"
	.align	2
.LC20:
	.ascii	"filearray%u\000"
	.align	2
.LC21:
	.ascii	"%s%schar %s[] = {\000"
	.align	2
.LC22:
	.ascii	"\012};\012%s%schar %s_p%u[] = {\000"
	.align	2
.LC23:
	.ascii	" 0x%02X,\000"
	.align	2
.LC24:
	.ascii	"\012\0110x%02X,\000"
	.align	2
.LC25:
	.ascii	"\012};\012\000"
	.align	2
.LC26:
	.ascii	"\012#ifdef ROMFS_DIRENTRY_HEAD\012\000"
	.align	2
.LC27:
	.ascii	"\011%s%sROMFS_DIRENTRY %s_dir = { 0, 0, ROMFS_DIREN"
	.ascii	"TRY_HEAD, \"%s\", %u, %s };\012\000"
	.align	2
.LC28:
	.ascii	"\011#undef ROMFS_DIRENTRY_HEAD\012\011#define ROMFS"
	.ascii	"_DIRENTRY_HEAD &%s_dir\012#endif\012\000"
	.align	2
.LC29:
	.ascii	"Input file read error\012\000"
	.align	2
.LC30:
	.ascii	"Output file write error - disk full?\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	mov	r0, r3
	bl	basenameof
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-48]
	ldr	r3, .L67
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-40]
	b	.L14
.L30:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L15
	b	.L16
.L27:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #63
	cmp	r3, #52
	ldrls	pc, [pc, r3, asl #2]
	b	.L17
.L19:
	.word	.L65
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L17
	.word	.L22
	.word	.L17
	.word	.L65
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L20
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L18
.L23:
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L16
.L25:
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L16
.L24:
	ldr	r3, .L67+4
	str	r3, [fp, #-36]
	b	.L16
.L18:
	ldr	r3, .L67+8
	str	r3, [fp, #-40]
	b	.L16
.L20:
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	str	r3, [fp, #-56]
	b	.L14
.L22:
	mov	r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	b	.L14
.L17:
	ldr	r3, .L67+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L67+16
	bl	fprintf
	b	.L26
.L16:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-76]
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L27
	b	.L14
.L15:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	b	.L14
.L28:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L66
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	str	r3, [fp, #-60]
	b	.L14
.L65:
	nop
	b	.L26
.L66:
	nop
.L26:
	ldr	r3, .L67+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, .L67+20
	bl	fprintf
	mov	r3, #1
	b	.L29
.L14:
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L31
	ldr	r3, .L67+12
	ldr	r3, [r3]
	mov	r2, #102
	mov	r1, #1
	ldr	r0, .L67+24
	bl	fwrite
	b	.L26
.L31:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L32
	ldr	r1, .L67+28
	ldr	r0, [fp, #-64]
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L67+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	ldr	r1, .L67+32
	mov	r0, r3
	bl	fprintf
	b	.L26
.L32:
	ldr	r3, .L67+36
	ldr	r3, [r3]
	str	r3, [fp, #-32]
.L33:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L34
	ldr	r1, .L67+40
	ldr	r0, [fp, #-60]
	bl	fopen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L67+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	ldr	r1, .L67+44
	mov	r0, r3
	bl	fprintf
	b	.L26
.L34:
	ldr	r3, .L67+48
	ldr	r3, [r3]
	str	r3, [fp, #-28]
.L35:
	ldr	r3, [fp, #-28]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L67+52
	bl	fwrite
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L36
	ldr	r2, [fp, #-64]
	ldr	r1, .L67+56
	ldr	r0, [fp, #-28]
	bl	fprintf
.L36:
	ldr	r2, [fp, #-12]
	ldr	r1, .L67+60
	ldr	r0, [fp, #-28]
	bl	fprintf
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L38
.L37:
	ldr	r3, [fp, #-28]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L67+64
	bl	fwrite
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L39
	ldr	r1, [fp, #-28]
	mov	r0, #100
	bl	fputc
.L39:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L40
	ldr	r1, [fp, #-28]
	mov	r0, #98
	bl	fputc
.L40:
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L41
	ldr	r1, [fp, #-28]
	mov	r0, #99
	bl	fputc
.L41:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L42
	ldr	r1, [fp, #-28]
	mov	r0, #115
	bl	fputc
.L42:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L43
	ldr	r2, [fp, #-56]
	ldr	r1, .L67+68
	ldr	r0, [fp, #-28]
	bl	fprintf
.L43:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L44
	ldr	r3, .L67+72
	b	.L45
.L44:
	ldr	r3, .L67+76
.L45:
	ldr	r2, [fp, #-52]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	fprintf
.L38:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L46
	ldr	r2, [fp, #-64]
	ldr	r1, .L67+80
	ldr	r0, [fp, #-28]
	bl	fprintf
.L46:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L47
	ldr	r2, [fp, #-60]
	ldr	r1, .L67+80
	ldr	r0, [fp, #-28]
	bl	fprintf
.L47:
	ldr	r3, [fp, #-28]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L67+84
	bl	fwrite
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L48
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L49
	ldr	r1, [fp, #-64]
	ldr	r0, .L67+88
	bl	strcpy
	mov	r3, r0
	mov	r0, r3
	bl	basenameof
	str	r0, [fp, #-56]
.L49:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L48
.L50:
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L67+92
	ldr	r0, .L67+88
	bl	sprintf
	ldr	r3, .L67+88
	str	r3, [fp, #-56]
.L48:
	ldr	r0, [fp, #-56]
	bl	clean4c
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L51
	ldr	r0, [fp, #-64]
	bl	filenameof
	str	r0, [fp, #-52]
.L51:
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L52
.L59:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	cmp	r3, #0
	bne	.L53
	ldr	r3, [fp, #-56]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-40]
	ldr	r1, .L67+96
	ldr	r0, [fp, #-28]
	bl	fprintf
	b	.L54
.L53:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-24]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-56]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-40]
	ldr	r1, .L67+100
	ldr	r0, [fp, #-28]
	bl	fprintf
.L54:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L55
.L58:
	ldr	r3, [fp, #-16]
	and	r3, r3, #15
	cmp	r3, #0
	beq	.L56
	ldr	r1, .L67+104
	b	.L57
.L56:
	ldr	r1, .L67+108
.L57:
	ldr	r2, .L67+112
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, [fp, #-28]
	bl	fprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L55:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L58
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L52:
	ldr	r3, [fp, #-32]
	mov	r2, #1024
	mov	r1, #1
	ldr	r0, .L67+112
	bl	fread
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-28]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L67+116
	bl	fwrite
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-28]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L67+120
	bl	fwrite
	ldr	r3, [fp, #-56]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-20]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-52]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-56]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-40]
	ldr	r1, .L67+124
	ldr	r0, [fp, #-28]
	bl	fprintf
	ldr	r2, [fp, #-56]
	ldr	r1, .L67+128
	ldr	r0, [fp, #-28]
	bl	fprintf
.L60:
	ldr	r0, [fp, #-32]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	ldr	r3, .L67+12
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L67+132
	bl	fwrite
.L61:
	ldr	r0, [fp, #-28]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L62
	ldr	r3, .L67+12
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L67+136
	bl	fwrite
.L62:
	ldr	r3, .L67+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	beq	.L63
	ldr	r0, [fp, #-32]
	bl	fclose
.L63:
	ldr	r3, .L67+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	beq	.L64
	ldr	r0, [fp, #-28]
	bl	fclose
.L64:
	mov	r3, #0
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stdin
	.word	.LC9
	.word	.LC10
	.word	stdout
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	tname
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	buf
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
