// File: /workspace/github_cpp_makefile_star2_O2/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 $0x2c8, %rsp            # imm = 0x2C8
movq %rsi, -0x48(%rbp)
movq %rdi, %rbx
leaq -0x2f0(%rbp), %r14
movq %r14, %rdi
callq 0x2230
pushq $0x8
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2150
leaq -0x278(%rbp), %rdi
callq 0x20a0
testb %al, %al
je 0x493f
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorps %xmm0, %xmm0
leaq -0x40(%rbp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
leaq -0x68(%rbp), %r12
leaq -0x88(%rbp), %r13
leaq -0xe8(%rbp), %rbx
leaq -0xc8(%rbp), %r15
leaq -0x2f0(%rbp), %rdi
movq %r12, %rsi
callq 0x2080
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4903
movq %r12, %rdi
xorl %esi, %esi
callq 0x2370
cmpb $0x3b, (%rax)
jne 0x4816
movq %r13, %rdi
movq %r12, %rsi
callq 0x2280
movq %rbx, %rdi
leaq 0x280e(%rip), %rsi      # 0x7069
movq %r15, %rdx
callq 0x4b8c
movq %r13, %rdi
movq %rbx, %rsi
callq 0x24cc
movl %eax, %r14d
movq %rbx, %rdi
callq 0x2110
movq %r13, %rdi
callq 0x2110
testl %r14d, %r14d
jne 0x4903
movq -0x68(%rbp), %rsi
incq %rsi
movq %r15, %rdi
leaq 0x2482(%rip), %rdx      # 0x6d19
callq 0x250f
leaq -0x40(%rbp), %rdi
movq %r15, %rsi
callq 0x5124
movq %r15, %rdi
callq 0x4c0e
movq -0x38(%rbp), %rax
subq -0x40(%rbp), %rax
cmpq $0x40, %rax
jne 0x4816
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
callq 0x4c9a
movq %rax, %r14
leaq -0x40(%rbp), %rdi
pushq $0x1
popq %rsi
callq 0x4c9a
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x4cbc
movq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x51b4
movq %r15, %rdi
callq 0x4cf2
jmp 0x4816
leaq -0x2f0(%rbp), %rdi
callq 0x2090
leaq -0x40(%rbp), %rdi
callq 0x4c0e
leaq -0x68(%rbp), %rdi
callq 0x2110
leaq -0x2f0(%rbp), %rdi
callq 0x20b0
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x26d5(%rip), %rdi      # 0x701b
leaq 0x26df(%rip), %rsi      # 0x702c
leaq 0x26e7(%rip), %rcx      # 0x703b
movl $0x139, %edx            # imm = 0x139
callq 0x2160
jmp 0x498b
movq %rax, %rbx
jmp 0x49a0
movq %rax, %rbx
leaq -0xc8(%rbp), %rdi
callq 0x4cf2
jmp 0x498e
jmp 0x498b
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x2110
jmp 0x498e
jmp 0x498b
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x4c0e
leaq -0x68(%rbp), %rdi
callq 0x2110
leaq -0x2f0(%rbp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2350