// File: superyuan[P]refeditor/MappingConvertor.cpp
// Function: readMapFile(char const*)
int readMapFile(const char *fileName)
{
	CLineFields mapFile;
    if (mapFile.openFile(fileName)==false) { 
            cerr << "Can not open map file: " << fileName << endl;
            exit (-1);
    }
	mapFile.readline();
	while (mapFile.endofFile()==false) {
		posMap cm;
		string chrName = mapFile.field[0];
		cm.from = atoi(mapFile.field[1].c_str());
		cm.length = atoi(mapFile.field[2].c_str());
		cm.to = atoi(mapFile.field[3].c_str());
		
		if (chrMap[chrName]==NULL) {
			chrMap[chrName] = new vector<posMap>;
		}
		(*chrMap[chrName]).push_back(cm);
		mapFile.readline();
	}
	mapFile.fp->close();
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x8(%rbp)
leaq -0x48(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x8060
movq -0xd8(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x7f20
movb %al, -0xca(%rbp)
jmp 0x36a7
movb -0xca(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x371c
movq 0xc932(%rip), %rdi      # 0xfff0
leaq 0x794b(%rip), %rsi      # 0xb010
callq 0x3230
movq %rax, -0xe0(%rbp)
jmp 0x36d3
movq -0xe0(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x3230
movq %rax, -0xe8(%rbp)
jmp 0x36ec
movq -0xe8(%rbp), %rdi
movq 0xc8be(%rip), %rsi      # 0xffb8
callq 0x3280
jmp 0x3701
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x32e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x39e3
leaq -0x79(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x3440
movq -0xf0(%rbp), %rdx
leaq 0x78ee(%rip), %rsi      # 0xb028
leaq -0x78(%rbp), %rdi
callq 0x4c00
jmp 0x3745
leaq -0x48(%rbp), %rdi
movl $0x1, %esi
leaq -0x78(%rbp), %rdx
callq 0x80d0
jmp 0x3759
leaq -0x78(%rbp), %rdi
callq 0x3150
leaq -0x79(%rbp), %rdi
callq 0x32a0
leaq -0x48(%rbp), %rdi
callq 0x80a0
movb %al, -0xf1(%rbp)
jmp 0x377c
movb -0xf1(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x39c4
xorl %eax, %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x4cb0
movq %rax, %rsi
leaq -0xa8(%rbp), %rdi
callq 0x3100
jmp 0x37ae
leaq -0x48(%rbp), %rdi
movq %rdi, -0x108(%rbp)
movl $0x1, %esi
callq 0x4cb0
movq %rax, %rdi
callq 0x30f0
movq %rax, %rdi
callq 0x33c0
movq -0x108(%rbp), %rdi
movl %eax, -0x88(%rbp)
movl $0x2, %esi
callq 0x4cb0
movq %rax, %rdi
callq 0x30f0
movq %rax, %rdi
callq 0x33c0
movq -0x108(%rbp), %rdi
movl %eax, -0x84(%rbp)
movl $0x3, %esi
callq 0x4cb0
movq %rax, %rdi
callq 0x30f0
movq %rax, %rdi
callq 0x33c0
movl %eax, -0x80(%rbp)
leaq 0xcd8d(%rip), %rdi      # 0x105b8
leaq -0xa8(%rbp), %rsi
callq 0x4cd0
movq %rax, -0x100(%rbp)
jmp 0x3840
movq -0x100(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x38e1
movl $0x18, %edi
callq 0x3240
movq %rax, -0x110(%rbp)
jmp 0x3864
movq -0x110(%rbp), %rdi
callq 0x4db0
leaq 0xcd41(%rip), %rdi      # 0x105b8
leaq -0xa8(%rbp), %rsi
callq 0x4cd0
movq %rax, -0x118(%rbp)
jmp 0x388c
movq -0x118(%rbp), %rax
movq -0x110(%rbp), %rcx
movq %rcx, (%rax)
jmp 0x38e1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x38c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x3150
leaq -0x79(%rbp), %rdi
callq 0x32a0
jmp 0x39e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x39b6
leaq 0xccd0(%rip), %rdi      # 0x105b8
leaq -0xa8(%rbp), %rsi
callq 0x4cd0
movq %rax, -0x120(%rbp)
jmp 0x38fd
movq -0x120(%rbp), %rax
movq (%rax), %rdi
leaq -0x88(%rbp), %rsi
callq 0x4dd0
jmp 0x3915
leaq -0xc9(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x3440
movq -0x128(%rbp), %rdx
leaq 0x76f2(%rip), %rsi      # 0xb028
leaq -0xc8(%rbp), %rdi
callq 0x4c00
jmp 0x3944
leaq -0x48(%rbp), %rdi
movl $0x1, %esi
leaq -0xc8(%rbp), %rdx
callq 0x80d0
jmp 0x395b
leaq -0xc8(%rbp), %rdi
callq 0x3150
leaq -0xc9(%rbp), %rdi
callq 0x32a0
leaq -0xa8(%rbp), %rdi
callq 0x3150
jmp 0x376b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x39aa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x3150
leaq -0xc9(%rbp), %rdi
callq 0x32a0
leaq -0xa8(%rbp), %rdi
callq 0x3150
jmp 0x39e3
movq -0x30(%rbp), %rdi
callq 0x3090
jmp 0x39cf
leaq -0x48(%rbp), %rdi
callq 0x4e40
xorl %eax, %eax
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
leaq -0x48(%rbp), %rdi
callq 0x4e40
movq -0x50(%rbp), %rdi
callq 0x3430
nopw %cs:(%rax,%rax)