// File: /workspace/github_cpp_makefile_star2_O1/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, -0x70(%rbp)
movq %rcx, -0x68(%rbp)
movss %xmm0, -0x7c(%rbp)
movl %edx, -0x60(%rbp)
movq %rdi, -0x30(%rbp)
leaq -0xb8(%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, -0x78(%rbp)
cmpq %rax, 0x8(%rsi)
je 0x261c
movl $0x8, %ebx
xorl %r14d, %r14d
leaq -0xc0(%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 0x5490
incq %r14
movq -0x78(%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 0x25cb
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
cmpq -0xa8(%rbp), %r12
je 0x2a9a
movslq -0x60(%rbp), %rax
movq %rax, -0x88(%rbp)
xorl %r14d, %r14d
movq -0x50(%rbp), %rbx
movq -0x48(%rbp), %r15
subq %rbx, %r15
je 0x268c
sarq $0x2, %r15
movq %r12, %rdi
callq 0x2130
movl $0x1, %esi
movl 0x24(%rax), %eax
cmpq $0x1, %r15
adcq $0x0, %r15
xorl %ecx, %ecx
xorl %edx, %edx
cmpl %eax, (%rbx,%rcx,4)
movzbl %dl, %edx
cmovel %esi, %edx
incq %rcx
cmpq %rcx, %r15
jne 0x2673
testb $0x1, %dl
sete %bl
jmp 0x268e
movb $0x1, %bl
movq %r12, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
movq -0x30(%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 0x2a82
testb %bl, %bl
je 0x2a82
movq -0x68(%rbp), %rdi
movq 0x8(%rdi), %rsi
subq (%rdi), %rsi
sarq $0x3, %rsi
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rbx, %rsi
incq %rsi
callq 0x49f4
movq -0x70(%rbp), %rdi
movq 0x8(%rdi), %rsi
subq (%rdi), %rsi
sarq $0x3, %rsi
imulq %rbx, %rsi
incq %rsi
callq 0x4a38
movq %r12, -0x58(%rbp)
movq %r12, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rdx
movq %r14, -0x90(%rbp)
movslq %r14d, %rsi
movq %rsi, -0x60(%rbp)
cmpq %rdx, 0x8(%rcx,%rax,8)
je 0x27ee
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %ebx, %ebx
movq -0x68(%rbp), %rax
movq (%rax), %rax
movq -0x60(%rbp), %rcx
leaq (%rcx,%rcx,2), %r15
leaq (%rax,%r15,8), %rdi
addq %r12, %rdx
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2779
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
movq -0x58(%rbp), %r14
jmp 0x2782
callq 0x599a
movq -0x58(%rbp), %r14
shlq $0x3, %r15
movq -0x70(%rbp), %rax
addq (%rax), %r15
movq %r14, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
movq -0x78(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rsi
addq %r13, %rsi
movq %r15, %rdi
callq 0x4ab0
incq %rbx
movq %r14, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
movq -0x30(%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, %r13
addq $0x4, %r12
cmpq %rbx, %rax
ja 0x2747
movq -0x58(%rbp), %r12
cmpq -0xa8(%rbp), %r12
je 0x2a78
movq %r12, %r13
movq -0x50(%rbp), %rbx
movq -0x48(%rbp), %r15
subq %rbx, %r15
je 0x2849
sarq $0x2, %r15
movq %r13, %rdi
callq 0x2130
movl 0x24(%rax), %eax
cmpq $0x1, %r15
adcq $0x0, %r15
xorl %ecx, %ecx
xorl %edx, %edx
movl $0x1, %esi
cmpl %eax, (%rbx,%rcx,4)
movzbl %dl, %edx
cmovel %esi, %edx
incq %rcx
cmpq %rcx, %r15
jne 0x282f
testb $0x1, %dl
sete %r15b
jmp 0x284c
movb $0x1, %r15b
movq %r12, %rdi
callq 0x2130
movslq 0x24(%rax), %rbx
movq %r13, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
cmpl %eax, %ebx
je 0x2a60
testb %r15b, %r15b
je 0x2a60
movq -0x30(%rbp), %rcx
movq (%rcx), %rsi
leaq (%rax,%rax,2), %rax
movq (%rsi,%rax,8), %rcx
movq 0x8(%rsi,%rax,8), %rax
subq %rcx, %rax
sarq $0x2, %rax
cmpq -0x88(%rbp), %rax
jbe 0x2a60
leaq (%rbx,%rbx,2), %rdi
movq (%rsi,%rdi,8), %rdx
movq 0x8(%rsi,%rdi,8), %rsi
subq %rdx, %rsi
je 0x28ec
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 0x28d7
incq %r10
cmpq %r10, %rax
jne 0x28c7
jmp 0x28da
incl %r8d
incq %rdi
cmpq %rsi, %rdi
jne 0x28c0
xorps %xmm0, %xmm0
cvtsi2ss %r8d, %xmm0
jmp 0x28ef
xorps %xmm0, %xmm0
testq %rax, %rax
js 0x28fe
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
jmp 0x2916
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 0x2a60
movq %r13, %rdi
callq 0x2130
movslq 0x24(%rax), %rdx
movq -0x30(%rbp), %rcx
movq (%rcx), %rsi
leaq (%rdx,%rdx,2), %rdi
movq (%rsi,%rdi,8), %rcx
cmpq %rcx, 0x8(%rsi,%rdi,8)
je 0x2a3a
xorl %r12d, %r12d
movq -0x68(%rbp), %rbx
movq (%rbx), %rax
movq -0x60(%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 0x29a6
sarq $0x2, %rdi
movl (%rcx,%r12,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 0x2989
testb $0x1, %r10b
sete %dl
jmp 0x29a8
movb $0x1, %dl
testb %dl, %dl
je 0x2a03
leaq (%rax,%r15,8), %rdi
leaq (%rcx,%r12,4), %rdx
cmpq 0x10(%rdi), %rsi
je 0x29c8
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x29cd
callq 0x599a
shlq $0x3, %r15
movq -0x70(%rbp), %rax
addq (%rax), %r15
movq %r13, %rdi
callq 0x2130
movslq 0x24(%rax), %rax
movq -0x78(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%r12,%r12,2), %rsi
shlq $0x4, %rsi
addq (%rcx,%rax,8), %rsi
movq %r15, %rdi
callq 0x4ab0
incq %r12
movq %r13, %rdi
callq 0x2130
movslq 0x24(%rax), %rdx
movq -0x30(%rbp), %rcx
movq (%rcx), %rsi
leaq (%rdx,%rdx,2), %rdi
movq (%rsi,%rdi,8), %rcx
movq 0x8(%rsi,%rdi,8), %rsi
subq %rcx, %rsi
sarq $0x2, %rsi
cmpq %r12, %rsi
ja 0x2951
movq -0x58(%rbp), %r12
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x2a50
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x2a60
addq $0x24, %rax
leaq -0x50(%rbp), %rdi
movq %rax, %rdx
callq 0x599a
movq %r13, %rdi
callq 0x2130
movq %rax, %r13
cmpq -0xa8(%rbp), %rax
jne 0x2802
movq -0x90(%rbp), %r14
incl %r14d
movq %r12, %rdi
callq 0x2130
movq %rax, %r12
cmpq -0xa8(%rbp), %rax
jne 0x2646
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x2aaf
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x21f0
leaq -0xc0(%rbp), %rdi
callq 0x528a
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2ad8
jmp 0x2ad8
movq %rax, %rbx
jmp 0x2af0
jmp 0x2ad8
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x2af0
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x21f0
leaq -0xc0(%rbp), %rdi
callq 0x528a
movq %rbx, %rdi
callq 0x2340