// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::printDirectoryTable(std::vector<DirectoryTableEntry, std::allocator<DirectoryTableEntry>>)
void FileSys::printDirectoryTable(vector<DirectoryTableEntry> table) {
	int i;
	time_t time;

	cout << setw(5) << "" << left << setw(17) << "Filename";
	cout << left << setw(11) << "Index";
	cout << left << setw(10) << "Size";
	cout << left << setw(10) << "Type";
	cout << left << setw(25) << "Created";

	cout << endl;
	cout << setfill('-') << setw(75) << "";
	cout << setfill(' ');

	for (i = 0; i < table.size(); i++) {
		if (table[i].name[0] != (char)0x00 && table[i].name[0] != (char)0xFF) {
			cout << endl;
			cout << left << setw(5) << i << left << setw(17) << table[i].name;
			cout << right << setw(5) << table[i].index;
			cout << right << setw(10) << table[i].size;
			cout << right << setw(10) << table[i].type;

			time = table[i].creation;
			cout << " ";
			cout << right << setw(30) << ctime(&time);

		
		}
	}
	cout << setfill('-') << setw(75) << "";
	cout << setfill(' ') << endl;;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq 0x83b7(%rip), %rbx      # 0xafd0
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0x5, 0x10(%rbx,%rax)
leaq 0x55d8(%rip), %rsi      # 0x8208
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl $0xffffff4f, %ebp       # imm = 0xFFFFFF4F
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl $0x20, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq $0x11, 0x10(%rbx,%rax)
leaq 0x544d(%rip), %rsi      # 0x80b4
movl $0x8, %edx
movq %rbx, %rdi
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl $0x20, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq $0xb, 0x10(%rbx,%rax)
leaq 0x5421(%rip), %rsi      # 0x80bd
movl $0x5, %edx
movq %rbx, %rdi
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl $0x20, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movl $0xa, %r15d
movq %r15, 0x10(%rbx,%rax)
leaq 0x5375(%rip), %rsi      # 0x8048
movl $0x4, %edx
movq %rbx, %rdi
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl $0x20, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq %r15, 0x10(%rbx,%rax)
leaq 0x53bf(%rip), %rsi      # 0x80c3
movl $0x4, %edx
movq %rbx, %rdi
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rcx
andl 0x18(%rbx,%rcx), %ebp
orl $0x20, %ebp
movl %ebp, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq $0x19, 0x10(%rbx,%rax)
leaq 0x53dd(%rip), %rsi      # 0x8114
movl $0x7, %edx
movq %rbx, %rdi
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x2120
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %r15
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x2d9c
movq %r15, %rdi
movl $0x20, %esi
callq 0x21b0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x2d, 0xe0(%r15)
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0x4b, 0x10(%rbx,%rax)
leaq 0x544d(%rip), %rsi      # 0x8208
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %r15
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x2df6
movq %r15, %rdi
movl $0x20, %esi
callq 0x21b0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x20, 0xe0(%r15)
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x3027
xorl %r12d, %r12d
xorl %r13d, %r13d
movzbl (%rax,%r12), %eax
testl %eax, %eax
je 0x3009
cmpl $0xff, %eax
je 0x3009
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x2120
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
movl $0xffffff4f, %r15d      # imm = 0xFFFFFF4F
andl %r15d, %edx
orl $0x20, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq $0x5, 0x10(%rbx,%rax)
movq %rbx, %rdi
movl %r13d, %esi
callq 0x2390
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbp,%rcx), %edx
andl %r15d, %edx
orl $0x20, %edx
movl %edx, 0x18(%rbp,%rcx)
movq -0x18(%rax), %rcx
movq $0x11, 0x10(%rbp,%rcx)
movq (%r14), %r15
testq %r15, %r15
je 0x2ecb
addq %r12, %r15
movq %r15, %rdi
callq 0x20b0
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2240
jmp 0x2ee1
movq -0x18(%rax), %rax
movq %rbp, %rdi
addq %rax, %rdi
movl 0x20(%rbp,%rax), %esi
orl $0x1, %esi
callq 0x2380
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
movl $0xffffff4f, %ebp       # imm = 0xFFFFFF4F
andl %ebp, %edx
movl $0x80, %esi
orl %esi, %edx
movl $0x80, %r15d
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq $0x5, 0x10(%rbx,%rax)
movq (%r14), %rax
movl 0x70(%rax,%r12), %esi
movq %rbx, %rdi
callq 0x2110
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl %r15d, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movl $0xa, %r15d
movq %r15, 0x10(%rbx,%rax)
movq (%r14), %rax
movl 0x74(%rax,%r12), %esi
movq %rbx, %rdi
callq 0x2110
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
movl $0x80, %esi
orl %esi, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq %r15, 0x10(%rbx,%rax)
movq (%r14), %rax
movl 0x78(%rax,%r12), %esi
movq %rbx, %rdi
callq 0x2110
movq (%r14), %rax
movl 0x7c(%rax,%r12), %eax
movq %rax, (%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x51fe(%rip), %rsi      # 0x819e
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
movl $0x80, %esi
orl %esi, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq $0x1e, 0x10(%rbx,%rax)
movq %rsp, %rdi
callq 0x20a0
testq %rax, %rax
je 0x2ff2
movq %rax, %r15
movq %rax, %rdi
callq 0x20b0
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2240
jmp 0x3009
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x2380
incq %r13
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x7, %rcx
subq $-0x80, %r12
cmpq %r13, %rcx
ja 0x2e11
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %r14
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x3058
movq %r14, %rdi
movl $0x20, %esi
callq 0x21b0
movb %al, 0xe0(%r14)
movb $0x1, 0xe1(%r14)
movb $0x2d, 0xe0(%r14)
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0x4b, 0x10(%rbx,%rax)
leaq 0x5191(%rip), %rsi      # 0x8208
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %r14
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x30b2
movq %r14, %rdi
movl $0x20, %esi
callq 0x21b0
movb %al, 0xe0(%r14)
movb $0x1, 0xe1(%r14)
movb $0x20, 0xe0(%r14)
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x2120
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq