// File: /workspace/github_cpp_makefile_star2_O1/thunlp[P]KB2E/CTransR/Train_CTransR.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;
		entity_num++;
	}
	while (fscanf(f2,"%s%d",buf,&x)==2)
	{
		string st=buf;
		relation2id[st]=x;
		id2relation[x]=st;
		fb_relation_num++;
	}
    FILE* f_kb = fopen("../data/train.txt","r");
    FILE* f_train_cluster = fopen("../cluster/output/train_cluster.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 rel:"<<s3<<endl;
        }
        int e1 = entity2id[s1];
        int e2 = entity2id[s2];
        int rel_fb = relation2id[s3];
        int rel;
        fscanf(f_train_cluster,"%d",&rel);
        left_entity[rel][e1]+=1;
        right_entity[rel][e2]+=1;
        if (cluster2fb.count(rel)==0)
        {
            relation_num+=1;
            cluster2fb[rel]=rel_fb;
        }
        else
        if (cluster2fb[rel]!=rel_fb)
        {
            cout<<"not map:"<<e1<<" "<<e2<<" "<<rel<<' '<<rel_fb<<endl;
            exit(-1);
        }

        fb_left_entity[cluster2fb[rel]][e1]+=1;
        fb_right_entity[cluster2fb[rel]][e2]+=1;
        train.add(e1,e2,rel);
    }
    fclose(f_train_cluster);
    fclose(f_kb);
    for (int i=0; i<relation_num; i++)
    {
    	double sum1=0,sum2=0;
    	for (map<int,int>::iterator it = left_entity[i].begin(); it!=left_entity[i].end(); it++)
    	{
    		sum1++;
    		sum2+=it->second;
    	}
    	left_mean[i]=sum2/sum1;
    }
    for (int i=0; i<relation_num; i++)
    {
    	double sum1=0,sum2=0;
    	for (map<int,int>::iterator it = right_entity[i].begin(); it!=right_entity[i].end(); it++)
    	{
    		sum1++;
    		sum2+=it->second;
    	}
    	right_mean[i]=sum2/sum1;
    }


     for (int i=0; i<fb_relation_num; i++)
    {
    	double sum1=0,sum2=0;
    	for (map<int,int>::iterator it = fb_left_entity[i].begin(); it!=fb_left_entity[i].end(); it++)
    	{
    		sum1++;
    		sum2+=it->second;
    	}
    	fb_left_mean[i]=sum2/sum1;
    }
    for (int i=0; i<fb_relation_num; i++)
    {
    	double sum1=0,sum2=0;
    	for (map<int,int>::iterator it = fb_right_entity[i].begin(); it!=fb_right_entity[i].end(); it++)
    	{
    		sum1++;
    		sum2+=it->second;
    	}
    	fb_right_mean[i]=sum2/sum1;
    }
    for (int i=0; i<fb_relation_num; i++)
    	cout<<fb_left_mean[i]<<' '<<fb_right_mean[i]<<endl;
    cout<<"fb_relation_num="<<fb_relation_num<<endl;
    cout<<"relation_num="<<relation_num<<endl;
    cout<<"entity_num="<<entity_num<<endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
leaq 0x5538(%rip), %rdi      # 0x80b0
leaq 0x5547(%rip), %rbx      # 0x80c6
movq %rbx, %rsi
callq 0x2210
movq %rax, %r14
leaq 0x5537(%rip), %rdi      # 0x80c8
movq %rbx, %rsi
callq 0x2210
movq %rax, 0x8(%rsp)
leaq 0x553b(%rip), %rsi      # 0x80e0
leaq 0x9654(%rip), %r15      # 0xc200
leaq 0x14(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2320
cmpl $0x2, %eax
jne 0x2c5e
leaq 0x28(%rsp), %rbp
leaq 0x18(%rsp), %r12
leaq 0x14(%rsp), %r13
movq %rbp, 0x18(%rsp)
movq %r15, %rdi
callq 0x20d0
leaq (%rax,%r15), %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x739e
movl 0x14(%rsp), %ebx
leaq 0x3a3b3(%rip), %rdi     # 0x3cfb0
movq %r12, %rsi
callq 0x3b84
movl %ebx, (%rax)
leaq 0x3a3d2(%rip), %rdi     # 0x3cfe0
movq %r13, %rsi
callq 0x3c00
movq %rax, %rdi
movq %r12, %rsi
callq 0x2100
incl 0x3a31d(%rip)           # 0x3cf44
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2c3e
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %r14, %rdi
leaq 0x5498(%rip), %rsi      # 0x80e0
movq %r15, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x2320
cmpl $0x2, %eax
je 0x2bd6
leaq 0x547b(%rip), %rsi      # 0x80e0
leaq 0x9594(%rip), %r14      # 0xc200
leaq 0x14(%rsp), %rcx
movq 0x8(%rsp), %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2320
cmpl $0x2, %eax
jne 0x2d27
leaq 0x28(%rsp), %r12
leaq 0x18(%rsp), %r15
leaq 0x14(%rsp), %rbp
leaq 0x5441(%rip), %rbx      # 0x80e0
movq %r12, 0x18(%rsp)
movq %r14, %rdi
callq 0x20d0
leaq (%rax,%r14), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x739e
movl 0x14(%rsp), %r13d
leaq 0x3a2b9(%rip), %rdi     # 0x3cf80
movq %r15, %rsi
callq 0x3b84
movl %r13d, (%rax)
leaq 0x3a337(%rip), %rdi     # 0x3d010
movq %rbp, %rsi
callq 0x3c00
movq %rax, %rdi
movq %r15, %rsi
callq 0x2100
incl 0x3a256(%rip)           # 0x3cf48
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x2d09
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0x2320
cmpl $0x2, %eax
je 0x2c9f
leaq 0x53b7(%rip), %rdi      # 0x80e5
leaq 0x5391(%rip), %r14      # 0x80c6
movq %r14, %rsi
callq 0x2210
movq %rax, %rbx
leaq 0x53b0(%rip), %rdi      # 0x80f7
movq %r14, %rsi
callq 0x2210
movq %rax, 0x8(%rsp)
leaq 0x53c0(%rip), %rsi      # 0x811b
leaq 0x949e(%rip), %r15      # 0xc200
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2320
cmpl $0x1, %eax
jne 0x315a
leaq 0x3a231(%rip), %r12     # 0x3cfb0
leaq 0x3c(%rsp), %r13
leaq 0x3a1c5(%rip), %rbp     # 0x3cf50
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq %r15, %rdi
callq 0x20d0
leaq (%rax,%r15), %rdx
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x739e
movq %rbx, %rdi
leaq 0x5363(%rip), %rsi      # 0x811b
movq %r15, %rdx
xorl %eax, %eax
callq 0x2320
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq %r15, %rdi
callq 0x20d0
leaq (%rax,%r15), %rdx
leaq 0x58(%rsp), %rdi
movq %r15, %rsi
callq 0x739e
movq %rbx, %rdi
leaq 0x532c(%rip), %rsi      # 0x811b
movq %r15, %rdx
xorl %eax, %eax
callq 0x2320
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %r15, %rdi
callq 0x20d0
leaq (%rax,%r15), %rdx
leaq 0x78(%rsp), %rdi
movq %r15, %rsi
callq 0x739e
movq %r12, %rdi
leaq 0x18(%rsp), %rsi
callq 0x7a24
leaq 0x3a185(%rip), %rcx     # 0x3cfb8
cmpq %rcx, %rax
jne 0x2e90
movl $0xc, %edx
movq 0x9194(%rip), %rdi      # 0xbfd8
leaq 0x52d3(%rip), %rsi      # 0x811e
callq 0x2200
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq 0x9177(%rip), %rdi      # 0xbfd8
callq 0x2200
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 0x2030
movq %rax, %rdi
callq 0x2120
movq %r12, %rdi
leaq 0x58(%rsp), %rsi
callq 0x7a24
leaq 0x3a114(%rip), %rcx     # 0x3cfb8
cmpq %rcx, %rax
jne 0x2f01
movl $0xc, %edx
movq 0x9123(%rip), %rdi      # 0xbfd8
leaq 0x5262(%rip), %rsi      # 0x811e
callq 0x2200
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x9106(%rip), %rdi      # 0xbfd8
callq 0x2200
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 0x2030
movq %rax, %rdi
callq 0x2120
leaq 0x3a078(%rip), %rdi     # 0x3cf80
leaq 0x78(%rsp), %rsi
callq 0x7a24
leaq 0x3a06f(%rip), %rcx     # 0x3cf88
cmpq %rcx, %rax
jne 0x2f79
movl $0x9, %edx
movq 0x90ae(%rip), %rdi      # 0xbfd8
leaq 0x51fa(%rip), %rsi      # 0x812b
callq 0x2200
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x908e(%rip), %rdi      # 0xbfd8
callq 0x2200
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 0x2030
movq %rax, %rdi
callq 0x2120
movq %r12, %rdi
leaq 0x18(%rsp), %rsi
callq 0x3b84
movl (%rax), %eax
movl %eax, 0x44(%rsp)
movq %r12, %rdi
leaq 0x58(%rsp), %rsi
callq 0x3b84
movl (%rax), %eax
movl %eax, 0x40(%rsp)
leaq 0x39fda(%rip), %rdi     # 0x3cf80
leaq 0x78(%rsp), %rsi
callq 0x3b84
movl (%rax), %r14d
movq 0x8(%rsp), %rdi
leaq 0x5123(%rip), %rsi      # 0x80e2
movq %r13, %rdx
xorl %eax, %eax
callq 0x2320
leaq 0x3a0a0(%rip), %rdi     # 0x3d070
movq %r13, %rsi
callq 0x3c64
movq %rax, %rdi
leaq 0x44(%rsp), %rsi
callq 0x3cc8
incl (%rax)
leaq 0x3a0b2(%rip), %rdi     # 0x3d0a0
movq %r13, %rsi
callq 0x3c64
movq %rax, %rdi
leaq 0x40(%rsp), %rsi
callq 0x3cc8
incl (%rax)
movq 0x39f54(%rip), %rcx     # 0x3cf60
leaq 0x39f45(%rip), %rax     # 0x3cf58
testq %rcx, %rcx
je 0x303a
movl 0x3c(%rsp), %edx
leaq 0x39f35(%rip), %rax     # 0x3cf58
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x3023
leaq 0x39f17(%rip), %rcx     # 0x3cf58
cmpq %rcx, %rax
je 0x304f
movl 0x3c(%rsp), %ecx
cmpl 0x20(%rax), %ecx
jge 0x3065
incl 0x39eeb(%rip)           # 0x3cf40
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3cc8
movl %r14d, (%rax)
jmp 0x3079
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3cc8
cmpl %r14d, (%rax)
jne 0x3697
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3cc8
leaq 0x3a0a5(%rip), %rdi     # 0x3d130
movq %rax, %rsi
callq 0x3c64
movq %rax, %rdi
leaq 0x44(%rsp), %rsi
callq 0x3cc8
incl (%rax)
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3cc8
leaq 0x3a0ac(%rip), %rdi     # 0x3d160
movq %rax, %rsi
callq 0x3c64
movq %rax, %rdi
leaq 0x40(%rsp), %rsi
callq 0x3cc8
incl (%rax)
movl 0x44(%rsp), %esi
movl 0x40(%rsp), %edx
movl 0x3c(%rsp), %ecx
leaq 0x3a112(%rip), %rdi     # 0x3d1f0
callq 0x3d76
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x3105
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x3121
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x313d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
leaq 0x4fd4(%rip), %rsi      # 0x811b
movq %r15, %rdx
xorl %eax, %eax
callq 0x2320
cmpl $0x1, %eax
je 0x2d8b
movq 0x8(%rsp), %rdi
callq 0x21c0
movq %rbx, %rdi
callq 0x21c0
movl $0x0, 0x18(%rsp)
cmpl $0x0, 0x39dc5(%rip)     # 0x3cf40
jle 0x3249
leaq 0x39ee8(%rip), %rbx     # 0x3d070
leaq 0x18(%rsp), %r14
leaq 0x39f3c(%rip), %r15     # 0x3d0d0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
movq 0x18(%rax), %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
addq $0x8, %rax
movsd 0x4e6e(%rip), %xmm1     # 0x8028
cmpq %rax, %r12
je 0x3218
xorpd %xmm2, %xmm2
xorpd %xmm1, %xmm1
addsd 0x4e51(%rip), %xmm2     # 0x8020
movsd %xmm2, 0x48(%rsp)
xorps %xmm0, %xmm0
cvtsi2sdl 0x24(%r12), %xmm0
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r12, %rdi
callq 0x2130
movq %rax, %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
movsd 0x48(%rsp), %xmm2
movsd 0x8(%rsp), %xmm1
addq $0x8, %rax
cmpq %rax, %r12
jne 0x31c7
divsd %xmm2, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x3eb4
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0x18(%rsp), %eax
incl %eax
movl %eax, 0x18(%rsp)
cmpl 0x39cfd(%rip), %eax     # 0x3cf40
jl 0x3194
movl $0x0, 0x18(%rsp)
cmpl $0x0, 0x39ce8(%rip)     # 0x3cf40
jle 0x3326
leaq 0x39e3b(%rip), %rbx     # 0x3d0a0
leaq 0x18(%rsp), %r14
leaq 0x39e8f(%rip), %r15     # 0x3d100
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
movq 0x18(%rax), %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
addq $0x8, %rax
movsd 0x4d91(%rip), %xmm1     # 0x8028
cmpq %rax, %r12
je 0x32f5
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
addsd 0x4d74(%rip), %xmm2     # 0x8020
movsd %xmm2, 0x48(%rsp)
xorps %xmm0, %xmm0
cvtsi2sdl 0x24(%r12), %xmm0
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r12, %rdi
callq 0x2130
movq %rax, %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
movsd 0x48(%rsp), %xmm2
movsd 0x8(%rsp), %xmm1
addq $0x8, %rax
cmpq %rax, %r12
jne 0x32a4
divsd %xmm2, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x3eb4
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0x18(%rsp), %eax
incl %eax
movl %eax, 0x18(%rsp)
cmpl 0x39c20(%rip), %eax     # 0x3cf40
jl 0x3271
movl $0x0, 0x18(%rsp)
cmpl $0x0, 0x39c13(%rip)     # 0x3cf48
jle 0x3403
leaq 0x39dee(%rip), %rbx     # 0x3d130
leaq 0x18(%rsp), %r14
leaq 0x39e42(%rip), %r15     # 0x3d190
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
movq 0x18(%rax), %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
addq $0x8, %rax
movsd 0x4cb4(%rip), %xmm1     # 0x8028
cmpq %rax, %r12
je 0x33d2
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
addsd 0x4c97(%rip), %xmm2     # 0x8020
movsd %xmm2, 0x48(%rsp)
xorps %xmm0, %xmm0
cvtsi2sdl 0x24(%r12), %xmm0
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r12, %rdi
callq 0x2130
movq %rax, %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
movsd 0x48(%rsp), %xmm2
movsd 0x8(%rsp), %xmm1
addq $0x8, %rax
cmpq %rax, %r12
jne 0x3381
divsd %xmm2, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x3eb4
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0x18(%rsp), %eax
incl %eax
movl %eax, 0x18(%rsp)
cmpl 0x39b4b(%rip), %eax     # 0x3cf48
jl 0x334e
movl $0x0, 0x18(%rsp)
cmpl $0x0, 0x39b36(%rip)     # 0x3cf48
jle 0x34e0
leaq 0x39d41(%rip), %rbx     # 0x3d160
leaq 0x18(%rsp), %r14
leaq 0x39d95(%rip), %r15     # 0x3d1c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
movq 0x18(%rax), %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
addq $0x8, %rax
movsd 0x4bd7(%rip), %xmm1     # 0x8028
cmpq %rax, %r12
je 0x34af
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
addsd 0x4bba(%rip), %xmm2     # 0x8020
movsd %xmm2, 0x48(%rsp)
xorps %xmm0, %xmm0
cvtsi2sdl 0x24(%r12), %xmm0
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r12, %rdi
callq 0x2130
movq %rax, %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c64
movsd 0x48(%rsp), %xmm2
movsd 0x8(%rsp), %xmm1
addq $0x8, %rax
cmpq %rax, %r12
jne 0x345e
divsd %xmm2, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x3eb4
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0x18(%rsp), %eax
incl %eax
movl %eax, 0x18(%rsp)
cmpl 0x39a6e(%rip), %eax     # 0x3cf48
jl 0x342b
movl $0x0, 0x18(%rsp)
cmpl $0x0, 0x39a59(%rip)     # 0x3cf48
jle 0x359a
leaq 0x39c94(%rip), %rbx     # 0x3d190
leaq 0x18(%rsp), %r14
movq 0x8ad0(%rip), %r15      # 0xbfd8
leaq 0x58(%rsp), %r12
leaq 0x39cac(%rip), %r13     # 0x3d1c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3eb4
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x22b0
movb $0x20, 0x58(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2200
movq %rax, %rbp
movq %r13, %rdi
movq %r14, %rsi
callq 0x3eb4
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x22b0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
movl 0x18(%rsp), %eax
incl %eax
movl %eax, 0x18(%rsp)
cmpl 0x399b4(%rip), %eax     # 0x3cf48
jl 0x3514
movq 0x8a37(%rip), %rbx      # 0xbfd8
leaq 0x4b96(%rip), %rsi      # 0x813e
movl $0x10, %edx
movq %rbx, %rdi
callq 0x2200
movl 0x3998d(%rip), %esi     # 0x3cf48
movq %rbx, %rdi
callq 0x22e0
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 0x2030
movq %rax, %rdi
callq 0x2120
leaq 0x4b4d(%rip), %rsi      # 0x8141
movl $0xd, %edx
movq %rbx, %rdi
callq 0x2200
movl 0x39939(%rip), %esi     # 0x3cf40
movq %rbx, %rdi
callq 0x22e0
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 0x2030
movq %rax, %rdi
callq 0x2120
leaq 0x4b0f(%rip), %rsi      # 0x814f
movl $0xb, %edx
movq %rbx, %rdi
callq 0x2200
movl 0x398f1(%rip), %esi     # 0x3cf44
movq %rbx, %rdi
callq 0x22e0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x893a(%rip), %rdi      # 0xbfd8
leaq 0x4a90(%rip), %rsi      # 0x8135
movl $0x8, %edx
callq 0x2200
movl 0x44(%rsp), %esi
movq 0x891e(%rip), %rdi      # 0xbfd8
callq 0x22e0
movq %rax, %rbx
leaq 0x4af0(%rip), %rsi      # 0x81b9
movl $0x1, %edx
movq %rax, %rdi
callq 0x2200
movl 0x40(%rsp), %esi
movq %rbx, %rdi
callq 0x22e0
movq %rax, %rbx
leaq 0x4acd(%rip), %rsi      # 0x81b9
movl $0x1, %edx
movq %rax, %rdi
callq 0x2200
movl 0x3c(%rsp), %esi
movq %rbx, %rdi
callq 0x22e0
leaq 0x57(%rsp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2200
movq %rax, %rdi
movl %r14d, %esi
callq 0x22e0
movq %rax, %rdi
callq 0x20e0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x2220
jmp 0x3776
jmp 0x3776
jmp 0x3776
jmp 0x3776
jmp 0x3751
jmp 0x3743
movq %rax, %rbx
jmp 0x37b7
jmp 0x374a
movq %rax, %rbx
jmp 0x379b
jmp 0x3751
movq %rax, %rbx
jmp 0x37d3
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
jne 0x37c6
jmp 0x37d3
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
jne 0x37c6
jmp 0x37d3
jmp 0x3776
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x379b
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x37b7
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x37d3
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x22f0