// File: /workspace/github_cpp_makefile_star2_O2/lindorx[P]train/HelpInsPro.cpp
// Function: acdb_m1_num(short, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
std::vector<unsigned char>acdb_m1_num(short cmd,std::string str,std::string m1_str,int num)
{
	using namespace std;
	vector<unsigned char>data;
	vector<unsigned char>d = Num(m1_str, 2, num);
	unsigned char n_ax=0xa3,n_al=0xa2, n_16=0x89,n_8=0x88,n_s=0x8c;
	//����cmd
	if (cmd == 2){
		n_ax = 0xa1;
		n_al = 0xa0;
		n_16 = 0x8b;
		n_8 = 0x8a;
		n_s = 0x8e;
	}
	for (int i = 0; i < 16; ++i){
		//�ж��Ƿ�Ϊ16λ�Ĵ���
		if (str == reg2[i]){
			if (i == 0 || i == 8)//reg[0]��reg[8]��Ӧ���ַ���ʱax����������
				data.push_back(n_ax);
			else{
				data.push_back(n_16);
				if (i>7)data.push_back(m_unch[i - 8]);
				else data.push_back(m_unch[i]);
			}
			data.insert(data.end(), d.begin(), d.end());
			return data;
		}
		//�ж��Ƿ�Ϊ8λ�Ĵ���
		if (str == reg2[i]){
			if (i == 0 || i == 8)//reg[0]��reg[8]��Ӧ���ַ���ʱax����������
				data.push_back(n_al);
			else{
				data.push_back(n_8);
				if (i>7)data.push_back(m_unch[i - 8]);
				else data.push_back(m_unch[i]);
			}
			data.insert(data.end(), d.begin(), d.end());
			return data;
		}
	}
	if (str == "es" || str == "ES"){
		data.push_back(n_s);
		data.push_back(0x06);
		data.insert(data.end(), d.begin(), d.end());
		return data;
	}
	if (str == "cs" || str == "CS"){
		data.push_back(n_s);
		data.push_back(0x0e);
		data.insert(data.end(), d.begin(), d.end());
		return data;
	}
	if (str == "ss" || str == "SS"){
		data.push_back(n_s);
		data.push_back(0x16);
		data.insert(data.end(), d.begin(), d.end());
		return data;
	}
	if (str == "ds" || str == "DS"){
		data.push_back(n_s);
		data.push_back(0x1e);
		data.insert(data.end(), d.begin(), d.end());
		return data;
	}
	cout << "����--017,�����飺" << str<<endl;
	return data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq -0x40(%rbp), %rdi
pushq $0x2
popq %rdx
movq %rcx, %rsi
movl %r8d, %ecx
callq 0x420a
movb $-0x5d, -0x26(%rbp)
movb $-0x5e, -0x25(%rbp)
movb $-0x77, -0x24(%rbp)
movb $-0x78, -0x23(%rbp)
movb $-0x74, -0x21(%rbp)
cmpw $0x2, %r15w
jne 0x5507
movb $-0x5f, -0x26(%rbp)
movb $-0x60, -0x25(%rbp)
movb $-0x75, -0x24(%rbp)
movb $-0x76, -0x23(%rbp)
movb $-0x72, -0x21(%rbp)
leaq 0xc0d2(%rip), %r15      # 0x115e0
xorl %r12d, %r12d
cmpq $-0x10, %r12
je 0x5542
movq %r14, %rdi
movq %r15, %rsi
callq 0x5aa9
testb %al, %al
jne 0x55a0
movq %r14, %rdi
movq %r15, %rsi
callq 0x5aa9
testb %al, %al
jne 0x55d2
decq %r12
addq $0x20, %r15
jmp 0x5511
leaq 0x7c2b(%rip), %rsi      # 0xd174
movq %r14, %rdi
callq 0x5ad5
testb %al, %al
jne 0x556c
leaq 0x7c0c(%rip), %rsi      # 0xd168
movq %r14, %rdi
callq 0x5ad5
testb %al, %al
je 0x5677
leaq -0x21(%rbp), %rsi
movq %rbx, %rdi
callq 0x5ae6
leaq -0x22(%rbp), %rsi
movb $0x6, (%rsi)
movq %rbx, %rdi
callq 0x5c1e
movq 0x8(%rbx), %rsi
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq %rbx, %rdi
callq 0x5b08
jmp 0x565e
movq %r12, %r14
negq %r14
testb $0x7, %r14b
je 0x5604
leaq -0x24(%rbp), %rsi
movq %rbx, %rdi
callq 0x5ae6
cmpq $0x8, %r14
jb 0x5610
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
subl %r12d, %eax
leaq 0x7ab3(%rip), %rsi      # 0xd080
addq %rax, %rsi
jmp 0x561a
movq %r12, %r14
negq %r14
testb $0x7, %r14b
je 0x560a
leaq -0x23(%rbp), %rsi
movq %rbx, %rdi
callq 0x5ae6
cmpq $0x8, %r14
jb 0x5638
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
subl %r12d, %eax
leaq 0x7a81(%rip), %rsi      # 0xd080
addq %rax, %rsi
jmp 0x5642
leaq -0x26(%rbp), %rsi
jmp 0x561a
leaq -0x25(%rbp), %rsi
jmp 0x5642
leaq 0x7a69(%rip), %rsi      # 0xd080
subq %r12, %rsi
movq %rbx, %rdi
callq 0x5ae6
movq 0x8(%rbx), %rsi
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq %rbx, %rdi
callq 0x5b08
jmp 0x565e
leaq 0x7a41(%rip), %rsi      # 0xd080
subq %r12, %rsi
movq %rbx, %rdi
callq 0x5ae6
movq 0x8(%rbx), %rsi
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq %rbx, %rdi
callq 0x5b08
leaq -0x40(%rbp), %rdi
callq 0x5be8
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7af9(%rip), %rsi      # 0xd177
movq %r14, %rdi
callq 0x5ad5
testb %al, %al
jne 0x569d
leaq 0x7ada(%rip), %rsi      # 0xd16b
movq %r14, %rdi
callq 0x5ad5
testb %al, %al
je 0x56ce
leaq -0x21(%rbp), %rsi
movq %rbx, %rdi
callq 0x5ae6
leaq -0x22(%rbp), %rsi
movb $0xe, (%rsi)
movq %rbx, %rdi
callq 0x5c1e
movq 0x8(%rbx), %rsi
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq %rbx, %rdi
callq 0x5b08
jmp 0x565e
leaq 0x7aa5(%rip), %rsi      # 0xd17a
movq %r14, %rdi
callq 0x5ad5
testb %al, %al
jne 0x56f4
leaq 0x7a86(%rip), %rsi      # 0xd16e
movq %r14, %rdi
callq 0x5ad5
testb %al, %al
je 0x5728
leaq -0x21(%rbp), %rsi
movq %rbx, %rdi
callq 0x5ae6
leaq -0x22(%rbp), %rsi
movb $0x16, (%rsi)
movq %rbx, %rdi
callq 0x5c1e
movq 0x8(%rbx), %rsi
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq %rbx, %rdi
callq 0x5b08
jmp 0x565e
leaq 0x7a4e(%rip), %rsi      # 0xd17d
movq %r14, %rdi
callq 0x5ad5
testb %al, %al
jne 0x574e
leaq 0x7a2f(%rip), %rsi      # 0xd171
movq %r14, %rdi
callq 0x5ad5
testb %al, %al
je 0x5782
leaq -0x21(%rbp), %rsi
movq %rbx, %rdi
callq 0x5ae6
leaq -0x22(%rbp), %rsi
movb $0x1e, (%rsi)
movq %rbx, %rdi
callq 0x5c1e
movq 0x8(%rbx), %rsi
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq %rbx, %rdi
callq 0x5b08
jmp 0x565e
movq 0xb84f(%rip), %rdi      # 0x10fd8
leaq 0x7b88(%rip), %rsi      # 0xd318
callq 0x21b0
movq %rax, %rdi
movq %r14, %rsi
callq 0x2190
movq %rax, %rdi
callq 0x2100
jmp 0x565e
jmp 0x57c8
jmp 0x57c8
jmp 0x57c8
jmp 0x57c8
jmp 0x57c8
jmp 0x57c8
jmp 0x57c8
jmp 0x57c8
jmp 0x57c8
jmp 0x57c8
jmp 0x57c8
movq %rax, %r14
jmp 0x57d4
movq %rax, %r14
leaq -0x40(%rbp), %rdi
callq 0x5be8
movq %rbx, %rdi
callq 0x5be8
movq %r14, %rdi
callq 0x2300