// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
movq 0x64a7(%rip), %r14      # 0x8fd0
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x5, 0x10(%r14,%rax)
leaq 0x36c8(%rip), %r12      # 0x6208
movq %r14, %rdi
movq %r12, %rsi
callq 0x2210
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
movl $0xffffff4f, %ebp       # imm = 0xFFFFFF4F
movl 0x18(%rax,%rdx), %esi
andl %ebp, %esi
orl $0x20, %esi
movl %esi, 0x18(%rax,%rdx)
movq -0x18(%rcx), %rcx
movq $0x11, 0x10(%rax,%rcx)
leaq 0x353c(%rip), %rsi      # 0x60b4
movq %rax, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq $0xb, 0x10(%r14,%rax)
leaq 0x3513(%rip), %rsi      # 0x60bd
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
pushq $0xa
popq %r15
movq %r15, 0x10(%r14,%rax)
leaq 0x346c(%rip), %rsi      # 0x6048
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r15, 0x10(%r14,%rax)
leaq 0x34b9(%rip), %rsi      # 0x60c3
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq $0x19, 0x10(%r14,%rax)
leaq 0x34d8(%rip), %rsi      # 0x6114
movq %r14, %rdi
callq 0x2210
movq %r14, %rdi
callq 0x2110
pushq $0x2d
popq %rsi
movq %r14, %rdi
callq 0x2380
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x4b, 0x10(%rax,%rcx)
movq %rax, %rdi
movq %r12, %rsi
callq 0x2210
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x2380
xorl %r12d, %r12d
xorl %r13d, %r13d
movl $0xffffff4f, %ebp       # imm = 0xFFFFFF4F
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x7, %rcx
cmpq %r13, %rcx
jbe 0x2e1a
movzbl (%rax,%r12), %eax
testl %eax, %eax
je 0x2e0e
cmpl $0xff, %eax
je 0x2e0e
movq %r14, %rdi
callq 0x2110
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
pushq $0x5
popq %r15
movq %r15, 0x10(%r14,%rax)
movq %r14, %rdi
movl %r13d, %esi
callq 0x23c0
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
movl 0x18(%rax,%rdx), %esi
andl %ebp, %esi
orl $0x20, %esi
movl %esi, 0x18(%rax,%rdx)
movq -0x18(%rcx), %rcx
movq $0x11, 0x10(%rax,%rcx)
movq (%rbx), %rsi
addq %r12, %rsi
movq %rax, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
movl $0x80, %esi
orl %esi, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r15, 0x10(%r14,%rax)
movq (%rbx), %rax
movl 0x70(%rax,%r12), %esi
movq %r14, %rdi
callq 0x2150
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
movl $0x80, %esi
orl %esi, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
pushq $0xa
popq %r15
movq %r15, 0x10(%r14,%rax)
movq (%rbx), %rax
movl 0x74(%rax,%r12), %esi
movq %r14, %rdi
callq 0x2150
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
movl $0x80, %esi
orl %esi, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r15, 0x10(%r14,%rax)
movq (%rbx), %rax
movl 0x78(%rax,%r12), %esi
movq %r14, %rdi
callq 0x2150
movq (%rbx), %rax
movl 0x7c(%rax,%r12), %eax
movq %rax, (%rsp)
movq %r14, %rdi
leaq 0x33cf(%rip), %rsi      # 0x619e
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
movl $0x80, %esi
orl %esi, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq $0x1e, 0x10(%r14,%rax)
movq %rsp, %rdi
callq 0x20c0
movq %r14, %rdi
movq %rax, %rsi
callq 0x2210
incq %r13
subq $-0x80, %r12
jmp 0x2c88
movq 0x61af(%rip), %rbx      # 0x8fd0
pushq $0x2d
popq %rsi
movq %rbx, %rdi
callq 0x2380
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x4b, 0x10(%rax,%rcx)
leaq 0x33c5(%rip), %rsi      # 0x6208
movq %rax, %rdi
callq 0x2210
pushq $0x20
popq %rsi
movq %rbx, %rdi
callq 0x2380
movq %rax, %rdi
callq 0x2110
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop