	.file	"124661.c"
	.intel_syntax noprefix
	.text
	.globl	fp
	.bss
	.align 8
	.type	fp, @object
	.size	fp, 8
fp:
	.zero	8
	.globl	Dir
	.align 32
	.type	Dir, @object
	.size	Dir, 512
Dir:
	.zero	512
	.globl	BPB_BytesPerSec
	.align 2
	.type	BPB_BytesPerSec, @object
	.size	BPB_BytesPerSec, 2
BPB_BytesPerSec:
	.zero	2
	.globl	BPB_SecPerClus
	.type	BPB_SecPerClus, @object
	.size	BPB_SecPerClus, 1
BPB_SecPerClus:
	.zero	1
	.globl	BPB_RsvdSecCnt
	.align 2
	.type	BPB_RsvdSecCnt, @object
	.size	BPB_RsvdSecCnt, 2
BPB_RsvdSecCnt:
	.zero	2
	.globl	BPB_NumFATS
	.type	BPB_NumFATS, @object
	.size	BPB_NumFATS, 1
BPB_NumFATS:
	.zero	1
	.globl	BPB_FATSz32
	.align 4
	.type	BPB_FATSz32, @object
	.size	BPB_FATSz32, 4
BPB_FATSz32:
	.zero	4
	.globl	currDirectory
	.align 4
	.type	currDirectory, @object
	.size	currDirectory, 4
currDirectory:
	.zero	4
	.text
	.globl	NextLB
	.type	NextLB, @function
NextLB:
.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	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	edx, ax
	movzx	eax, WORD PTR BPB_RsvdSecCnt[rip]
	movzx	eax, ax
	imul	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	sal	eax, 2
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR fp[rip]
	lea	rax, -14[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	fread@PLT
	movzx	eax, WORD PTR -14[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	NextLB, .-NextLB
	.globl	LBAToOffset
	.type	LBAToOffset, @function
LBAToOffset:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, -2[rax]
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	mov	ecx, edx
	imul	ecx, eax
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	edx, ax
	movzx	eax, WORD PTR BPB_RsvdSecCnt[rip]
	movzx	eax, ax
	imul	eax, edx
	add	eax, ecx
	mov	ecx, eax
	movzx	eax, BYTE PTR BPB_NumFATS[rip]
	movzx	edx, al
	mov	eax, DWORD PTR BPB_FATSz32[rip]
	imul	edx, eax
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	imul	eax, edx
	add	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	LBAToOffset, .-LBAToOffset
	.section	.rodata
.LC0:
	.string	".."
.LC1:
	.string	"."
	.text
	.globl	compare
	.type	compare, @function
compare:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	rcx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L7
	mov	rcx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L8
	mov	eax, 1
	jmp	.L14
.L8:
	mov	eax, 0
	jmp	.L14
.L7:
	mov	rcx, QWORD PTR -96[rbp]
	lea	rax, -32[rbp]
	mov	edx, 11
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -21[rbp], 0
	lea	rax, -43[rbp]
	mov	edx, 11
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -88[rbp]
	lea	rax, -43[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -20[rbp]
	mov	edx, 12
	mov	esi, 32
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -43[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -56[rbp]
	lea	rax, -20[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -20[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
.L10:
	mov	DWORD PTR -68[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	movzx	eax, BYTE PTR -20[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	BYTE PTR -20[rbp+rax], dl
	add	DWORD PTR -68[rbp], 1
.L11:
	cmp	DWORD PTR -68[rbp], 10
	jle	.L12
	lea	rcx, -32[rbp]
	lea	rax, -20[rbp]
	mov	edx, 11
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L13
	mov	eax, 1
	jmp	.L14
.L13:
	mov	eax, 0
.L14:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compare, .-compare
	.globl	ls
	.type	ls, @function
ls:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip]
	lea	rcx, [rdx+rax]
	lea	rax, -20[rbp]
	mov	edx, 11
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -9[rbp], 0
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip+11]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 1
	je	.L18
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip+11]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 16
	je	.L18
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip+11]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 32
	jne	.L19
.L18:
	movzx	eax, BYTE PTR -20[rbp]
	cmp	al, -27
	je	.L19
	lea	rax, -20[rbp]
	mov	rdi, rax
	call	puts@PLT
.L19:
	add	DWORD PTR -24[rbp], 1
.L17:
	cmp	DWORD PTR -24[rbp], 15
	jle	.L20
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	ls, .-ls
	.section	.rodata
	.align 8
.LC2:
	.string	"Error: offset can't be negative"
.LC3:
	.string	"%x "
.LC4:
	.string	"Error: File not found"
	.text
	.globl	readfile
	.type	readfile, @function
readfile:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -120[rbp], rdi
	mov	DWORD PTR -124[rbp], esi
	mov	DWORD PTR -128[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -100[rbp], 0
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	jns	.L23
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L23:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L24
.L40:
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	compare
	test	eax, eax
	je	.L25
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip+26]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	mov	DWORD PTR -92[rbp], eax
	mov	DWORD PTR -100[rbp], 1
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -88[rbp], eax
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	NextLB
	cwde
	mov	DWORD PTR -92[rbp], eax
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	sub	DWORD PTR -88[rbp], eax
.L26:
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	cmp	DWORD PTR -88[rbp], eax
	jge	.L27
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	LBAToOffset
	mov	DWORD PTR -84[rbp], eax
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	ecx, ax
	mov	eax, DWORD PTR -124[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -80[rbp], edx
	mov	edx, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -80[rbp]
	add	eax, edx
	movsx	rcx, eax
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	mov	rdx, rsp
	mov	rbx, rdx
	movzx	edx, ax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movzx	edx, ax
	mov	r12, rdx
	mov	r13d, 0
	movzx	edx, ax
	mov	r14, rdx
	mov	r15d, 0
	movzx	eax, ax
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L28:
	cmp	rsp, rdx
	je	.L29
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L28
.L29:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L30
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L30:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	sub	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	rcx, QWORD PTR fp[rip]
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -104[rbp], 0
	jmp	.L31
.L32:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -104[rbp], 1
.L31:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L32
	mov	eax, DWORD PTR -76[rbp]
	sub	DWORD PTR -96[rbp], eax
	jmp	.L33
.L36:
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	NextLB
	cwde
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	LBAToOffset
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rcx, QWORD PTR fp[rip]
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	edx, ax
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -104[rbp], 0
	jmp	.L34
.L35:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -104[rbp], 1
.L34:
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	cmp	DWORD PTR -104[rbp], eax
	jl	.L35
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	sub	DWORD PTR -96[rbp], eax
.L33:
	cmp	DWORD PTR -96[rbp], 511
	jg	.L36
	cmp	DWORD PTR -96[rbp], 0
	je	.L37
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	NextLB
	cwde
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	LBAToOffset
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rcx, QWORD PTR fp[rip]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -104[rbp], 0
	jmp	.L38
.L39:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -104[rbp], 1
.L38:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jl	.L39
.L37:
	mov	edi, 10
	call	putchar@PLT
	mov	rsp, rbx
.L25:
	add	DWORD PTR -104[rbp], 1
.L24:
	cmp	DWORD PTR -104[rbp], 15
	jle	.L40
	cmp	DWORD PTR -100[rbp], 0
	jne	.L41
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L22
.L41:
.L22:
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	readfile, .-readfile
	.section	.rodata
.LC5:
	.string	"r"
.LC6:
	.string	"ERROR: File not found."
.LC7:
	.string	"w"
.LC8:
	.string	"Error: Cant open new file %s\n"
	.text
	.globl	getFile
	.type	getFile, @function
getFile:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 592
	mov	QWORD PTR -584[rbp], rdi
	mov	QWORD PTR -592[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -584[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	DWORD PTR -572[rbp], 0
	mov	DWORD PTR -568[rbp], 0
	jmp	.L45
.L47:
	mov	eax, DWORD PTR -568[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -584[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	compare
	test	eax, eax
	je	.L46
	mov	rax, QWORD PTR -584[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L46
	mov	DWORD PTR -572[rbp], 1
.L46:
	add	DWORD PTR -568[rbp], 1
.L45:
	cmp	DWORD PTR -568[rbp], 15
	jle	.L47
	cmp	DWORD PTR -572[rbp], 0
	jne	.L48
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L44
.L48:
	cmp	QWORD PTR -592[rbp], 0
	jne	.L50
	mov	rax, QWORD PTR -584[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], 0
	jne	.L51
	mov	rax, QWORD PTR -584[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L51
.L50:
	mov	rax, QWORD PTR -592[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], 0
	jne	.L51
	mov	rax, QWORD PTR -592[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L51:
	mov	DWORD PTR -552[rbp], 0
	mov	DWORD PTR -564[rbp], 0
	jmp	.L52
.L57:
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -584[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	compare
	test	eax, eax
	je	.L53
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip+26]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	mov	DWORD PTR -560[rbp], eax
	mov	DWORD PTR -552[rbp], 1
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip+28]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -556[rbp], eax
	mov	DWORD PTR -548[rbp], 0
	jmp	.L54
.L55:
	mov	eax, DWORD PTR -560[rbp]
	mov	edi, eax
	call	LBAToOffset
	mov	DWORD PTR -548[rbp], eax
	mov	eax, DWORD PTR -548[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rcx, QWORD PTR fp[rip]
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	edx, ax
	lea	rax, -528[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -544[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	mov	edx, 512
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -560[rbp]
	mov	edi, eax
	call	NextLB
	cwde
	mov	DWORD PTR -560[rbp], eax
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	sub	DWORD PTR -556[rbp], eax
.L54:
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	cmp	DWORD PTR -556[rbp], eax
	jge	.L55
	cmp	DWORD PTR -556[rbp], 0
	je	.L56
	mov	eax, DWORD PTR -560[rbp]
	mov	edi, eax
	call	LBAToOffset
	mov	DWORD PTR -548[rbp], eax
	mov	eax, DWORD PTR -548[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rcx, QWORD PTR fp[rip]
	mov	eax, DWORD PTR -556[rbp]
	movsx	rdx, eax
	lea	rax, -528[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -556[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -544[rbp]
	lea	rax, -528[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L56:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L53:
	add	DWORD PTR -564[rbp], 1
.L52:
	cmp	DWORD PTR -564[rbp], 15
	jle	.L57
.L44:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	getFile, .-getFile
	.section	.rodata
.LC9:
	.string	"mfs> "
.LC10:
	.string	" \t\n"
.LC11:
	.string	"open"
	.align 8
.LC12:
	.string	"ERROR: File System image already open."
	.align 8
.LC13:
	.string	"Error: File system image not found."
	.align 8
.LC14:
	.string	"ERROR: Too many arguments for open command."
.LC15:
	.string	"close"
.LC16:
	.string	"Error: File system not open. "
.LC17:
	.string	"bpb"
	.align 8
.LC18:
	.string	"ERROR: File System image must be opened first."
.LC19:
	.string	"BPB_BytesPerSec(Decimal): %d\n"
	.align 8
.LC20:
	.string	"BPB_BytesPerSec(HexaDecimal): 0x%x\n"
.LC21:
	.string	"BPB_SecPerClus(Decimal): %d\n"
	.align 8
.LC22:
	.string	"BPB_SecPerClus (HexaDecimal): 0x%x\n"
.LC23:
	.string	"BPB_RsvdSecCnt (Decimal): %d\n"
	.align 8
.LC24:
	.string	"BPB_RsvdSecCnt (HexaDecimal): 0x%x\n"
.LC25:
	.string	"BPB_NumFATS (Decimal): %d\n"
	.align 8
.LC26:
	.string	"BPB_NumFATS (HexaDecimal): 0x%x\n"
.LC27:
	.string	"BPB_FATSz32 (Decimal): %d\n"
	.align 8
.LC28:
	.string	"BPB_FATSz32 (HexaDecimal): 0x%x\n"
.LC29:
	.string	"ls"
	.align 8
.LC30:
	.string	"Error: Invalid argument for directory with ls command."
.LC31:
	.string	"cd"
	.align 8
.LC32:
	.string	"ERRORR: Invalid number of arguments for cd command."
.LC33:
	.string	"Error: Directory not found"
.LC34:
	.string	"read"
	.align 8
.LC35:
	.string	"Error: Must provide filename, position, and number of bytes to read."
.LC36:
	.string	"stat"
	.align 8
.LC37:
	.string	"%s Attr: %d Size: %d Cluster: %d\n"
	.align 8
.LC38:
	.string	"ERROR: Invalid number of arguments for stat command."
.LC39:
	.string	"get"
	.align 8
.LC40:
	.string	"ERROR: Invalid number of arguments for get command."
.LC41:
	.string	"quit"
.LC42:
	.string	"exit"
.LC43:
	.string	"Closing the Fat32 System.."
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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, 728
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -721[rbp], 0
	mov	edi, 255
	call	malloc@PLT
	mov	QWORD PTR -664[rbp], rax
.L120:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L60:
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -664[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L60
	mov	rax, QWORD PTR -664[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L123
	mov	DWORD PTR -720[rbp], 0
	mov	rax, QWORD PTR -664[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -672[rbp], rax
	mov	rax, QWORD PTR -672[rbp]
	mov	QWORD PTR -656[rbp], rax
	jmp	.L63
.L66:
	mov	rax, QWORD PTR -648[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	strndup@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -720[rbp]
	cdqe
	mov	QWORD PTR -640[rbp+rax*8], rdx
	mov	eax, DWORD PTR -720[rbp]
	cdqe
	mov	rax, QWORD PTR -640[rbp+rax*8]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L64
	mov	eax, DWORD PTR -720[rbp]
	cdqe
	mov	QWORD PTR -640[rbp+rax*8], 0
.L64:
	add	DWORD PTR -720[rbp], 1
.L63:
	lea	rax, -672[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -648[rbp], rax
	cmp	QWORD PTR -648[rbp], 0
	je	.L65
	cmp	DWORD PTR -720[rbp], 9
	jle	.L66
.L65:
	mov	rax, QWORD PTR -640[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L67
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	je	.L68
	mov	BYTE PTR -721[rbp], 1
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L119
.L68:
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L69
	cmp	DWORD PTR -720[rbp], 3
	jg	.L69
	mov	rax, QWORD PTR -632[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR fp[rip], rax
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L70
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L119
.L70:
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	esi, 11
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 2
	lea	rdi, BPB_BytesPerSec[rip]
	call	fread@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	esi, 13
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 1
	lea	rdi, BPB_SecPerClus[rip]
	call	fread@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	esi, 14
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 2
	lea	rdi, BPB_RsvdSecCnt[rip]
	call	fread@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	esi, 16
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, BPB_NumFATS[rip]
	call	fread@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	esi, 36
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	lea	rdi, BPB_FATSz32[rip]
	call	fread@PLT
	movzx	eax, WORD PTR BPB_RsvdSecCnt[rip]
	movzx	edx, ax
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	imul	eax, edx
	mov	ecx, eax
	movzx	eax, BYTE PTR BPB_NumFATS[rip]
	movzx	edx, al
	mov	eax, DWORD PTR BPB_FATSz32[rip]
	imul	edx, eax
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	imul	eax, edx
	add	eax, ecx
	mov	DWORD PTR -676[rbp], eax
	mov	eax, DWORD PTR -676[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 32
	lea	rdi, Dir[rip]
	call	fread@PLT
	jmp	.L119
.L69:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L120
.L67:
	mov	rax, QWORD PTR -640[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L73
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	je	.L74
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR fp[rip], 0
	jmp	.L120
.L74:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L120
.L73:
	mov	rax, QWORD PTR -640[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L75
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L76
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L120
.L76:
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR BPB_BytesPerSec[rip]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR BPB_SecPerClus[rip]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR BPB_SecPerClus[rip]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR BPB_RsvdSecCnt[rip]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR BPB_RsvdSecCnt[rip]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR BPB_NumFATS[rip]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR BPB_NumFATS[rip]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR BPB_FATSz32[rip]
	mov	esi, eax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR BPB_FATSz32[rip]
	mov	esi, eax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L120
.L75:
	mov	rax, QWORD PTR -640[rbp]
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L77
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L78
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L120
.L78:
	cmp	DWORD PTR -720[rbp], 2
	jne	.L79
	mov	eax, 0
	call	ls
	jmp	.L120
.L79:
	cmp	DWORD PTR -720[rbp], 3
	jne	.L120
	mov	rax, QWORD PTR -632[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L80
	mov	eax, 0
	call	ls
	jmp	.L120
.L80:
	mov	DWORD PTR -712[rbp], 0
	mov	DWORD PTR -716[rbp], 0
	jmp	.L81
.L85:
	mov	eax, DWORD PTR -716[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -632[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	compare
	test	eax, eax
	je	.L82
	mov	eax, DWORD PTR -716[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip+26]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	mov	DWORD PTR -708[rbp], eax
	cmp	DWORD PTR -708[rbp], 0
	jne	.L83
	mov	DWORD PTR -708[rbp], 2
.L83:
	mov	eax, DWORD PTR -708[rbp]
	mov	edi, eax
	call	LBAToOffset
	mov	DWORD PTR -680[rbp], eax
	mov	eax, DWORD PTR -680[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR fp[rip]
	lea	rax, -560[rbp]
	mov	rcx, rdx
	mov	edx, 16
	mov	esi, 32
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -712[rbp], 1
	jmp	.L84
.L82:
	add	DWORD PTR -716[rbp], 1
.L81:
	cmp	DWORD PTR -716[rbp], 15
	jle	.L85
.L84:
	cmp	DWORD PTR -712[rbp], 0
	jne	.L86
	lea	rdi, .LC30[rip]
	call	puts@PLT
	jmp	.L120
.L86:
	mov	DWORD PTR -716[rbp], 0
	jmp	.L88
.L91:
	lea	rdx, -560[rbp]
	mov	eax, DWORD PTR -716[rbp]
	cdqe
	sal	rax, 5
	lea	rcx, [rdx+rax]
	lea	rax, -36[rbp]
	mov	edx, 11
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -25[rbp], 0
	mov	eax, DWORD PTR -716[rbp]
	cdqe
	sal	rax, 5
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 533
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	je	.L89
	mov	eax, DWORD PTR -716[rbp]
	cdqe
	sal	rax, 5
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 533
	movzx	eax, BYTE PTR [rax]
	cmp	al, 16
	je	.L89
	mov	eax, DWORD PTR -716[rbp]
	cdqe
	sal	rax, 5
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 533
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L90
.L89:
	movzx	eax, BYTE PTR -36[rbp]
	cmp	al, -27
	je	.L90
	lea	rax, -36[rbp]
	mov	rdi, rax
	call	puts@PLT
.L90:
	add	DWORD PTR -716[rbp], 1
.L88:
	cmp	DWORD PTR -716[rbp], 15
	jle	.L91
	jmp	.L120
.L77:
	mov	rax, QWORD PTR -640[rbp]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L92
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L93
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L120
.L93:
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	je	.L95
	cmp	DWORD PTR -720[rbp], 3
	je	.L95
	lea	rdi, .LC32[rip]
	call	puts@PLT
	jmp	.L119
.L95:
	mov	DWORD PTR -700[rbp], 0
	mov	DWORD PTR -704[rbp], 0
	jmp	.L96
.L100:
	mov	eax, DWORD PTR -704[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -632[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	compare
	test	eax, eax
	je	.L97
	mov	eax, DWORD PTR -704[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip+26]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	mov	DWORD PTR -696[rbp], eax
	cmp	DWORD PTR -696[rbp], 0
	jne	.L98
	mov	DWORD PTR -696[rbp], 2
.L98:
	mov	eax, DWORD PTR -696[rbp]
	mov	edi, eax
	call	LBAToOffset
	mov	DWORD PTR -684[rbp], eax
	mov	eax, DWORD PTR -684[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 32
	lea	rdi, Dir[rip]
	call	fread@PLT
	mov	DWORD PTR -700[rbp], 1
	jmp	.L99
.L97:
	add	DWORD PTR -704[rbp], 1
.L96:
	cmp	DWORD PTR -704[rbp], 15
	jle	.L100
.L99:
	cmp	DWORD PTR -700[rbp], 0
	jne	.L120
	lea	rdi, .LC33[rip]
	call	puts@PLT
	jmp	.L120
.L92:
	mov	rax, QWORD PTR -640[rbp]
	mov	rsi, rax
	lea	rdi, .LC34[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L101
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L102
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L120
.L102:
	cmp	DWORD PTR -720[rbp], 4
	jg	.L103
	lea	rdi, .LC35[rip]
	call	puts@PLT
	jmp	.L120
.L103:
	mov	rax, QWORD PTR -616[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -624[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR -632[rbp]
	mov	edx, ebx
	mov	esi, ecx
	mov	rdi, rax
	call	readfile
	jmp	.L120
.L101:
	mov	rax, QWORD PTR -640[rbp]
	mov	rsi, rax
	lea	rdi, .LC36[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L104
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L105
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L120
.L105:
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	je	.L107
	cmp	DWORD PTR -720[rbp], 3
	jne	.L107
	mov	DWORD PTR -688[rbp], 0
	mov	DWORD PTR -692[rbp], 0
	jmp	.L108
.L110:
	mov	eax, DWORD PTR -692[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -632[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	compare
	test	eax, eax
	je	.L109
	mov	eax, DWORD PTR -692[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip+26]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	esi, ax
	mov	ecx, DWORD PTR Dir[rip+60]
	mov	eax, DWORD PTR -692[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, Dir[rip+11]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	edx, al
	mov	rax, QWORD PTR -632[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -688[rbp], 1
.L109:
	add	DWORD PTR -692[rbp], 1
.L108:
	cmp	DWORD PTR -692[rbp], 15
	jle	.L110
	cmp	DWORD PTR -688[rbp], 0
	jne	.L124
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L124
.L107:
	lea	rdi, .LC38[rip]
	call	puts@PLT
	jmp	.L120
.L104:
	mov	rax, QWORD PTR -640[rbp]
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L112
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L113
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L120
.L113:
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	je	.L115
	cmp	DWORD PTR -720[rbp], 3
	je	.L115
	cmp	DWORD PTR -720[rbp], 4
	je	.L115
	lea	rdi, .LC40[rip]
	call	puts@PLT
	jmp	.L119
.L115:
	mov	rdx, QWORD PTR -624[rbp]
	mov	rax, QWORD PTR -632[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getFile
	jmp	.L120
.L112:
	mov	rax, QWORD PTR -640[rbp]
	mov	rsi, rax
	lea	rdi, .LC41[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L116
	mov	rax, QWORD PTR -640[rbp]
	mov	rsi, rax
	lea	rdi, .LC42[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L120
.L116:
	lea	rdi, .LC43[rip]
	call	puts@PLT
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	je	.L117
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR fp[rip], 0
.L117:
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L121
	jmp	.L122
.L123:
	nop
	jmp	.L120
.L124:
	nop
.L119:
	jmp	.L120
.L122:
	call	__stack_chk_fail@PLT
.L121:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"124661.c"
	.text
	.comm	fp,4,4
	.comm	Dir,512,4
	.comm	BPB_BytesPerSec,2,2
	.comm	BPB_SecPerClus,1,1
	.comm	BPB_RsvdSecCnt,2,2
	.comm	BPB_NumFATS,1,1
	.comm	BPB_FATSz32,4,4
	.comm	currDirectory,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	NextLB
	.syntax unified
	.arm
	.fpu softvfp
	.type	NextLB, %function
NextLB:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L4+4
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L4+8
	ldrh	r3, [r3]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, .L4+12
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mov	r2, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, .L4+12
	ldr	r3, [r3]
	sub	r0, fp, #14
	mov	r2, #1
	mov	r1, #2
	bl	fread
	ldrsh	r3, [fp, #-14]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	BPB_BytesPerSec
	.word	BPB_RsvdSecCnt
	.word	fp
	.size	NextLB, .-NextLB
	.align	2
	.global	LBAToOffset
	.syntax unified
	.arm
	.fpu softvfp
	.type	LBAToOffset, %function
LBAToOffset:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #2
	ldr	r2, .L8
	ldrh	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, .L8
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r3, .L8+4
	ldrh	r3, [r3]
	mul	r3, r1, r3
	add	r3, r2, r3
	mov	r1, r3
	ldr	r3, .L8+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L8+12
	ldr	r3, [r3]
	mul	r3, r2, r3
	ldr	r2, .L8
	ldrh	r2, [r2]
	mul	r3, r2, r3
	add	r3, r1, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	BPB_BytesPerSec
	.word	BPB_RsvdSecCnt
	.word	BPB_NumFATS
	.word	BPB_FATSz32
	.size	LBAToOffset, .-LBAToOffset
	.section	.rodata
	.align	2
.LC1:
	.ascii	"..\000"
	.align	2
.LC2:
	.ascii	".\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare, %function
compare:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L20+4
	str	r3, [fp, #-60]
	mov	r2, #2
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-60]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r2, #2
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-72]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	mov	r3, #1
	b	.L18
.L12:
	mov	r3, #0
	b	.L18
.L11:
	sub	r3, fp, #40
	mov	r2, #11
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-29]
	sub	r3, fp, #52
	mov	r2, #11
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-72]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #52
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #28
	mov	r2, #12
	mov	r1, #32
	mov	r0, r3
	bl	memset
	sub	r3, fp, #52
	ldr	r1, .L20+8
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-56]
	ldr	r0, [fp, #-56]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #28
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	strncpy
	ldr	r1, .L20+8
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L14
	sub	r4, fp, #28
	add	r4, r4, #8
	ldr	r0, [fp, #-56]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-56]
	mov	r0, r4
	bl	strncpy
.L14:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L15
.L16:
	sub	r2, fp, #28
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r1, r3, #255
	sub	r2, fp, #28
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L15:
	ldr	r3, [fp, #-64]
	cmp	r3, #10
	ble	.L16
	sub	r1, fp, #40
	sub	r3, fp, #28
	mov	r2, #11
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	mov	r3, #1
	b	.L18
.L17:
	mov	r3, #0
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	compare, .-compare
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ls
	.syntax unified
	.arm
	.fpu softvfp
	.type	ls, %function
ls:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L23
.L26:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #5
	ldr	r2, .L28+4
	add	r1, r3, r2
	sub	r3, fp, #20
	mov	r2, #11
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-9]
	ldr	r2, .L28+4
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L24
	ldr	r2, .L28+4
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	cmp	r3, #16
	beq	.L24
	ldr	r2, .L28+4
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L25
.L24:
	sub	r3, fp, #20
	mov	r0, r3
	bl	puts
.L25:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L23:
	ldr	r3, [fp, #-24]
	cmp	r3, #15
	ble	.L26
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC4
	.word	Dir
	.size	ls, .-ls
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Error: offset can't be negative\000"
	.global	__aeabi_idivmod
	.align	2
.LC6:
	.ascii	"%x \000"
	.align	2
.LC7:
	.ascii	"Error: File not found\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	readfile, %function
readfile:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bge	.L31
	ldr	r0, .L49+4
	bl	puts
.L31:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L32
.L45:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #5
	ldr	r2, .L49+8
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	compare
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r2, .L49+8
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-40]
	b	.L34
.L35:
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	NextLB
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, .L49+12
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-40]
	sub	r3, r3, r2
	str	r3, [fp, #-40]
.L34:
	ldr	r3, .L49+12
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	bge	.L35
	ldr	r0, [fp, #-44]
	bl	LBAToOffset
	str	r0, [fp, #-36]
	ldr	r3, .L49+12
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-68]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-32]
	ldr	r3, .L49+16
	ldr	r0, [r3]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	bl	fseek
	ldr	r3, .L49+12
	ldrh	ip, [r3]
	mov	r3, sp
	mov	r4, r3
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L49+12
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, .L49+16
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L36
.L37:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L49+20
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L36:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L37
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-48]
	b	.L38
.L41:
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	NextLB
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-44]
	bl	LBAToOffset
	str	r0, [fp, #-36]
	ldr	r3, .L49+16
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	fseek
	ldr	r3, .L49+12
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L49+16
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L39
.L40:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L49+20
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L39:
	ldr	r3, .L49+12
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	blt	.L40
	ldr	r3, .L49+12
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-48]
	sub	r3, r3, r2
	str	r3, [fp, #-48]
.L38:
	ldr	r3, [fp, #-48]
	cmp	r3, #512
	bge	.L41
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	NextLB
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-44]
	bl	LBAToOffset
	str	r0, [fp, #-36]
	ldr	r3, .L49+16
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	fseek
	ldr	r2, [fp, #-48]
	ldr	r3, .L49+16
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L43
.L44:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L49+20
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L43:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L44
.L42:
	mov	r0, #10
	bl	putchar
	mov	sp, r4
.L33:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L32:
	ldr	r3, [fp, #-56]
	cmp	r3, #15
	ble	.L45
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L46
	ldr	r0, .L49+24
	bl	puts
	mvn	r3, #0
	b	.L30
.L46:
.L30:
	ldr	r2, .L49
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC8
	.word	.LC5
	.word	Dir
	.word	BPB_BytesPerSec
	.word	fp
	.word	.LC6
	.word	.LC7
	.size	readfile, .-readfile
	.section	.rodata
	.align	2
.LC9:
	.ascii	"r\000"
	.align	2
.LC10:
	.ascii	"ERROR: File not found.\000"
	.align	2
.LC11:
	.ascii	"w\000"
	.align	2
.LC12:
	.ascii	"Error: Cant open new file %s\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	getFile, %function
getFile:
	@ args = 0, pretend = 0, frame = 560
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #560
	str	r0, [fp, #-560]
	str	r1, [fp, #-564]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L66+4
	ldr	r0, [fp, #-560]
	bl	fopen
	str	r0, [fp, #-532]
	mov	r3, #0
	str	r3, [fp, #-552]
	mov	r3, #0
	str	r3, [fp, #-548]
	b	.L52
.L54:
	ldr	r3, [fp, #-548]
	lsl	r3, r3, #5
	ldr	r2, .L66+8
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-560]
	bl	compare
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r1, .L66+12
	ldr	r0, [fp, #-560]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	mov	r3, #1
	str	r3, [fp, #-552]
.L53:
	ldr	r3, [fp, #-548]
	add	r3, r3, #1
	str	r3, [fp, #-548]
.L52:
	ldr	r3, [fp, #-548]
	cmp	r3, #15
	ble	.L54
	ldr	r3, [fp, #-552]
	cmp	r3, #0
	bne	.L55
	ldr	r0, .L66+16
	bl	puts
	b	.L51
.L55:
	ldr	r3, [fp, #-564]
	cmp	r3, #0
	bne	.L57
	ldr	r1, .L66+20
	ldr	r0, [fp, #-560]
	bl	fopen
	str	r0, [fp, #-556]
	ldr	r3, [fp, #-556]
	cmp	r3, #0
	bne	.L58
	ldr	r1, [fp, #-560]
	ldr	r0, .L66+24
	bl	printf
	b	.L58
.L57:
	ldr	r1, .L66+20
	ldr	r0, [fp, #-564]
	bl	fopen
	str	r0, [fp, #-556]
	ldr	r3, [fp, #-556]
	cmp	r3, #0
	bne	.L58
	ldr	r1, [fp, #-564]
	ldr	r0, .L66+24
	bl	printf
.L58:
	mov	r3, #0
	str	r3, [fp, #-528]
	mov	r3, #0
	str	r3, [fp, #-544]
	b	.L59
.L64:
	ldr	r3, [fp, #-544]
	lsl	r3, r3, #5
	ldr	r2, .L66+8
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-560]
	bl	compare
	mov	r3, r0
	cmp	r3, #0
	beq	.L60
	ldr	r2, .L66+8
	ldr	r3, [fp, #-544]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-540]
	mov	r3, #1
	str	r3, [fp, #-528]
	ldr	r2, .L66+8
	ldr	r3, [fp, #-544]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldrb	r2, [r3, #28]	@ zero_extendqisi2
	ldrb	r1, [r3, #29]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #30]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #31]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	str	r3, [fp, #-536]
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L61
.L62:
	ldr	r0, [fp, #-540]
	bl	LBAToOffset
	str	r0, [fp, #-524]
	ldr	r3, .L66+28
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-524]
	mov	r0, r3
	bl	fseek
	ldr	r3, .L66+32
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L66+28
	ldr	r3, [r3]
	sub	r0, fp, #520
	mov	r1, #1
	bl	fread
	sub	r0, fp, #520
	ldr	r3, [fp, #-556]
	mov	r2, #512
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-540]
	mov	r0, r3
	bl	NextLB
	mov	r3, r0
	str	r3, [fp, #-540]
	ldr	r3, .L66+32
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-536]
	sub	r3, r3, r2
	str	r3, [fp, #-536]
.L61:
	ldr	r3, .L66+32
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-536]
	cmp	r3, r2
	bge	.L62
	ldr	r3, [fp, #-536]
	cmp	r3, #0
	beq	.L63
	ldr	r0, [fp, #-540]
	bl	LBAToOffset
	str	r0, [fp, #-524]
	ldr	r3, .L66+28
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-524]
	mov	r0, r3
	bl	fseek
	ldr	r2, [fp, #-536]
	ldr	r3, .L66+28
	ldr	r3, [r3]
	sub	r0, fp, #520
	mov	r1, #1
	bl	fread
	ldr	r2, [fp, #-536]
	sub	r0, fp, #520
	ldr	r3, [fp, #-556]
	mov	r1, #1
	bl	fwrite
.L63:
	ldr	r0, [fp, #-556]
	bl	fclose
.L60:
	ldr	r3, [fp, #-544]
	add	r3, r3, #1
	str	r3, [fp, #-544]
.L59:
	ldr	r3, [fp, #-544]
	cmp	r3, #15
	ble	.L64
.L51:
	ldr	r3, .L66
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L65
	bl	__stack_chk_fail
.L65:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC13
	.word	.LC9
	.word	Dir
	.word	.LC1
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	fp
	.word	BPB_BytesPerSec
	.size	getFile, .-getFile
	.section	.rodata
	.align	2
.LC14:
	.ascii	"mfs> \000"
	.align	2
.LC15:
	.ascii	" \011\012\000"
	.align	2
.LC16:
	.ascii	"open\000"
	.align	2
.LC17:
	.ascii	"ERROR: File System image already open.\000"
	.align	2
.LC18:
	.ascii	"Error: File system image not found.\000"
	.align	2
.LC19:
	.ascii	"ERROR: Too many arguments for open command.\000"
	.align	2
.LC20:
	.ascii	"close\000"
	.align	2
.LC21:
	.ascii	"Error: File system not open. \000"
	.align	2
.LC22:
	.ascii	"bpb\000"
	.align	2
.LC23:
	.ascii	"ERROR: File System image must be opened first.\000"
	.align	2
.LC24:
	.ascii	"BPB_BytesPerSec(Decimal): %d\012\000"
	.align	2
.LC25:
	.ascii	"BPB_BytesPerSec(HexaDecimal): 0x%x\012\000"
	.align	2
.LC26:
	.ascii	"BPB_SecPerClus(Decimal): %d\012\000"
	.align	2
.LC27:
	.ascii	"BPB_SecPerClus (HexaDecimal): 0x%x\012\000"
	.align	2
.LC28:
	.ascii	"BPB_RsvdSecCnt (Decimal): %d\012\000"
	.align	2
.LC29:
	.ascii	"BPB_RsvdSecCnt (HexaDecimal): 0x%x\012\000"
	.align	2
.LC30:
	.ascii	"BPB_NumFATS (Decimal): %d\012\000"
	.align	2
.LC31:
	.ascii	"BPB_NumFATS (HexaDecimal): 0x%x\012\000"
	.align	2
.LC32:
	.ascii	"BPB_FATSz32 (Decimal): %d\012\000"
	.align	2
.LC33:
	.ascii	"BPB_FATSz32 (HexaDecimal): 0x%x\012\000"
	.align	2
.LC34:
	.ascii	"ls\000"
	.align	2
.LC35:
	.ascii	"Error: Invalid argument for directory with ls comma"
	.ascii	"nd.\000"
	.align	2
.LC36:
	.ascii	"cd\000"
	.align	2
.LC37:
	.ascii	"ERRORR: Invalid number of arguments for cd command."
	.ascii	"\000"
	.align	2
.LC38:
	.ascii	"Error: Directory not found\000"
	.align	2
.LC39:
	.ascii	"read\000"
	.align	2
.LC40:
	.ascii	"Error: Must provide filename, position, and number "
	.ascii	"of bytes to read.\000"
	.align	2
.LC41:
	.ascii	"stat\000"
	.align	2
.LC42:
	.ascii	"%s Attr: %d Size: %d Cluster: %d\012\000"
	.align	2
.LC43:
	.ascii	"ERROR: Invalid number of arguments for stat command"
	.ascii	".\000"
	.align	2
.LC44:
	.ascii	"get\000"
	.align	2
.LC45:
	.ascii	"ERROR: Invalid number of arguments for get command."
	.ascii	"\000"
	.align	2
.LC46:
	.ascii	"quit\000"
	.align	2
.LC47:
	.ascii	"exit\000"
	.align	2
.LC48:
	.ascii	"Closing the Fat32 System..\000"
	.align	2
.LC49:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 640
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #648
	ldr	r3, .L134
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-645]
	mov	r0, #255
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-604]
.L129:
	ldr	r0, .L134+4
	bl	printf
	nop
.L69:
	ldr	r3, .L134+8
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #255
	ldr	r0, [fp, #-604]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-604]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L132
	mov	r3, #0
	str	r3, [fp, #-640]
	ldr	r0, [fp, #-604]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-644]
	ldr	r3, [fp, #-644]
	str	r3, [fp, #-600]
	b	.L72
.L75:
	mov	r1, #255
	ldr	r0, [fp, #-596]
	bl	strndup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-640]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-568]
	ldr	r3, [fp, #-640]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-568]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L73
	ldr	r3, [fp, #-640]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-568]
.L73:
	ldr	r3, [fp, #-640]
	add	r3, r3, #1
	str	r3, [fp, #-640]
.L72:
	sub	r3, fp, #644
	ldr	r1, .L134+12
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-596]
	ldr	r3, [fp, #-596]
	cmp	r3, #0
	beq	.L74
	ldr	r3, [fp, #-640]
	cmp	r3, #9
	ble	.L75
.L74:
	ldr	r3, [fp, #-580]
	mov	r1, r3
	ldr	r0, .L134+16
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L77
	mov	r3, #1
	strb	r3, [fp, #-645]
	ldr	r0, .L134+24
	bl	puts
	b	.L128
.L77:
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L78
	ldr	r3, [fp, #-640]
	cmp	r3, #3
	bgt	.L78
	ldr	r3, [fp, #-576]
	ldr	r1, .L134+28
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L134+20
	str	r3, [r2]
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L79
	ldr	r0, .L134+32
	bl	puts
	b	.L128
.L79:
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #11
	mov	r0, r3
	bl	fseek
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #2
	ldr	r0, .L134+36
	bl	fread
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #13
	mov	r0, r3
	bl	fseek
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #1
	ldr	r0, .L134+40
	bl	fread
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #14
	mov	r0, r3
	bl	fseek
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #2
	ldr	r0, .L134+44
	bl	fread
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #16
	mov	r0, r3
	bl	fseek
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L134+48
	bl	fread
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #36
	mov	r0, r3
	bl	fseek
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, .L134+52
	bl	fread
	ldr	r3, .L134+44
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L134+36
	ldrh	r3, [r3]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r3, .L134+48
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L134+52
	ldr	r3, [r3]
	mul	r3, r2, r3
	ldr	r2, .L134+36
	ldrh	r2, [r2]
	mul	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-584]
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-584]
	mov	r0, r3
	bl	fseek
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #32
	ldr	r0, .L134+56
	bl	fread
	b	.L128
.L78:
	ldr	r0, .L134+60
	bl	puts
	b	.L129
.L76:
	ldr	r3, [fp, #-580]
	mov	r1, r3
	ldr	r0, .L134+64
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L82
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L83
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L134+20
	mov	r2, #0
	str	r2, [r3]
	b	.L129
.L83:
	ldr	r0, .L134+68
	bl	puts
	b	.L129
.L82:
	ldr	r3, [fp, #-580]
	mov	r1, r3
	ldr	r0, .L134+72
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L84
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L85
	ldr	r0, .L134+76
	bl	puts
	b	.L129
.L85:
	ldr	r3, .L134+36
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L134+80
	bl	printf
	ldr	r3, .L134+36
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L134+84
	bl	printf
	ldr	r3, .L134+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L134+88
	bl	printf
	ldr	r3, .L134+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L134+92
	bl	printf
	ldr	r3, .L134+44
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L134+96
	bl	printf
	ldr	r3, .L134+44
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L134+100
	bl	printf
	ldr	r3, .L134+48
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L134+104
	bl	printf
	ldr	r3, .L134+48
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L134+108
	bl	printf
	ldr	r3, .L134+52
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L134+112
	bl	printf
	ldr	r3, .L134+52
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L134+116
	bl	printf
	b	.L129
.L84:
	ldr	r3, [fp, #-580]
	mov	r1, r3
	ldr	r0, .L134+120
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L86
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L87
	ldr	r0, .L134+76
	bl	puts
	b	.L129
.L87:
	ldr	r3, [fp, #-640]
	cmp	r3, #2
	bne	.L88
	bl	ls
	b	.L129
.L88:
	ldr	r3, [fp, #-640]
	cmp	r3, #3
	bne	.L129
	ldr	r3, [fp, #-576]
	ldr	r1, .L134+124
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L89
	bl	ls
	b	.L129
.L89:
	mov	r3, #0
	str	r3, [fp, #-632]
	mov	r3, #0
	str	r3, [fp, #-636]
	b	.L90
.L94:
	ldr	r2, [fp, #-576]
	ldr	r3, [fp, #-636]
	lsl	r3, r3, #5
	ldr	r1, .L134+56
	add	r3, r3, r1
	mov	r1, r3
	mov	r0, r2
	bl	compare
	mov	r3, r0
	cmp	r3, #0
	beq	.L91
	ldr	r2, .L134+56
	ldr	r3, [fp, #-636]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-628]
	ldr	r3, [fp, #-628]
	cmp	r3, #0
	bne	.L92
	mov	r3, #2
	str	r3, [fp, #-628]
.L92:
	ldr	r0, [fp, #-628]
	bl	LBAToOffset
	str	r0, [fp, #-588]
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-588]
	mov	r0, r3
	bl	fseek
	ldr	r3, .L134+20
	ldr	r3, [r3]
	sub	r0, fp, #540
	mov	r2, #16
	mov	r1, #32
	bl	fread
	mov	r3, #1
	str	r3, [fp, #-632]
	b	.L93
.L91:
	ldr	r3, [fp, #-636]
	add	r3, r3, #1
	str	r3, [fp, #-636]
.L90:
	ldr	r3, [fp, #-636]
	cmp	r3, #15
	ble	.L94
.L93:
	ldr	r3, [fp, #-632]
	cmp	r3, #0
	bne	.L95
	ldr	r0, .L134+128
	bl	puts
	b	.L129
.L95:
	mov	r3, #0
	str	r3, [fp, #-636]
	b	.L97
.L100:
	sub	r2, fp, #540
	ldr	r3, [fp, #-636]
	lsl	r3, r3, #5
	add	r1, r2, r3
	sub	r3, fp, #28
	mov	r2, #11
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-636]
	lsl	r3, r3, #5
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-517]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L98
	ldr	r3, [fp, #-636]
	lsl	r3, r3, #5
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-517]	@ zero_extendqisi2
	cmp	r3, #16
	beq	.L98
	ldr	r3, [fp, #-636]
	lsl	r3, r3, #5
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-517]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L99
.L98:
	sub	r3, fp, #28
	mov	r0, r3
	bl	puts
.L99:
	ldr	r3, [fp, #-636]
	add	r3, r3, #1
	str	r3, [fp, #-636]
.L97:
	ldr	r3, [fp, #-636]
	cmp	r3, #15
	ble	.L100
	b	.L129
.L86:
	ldr	r3, [fp, #-580]
	mov	r1, r3
	ldr	r0, .L134+132
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L101
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L102
	ldr	r0, .L134+76
	bl	puts
	b	.L129
.L102:
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L104
	ldr	r3, [fp, #-640]
	cmp	r3, #3
	beq	.L104
	ldr	r0, .L134+136
	bl	puts
	b	.L128
.L104:
	mov	r3, #0
	str	r3, [fp, #-620]
	mov	r3, #0
	str	r3, [fp, #-624]
	b	.L105
.L109:
	ldr	r2, [fp, #-576]
	ldr	r3, [fp, #-624]
	lsl	r3, r3, #5
	ldr	r1, .L134+56
	add	r3, r3, r1
	mov	r1, r3
	mov	r0, r2
	bl	compare
	mov	r3, r0
	cmp	r3, #0
	beq	.L106
	ldr	r2, .L134+56
	ldr	r3, [fp, #-624]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-616]
	ldr	r3, [fp, #-616]
	cmp	r3, #0
	bne	.L107
	mov	r3, #2
	str	r3, [fp, #-616]
.L107:
	ldr	r0, [fp, #-616]
	bl	LBAToOffset
	str	r0, [fp, #-592]
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-592]
	mov	r0, r3
	bl	fseek
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #32
	ldr	r0, .L134+56
	bl	fread
	mov	r3, #1
	str	r3, [fp, #-620]
	b	.L108
.L106:
	ldr	r3, [fp, #-624]
	add	r3, r3, #1
	str	r3, [fp, #-624]
.L105:
	ldr	r3, [fp, #-624]
	cmp	r3, #15
	ble	.L109
.L108:
	ldr	r3, [fp, #-620]
	cmp	r3, #0
	bne	.L129
	ldr	r0, .L134+140
	bl	puts
	b	.L129
.L101:
	ldr	r3, [fp, #-580]
	mov	r1, r3
	ldr	r0, .L134+144
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L110
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L111
	ldr	r0, .L134+76
	bl	puts
	b	.L129
.L111:
	ldr	r3, [fp, #-640]
	cmp	r3, #4
	bgt	.L112
	ldr	r0, .L134+148
	bl	puts
	b	.L129
.L112:
	ldr	r4, [fp, #-576]
	ldr	r3, [fp, #-572]
	mov	r0, r3
	bl	atoi
	mov	r5, r0
	ldr	r3, [fp, #-568]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	readfile
	b	.L129
.L110:
	ldr	r3, [fp, #-580]
	mov	r1, r3
	ldr	r0, .L134+152
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L113
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L114
	ldr	r0, .L134+76
	bl	puts
	b	.L129
.L114:
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L116
	ldr	r3, [fp, #-640]
	cmp	r3, #3
	bne	.L116
	mov	r3, #0
	str	r3, [fp, #-608]
	mov	r3, #0
	str	r3, [fp, #-612]
	b	.L117
.L119:
	ldr	r2, [fp, #-576]
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #5
	ldr	r1, .L134+56
	add	r3, r3, r1
	mov	r1, r3
	mov	r0, r2
	bl	compare
	mov	r3, r0
	cmp	r3, #0
	beq	.L118
	ldr	r0, [fp, #-576]
	ldr	r2, .L134+56
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	mov	ip, r3
	ldr	r3, .L134+56
	ldrb	r2, [r3, #60]	@ zero_extendqisi2
	ldrb	r1, [r3, #61]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #62]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #63]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r1, r3
	ldr	r2, .L134+56
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [sp]
	mov	r3, r1
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L134+156
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-608]
.L118:
	ldr	r3, [fp, #-612]
	add	r3, r3, #1
	str	r3, [fp, #-612]
.L117:
	ldr	r3, [fp, #-612]
	cmp	r3, #15
	ble	.L119
	ldr	r3, [fp, #-608]
	cmp	r3, #0
	bne	.L133
	ldr	r0, .L134+160
	bl	puts
	b	.L133
.L116:
	ldr	r0, .L134+164
	bl	puts
	b	.L129
.L113:
	ldr	r3, [fp, #-580]
	mov	r1, r3
	ldr	r0, .L134+168
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L121
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L122
	ldr	r0, .L134+76
	bl	puts
	b	.L129
.L122:
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L124
	ldr	r3, [fp, #-640]
	cmp	r3, #3
	beq	.L124
	ldr	r3, [fp, #-640]
	cmp	r3, #4
	beq	.L124
	ldr	r0, .L134+172
	bl	puts
	b	.L128
.L124:
	ldr	r3, [fp, #-576]
	ldr	r2, [fp, #-572]
	mov	r1, r2
	mov	r0, r3
	bl	getFile
	b	.L129
.L121:
	ldr	r3, [fp, #-580]
	mov	r1, r3
	ldr	r0, .L134+176
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L125
	ldr	r3, [fp, #-580]
	mov	r1, r3
	ldr	r0, .L134+180
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L129
.L125:
	ldr	r0, .L134+184
	bl	puts
	ldr	r3, .L134+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L126
	ldr	r3, .L134+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L134+20
	mov	r2, #0
	str	r2, [r3]
.L126:
	mov	r3, #0
	ldr	r2, .L134
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L130
	b	.L131
.L132:
	nop
	b	.L129
.L133:
	nop
.L128:
	b	.L129
.L131:
	bl	__stack_chk_fail
.L130:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L135:
	.align	2
.L134:
	.word	.LC49
	.word	.LC14
	.word	stdin
	.word	.LC15
	.word	.LC16
	.word	fp
	.word	.LC17
	.word	.LC9
	.word	.LC18
	.word	BPB_BytesPerSec
	.word	BPB_SecPerClus
	.word	BPB_RsvdSecCnt
	.word	BPB_NumFATS
	.word	BPB_FATSz32
	.word	Dir
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC2
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC7
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
