// File: /workspace/github_cpp_makefile_star2_O1/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, %r15
movq 0x178ce(%rip), %rbx     # 0x1efb0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5260
leaq 0xddd8(%rip), %rsi      # 0x154e8
movl $0x19, %edx
movq %rbx, %rdi
callq 0x5450
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq (%r15), %rdi
callq 0x894c
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x7e58
leaq 0xdd78(%rip), %rsi      # 0x15502
movl $0x13, %edx
movq %rbx, %rdi
callq 0x5450
movl 0x8(%r15), %eax
cmpq $0x6, %rax
jae 0x77d0
movl $0x3b, %ecx
btl %eax, %ecx
jae 0x77d0
leaq 0xd86e(%rip), %rcx      # 0x15020
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
leaq 0xd878(%rip), %rcx      # 0x15038
movq (%rcx,%rax,8), %rdx
movq 0x177e5(%rip), %rdi     # 0x1efb0
callq 0x5450
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq 0x177c2(%rip), %rdi     # 0x1efb0
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq 0x177ae(%rip), %rdi     # 0x1efb0
leaq 0xdd50(%rip), %rsi      # 0x15559
movl $0x13, %edx
callq 0x5450
movl 0xc(%r15), %eax
leal 0x3ff(%rax), %esi
testl %eax, %eax
cmovnsl %eax, %esi
sarl $0xa, %esi
movq 0x17784(%rip), %rdi     # 0x1efb0
callq 0x5630
movq %rax, %rbx
leaq 0xdb92(%rip), %rsi      # 0x153cd
movl $0x2, %edx
movq %rax, %rdi
callq 0x5450
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq 0x1773a(%rip), %rbx     # 0x1efb0
leaq 0xdcf0(%rip), %rsi      # 0x1556d
movl $0xd, %edx
movq %rbx, %rdi
callq 0x5450
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq 0x17708(%rip), %r14     # 0x1efb0
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq %r15, 0x38(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x20(%rsp), %rax
je 0x7a12
leaq 0x10(%rsp), %r13
xorl %r15d, %r15d
movl $0xd1b71759, %ebp       # imm = 0xD1B71759
xorl %ebx, %ebx
incl %ebx
movl $0x1, %eax
cmpl $0xa, %ebx
jb 0x7927
movl $0x4, %eax
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x7920
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x7925
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x7927
movl %ecx, %edx
imulq %rbp, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x78ef
addl $-0x3, %eax
jmp 0x7927
addl $-0x2, %eax
jmp 0x7927
decl %eax
movl %eax, %esi
movq %r13, (%rsp)
movq %rsp, %rdi
xorl %edx, %edx
callq 0x5460
movq (%rsp), %rdi
movl 0x8(%rsp), %esi
movl %ebx, %edx
callq 0x7ed8
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x1765a(%rip), %rdi     # 0x1efb0
callq 0x5450
movq %rax, %r12
movl $0x2, %edx
movq %rax, %rdi
leaq 0xe330(%rip), %rsi      # 0x15c9d
callq 0x5450
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r15, %rdx
jbe 0x7d21
movq (%rax,%r15,8), %rsi
leaq 0x48(%rsp), %rdi
callq 0x1126a
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %r12, %rdi
callq 0x5450
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x79ea
callq 0x5390
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x79f8
callq 0x5390
movl %ebx, %r15d
movq 0x28(%rsp), %rax
subq 0x20(%rsp), %rax
sarq $0x3, %rax
cmpq %r15, %rax
ja 0x78dc
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r14,%rax)
leaq 0xdb52(%rip), %rsi      # 0x1557b
movl $0xa, %edx
movq %r14, %rdi
callq 0x5450
movq 0x38(%rsp), %rbp
movq 0x28(%rsp), %rax
cmpq 0x20(%rsp), %rax
je 0x7b0d
xorl %ebx, %ebx
leaq 0x10(%rsp), %r12
movq %rsp, %r15
movl $0xd1b71759, %r13d      # imm = 0xD1B71759
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x4, 0x10(%r14,%rax)
incl %ebx
movl $0x1, %eax
cmpl $0xa, %ebx
jb 0x7ab6
movl $0x4, %eax
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x7aaf
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x7ab4
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x7ab6
movl %ecx, %edx
imulq %r13, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x7a7e
addl $-0x3, %eax
jmp 0x7ab6
addl $-0x2, %eax
jmp 0x7ab6
decl %eax
movl %eax, %esi
movq %r12, (%rsp)
movq %r15, %rdi
xorl %edx, %edx
callq 0x5460
movq (%rsp), %rdi
movl 0x8(%rsp), %esi
movl %ebx, %edx
callq 0x7ed8
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x5450
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x7af4
callq 0x5390
movl %ebx, %eax
movq 0x28(%rsp), %rcx
subq 0x20(%rsp), %rcx
sarq $0x3, %rcx
cmpq %rax, %rcx
ja 0x7a5b
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq 0x17485(%rip), %rbx     # 0x1efb0
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq 0x17457(%rip), %r14     # 0x1efb0
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq 0x10(%rbp), %rbx
movq 0x18(%rbp), %rax
movq %rax, 0x40(%rsp)
cmpq %rax, %rbx
je 0x7cd8
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r14,%rax)
movl $0x1, %edx
movq %r14, %rdi
leaq 0xd9e6(%rip), %rsi      # 0x15584
callq 0x5450
movq (%rbx), %r12
movq %rbx, 0x38(%rsp)
movq 0x8(%rbx), %r15
cmpq %r15, %r12
je 0x7c9d
movb (%r12), %al
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
movq $0x4, 0x10(%r14,%rcx)
cmpb $0x1, %al
jne 0x7be9
movl $0x1, %edx
movq %r14, %rdi
leaq 0xf982(%rip), %rsi      # 0x17561
callq 0x5450
jmp 0x7c94
movl 0x4(%r12), %r13d
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %ebx
cmpl $0xa, %ebp
jb 0x7c42
movl $0x4, %ebx
movl %ebp, %eax
cmpl $0x63, %eax
jbe 0x7c3b
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x7c40
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x7c42
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x7c08
addl $-0x3, %ebx
jmp 0x7c42
addl $-0x2, %ebx
jmp 0x7c42
decl %ebx
shrl $0x1f, %r13d
leal (%rbx,%r13), %esi
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %rdi
movl $0x2d, %edx
callq 0x5460
addq (%rsp), %r13
movq %r13, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x7ed8
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x5450
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7c94
callq 0x5390
addq $0x8, %r12
jmp 0x7baf
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x53b0
movq 0x38(%rsp), %rbx
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5260
addq $0x18, %rbx
cmpq 0x40(%rsp), %rbx
jne 0x7b7f
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq 0x172ba(%rip), %rdi     # 0x1efb0
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7d12
callq 0x5390
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xdba1(%rip), %rdi      # 0x158c9
movq %r15, %rsi
xorl %eax, %eax
callq 0x5570
jmp 0x7d75
jmp 0x7d4a
jmp 0x7d4a
jmp 0x7d75
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x7d8b
jmp 0x7d90
jmp 0x7d75
movq %rax, %rbx
jmp 0x7d68
jmp 0x7d75
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x7d68
callq 0x5390
movq (%rsp), %rdi
cmpq %r13, %rdi
jne 0x7d8b
jmp 0x7d90
jmp 0x7d75
movq %rax, %rbx
jmp 0x7d90
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7d90
callq 0x5390
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7d9f
callq 0x5390
movq %rbx, %rdi
callq 0x5650
nop