// File: /workspace/github_cpp_makefile_star2_O1/thunlp[P]KB2E/TransR/Test_TransR.cpp
// Function: Test::run()
void run()
    {
        FILE* f1 = fopen(("relation2vec."+version).c_str(),"r");
        FILE* f3 = fopen(("entity2vec."+version).c_str(),"r");
        FILE* f5 = fopen(("A."+version).c_str(),"r");
        int relation_num_fb=relation_num;
        relation_vec.resize(relation_num_fb);
        for (int i=0; i<relation_num_fb;i++)
        {
            relation_vec[i].resize(m);
            for (int ii=0; ii<m; ii++)
                fscanf(f1,"%lf",&relation_vec[i][ii]);
        }
        entity_vec.resize(entity_num);
        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]);
        }
        A.resize(relation_num);
        for (int i=0; i<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(f5,"%lf",&A[i][jj][ii]);
		    }
		}
        fclose(f1);
        fclose(f3);
        fclose(f5);
		double lsum=0 ,lsum_filter= 0;
		double rsum = 0,rsum_filter=0;
		double lp_n=0,lp_n_filter;
		double rp_n=0,rp_n_filter;
		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;

        for (int testid = 0; testid<fb_l.size(); testid+=1)
		{
			int h = fb_h[testid];
			int l = fb_l[testid];
			int rel = fb_r[testid];
			double tmp = calc_sum(h,l,rel);
			//if (rel!=1096)
			//	continue;
			rel_num[rel]+=1;
			//cout<<mid2name[id2entity[h]]<<' '<<mid2name[id2entity[l]]<<' '<<entity2num[rel][h]<<'/'<<e2num[h]<<' '<<entity2num[rel][l]<<'/'<<e2num[l]<<endl;
			vector<pair<int,double> > a;
			for (int i=0; i<entity_num; i++)
			{
				double sum = calc_sum(i,l,rel);
				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)
					ttt++;
			    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,rel);
				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)
					ttt++;
			    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;
				}
			}
		//	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<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 $0x268, %rsp            # imm = 0x268
movq %rdi, 0x8(%rsp)
leaq 0x47ae(%rip), %rsi      # 0x8125
leaq 0x880a(%rip), %rdx      # 0xc188
leaq 0xb8(%rsp), %rbx
movq %rbx, %rdi
callq 0x5520
movq (%rbx), %rdi
leaq 0x470a(%rip), %rsi      # 0x80a2
callq 0x21c0
movq %rax, %r15
movq (%rbx), %rdi
leaq 0xc8(%rsp), %r14
cmpq %r14, %rdi
je 0x39c0
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x476c(%rip), %rsi      # 0x8133
leaq 0x87ba(%rip), %rdx      # 0xc188
leaq 0xb8(%rsp), %rbx
movq %rbx, %rdi
callq 0x5520
movq (%rbx), %rdi
leaq 0x46ba(%rip), %rsi      # 0x80a2
callq 0x21c0
movq %rax, %r12
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x3a08
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r15, 0x58(%rsp)
leaq 0x472b(%rip), %rsi      # 0x813f
leaq 0x876d(%rip), %rdx      # 0xc188
leaq 0xb8(%rsp), %rbx
movq %rbx, %rdi
callq 0x5520
movq (%rbx), %rdi
leaq 0x466d(%rip), %rsi      # 0x80a2
callq 0x21c0
movq %rax, 0x70(%rsp)
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x3a57
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r12, 0x50(%rsp)
movslq 0x8945(%rip), %rbx      # 0xc3a8
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x55a8
movq %rbx, 0x60(%rsp)
testq %rbx, %rbx
jle 0x3af7
leaq 0x46c1(%rip), %rbp      # 0x8142
xorl %eax, %eax
movq 0x8(%rsp), %r13
movq 0x58(%rsp), %rbx
movq %rax, 0x30(%rsp)
leaq (%rax,%rax,2), %r14
leaq (,%r14,8), %rdi
addq (%r13), %rdi
movslq 0x86af(%rip), %rsi      # 0xc158
callq 0x55e4
cmpl $0x0, 0x86a3(%rip)      # 0xc158
jle 0x3ae8
xorl %r15d, %r15d
xorl %r12d, %r12d
movq (%r13), %rax
movq (%rax,%r14,8), %rdx
addq %r15, %rdx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x2280
incq %r12
movslq 0x8679(%rip), %rax      # 0xc158
addq $0x8, %r15
cmpq %rax, %r12
jl 0x3abd
movq 0x30(%rsp), %rax
incq %rax
cmpq 0x60(%rsp), %rax
jne 0x3a8d
movq 0x8(%rsp), %rax
leaq 0x18(%rax), %r13
movslq 0x88a5(%rip), %rsi      # 0xc3ac
movq %r13, %rdi
callq 0x55a8
cmpl $0x0, 0x8896(%rip)      # 0xc3ac
jle 0x3b95
leaq 0x4623(%rip), %rbp      # 0x8142
xorl %ecx, %ecx
movq 0x50(%rsp), %rbx
movq %rcx, 0x30(%rsp)
leaq (%rcx,%rcx,2), %r14
leaq (,%r14,8), %rdi
addq (%r13), %rdi
movslq 0x861a(%rip), %rsi      # 0xc15c
callq 0x55e4
cmpl $0x0, 0x860e(%rip)      # 0xc15c
jle 0x3b81
xorl %r15d, %r15d
xorl %r12d, %r12d
movq (%r13), %rax
movq (%rax,%r14,8), %rdx
addq %r15, %rdx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x2280
incq %r12
movslq 0x85e4(%rip), %rax      # 0xc15c
addq $0x8, %r15
cmpq %rax, %r12
jl 0x3b56
movq 0x30(%rsp), %rcx
incq %rcx
movslq 0x881c(%rip), %rax      # 0xc3ac
cmpq %rax, %rcx
jl 0x3b26
movq 0x8(%rsp), %rax
leaq 0xd8(%rax), %rbx
movslq 0x8800(%rip), %rsi      # 0xc3a8
movq %rbx, %rdi
callq 0x5616
cmpl $0x0, 0x87f1(%rip)      # 0xc3a8
jle 0x3c99
xorl %ecx, %ecx
movq %rbx, 0x30(%rsp)
movq 0x70(%rsp), %r15
movq %rcx, 0x68(%rsp)
leaq (%rcx,%rcx,2), %r14
leaq (,%r14,8), %rdi
addq (%rbx), %rdi
movslq 0x8578(%rip), %rsi      # 0xc15c
callq 0x55a8
cmpl $0x0, 0x856c(%rip)      # 0xc15c
jle 0x3c81
xorl %ecx, %ecx
movq (%rbx), %rax
movq %rcx, 0x60(%rsp)
leaq (%rcx,%rcx,2), %rbx
leaq (,%rbx,8), %rdi
addq (%rax,%r14,8), %rdi
movslq 0x8541(%rip), %rsi      # 0xc158
callq 0x55e4
cmpl $0x0, 0x8535(%rip)      # 0xc158
leaq 0x4518(%rip), %r13      # 0x8142
jle 0x3c64
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%rbx,8), %rdx
addq %r12, %rdx
movq %r15, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x2280
incq %rbp
movslq 0x84fd(%rip), %rax      # 0xc158
addq $0x8, %r12
cmpq %rax, %rbp
jl 0x3c31
movq 0x60(%rsp), %rcx
incq %rcx
movslq 0x84e9(%rip), %rax      # 0xc15c
cmpq %rax, %rcx
movq 0x30(%rsp), %rbx
jl 0x3bf8
movq 0x68(%rsp), %rcx
incq %rcx
movslq 0x8718(%rip), %rax      # 0xc3a8
cmpq %rax, %rcx
jl 0x3bc9
movq 0x58(%rsp), %rdi
callq 0x2170
movq 0x50(%rsp), %rdi
callq 0x2170
movq 0x70(%rsp), %rdi
callq 0x2170
leaq 0xc0(%rsp), %rcx
xorl %eax, %eax
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x240(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x210(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x1e0(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x1b0(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x180(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x150(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x120(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0xf0(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
movq 0x8(%rsp), %r14
movq 0x90(%r14), %rax
cmpq %rax, 0x98(%r14)
je 0x4437
leaq 0xf0(%r14), %r15
xorps %xmm0, %xmm0
movsd %xmm0, 0x80(%rsp)
xorl %ebx, %ebx
xorpd %xmm0, %xmm0
movsd %xmm0, 0x88(%rsp)
movsd %xmm0, 0x90(%rsp)
movsd %xmm0, 0x98(%rsp)
movsd %xmm0, 0x50(%rsp)
movsd %xmm0, 0x58(%rsp)
movq %r15, 0x60(%rsp)
movq 0x78(%r14), %rcx
movl (%rcx,%rbx,4), %esi
movl (%rax,%rbx,4), %r12d
movq 0xa8(%r14), %rax
movq %rbx, 0x68(%rsp)
movl (%rax,%rbx,4), %ecx
movl %ecx, 0x4(%rsp)
movq %r14, %rdi
movq %rsi, 0x30(%rsp)
movl %r12d, %edx
callq 0x5692
leaq 0xe8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x38f6
incl (%rax)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
cmpl $0x0, 0x854f(%rip)      # 0xc3ac
leaq 0x40(%rsp), %r15
jle 0x3ebb
xorl %r13d, %r13d
movl 0x4(%rsp), %ecx
movq %r14, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x5692
movl %r13d, 0x40(%rsp)
movsd %xmm0, 0x48(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x3ea2
movupd 0x40(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x18(%rsp)
jmp 0x3eaf
leaq 0x10(%rsp), %rdi
movq %r15, %rdx
callq 0x5e56
incl %r13d
cmpl 0x84f3(%rip), %r13d     # 0xc3ac
jl 0x3e67
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rbx
cmpq %rbx, %r13
je 0x3f05
movq %rbx, %rax
subq %r13, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r13, %rdi
movq %rbx, %rsi
leaq -0x1606(%rip), %rcx     # 0x28e8
callq 0x5f95
movq %r13, %rdi
movq %rbx, %rsi
leaq -0x1618(%rip), %rdx     # 0x28e8
callq 0x6060
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
shrq $0x4, %rax
movl %eax, %r13d
xorl %ebx, %ebx
decq %r13
testl %r13d, %r13d
js 0x4131
movq %rbx, 0x70(%rsp)
movl %r13d, %r14d
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movq 0x10(%rsp), %rax
movq %r14, %rbp
shlq $0x4, %rbp
movl (%rax,%rbp), %eax
movl 0x4(%rsp), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, 0x40(%rsp)
movq 0x60(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x508a
movq 0x10(%rsp), %rax
movl (%rax,%rbp), %eax
movl 0x4(%rsp), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, 0x40(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x508a
movq 0x10(%rax), %rdx
addq $0x8, %rax
movq %rax, %rcx
testq %rdx, %rdx
je 0x3fb0
movq %rax, %rcx
xorl %esi, %esi
cmpl %r12d, 0x20(%rdx)
setl %sil
cmovgeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x3f98
movq %rax, %rdx
cmpq %rax, %rcx
movq 0x70(%rsp), %rbx
je 0x3fc8
cmpl 0x20(%rcx), %r12d
cmovlq %rax, %rcx
movq %rcx, %rdx
xorl %ecx, %ecx
cmpq %rax, %rdx
sete %cl
addl %ecx, %ebx
movq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpl %ecx, (%rax,%rbp)
jne 0x3f18
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
subq %r14, %rcx
movq %rcx, %xmm0
punpckldq 0x401f(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x4027(%rip), %xmm0     # 0x8030
movapd %xmm0, 0x70(%rsp)
leaq 0xb8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x58b8
movapd 0x70(%rsp), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd (%rax), %xmm0
movapd %xmm1, 0x70(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
leaq 0x238(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x58b8
leal 0x1(%rbx), %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
movsd (%rax), %xmm0
movsd %xmm1, 0xb0(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x4, %rax
subq %r14, %rax
cmpq $0xa, %rax
ja 0x40c9
leaq 0x1a8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x58b8
movsd 0x88(%rsp), %xmm0
movsd 0x3fb0(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0x88(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movsd 0x58(%rsp), %xmm0
addsd 0x70(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
movsd 0x50(%rsp), %xmm0
addsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
cmpl $0x9, %ebx
ja 0x4131
leaq 0x178(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x58b8
movsd 0xa8(%rsp), %xmm0
movsd 0x3f48(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0xa8(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x8(%rsp), %rbx
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x4147
movq %rax, 0x18(%rsp)
cmpl $0x0, 0x825e(%rip)      # 0xc3ac
jle 0x41a9
xorl %r13d, %r13d
movl 0x4(%rsp), %ecx
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movl %r13d, %edx
callq 0x5692
movl %r13d, 0x40(%rsp)
movsd %xmm0, 0x48(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x4190
movupd 0x40(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x18(%rsp)
jmp 0x419d
leaq 0x10(%rsp), %rdi
movq %r15, %rdx
callq 0x5e56
incl %r13d
cmpl 0x8205(%rip), %r13d     # 0xc3ac
jl 0x4153
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r13
cmpq %r13, %rbx
je 0x41f3
movq %r13, %rax
subq %rbx, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rbx, %rdi
movq %r13, %rsi
leaq -0x18f4(%rip), %rcx     # 0x28e8
callq 0x5f95
movq %rbx, %rdi
movq %r13, %rsi
leaq -0x1906(%rip), %rdx     # 0x28e8
callq 0x6060
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
shrq $0x4, %rax
movl %eax, %r14d
decq %r14
xorl %ebx, %ebx
testl %r14d, %r14d
js 0x43f3
movl 0x4(%rsp), %eax
shlq $0x20, %rax
addq 0x30(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x60(%rsp), %rdi
movq %r15, %rsi
callq 0x508a
movl %r14d, %r13d
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq %r13, %rbp
shlq $0x4, %rbp
movq 0x10(%rsp), %rsi
addq %rbp, %rsi
movq %rax, %rdi
callq 0x586e
movl 0x4(%rsp), %eax
shlq $0x20, %rax
addq 0x30(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x60(%rsp), %rdi
movq %r15, %rsi
callq 0x508a
movq 0x10(%rsp), %rsi
addq %rbp, %rsi
movq %rax, %rdi
callq 0x586e
cmpq $0x1, %rax
adcl $0x0, %ebx
movq 0x10(%rsp), %rax
decq %r14
cmpl %r12d, (%rax,%rbp)
jne 0x4209
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
subq %r13, %rcx
movq %rcx, %xmm0
punpckldq 0x3d6a(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3d72(%rip), %xmm0     # 0x8030
movapd %xmm0, 0x30(%rsp)
leaq 0x208(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x58b8
movq 0x8(%rsp), %r14
movapd 0x30(%rsp), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd (%rax), %xmm0
movapd %xmm1, 0x30(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
leaq 0x1d8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x58b8
leal 0x1(%rbx), %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
movsd (%rax), %xmm0
movsd %xmm1, 0x70(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x4, %rax
subq %r13, %rax
cmpq $0xa, %rax
ja 0x4380
leaq 0x148(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x58b8
movsd 0x80(%rsp), %xmm0
movsd 0x3cf9(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0x80(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movsd 0x98(%rsp), %xmm0
addsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x98(%rsp)
movsd 0x90(%rsp), %xmm0
addsd 0x70(%rsp), %xmm0
movsd %xmm0, 0x90(%rsp)
cmpl $0x9, %ebx
ja 0x43f8
leaq 0x118(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x58b8
movsd 0xa0(%rsp), %xmm0
movsd 0x3c88(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
jmp 0x43f8
movq 0x8(%rsp), %r14
movq 0x68(%rsp), %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4414
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
incq %rbx
movq 0x90(%r14), %rax
movq 0x98(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rbx, %rcx
ja 0x3e01
jmp 0x446d
xorps %xmm0, %xmm0
movsd %xmm0, 0x58(%rsp)
movsd %xmm0, 0x50(%rsp)
movsd %xmm0, 0x98(%rsp)
movsd %xmm0, 0x90(%rsp)
movsd %xmm0, 0x88(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x80(%rsp)
movq 0x7b64(%rip), %rdi      # 0xbfd8
leaq 0x3ccb(%rip), %rsi      # 0x8146
movl $0x5, %edx
callq 0x21b0
movq 0x8(%rsp), %rcx
movq 0x98(%rcx), %rax
subq 0x90(%rcx), %rax
sarq $0x2, %rax
movq %rax, %xmm0
punpckldq 0x3b77(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3b7f(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x58(%rsp), %xmm0
divsd %xmm1, %xmm0
movq 0x7b0a(%rip), %rdi      # 0xbfd8
callq 0x2210
leaq 0x10(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0x8(%rsp), %rdx
movq 0x98(%rdx), %rcx
subq 0x90(%rdx), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x3b14(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3b1c(%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
movq %rax, %r14
leaq 0x3b31(%rip), %rsi      # 0x8070
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0x8(%rsp), %rcx
movq 0x98(%rcx), %rax
subq 0x90(%rcx), %rax
sarq $0x2, %rax
movq %rax, %xmm0
punpckldq 0x3ab0(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3ab8(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x50(%rsp), %xmm0
divsd %xmm1, %xmm0
movq %r14, %rdi
callq 0x2210
leaq 0x10(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0x8(%rsp), %rdx
movq 0x98(%rdx), %rcx
subq 0x90(%rdx), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x3a51(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3a59(%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
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq 0x79af(%rip), %rdi      # 0xbfd8
leaq 0x3b1c(%rip), %rsi      # 0x814c
movl $0x6, %edx
callq 0x21b0
movq 0x8(%rsp), %rcx
movq 0xb0(%rcx), %rax
subq 0xa8(%rcx), %rax
sarq $0x2, %rax
movq %rax, %xmm0
punpckldq 0x39c2(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x39ca(%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 0x7952(%rip), %rdi      # 0xbfd8
callq 0x2210
leaq 0x10(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0x8(%rsp), %rdx
movq 0xb0(%rdx), %rcx
subq 0xa8(%rdx), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x395c(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3964(%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
leaq 0x10(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0x8(%rsp), %rdx
movq 0xb0(%rdx), %rcx
subq 0xa8(%rdx), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x38fa(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3902(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x90(%rsp), %xmm0
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x2210
leaq 0x10(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0x8(%rsp), %rdx
movq 0xb0(%rdx), %rcx
subq 0xa8(%rdx), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x3898(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x38a0(%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
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movl $0x0, 0x10(%rsp)
cmpl $0x0, 0x7bbe(%rip)      # 0xc3a8
jle 0x4acd
leaq 0x10(%rsp), %r14
movq 0x77dc(%rip), %r15      # 0xbfd8
leaq 0x40(%rsp), %rbp
leaq 0x118(%rsp), %r12
leaq 0xe8(%rsp), %rdi
movq %r14, %rsi
callq 0x38f6
movl (%rax), %r13d
movl $0x4, %edx
movq %r15, %rdi
leaq 0x3928(%rip), %rsi      # 0x8153
callq 0x21b0
leaq 0x7a21(%rip), %rdi      # 0xc258
movq %r14, %rsi
callq 0x36be
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x21b0
movb $0x20, 0x40(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b0
movq %rax, %rdi
movl %r13d, %esi
callq 0x2240
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movl $0x5, %edx
movq %r15, %rdi
leaq 0x389f(%rip), %rsi      # 0x8146
callq 0x21b0
leaq 0xb8(%rsp), %rdi
movq %r14, %rsi
callq 0x58b8
movsd (%rax), %xmm0
cvtsi2sd %r13d, %xmm1
movsd %xmm1, 0x30(%rsp)
divsd %xmm1, %xmm0
movq %r15, %rdi
callq 0x2210
movb $0x9, 0x40(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b0
movq %rax, %rbx
leaq 0x1a8(%rsp), %rdi
movq %r14, %rsi
callq 0x58b8
movsd (%rax), %xmm0
divsd 0x30(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x374d(%rip), %rsi      # 0x8070
callq 0x21b0
leaq 0x238(%rsp), %rdi
movq %r14, %rsi
callq 0x58b8
movsd (%rax), %xmm0
divsd 0x30(%rsp), %xmm0
movq %r13, %rdi
callq 0x2210
movb $0x9, 0x40(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b0
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
movq %r14, %rsi
callq 0x58b8
movsd (%rax), %xmm0
divsd 0x30(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movl $0x6, %edx
movq %r15, %rdi
leaq 0x378f(%rip), %rsi      # 0x814c
callq 0x21b0
leaq 0x208(%rsp), %rdi
movq %r14, %rsi
callq 0x58b8
movsd (%rax), %xmm0
divsd 0x30(%rsp), %xmm0
movq %r15, %rdi
callq 0x2210
movb $0x9, 0x40(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b0
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
movq %r14, %rsi
callq 0x58b8
movsd (%rax), %xmm0
divsd 0x30(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movb $0x9, 0x40(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b0
movq %rax, %rbx
leaq 0x1d8(%rsp), %rdi
movq %r14, %rsi
callq 0x58b8
movsd (%rax), %xmm0
divsd 0x30(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movb $0x9, 0x40(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b0
movq %rax, %rbx
movq %r12, %rdi
movq %r14, %rsi
callq 0x58b8
movsd (%rax), %xmm0
divsd 0x30(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movl 0x10(%rsp), %eax
incl %eax
movl %eax, 0x10(%rsp)
cmpl 0x78e1(%rip), %eax      # 0xc3a8
jl 0x4809
leaq 0xe8(%rsp), %rdi
callq 0x4df0
leaq 0x118(%rsp), %rdi
callq 0x68aa
leaq 0x148(%rsp), %rdi
callq 0x68aa
leaq 0x178(%rsp), %rdi
callq 0x68aa
leaq 0x1a8(%rsp), %rdi
callq 0x68aa
leaq 0x1d8(%rsp), %rdi
callq 0x68aa
leaq 0x208(%rsp), %rdi
callq 0x68aa
leaq 0x238(%rsp), %rdi
callq 0x68aa
leaq 0xb8(%rsp), %rdi
callq 0x68aa
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4b8a
jmp 0x4b6e
jmp 0x4b6e
jmp 0x4b6e
jmp 0x4b6e
jmp 0x4b8a
jmp 0x4b6e
jmp 0x4b6e
jmp 0x4b6e
jmp 0x4b6e
jmp 0x4b6e
jmp 0x4b6e
jmp 0x4b6e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4b8d
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
jmp 0x4b8d
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x4df0
leaq 0x118(%rsp), %rdi
callq 0x68aa
leaq 0x148(%rsp), %rdi
callq 0x68aa
leaq 0x178(%rsp), %rdi
callq 0x68aa
leaq 0x1a8(%rsp), %rdi
callq 0x68aa
leaq 0x1d8(%rsp), %rdi
callq 0x68aa
leaq 0x208(%rsp), %rdi
callq 0x68aa
leaq 0x238(%rsp), %rdi
callq 0x68aa
leaq 0xb8(%rsp), %rdi
callq 0x68aa
movq %rbx, %rdi
callq 0x2250