// File: lindorx[P]train/main.cpp
// Function: EndCode()
void EndCode(void)
{
	using namespace std;
	int i, j;
	std::vector<unsigned char>data;
	short d;
	for (i = 0; i < (int)Title.size(); ++i)
		for (j = 0; j < (int)Mov_place.size(); ++j) {
			if (Title[i].str == Mov_place[j].str) {
				d = isReg(Data[Mov_place[j].s]);
				//��������������data
				if (d == 1) {
					data = NumToUc(Title[i].num, 1);
					Data[Mov_place[j].s + 1] = data[0];
				}
				else if (d == 2) {
					data = NumToUc(Title[i].num, 2);
					Data[Mov_place[j].s + 1] = data[0];
					Data[Mov_place[j].s + 2] = data[1];
				}
				else {
					std::cout << "����Χ��error-006!\n";
				}
			}
		}
	//����jmpָ��
	jmpch();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
leaq -0x20(%rbp), %rdi
callq 0xa8d0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x6c(%rbp)
leaq 0x9820(%rip), %rdi      # 0x220e8
callq 0x19f40
movq %rax, %rcx
movl -0x6c(%rbp), %eax
cmpl %ecx, %eax
jge 0x18b10
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0x70(%rbp)
leaq 0x9839(%rip), %rdi      # 0x22128
callq 0x19f40
movq %rax, %rcx
movl -0x70(%rbp), %eax
cmpl %ecx, %eax
jge 0x18b00
movslq -0x4(%rbp), %rsi
leaq 0x97db(%rip), %rdi      # 0x220e8
callq 0x19f70
movq %rax, -0x78(%rbp)
movslq -0x8(%rbp), %rsi
leaq 0x9807(%rip), %rdi      # 0x22128
callq 0x19f70
movq -0x78(%rbp), %rdi
movq %rax, %rsi
callq 0xa810
testb $0x1, %al
jne 0x1893b
jmp 0x18af0
movslq -0x8(%rbp), %rsi
leaq 0x97e2(%rip), %rdi      # 0x22128
callq 0x19f70
movslq 0x24(%rax), %rsi
leaq 0x973a(%rip), %rdi      # 0x22090
callq 0xaa70
movzbl (%rax), %edi
callq 0x69c0
movw %ax, -0x7a(%rbp)
jmp 0x18969
movw -0x7a(%rbp), %ax
movw %ax, -0x22(%rbp)
movswl -0x22(%rbp), %eax
cmpl $0x1, %eax
jne 0x18a13
movslq -0x4(%rbp), %rsi
leaq 0x975f(%rip), %rdi      # 0x220e8
callq 0x19f70
movslq 0x20(%rax), %rsi
leaq -0x50(%rbp), %rdi
movl $0x1, %edx
callq 0x75f0
jmp 0x189a2
leaq -0x20(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xa9b0
leaq -0x50(%rbp), %rdi
callq 0xa920
leaq -0x20(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xaa70
movb (%rax), %al
movb %al, -0x7b(%rbp)
movslq -0x8(%rbp), %rsi
leaq 0x9753(%rip), %rdi      # 0x22128
callq 0x19f70
movl 0x24(%rax), %eax
addl $0x1, %eax
movslq %eax, %rsi
leaq 0x96a6(%rip), %rdi      # 0x22090
callq 0xaa70
movb -0x7b(%rbp), %cl
movb %cl, (%rax)
jmp 0x18aee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x20(%rbp), %rdi
callq 0xa920
jmp 0x18b29
movswl -0x22(%rbp), %eax
cmpl $0x2, %eax
jne 0x18ad5
movslq -0x4(%rbp), %rsi
leaq 0x96bd(%rip), %rdi      # 0x220e8
callq 0x19f70
movslq 0x20(%rax), %rsi
leaq -0x68(%rbp), %rdi
movl $0x2, %edx
callq 0x75f0
jmp 0x18a44
leaq -0x20(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0xa9b0
leaq -0x68(%rbp), %rdi
callq 0xa920
leaq -0x20(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xaa70
movb (%rax), %al
movb %al, -0x7d(%rbp)
movslq -0x8(%rbp), %rsi
leaq 0x96b1(%rip), %rdi      # 0x22128
callq 0x19f70
movl 0x24(%rax), %eax
addl $0x1, %eax
movslq %eax, %rsi
leaq 0x9604(%rip), %rdi      # 0x22090
callq 0xaa70
movb -0x7d(%rbp), %cl
movb %cl, (%rax)
leaq -0x20(%rbp), %rdi
movl $0x1, %esi
callq 0xaa70
movb (%rax), %al
movb %al, -0x7c(%rbp)
movslq -0x8(%rbp), %rsi
leaq 0x9674(%rip), %rdi      # 0x22128
callq 0x19f70
movl 0x24(%rax), %eax
addl $0x2, %eax
movslq %eax, %rsi
leaq 0x95c7(%rip), %rdi      # 0x22090
callq 0xaa70
movb -0x7c(%rbp), %cl
movb %cl, (%rax)
jmp 0x18aec
movq 0x84fc(%rip), %rdi      # 0x20fd8
leaq 0x2d2d(%rip), %rsi      # 0x1b810
callq 0x31f0
jmp 0x18aea
jmp 0x18aec
jmp 0x18aee
jmp 0x18af0
jmp 0x18af2
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x188e2
jmp 0x18b02
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x188bb
callq 0x18fa0
jmp 0x18b17
leaq -0x20(%rbp), %rdi
callq 0xa920
addq $0x80, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x33f0
nopw %cs:(%rax,%rax)