// File: /workspace/github_cpp_makefile_star2_O3/lionalion[P]clusterization/clust_w2v.cpp
// Function: postClast(std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>, std::vector<std::vector<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>, std::allocator<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>>>, std::allocator<std::vector<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>, std::allocator<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>>>>>, int, float, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, std::vector<std::vector<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>, std::allocator<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>>>, std::allocator<std::vector<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>, std::allocator<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>>>>>&)
void postClast (std::vector < std::vector < int > > vIdStr,std::vector < std::vector <std::map<int,float> > > vMapCls, int th3, float th4, std::vector < std::vector < int > > & vOutIdStr, std::vector < std::vector <std::map<int,float> > > & vOutMapCls){
	std::multimap <int,int> SizeMapCls;
	int n=0;
	for (int k=0; k<vMapCls.size(); k++)
		SizeMapCls.insert(std::pair<int,int>( vMapCls[k].size(),k )); 

	std::vector <int> vCheck;			
	for (std::multimap<int,int>::const_reverse_iterator rit = SizeMapCls.rbegin(); rit != SizeMapCls.rend(); ++rit){		
		bool flg_x=false;
		for (int q=0; q<vCheck.size(); q++){
			if (vCheck[q] == (*rit).second)
				flg_x=true;
		}
		if (vIdStr[(*rit).second].size() > th3 && flg_x==false){	
			vOutIdStr.resize( vOutIdStr.size()+1 );
			vOutMapCls.resize( vOutMapCls.size()+1 );
			for (int h=0; h< vIdStr[(*rit).second].size(); h++){							
				vOutIdStr[n].push_back(vIdStr[(*rit).second][h]); 							
				vOutMapCls[n].push_back(vMapCls[(*rit).second][h]); 
			}
			for ( std::multimap<int,int>::const_reverse_iterator tir = rit; tir != SizeMapCls.rend(); ++tir){
				bool flg_y=false;
				for (int q=0; q<vCheck.size(); q++){
					if (vCheck[q] == (*tir).second)
						flg_y=true;
				}
				if ((*rit).second!=(*tir).second && flg_y==false){
					int cnt=0;
					if (vIdStr[(*tir).second].size() > th3){
						for (int w=0; w<vIdStr[(*rit).second].size(); w++){
							for (int z=0; z<vIdStr[(*tir).second].size(); z++){
								if (vIdStr[(*rit).second][w] == vIdStr[(*tir).second][z]) {
									cnt++;
									break;
								}
							}
						}
						if ( cnt > vIdStr[(*tir).second].size()*th4){
							for (int g=0; g< vIdStr[(*tir).second].size(); g++){ 
								bool be=false;
								for (int j=0; j< vOutIdStr[n].size(); j++){
									if(vOutIdStr[n][j] == vIdStr[(*tir).second][g])
										be=true;
								}
								if (be==false){
									vOutIdStr[n].push_back(vIdStr[(*tir).second][g]);
									vOutMapCls[n].push_back(vMapCls[(*tir).second][g]);
								}
							}
							vCheck.push_back((*tir).second);
						}
					}
				}
			}	
			n++;					
		}		
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r8, -0x68(%rbp)
movq %rcx, -0x78(%rbp)
movss %xmm0, -0x7c(%rbp)
movq %rdi, -0x38(%rbp)
leaq -0xb0(%rbp), %r12
movl $0x0, (%r12)
xorl %eax, %eax
movq %rax, 0x8(%r12)
movq %r12, 0x10(%r12)
movq %r12, 0x18(%r12)
movq %rax, 0x20(%r12)
movq (%rsi), %rax
movq %rsi, -0x70(%rbp)
cmpq %rax, 0x8(%rsi)
je 0x2aa7
movl %edx, -0x58(%rbp)
movl $0x8, %ebx
xorl %r14d, %r14d
leaq -0xb8(%rbp), %r13
leaq -0x50(%rbp), %r15
movq (%rax,%rbx), %rcx
subq -0x8(%rax,%rbx), %rcx
shrq $0x4, %rcx
imull $0xaaaaaaab, %ecx, %eax # imm = 0xAAAAAAAB
movl %eax, -0x50(%rbp)
movl %r14d, -0x4c(%rbp)
movq %r13, %rdi
movq %r15, %rsi
callq 0x54c4
incq %r14
movq -0x70(%rbp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
addq $0x18, %rbx
cmpq %r14, %rcx
ja 0x25cf
movq -0xa0(%rbp), %r13
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
cmpq %r13, %r12
je 0x2aa7
movslq -0x58(%rbp), %rax
movq %rax, -0x88(%rbp)
movq $0x0, -0x60(%rbp)
movq -0x50(%rbp), %rbx
movq -0x48(%rbp), %r14
subq %rbx, %r14
je 0x2698
sarq $0x2, %r14
movq %r12, %rdi
callq 0x2130
movl $0x1, %esi
movl 0x24(%rax), %eax
cmpq $0x1, %r14
adcq $0x0, %r14
xorl %ecx, %ecx
xorl %edx, %edx
cmpl %eax, (%rbx,%rcx,4)
movzbl %dl, %edx
cmovel %esi, %edx
incq %rcx
cmpq %rcx, %r14
jne 0x267f
testb $0x1, %dl
sete %bl
jmp 0x269a
movb $0x1, %bl
movq %r12, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
movq -0x38(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
movq 0x8(%rcx,%rax,8), %rdx
subq (%rcx,%rax,8), %rdx
sarq $0x2, %rdx
cmpq -0x88(%rbp), %rdx
jbe 0x2a7e
testb %bl, %bl
je 0x2a7e
movq -0x78(%rbp), %rdi
movq 0x8(%rdi), %rsi
subq (%rdi), %rsi
sarq $0x3, %rsi
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rbx, %rsi
incq %rsi
callq 0x49b2
movq -0x68(%rbp), %rdi
movq 0x8(%rdi), %rsi
subq (%rdi), %rsi
sarq $0x3, %rsi
imulq %rbx, %rsi
incq %rsi
callq 0x49f6
movq %r12, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
movq -0x38(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rdx
movslq -0x60(%rbp), %rsi
movq %rsi, -0x58(%rbp)
cmpq %rdx, 0x8(%rcx,%rax,8)
movq %r12, -0x30(%rbp)
je 0x27f4
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r13d, %r13d
movq -0x78(%rbp), %rax
movq (%rax), %rax
movq -0x58(%rbp), %rcx
leaq (%rcx,%rcx,2), %r15
leaq (%rax,%r15,8), %rdi
addq %rbx, %rdx
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x277f
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
movq -0x30(%rbp), %r12
jmp 0x2788
callq 0x59d4
movq -0x30(%rbp), %r12
shlq $0x3, %r15
movq -0x68(%rbp), %rax
addq (%rax), %r15
movq %r12, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
movq -0x70(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rsi
addq %r14, %rsi
movq %r15, %rdi
callq 0x4a6e
incq %r13
movq %r12, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
movq -0x38(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rdx
movq 0x8(%rcx,%rax,8), %rax
subq %rdx, %rax
sarq $0x2, %rax
addq $0x30, %r14
addq $0x4, %rbx
cmpq %r13, %rax
ja 0x274d
movq %r12, %r13
cmpq -0xa0(%rbp), %r12
je 0x2a70
movq -0x30(%rbp), %r13
movq -0x50(%rbp), %rbx
movq -0x48(%rbp), %r15
movq %r15, %r14
subq %rbx, %r14
je 0x2851
sarq $0x2, %r14
movq %r13, %rdi
callq 0x2130
movl 0x24(%rax), %eax
cmpq $0x1, %r14
adcq $0x0, %r14
xorl %ecx, %ecx
xorl %edx, %edx
movl $0x1, %esi
cmpl %eax, (%rbx,%rcx,4)
movzbl %dl, %edx
cmovel %esi, %edx
incq %rcx
cmpq %rcx, %r14
jne 0x2838
testb $0x1, %dl
sete %bl
jmp 0x2853
movb $0x1, %bl
movq -0x30(%rbp), %rdi
callq 0x2130
movslq 0x24(%rax), %r14
movq %r13, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
cmpl %eax, %r14d
je 0x2a58
testb %bl, %bl
je 0x2a58
movq -0x38(%rbp), %rcx
movq (%rcx), %rbx
leaq (%rax,%rax,2), %rax
movq (%rbx,%rax,8), %rcx
movq 0x8(%rbx,%rax,8), %rax
subq %rcx, %rax
sarq $0x2, %rax
cmpq -0x88(%rbp), %rax
jbe 0x2a58
leaq (%r14,%r14,2), %rsi
movq (%rbx,%rsi,8), %rdx
movq 0x8(%rbx,%rsi,8), %rsi
subq %rdx, %rsi
je 0x28f4
sarq $0x2, %rsi
cmpq $0x1, %rsi
adcq $0x0, %rsi
xorl %edi, %edi
xorl %r8d, %r8d
movl (%rdx,%rdi,4), %r9d
xorl %r10d, %r10d
cmpl (%rcx,%r10,4), %r9d
je 0x28df
incq %r10
cmpq %r10, %rax
jne 0x28cf
jmp 0x28e2
incl %r8d
incq %rdi
cmpq %rsi, %rdi
jne 0x28c8
xorps %xmm0, %xmm0
cvtsi2ss %r8d, %xmm0
jmp 0x28f7
xorps %xmm0, %xmm0
testq %rax, %rax
js 0x2906
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
jmp 0x291e
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
addss %xmm1, %xmm1
mulss -0x7c(%rbp), %xmm1
ucomiss %xmm1, %xmm0
jbe 0x2a58
movq %r13, %rdi
callq 0x2130
movslq 0x24(%rax), %rdx
leaq (%rdx,%rdx,2), %rsi
movq (%rbx,%rsi,8), %rcx
cmpq %rcx, 0x8(%rbx,%rsi,8)
je 0x2a32
xorl %r14d, %r14d
movq -0x78(%rbp), %rax
movq (%rax), %rax
movq -0x58(%rbp), %rdx
leaq (%rdx,%rdx,2), %r15
movq (%rax,%r15,8), %rdx
movq 0x8(%rax,%r15,8), %rsi
movq %rsi, %rdi
subq %rdx, %rdi
je 0x29a4
sarq $0x2, %rdi
movl (%rcx,%r14,4), %r8d
cmpq $0x1, %rdi
adcq $0x0, %rdi
xorl %r9d, %r9d
xorl %r10d, %r10d
movl $0x1, %r11d
cmpl %r8d, (%rdx,%r9,4)
movzbl %r10b, %r10d
cmovel %r11d, %r10d
incq %r9
cmpq %r9, %rdi
jne 0x298a
testb $0x1, %r10b
jne 0x2a02
leaq (%rax,%r15,8), %rdi
leaq (%rcx,%r14,4), %rdx
cmpq 0x10(%rdi), %rsi
je 0x29c0
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x29c5
callq 0x59d4
shlq $0x3, %r15
movq -0x68(%rbp), %rax
addq (%rax), %r15
movq %r13, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
movq -0x70(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%r14,%r14,2), %rsi
shlq $0x4, %rsi
addq (%rcx,%rax,8), %rsi
movq %r15, %rdi
callq 0x4a6e
movq -0x38(%rbp), %rax
movq (%rax), %rbx
incq %r14
movq %r13, %rdi
callq 0x2130
movslq 0x24(%rax), %rdx
leaq (%rdx,%rdx,2), %rsi
movq (%rbx,%rsi,8), %rcx
movq 0x8(%rbx,%rsi,8), %rsi
subq %rcx, %rsi
sarq $0x2, %rsi
cmpq %r14, %rsi
ja 0x294e
movq -0x48(%rbp), %r15
cmpq -0x40(%rbp), %r15
je 0x2a45
movl %edx, (%r15)
addq $0x4, %r15
movq %r15, -0x48(%rbp)
jmp 0x2a58
addq $0x24, %rax
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x59d4
movq %r13, %rdi
callq 0x2130
movq %rax, %r13
cmpq -0xa0(%rbp), %rax
jne 0x2808
movq -0x60(%rbp), %rax
incl %eax
movq %rax, -0x60(%rbp)
movq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0x2130
movq %rax, %r12
cmpq %r13, %rax
jne 0x2652
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x2aa7
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x21f0
leaq -0xb8(%rbp), %rdi
callq 0x52ba
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2ad0
jmp 0x2ad0
movq %rax, %rbx
jmp 0x2ae8
jmp 0x2ad0
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x2ae8
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x21f0
leaq -0xb8(%rbp), %rdi
callq 0x52ba
movq %rbx, %rdi
callq 0x2340