// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movl $0x0, 0x28(%rdi)
movslq 0x30(%rdi), %rax
testq %rax, %rax
jle 0x45a3
movq 0x38(%rbx), %rcx
xorl %edx, %edx
xorl %esi, %esi
cmpl $0x0, (%rcx,%rdx,4)
je 0x459b
incl %esi
movl %esi, 0x28(%rbx)
incq %rdx
cmpq %rdx, %rax
jne 0x4590
movq 0x6a26(%rip), %r14      # 0xafd0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl $0xffffff4f, %ebp       # imm = 0xFFFFFF4F
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0xf, %ecx
movq %rcx, 0x10(%r14,%rax)
leaq 0x3a63(%rip), %rsi      # 0x803d
movl $0xa, %r13d
movl $0xa, %edx
movq %r14, %rdi
callq 0x2240
leaq 0x3baa(%rip), %r15      # 0x819e
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
movl $0x80, %r12d
orl %r12d, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r13, 0x10(%r14,%rax)
leaq 0x3a18(%rip), %rsi      # 0x8048
movl $0x4, %edx
movq %r14, %rdi
callq 0x2240
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq $0x5, 0x10(%r14,%rax)
movq 0x58(%rbx), %rax
movl (%rax), %esi
shrl $0xa, %esi
movq %r14, %rdi
callq 0x2110
leaq 0x39c5(%rip), %rsi      # 0x804d
movl $0xa, %edx
movq %rax, %rdi
callq 0x2240
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0x8, %ecx
movq %rcx, 0x10(%r14,%rax)
leaq 0x3988(%rip), %rsi      # 0x8058
movl $0x4, %edx
movq %r14, %rdi
callq 0x2240
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0x9, %ecx
movq %rcx, 0x10(%r14,%rax)
leaq 0x3945(%rip), %rsi      # 0x805d
movl $0x9, %edx
movq %r14, %rdi
callq 0x2240
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0x3, %ecx
movq %rcx, 0x10(%r14,%rax)
leaq 0x3907(%rip), %rsi      # 0x8067
movl $0x4, %edx
movq %r14, %rdi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x2120
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
movl $0xf, %r13d
movq %r13, 0x10(%r14,%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x2240
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0xa, %ecx
movq %rcx, 0x10(%r14,%rax)
movq 0x58(%rbx), %rax
movl 0x4(%rax), %esi
movq %r14, %rdi
callq 0x2110
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r13, 0x10(%r14,%rax)
movl 0x30(%rbx), %esi
movq %r14, %rdi
callq 0x2390
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0x8, %ecx
movq %rcx, 0x10(%r14,%rax)
movl 0x28(%rbx), %esi
movq %r14, %rdi
callq 0x2390
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebp, %edx
orl %r12d, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0x9, %ecx
movq %rcx, 0x10(%r14,%rax)
movl 0x30(%rbx), %esi
subl 0x28(%rbx), %esi
movq %r14, %rdi
callq 0x2390
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rcx
andl 0x18(%r14,%rcx), %ebp
orl %r12d, %ebp
movl %ebp, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0x3, %ecx
movq %rcx, 0x10(%r14,%rax)
cvtsi2sdl 0x28(%rbx), %xmm0
cvtsi2sdl 0x30(%rbx), %xmm1
divsd %xmm1, %xmm0
mulsd 0x371a(%rip), %xmm0     # 0x8028
cvttsd2si %xmm0, %esi
movq %r14, %rdi
callq 0x2390
leaq 0x3749(%rip), %rsi      # 0x806a
movl $0x1, %edx
movq %rax, %rdi
callq 0x2240
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x2120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2050
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2120
nop