	.file	"11033.c"
	.intel_syntax noprefix
	.text
	.globl	minimumDiskSize
	.section	.rodata
	.align 8
	.type	minimumDiskSize, @object
	.size	minimumDiskSize, 8
minimumDiskSize:
	.quad	6291456
	.globl	file
	.bss
	.align 8
	.type	file, @object
	.size	file, 8
file:
	.zero	8
	.globl	disk
	.align 8
	.type	disk, @object
	.size	disk, 8
disk:
	.zero	8
	.globl	filesize
	.align 4
	.type	filesize, @object
	.size	filesize, 4
filesize:
	.zero	4
	.globl	disksize
	.align 4
	.type	disksize, @object
	.size	disksize, 4
disksize:
	.zero	4
	.globl	tempfilename
	.align 32
	.type	tempfilename, @object
	.size	tempfilename, 32
tempfilename:
	.zero	32
	.globl	tempstring
	.align 32
	.type	tempstring, @object
	.size	tempstring, 32
tempstring:
	.zero	32
	.globl	filename
	.align 8
	.type	filename, @object
	.size	filename, 8
filename:
	.zero	8
	.globl	diskname
	.align 8
	.type	diskname, @object
	.size	diskname, 8
diskname:
	.zero	8
	.globl	command
	.align 8
	.type	command, @object
	.size	command, 8
command:
	.zero	8
	.globl	fs_tag
	.data
	.type	fs_tag, @object
	.size	fs_tag, 5
fs_tag:
	.string	"BMFS"
	.globl	s_list
	.type	s_list, @object
	.size	s_list, 5
s_list:
	.string	"list"
	.globl	s_format
	.type	s_format, @object
	.size	s_format, 7
s_format:
	.string	"format"
	.globl	s_initialize
	.align 8
	.type	s_initialize, @object
	.size	s_initialize, 11
s_initialize:
	.string	"initialize"
	.globl	s_create
	.type	s_create, @object
	.size	s_create, 7
s_create:
	.string	"create"
	.globl	s_read
	.type	s_read, @object
	.size	s_read, 5
s_read:
	.string	"read"
	.globl	s_write
	.type	s_write, @object
	.size	s_write, 6
s_write:
	.string	"write"
	.globl	s_delete
	.type	s_delete, @object
	.size	s_delete, 7
s_delete:
	.string	"delete"
	.globl	entry
	.bss
	.align 32
	.type	entry, @object
	.size	entry, 64
entry:
	.zero	64
	.globl	pentry
	.section	.data.rel.local,"aw"
	.align 8
	.type	pentry, @object
	.size	pentry, 8
pentry:
	.quad	entry
	.globl	BlockMap
	.bss
	.align 8
	.type	BlockMap, @object
	.size	BlockMap, 8
BlockMap:
	.zero	8
	.globl	FileBlocks
	.align 8
	.type	FileBlocks, @object
	.size	FileBlocks, 8
FileBlocks:
	.zero	8
	.globl	Directory
	.align 32
	.type	Directory, @object
	.size	Directory, 4096
Directory:
	.zero	4096
	.globl	DiskInfo
	.align 32
	.type	DiskInfo, @object
	.size	DiskInfo, 512
DiskInfo:
	.zero	512
	.section	.rodata
	.align 8
.LC0:
	.string	"BareMetal File System Utility v1.0 (2013 04 10)"
	.align 8
.LC1:
	.string	"Written by Ian Seyler @ Return Infinity (ian.seyler@returninfinity.com)\n"
.LC2:
	.string	"Usage: %s disk function file\n"
	.align 8
.LC3:
	.string	"Disk: the name of the disk file"
	.align 8
.LC4:
	.string	"Function: list, read, write, create, delete, format, initialize"
.LC5:
	.string	"File: (if applicable)"
.LC6:
	.string	"Usage: %s disk %s "
.LC7:
	.string	"size [mbr_file] "
	.align 8
.LC8:
	.string	"[bootloader_file] [kernel_file]"
.LC9:
	.string	"r+b"
	.align 8
.LC10:
	.string	"Error: Unable to open disk '%s'\n"
	.align 8
.LC11:
	.string	"Error: Not a valid BMFS drive (Disk is not BMFS formatted)."
.LC12:
	.string	"/FORCE"
.LC13:
	.string	"Format aborted!"
	.align 8
.LC14:
	.string	"Error: File name not specified."
.LC15:
	.string	"Error: Invalid file size."
.LC16:
	.string	"Maximum file size in MiB: "
.LC17:
	.string	"Unknown command"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	cmp	DWORD PTR -52[rbp], 2
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR diskname[rip], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR command[rip], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR filename[rip], rax
	mov	rax, QWORD PTR command[rip]
	mov	rsi, rax
	lea	rdi, s_initialize[rip]
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L3
	cmp	DWORD PTR -52[rbp], 3
	jle	.L4
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -32[rbp], rax
	cmp	DWORD PTR -52[rbp], 4
	jle	.L5
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 32[rax]
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -52[rbp], 5
	jle	.L7
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 40[rax]
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -52[rbp], 6
	jle	.L9
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 48[rax]
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR diskname[rip]
	mov	rdi, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	initialize
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	exit@PLT
.L4:
	mov	rdx, QWORD PTR command[rip]
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR diskname[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR disk[rip], rax
	mov	rax, QWORD PTR disk[rip]
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR diskname[rip]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	rdi, rax
	call	ftell@PLT
	lea	rdx, 1048575[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 20
	mov	DWORD PTR disksize[rip], eax
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 0
	mov	esi, 1024
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 512
	lea	rdi, DiskInfo[rip]
	call	fread@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 0
	mov	esi, 4096
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4096
	lea	rdi, Directory[rip]
	call	fread@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	rdi, rax
	call	rewind@PLT
	lea	rsi, fs_tag[rip]
	lea	rdi, DiskInfo[rip]
	call	strcasecmp@PLT
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR command[rip]
	mov	rsi, rax
	lea	rdi, s_format[rip]
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L13
	mov	eax, 0
	call	format
	jmp	.L14
.L13:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L14:
	mov	rax, QWORD PTR disk[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L15
.L12:
	mov	rax, QWORD PTR command[rip]
	mov	rsi, rax
	lea	rdi, s_list[rip]
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L16
	mov	eax, 0
	call	list
	jmp	.L17
.L16:
	mov	rax, QWORD PTR command[rip]
	mov	rsi, rax
	lea	rdi, s_format[rip]
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L18
	cmp	DWORD PTR -52[rbp], 3
	jle	.L19
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L20
	mov	eax, 0
	call	format
	jmp	.L17
.L20:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L17
.L19:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L17
.L18:
	mov	rax, QWORD PTR command[rip]
	mov	rsi, rax
	lea	rdi, s_create[rip]
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR filename[rip]
	test	rax, rax
	jne	.L22
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L17
.L22:
	cmp	DWORD PTR -52[rbp], 4
	jle	.L23
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jle	.L24
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR filename[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	create
	jmp	.L17
.L24:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L17
.L23:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 32
	lea	rdi, tempstring[rip]
	call	fgets@PLT
	lea	rdi, tempstring[rip]
	call	atoi@PLT
	mov	DWORD PTR filesize[rip], eax
	mov	eax, DWORD PTR filesize[rip]
	test	eax, eax
	je	.L25
	mov	eax, DWORD PTR filesize[rip]
	mov	edx, eax
	mov	rax, QWORD PTR filename[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	create
	jmp	.L17
.L25:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L17
.L21:
	mov	rax, QWORD PTR command[rip]
	mov	rsi, rax
	lea	rdi, s_read[rip]
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L26
	mov	rax, QWORD PTR filename[rip]
	mov	rdi, rax
	call	read
	jmp	.L17
.L26:
	mov	rax, QWORD PTR command[rip]
	mov	rsi, rax
	lea	rdi, s_write[rip]
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L27
	mov	rax, QWORD PTR filename[rip]
	mov	rdi, rax
	call	write
	jmp	.L17
.L27:
	mov	rax, QWORD PTR command[rip]
	mov	rsi, rax
	lea	rdi, s_delete[rip]
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L28
	mov	rax, QWORD PTR filename[rip]
	mov	rdi, rax
	call	delete
	jmp	.L17
.L28:
	lea	rdi, .LC17[rip]
	call	puts@PLT
.L17:
	mov	rax, QWORD PTR disk[rip]
	test	rax, rax
	je	.L29
	mov	rax, QWORD PTR disk[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR disk[rip], 0
.L29:
	mov	eax, 0
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	findfile
	.type	findfile, @function
findfile:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L31
.L35:
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 6
	cdqe
	lea	rdx, Directory[rip]
	lea	rcx, [rax+rdx]
	mov	rax, QWORD PTR pentry[rip]
	mov	edx, 64
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	movzx	eax, BYTE PTR entry[rip]
	test	al, al
	jne	.L32
	mov	DWORD PTR -4[rbp], 64
	jmp	.L33
.L32:
	movzx	eax, BYTE PTR entry[rip]
	cmp	al, 1
	je	.L33
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, entry[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
	mov	rcx, QWORD PTR pentry[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 64
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 1
	jmp	.L34
.L33:
	add	DWORD PTR -4[rbp], 1
.L31:
	cmp	DWORD PTR -4[rbp], 63
	jle	.L35
	mov	eax, 0
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	findfile, .-findfile
	.section	.rodata
.LC18:
	.string	"%s\nDisk Size: %d MiB\n"
	.align 8
.LC19:
	.string	"Name                            |            Size (B)|      Reserved (MiB)"
	.align 8
.LC20:
	.string	"=========================================================================="
.LC21:
	.string	"%-32s %20lld %20lld\n"
	.text
	.globl	list
	.type	list, @function
list:
.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, 16
	mov	edx, DWORD PTR disksize[rip]
	mov	rax, QWORD PTR diskname[rip]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L37
.L40:
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 6
	cdqe
	lea	rdx, Directory[rip]
	lea	rcx, [rax+rdx]
	mov	rax, QWORD PTR pentry[rip]
	mov	edx, 64
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	movzx	eax, BYTE PTR entry[rip]
	test	al, al
	jne	.L38
	mov	DWORD PTR -4[rbp], 64
	jmp	.L39
.L38:
	movzx	eax, BYTE PTR entry[rip]
	cmp	al, 1
	je	.L39
	mov	rax, QWORD PTR entry[rip+40]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR entry[rip+48]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, entry[rip]
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L39:
	add	DWORD PTR -4[rbp], 1
.L37:
	cmp	DWORD PTR -4[rbp], 63
	jle	.L40
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	list, .-list
	.section	.rodata
.LC22:
	.string	"Format complete."
	.text
	.globl	format
	.type	format, @function
format:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 512
	mov	esi, 0
	lea	rdi, DiskInfo[rip]
	call	memset@PLT
	mov	edx, 4096
	mov	esi, 0
	lea	rdi, Directory[rip]
	call	memset@PLT
	mov	eax, DWORD PTR fs_tag[rip]
	mov	DWORD PTR DiskInfo[rip], eax
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 0
	mov	esi, 1024
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 512
	lea	rdi, DiskInfo[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 0
	mov	esi, 4096
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4096
	lea	rdi, Directory[rip]
	call	fwrite@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	format, .-format
	.section	.rodata
.LC23:
	.string	"boot loader"
.LC24:
	.string	"system"
.LC25:
	.string	"Error: Disk size is too large"
	.align 8
.LC26:
	.string	"Error: A numeric disk size must be specified"
	.align 8
.LC27:
	.string	"Error: Invalid disk size string: '%s'\n"
	.align 8
.LC28:
	.string	"Error: Disk size must be at least %llu bytes (%lluMiB)\n"
.LC29:
	.string	"rb"
	.align 8
.LC30:
	.string	"Error: Unable to open MBR file '%s'\n"
	.align 8
.LC31:
	.string	"Error: Unable to open %s file '%s'\n"
	.align 8
.LC32:
	.string	"Error: Unable to open kernel file '%s'\n"
	.align 8
.LC33:
	.string	"Error: Failed to allocate buffer"
.LC34:
	.string	"wb"
	.align 8
.LC36:
	.string	"Formatting disk: %llu of %llu bytes (%.0f%%)...\r"
	.align 8
.LC37:
	.string	"Error: Failed to write disk '%s'\n"
.LC38:
	.string	""
	.align 8
.LC39:
	.string	"Formatting disk: %llu of %llu bytes (100%%)%9s\n"
.LC40:
	.string	"Writing master boot record."
	.align 8
.LC41:
	.string	"Error: Failed to read file '%s'\n"
.LC42:
	.string	"Writing %s file.\n"
.LC43:
	.string	"Writing kernel."
.LC44:
	.string	"Disk initialization complete."
	.text
	.globl	initialize
	.type	initialize, @function
initialize:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	QWORD PTR -136[rbp], rdx
	mov	QWORD PTR -144[rbp], rcx
	mov	QWORD PTR -152[rbp], r8
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -16[rbp], 51200
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	cmp	QWORD PTR -144[rbp], 0
	je	.L43
	lea	rax, .LC23[rip]
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	jne	.L43
	lea	rax, .LC24[rip]
	mov	QWORD PTR -72[rbp], rax
.L43:
	mov	QWORD PTR -24[rbp], 0
	jmp	.L44
.L59:
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -101[rbp], al
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rax, BYTE PTR -101[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L45
	movsx	eax, BYTE PTR -101[rbp]
	sub	eax, 48
	mov	DWORD PTR -92[rbp], eax
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	cmp	QWORD PTR -88[rbp], rax
	jnb	.L46
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -92[rbp]
	add	QWORD PTR -88[rbp], rax
	jmp	.L47
.L46:
	cmp	QWORD PTR -88[rbp], 0
	jne	.L48
	mov	eax, DWORD PTR -92[rbp]
	add	QWORD PTR -88[rbp], rax
	jmp	.L47
.L48:
	lea	rdi, .LC25[rip]
	call	puts@PLT
	mov	DWORD PTR -96[rbp], 1
	jmp	.L47
.L45:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L49
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	DWORD PTR -96[rbp], 1
	jmp	.L47
.L49:
	movsx	eax, BYTE PTR -101[rbp]
	mov	edi, eax
	call	toupper@PLT
	sub	eax, 71
	cmp	eax, 13
	ja	.L50
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L52[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L52[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L52:
	.long	.L56-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L55-.L52
	.long	.L50-.L52
	.long	.L54-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L53-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L50-.L52
	.long	.L51-.L52
	.text
.L55:
	mov	DWORD PTR -100[rbp], 1
	jmp	.L57
.L54:
	mov	DWORD PTR -100[rbp], 2
	jmp	.L57
.L56:
	mov	DWORD PTR -100[rbp], 3
	jmp	.L57
.L51:
	mov	DWORD PTR -100[rbp], 4
	jmp	.L57
.L53:
	mov	DWORD PTR -100[rbp], 5
	jmp	.L57
.L50:
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
	nop
.L57:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L47
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L47
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
.L47:
	add	QWORD PTR -24[rbp], 1
.L44:
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L58
	cmp	DWORD PTR -96[rbp], 0
	je	.L59
.L58:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L60
	cmp	QWORD PTR -88[rbp], 0
	je	.L60
	cmp	DWORD PTR -100[rbp], 0
	jle	.L60
	jmp	.L61
.L63:
	mov	rax, QWORD PTR -88[rbp]
	sal	rax, 10
	cmp	QWORD PTR -88[rbp], rax
	jnb	.L62
	sal	QWORD PTR -88[rbp], 10
	jmp	.L61
.L62:
	lea	rdi, .LC25[rip]
	call	puts@PLT
	mov	DWORD PTR -96[rbp], 1
.L61:
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -100[rbp], edx
	test	eax, eax
	jne	.L63
.L60:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L64
	mov	eax, 6291456
	cmp	QWORD PTR -88[rbp], rax
	jnb	.L64
	mov	eax, 6291456
	shr	rax, 20
	mov	ecx, 6291456
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
.L64:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L65
	cmp	QWORD PTR -136[rbp], 0
	je	.L65
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L65
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
.L65:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L66
	cmp	QWORD PTR -144[rbp], 0
	je	.L66
	mov	rax, QWORD PTR -144[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L66
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
.L66:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L67
	cmp	QWORD PTR -152[rbp], 0
	je	.L67
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L67
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
.L67:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L68
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L68
	lea	rdi, .LC33[rip]
	call	puts@PLT
	mov	DWORD PTR -96[rbp], 1
.L68:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L69
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR disk[rip], rax
	mov	rax, QWORD PTR disk[rip]
	test	rax, rax
	jne	.L69
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
.L69:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L70
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR -80[rbp], 0
	jmp	.L71
.L79:
	mov	rax, QWORD PTR -80[rbp]
	test	rax, rax
	js	.L72
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L73
.L72:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L73:
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	js	.L74
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L75
.L74:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L75:
	movsd	xmm1, QWORD PTR -8[rbp]
	divsd	xmm1, xmm0
	movsd	QWORD PTR -8[rbp], xmm1
	movsd	xmm1, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR .LC35[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -80[rbp]
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC36[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	sub	rax, QWORD PTR -80[rbp]
	cmp	QWORD PTR -32[rbp], rax
	jbe	.L76
	mov	rax, QWORD PTR -88[rbp]
	sub	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -32[rbp], rax
.L76:
	mov	rdx, QWORD PTR disk[rip]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L77
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
	jmp	.L78
.L77:
	mov	rax, QWORD PTR -32[rbp]
	add	QWORD PTR -80[rbp], rax
.L71:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -88[rbp]
	jb	.L79
.L78:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L70
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -80[rbp]
	lea	rcx, .LC38[rip]
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
.L70:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L80
	mov	rax, QWORD PTR disk[rip]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, 0
	call	format
.L80:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L81
	cmp	QWORD PTR -56[rbp], 0
	je	.L81
	lea	rdi, .LC40[rip]
	call	puts@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 512
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	jne	.L82
	mov	rdx, QWORD PTR disk[rip]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 512
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L81
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
	jmp	.L81
.L82:
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
.L81:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L83
	cmp	QWORD PTR -48[rbp], 0
	je	.L83
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 0
	mov	esi, 8192
	mov	rdi, rax
	call	fseek@PLT
.L87:
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L84
	mov	rdx, QWORD PTR disk[rip]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L87
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
	jmp	.L87
.L84:
	mov	rax, QWORD PTR disk[rip]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L100
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
.L100:
	nop
.L83:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L88
	cmp	QWORD PTR -40[rbp], 0
	je	.L88
	lea	rdi, .LC43[rip]
	call	puts@PLT
.L92:
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L89
	mov	rdx, QWORD PTR disk[rip]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L92
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
	jmp	.L92
.L89:
	mov	rax, QWORD PTR disk[rip]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L101
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 1
.L101:
	nop
.L88:
	cmp	QWORD PTR -56[rbp], 0
	je	.L93
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L93:
	cmp	QWORD PTR -48[rbp], 0
	je	.L94
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L94:
	cmp	QWORD PTR -40[rbp], 0
	je	.L95
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L95:
	mov	rax, QWORD PTR disk[rip]
	test	rax, rax
	je	.L96
	mov	rax, QWORD PTR disk[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR disk[rip], 0
.L96:
	cmp	QWORD PTR -64[rbp], 0
	je	.L97
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
.L97:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L98
	lea	rdi, .LC44[rip]
	call	puts@PLT
.L98:
	mov	eax, DWORD PTR -96[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	initialize, .-initialize
	.type	StartingBlockCmp, @function
StartingBlockCmp:
.LFB11:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L103
	mov	eax, 1
	jmp	.L104
.L103:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L105
	mov	eax, -1
	jmp	.L104
.L105:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
.L104:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	StartingBlockCmp, .-StartingBlockCmp
	.section	.rodata
.LC45:
	.string	"Creating new file..."
	.align 8
.LC46:
	.string	"Cannot create file: no free directory entries."
	.align 8
.LC47:
	.string	"Cannot create file of size %lld MiB.\n"
.LC48:
	.string	"Complete"
.LC49:
	.string	"Error: File already exists."
	.text
	.globl	create
	.type	create, @function
create:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 160
	mov	QWORD PTR -4248[rbp], rdi
	mov	QWORD PTR -4256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4256[rbp]
	and	eax, 1
	test	rax, rax
	je	.L107
	add	QWORD PTR -4256[rbp], 1
.L107:
	lea	rdx, -4240[rbp]
	lea	rcx, -4176[rbp]
	mov	rax, QWORD PTR -4248[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	findfile
	test	eax, eax
	jne	.L108
	mov	rax, QWORD PTR -4256[rbp]
	shr	rax
	mov	QWORD PTR -4200[rbp], rax
	mov	eax, DWORD PTR disksize[rip]
	shr	eax
	mov	eax, eax
	mov	QWORD PTR -4192[rbp], rax
	mov	DWORD PTR -4236[rbp], 0
	mov	DWORD PTR -4232[rbp], -1
	mov	QWORD PTR -4224[rbp], 0
	mov	QWORD PTR -4216[rbp], 1
	lea	rdi, .LC45[rip]
	call	puts@PLT
	lea	rax, -4112[rbp]
	lea	rdx, Directory[rip]
	mov	ecx, 512
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	DWORD PTR -4228[rbp], 0
	jmp	.L109
.L114:
	mov	eax, DWORD PTR -4228[rbp]
	sal	eax, 6
	cdqe
	lea	rdx, -4112[rbp]
	add	rax, rdx
	mov	QWORD PTR -4184[rbp], rax
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L110
	mov	eax, DWORD PTR -4228[rbp]
	mov	DWORD PTR -4236[rbp], eax
	cmp	DWORD PTR -4232[rbp], -1
	jne	.L130
	mov	eax, DWORD PTR -4228[rbp]
	mov	DWORD PTR -4232[rbp], eax
	jmp	.L130
.L110:
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L113
	cmp	DWORD PTR -4232[rbp], -1
	jne	.L113
	mov	eax, DWORD PTR -4228[rbp]
	mov	DWORD PTR -4232[rbp], eax
.L113:
	add	DWORD PTR -4228[rbp], 1
.L109:
	cmp	DWORD PTR -4228[rbp], 63
	jle	.L114
	jmp	.L112
.L130:
	nop
.L112:
	cmp	DWORD PTR -4232[rbp], -1
	jne	.L115
	lea	rdi, .LC46[rip]
	call	puts@PLT
	jmp	.L106
.L115:
	mov	eax, DWORD PTR -4236[rbp]
	movsx	rsi, eax
	lea	rax, -4112[rbp]
	lea	rcx, StartingBlockCmp[rip]
	mov	edx, 64
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -4228[rbp], 0
	jmp	.L117
.L124:
	mov	eax, DWORD PTR -4228[rbp]
	sal	eax, 6
	cdqe
	lea	rdx, -4112[rbp]
	add	rax, rdx
	mov	QWORD PTR -4184[rbp], rax
	mov	eax, DWORD PTR -4228[rbp]
	cmp	eax, DWORD PTR -4236[rbp]
	je	.L118
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L119
.L118:
	mov	rax, QWORD PTR -4192[rbp]
	sub	rax, 1
	mov	QWORD PTR -4208[rbp], rax
	jmp	.L120
.L119:
	mov	rax, QWORD PTR -4184[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -4208[rbp], rax
.L120:
	mov	rax, QWORD PTR -4208[rbp]
	sub	rax, QWORD PTR -4216[rbp]
	cmp	QWORD PTR -4200[rbp], rax
	ja	.L121
	mov	rax, QWORD PTR -4216[rbp]
	mov	QWORD PTR -4224[rbp], rax
	jmp	.L122
.L121:
	mov	eax, DWORD PTR -4228[rbp]
	cmp	eax, DWORD PTR -4236[rbp]
	jge	.L123
	mov	rax, QWORD PTR -4184[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -4184[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rdx
	mov	QWORD PTR -4216[rbp], rax
.L123:
	add	DWORD PTR -4228[rbp], 1
.L117:
	mov	eax, DWORD PTR -4236[rbp]
	cmp	eax, DWORD PTR -4228[rbp]
	jge	.L124
.L122:
	cmp	QWORD PTR -4224[rbp], 0
	jne	.L125
	mov	rax, QWORD PTR -4256[rbp]
	mov	rsi, rax
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L106
.L125:
	mov	eax, DWORD PTR -4232[rbp]
	sal	eax, 6
	cdqe
	lea	rdx, Directory[rip]
	add	rax, rdx
	mov	QWORD PTR -4184[rbp], rax
	mov	rax, QWORD PTR -4184[rbp]
	mov	rdx, QWORD PTR -4224[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -4184[rbp]
	mov	rdx, QWORD PTR -4200[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -4184[rbp]
	mov	QWORD PTR 48[rax], 0
	mov	rax, QWORD PTR -4184[rbp]
	mov	rdx, QWORD PTR -4248[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -4232[rbp]
	cmp	eax, DWORD PTR -4236[rbp]
	jne	.L126
	cmp	DWORD PTR -4236[rbp], 62
	jg	.L126
	mov	eax, DWORD PTR -4236[rbp]
	add	eax, 1
	sal	eax, 6
	cdqe
	lea	rdx, Directory[rip]
	add	rax, rdx
	mov	QWORD PTR -4184[rbp], rax
	mov	rax, QWORD PTR -4184[rbp]
	mov	BYTE PTR [rax], 0
.L126:
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 0
	mov	esi, 4096
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4096
	lea	rdi, Directory[rip]
	call	fwrite@PLT
	lea	rdi, .LC48[rip]
	call	puts@PLT
	jmp	.L106
.L108:
	lea	rdi, .LC49[rip]
	call	puts@PLT
.L106:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L129
	call	__stack_chk_fail@PLT
.L129:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	create, .-create
	.section	.rodata
	.align 8
.LC50:
	.string	"Error: File not found in BMFS."
	.align 8
.LC51:
	.string	"Reading '%s' from BMFS to local file... "
	.align 8
.LC52:
	.string	"Error: Could not open local file '%s'\n"
	.text
	.globl	read
	.type	read, @function
read:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -96[rbp]
	lea	rcx, -80[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	findfile
	test	eax, eax
	jne	.L132
	lea	rdi, .LC50[rip]
	call	puts@PLT
	jmp	.L138
.L132:
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L134
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L138
.L134:
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 21
	mov	rcx, rax
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -92[rbp], 0
	jmp	.L135
.L136:
	mov	rax, QWORD PTR disk[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	putc@PLT
	add	DWORD PTR -92[rbp], 1
.L135:
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	cmp	rdx, rax
	jb	.L136
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC48[rip]
	call	puts@PLT
.L138:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L137
	call	__stack_chk_fail@PLT
.L137:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	read, .-read
	.section	.rodata
	.align 8
.LC53:
	.string	"Error: File not found in BMFS. A file entry must first be created."
	.align 8
.LC54:
	.string	"Writing local file '%s' to BMFS... "
	.align 8
.LC55:
	.string	"Not enough reserved space in BMFS."
	.text
	.globl	write
	.type	write, @function
write:
.LFB14:
	.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, 136
	.cfi_offset 3, -24
	mov	QWORD PTR -136[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdx, -120[rbp]
	lea	rcx, -96[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	findfile
	test	eax, eax
	jne	.L140
	lea	rdi, .LC53[rip]
	call	puts@PLT
	jmp	.L148
.L140:
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rax
	lea	rdi, .LC54[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L142
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L148
.L142:
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -56[rbp]
	sal	rax, 21
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	cmp	rdx, rax
	jnb	.L143
	lea	rdi, .LC55[rip]
	call	puts@PLT
	jmp	.L144
.L143:
	mov	rax, QWORD PTR -64[rbp]
	sal	rax, 21
	mov	rcx, rax
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -116[rbp], 0
	jmp	.L145
.L146:
	mov	rbx, QWORD PTR disk[rip]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	rsi, rbx
	mov	edi, eax
	call	putc@PLT
	add	DWORD PTR -116[rbp], 1
.L145:
	mov	eax, DWORD PTR -116[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -112[rbp]
	cmp	rdx, rax
	jb	.L146
	mov	eax, DWORD PTR -120[rbp]
	sal	eax, 6
	cdqe
	lea	rdx, 48[rax]
	lea	rax, Directory[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 0
	mov	esi, 4096
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4096
	lea	rdi, Directory[rip]
	call	fwrite@PLT
	lea	rdi, .LC48[rip]
	call	puts@PLT
.L144:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L148:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L147
	call	__stack_chk_fail@PLT
.L147:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	write, .-write
	.section	.rodata
	.align 8
.LC56:
	.string	"Deleting file '%s' from BMFS... "
	.text
	.globl	delete
	.type	delete, @function
delete:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -85[rbp], 1
	lea	rdx, -84[rbp]
	lea	rcx, -80[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	findfile
	test	eax, eax
	jne	.L150
	lea	rdi, .LC50[rip]
	call	puts@PLT
	jmp	.L153
.L150:
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC56[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -84[rbp]
	sal	eax, 6
	cdqe
	lea	rdx, Directory[rip]
	add	rdx, rax
	movzx	eax, BYTE PTR -85[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR disk[rip]
	mov	edx, 0
	mov	esi, 4096
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR disk[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4096
	lea	rdi, Directory[rip]
	call	fwrite@PLT
	lea	rdi, .LC48[rip]
	call	puts@PLT
.L153:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L152
	call	__stack_chk_fail@PLT
.L152:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	delete, .-delete
	.section	.rodata
	.align 8
.LC35:
	.long	0
	.long	1079574528
	.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	"11033.c"
	.text
	.global	minimumDiskSize
	.section	.rodata
	.align	3
	.type	minimumDiskSize, %object
	.size	minimumDiskSize, 8
minimumDiskSize:
	.word	6291456
	.word	0
	.comm	file,4,4
	.comm	disk,4,4
	.comm	filesize,4,4
	.comm	disksize,4,4
	.comm	tempfilename,32,4
	.comm	tempstring,32,4
	.comm	filename,4,4
	.comm	diskname,4,4
	.comm	command,4,4
	.global	fs_tag
	.data
	.align	2
	.type	fs_tag, %object
	.size	fs_tag, 5
fs_tag:
	.ascii	"BMFS\000"
	.global	s_list
	.align	2
	.type	s_list, %object
	.size	s_list, 5
s_list:
	.ascii	"list\000"
	.global	s_format
	.align	2
	.type	s_format, %object
	.size	s_format, 7
s_format:
	.ascii	"format\000"
	.global	s_initialize
	.align	2
	.type	s_initialize, %object
	.size	s_initialize, 11
s_initialize:
	.ascii	"initialize\000"
	.global	s_create
	.align	2
	.type	s_create, %object
	.size	s_create, 7
s_create:
	.ascii	"create\000"
	.global	s_read
	.align	2
	.type	s_read, %object
	.size	s_read, 5
s_read:
	.ascii	"read\000"
	.global	s_write
	.align	2
	.type	s_write, %object
	.size	s_write, 6
s_write:
	.ascii	"write\000"
	.global	s_delete
	.align	2
	.type	s_delete, %object
	.size	s_delete, 7
s_delete:
	.ascii	"delete\000"
	.comm	entry,64,8
	.global	pentry
	.align	2
	.type	pentry, %object
	.size	pentry, 4
pentry:
	.word	entry
	.comm	BlockMap,4,4
	.comm	FileBlocks,4,4
	.comm	Directory,4096,4
	.comm	DiskInfo,512,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"BareMetal File System Utility v1.0 (2013 04 10)\000"
	.align	2
.LC1:
	.ascii	"Written by Ian Seyler @ Return Infinity (ian.seyler"
	.ascii	"@returninfinity.com)\012\000"
	.align	2
.LC2:
	.ascii	"Usage: %s disk function file\012\000"
	.align	2
.LC3:
	.ascii	"Disk: the name of the disk file\000"
	.align	2
.LC4:
	.ascii	"Function: list, read, write, create, delete, format"
	.ascii	", initialize\000"
	.align	2
.LC5:
	.ascii	"File: (if applicable)\000"
	.align	2
.LC6:
	.ascii	"Usage: %s disk %s \000"
	.align	2
.LC7:
	.ascii	"size [mbr_file] \000"
	.align	2
.LC8:
	.ascii	"[bootloader_file] [kernel_file]\000"
	.align	2
.LC9:
	.ascii	"r+b\000"
	.align	2
.LC10:
	.ascii	"Error: Unable to open disk '%s'\012\000"
	.align	2
.LC11:
	.ascii	"Error: Not a valid BMFS drive (Disk is not BMFS for"
	.ascii	"matted).\000"
	.align	2
.LC12:
	.ascii	"/FORCE\000"
	.align	2
.LC13:
	.ascii	"Format aborted!\000"
	.align	2
.LC14:
	.ascii	"Error: File name not specified.\000"
	.align	2
.LC15:
	.ascii	"Error: Invalid file size.\000"
	.align	2
.LC16:
	.ascii	"Maximum file size in MiB: \000"
	.align	2
.LC17:
	.ascii	"Unknown command\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bgt	.L2
	ldr	r0, .L30
	bl	puts
	ldr	r0, .L30+4
	bl	puts
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+8
	bl	printf
	ldr	r0, .L30+12
	bl	puts
	ldr	r0, .L30+16
	bl	puts
	ldr	r0, .L30+20
	bl	puts
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	ldr	r2, .L30+24
	str	r3, [r2]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	ldr	r2, .L30+28
	str	r3, [r2]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #12]
	ldr	r2, .L30+32
	str	r3, [r2]
	ldr	r3, .L30+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+36
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	ble	.L4
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	ble	.L5
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #16]
	b	.L6
.L5:
	mov	r3, #0
.L6:
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r3, #5
	ble	.L7
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #20]
	b	.L8
.L7:
	mov	r3, #0
.L8:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r3, #6
	ble	.L9
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #24]
	b	.L10
.L9:
	mov	r3, #0
.L10:
	str	r3, [fp, #-12]
	ldr	r3, .L30+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	bl	initialize
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	exit
.L4:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, .L30+28
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L30+40
	bl	printf
	ldr	r0, .L30+44
	bl	printf
	ldr	r0, .L30+48
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, .L30+24
	ldr	r3, [r3]
	ldr	r1, .L30+52
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L30+56
	str	r3, [r2]
	ldr	r3, .L30+56
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L30+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+60
	bl	printf
	mov	r0, #0
	bl	exit
.L11:
	ldr	r3, .L30+56
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, .L30+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	ftell
	mov	r3, r0
	sub	r2, r3, #-67108863
	sub	r2, r2, #66060288
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L30+64
	str	r2, [r3]
	ldr	r3, .L30+56
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #1024
	mov	r0, r3
	bl	fseek
	ldr	r3, .L30+56
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #512
	ldr	r0, .L30+68
	bl	fread
	ldr	r3, .L30+56
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #4096
	mov	r0, r3
	bl	fseek
	ldr	r3, .L30+56
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #4096
	ldr	r0, .L30+72
	bl	fread
	ldr	r3, .L30+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	rewind
	ldr	r1, .L30+76
	ldr	r0, .L30+68
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L30+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+80
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	bl	format
	b	.L14
.L13:
	ldr	r0, .L30+84
	bl	puts
.L14:
	ldr	r3, .L30+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	mov	r3, #0
	b	.L15
.L12:
	ldr	r3, .L30+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+88
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	bl	list
	b	.L17
.L16:
	ldr	r3, .L30+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+80
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	ble	.L19
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L30+92
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	bl	format
	b	.L17
.L20:
	ldr	r0, .L30+96
	bl	puts
	b	.L17
.L19:
	ldr	r0, .L30+96
	bl	puts
	b	.L17
.L18:
	ldr	r3, .L30+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+100
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L30+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L30+104
	bl	puts
	b	.L17
.L22:
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	ble	.L23
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L24
	ldr	r3, .L30+32
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r1
	bl	create
	b	.L17
.L24:
	ldr	r0, .L30+108
	bl	puts
	b	.L17
.L23:
	ldr	r0, .L30+112
	bl	printf
	ldr	r3, .L30+116
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #32
	ldr	r0, .L30+120
	bl	fgets
	ldr	r0, .L30+120
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L30+124
	str	r2, [r3]
	ldr	r3, .L30+124
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L30+32
	ldr	r1, [r3]
	ldr	r3, .L30+124
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, #0
	mov	r0, r1
	bl	create
	b	.L17
.L25:
	ldr	r0, .L30+108
	bl	puts
	b	.L17
.L21:
	ldr	r3, .L30+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+128
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L30+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	read
	b	.L17
.L26:
	ldr	r3, .L30+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+132
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L30+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	write
	b	.L17
.L27:
	ldr	r3, .L30+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+136
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r3, .L30+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	delete
	b	.L17
.L28:
	ldr	r0, .L30+140
	bl	puts
.L17:
	ldr	r3, .L30+56
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L30+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L30+56
	mov	r2, #0
	str	r2, [r3]
.L29:
	mov	r3, #0
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	diskname
	.word	command
	.word	filename
	.word	s_initialize
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	disk
	.word	.LC10
	.word	disksize
	.word	DiskInfo
	.word	Directory
	.word	fs_tag
	.word	s_format
	.word	.LC11
	.word	s_list
	.word	.LC12
	.word	.LC13
	.word	s_create
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	stdin
	.word	tempstring
	.word	filesize
	.word	s_read
	.word	s_write
	.word	s_delete
	.word	.LC17
	.size	main, .-main
	.align	2
	.global	findfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	findfile, %function
findfile:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L33
.L37:
	ldr	r3, .L38
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, .L38+4
	add	r3, r2, r3
	mov	r2, #64
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L38+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L34
	mov	r3, #64
	str	r3, [fp, #-8]
	b	.L35
.L34:
	ldr	r3, .L38+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L35
	ldr	r1, .L38+8
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L38
	ldr	r3, [r3]
	mov	r2, #64
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	memcpy
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	mov	r3, #1
	b	.L36
.L35:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r3, [fp, #-8]
	cmp	r3, #63
	ble	.L37
	mov	r3, #0
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	pentry
	.word	Directory
	.word	entry
	.size	findfile, .-findfile
	.section	.rodata
	.align	2
.LC18:
	.ascii	"%s\012Disk Size: %d MiB\012\000"
	.align	2
.LC19:
	.ascii	"Name                            |            Size ("
	.ascii	"B)|      Reserved (MiB)\000"
	.align	2
.LC20:
	.ascii	"==================================================="
	.ascii	"=======================\000"
	.align	2
.LC21:
	.ascii	"%-32s %20lld %20lld\012\000"
	.text
	.align	2
	.global	list
	.syntax unified
	.arm
	.fpu softvfp
	.type	list, %function
list:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r3, .L45
	ldr	r3, [r3]
	ldr	r2, .L45+4
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L45+8
	bl	printf
	ldr	r0, .L45+12
	bl	puts
	ldr	r0, .L45+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L41
.L44:
	ldr	r3, .L45+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, .L45+24
	add	r3, r2, r3
	mov	r2, #64
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L45+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L42
	mov	r3, #64
	str	r3, [fp, #-16]
	b	.L43
.L42:
	ldr	r3, .L45+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L43
	ldr	r3, .L45+28
	add	r1, r3, #48
	ldmia	r1, {r0-r1}
	ldr	r3, .L45+28
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	adds	r4, r2, r2
	adc	r5, r3, r3
	mov	r2, r4
	mov	r3, r5
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+28
	ldr	r0, .L45+32
	bl	printf
.L43:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L41:
	ldr	r3, [fp, #-16]
	cmp	r3, #63
	ble	.L44
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L46:
	.align	2
.L45:
	.word	diskname
	.word	disksize
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	pentry
	.word	Directory
	.word	entry
	.word	.LC21
	.size	list, .-list
	.section	.rodata
	.align	2
.LC22:
	.ascii	"Format complete.\000"
	.text
	.align	2
	.global	format
	.syntax unified
	.arm
	.fpu softvfp
	.type	format, %function
format:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #512
	mov	r1, #0
	ldr	r0, .L48
	bl	memset
	mov	r2, #4096
	mov	r1, #0
	ldr	r0, .L48+4
	bl	memset
	mov	r2, #4
	ldr	r1, .L48+8
	ldr	r0, .L48
	bl	memcpy
	ldr	r3, .L48+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #1024
	mov	r0, r3
	bl	fseek
	ldr	r3, .L48+12
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #512
	ldr	r0, .L48
	bl	fwrite
	ldr	r3, .L48+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #4096
	mov	r0, r3
	bl	fseek
	ldr	r3, .L48+12
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #4096
	ldr	r0, .L48+4
	bl	fwrite
	ldr	r0, .L48+16
	bl	puts
	nop
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	DiskInfo
	.word	Directory
	.word	fs_tag
	.word	disk
	.word	.LC22
	.size	format, .-format
	.section	.rodata
	.align	2
.LC23:
	.ascii	"boot loader\000"
	.align	2
.LC24:
	.ascii	"system\000"
	.align	2
.LC25:
	.ascii	"Error: Disk size is too large\000"
	.align	2
.LC26:
	.ascii	"Error: A numeric disk size must be specified\000"
	.align	2
.LC27:
	.ascii	"Error: Invalid disk size string: '%s'\012\000"
	.align	2
.LC28:
	.ascii	"Error: Disk size must be at least %llu bytes (%lluM"
	.ascii	"iB)\012\000"
	.align	2
.LC29:
	.ascii	"rb\000"
	.align	2
.LC30:
	.ascii	"Error: Unable to open MBR file '%s'\012\000"
	.align	2
.LC31:
	.ascii	"Error: Unable to open %s file '%s'\012\000"
	.align	2
.LC32:
	.ascii	"Error: Unable to open kernel file '%s'\012\000"
	.align	2
.LC33:
	.ascii	"Error: Failed to allocate buffer\000"
	.align	2
.LC34:
	.ascii	"wb\000"
	.global	__aeabi_ul2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.align	2
.LC35:
	.ascii	"Formatting disk: %llu of %llu bytes (%.0f%%)...\015"
	.ascii	"\000"
	.align	2
.LC36:
	.ascii	"Error: Failed to write disk '%s'\012\000"
	.align	2
.LC37:
	.ascii	"Formatting disk: %llu of %llu bytes (100%%)%9s\012\000"
	.align	2
.LC38:
	.ascii	"\000"
	.align	2
.LC39:
	.ascii	"Writing master boot record.\000"
	.align	2
.LC40:
	.ascii	"Error: Failed to read file '%s'\012\000"
	.align	2
.LC41:
	.ascii	"Writing %s file.\012\000"
	.align	2
.LC42:
	.ascii	"Writing kernel.\000"
	.align	2
.LC43:
	.ascii	"Disk initialization complete.\000"
	.text
	.align	2
	.global	initialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize, %function
initialize:
	@ args = 4, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #136
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	str	r2, [fp, #-112]
	str	r3, [fp, #-116]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #51200
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L106
	str	r3, [fp, #-96]
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L51
	ldr	r3, .L106+4
	str	r3, [fp, #-96]
.L51:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L52
.L67:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-97]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-97]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L53
	ldrb	r3, [fp, #-97]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-56]
	sub	r5, fp, #52
	ldmia	r5, {r4-r5}
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	adds	r1, r2, r2
	str	r1, [fp, #-124]
	adc	r3, r3, r3
	str	r3, [fp, #-120]
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bcs	.L54
	sub	r5, fp, #52
	ldmia	r5, {r4-r5}
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	adds	r1, r2, r2
	str	r1, [fp, #-132]
	adc	r3, r3, r3
	str	r3, [fp, #-128]
	sub	r3, fp, #132
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	mov	r0, r3
	mov	r1, #0
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	ip, r2, r0
	str	ip, [fp, #-140]
	adc	r3, r3, r1
	str	r3, [fp, #-136]
	sub	r4, fp, #140
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
	b	.L55
.L54:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L56
	ldr	r3, [fp, #-56]
	mov	r0, r3
	mov	r1, #0
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	ip, r2, r0
	str	ip, [fp, #-148]
	adc	r3, r3, r1
	str	r3, [fp, #-144]
	sub	r4, fp, #148
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
	b	.L55
.L56:
	ldr	r0, .L106+8
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-68]
	b	.L55
.L53:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L57
	ldr	r0, .L106+12
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-68]
	b	.L55
.L57:
	ldrb	r3, [fp, #-97]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	sub	r3, r3, #71
	cmp	r3, #13
	ldrls	pc, [pc, r3, asl #2]
	b	.L58
.L60:
	.word	.L64
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L63
	.word	.L58
	.word	.L62
	.word	.L58
	.word	.L58
	.word	.L61
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L59
.L63:
	mov	r3, #1
	str	r3, [fp, #-76]
	b	.L65
.L62:
	mov	r3, #2
	str	r3, [fp, #-76]
	b	.L65
.L64:
	mov	r3, #3
	str	r3, [fp, #-76]
	b	.L65
.L59:
	mov	r3, #4
	str	r3, [fp, #-76]
	b	.L65
.L61:
	mov	r3, #5
	str	r3, [fp, #-76]
	b	.L65
.L58:
	ldr	r1, [fp, #-108]
	ldr	r0, .L106+16
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
	nop
.L65:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L55
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L55
	ldr	r1, [fp, #-108]
	ldr	r0, .L106+16
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
.L55:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L52:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L67
.L66:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L68
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L68
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	ble	.L68
	b	.L69
.L71:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #10
	orr	r3, r3, r0, lsr #22
	lsl	r2, r0, #10
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L70
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #10
	orr	r3, r3, r0, lsr #22
	lsl	r2, r0, #10
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L69
.L70:
	ldr	r0, .L106+8
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-68]
.L69:
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	str	r2, [fp, #-76]
	cmp	r3, #0
	bne	.L71
.L68:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L72
	mov	r0, #6291456
	mov	r1, #0
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bcs	.L72
	mov	r4, #6291456
	mov	r5, #0
	mov	r0, #6291456
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #20
	orr	r2, r2, r1, lsl #12
	lsr	r3, r1, #20
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L106+20
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
.L72:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L73
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L73
	ldr	r1, .L106+24
	ldr	r0, [fp, #-112]
	bl	fopen
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L73
	ldr	r1, [fp, #-112]
	ldr	r0, .L106+28
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
.L73:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L74
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L74
	ldr	r1, .L106+24
	ldr	r0, [fp, #-116]
	bl	fopen
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L74
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-96]
	ldr	r0, .L106+32
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
.L74:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L75
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L75
	ldr	r1, .L106+24
	ldr	r0, [fp, #4]
	bl	fopen
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L75
	ldr	r1, [fp, #4]
	ldr	r0, .L106+36
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
.L75:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L76
	ldr	r0, [fp, #-60]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L76
	ldr	r0, .L106+40
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-68]
.L76:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L77
	ldr	r1, .L106+44
	ldr	r0, [fp, #-104]
	bl	fopen
	mov	r3, r0
	ldr	r2, .L106+48
	str	r3, [r2]
	ldr	r3, .L106+48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L77
	ldr	r1, [fp, #-104]
	ldr	r0, .L106+52
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
.L77:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L78
	ldr	r2, [fp, #-60]
	mov	r1, #0
	ldr	r0, [fp, #-92]
	bl	memset
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L79
.L83:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	ldr	r3, .L106+56
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L106+60
	bl	printf
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	mov	r4, r3
	mov	r5, #0
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	cmp	r5, r7
	cmpeq	r4, r6
	bls	.L80
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	str	r3, [fp, #-72]
.L80:
	ldr	r3, .L106+48
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-92]
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L81
	ldr	r1, [fp, #-104]
	ldr	r0, .L106+64
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
	b	.L82
.L81:
	ldr	r3, [fp, #-72]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	adds	r8, r0, r2
	adc	r9, r1, r3
	str	r8, [fp, #-44]
	str	r9, [fp, #-40]
.L79:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L83
.L82:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L78
	ldr	r3, .L106+68
	str	r3, [sp, #8]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L106+72
	bl	printf
.L78:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L84
	ldr	r3, .L106+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	rewind
	bl	format
.L84:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L85
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L85
	ldr	r0, .L106+76
	bl	puts
	ldr	r3, .L106+48
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, [fp, #-88]
	mov	r2, #1
	mov	r1, #512
	ldr	r0, [fp, #-92]
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	bne	.L86
	ldr	r3, .L106+48
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #512
	ldr	r0, [fp, #-92]
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L85
	ldr	r1, [fp, #-104]
	ldr	r0, .L106+64
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
	b	.L85
.L86:
	ldr	r1, [fp, #-112]
	ldr	r0, .L106+80
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
.L85:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L87
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L87
	ldr	r1, [fp, #-96]
	ldr	r0, .L106+84
	bl	printf
	ldr	r3, .L106+48
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #8192
	mov	r0, r3
	bl	fseek
.L91:
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-60]
	mov	r1, #1
	ldr	r0, [fp, #-92]
	bl	fread
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L88
	ldr	r3, .L106+48
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-92]
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L91
	ldr	r1, [fp, #-104]
	ldr	r0, .L106+64
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
	b	.L91
.L88:
	ldr	r3, .L106+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L104
	ldr	r1, [fp, #-116]
	ldr	r0, .L106+80
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
.L104:
	nop
.L87:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L92
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L92
	ldr	r0, .L106+88
	bl	puts
.L96:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-60]
	mov	r1, #1
	ldr	r0, [fp, #-92]
	bl	fread
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L93
	ldr	r3, .L106+48
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-92]
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L96
	ldr	r1, [fp, #-104]
	ldr	r0, .L106+64
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
	b	.L96
.L93:
	ldr	r3, .L106+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L105
	ldr	r1, [fp, #4]
	ldr	r0, .L106+80
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
.L105:
	nop
.L92:
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L97
	ldr	r0, [fp, #-88]
	bl	fclose
.L97:
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L98
	ldr	r0, [fp, #-84]
	bl	fclose
.L98:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L99
	ldr	r0, [fp, #-80]
	bl	fclose
.L99:
	ldr	r3, .L106+48
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L100
	ldr	r3, .L106+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L106+48
	mov	r2, #0
	str	r2, [r3]
.L100:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L101
	ldr	r0, [fp, #-92]
	bl	free
.L101:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L102
	ldr	r0, .L106+92
	bl	puts
.L102:
	ldr	r3, [fp, #-68]
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L107:
	.align	2
.L106:
	.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	disk
	.word	.LC10
	.word	1079574528
	.word	.LC35
	.word	.LC36
	.word	.LC38
	.word	.LC37
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.size	initialize, .-initialize
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	StartingBlockCmp, %function
StartingBlockCmp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L109
	mov	r3, #1
	b	.L110
.L109:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L111
	mvn	r3, #0
	b	.L110
.L111:
	ldr	r3, [fp, #-12]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	mov	r1, r2
	ldr	r3, [fp, #-8]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	mov	r3, r2
	sub	r3, r1, r3
.L110:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	StartingBlockCmp, .-StartingBlockCmp
	.section	.rodata
	.align	2
.LC44:
	.ascii	"Creating new file...\000"
	.align	2
.LC45:
	.ascii	"Cannot create file: no free directory entries.\000"
	.align	2
.LC46:
	.ascii	"Cannot create file of size %lld MiB.\012\000"
	.align	2
.LC47:
	.ascii	"Complete\000"
	.align	2
.LC48:
	.ascii	"Error: File already exists.\000"
	.align	2
.LC49:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create
	.syntax unified
	.arm
	.fpu softvfp
	.type	create, %function
create:
	@ args = 0, pretend = 0, frame = 4264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #4224
	sub	sp, sp, #40
	sub	r1, fp, #4096
	sub	r1, r1, #28
	str	r0, [r1, #-140]
	sub	r1, fp, #4224
	sub	r1, r1, #28
	sub	r1, r1, #16
	stmdb	r1, {r2-r3}
	ldr	r3, .L137
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r3, fp, #4224
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmdb	r3, {r2-r3}
	mov	r0, #1
	mov	r1, #0
	and	ip, r2, r0
	sub	lr, fp, #4224
	sub	lr, lr, #60
	str	ip, [lr]
	and	r3, r3, r1
	sub	r2, fp, #4224
	sub	r2, r2, #56
	str	r3, [r2]
	sub	r3, fp, #4224
	sub	r3, r3, #60
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L113
	sub	r3, fp, #4224
	sub	r3, r3, #28
	sub	r3, r3, #16
	mov	r1, r3
	sub	r3, fp, #4224
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmdb	r3, {r2-r3}
	adds	r0, r2, #1
	sub	ip, fp, #4288
	sub	ip, ip, #4
	str	r0, [ip]
	adc	r3, r3, #0
	sub	r2, fp, #4288
	str	r3, [r2]
	sub	r3, fp, #4288
	sub	r3, r3, #4
	ldmia	r3, {r2-r3}
	stmdb	r1, {r2-r3}
.L113:
	sub	r2, fp, #4224
	sub	r2, r2, #28
	sub	r2, r2, #4
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #8
	sub	r1, fp, #4096
	sub	r1, r1, #28
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-140]
	bl	findfile
	mov	r3, r0
	cmp	r3, #0
	bne	.L114
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #16
	mov	ip, r3
	sub	r3, fp, #4224
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmdb	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #1
	orr	r2, r2, r1, lsl #31
	lsr	r3, r1, #1
	stmdb	ip, {r2-r3}
	ldr	r3, .L137+4
	ldr	r3, [r3]
	lsr	r2, r3, #1
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #16
	mov	r1, r3
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-128]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-124]
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #48
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #32
	mov	r1, r3
	mov	r2, #1
	mov	r3, #0
	stmdb	r1, {r2-r3}
	ldr	r0, .L137+8
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r2, .L137+12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r2, #4096
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-120]
	b	.L115
.L120:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-120]
	lsl	r3, r3, #6
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	sub	r3, r3, #4
	add	r3, r3, r1
	str	r3, [r2, #-116]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L116
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-120]
	str	r3, [r2, #-128]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-124]
	cmn	r3, #1
	bne	.L136
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-120]
	str	r3, [r2, #-124]
	b	.L136
.L116:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L119
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-124]
	cmn	r3, #1
	bne	.L119
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-120]
	str	r3, [r2, #-124]
.L119:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-120]
	add	r3, r3, #1
	str	r3, [r2, #-120]
.L115:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-120]
	cmp	r3, #63
	ble	.L120
	b	.L118
.L136:
	nop
.L118:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-124]
	cmn	r3, #1
	bne	.L121
	ldr	r0, .L137+16
	bl	puts
	b	.L112
.L121:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r1, [r3, #-128]
	sub	r0, fp, #4096
	sub	r0, r0, #28
	sub	r0, r0, #4
	ldr	r3, .L137+20
	mov	r2, #64
	bl	qsort
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-120]
	b	.L123
.L130:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-120]
	lsl	r3, r3, #6
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	sub	r3, r3, #4
	add	r3, r3, r1
	str	r3, [r2, #-116]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r2, [r2, #-120]
	ldr	r3, [r3, #-128]
	cmp	r2, r3
	beq	.L124
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L125
.L124:
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #32
	mov	r1, r3
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	subs	r6, r2, #1
	sbc	r7, r3, #0
	stm	r1, {r6-r7}
	b	.L126
.L125:
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #32
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-116]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
.L126:
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #32
	mov	r2, r3
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldmia	r2, {r0-r1}
	ldmdb	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmdb	r3, {r2-r3}
	cmp	r3, r5
	cmpeq	r2, r4
	bhi	.L127
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #48
	mov	r1, r3
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldmdb	r3, {r2-r3}
	stm	r1, {r2-r3}
	b	.L128
.L127:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r2, [r2, #-120]
	ldr	r3, [r3, #-128]
	cmp	r2, r3
	bge	.L129
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-116]
	add	r1, r3, #32
	ldmia	r1, {r0-r1}
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-116]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	sub	ip, fp, #4160
	sub	ip, ip, #28
	sub	ip, ip, #32
	adds	r8, r0, r2
	adc	r9, r1, r3
	stmdb	ip, {r8-r9}
.L129:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-120]
	add	r3, r3, #1
	str	r3, [r2, #-120]
.L123:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r2, [r2, #-128]
	ldr	r3, [r3, #-120]
	cmp	r2, r3
	bge	.L130
.L128:
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L131
	sub	r3, fp, #4224
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmdb	r3, {r2-r3}
	ldr	r0, .L137+24
	bl	printf
	b	.L112
.L131:
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-124]
	lsl	r3, r3, #6
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	ldr	r3, .L137+12
	add	r3, r1, r3
	str	r3, [r2, #-116]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r1, [r3, #-116]
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	str	r2, [r1, #32]
	str	r3, [r1, #36]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r1, [r3, #-116]
	sub	r3, fp, #4160
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmdb	r3, {r2-r3}
	str	r2, [r1, #40]
	str	r3, [r1, #44]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r1, [r3, #-116]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #48]
	str	r3, [r1, #52]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-116]
	sub	r2, fp, #4096
	sub	r2, r2, #28
	ldr	r1, [r2, #-140]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r2, [r2, #-124]
	ldr	r3, [r3, #-128]
	cmp	r2, r3
	bne	.L132
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-128]
	cmp	r3, #62
	bgt	.L132
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-128]
	add	r3, r3, #1
	lsl	r3, r3, #6
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #28
	mov	r2, r3
	ldr	r3, .L137+12
	add	r3, r1, r3
	str	r3, [r2, #-116]
	sub	r3, fp, #4096
	sub	r3, r3, #28
	ldr	r3, [r3, #-116]
	mov	r2, #0
	strb	r2, [r3]
.L132:
	ldr	r3, .L137+28
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #4096
	mov	r0, r3
	bl	fseek
	ldr	r3, .L137+28
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #4096
	ldr	r0, .L137+12
	bl	fwrite
	ldr	r0, .L137+32
	bl	puts
	b	.L112
.L114:
	ldr	r0, .L137+36
	bl	puts
.L112:
	ldr	r3, .L137
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L135
	bl	__stack_chk_fail
.L135:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L138:
	.align	2
.L137:
	.word	.LC49
	.word	disksize
	.word	.LC44
	.word	Directory
	.word	.LC45
	.word	StartingBlockCmp
	.word	.LC46
	.word	disk
	.word	.LC47
	.word	.LC48
	.size	create, .-create
	.section	.rodata
	.align	2
.LC50:
	.ascii	"Error: File not found in BMFS.\000"
	.align	2
.LC51:
	.ascii	"Reading '%s' from BMFS to local file... \000"
	.align	2
.LC52:
	.ascii	"Error: Could not open local file '%s'\012\000"
	.align	2
.LC53:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read
	.syntax unified
	.arm
	.fpu softvfp
	.type	read, %function
read:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	ldr	r3, .L147
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #88
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	findfile
	mov	r3, r0
	cmp	r3, #0
	bne	.L140
	ldr	r0, .L147+4
	bl	puts
	b	.L146
.L140:
	ldr	r1, [fp, #-96]
	ldr	r0, .L147+8
	bl	printf
	sub	r3, fp, #76
	ldr	r1, .L147+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L142
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L147+16
	bl	printf
	b	.L146
.L142:
	ldr	r3, .L147+20
	ldr	r0, [r3]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #21
	mov	r2, #0
	mov	r1, r3
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L143
.L144:
	ldr	r3, .L147+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r1, [fp, #-80]
	mov	r0, r3
	bl	putc
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L143:
	ldr	r3, [fp, #-84]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L144
	ldr	r0, [fp, #-80]
	bl	fclose
	ldr	r0, .L147+24
	bl	puts
.L146:
	nop
	ldr	r3, .L147
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L145
	bl	__stack_chk_fail
.L145:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L148:
	.align	2
.L147:
	.word	.LC53
	.word	.LC50
	.word	.LC51
	.word	.LC34
	.word	.LC52
	.word	disk
	.word	.LC47
	.size	read, .-read
	.section	.rodata
	.align	2
.LC54:
	.ascii	"Error: File not found in BMFS. A file entry must fi"
	.ascii	"rst be created.\000"
	.align	2
.LC55:
	.ascii	"Writing local file '%s' to BMFS... \000"
	.align	2
.LC56:
	.ascii	"Not enough reserved space in BMFS.\000"
	.align	2
.LC57:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write
	.syntax unified
	.arm
	.fpu softvfp
	.type	write, %function
write:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L159
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #96
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	findfile
	mov	r3, r0
	cmp	r3, #0
	bne	.L150
	ldr	r0, .L159+4
	bl	puts
	b	.L158
.L150:
	ldr	r1, [fp, #-104]
	ldr	r0, .L159+8
	bl	printf
	ldr	r1, .L159+12
	ldr	r0, [fp, #-104]
	bl	fopen
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L152
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L159+16
	bl	printf
	b	.L158
.L152:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-88]
	bl	fseek
	ldr	r0, [fp, #-88]
	bl	ftell
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r0, [fp, #-88]
	bl	rewind
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #21
	orr	r3, r3, r0, lsr #11
	lsl	r2, r0, #21
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	cmp	r3, r1
	cmpeq	r2, r0
	bcs	.L153
	ldr	r0, .L159+20
	bl	puts
	b	.L154
.L153:
	ldr	r3, .L159+24
	ldr	r0, [r3]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #21
	mov	r2, #0
	mov	r1, r3
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L155
.L156:
	ldr	r0, [fp, #-88]
	bl	getc
	mov	r2, r0
	ldr	r3, .L159+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	putc
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L155:
	ldr	r3, [fp, #-92]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L156
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #6
	add	r3, r3, #48
	ldr	r2, .L159+28
	add	r3, r3, r2
	sub	r1, fp, #84
	mov	r2, #8
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L159+24
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #4096
	mov	r0, r3
	bl	fseek
	ldr	r3, .L159+24
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #4096
	ldr	r0, .L159+28
	bl	fwrite
	ldr	r0, .L159+32
	bl	puts
.L154:
	ldr	r0, [fp, #-88]
	bl	fclose
.L158:
	nop
	ldr	r3, .L159
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L157
	bl	__stack_chk_fail
.L157:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L160:
	.align	2
.L159:
	.word	.LC57
	.word	.LC54
	.word	.LC55
	.word	.LC29
	.word	.LC52
	.word	.LC56
	.word	disk
	.word	Directory
	.word	.LC47
	.size	write, .-write
	.section	.rodata
	.align	2
.LC58:
	.ascii	"Deleting file '%s' from BMFS... \000"
	.align	2
.LC59:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete, %function
delete:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	ldr	r3, .L166
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	strb	r3, [fp, #-81]
	sub	r2, fp, #80
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, [fp, #-88]
	bl	findfile
	mov	r3, r0
	cmp	r3, #0
	bne	.L162
	ldr	r0, .L166+4
	bl	puts
	b	.L165
.L162:
	ldr	r1, [fp, #-88]
	ldr	r0, .L166+8
	bl	printf
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, .L166+12
	add	r3, r2, r3
	ldrb	r2, [fp, #-81]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, .L166+16
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #4096
	mov	r0, r3
	bl	fseek
	ldr	r3, .L166+16
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #4096
	ldr	r0, .L166+12
	bl	fwrite
	ldr	r0, .L166+20
	bl	puts
.L165:
	nop
	ldr	r3, .L166
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L164
	bl	__stack_chk_fail
.L164:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L167:
	.align	2
.L166:
	.word	.LC59
	.word	.LC50
	.word	.LC58
	.word	Directory
	.word	disk
	.word	.LC47
	.size	delete, .-delete
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
