// File: /workspace/github_cpp_makefile_star2_O3/haught[P]cws_plugin/cws_plugin.cpp
// Function: readGcode(char*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&)
void readGcode(char *fileName, map<string, string> &valueMap)
{
	ifstream infile;
	infile.open(fileName);   //���ļ����������ļ��������� 
	assert(infile.is_open());   //��ʧ��,�����������Ϣ,����ֹ�������� 
	
	string s;
	std::vector<std::string> ss;
	bool headInit = false;
	while (getline(infile, s))
	{
		//cout << s << endl;
		if (s.at(0) == ';') {
			if (startsWith(s, ";START_GCODE_BEGIN")) {
				headInit = true;
				break;
			}else{
				ss = split(s.data() + 1, ":");
				if (ss.size() == 2) {
					valueMap.insert(pair<string, string>(ss.at(0), ss.at(1)));
				}
			}
		}
	}
	infile.close();             //�ر��ļ������� 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movq %rsi, -0x88(%rbp)
movq %rdi, %rbx
leaq -0x308(%rbp), %r14
movq %r14, %rdi
callq 0x2230
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x2150
leaq -0x290(%rbp), %rdi
callq 0x20a0
testb %al, %al
je 0x6cc4
leaq -0x50(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
movq %rax, -0x30(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
leaq -0x60(%rbp), %r15
leaq -0x80(%rbp), %r12
leaq -0xc0(%rbp), %r13
movq -0x308(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x23a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x6c66
movq -0x58(%rbp), %rdx
testq %rdx, %rdx
je 0x6cb2
movq -0x60(%rbp), %rsi
cmpb $0x3b, (%rsi)
jne 0x6a92
leaq -0x70(%rbp), %rax
movq %rax, -0x80(%rbp)
addq %rsi, %rdx
movq %r12, %rdi
callq 0x7296
leaq -0x98(%rbp), %rbx
movq %rbx, -0xa8(%rbp)
leaq -0xa8(%rbp), %rdi
leaq 0x2572(%rip), %rsi      # 0x9081
leaq 0x257d(%rip), %rdx      # 0x9093
callq 0x7334
movq -0xa8(%rbp), %rsi
movq -0xa0(%rbp), %rcx
movq %r12, %rdi
xorl %edx, %edx
callq 0x2370
movq %rax, %r12
movq -0xa8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x6b51
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x6b6a
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2210
testq %r12, %r12
leaq -0x80(%rbp), %r12
je 0x6c66
movq -0x60(%rbp), %rsi
incq %rsi
movq %r13, %rdi
leaq 0x21a9(%rip), %rdx      # 0x8d31
callq 0x2554
movaps -0x40(%rbp), %xmm0
movq -0x30(%rbp), %rax
movaps -0xc0(%rbp), %xmm1
movaps %xmm1, -0x40(%rbp)
movq -0xb0(%rbp), %rcx
movq %rcx, -0x30(%rbp)
movups %xmm0, -0x100(%rbp)
movq %rax, -0xf0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0xc0(%rbp)
movq $0x0, -0xb0(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x7058
movq %r13, %rdi
callq 0x7058
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rax
subq %rsi, %rax
cmpq $0x40, %rax
jne 0x6a92
leaq 0x20(%rsi), %rdx
leaq -0x100(%rbp), %rbx
movq %rbx, %rdi
callq 0x7124
movq -0x88(%rbp), %rdi
movq %rbx, %rsi
callq 0x7646
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x6c3b
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x6a92
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0x6a92
leaq -0x308(%rbp), %rdi
callq 0x2090
leaq -0x40(%rbp), %rdi
callq 0x7058
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x6c94
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x308(%rbp), %rdi
callq 0x20b0
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x24a4(%rip), %rdi      # 0x915d
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x22e0
leaq 0x2368(%rip), %rdi      # 0x9033
leaq 0x2372(%rip), %rsi      # 0x9044
leaq 0x237a(%rip), %rcx      # 0x9053
movl $0x139, %edx            # imm = 0x139
callq 0x2160
movq %rax, %rbx
jmp 0x6d42
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x7192
jmp 0x6d20
jmp 0x6d1d
jmp 0x6d1d
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x6d20
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0x6d20
jmp 0x6d1d
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x7058
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x6d42
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x308(%rbp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2380