// File: /workspace/github_cpp_makefile_star2_O3/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 0x1590e(%rip), %rbx     # 0x1cfb0
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 0xce18(%rip), %rsi      # 0x144e8
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 0x8916
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x7e20
leaq 0xcdb8(%rip), %rsi      # 0x14502
movl $0x13, %edx
movq %rbx, %rdi
callq 0x5450
movl 0x8(%r15), %eax
cmpq $0x6, %rax
jae 0x7790
movl $0x3b, %ecx
btl %eax, %ecx
jae 0x7790
leaq 0xc8ae(%rip), %rcx      # 0x14020
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
leaq 0xc8b8(%rip), %rcx      # 0x14038
movq (%rcx,%rax,8), %rdx
movq 0x15825(%rip), %rdi     # 0x1cfb0
callq 0x5450
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq 0x15802(%rip), %rdi     # 0x1cfb0
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq 0x157ee(%rip), %rdi     # 0x1cfb0
leaq 0xcd90(%rip), %rsi      # 0x14559
movl $0x13, %edx
callq 0x5450
movl 0xc(%r15), %eax
leal 0x3ff(%rax), %esi
testl %eax, %eax
cmovnsl %eax, %esi
sarl $0xa, %esi
movq 0x157c4(%rip), %rdi     # 0x1cfb0
callq 0x5630
movq %rax, %rbx
leaq 0xcbd2(%rip), %rsi      # 0x143cd
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 0x1577a(%rip), %rbx     # 0x1cfb0
leaq 0xcd30(%rip), %rsi      # 0x1456d
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 0x15748(%rip), %r14     # 0x1cfb0
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq %r15, 0x38(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x20(%rsp), %rax
je 0x79d2
leaq 0x10(%rsp), %r13
xorl %r15d, %r15d
movl $0xd1b71759, %ebp       # imm = 0xD1B71759
xorl %ebx, %ebx
incl %ebx
movl $0x1, %eax
cmpl $0xa, %ebx
jb 0x78e7
movl $0x4, %eax
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x78e0
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x78e5
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x78e7
movl %ecx, %edx
imulq %rbp, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x78af
addl $-0x3, %eax
jmp 0x78e7
addl $-0x2, %eax
jmp 0x78e7
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 0x7ea0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x1569a(%rip), %rdi     # 0x1cfb0
callq 0x5450
movq %rax, %r12
movl $0x2, %edx
movq %rax, %rdi
leaq 0xd370(%rip), %rsi      # 0x14c9d
callq 0x5450
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r15, %rdx
jbe 0x7ce1
movq (%rax,%r15,8), %rsi
leaq 0x48(%rsp), %rdi
callq 0x1086e
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 0x79aa
callq 0x5390
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x79b8
callq 0x5390
movl %ebx, %r15d
movq 0x28(%rsp), %rax
subq 0x20(%rsp), %rax
sarq $0x3, %rax
cmpq %r15, %rax
ja 0x789c
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r14,%rax)
leaq 0xcb92(%rip), %rsi      # 0x1457b
movl $0xa, %edx
movq %r14, %rdi
callq 0x5450
movq 0x38(%rsp), %rbp
movq 0x28(%rsp), %rax
cmpq 0x20(%rsp), %rax
je 0x7acd
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 0x7a76
movl $0x4, %eax
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x7a6f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x7a74
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x7a76
movl %ecx, %edx
imulq %r13, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x7a3e
addl $-0x3, %eax
jmp 0x7a76
addl $-0x2, %eax
jmp 0x7a76
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 0x7ea0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x5450
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x7ab4
callq 0x5390
movl %ebx, %eax
movq 0x28(%rsp), %rcx
subq 0x20(%rsp), %rcx
sarq $0x3, %rcx
cmpq %rax, %rcx
ja 0x7a1b
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq 0x154c5(%rip), %rbx     # 0x1cfb0
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 0x15497(%rip), %r14     # 0x1cfb0
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 0x7c98
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r14,%rax)
movl $0x1, %edx
movq %r14, %rdi
leaq 0xca26(%rip), %rsi      # 0x14584
callq 0x5450
movq (%rbx), %r12
movq %rbx, 0x38(%rsp)
movq 0x8(%rbx), %r15
cmpq %r15, %r12
je 0x7c5d
movb (%r12), %al
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
movq $0x4, 0x10(%r14,%rcx)
cmpb $0x1, %al
jne 0x7ba9
movl $0x1, %edx
movq %r14, %rdi
leaq 0xe4d3(%rip), %rsi      # 0x16072
callq 0x5450
jmp 0x7c54
movl 0x4(%r12), %r13d
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %ebx
cmpl $0xa, %ebp
jb 0x7c02
movl $0x4, %ebx
movl %ebp, %eax
cmpl $0x63, %eax
jbe 0x7bfb
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x7c00
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x7c02
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 0x7bc8
addl $-0x3, %ebx
jmp 0x7c02
addl $-0x2, %ebx
jmp 0x7c02
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 0x7ea0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x5450
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7c54
callq 0x5390
addq $0x8, %r12
jmp 0x7b6f
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 0x7b3f
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %esi
movq 0x152fa(%rip), %rdi     # 0x1cfb0
callq 0x5040
movq %rax, %rdi
callq 0x5260
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7cd2
callq 0x5390
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xcbe1(%rip), %rdi      # 0x148c9
movq %r15, %rsi
xorl %eax, %eax
callq 0x5570
jmp 0x7d35
jmp 0x7d0a
jmp 0x7d0a
jmp 0x7d35
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x7d4b
jmp 0x7d50
jmp 0x7d35
movq %rax, %rbx
jmp 0x7d28
jmp 0x7d35
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x7d28
callq 0x5390
movq (%rsp), %rdi
cmpq %r13, %rdi
jne 0x7d4b
jmp 0x7d50
jmp 0x7d35
movq %rax, %rbx
jmp 0x7d50
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7d50
callq 0x5390
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7d5f
callq 0x5390
movq %rbx, %rdi
callq 0x5650
nop