// File: chulchultrain[P]FactoryHead/MapGenerator/MapGenerator.cpp
// Function: MapGenerator::TypeToEntryIDVectorMapHelper(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, 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, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>>>&)
void MapGenerator::TypeToEntryIDVectorMapHelper(map<string, vector<string> > &m) {
	map <string,vector<string> > dtt;
	//map <string, vector<string> > dte;

	DexIDToTypeVectorMap(dtt);


	m.clear();
	ifstream fin(ENTRYFILE);
	string DexID;
	string EntryID;
	string discard;	
	while(getline(fin,EntryID) ) {
		getline(fin,DexID);
		getline(fin,discard);
		while(discard != "")
			getline(fin,discard);
		vector<string> &types = dtt[DexID];
		for(unsigned int i = 0; i < types.size(); i++) {
			m[types[i]].push_back(EntryID);
		}
		m[DexID].push_back(EntryID);
	}
	fin.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x310, %rsp            # imm = 0x310
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x2d8(%rbp)
leaq -0x40(%rbp), %rdi
movq %rdi, -0x2d0(%rbp)
callq 0x6770
movq -0x2d8(%rbp), %rdi
movq -0x2d0(%rbp), %rsi
callq 0x41d0
jmp 0x4623
movq -0x10(%rbp), %rdi
callq 0x6a50
leaq 0x2a9f9(%rip), %rsi     # 0x2f02c
leaq -0x258(%rbp), %rdi
movl $0x8, %edx
callq 0x3440
jmp 0x4646
leaq -0x278(%rbp), %rdi
callq 0x3360
leaq -0x298(%rbp), %rdi
callq 0x3360
leaq -0x2b8(%rbp), %rdi
callq 0x3360
leaq -0x258(%rbp), %rdi
leaq -0x298(%rbp), %rsi
callq 0x3080
movq %rax, -0x2e0(%rbp)
jmp 0x4686
movq -0x2e0(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x3310
movb %al, -0x2e1(%rbp)
jmp 0x46a4
movb -0x2e1(%rbp), %al
testb $0x1, %al
jne 0x46b3
jmp 0x485d
leaq -0x258(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0x3080
jmp 0x46c8
leaq -0x258(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
callq 0x3080
jmp 0x46dd
jmp 0x46df
leaq 0x2ae7a(%rip), %rsi     # 0x2f560
leaq -0x2b8(%rbp), %rdi
callq 0x6bc0
movb %al, -0x2e2(%rbp)
jmp 0x46fa
movb -0x2e2(%rbp), %al
testb $0x1, %al
jne 0x4706
jmp 0x476f
leaq -0x258(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
callq 0x3080
jmp 0x471b
jmp 0x46df
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x48ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x2b8(%rbp), %rdi
callq 0x3180
leaq -0x298(%rbp), %rdi
callq 0x3180
leaq -0x278(%rbp), %rdi
callq 0x3180
leaq -0x258(%rbp), %rdi
callq 0x30a0
jmp 0x48ad
leaq -0x40(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0x6a70
movq %rax, -0x2f0(%rbp)
jmp 0x4788
movq -0x2f0(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movl $0x0, -0x2c4(%rbp)
movl -0x2c4(%rbp), %eax
movq %rax, -0x2f8(%rbp)
movq -0x2c0(%rbp), %rdi
callq 0x6bf0
movq %rax, %rcx
movq -0x2f8(%rbp), %rax
cmpq %rcx, %rax
jae 0x482a
movq -0x10(%rbp), %rax
movq %rax, -0x308(%rbp)
movq -0x2c0(%rbp), %rdi
movl -0x2c4(%rbp), %eax
movl %eax, %esi
callq 0x6c10
movq -0x308(%rbp), %rdi
movq %rax, %rsi
callq 0x6a70
movq %rax, -0x300(%rbp)
jmp 0x47ff
movq -0x300(%rbp), %rdi
leaq -0x298(%rbp), %rsi
callq 0x6b50
jmp 0x4814
jmp 0x4816
movl -0x2c4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c4(%rbp)
jmp 0x47a0
movq -0x10(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0x6a70
movq %rax, -0x310(%rbp)
jmp 0x4843
movq -0x310(%rbp), %rdi
leaq -0x298(%rbp), %rsi
callq 0x6b50
jmp 0x4858
jmp 0x466a
leaq -0x258(%rbp), %rdi
callq 0x3090
jmp 0x486b
leaq -0x2b8(%rbp), %rdi
callq 0x3180
leaq -0x298(%rbp), %rdi
callq 0x3180
leaq -0x278(%rbp), %rdi
callq 0x3180
leaq -0x258(%rbp), %rdi
callq 0x30a0
leaq -0x40(%rbp), %rdi
callq 0x6790
addq $0x310, %rsp            # imm = 0x310
popq %rbp
retq
leaq -0x40(%rbp), %rdi
callq 0x6790
movq -0x48(%rbp), %rdi
callq 0x3410
nop