// File: /workspace/github_cpp_makefile_star2_O1/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 0x6d28
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 0x6ccc
movq -0x58(%rbp), %rdx
testq %rdx, %rdx
je 0x6d18
movq -0x60(%rbp), %rsi
cmpb $0x3b, (%rsi)
jne 0x6aea
leaq -0x70(%rbp), %rax
movq %rax, -0x80(%rbp)
addq %rsi, %rdx
movq %r12, %rdi
callq 0x72ee
leaq -0x98(%rbp), %rbx
movq %rbx, -0xa8(%rbp)
leaq -0xa8(%rbp), %rdi
leaq 0x251a(%rip), %rsi      # 0x9081
leaq 0x2525(%rip), %rdx      # 0x9093
callq 0x7388
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 0x6ba9
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x6bc2
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2210
testq %r12, %r12
leaq -0x80(%rbp), %r12
je 0x6ccc
movq -0x60(%rbp), %rsi
incq %rsi
movq %r13, %rdi
leaq 0x2151(%rip), %rdx      # 0x8d31
callq 0x2554
xorps %xmm0, %xmm0
movaps %xmm0, -0x100(%rbp)
movaps -0x40(%rbp), %xmm0
movq -0x30(%rbp), %rax
movups -0xc0(%rbp), %xmm1
movaps %xmm1, -0x40(%rbp)
movq -0xb0(%rbp), %rcx
movq %rcx, -0x30(%rbp)
movaps -0x100(%rbp), %xmm1
movaps %xmm0, -0x100(%rbp)
movq %rax, -0xf0(%rbp)
movups %xmm1, -0xc0(%rbp)
movq $0x0, -0xb0(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x70b4
movq %r13, %rdi
callq 0x70b4
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rax
subq %rsi, %rax
cmpq $0x40, %rax
jne 0x6aea
leaq 0x20(%rsi), %rdx
leaq -0x100(%rbp), %rbx
movq %rbx, %rdi
callq 0x717c
movq -0x88(%rbp), %rdi
movq %rbx, %rsi
callq 0x76be
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x6ca1
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x6aea
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0x6aea
leaq -0x308(%rbp), %rdi
callq 0x2090
leaq -0x40(%rbp), %rdi
callq 0x70b4
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x6cfa
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 0x243e(%rip), %rdi      # 0x915d
xorl %esi, %esi
xorl %eax, %eax
callq 0x22e0
leaq 0x2304(%rip), %rdi      # 0x9033
leaq 0x230e(%rip), %rsi      # 0x9044
leaq 0x2316(%rip), %rcx      # 0x9053
movl $0x139, %edx            # imm = 0x139
callq 0x2160
movq %rax, %rbx
jmp 0x6da6
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x71ea
jmp 0x6d84
jmp 0x6d81
jmp 0x6d81
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x6d84
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0x6d84
jmp 0x6d81
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x70b4
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x6da6
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x308(%rbp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2380