// File: /workspace/github_cpp_makefile_star2_O2/thunlp[P]KB2E/CTransR/Test_CTransR.cpp
// Function: Test::run()
void run()
    {

        FILE* f1 = fopen(("fb_relation2vec"+version).c_str(),"r");
        FILE* f2 = fopen(("relation2vec"+version).c_str(),"r");
        FILE* f3 = fopen(("entity2vec"+version).c_str(),"r");
        cout<<relation_num<<' '<<entity_num<<' '<<fb_relation_num<<endl;
        fb_relation_vec.resize(fb_relation_num);
        for (int i=0; i<relation_num;i++)
        {
            fb_relation_vec[i].resize(n);
            for (int ii=0; ii<n; ii++)
                fscanf(f1,"%lf",&fb_relation_vec[i][ii]);
        }
        relation_vec.resize(relation_num);
        for (int i=0; i<relation_num;i++)
        {
            relation_vec[i].resize(n);
            for (int ii=0; ii<n; ii++)
                fscanf(f2,"%lf",&relation_vec[i][ii]);
        }

        entity_vec.resize(entity_num);
        cout<<entity_num<<endl;
        for (int i=0; i<entity_num;i++)
        {
            entity_vec[i].resize(n);
            for (int ii=0; ii<n; ii++)
                fscanf(f3,"%lf",&entity_vec[i][ii]);
        }

        FILE* f4 = fopen(("A.txt"+version).c_str(),"r");

        A.resize(fb_relation_num);
		for (int i=0; i<fb_relation_num; i++)
		{
		    A[i].resize(n);
		    for (int jj=0; jj<n; jj++)
		    {
		        A[i][jj].resize(m);
		        for (int ii=0; ii<m; ii++)
                    fscanf(f4,"%lf",&A[i][jj][ii]);
		    }
		}
		fclose(f4);
        cout<<"Here"<<endl;
		double lsum=0 ,lsum_filter= 0;
		double rsum = 0,rsum_filter=0;
		double lp_n=0,lp_n_filter=0;
		double rp_n=0,rp_n_filter=0;
		map<int,double> lsum_r,lsum_filter_r;
		map<int,double> rsum_r,rsum_filter_r;
		map<int,double> lp_n_r,lp_n_filter_r;
		map<int,double> rp_n_r,rp_n_filter_r;
		map<int,int> rel_num;
        //cout<<"here"<<endl;


        FILE* f_test_cluster = fopen("../cluster/output/test_cluster.txt","r");
        for (int testid = 0; testid<fb_l.size(); testid+=1)
		{
		    vector<int> h_rel,l_rel;
		    for (int i=0; i<entity_num; i++)
            {
                int x;
                fscanf(f_test_cluster,"%d",&x);
                h_rel.push_back(x);
            }
            for (int i=0; i<entity_num; i++)
            {
                int x;
                fscanf(f_test_cluster,"%d",&x);
                l_rel.push_back(x);
            }
			int h = fb_h[testid];
			int l = fb_l[testid];
			int rel = fb_r[testid];



            if (h_rel[l]!=l_rel[h])
                cout<<"wrong"<<h_rel[l]<<' '<<l_rel[h]<<' '<<h<<' '<<l<<endl;

			double tmp = 0;
			rel_num[rel]+=1;
			vector<pair<int,double> > a;
			for (int i=0; i<entity_num; i++)
			{
				double sum  = calc_sum(i,l,h_rel[i]);
			//	for (int j=0; j<fb2cluster[rel].size(); j++)
              //      sum+= calc_sum(i,l,fb2cluster[rel][j]);
				a.push_back(make_pair(i,sum));
			}
			sort(a.begin(),a.end(),cmp);
			double ttt=0;
			int filter = 0;
			for (int i=a.size()-1; i>=0; i--)
			{
			    if (ok[make_pair(a[i].first,rel)].count(l)==0)
			    	filter+=1;
				if (a[i].first ==h)
				{
					lsum+=a.size()-i;
					lsum_filter+=filter+1;
					lsum_r[rel]+=a.size()-i;
					lsum_filter_r[rel]+=filter+1;
					if (a.size()-i<=10)
					{
						lp_n+=1;
						lp_n_r[rel]+=1;
					}
					if (filter<10)
					{
						lp_n_filter+=1;
						lp_n_filter_r[rel]+=1;
					}
					break;
				}
			}
			a.clear();
			for (int i=0; i<entity_num; i++)
			{
				double sum =  calc_sum(h,i,l_rel[i]);
				//for (int j=0; j<fb2cluster[rel].size(); j++)
                  //  sum+= calc_sum(h,i,fb2cluster[rel][j]);
				a.push_back(make_pair(i,sum));
			}
			sort(a.begin(),a.end(),cmp);
			ttt=0;
			filter=0;
			for (int i=a.size()-1; i>=0; i--)
			{
			    if (ok[make_pair(h,rel)].count(a[i].first)==0)
			    	filter+=1;
				if (a[i].first==l)
				{
					rsum+=a.size()-i;
					rsum_filter+=filter+1;
					rsum_r[rel]+=a.size()-i;
					rsum_filter_r[rel]+=filter+1;
					if (a.size()-i<=10)
					{
						rp_n+=1;
						rp_n_r[rel]+=1;
					}
					if (filter<10)
					{
						rp_n_filter+=1;
						rp_n_filter_r[rel]+=1;
					}
					break;
				}
			}
			//if (testid%100==0)
			//cout<<testid<<":"<<"\t"<<lsum/(testid+1)<<' '<<lp_n/(testid+1)<<' '<<rsum/(testid+1)<<' '<<rp_n/(testid+1)<<"\t"<<lsum_filter/(testid+1)<<' '<<lp_n_filter/(testid+1)<<' '<<rsum_filter/(testid+1)<<' '<<rp_n_filter/(testid+1)<<endl;
		}
		cout<<"left:"<<lsum/fb_l.size()<<'\t'<<lp_n/fb_l.size()<<"\t"<<lsum_filter/fb_l.size()<<'\t'<<lp_n_filter/fb_l.size()<<endl;
		cout<<"right:"<<rsum/fb_r.size()<<'\t'<<rp_n/fb_r.size()<<'\t'<<rsum_filter/fb_r.size()<<'\t'<<rp_n_filter/fb_r.size()<<endl;
		for (int rel=0; rel<fb_relation_num; rel++)
		{
			int num = rel_num[rel];
			cout<<"rel:"<<id2relation[rel]<<' '<<num<<endl;
			cout<<"left:"<<lsum_r[rel]/num<<'\t'<<lp_n_r[rel]/num<<"\t"<<lsum_filter_r[rel]/num<<'\t'<<lp_n_filter_r[rel]/num<<endl;
			cout<<"right:"<<rsum_r[rel]/num<<'\t'<<rp_n_r[rel]/num<<'\t'<<rsum_filter_r[rel]/num<<'\t'<<rp_n_filter_r[rel]/num<<endl;
		}
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
movq %rdi, %rbx
leaq 0x4e15(%rip), %rsi      # 0x813a
leaq 0x8e6c(%rip), %r14      # 0xc198
leaq 0xe8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x4dba
movq (%r15), %rdi
leaq 0x4d66(%rip), %r13      # 0x80af
movq %r13, %rsi
callq 0x21b0
movq %rax, %r12
movq %r15, %rdi
callq 0x22b8
leaq 0x4dda(%rip), %rsi      # 0x813d
leaq 0xe8(%rsp), %rbp
movq %rbp, %rdi
movq %r14, %rdx
callq 0x4dba
movq (%rbp), %rdi
movq %r13, %rsi
callq 0x21b0
movq %rax, 0x48(%rsp)
movq %rbp, %rdi
callq 0x22b8
leaq 0x4db4(%rip), %rsi      # 0x814a
leaq 0xe8(%rsp), %rbp
movq %rbp, %rdi
movq %r14, %rdx
movq %rbx, %r14
callq 0x4dba
movq (%rbp), %rdi
movq %r13, %rsi
callq 0x21b0
movq %rax, 0x8(%rsp)
movq %rbp, %rdi
callq 0x22b8
movl 0x8fed(%rip), %esi      # 0xc3b8
movq 0x8c06(%rip), %rdi      # 0xbfd8
callq 0x2240
pushq $0x20
popq %rbp
movq %rax, %rdi
movl %ebp, %esi
callq 0x21a0
movl 0x8fd2(%rip), %esi      # 0xc3bc
movq %rax, %rdi
callq 0x2240
movq %rax, %rdi
movl %ebp, %esi
callq 0x21a0
movl 0x8fbe(%rip), %esi      # 0xc3c0
movq %rax, %rdi
callq 0x2240
movq %rax, %rdi
callq 0x20a0
leaq 0x30(%rbx), %r13
movslq 0x8fa3(%rip), %rsi      # 0xc3c0
movq %r13, %rdi
callq 0x4e30
leaq 0x4d29(%rip), %rbp      # 0x8155
xorl %eax, %eax
movq %rbx, 0x18(%rsp)
movslq 0x8f7e(%rip), %rsi      # 0xc3b8
cmpq %rsi, %rax
jge 0x349d
movq %rax, 0x40(%rsp)
imulq $0x18, %rax, %rbx
movq (%r13), %rdi
addq %rbx, %rdi
movslq 0x8d16(%rip), %rsi      # 0xc16c
callq 0x4e66
xorl %r14d, %r14d
xorl %r15d, %r15d
movslq 0x8d04(%rip), %rax      # 0xc16c
cmpq %rax, %r15
jge 0x348e
movq (%r13), %rax
movq (%rax,%rbx), %rdx
addq %r14, %rdx
movq %r12, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x2280
incq %r15
addq $0x8, %r14
jmp 0x3461
movq 0x40(%rsp), %rax
incq %rax
movq 0x18(%rsp), %r14
jmp 0x3433
movq %r14, %rdi
callq 0x4e30
leaq 0x4ca9(%rip), %r12      # 0x8155
xorl %ebx, %ebx
movq 0x48(%rsp), %rbp
movslq 0x8efe(%rip), %rax      # 0xc3b8
cmpq %rax, %rbx
jge 0x3516
imulq $0x18, %rbx, %r13
movq (%r14), %rdi
addq %r13, %rdi
movslq 0x8c9c(%rip), %rsi      # 0xc16c
callq 0x4e66
xorl %r14d, %r14d
xorl %r15d, %r15d
movslq 0x8c8a(%rip), %rax      # 0xc16c
cmpq %rax, %r15
jge 0x350c
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13), %rdx
addq %r14, %rdx
movq %rbp, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x2280
incq %r15
addq $0x8, %r14
jmp 0x34db
incq %rbx
movq 0x18(%rsp), %r14
jmp 0x34b3
leaq 0x18(%r14), %r15
movslq 0x8e9b(%rip), %rsi      # 0xc3bc
movq %r15, %rdi
callq 0x4e30
movl 0x8e8d(%rip), %esi      # 0xc3bc
movq 0x8aa2(%rip), %rdi      # 0xbfd8
callq 0x2240
movq %rax, %rdi
callq 0x20a0
leaq 0x4c0b(%rip), %r12      # 0x8155
xorl %ebx, %ebx
movslq 0x8e69(%rip), %rax      # 0xc3bc
cmpq %rax, %rbx
jge 0x35a6
imulq $0x18, %rbx, %r13
movq (%r15), %rdi
addq %r13, %rdi
movslq 0x8c03(%rip), %rsi      # 0xc16c
callq 0x4e66
xorl %r14d, %r14d
xorl %ebp, %ebp
movslq 0x8bf2(%rip), %rax      # 0xc16c
cmpq %rax, %rbp
jge 0x35a1
movq (%r15), %rax
movq (%rax,%r13), %rdx
addq %r14, %rdx
movq 0x8(%rsp), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x2280
incq %rbp
addq $0x8, %r14
jmp 0x3573
incq %rbx
jmp 0x354c
leaq 0x4bac(%rip), %rsi      # 0x8159
leaq 0x8be4(%rip), %rdx      # 0xc198
leaq 0xe8(%rsp), %r15
movq %r15, %rdi
callq 0x4dba
movq (%r15), %rdi
leaq 0x4ae1(%rip), %rsi      # 0x80af
callq 0x21b0
movq %rax, %r14
movq %r15, %rdi
callq 0x22b8
movq 0x18(%rsp), %rax
leaq 0x48(%rax), %r15
movslq 0x8dd2(%rip), %rsi      # 0xc3c0
movq %r15, %rdi
callq 0x4e98
xorl %ecx, %ecx
movslq 0x8dc1(%rip), %rax      # 0xc3c0
cmpq %rax, %rcx
jge 0x36a0
movq %rcx, 0x40(%rsp)
imulq $0x18, %rcx, %rbp
movq (%r15), %rdi
addq %rbp, %rdi
movslq 0x8b4e(%rip), %rsi      # 0xc16c
callq 0x4e30
xorl %ecx, %ecx
movslq 0x8b40(%rip), %rax      # 0xc16c
cmpq %rax, %rcx
jge 0x3693
movq (%r15), %rax
movq %rcx, 0x8(%rsp)
imulq $0x18, %rcx, %r13
movq (%rax,%rbp), %rdi
addq %r13, %rdi
movslq 0x8b25(%rip), %rsi      # 0xc170
callq 0x4e66
xorl %ebx, %ebx
xorl %r12d, %r12d
movslq 0x8b14(%rip), %rax      # 0xc170
cmpq %rax, %r12
jge 0x3689
movq (%r15), %rax
movq (%rax,%rbp), %rax
movq (%rax,%r13), %rdx
addq %rbx, %rdx
movq %r14, %rdi
leaq 0x4adc(%rip), %rsi      # 0x8155
xorl %eax, %eax
callq 0x2280
incq %r12
addq $0x8, %rbx
jmp 0x3655
movq 0x8(%rsp), %rcx
incq %rcx
jmp 0x3625
movq 0x40(%rsp), %rcx
incq %rcx
jmp 0x35f8
movq %r14, %rdi
callq 0x2160
movq 0x8929(%rip), %rdi      # 0xbfd8
leaq 0x4aa9(%rip), %rsi      # 0x815f
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0xf0(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x270(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x240(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x210(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x1e0(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x1b0(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x180(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x150(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x120(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x4995(%rip), %rdi      # 0x8164
leaq 0x48d9(%rip), %rsi      # 0x80af
callq 0x21b0
movq %rax, %r15
movq 0x18(%rsp), %r14
leaq 0x108(%r14), %rax
movq %rax, 0x8(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x48(%rsp)
leaq 0x48cb(%rip), %r13      # 0x80cb
leaq 0x20(%rsp), %rbp
movsd %xmm0, 0xa8(%rsp)
movsd %xmm0, 0xa0(%rsp)
movsd %xmm0, 0x98(%rsp)
movsd %xmm0, 0x88(%rsp)
movsd %xmm0, 0x80(%rsp)
movsd %xmm0, 0x78(%rsp)
movsd %xmm0, 0x70(%rsp)
xorl %ecx, %ecx
movq %r15, 0xc8(%rsp)
movq 0xe0(%r14), %rax
subq 0xd8(%r14), %rax
sarq $0x2, %rax
movq %rcx, 0x40(%rsp)
cmpq %rcx, %rax
jbe 0x3ea3
xorpd %xmm0, %xmm0
movapd %xmm0, 0xb0(%rsp)
andq $0x0, 0xc0(%rsp)
movapd %xmm0, 0xd0(%rsp)
andq $0x0, 0xe0(%rsp)
xorl %ebx, %ebx
movl 0x8b24(%rip), %eax      # 0xc3bc
cmpl %eax, %ebx
jge 0x38c0
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x2280
leaq 0xb0(%rsp), %rdi
movq %rbp, %rsi
callq 0x3252
incl %ebx
jmp 0x3892
xorl %ebx, %ebx
cmpl %eax, %ebx
jge 0x38f0
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x2280
leaq 0xd0(%rsp), %rdi
movq %rbp, %rsi
callq 0x3252
incl %ebx
movl 0x8ace(%rip), %eax      # 0xc3bc
jmp 0x38c2
movq 0xc0(%r14), %rax
movq 0x40(%rsp), %rdx
movslq (%rax,%rdx,4), %r13
movq 0xd8(%r14), %rax
movslq (%rax,%rdx,4), %rax
movl %eax, 0x14(%rsp)
movq 0xf0(%r14), %rcx
movl (%rcx,%rdx,4), %ecx
movl %ecx, 0x4(%rsp)
movq 0xb0(%rsp), %rcx
movl (%rcx,%rax,4), %eax
movq 0xd0(%rsp), %rcx
cmpl (%rcx,%r13,4), %eax
je 0x39b5
movq 0x869b(%rip), %rdi      # 0xbfd8
leaq 0x4843(%rip), %rsi      # 0x8187
callq 0x2150
movslq 0x14(%rsp), %rcx
movq 0xb0(%rsp), %rdx
movl (%rdx,%rcx,4), %esi
movq %rax, %rdi
callq 0x2240
movq %rax, %rdi
pushq $0x20
popq %rsi
callq 0x21a0
movq 0xd0(%rsp), %rcx
movl (%rcx,%r13,4), %esi
movq %rax, %rdi
callq 0x2240
movq %rax, %rdi
pushq $0x20
popq %rsi
callq 0x21a0
movq %rax, %rdi
movl %r13d, %esi
callq 0x2240
movq %rax, %rdi
pushq $0x20
popq %rsi
callq 0x21a0
movl 0x14(%rsp), %esi
movq %rax, %rdi
callq 0x2240
movq %rax, %rdi
callq 0x20a0
leaq 0x118(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x31b6
movl %r13d, %r13d
incl (%rax)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
xorl %r12d, %r12d
leaq 0x50(%rsp), %rbx
movslq 0x89d1(%rip), %rax      # 0xc3bc
cmpq %rax, %r12
jge 0x3a26
movl 0x14(%rsp), %edx
movq 0xb0(%rsp), %rax
movl (%rax,%r12,4), %ecx
movq %r14, %rdi
movl %r12d, %esi
callq 0x4ece
movl %r12d, 0x50(%rsp)
movsd %xmm0, 0x58(%rsp)
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x578c
incq %r12
jmp 0x39e4
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
leaq -0x116e(%rip), %rdx     # 0x28c9
callq 0x5921
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
subq %rax, %rcx
shrq $0x4, %rcx
movl %ecx, %r14d
decq %r14
xorl %r12d, %r12d
testl %r14d, %r14d
js 0x3c0e
movl %r14d, %r15d
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movq %r15, %rbx
shlq $0x4, %rbx
movl (%rax,%rbx), %eax
movl 0x4(%rsp), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, 0x50(%rsp)
movq 0x8(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x4a14
movq %rax, %rdi
leaq 0x14(%rsp), %rsi
callq 0x319c
cmpq $0x1, %rax
adcl $0x0, %r12d
movq 0x20(%rsp), %rax
decq %r14
cmpl %r13d, (%rax,%rbx)
jne 0x3a56
movq 0x28(%rsp), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
subq %r15, %rcx
movq %rcx, %xmm0
punpckldq 0x454f(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x4557(%rip), %xmm0     # 0x8030
movapd %xmm0, 0x60(%rsp)
leaq 0xe8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x5102
movq 0x18(%rsp), %rbx
movapd 0x60(%rsp), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd (%rax), %xmm0
movapd %xmm1, 0x60(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
leaq 0x268(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x5102
leal 0x1(%r12), %ecx
cvtsi2sd %ecx, %xmm1
movsd (%rax), %xmm0
movsd %xmm1, 0x90(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x28(%rsp), %rax
subq 0x20(%rsp), %rax
sarq $0x4, %rax
subq %r15, %rax
cmpq $0xa, %rax
ja 0x3b9d
leaq 0x1d8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x5102
movsd 0x88(%rsp), %xmm0
movsd 0x44dc(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0x88(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movsd 0x48(%rsp), %xmm0
addsd 0x60(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
movsd 0xa8(%rsp), %xmm0
addsd 0x90(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
cmpl $0x9, %r12d
ja 0x3c13
leaq 0x1a8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x5102
movsd 0x80(%rsp), %xmm0
movsd 0x446d(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0x80(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
jmp 0x3c13
movq 0x18(%rsp), %rbx
leaq 0x50(%rsp), %r15
movq 0x20(%rsp), %rax
cmpq %rax, 0x28(%rsp)
je 0x3c29
movq %rax, 0x28(%rsp)
xorl %r12d, %r12d
movslq 0x8789(%rip), %rax      # 0xc3bc
cmpq %rax, %r12
jge 0x3c6d
movq 0xd0(%rsp), %rax
movl (%rax,%r12,4), %ecx
movq %rbx, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x4ece
movl %r12d, 0x50(%rsp)
movsd %xmm0, 0x58(%rsp)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x578c
incq %r12
jmp 0x3c2c
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
leaq -0x13b5(%rip), %rdx     # 0x28c9
callq 0x5921
movq 0x28(%rsp), %rax
subq 0x20(%rsp), %rax
shrq $0x4, %rax
movl %eax, %ebx
decq %rbx
xorl %r12d, %r12d
testl %ebx, %ebx
js 0x3e60
movl 0x4(%rsp), %eax
shlq $0x20, %rax
orq %r13, %rax
movq %rax, 0x50(%rsp)
movq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x4a14
movl %ebx, %r14d
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movq %r14, %r15
shlq $0x4, %r15
movq 0x20(%rsp), %rsi
addq %r15, %rsi
movq %rax, %rdi
callq 0x319c
cmpq $0x1, %rax
adcl $0x0, %r12d
movq 0x20(%rsp), %rax
movl (%rax,%r15), %ecx
decq %rbx
cmpl 0x14(%rsp), %ecx
leaq 0x50(%rsp), %r15
jne 0x3c99
movq 0x28(%rsp), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
subq %r14, %rcx
movq %rcx, %xmm0
punpckldq 0x4306(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x430e(%rip), %xmm0     # 0x8030
movapd %xmm0, 0x60(%rsp)
leaq 0x238(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x5102
movq 0xc8(%rsp), %r15
leaq 0x4382(%rip), %r13      # 0x80cb
movapd 0x60(%rsp), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd (%rax), %xmm0
movapd %xmm1, 0x60(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
leaq 0x208(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x5102
leal 0x1(%r12), %ecx
cvtsi2sd %ecx, %xmm1
movsd (%rax), %xmm0
movsd %xmm1, 0x90(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x28(%rsp), %rax
subq 0x20(%rsp), %rax
sarq $0x4, %rax
subq %r14, %rax
cmpq $0xa, %rax
ja 0x3dea
leaq 0x178(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x5102
movsd 0x78(%rsp), %xmm0
movsd 0x428c(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0x78(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movsd 0xa0(%rsp), %xmm0
addsd 0x60(%rsp), %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd 0x98(%rsp), %xmm0
addsd 0x90(%rsp), %xmm0
movsd %xmm0, 0x98(%rsp)
cmpl $0x9, %r12d
ja 0x3e59
leaq 0x148(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x5102
movsd 0x70(%rsp), %xmm0
movsd 0x421d(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0x70(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x18(%rsp), %r14
jmp 0x3e74
movq 0x18(%rsp), %r14
movq 0xc8(%rsp), %r15
leaq 0x4257(%rip), %r13      # 0x80cb
movq %rbp, %rdi
callq 0x6304
leaq 0xd0(%rsp), %rdi
callq 0x4840
leaq 0xb0(%rsp), %rdi
callq 0x4840
movq 0x40(%rsp), %rcx
incq %rcx
jmp 0x3848
movq 0x812e(%rip), %rdi      # 0xbfd8
leaq 0x42dc(%rip), %rsi      # 0x818d
callq 0x2150
movq 0xe0(%r14), %rcx
subq 0xd8(%r14), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x414b(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x4153(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x48(%rsp), %xmm0
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x2210
pushq $0x9
popq %rsi
movq %rax, %rdi
callq 0x21a0
movq 0xe0(%r14), %rcx
subq 0xd8(%r14), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x40fb(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x4103(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x88(%rsp), %xmm0
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x2210
leaq 0x4128(%rip), %rsi      # 0x807d
movq %rax, %rdi
callq 0x2150
movq 0xe0(%r14), %rcx
subq 0xd8(%r14), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x40a4(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x40ac(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0xa8(%rsp), %xmm0
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x2210
pushq $0x9
popq %rsi
movq %rax, %rdi
callq 0x21a0
movq 0xe0(%r14), %rcx
subq 0xd8(%r14), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x4051(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x4059(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x80(%rsp), %xmm0
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x20a0
movq 0x7fd1(%rip), %rdi      # 0xbfd8
leaq 0x4185(%rip), %rsi      # 0x8193
callq 0x2150
movq 0xf8(%r14), %rcx
subq 0xf0(%r14), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x3fee(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3ff6(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0xa0(%rsp), %xmm0
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x2210
pushq $0x9
popq %rsi
movq %rax, %rdi
callq 0x21a0
movq 0xf8(%r14), %rcx
subq 0xf0(%r14), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x3f9b(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3fa3(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x78(%rsp), %xmm0
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x2210
pushq $0x9
popq %rsi
movq %rax, %rdi
callq 0x21a0
movq 0xf8(%r14), %rcx
subq 0xf0(%r14), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x3f4b(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3f53(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x98(%rsp), %xmm0
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x2210
pushq $0x9
popq %rsi
movq %rax, %rdi
callq 0x21a0
movq 0xf8(%r14), %rcx
subq 0xf0(%r14), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x3ef8(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3f00(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x70(%rsp), %xmm0
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x20a0
xorl %eax, %eax
leaq 0xb0(%rsp), %r14
movq 0x7e71(%rip), %r15      # 0xbfd8
pushq $0x9
popq %r13
leaq 0x148(%rsp), %r12
movl %eax, 0xb0(%rsp)
cmpl 0x8240(%rip), %eax      # 0xc3c0
jge 0x438e
leaq 0x118(%rsp), %rdi
movq %r14, %rsi
callq 0x31b6
movl (%rax), %ebp
movq %r15, %rdi
leaq 0x3ff8(%rip), %rsi      # 0x819a
callq 0x2150
movq %rax, %rbx
leaq 0x80b7(%rip), %rdi      # 0xc268
movq %r14, %rsi
callq 0x30e8
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2140
movq %rax, %rdi
pushq $0x20
popq %rsi
callq 0x21a0
movq %rax, %rdi
movl %ebp, %esi
callq 0x2240
movq %rax, %rdi
callq 0x20a0
movq %r15, %rdi
leaq 0x3fa2(%rip), %rsi      # 0x818d
callq 0x2150
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
movq %r14, %rsi
callq 0x5102
movsd (%rax), %xmm0
cvtsi2sd %ebp, %xmm1
movsd %xmm1, 0x8(%rsp)
divsd %xmm1, %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
movl %r13d, %esi
callq 0x21a0
movq %rax, %rbx
leaq 0x1d8(%rsp), %rdi
movq %r14, %rsi
callq 0x5102
movsd (%rax), %xmm0
divsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
leaq 0x3e26(%rip), %rsi      # 0x807d
callq 0x2150
movq %rax, %rbx
leaq 0x268(%rsp), %rdi
movq %r14, %rsi
callq 0x5102
movsd (%rax), %xmm0
divsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
movl %r13d, %esi
callq 0x21a0
movq %rax, %rbx
leaq 0x1a8(%rsp), %rdi
movq %r14, %rsi
callq 0x5102
movsd (%rax), %xmm0
divsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x20a0
movq %r15, %rdi
leaq 0x3ed0(%rip), %rsi      # 0x8193
callq 0x2150
movq %rax, %rbx
leaq 0x238(%rsp), %rdi
movq %r14, %rsi
callq 0x5102
movsd (%rax), %xmm0
divsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
movl %r13d, %esi
callq 0x21a0
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
movq %r14, %rsi
callq 0x5102
movsd (%rax), %xmm0
divsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
movl %r13d, %esi
callq 0x21a0
movq %rax, %rbx
leaq 0x208(%rsp), %rdi
movq %r14, %rsi
callq 0x5102
movsd (%rax), %xmm0
divsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
movl %r13d, %esi
callq 0x21a0
movq %rax, %rbx
movq %r12, %rdi
movq %r14, %rsi
callq 0x5102
movsd (%rax), %xmm0
divsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x20a0
movl 0xb0(%rsp), %eax
incl %eax
jmp 0x4173
leaq 0x118(%rsp), %rdi
callq 0x468e
leaq 0x148(%rsp), %rdi
callq 0x6322
leaq 0x178(%rsp), %rdi
callq 0x6322
leaq 0x1a8(%rsp), %rdi
callq 0x6322
leaq 0x1d8(%rsp), %rdi
callq 0x6322
leaq 0x208(%rsp), %rdi
callq 0x6322
leaq 0x238(%rsp), %rdi
callq 0x6322
leaq 0x268(%rsp), %rdi
callq 0x6322
leaq 0xe8(%rsp), %rdi
callq 0x6322
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x443c
jmp 0x442d
jmp 0x442d
jmp 0x4443
jmp 0x442d
jmp 0x442d
jmp 0x4443
jmp 0x442d
jmp 0x442d
jmp 0x442d
jmp 0x442d
jmp 0x442d
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x6304
jmp 0x4446
movq %rax, %rbx
jmp 0x4460
jmp 0x4443
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x4840
leaq 0xb0(%rsp), %rdi
callq 0x4840
leaq 0x118(%rsp), %rdi
callq 0x468e
leaq 0x148(%rsp), %rdi
callq 0x6322
leaq 0x178(%rsp), %rdi
callq 0x6322
leaq 0x1a8(%rsp), %rdi
callq 0x6322
leaq 0x1d8(%rsp), %rdi
callq 0x6322
leaq 0x208(%rsp), %rdi
callq 0x6322
leaq 0x238(%rsp), %rdi
callq 0x6322
leaq 0x268(%rsp), %rdi
callq 0x6322
leaq 0xe8(%rsp), %rdi
callq 0x6322
movq %rbx, %rdi
callq 0x2250