// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rbp), %r12
movb %dl, -0x2a(%rbp)
movb %cl, -0x29(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
andq $0x0, -0x50(%rbp)
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x8cdd(%rip), %rsi      # 0xd630
movq %r12, %rdi
callq 0x5ad5
testb %al, %al
jne 0x4972
leaq 0x885d(%rip), %rsi      # 0xd1c3
movq %r12, %rdi
callq 0x5ad5
testb %al, %al
je 0x49e3
cmpb $0x0, 0x40(%r12)
je 0x4986
leaq 0x8863(%rip), %r13      # 0xd1e4
jmp 0x4a28
addq $0x20, %r12
leaq -0x48(%rbp), %rdi
pushq $0x1
popq %rdx
movq %r12, %rsi
movl %r15d, %ecx
callq 0x420a
leaq -0x60(%rbp), %r15
leaq -0x48(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x5d96
movq %r12, %rdi
callq 0x5be8
movq 0x8(%r15), %rax
cmpq (%r15), %rax
je 0x4a21
leaq -0x2a(%rbp), %rsi
movq %rbx, %rdi
callq 0x5ae6
cmpb $0x0, -0x29(%rbp)
je 0x4a4c
leaq -0x29(%rbp), %rsi
movq %rbx, %rdi
callq 0x5ae6
jmp 0x4a6a
leaq 0x8814(%rip), %rsi      # 0xd1fe
movq %r12, %rdi
callq 0x5ad5
leaq 0x880f(%rip), %r13      # 0xd208
testb %al, %al
jne 0x4a28
leaq 0x87ff(%rip), %rsi      # 0xd203
movq %r12, %rdi
callq 0x5ad5
testb %al, %al
jne 0x4a28
cmpb $0x0, 0x40(%r12)
je 0x4a91
leaq 0x883e(%rip), %r13      # 0xd25d
jmp 0x4a28
leaq 0x87a0(%rip), %r13      # 0xd1c8
movq 0xc5a9(%rip), %rdi      # 0x10fd8
movq %r13, %rsi
callq 0x21b0
movq %rax, %rdi
movq %r14, %rsi
callq 0x2190
movq %rax, %rdi
callq 0x2100
jmp 0x4a76
leaq -0x48(%rbp), %rsi
movb $0x46, (%rsi)
movq %rbx, %rdi
callq 0x5c1e
leaq -0x48(%rbp), %rsi
movb $0x0, (%rsi)
movq %rbx, %rdi
callq 0x5c1e
movq -0x60(%rbp), %rsi
movq %rbx, %rdi
callq 0x5ae6
leaq -0x60(%rbp), %rdi
callq 0x5be8
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x20, %r12
movq %r12, %rdi
movl %r15d, %esi
callq 0x3f4c
movq %rax, %r15
cmpl $0x100, %r15d           # imm = 0x100
jl 0x4ad2
movq 0xc525(%rip), %rdi      # 0x10fd8
leaq 0x8776(%rip), %rsi      # 0xd230
callq 0x21b0
movq %rax, %rdi
movq %r14, %rsi
callq 0x2190
movq %rax, %rdi
callq 0x2100
movslq %r15d, %rsi
leaq -0x48(%rbp), %rdi
pushq $0x1
popq %rdx
callq 0x3e87
leaq -0x60(%rbp), %rdi
leaq -0x48(%rbp), %r14
movq %r14, %rsi
callq 0x5d96
movq %r14, %rdi
callq 0x5be8
leaq -0x2a(%rbp), %rsi
movq %rbx, %rdi
callq 0x5ae6
cmpb $0x0, -0x29(%rbp)
jne 0x49d2
leaq -0x48(%rbp), %rsi
movb $0x46, (%rsi)
movq %rbx, %rdi
callq 0x5c1e
leaq -0x48(%rbp), %rsi
movb $0x0, (%rsi)
movq %rbx, %rdi
callq 0x5c1e
jmp 0x4a6a
jmp 0x4b3e
jmp 0x4b3e
jmp 0x4b3e
jmp 0x4b3e
jmp 0x4b3e
jmp 0x4b3e
movq %rax, %r14
movq %rbx, %rdi
callq 0x5be8
leaq -0x60(%rbp), %rdi
callq 0x5be8
movq %r14, %rdi
callq 0x2300