// File: lindorx[P]train/HelpInsPro.cpp
// Function: mov_push(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned char, unsigned char, int, STRINF*, STRINF*)
std::vector<unsigned char>mov_push(const std::string& str, unsigned char b, unsigned char a, int num, STRINF *m1, STRINF *m2)
{
	using namespace std;
	int ch_num;
	vector<unsigned char>d;
	vector<unsigned char>data;
	//��Ƕ���ڵĴ����Ƕ�ch[1]�δ����Ĵ���
	if (m2->explain == "byte" || m2->explain == "BYTE"){
		//������ch[1]�ڲ����������ţ�ֻ��Ϊ��ֵ�ַ�����
		if (!m2->w){
			d = Num(m2->str, 1, num);
			if (d.size() == 0){
				cout << "����-008��,�����鱾�ַ�����" << str << endl;
				return data;
			}
			else{
				data.push_back(b);
				if (a != 0x00)data.push_back(a);
				else{
					data.push_back(0x46);
					data.push_back(0x00);
				}
				data.push_back(d[0]);
				return data;
			}
		}
		else{
			cout << "����-009,�����鱾�ַ�����" << str << endl;
			return data;
		}
	}
	if (m2->explain == "word" || m2->explain == "WORD"){
		//��m1->explain == "byte"��m2->explain����Ϊ"word"
		cout << "����-010,�����鱾�ַ���������Ϊword����" << str << endl;
		return data;
	}
	//��ch[1]��û���ֳ�˵����ʱ,Ҳ������������
	if (!m2->w){//û������ʱ
		//�ж��Ƿ�Ϊ�����ַ���
		ch_num = IntNum(m2->str, num);
		//if (ch_num<0){//С��0��˵��Ϊ����
		//cout << "*******" << m2->str << endl;
		if (ch_num>0xff)cout << "����,���ܴ���0xff(�������򽫻ᶪ����������):" << str << endl;
		//����ת��Ϊ1�ֽڣ�
		d = NumToUc(ch_num, 1);
		data.push_back(b);
		if (a != 0x00)data.push_back(a);
		else{
			data.push_back(0x46);
			data.push_back(0x00);
		}
		data.push_back(d[0]);
		return data;
	}
	cout << "�����鱾�д��룺" << str << endl;
	return data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0xa0(%rbp)
movb %cl, %al
movb %dl, %cl
movq %rdi, %rdx
movq %rdx, -0xa8(%rbp)
movq 0x10(%rbp), %rdx
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %cl, -0x11(%rbp)
movb %al, -0x12(%rbp)
movl %r8d, -0x18(%rbp)
movq %r9, -0x20(%rbp)
leaq -0x40(%rbp), %rdi
callq 0xa8d0
movq -0xa0(%rbp), %rdi
movb $0x0, -0x41(%rbp)
callq 0xa8d0
movq 0x10(%rbp), %rdi
leaq 0x13105(%rip), %rsi     # 0x1b6a3
callq 0xa8a0
movb %al, -0x93(%rbp)
jmp 0x85ab
movb -0x93(%rbp), %al
testb $0x1, %al
jne 0x85de
jmp 0x85b7
movq 0x10(%rbp), %rdi
leaq 0x12c71(%rip), %rsi     # 0x1b233
callq 0xa8a0
movb %al, -0xa9(%rbp)
jmp 0x85cf
movb -0xa9(%rbp), %al
testb $0x1, %al
jne 0x85de
jmp 0x8795
movq 0x10(%rbp), %rax
testb $0x1, 0x40(%rax)
jne 0x873b
movq 0x10(%rbp), %rsi
addq $0x20, %rsi
movl -0x18(%rbp), %ecx
leaq -0x70(%rbp), %rdi
movl $0x1, %edx
callq 0x7be0
jmp 0x8607
leaq -0x40(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xa9b0
leaq -0x70(%rbp), %rdi
callq 0xa920
leaq -0x40(%rbp), %rdi
callq 0xa9e0
cmpq $0x0, %rax
jne 0x86b0
movq 0x189a1(%rip), %rdi     # 0x20fd8
leaq 0x12bfa(%rip), %rsi     # 0x1b238
callq 0x31f0
movq %rax, -0xb8(%rbp)
jmp 0x864c
movq -0xb8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x31e0
movq %rax, -0xc0(%rbp)
jmp 0x8665
movq -0xc0(%rbp), %rdi
movq 0x1894d(%rip), %rsi     # 0x20fc0
callq 0x3240
jmp 0x867a
movb $0x1, -0x41(%rbp)
movl $0x1, -0x74(%rbp)
jmp 0x89e0
movq -0xa0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0xa920
leaq -0x40(%rbp), %rdi
callq 0xa920
jmp 0x8a0b
movq -0xa0(%rbp), %rdi
leaq -0x11(%rbp), %rsi
callq 0xaa00
jmp 0x86c2
movzbl -0x12(%rbp), %eax
cmpl $0x0, %eax
je 0x86df
movq -0xa0(%rbp), %rdi
leaq -0x12(%rbp), %rsi
callq 0xaa00
jmp 0x86dd
jmp 0x870d
movq -0xa0(%rbp), %rdi
movb $0x46, -0x75(%rbp)
leaq -0x75(%rbp), %rsi
callq 0xa8f0
jmp 0x86f5
movq -0xa0(%rbp), %rdi
movb $0x0, -0x76(%rbp)
leaq -0x76(%rbp), %rsi
callq 0xa8f0
jmp 0x870b
jmp 0x870d
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0xaa70
movq -0xa0(%rbp), %rdi
movq %rax, %rsi
callq 0xaa00
jmp 0x872b
movb $0x1, -0x41(%rbp)
movl $0x1, -0x74(%rbp)
jmp 0x89e0
movq 0x18896(%rip), %rdi     # 0x20fd8
leaq 0x12b0b(%rip), %rsi     # 0x1b254
callq 0x31f0
movq %rax, -0xc8(%rbp)
jmp 0x8757
movq -0xc8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x31e0
movq %rax, -0xd0(%rbp)
jmp 0x8770
movq -0xd0(%rbp), %rdi
movq 0x18842(%rip), %rsi     # 0x20fc0
callq 0x3240
jmp 0x8785
movb $0x1, -0x41(%rbp)
movl $0x1, -0x74(%rbp)
jmp 0x89e0
movq 0x10(%rbp), %rdi
leaq 0x12ace(%rip), %rsi     # 0x1b26e
callq 0xa8a0
movb %al, -0xd1(%rbp)
jmp 0x87ad
movb -0xd1(%rbp), %al
testb $0x1, %al
jne 0x87dd
jmp 0x87b9
movq 0x10(%rbp), %rdi
leaq 0x12aaf(%rip), %rsi     # 0x1b273
callq 0xa8a0
movb %al, -0xd2(%rbp)
jmp 0x87d1
movb -0xd2(%rbp), %al
testb $0x1, %al
jne 0x87dd
jmp 0x8837
movq 0x187f4(%rip), %rdi     # 0x20fd8
leaq 0x12a8d(%rip), %rsi     # 0x1b278
callq 0x31f0
movq %rax, -0xe0(%rbp)
jmp 0x87f9
movq -0xe0(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x31e0
movq %rax, -0xe8(%rbp)
jmp 0x8812
movq -0xe8(%rbp), %rdi
movq 0x187a0(%rip), %rsi     # 0x20fc0
callq 0x3240
jmp 0x8827
movb $0x1, -0x41(%rbp)
movl $0x1, -0x74(%rbp)
jmp 0x89e0
movq 0x10(%rbp), %rax
testb $0x1, 0x40(%rax)
jne 0x898b
movq 0x10(%rbp), %rdi
addq $0x20, %rdi
movl -0x18(%rbp), %esi
callq 0x7720
movq %rax, -0xf0(%rbp)
jmp 0x885e
movq -0xf0(%rbp), %rax
movl %eax, -0x24(%rbp)
cmpl $0xff, -0x24(%rbp)
jle 0x88bd
movq 0x18760(%rip), %rdi     # 0x20fd8
leaq 0x12a21(%rip), %rsi     # 0x1b2a0
callq 0x31f0
movq %rax, -0xf8(%rbp)
jmp 0x888d
movq -0xf8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x31e0
movq %rax, -0x100(%rbp)
jmp 0x88a6
movq -0x100(%rbp), %rdi
movq 0x1870c(%rip), %rsi     # 0x20fc0
callq 0x3240
jmp 0x88bb
jmp 0x88bd
movslq -0x24(%rbp), %rsi
leaq -0x90(%rbp), %rdi
movl $0x1, %edx
callq 0x75f0
jmp 0x88d4
leaq -0x40(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movq %rsi, -0x108(%rbp)
callq 0xa9b0
movq -0x108(%rbp), %rdi
callq 0xa920
movq -0xa0(%rbp), %rdi
leaq -0x11(%rbp), %rsi
callq 0xaa00
jmp 0x8909
movzbl -0x12(%rbp), %eax
cmpl $0x0, %eax
je 0x8926
movq -0xa0(%rbp), %rdi
leaq -0x12(%rbp), %rsi
callq 0xaa00
jmp 0x8924
jmp 0x8960
movq -0xa0(%rbp), %rdi
movb $0x46, -0x91(%rbp)
leaq -0x91(%rbp), %rsi
callq 0xa8f0
jmp 0x8942
movq -0xa0(%rbp), %rdi
movb $0x0, -0x92(%rbp)
leaq -0x92(%rbp), %rsi
callq 0xa8f0
jmp 0x895e
jmp 0x8960
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0xaa70
movq -0xa0(%rbp), %rdi
movq %rax, %rsi
callq 0xaa00
jmp 0x897e
movb $0x1, -0x41(%rbp)
movl $0x1, -0x74(%rbp)
jmp 0x89e0
movq 0x18646(%rip), %rdi     # 0x20fd8
leaq 0x12934(%rip), %rsi     # 0x1b2cd
callq 0x31f0
movq %rax, -0x110(%rbp)
jmp 0x89a7
movq -0x110(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x31e0
movq %rax, -0x118(%rbp)
jmp 0x89c0
movq -0x118(%rbp), %rdi
movq 0x185f2(%rip), %rsi     # 0x20fc0
callq 0x3240
jmp 0x89d5
movb $0x1, -0x41(%rbp)
movl $0x1, -0x74(%rbp)
testb $0x1, -0x41(%rbp)
jne 0x89f2
movq -0xa0(%rbp), %rdi
callq 0xa920
leaq -0x40(%rbp), %rdi
callq 0xa920
movq -0xa8(%rbp), %rax
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x33f0
nopw %cs:(%rax,%rax)