// File: CK7[P]abawaca/src/SCGdb.cpp
// Function: SCGdb::get_scg2count(std::set<unsigned long, std::less<unsigned long>, std::allocator<unsigned long>> const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, unsigned long>>>&) const
void SCGdb::get_scg2count(const set<size_t>& scafs, map<string, size_t>& result) const
{
	result.clear();

	for(auto it=scafs.begin(); it!=scafs.end(); it++) {
		auto mit = scaf2scgs.find(*it);
		if(mit == scaf2scgs.end())
			continue;
		for(auto scgit = mit->second.begin(); scgit!=mit->second.end(); scgit++) {
			auto rit = result.find(*scgit);
			if(rit == result.end()) {
				result.insert(pair<string, size_t>(*scgit, 0));
				rit = result.find(*scgit);
			}
			rit->second++;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2cbe0
movq -0x10(%rbp), %rdi
callq 0xa8e0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0xa910
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xa3a0
testb $0x1, %al
jne 0x2be3b
jmp 0x2c03d
movq -0xc8(%rbp), %rax
addq $0x40, %rax
movq %rax, -0xd0(%rbp)
leaq -0x20(%rbp), %rdi
callq 0xa400
movq -0xd0(%rbp), %rdi
movq %rax, %rsi
callq 0x2ca70
movq -0xc8(%rbp), %rdi
movq %rax, -0x30(%rbp)
addq $0x40, %rdi
callq 0x2cad0
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2caa0
testb $0x1, %al
jne 0x2be90
jmp 0x2be95
jmp 0x2c026
leaq -0x30(%rbp), %rdi
callq 0x2cb40
movq %rax, %rdi
addq $0x8, %rdi
callq 0x2cb60
movq %rax, -0x40(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x2cb40
movq %rax, %rdi
addq $0x8, %rdi
callq 0x2cb90
movq %rax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x2cc00
testb $0x1, %al
jne 0x2bedd
jmp 0x2c024
movq -0x18(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x2cc30
movq -0xd8(%rbp), %rdi
movq %rax, %rsi
callq 0x150b0
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
callq 0x151c0
movq %rax, -0x58(%rbp)
leaq -0x50(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x1a7e0
testb $0x1, %al
jne 0x2bf27
jmp 0x2bff8
movq -0x18(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x2cc30
movq %rax, %rsi
movl $0x0, -0x84(%rbp)
leaq -0x80(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
leaq -0x84(%rbp), %rdx
callq 0x2cc50
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0x14470
movb %dl, -0xe1(%rbp)
movq %rax, -0xe0(%rbp)
jmp 0x2bf81
movb -0xe1(%rbp), %al
movq -0xe0(%rbp), %rcx
movq %rcx, -0xa8(%rbp)
movb %al, -0xa0(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x14510
movq -0x18(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x2cc30
movq -0x100(%rbp), %rdi
movq %rax, %rsi
callq 0x150b0
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x2bff8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x14510
jmp 0x2c046
leaq -0x50(%rbp), %rdi
callq 0x151f0
movq 0x20(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x20(%rax)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
callq 0x2cc90
movq %rax, -0xb8(%rbp)
jmp 0x2beae
jmp 0x2c026
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0xa420
movq %rax, -0xc0(%rbp)
jmp 0x2be18
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0x90(%rbp), %rdi
callq 0x5750
nopw %cs:(%rax,%rax)