// File: /workspace/github_cpp_makefile_star2_O2/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::showStructure()
void FileSys::showStructure() {
	findUsedClusterCount();

	cout << left << setw(15) << "Filesystem";
	cout << " ";
	cout << right << setw(10) << "Size";
	cout << " ";
	cout << right << setw(5) << ((boot->clusterSize)/1024) << "K-clusters";
	cout << " ";
	cout << right << setw(8) << "Used" ;
	cout << " ";
	cout << right << setw(9) << "Available";
	cout << " ";
	cout << right << setw(3) << "Use%" ;
	cout << endl;

	cout << left << setw(15) << sysName;
	cout << " ";
	cout << right << setw(10) << boot->size;
	cout << " ";
	cout << right << setw(15) << numClusters;
	cout << " ";
	cout << right << setw(8) << usedClusters;
	cout << " ";
	cout << right << setw(9) << (numClusters-usedClusters);
	cout << " ";
	cout << right << setw(3) << (int)(((double)usedClusters/(double)numClusters)*100) << "%" ;
	cout << endl << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x2aea
movq 0x5276(%rip), %rbx      # 0x8fd0
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
pushq $0xf
popq %r13
movq %r13, 0x10(%rbx,%rax)
leaq 0x22b6(%rip), %rsi      # 0x603d
movq %rbx, %rdi
callq 0x2210
leaq 0x2408(%rip), %r15      # 0x619e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
movl $0x80, %r12d
orl %r12d, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
pushq $0xa
popq %rcx
movq %rcx, 0x10(%rbx,%rax)
leaq 0x227a(%rip), %rsi      # 0x6048
movq %rbx, %rdi
callq 0x2210
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq $0x5, 0x10(%rbx,%rax)
movq 0x58(%r14), %rax
movl (%rax), %esi
shrl $0xa, %esi
movq %rbx, %rdi
callq 0x2150
leaq 0x2233(%rip), %rsi      # 0x604d
movq %rax, %rdi
callq 0x2210
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
pushq $0x8
popq %rcx
movq %rcx, 0x10(%rbx,%rax)
leaq 0x2204(%rip), %rsi      # 0x6058
movq %rbx, %rdi
callq 0x2210
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
pushq $0x9
popq %rcx
movq %rcx, 0x10(%rbx,%rax)
leaq 0x21cf(%rip), %rsi      # 0x605d
movq %rbx, %rdi
callq 0x2210
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
pushq $0x3
popq %rcx
movq %rcx, 0x10(%rbx,%rax)
leaq 0x219f(%rip), %rsi      # 0x6067
movq %rbx, %rdi
callq 0x2210
movq %rbx, %rdi
callq 0x2110
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 %r13, 0x10(%rbx,%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21b0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
pushq $0xa
popq %rcx
movq %rcx, 0x10(%rbx,%rax)
movq 0x58(%r14), %rax
movl 0x4(%rax), %esi
movq %rbx, %rdi
callq 0x2150
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq %r13, 0x10(%rbx,%rax)
movl 0x30(%r14), %esi
movq %rbx, %rdi
callq 0x23c0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
pushq $0x8
popq %rcx
movq %rcx, 0x10(%rbx,%rax)
movl 0x28(%r14), %esi
movq %rbx, %rdi
callq 0x23c0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
pushq $0x9
popq %rcx
movq %rcx, 0x10(%rbx,%rax)
movl 0x30(%r14), %esi
subl 0x28(%r14), %esi
movq %rbx, %rdi
callq 0x23c0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rcx
andl 0x18(%rbx,%rcx), %ebp
orl %r12d, %ebp
movl %ebp, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
pushq $0x3
popq %rcx
movq %rcx, 0x10(%rbx,%rax)
cvtsi2sdl 0x28(%r14), %xmm0
cvtsi2sdl 0x30(%r14), %xmm1
divsd %xmm1, %xmm0
mulsd 0x2007(%rip), %xmm0     # 0x6028
cvttsd2si %xmm0, %esi
movq %rbx, %rdi
callq 0x23c0
leaq 0x2036(%rip), %rsi      # 0x606a
movq %rax, %rdi
callq 0x2210
movq %rbx, %rdi
callq 0x2110
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2110