// File: /workspace/github_cpp_makefile_star2_O2/lrq3000[P]rfrb/./src/raidSystem.cpp
// Function: RaidSystem::printAllInfos()
void RaidSystem::printAllInfos()
{
	std::cout << std::endl;
	std::cout << "All information compact: " << std::endl << std::endl;
	std::vector<FileReader *> inFiles = handle->getInFiles();
	std::cout << "Found Raid system: ";
	//Print RAID-level
	if (raidSystem == Raid_unknown)
	{
		std::cout << "No valid found";
	}
	else if (raidSystem == Raid0)
	{
		std::cout << "Raid 0";
	}
	else if (raidSystem == Raid1)
	{
		std::cout << "Raid 1";
	}
	else if (raidSystem == Raid5_incomplete)
	{
		std::cout << "Raid 5 - with one disc missing";
	}
	else if (raidSystem == Raid5_complete)
	{
		std::cout << "Raid 5";
	}
	std::cout << std::endl;
	//Print other information
	std::cout << "Stripe/Chunk-size:\t" << stripeSize/1024 << "KB" << std::endl;
	std::cout << "Device order:" << std::endl;
	for (unsigned int j = 0; j < inFiles.size(); ++j)
	{
		std::cout << std::to_string(j+1) << ") " << inFiles.at(j)->getPath() << std::endl;
	}

	//Print device order
	std::cout << std::setw(10)<< "Device:   ";
	for (unsigned int j = 0; j < inFiles.size(); ++j)
	{
		std::cout << std::setw(4) << std::to_string(j+1);
	}
	std::cout << std::endl;
	std::cout << std::endl;

	//Print stripemap
	for (auto &in : stripeMap)
	{
		std::cout << std::setw(10) << " ";
		for (auto &it : in)
		{
			if (it.isParity)
			{
				std::cout << std::setw(4) << "P";
			}
			else
			{
				std::cout << std::setw(4) << std::to_string(it.dataBlock);
			}
		}
		std::cout << std::endl;
	}
	std::cout << std::endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %r14
movq 0x1746e(%rip), %rbx     # 0x1dfb0
movq %rbx, %rdi
callq 0x5180
leaq 0xc957(%rip), %rsi      # 0x134a8
movq %rbx, %rdi
callq 0x5380
movq %rax, %rdi
callq 0x5180
movq %rax, %rdi
callq 0x5180
movq %r14, 0x8(%rsp)
movq (%r14), %rdi
callq 0x7986
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x6ed4
leaq 0xc938(%rip), %rsi      # 0x134c2
movq %rbx, %rdi
callq 0x5380
movq 0x8(%rsp), %rax
movl 0x8(%rax), %eax
cmpq $0x6, %rax
jae 0x6bc2
pushq $0x3b
popq %rcx
btl %eax, %ecx
jae 0x6bc2
leaq 0xc471(%rip), %rcx      # 0x13020
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
movq 0x173f3(%rip), %rdi     # 0x1dfb0
callq 0x5380
movq 0x173e7(%rip), %rdi     # 0x1dfb0
callq 0x5180
movq 0x173db(%rip), %rdi     # 0x1dfb0
leaq 0xc93d(%rip), %rsi      # 0x13519
callq 0x5380
movq %rax, %rdi
movq 0x8(%rsp), %rax
movl 0xc(%rax), %eax
movl $0x400, %ecx            # imm = 0x400
cltd
idivl %ecx
movl %eax, %esi
callq 0x55f0
leaq 0xc78b(%rip), %rsi      # 0x1338d
movq %rax, %rdi
callq 0x5380
movq %rax, %rdi
callq 0x5180
movq 0x17397(%rip), %rdi     # 0x1dfb0
leaq 0xc90d(%rip), %rsi      # 0x1352d
callq 0x5380
movq %rax, %rdi
callq 0x5180
pushq $0x1
popq %r15
leaq 0x28(%rsp), %r12
movq 0x17373(%rip), %r14     # 0x1dfb0
leaq 0x48(%rsp), %rbx
leal -0x1(%r15), %r13d
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x3, %rax
cmpq %r13, %rax
jbe 0x6cc1
movq %r12, %rdi
movl %r15d, %esi
callq 0x6f50
movq %r14, %rdi
movq %r12, %rsi
callq 0x52f0
movq %rax, %rdi
leaq 0xcf9c(%rip), %rsi      # 0x13c15
callq 0x5380
movq %rax, %rbp
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x6f22
movq (%rax), %rsi
movq %rbx, %rdi
callq 0xf556
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x52f0
movq %rax, %rdi
callq 0x5180
movq %rbx, %rdi
callq 0x5160
movq %r12, %rdi
callq 0x5160
incl %r15d
jmp 0x6c42
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r14,%rax)
leaq 0xc863(%rip), %rsi      # 0x1353b
movq %r14, %rdi
callq 0x5380
pushq $0x1
popq %rbx
leaq 0x28(%rsp), %r15
leal -0x1(%rbx), %eax
movq 0x18(%rsp), %rcx
subq 0x10(%rsp), %rcx
sarq $0x3, %rcx
cmpq %rax, %rcx
jbe 0x6d2f
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x4, 0x10(%r14,%rax)
movq %r15, %rdi
movl %ebx, %esi
callq 0x6f50
movq %r14, %rdi
movq %r15, %rsi
callq 0x52f0
movq %r15, %rdi
callq 0x5160
incl %ebx
jmp 0x6ce8
movq 0x1727a(%rip), %rdi     # 0x1dfb0
callq 0x5180
movq 0x1726e(%rip), %r14     # 0x1dfb0
movq %r14, %rdi
callq 0x5180
movq 0x8(%rsp), %rax
movq 0x10(%rax), %r13
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
leaq 0xe79e(%rip), %r15      # 0x15501
leaq 0x28(%rsp), %r12
cmpq 0x8(%rsp), %r13
je 0x6df7
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r14,%rax)
movq %r14, %rdi
leaq 0xc7b7(%rip), %rsi      # 0x13544
callq 0x5380
movq (%r13), %rbx
movq 0x8(%r13), %rbp
cmpq %rbp, %rbx
je 0x6de6
movb (%rbx), %al
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
movq $0x4, 0x10(%r14,%rcx)
cmpb $0x1, %al
jne 0x6dc2
movq %r14, %rdi
movq %r15, %rsi
callq 0x5380
jmp 0x6de0
movl 0x4(%rbx), %esi
movq %r12, %rdi
callq 0x6f8f
movq %r14, %rdi
movq %r12, %rsi
callq 0x52f0
movq %r12, %rdi
callq 0x5160
addq $0x8, %rbx
jmp 0x6d9a
movq %r14, %rdi
callq 0x5180
addq $0x18, %r13
jmp 0x6d68
movq 0x171b2(%rip), %rdi     # 0x1dfb0
callq 0x5180
leaq 0x10(%rsp), %rdi
callq 0x714e
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6e4a
jmp 0x6e39
jmp 0x6e4a
jmp 0x6e4a
jmp 0x6e4a
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x5160
jmp 0x6e3c
jmp 0x6e39
jmp 0x6e39
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x5160
jmp 0x6e4d
jmp 0x6e4a
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x714e
movq %rbx, %rdi
callq 0x5610
nop