// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %rbx
leaq 0x78(%rsp), %r14
movq %r14, %rdi
callq 0x430c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x425e
testb %al, %al
je 0x27bf
leaq 0x68(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2a58(%rip), %rsi      # 0x5038
leaq 0x2a52(%rip), %rdx      # 0x5039
leaq 0x58(%rsp), %rdi
callq 0x398a
leaq 0x78(%rsp), %rdi
leaq 0x58(%rsp), %rdx
movl $0x1, %esi
callq 0x4340
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x261c
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x48(%rsp), %r13
leaq 0x78(%rsp), %rbx
leaq 0x38(%rsp), %r14
leaq 0x5f06(%rip), %r15      # 0x8538
leaq 0x18(%rsp), %r12
movq %rbx, %rdi
callq 0x432c
testb %al, %al
jne 0x2773
movq 0x78(%rsp), %rax
movq %r13, %rbp
movq %r13, 0x38(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x38fa
movq 0x78(%rsp), %r13
movq 0x20(%r13), %rdi
callq 0x2300
movl %eax, 0xc(%rsp)
movq 0x40(%r13), %rdi
callq 0x2300
movl %eax, 0x10(%rsp)
movq 0x60(%r13), %rdi
callq 0x2300
movl %eax, 0x14(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x377a
cmpq $0x0, (%rax)
jne 0x26cc
movl $0x18, %edi
callq 0x2200
movq %rax, %r13
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %r15, %rdi
movq %r14, %rsi
callq 0x377a
movq %r13, (%rax)
movq %r15, %rdi
movq %r14, %rsi
callq 0x377a
movq (%rax), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x26fa
movl 0x14(%rsp), %eax
movl %eax, 0x8(%rsi)
movq 0xc(%rsp), %rax
movq %rax, (%rsi)
addq $0xc, 0x8(%rdi)
jmp 0x2704
leaq 0xc(%rsp), %rdx
callq 0x3d70
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq %r12, %rdi
leaq 0x2920(%rip), %rsi      # 0x5038
leaq 0x291a(%rip), %rdx      # 0x5039
callq 0x398a
movq %rbx, %rdi
movl $0x1, %esi
movq %r12, %rdx
movq %rbp, %r13
callq 0x4340
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x2753
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x2637
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x2637
movq 0x90(%rsp), %rdi
callq 0x2070
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27a1
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x78(%rsp), %rdi
callq 0x381c
xorl %eax, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x582a(%rip), %rdi      # 0x7ff0
leaq 0x2853(%rip), %rsi      # 0x5020
movl $0x17, %edx
callq 0x2250
movq 0x5812(%rip), %rdi      # 0x7ff0
movq %rbx, %rsi
callq 0x21f0
movq %rax, %rdi
callq 0x2100
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x2270
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x2854
movq 0x68(%rsp), %rsi
jmp 0x284c
jmp 0x2835
jmp 0x2835
jmp 0x283a
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x283d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x283d
jmp 0x2835
movq %rax, %rbx
jmp 0x2854
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2854
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x78(%rsp), %rdi
callq 0x37f6
movq %rbx, %rdi
callq 0x2380