// File: thunlp[P]KB2E/TransE/Test_TransE.cpp
// Function: prepare()
void prepare()
{
    FILE* f1 = fopen("../data/entity2id.txt","r");
	FILE* f2 = fopen("../data/relation2id.txt","r");
	int x;
	while (fscanf(f1,"%s%d",buf,&x)==2)
	{
		string st=buf;
		entity2id[st]=x;
		id2entity[x]=st;
		mid2type[st]="None";
		entity_num++;
	}
	while (fscanf(f2,"%s%d",buf,&x)==2)
	{
		string st=buf;
		relation2id[st]=x;
		id2relation[x]=st;
		relation_num++;
	}
    FILE* f_kb = fopen("../data/test.txt","r");
	while (fscanf(f_kb,"%s",buf)==1)
    {
        string s1=buf;
        fscanf(f_kb,"%s",buf);
        string s2=buf;
        fscanf(f_kb,"%s",buf);
        string s3=buf;
        if (entity2id.count(s1)==0)
        {
            cout<<"miss entity:"<<s1<<endl;
        }
        if (entity2id.count(s2)==0)
        {
            cout<<"miss entity:"<<s2<<endl;
        }
        if (relation2id.count(s3)==0)
        {
        	cout<<"miss relation:"<<s3<<endl;
            relation2id[s3] = relation_num;
            relation_num++;
        }
        test.add(entity2id[s1],entity2id[s2],relation2id[s3],true);
    }
    fclose(f_kb);
    FILE* f_kb1 = fopen("../data/train.txt","r");
	while (fscanf(f_kb1,"%s",buf)==1)
    {
        string s1=buf;
        fscanf(f_kb1,"%s",buf);
        string s2=buf;
        fscanf(f_kb1,"%s",buf);
        string s3=buf;
        if (entity2id.count(s1)==0)
        {
            cout<<"miss entity:"<<s1<<endl;
        }
        if (entity2id.count(s2)==0)
        {
            cout<<"miss entity:"<<s2<<endl;
        }
        if (relation2id.count(s3)==0)
        {
            relation2id[s3] = relation_num;
            relation_num++;
        }

        entity2num[relation2id[s3]][entity2id[s1]]+=1;
        entity2num[relation2id[s3]][entity2id[s2]]+=1;
        e2num[entity2id[s1]]+=1;
        e2num[entity2id[s2]]+=1;
        test.add(entity2id[s1],entity2id[s2],relation2id[s3],false);
    }
    fclose(f_kb1);
    FILE* f_kb2 = fopen("../data/valid.txt","r");
	while (fscanf(f_kb2,"%s",buf)==1)
    {
        string s1=buf;
        fscanf(f_kb2,"%s",buf);
        string s2=buf;
        fscanf(f_kb2,"%s",buf);
        string s3=buf;
        if (entity2id.count(s1)==0)
        {
            cout<<"miss entity:"<<s1<<endl;
        }
        if (entity2id.count(s2)==0)
        {
            cout<<"miss entity:"<<s2<<endl;
        }
        if (relation2id.count(s3)==0)
        {
            relation2id[s3] = relation_num;
            relation_num++;
        }
        test.add(entity2id[s1],entity2id[s2],relation2id[s3],false);
    }
    fclose(f_kb2);
}

// Assembly:
subq $0x448, %rsp            # imm = 0x448
leaq 0x12623(%rip), %rdi     # 0x15071
leaq 0x12632(%rip), %rsi     # 0x15087
callq 0x2270
movq %rax, 0x440(%rsp)
leaq 0x12620(%rip), %rdi     # 0x15089
leaq 0x12617(%rip), %rsi     # 0x15087
callq 0x2270
movq %rax, 0x438(%rsp)
movq 0x440(%rsp), %rdi
leaq 0x12615(%rip), %rsi     # 0x150a1
leaq 0x1b99d(%rip), %rdx     # 0x1e430
leaq 0x434(%rsp), %rcx
movb $0x0, %al
callq 0x2360
cmpl $0x2, %eax
jne 0x2bfe
leaq 0x40f(%rsp), %rdi
movq %rdi, 0x248(%rsp)
callq 0x2330
movq 0x248(%rsp), %rdx
leaq 0x1b961(%rip), %rsi     # 0x1e430
leaq 0x410(%rsp), %rdi
callq 0x3cf0
jmp 0x2ade
leaq 0x40f(%rsp), %rdi
callq 0x2230
movl 0x434(%rsp), %eax
movl %eax, 0x23c(%rsp)
leaq 0x1b778(%rip), %rdi     # 0x1e278
leaq 0x410(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x240(%rsp)
jmp 0x2b17
movq 0x240(%rsp), %rax
movl 0x23c(%rsp), %ecx
movl %ecx, (%rax)
leaq 0x1b779(%rip), %rdi     # 0x1e2a8
leaq 0x434(%rsp), %rsi
callq 0x40e0
movq %rax, 0x230(%rsp)
jmp 0x2b46
movq 0x230(%rsp), %rdi
leaq 0x410(%rsp), %rsi
callq 0x2040
jmp 0x2b5d
leaq 0x1b7d4(%rip), %rdi     # 0x1e338
leaq 0x410(%rsp), %rsi
callq 0x41d0
movq %rax, 0x228(%rsp)
jmp 0x2b7b
movq 0x228(%rsp), %rdi
leaq 0x1251c(%rip), %rsi     # 0x150a6
callq 0x2290
jmp 0x2b91
movl 0x1b895(%rip), %eax     # 0x1e42c
addl $0x1, %eax
movl %eax, 0x1b88c(%rip)     # 0x1e42c
leaq 0x410(%rsp), %rdi
callq 0x23a8
jmp 0x2a7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x40f(%rsp), %rdi
callq 0x2230
jmp 0x3c79
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x410(%rsp), %rdi
callq 0x23a8
jmp 0x3c79
jmp 0x2c00
movq 0x438(%rsp), %rdi
leaq 0x12492(%rip), %rsi     # 0x150a1
leaq 0x1b81a(%rip), %rdx     # 0x1e430
leaq 0x434(%rsp), %rcx
movb $0x0, %al
callq 0x2360
cmpl $0x2, %eax
jne 0x2d4d
leaq 0x3d7(%rsp), %rdi
movq %rdi, 0x220(%rsp)
callq 0x2330
movq 0x220(%rsp), %rdx
leaq 0x1b7de(%rip), %rsi     # 0x1e430
leaq 0x3d8(%rsp), %rdi
callq 0x3cf0
jmp 0x2c61
leaq 0x3d7(%rsp), %rdi
callq 0x2230
movl 0x434(%rsp), %eax
movl %eax, 0x214(%rsp)
leaq 0x1b5c5(%rip), %rdi     # 0x1e248
leaq 0x3d8(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x218(%rsp)
jmp 0x2c9a
movq 0x218(%rsp), %rax
movl 0x214(%rsp), %ecx
movl %ecx, (%rax)
leaq 0x1b626(%rip), %rdi     # 0x1e2d8
leaq 0x434(%rsp), %rsi
callq 0x40e0
movq %rax, 0x208(%rsp)
jmp 0x2cc9
movq 0x208(%rsp), %rdi
leaq 0x3d8(%rsp), %rsi
callq 0x2040
jmp 0x2ce0
movl 0x1b742(%rip), %eax     # 0x1e428
addl $0x1, %eax
movl %eax, 0x1b739(%rip)     # 0x1e428
leaq 0x3d8(%rsp), %rdi
callq 0x23a8
jmp 0x2c00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x3d7(%rsp), %rdi
callq 0x2230
jmp 0x3c79
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x3d8(%rsp), %rdi
callq 0x23a8
jmp 0x3c79
leaq 0x12357(%rip), %rdi     # 0x150ab
leaq 0x1232c(%rip), %rsi     # 0x15087
callq 0x2270
movq %rax, 0x3c8(%rsp)
movq 0x3c8(%rsp), %rdi
leaq 0x12345(%rip), %rsi     # 0x150bc
leaq 0x1b6b2(%rip), %rdx     # 0x1e430
movb $0x0, %al
callq 0x2360
cmpl $0x1, %eax
jne 0x321d
leaq 0x3a7(%rsp), %rdi
movq %rdi, 0x200(%rsp)
callq 0x2330
movq 0x200(%rsp), %rdx
leaq 0x1b67e(%rip), %rsi     # 0x1e430
leaq 0x3a8(%rsp), %rdi
callq 0x3cf0
jmp 0x2dc1
leaq 0x3a7(%rsp), %rdi
callq 0x2230
movq 0x3c8(%rsp), %rdi
leaq 0x122df(%rip), %rsi     # 0x150bc
leaq 0x1b64c(%rip), %rdx     # 0x1e430
xorl %eax, %eax
callq 0x2360
jmp 0x2ded
leaq 0x37f(%rsp), %rdi
movq %rdi, 0x1f8(%rsp)
callq 0x2330
movq 0x1f8(%rsp), %rdx
leaq 0x1b61f(%rip), %rsi     # 0x1e430
leaq 0x380(%rsp), %rdi
callq 0x3cf0
jmp 0x2e20
leaq 0x37f(%rsp), %rdi
callq 0x2230
movq 0x3c8(%rsp), %rdi
leaq 0x12280(%rip), %rsi     # 0x150bc
leaq 0x1b5ed(%rip), %rdx     # 0x1e430
xorl %eax, %eax
callq 0x2360
jmp 0x2e4c
leaq 0x357(%rsp), %rdi
movq %rdi, 0x1f0(%rsp)
callq 0x2330
movq 0x1f0(%rsp), %rdx
leaq 0x1b5c0(%rip), %rsi     # 0x1e430
leaq 0x358(%rsp), %rdi
callq 0x3cf0
jmp 0x2e7f
leaq 0x357(%rsp), %rdi
callq 0x2230
leaq 0x1b3e5(%rip), %rdi     # 0x1e278
leaq 0x3a8(%rsp), %rsi
callq 0x42c0
movq %rax, 0x1e8(%rsp)
jmp 0x2eaa
movq 0x1e8(%rsp), %rax
cmpq $0x0, %rax
jne 0x2fdd
movq 0x1b115(%rip), %rdi     # 0x1dfd8
leaq 0x121f5(%rip), %rsi     # 0x150bf
callq 0x21c0
movq %rax, 0x1e0(%rsp)
jmp 0x2ed9
movq 0x1e0(%rsp), %rdi
leaq 0x3a8(%rsp), %rsi
callq 0x21b0
movq %rax, 0x1d8(%rsp)
jmp 0x2ef8
movq 0x1d8(%rsp), %rdi
movq 0x1b0b9(%rip), %rsi     # 0x1dfc0
callq 0x2210
jmp 0x2f0e
jmp 0x2fdd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x3a7(%rsp), %rdi
callq 0x2230
jmp 0x3c79
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
jmp 0x320b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x37f(%rsp), %rdi
callq 0x2230
jmp 0x320b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
jmp 0x31fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x357(%rsp), %rdi
callq 0x2230
jmp 0x31fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x358(%rsp), %rdi
callq 0x23a8
jmp 0x31fe
leaq 0x1b294(%rip), %rdi     # 0x1e278
leaq 0x380(%rsp), %rsi
callq 0x42c0
movq %rax, 0x1d0(%rsp)
jmp 0x2ffb
movq 0x1d0(%rsp), %rax
cmpq $0x0, %rax
jne 0x305d
movq 0x1afc8(%rip), %rdi     # 0x1dfd8
leaq 0x120a8(%rip), %rsi     # 0x150bf
callq 0x21c0
movq %rax, 0x1c8(%rsp)
jmp 0x3026
movq 0x1c8(%rsp), %rdi
leaq 0x380(%rsp), %rsi
callq 0x21b0
movq %rax, 0x1c0(%rsp)
jmp 0x3045
movq 0x1c0(%rsp), %rdi
movq 0x1af6c(%rip), %rsi     # 0x1dfc0
callq 0x2210
jmp 0x305b
jmp 0x305d
leaq 0x1b1e4(%rip), %rdi     # 0x1e248
leaq 0x358(%rsp), %rsi
callq 0x42c0
movq %rax, 0x1b8(%rsp)
jmp 0x307b
movq 0x1b8(%rsp), %rax
cmpq $0x0, %rax
jne 0x312a
movq 0x1af44(%rip), %rdi     # 0x1dfd8
leaq 0x12031(%rip), %rsi     # 0x150cc
callq 0x21c0
movq %rax, 0x1b0(%rsp)
jmp 0x30aa
movq 0x1b0(%rsp), %rdi
leaq 0x358(%rsp), %rsi
callq 0x21b0
movq %rax, 0x1a8(%rsp)
jmp 0x30c9
movq 0x1a8(%rsp), %rdi
movq 0x1aee8(%rip), %rsi     # 0x1dfc0
callq 0x2210
jmp 0x30df
movl 0x1b343(%rip), %eax     # 0x1e428
movl %eax, 0x19c(%rsp)
leaq 0x1b155(%rip), %rdi     # 0x1e248
leaq 0x358(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x1a0(%rsp)
jmp 0x310a
movq 0x1a0(%rsp), %rax
movl 0x19c(%rsp), %ecx
movl %ecx, (%rax)
movl 0x1b307(%rip), %eax     # 0x1e428
addl $0x1, %eax
movl %eax, 0x1b2fe(%rip)     # 0x1e428
leaq 0x1b147(%rip), %rdi     # 0x1e278
leaq 0x3a8(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x190(%rsp)
jmp 0x3148
movq 0x190(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x184(%rsp)
leaq 0x1b118(%rip), %rdi     # 0x1e278
leaq 0x380(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x188(%rsp)
jmp 0x3177
movq 0x188(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x174(%rsp)
leaq 0x1b0b9(%rip), %rdi     # 0x1e248
leaq 0x358(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x178(%rsp)
jmp 0x31a6
movl 0x174(%rsp), %edx
movl 0x184(%rsp), %esi
movq 0x178(%rsp), %rax
movl (%rax), %ecx
leaq 0x4bfab(%rip), %rdi     # 0x4f170
movl $0x1, %r8d
callq 0x4320
jmp 0x31d2
leaq 0x358(%rsp), %rdi
callq 0x23a8
leaq 0x380(%rsp), %rdi
callq 0x23a8
leaq 0x3a8(%rsp), %rdi
callq 0x23a8
jmp 0x2d68
leaq 0x380(%rsp), %rdi
callq 0x23a8
leaq 0x3a8(%rsp), %rdi
callq 0x23a8
jmp 0x3c79
movq 0x3c8(%rsp), %rdi
callq 0x21d0
leaq 0x11eaa(%rip), %rdi     # 0x150db
leaq 0x11e4f(%rip), %rsi     # 0x15087
callq 0x2270
movq %rax, 0x348(%rsp)
movq 0x348(%rsp), %rdi
leaq 0x11e68(%rip), %rsi     # 0x150bc
leaq 0x1b1d5(%rip), %rdx     # 0x1e430
movb $0x0, %al
callq 0x2360
cmpl $0x1, %eax
jne 0x3843
leaq 0x327(%rsp), %rdi
movq %rdi, 0x168(%rsp)
callq 0x2330
movq 0x168(%rsp), %rdx
leaq 0x1b1a1(%rip), %rsi     # 0x1e430
leaq 0x328(%rsp), %rdi
callq 0x3cf0
jmp 0x329e
leaq 0x327(%rsp), %rdi
callq 0x2230
movq 0x348(%rsp), %rdi
leaq 0x11e02(%rip), %rsi     # 0x150bc
leaq 0x1b16f(%rip), %rdx     # 0x1e430
xorl %eax, %eax
callq 0x2360
jmp 0x32ca
leaq 0x2ff(%rsp), %rdi
movq %rdi, 0x160(%rsp)
callq 0x2330
movq 0x160(%rsp), %rdx
leaq 0x1b142(%rip), %rsi     # 0x1e430
leaq 0x300(%rsp), %rdi
callq 0x3cf0
jmp 0x32fd
leaq 0x2ff(%rsp), %rdi
callq 0x2230
movq 0x348(%rsp), %rdi
leaq 0x11da3(%rip), %rsi     # 0x150bc
leaq 0x1b110(%rip), %rdx     # 0x1e430
xorl %eax, %eax
callq 0x2360
jmp 0x3329
leaq 0x2d7(%rsp), %rdi
movq %rdi, 0x158(%rsp)
callq 0x2330
movq 0x158(%rsp), %rdx
leaq 0x1b0e3(%rip), %rsi     # 0x1e430
leaq 0x2d8(%rsp), %rdi
callq 0x3cf0
jmp 0x335c
leaq 0x2d7(%rsp), %rdi
callq 0x2230
leaq 0x1af08(%rip), %rdi     # 0x1e278
leaq 0x328(%rsp), %rsi
callq 0x42c0
movq %rax, 0x150(%rsp)
jmp 0x3387
movq 0x150(%rsp), %rax
cmpq $0x0, %rax
jne 0x34ba
movq 0x1ac38(%rip), %rdi     # 0x1dfd8
leaq 0x11d18(%rip), %rsi     # 0x150bf
callq 0x21c0
movq %rax, 0x148(%rsp)
jmp 0x33b6
movq 0x148(%rsp), %rdi
leaq 0x328(%rsp), %rsi
callq 0x21b0
movq %rax, 0x140(%rsp)
jmp 0x33d5
movq 0x140(%rsp), %rdi
movq 0x1abdc(%rip), %rsi     # 0x1dfc0
callq 0x2210
jmp 0x33eb
jmp 0x34ba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x327(%rsp), %rdi
callq 0x2230
jmp 0x3c79
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
jmp 0x3831
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x2ff(%rsp), %rdi
callq 0x2230
jmp 0x3831
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
jmp 0x3824
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x2d7(%rsp), %rdi
callq 0x2230
jmp 0x3824
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x2d8(%rsp), %rdi
callq 0x23a8
jmp 0x3824
leaq 0x1adb7(%rip), %rdi     # 0x1e278
leaq 0x300(%rsp), %rsi
callq 0x42c0
movq %rax, 0x138(%rsp)
jmp 0x34d8
movq 0x138(%rsp), %rax
cmpq $0x0, %rax
jne 0x353a
movq 0x1aaeb(%rip), %rdi     # 0x1dfd8
leaq 0x11bcb(%rip), %rsi     # 0x150bf
callq 0x21c0
movq %rax, 0x130(%rsp)
jmp 0x3503
movq 0x130(%rsp), %rdi
leaq 0x300(%rsp), %rsi
callq 0x21b0
movq %rax, 0x128(%rsp)
jmp 0x3522
movq 0x128(%rsp), %rdi
movq 0x1aa8f(%rip), %rsi     # 0x1dfc0
callq 0x2210
jmp 0x3538
jmp 0x353a
leaq 0x1ad07(%rip), %rdi     # 0x1e248
leaq 0x2d8(%rsp), %rsi
callq 0x42c0
movq %rax, 0x120(%rsp)
jmp 0x3558
movq 0x120(%rsp), %rax
cmpq $0x0, %rax
jne 0x35b1
movl 0x1aebc(%rip), %eax     # 0x1e428
movl %eax, 0x114(%rsp)
leaq 0x1acce(%rip), %rdi     # 0x1e248
leaq 0x2d8(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x118(%rsp)
jmp 0x3591
movq 0x118(%rsp), %rax
movl 0x114(%rsp), %ecx
movl %ecx, (%rax)
movl 0x1ae80(%rip), %eax     # 0x1e428
addl $0x1, %eax
movl %eax, 0x1ae77(%rip)     # 0x1e428
leaq 0x1ac90(%rip), %rdi     # 0x1e248
leaq 0x2d8(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x108(%rsp)
jmp 0x35cf
movq 0x108(%rsp), %rsi
leaq 0x1ad8a(%rip), %rdi     # 0x1e368
callq 0x43e0
movq %rax, 0x100(%rsp)
jmp 0x35ed
leaq 0x1ac84(%rip), %rdi     # 0x1e278
leaq 0x328(%rsp), %rsi
callq 0x3ff0
movq %rax, 0xf8(%rsp)
jmp 0x360b
movq 0xf8(%rsp), %rsi
movq 0x100(%rsp), %rdi
callq 0x44d0
movq %rax, 0xf0(%rsp)
jmp 0x362a
movq 0xf0(%rsp), %rax
movl (%rax), %ecx
incl %ecx
movl %ecx, (%rax)
leaq 0x1ac09(%rip), %rdi     # 0x1e248
leaq 0x2d8(%rsp), %rsi
callq 0x3ff0
movq %rax, 0xe8(%rsp)
jmp 0x3656
movq 0xe8(%rsp), %rsi
leaq 0x1ad03(%rip), %rdi     # 0x1e368
callq 0x43e0
movq %rax, 0xe0(%rsp)
jmp 0x3674
leaq 0x1abfd(%rip), %rdi     # 0x1e278
leaq 0x300(%rsp), %rsi
callq 0x3ff0
movq %rax, 0xd8(%rsp)
jmp 0x3692
movq 0xd8(%rsp), %rsi
movq 0xe0(%rsp), %rdi
callq 0x44d0
movq %rax, 0xd0(%rsp)
jmp 0x36b1
movq 0xd0(%rsp), %rax
movl (%rax), %ecx
incl %ecx
movl %ecx, (%rax)
leaq 0x1abb2(%rip), %rdi     # 0x1e278
leaq 0x328(%rsp), %rsi
callq 0x3ff0
movq %rax, 0xc8(%rsp)
jmp 0x36dd
movq 0xc8(%rsp), %rsi
leaq 0x1acac(%rip), %rdi     # 0x1e398
callq 0x44d0
movq %rax, 0xc0(%rsp)
jmp 0x36fb
movq 0xc0(%rsp), %rax
movl (%rax), %ecx
incl %ecx
movl %ecx, (%rax)
leaq 0x1ab68(%rip), %rdi     # 0x1e278
leaq 0x300(%rsp), %rsi
callq 0x3ff0
movq %rax, 0xb8(%rsp)
jmp 0x3727
movq 0xb8(%rsp), %rsi
leaq 0x1ac62(%rip), %rdi     # 0x1e398
callq 0x44d0
movq %rax, 0xb0(%rsp)
jmp 0x3745
movq 0xb0(%rsp), %rax
movl (%rax), %ecx
incl %ecx
movl %ecx, (%rax)
leaq 0x1ab1e(%rip), %rdi     # 0x1e278
leaq 0x328(%rsp), %rsi
callq 0x3ff0
movq %rax, 0xa8(%rsp)
jmp 0x3771
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x9c(%rsp)
leaq 0x1aaef(%rip), %rdi     # 0x1e278
leaq 0x300(%rsp), %rsi
callq 0x3ff0
movq %rax, 0xa0(%rsp)
jmp 0x37a0
movq 0xa0(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x8c(%rsp)
leaq 0x1aa90(%rip), %rdi     # 0x1e248
leaq 0x2d8(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x90(%rsp)
jmp 0x37cf
movl 0x8c(%rsp), %edx
movl 0x9c(%rsp), %esi
movq 0x90(%rsp), %rax
movl (%rax), %ecx
leaq 0x4b982(%rip), %rdi     # 0x4f170
xorl %r8d, %r8d
callq 0x4320
jmp 0x37f8
leaq 0x2d8(%rsp), %rdi
callq 0x23a8
leaq 0x300(%rsp), %rdi
callq 0x23a8
leaq 0x328(%rsp), %rdi
callq 0x23a8
jmp 0x3245
leaq 0x300(%rsp), %rdi
callq 0x23a8
leaq 0x328(%rsp), %rdi
callq 0x23a8
jmp 0x3c79
movq 0x348(%rsp), %rdi
callq 0x21d0
leaq 0x11896(%rip), %rdi     # 0x150ed
leaq 0x11829(%rip), %rsi     # 0x15087
callq 0x2270
movq %rax, 0x2c8(%rsp)
movq 0x2c8(%rsp), %rdi
leaq 0x11842(%rip), %rsi     # 0x150bc
leaq 0x1abaf(%rip), %rdx     # 0x1e430
movb $0x0, %al
callq 0x2360
cmpl $0x1, %eax
jne 0x3c64
leaq 0x2a7(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0x2330
movq 0x80(%rsp), %rdx
leaq 0x1ab7b(%rip), %rsi     # 0x1e430
leaq 0x2a8(%rsp), %rdi
callq 0x3cf0
jmp 0x38c4
leaq 0x2a7(%rsp), %rdi
callq 0x2230
movq 0x2c8(%rsp), %rdi
leaq 0x117dc(%rip), %rsi     # 0x150bc
leaq 0x1ab49(%rip), %rdx     # 0x1e430
xorl %eax, %eax
callq 0x2360
jmp 0x38f0
leaq 0x27f(%rsp), %rdi
movq %rdi, 0x78(%rsp)
callq 0x2330
movq 0x78(%rsp), %rdx
leaq 0x1ab22(%rip), %rsi     # 0x1e430
leaq 0x280(%rsp), %rdi
callq 0x3cf0
jmp 0x391d
leaq 0x27f(%rsp), %rdi
callq 0x2230
movq 0x2c8(%rsp), %rdi
leaq 0x11783(%rip), %rsi     # 0x150bc
leaq 0x1aaf0(%rip), %rdx     # 0x1e430
xorl %eax, %eax
callq 0x2360
jmp 0x3949
leaq 0x257(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0x2330
movq 0x70(%rsp), %rdx
leaq 0x1aac9(%rip), %rsi     # 0x1e430
leaq 0x258(%rsp), %rdi
callq 0x3cf0
jmp 0x3976
leaq 0x257(%rsp), %rdi
callq 0x2230
leaq 0x1a8ee(%rip), %rdi     # 0x1e278
leaq 0x2a8(%rsp), %rsi
callq 0x42c0
movq %rax, 0x68(%rsp)
jmp 0x399e
movq 0x68(%rsp), %rax
cmpq $0x0, %rax
jne 0x3ac2
movq 0x1a624(%rip), %rdi     # 0x1dfd8
leaq 0x11704(%rip), %rsi     # 0x150bf
callq 0x21c0
movq %rax, 0x60(%rsp)
jmp 0x39c7
movq 0x60(%rsp), %rdi
leaq 0x2a8(%rsp), %rsi
callq 0x21b0
movq %rax, 0x58(%rsp)
jmp 0x39e0
movq 0x58(%rsp), %rdi
movq 0x1a5d4(%rip), %rsi     # 0x1dfc0
callq 0x2210
jmp 0x39f3
jmp 0x3ac2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x2a7(%rsp), %rdi
callq 0x2230
jmp 0x3c79
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
jmp 0x3c55
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x27f(%rsp), %rdi
callq 0x2230
jmp 0x3c55
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
jmp 0x3c48
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x257(%rsp), %rdi
callq 0x2230
jmp 0x3c48
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x400(%rsp)
movl %eax, 0x3fc(%rsp)
leaq 0x258(%rsp), %rdi
callq 0x23a8
jmp 0x3c48
leaq 0x1a7af(%rip), %rdi     # 0x1e278
leaq 0x280(%rsp), %rsi
callq 0x42c0
movq %rax, 0x50(%rsp)
jmp 0x3add
movq 0x50(%rsp), %rax
cmpq $0x0, %rax
jne 0x3b30
movq 0x1a4e9(%rip), %rdi     # 0x1dfd8
leaq 0x115c9(%rip), %rsi     # 0x150bf
callq 0x21c0
movq %rax, 0x48(%rsp)
jmp 0x3b02
movq 0x48(%rsp), %rdi
leaq 0x280(%rsp), %rsi
callq 0x21b0
movq %rax, 0x40(%rsp)
jmp 0x3b1b
movq 0x40(%rsp), %rdi
movq 0x1a499(%rip), %rsi     # 0x1dfc0
callq 0x2210
jmp 0x3b2e
jmp 0x3b30
leaq 0x1a711(%rip), %rdi     # 0x1e248
leaq 0x258(%rsp), %rsi
callq 0x42c0
movq %rax, 0x38(%rsp)
jmp 0x3b4b
movq 0x38(%rsp), %rax
cmpq $0x0, %rax
jne 0x3b95
movl 0x1a8cc(%rip), %eax     # 0x1e428
movl %eax, 0x2c(%rsp)
leaq 0x1a6e1(%rip), %rdi     # 0x1e248
leaq 0x258(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x30(%rsp)
jmp 0x3b7b
movq 0x30(%rsp), %rax
movl 0x2c(%rsp), %ecx
movl %ecx, (%rax)
movl 0x1a89c(%rip), %eax     # 0x1e428
addl $0x1, %eax
movl %eax, 0x1a893(%rip)     # 0x1e428
leaq 0x1a6dc(%rip), %rdi     # 0x1e278
leaq 0x2a8(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x20(%rsp)
jmp 0x3bb0
movq 0x20(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x14(%rsp)
leaq 0x1a6b6(%rip), %rdi     # 0x1e278
leaq 0x280(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x18(%rsp)
jmp 0x3bd6
movq 0x18(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x4(%rsp)
leaq 0x1a660(%rip), %rdi     # 0x1e248
leaq 0x258(%rsp), %rsi
callq 0x3ff0
movq %rax, 0x8(%rsp)
jmp 0x3bfc
movl 0x4(%rsp), %edx
movl 0x14(%rsp), %esi
movq 0x8(%rsp), %rax
movl (%rax), %ecx
leaq 0x4b55e(%rip), %rdi     # 0x4f170
xorl %r8d, %r8d
callq 0x4320
jmp 0x3c1c
leaq 0x258(%rsp), %rdi
callq 0x23a8
leaq 0x280(%rsp), %rdi
callq 0x23a8
leaq 0x2a8(%rsp), %rdi
callq 0x23a8
jmp 0x386b
leaq 0x280(%rsp), %rdi
callq 0x23a8
leaq 0x2a8(%rsp), %rdi
callq 0x23a8
jmp 0x3c79
movq 0x2c8(%rsp), %rdi
callq 0x21d0
addq $0x448, %rsp            # imm = 0x448
retq
movq 0x400(%rsp), %rdi
callq 0x2320
nopw %cs:(%rax,%rax)