// File: /workspace/github_cpp_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq -0x48(%rbp), %rdi
movq %rcx, %rsi
movl $0x2, %edx
movl %r8d, %ecx
callq 0x48ee
movb $-0x5d, -0x2c(%rbp)
movb $-0x77, -0x2b(%rbp)
movb $-0x74, -0x29(%rbp)
cmpw $0x2, %r15w
jne 0x5f9d
movb $-0x5f, -0x2c(%rbp)
movb $-0x75, -0x2b(%rbp)
movb $-0x72, -0x29(%rbp)
movq 0x8(%r14), %r15
leaq 0xf640(%rip), %r13      # 0x155e8
xorl %r12d, %r12d
cmpq (%r13), %r15
jne 0x5fd1
testq %r15, %r15
je 0x60ce
movq -0x8(%r13), %rsi
movq (%r14), %rdi
movq %r15, %rdx
callq 0x21f0
testl %eax, %eax
je 0x60ce
decq %r12
addq $0x20, %r13
cmpq $-0x10, %r12
jne 0x5fab
leaq 0xb18f(%rip), %rsi      # 0x11174
movq %r14, %rdi
callq 0x20a0
testl %eax, %eax
je 0x6102
leaq 0xb16c(%rip), %rsi      # 0x11168
movq %r14, %rdi
callq 0x20a0
testl %eax, %eax
je 0x6102
leaq 0xb164(%rip), %rsi      # 0x11177
movq %r14, %rdi
callq 0x20a0
testl %eax, %eax
je 0x615e
leaq 0xb141(%rip), %rsi      # 0x1116b
movq %r14, %rdi
callq 0x20a0
testl %eax, %eax
je 0x615e
leaq 0xb139(%rip), %rsi      # 0x1117a
movq %r14, %rdi
callq 0x20a0
testl %eax, %eax
je 0x61a7
leaq 0xb116(%rip), %rsi      # 0x1116e
movq %r14, %rdi
callq 0x20a0
testl %eax, %eax
je 0x61a7
leaq 0xb10e(%rip), %rsi      # 0x1117d
movq %r14, %rdi
callq 0x20a0
testl %eax, %eax
je 0x61ed
leaq 0xb0eb(%rip), %rsi      # 0x11171
movq %r14, %rdi
callq 0x20a0
testl %eax, %eax
je 0x61ed
movq 0xef3b(%rip), %rdi      # 0x14fd8
leaq 0xb274(%rip), %rsi      # 0x11318
movl $0x12, %edx
callq 0x2210
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0xef1c(%rip), %rdi      # 0x14fd8
callq 0x2210
movq %rax, %rdi
callq 0x20f0
jmp 0x624d
movq %r12, %r14
negq %r14
testb $0x7, %r14b
je 0x6117
leaq -0x2b(%rbp), %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x67cc
cmpq $0x8, %r14
jb 0x611f
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
subl %r12d, %eax
leaq 0xaf83(%rip), %rdx      # 0x11080
addq %rax, %rdx
jmp 0x6129
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x6173
movb -0x29(%rbp), %al
movb %al, (%rsi)
incq 0x8(%rbx)
jmp 0x617f
xorl %esi, %esi
leaq -0x2c(%rbp), %rdx
jmp 0x613d
leaq 0xaf5a(%rip), %rdx      # 0x11080
subq %r12, %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x613d
movb (%rdx), %al
movb %al, (%rsi)
incq 0x8(%rbx)
jmp 0x6145
movq %rbx, %rdi
callq 0x67cc
movq 0x8(%rbx), %rsi
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq %rbx, %rdi
callq 0x68c6
jmp 0x624d
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x61bc
movb -0x29(%rbp), %al
movb %al, (%rsi)
incq 0x8(%rbx)
jmp 0x61c8
leaq -0x29(%rbp), %rdx
movq %rbx, %rdi
callq 0x67cc
leaq -0x2a(%rbp), %rsi
movb $0x6, (%rsi)
movq %rbx, %rdi
callq 0x6694
movq 0x8(%rbx), %rsi
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq %rbx, %rdi
callq 0x68c6
jmp 0x624d
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x621e
movb -0x29(%rbp), %al
movb %al, (%rsi)
incq 0x8(%rbx)
jmp 0x622a
leaq -0x29(%rbp), %rdx
movq %rbx, %rdi
callq 0x67cc
leaq -0x2a(%rbp), %rsi
movb $0xe, (%rsi)
movq %rbx, %rdi
callq 0x6694
movq 0x8(%rbx), %rsi
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq %rbx, %rdi
callq 0x68c6
jmp 0x624d
leaq -0x29(%rbp), %rsi
movq %rbx, %rdi
callq 0x65d4
leaq -0x2a(%rbp), %rsi
movb $0x1e, (%rsi)
movq %rbx, %rdi
callq 0x6694
movq 0x8(%rbx), %rsi
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq %rbx, %rdi
callq 0x68c6
jmp 0x624d
leaq -0x29(%rbp), %rdx
movq %rbx, %rdi
callq 0x67cc
leaq -0x2a(%rbp), %rsi
movb $0x16, (%rsi)
movq %rbx, %rdi
callq 0x6694
movq 0x8(%rbx), %rsi
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq %rbx, %rdi
callq 0x68c6
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x6262
movq -0x38(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6288
jmp 0x6288
jmp 0x6288
jmp 0x6288
jmp 0x6288
jmp 0x6288
jmp 0x6288
jmp 0x6288
jmp 0x6288
jmp 0x6288
movq %rax, %r14
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x62a5
movq -0x38(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0x62a5
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x62b9
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x2300