// File: /workspace/github_cpp_makefile_star2_O3/ratulSharker[P]Havec/src/vector_with_rehash_8_hash_with_N_detection_6_bytes.cpp
// Function: show_count_status(khmerInfo6Byte*, long)
void show_count_status(struct khmerInfo6Byte * memBlock,long int size){
	
	long int TotalNumberOfKhmer_in_memblock = 0;
	long int TotalNumberofkhmer_in_vector = 0;
	unsigned long Maximum_count_in_memBlock = 0;
	unsigned long Maximum_count_in_vector = 0;	

	cout<<"calculating count info..."<<endl;
	
	//counting in the map table
	for(unsigned long long i=0;i<size;i++){
		//traversing all the element in the map
		TotalNumberOfKhmer_in_memblock += memBlock[i].count;
		
		if(memBlock[i].count > Maximum_count_in_memBlock){
			Maximum_count_in_memBlock = memBlock[i].count;
		}
	}
	
	//cout<<"counting memblock status is completed ....."<<endl<<"counting vector status ... "<<endl;
	

	//counting in the vector table
	for(unsigned long long i=0;i<num_of_vector;i++)
	{
		for(int j=0;j<mapPointer6Byte[i].size();j++)
		{

			for(int p=0;p<mapPointer6Byte[i][j].vect.size();p++)
			{
				TotalNumberofkhmer_in_vector+=mapPointer6Byte[i][j].vect[p].count;
				
				if(memBlock[i].count > Maximum_count_in_vector){
					Maximum_count_in_vector = mapPointer6Byte[i][j].vect[p].count;
				}

			}
		}
		
	}
	
	//cout<<"counting vcector status is complete ..."<<endl;
	
	cout<<"count status  :)"<<endl;
/*	cout<<"number of khmer listed in memblock count :: "<<TotalNumberOfKhmer_in_memblock<<endl;
	cout<<"number of khmer not listed in memblock count ::" <<number_of_khmer_not_listed_in_memblock_count_variable<<endl;
	cout<<"number of khmer listed in vector count :: "<<TotalNumberofkhmer_in_vector<<endl;
	cout<<"number of khmer not listed in vector count :: "<<number_of_khmer_not_listed_in_vector_count_variable<<endl;
*/
	cout<<"max count value in memblock "<<Maximum_count_in_memBlock<<endl;
	cout<<"max count value in vector "<<Maximum_count_in_vector<<endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %r15
movq 0x7aae(%rip), %rbx      # 0xdfd8
leaq 0x4fff(%rip), %rsi      # 0xb530
movl $0x19, %edx
movq %rbx, %rdi
callq 0x32c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3220
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
testq %r12, %r12
je 0x6589
leaq 0x5(%r15), %rax
xorl %ecx, %ecx
movzbl (%rax), %r14d
cmpq %r14, %rcx
cmovaq %rcx, %r14
addq $0x6, %rax
movq %r14, %rcx
decq %r12
jne 0x6570
jmp 0x658c
xorl %r14d, %r14d
leaq 0x7d4d(%rip), %rax      # 0xe2e0
movq (%rax), %rax
testq %rax, %rax
je 0x6649
movq 0x7cfa(%rip), %rcx      # 0xe2a0
xorl %edx, %edx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
xorl %r9d, %r9d
leaq (%rdx,%rdx,2), %r10
movq (%rcx,%r10,8), %rdi
movq 0x8(%rcx,%r10,8), %r8
subq %rdi, %r8
je 0x6635
sarq $0x5, %r8
leaq (%r15,%r10,2), %r10
addq $0x5, %r10
cmpq $0x1, %r8
adcq $0x0, %r8
xorl %r11d, %r11d
movq %r11, %rbx
shlq $0x5, %rbx
movq 0x8(%rdi,%rbx), %r13
movq 0x10(%rdi,%rbx), %rbp
subq %r13, %rbp
je 0x6625
sarq %rbp
imulq %rsi, %rbp
movzbl (%r10), %ebx
cmpq $0x1, %rbp
adcq $0x0, %rbp
addq $0x5, %r13
movzbl (%r13), %r12d
cmpq %rbx, %r9
cmovaeq %r9, %r12
addq $0x6, %r13
movq %r12, %r9
decq %rbp
jne 0x660b
jmp 0x6628
movq %r9, %r12
incq %r11
movq %r12, %r9
cmpq %r8, %r11
jne 0x65de
jmp 0x6638
movq %r9, %r12
incq %rdx
movq %r12, %r9
cmpq %rax, %rdx
jne 0x65b5
jmp 0x664c
xorl %r12d, %r12d
leaq 0x4ef7(%rip), %rsi      # 0xb54a
movl $0x10, %edx
movq 0x7979(%rip), %rbx      # 0xdfd8
movq %rbx, %rdi
callq 0x32c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3220
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
leaq 0x4ec6(%rip), %rsi      # 0xb55b
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x32c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3170
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3220
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
leaq 0x4e9a(%rip), %rsi      # 0xb578
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x32c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3170
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3220
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3180