// File: /workspace/github_cpp_makefile_star2_O1/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 $0x68, %rsp
movq %rdi, %rbx
leaq -0x50(%rbp), %r12
movq %r12, %rdi
movq %rsi, -0x80(%rbp)
movl %edx, -0x54(%rbp)
callq 0x3b1c
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %rbx, -0x30(%rbp)
movq $0x0, 0x10(%rbx)
movq (%r12), %r15
movq 0x8(%r12), %r12
movl $0x8, %ebx
xorl %r14d, %r14d
leaq 0x8beb(%rip), %r13      # 0x15af0
cmpq (%rbx,%r13), %r12
jne 0xcf2c
testq %r12, %r12
je 0xd0e4
movq -0x8(%rbx,%r13), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x21f0
testl %eax, %eax
je 0xd0e4
leaq 0x8dbd(%rip), %rax      # 0x15cf0
cmpq (%rbx,%rax), %r12
jne 0xcf61
testq %r12, %r12
je 0xd0f9
leaq 0x8da7(%rip), %rax      # 0x15cf0
movq -0x8(%rbx,%rax), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x21f0
testl %eax, %eax
je 0xd0f9
decq %r14
addq $0x20, %rbx
cmpq $-0x10, %r14
jne 0xcf05
movq -0x80(%rbp), %r13
movl 0x8(%r13), %r12d
movq %r13, %rdi
movl $0x5b, %esi
xorl %edx, %edx
callq 0x2240
movq %rax, %r15
movq %r13, %rdi
movl $0x5d, %esi
xorl %edx, %edx
callq 0x2240
cmpl %r12d, %r15d
jge 0xd14a
cmpl %r12d, %eax
jge 0xd14a
movl %eax, %ecx
orl %r15d, %ecx
andl $0x80000000, %ecx       # imm = 0x80000000
jne 0xd14a
movq $0x0, -0x48(%rbp)
movq -0x50(%rbp), %rcx
movb $0x0, (%rcx)
movl -0x54(%rbp), %esi
cmpl %esi, %r12d
movq %rax, -0x88(%rbp)
jle 0xcff9
movslq %esi, %rdx
addq (%r13), %rdx
movzbl (%rdx), %ecx
cmpl $0x20, %ecx
je 0xcfec
cmpl $0x9, %ecx
jne 0xcff9
incl %esi
incq %rdx
cmpl %esi, %r12d
jne 0xcfdf
movl %r12d, %esi
subl %esi, %r12d
jle 0xd047
movslq %esi, %rbx
movabsq $0x100000600, %r14      # imm = 0x100000600
movq (%r13), %rax
movzbl (%rax,%rbx), %eax
cmpq $0x20, %rax
ja 0xd01f
btq %rax, %r14
jb 0xd047
movsbl %al, %r13d
movl %r13d, %edi
callq 0x21e0
testl %eax, %eax
je 0xd03b
leaq -0x50(%rbp), %rdi
movl %r13d, %esi
callq 0x2180
incq %rbx
decl %r12d
movq -0x80(%rbp), %r13
jne 0xd00b
leaq 0x41b0(%rip), %rsi      # 0x111fe
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xd1e0
leaq 0x419d(%rip), %rsi      # 0x11203
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xd1e0
leaq 0x45bb(%rip), %rsi      # 0x11639
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
movq -0x30(%rbp), %rbx
je 0xd1f5
leaq 0x4129(%rip), %rsi      # 0x111c3
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xd1f5
leaq 0x449d(%rip), %rsi      # 0x1154f
movq 0x7f1f(%rip), %rdi      # 0x14fd8
movl $0x15, %edx
callq 0x2210
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq 0x7f06(%rip), %rdi      # 0x14fd8
callq 0x2210
movq %rax, %rdi
callq 0x20f0
jmp 0xd1b5
leaq -0x78(%rbp), %rsi
movb $-0xa, (%rsi)
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x67f0
jmp 0xd10c
leaq -0x78(%rbp), %rsi
movb $-0x9, (%rsi)
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x67f0
movq %r14, %rax
negq %rax
cmpq $0x8, %rax
jb 0xd13a
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
subl %r14d, %eax
leaq 0x44b2(%rip), %rdx      # 0x115d9
addq %rax, %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xd1ad
movb (%rdx), %al
movb %al, (%rsi)
jmp 0xd144
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xd1a6
incq 0x8(%rbx)
jmp 0xd1b5
movq 0x7e87(%rip), %rdi      # 0x14fd8
leaq 0x4423(%rip), %rsi      # 0x1157b
movl $0x15, %edx
movq -0x30(%rbp), %rbx
callq 0x2210
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq 0x7e63(%rip), %rdi      # 0x14fd8
callq 0x2210
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2130
jmp 0xd1b5
leaq 0x4434(%rip), %rdx      # 0x115e1
movq %rbx, %rdi
callq 0x6920
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd1ce
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x78(%rbp), %rsi
movb $-0x9, (%rsi)
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x67f0
jmp 0xd204
leaq -0x78(%rbp), %rsi
movb $-0xa, (%rsi)
movq %rbx, %rdi
callq 0x67f0
movq $0x0, -0x48(%rbp)
movq -0x50(%rbp), %rax
movb $0x0, (%rax)
leal 0x1(%r15), %edx
notl %r15d
movq -0x88(%rbp), %rax
addl %r15d, %eax
movslq %eax, %rcx
leaq -0x78(%rbp), %rdi
movq %r13, %rsi
callq 0x2200
leaq -0x50(%rbp), %rdi
leaq -0x78(%rbp), %r15
movq %r15, %rsi
callq 0x2230
movq (%r15), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0xd25b
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x21d0
leaq 0x3ef7(%rip), %rsi      # 0x11159
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xd32c
leaq 0x3ec7(%rip), %rsi      # 0x11141
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xd32c
leaq 0x3ecd(%rip), %rsi      # 0x1115f
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xd340
leaq 0x3e9d(%rip), %rsi      # 0x11147
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xd340
leaq 0x3ea0(%rip), %rsi      # 0x11162
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xd363
leaq 0x3e70(%rip), %rsi      # 0x1114a
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xd363
leaq 0x3e77(%rip), %rsi      # 0x11165
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xd377
leaq 0x3e4b(%rip), %rsi      # 0x1114d
leaq -0x50(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xd377
movq (%rbx), %rax
leaq 0x424c(%rip), %rsi      # 0x11565
cmpq %rax, 0x8(%rbx)
je 0xd0b2
movq %rax, 0x8(%rbx)
jmp 0xd0b2
leaq -0x78(%rbp), %rsi
movb $0x27, (%rsi)
movq %rbx, %rdi
callq 0x67f0
jmp 0xd1b5
leaq -0x78(%rbp), %rsi
movb $0x66, (%rsi)
movq %rbx, %rdi
callq 0x67f0
leaq -0x78(%rbp), %rsi
movb $0x0, (%rsi)
movq %rbx, %rdi
callq 0x67f0
jmp 0xd1b5
leaq -0x78(%rbp), %rsi
movb $0x24, (%rsi)
movq %rbx, %rdi
callq 0x67f0
jmp 0xd1b5
leaq -0x78(%rbp), %rsi
movb $0x25, (%rsi)
movq %rbx, %rdi
callq 0x67f0
jmp 0xd1b5
jmp 0xd3a3
jmp 0xd3a3
jmp 0xd3a3
jmp 0xd3a3
jmp 0xd3a3
jmp 0xd3a3
jmp 0xd3a3
jmp 0xd3a3
jmp 0xd3a3
jmp 0xd3a3
jmp 0xd3a3
jmp 0xd3a3
movq %rax, %r14
movq -0x30(%rbp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xd3c2
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0x21d0
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd3db
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x2300
nop