// File: /workspace/github_cpp_makefile_star2_O2/lindorx[P]train/InsPro.cpp
// Function: Mul(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
std::vector<unsigned char>Mul(const std::string& str, int n)
{
	using namespace std;
	string ch = CutStr(str, n);
	vector<unsigned char>data;
	for (int i = 0; i < 16; ++i){
		if (ch == reg_1[i]){
			data.push_back(0xf6);
			if (i>7)data.push_back(logic_and[i - 8]);
			else data.push_back(logic_and[8]);
			return data;
		}
		if (ch == reg2[i]){
			data.push_back(0xf7);
			if (i>7)data.push_back(logic_and[i - 8]);
			else data.push_back(logic_and[8]);
			return data;
		}
	}
	//�ж��Ƿ�������
	int lk, rk, str_size = str.size();
	lk=str.find('[');
	rk = str.find(']');
	if (lk < str_size && rk < str_size && !(rk < 0) && !(lk < 0)){
		ch.clear();
		while (n <str_size && (str[n] == 0x20 || str[n] == '\t'))n++;
		while (n < str_size && (str[n] != '\n' || str[n] == '\0')){
			if (str[n] == 0x20 || str[n] == '\t')break;
			if (isalnum(str[n]))ch.push_back(str[n]);
			n++;
		}
		if (ch == "word" || ch == "WORD")data.push_back(0xf7);
		else if (ch == "byte" || ch == "BYTE")data.push_back(0xf6);
		else {
			cout << "����-027������������:" << str << endl; return data;
		}
		ch.clear(); ch = str.substr(lk+1, rk - lk-1);
		if (ch == "bx" || ch == "BX"){
			data.push_back(0x27); return data;
		}
		else if (ch == "bp" || ch == "BP"){
			data.push_back(0x66); data.push_back(0x00);
			return data;
		}
		else if (ch == "si" || ch == "SI"){
			data.push_back(0x24); return data;
		}
		else if (ch == "di" || ch == "DI"){
			data.push_back(0x25); return data;
		}
		else {
			data.clear();
			cout << "����-028������������:" << str << endl; return data;
		}
	}
	cout << "����-029������������:" << str << endl; return data;
	return data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %edx, %r13d
movq %rdi, %rbx
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq %rsi, -0x38(%rbp)
callq 0x35dc
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rbx)
movq %rbx, -0x30(%rbp)
movups %xmm0, (%rbx)
leaq 0x77c2(%rip), %r12      # 0x11cf0
leaq 0x75bb(%rip), %rbx      # 0x11af0
xorl %r14d, %r14d
cmpq $-0x10, %r14
je 0xa571
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5aa9
testb %al, %al
jne 0xa5fb
movq %r15, %rdi
movq %r12, %rsi
callq 0x5aa9
testb %al, %al
jne 0xa610
decq %r14
addq $0x20, %r12
addq $0x20, %rbx
jmp 0xa538
movq -0x38(%rbp), %r14
movq 0x8(%r14), %rbx
pushq $0x5b
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x2240
movq %rax, %r15
pushq $0x5d
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x2240
leaq 0x2fc5(%rip), %rsi      # 0xd562
cmpl %ebx, %r15d
jge 0xa7ee
movq %rax, %r12
cmpl %ebx, %r12d
jge 0xa7ee
movl %r12d, %eax
orl %r15d, %eax
andl $0x80000000, %eax       # imm = 0x80000000
jne 0xa7ee
andq $0x0, -0x50(%rbp)
movq -0x58(%rbp), %rax
movb $0x0, (%rax)
movq -0x38(%rbp), %rax
movq (%rax), %rcx
movslq %r13d, %rax
movslq %ebx, %r14
cmpl %ebx, %r13d
cmovlel %ebx, %r13d
cmpq %r14, %rax
jge 0xa65a
movzbl (%rcx,%rax), %edx
cmpl $0x20, %edx
je 0xa5f6
cmpl $0x9, %edx
jne 0xa657
incq %rax
jmp 0xa5e3
leaq -0x78(%rbp), %rsi
movb $-0xa, (%rsi)
movq -0x30(%rbp), %r13
movq %r13, %rdi
callq 0x5c1e
jmp 0xa623
leaq -0x78(%rbp), %rsi
movb $-0x9, (%rsi)
movq -0x30(%rbp), %r13
movq %r13, %rdi
callq 0x5c1e
movq %r14, %rax
negq %rax
cmpq $0x8, %rax
jb 0xa643
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
subl %r14d, %eax
leaq 0x2f82(%rip), %rsi      # 0xd5c0
addq %rax, %rsi
jmp 0xa64a
leaq 0x2f7e(%rip), %rsi      # 0xd5c8
movq %r13, %rdi
callq 0x5ae6
jmp 0xa812
movl %eax, %r13d
movslq %r13d, %rbx
cmpq %r14, %rbx
jge 0xa6a4
movq -0x38(%rbp), %rax
movq (%rax), %rax
movzbl (%rax,%rbx), %eax
cmpq $0x20, %rax
ja 0xa683
movabsq $0x100000600, %rcx      # imm = 0x100000600
btq %rax, %rcx
jb 0xa6a4
movsbl %al, %r13d
movl %r13d, %edi
callq 0x21e0
testl %eax, %eax
je 0xa69f
leaq -0x58(%rbp), %rdi
movl %r13d, %esi
callq 0x2170
incq %rbx
jmp 0xa65d
leaq 0x2b53(%rip), %rsi      # 0xd1fe
leaq -0x58(%rbp), %rdi
callq 0x5ad5
testb %al, %al
jne 0xa6d0
leaq 0x2b44(%rip), %rsi      # 0xd203
leaq -0x58(%rbp), %rdi
callq 0x5ad5
testb %al, %al
je 0xa75f
leaq -0x78(%rbp), %rsi
movb $-0x9, (%rsi)
movq -0x30(%rbp), %r13
movq %r13, %rdi
callq 0x5c1e
andq $0x0, -0x50(%rbp)
movq -0x58(%rbp), %rax
movb $0x0, (%rax)
leal 0x1(%r15), %edx
notl %r15d
addl %r15d, %r12d
movslq %r12d, %rcx
leaq -0x78(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x21f0
leaq -0x58(%rbp), %rbx
leaq -0x78(%rbp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2220
movq %r15, %rdi
callq 0x2358
leaq 0x2a2e(%rip), %rsi      # 0xd159
movq %rbx, %rdi
callq 0x5ad5
testb %al, %al
jne 0xa74b
leaq 0x2a03(%rip), %rsi      # 0xd141
leaq -0x58(%rbp), %rdi
callq 0x5ad5
testb %al, %al
je 0xa79f
leaq -0x78(%rbp), %rsi
movb $0x27, (%rsi)
movq %r13, %rdi
callq 0x5c1e
jmp 0xa812
leaq 0x2eca(%rip), %rsi      # 0xd630
leaq -0x58(%rbp), %rdi
callq 0x5ad5
testb %al, %al
movq -0x30(%rbp), %r13
jne 0xa78b
leaq 0x2a45(%rip), %rsi      # 0xd1c3
leaq -0x58(%rbp), %rdi
callq 0x5ad5
testb %al, %al
je 0xa7e7
leaq -0x78(%rbp), %rsi
movb $-0xa, (%rsi)
movq %r13, %rdi
callq 0x5c1e
jmp 0xa6e3
leaq 0x29b9(%rip), %rsi      # 0xd15f
leaq -0x58(%rbp), %rdi
callq 0x5ad5
testb %al, %al
jne 0xa7c7
leaq 0x298d(%rip), %rsi      # 0xd147
leaq -0x58(%rbp), %rdi
callq 0x5ad5
testb %al, %al
je 0xa82d
leaq -0x78(%rbp), %rsi
movb $0x66, (%rsi)
movq %r13, %rdi
callq 0x5c1e
leaq -0x78(%rbp), %rsi
movb $0x0, (%rsi)
movq %r13, %rdi
callq 0x5c1e
jmp 0xa812
leaq 0x2d48(%rip), %rsi      # 0xd536
movq 0x67e3(%rip), %rdi      # 0x10fd8
movq -0x30(%rbp), %r13
callq 0x21b0
movq %rax, %rdi
movq -0x38(%rbp), %rsi
callq 0x2190
movq %rax, %rdi
callq 0x2100
leaq -0x58(%rbp), %rdi
callq 0x2358
movq %r13, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x292e(%rip), %rsi      # 0xd162
leaq -0x58(%rbp), %rdi
callq 0x5ad5
testb %al, %al
jne 0xa855
leaq 0x2902(%rip), %rsi      # 0xd14a
leaq -0x58(%rbp), %rdi
callq 0x5ad5
testb %al, %al
je 0xa866
leaq -0x78(%rbp), %rsi
movb $0x24, (%rsi)
movq %r13, %rdi
callq 0x5c1e
jmp 0xa812
leaq 0x28f8(%rip), %rsi      # 0xd165
leaq -0x58(%rbp), %rdi
callq 0x5ad5
testb %al, %al
jne 0xa88e
leaq 0x28cc(%rip), %rsi      # 0xd14d
leaq -0x58(%rbp), %rdi
callq 0x5ad5
testb %al, %al
je 0xa8a2
leaq -0x78(%rbp), %rsi
movb $0x25, (%rsi)
movq %r13, %rdi
callq 0x5c1e
jmp 0xa812
movq (%r13), %rax
leaq 0x2c9f(%rip), %rsi      # 0xd54c
cmpq %rax, 0x8(%r13)
je 0xa7ee
movq %rax, 0x8(%r13)
jmp 0xa7ee
jmp 0xa8d8
jmp 0xa8d8
jmp 0xa8d8
jmp 0xa8d8
jmp 0xa8d8
jmp 0xa8d8
jmp 0xa8d8
jmp 0xa8d8
jmp 0xa8d8
jmp 0xa8d8
jmp 0xa8d8
jmp 0xa8d8
movq %rax, %r14
movq -0x30(%rbp), %rdi
callq 0x5be8
leaq -0x58(%rbp), %rdi
callq 0x2358
movq %r14, %rdi
callq 0x2300