// File: /workspace/github_cpp_makefile_star2_O3/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 $0x278, %rsp            # imm = 0x278
movq %rdi, %r15
leaq 0x47aa(%rip), %rsi      # 0x8125
leaq 0x8806(%rip), %rdx      # 0xc188
leaq 0xc8(%rsp), %rbx
movq %rbx, %rdi
callq 0x554c
movq (%rbx), %rdi
leaq 0x4706(%rip), %rsi      # 0x80a2
callq 0x21c0
movq %rax, 0x58(%rsp)
movq (%rbx), %rdi
leaq 0xd8(%rsp), %r14
cmpq %r14, %rdi
je 0x39c6
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x4766(%rip), %rsi      # 0x8133
leaq 0x87b4(%rip), %rdx      # 0xc188
leaq 0xc8(%rsp), %rbx
movq %rbx, %rdi
callq 0x554c
movq (%rbx), %rdi
leaq 0x46b4(%rip), %rsi      # 0x80a2
callq 0x21c0
movq %rax, %r12
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x3a0e
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r15, 0x50(%rsp)
leaq 0x4725(%rip), %rsi      # 0x813f
leaq 0x8767(%rip), %rdx      # 0xc188
leaq 0xc8(%rsp), %rbx
movq %rbx, %rdi
callq 0x554c
movq (%rbx), %rdi
leaq 0x4667(%rip), %rsi      # 0x80a2
callq 0x21c0
movq %rax, %r15
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x3a5b
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2190
movslq 0x8946(%rip), %rbx      # 0xc3a8
movq 0x50(%rsp), %rdi
movq %rbx, %rsi
callq 0x55d4
movq %rbx, 0x68(%rsp)
testq %rbx, %rbx
movq %r12, 0x60(%rsp)
movq %r15, 0x70(%rsp)
jle 0x3b0b
movl 0x86cb(%rip), %eax      # 0xc158
leaq 0x46ae(%rip), %rbp      # 0x8142
xorl %ebx, %ebx
movq 0x50(%rsp), %r13
leaq (%rbx,%rbx,2), %r14
leaq (,%r14,8), %rdi
movq 0x50(%rsp), %rcx
addq (%rcx), %rdi
movslq %eax, %rsi
callq 0x5610
movl 0x869b(%rip), %eax      # 0xc158
testl %eax, %eax
jle 0x3b01
movq %rbx, 0x40(%rsp)
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x58(%rsp), %rbx
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 0x8665(%rip), %rax      # 0xc158
addq $0x8, %r15
cmpq %rax, %r12
jl 0x3ad1
movq 0x40(%rsp), %rbx
incq %rbx
cmpq 0x68(%rsp), %rbx
jne 0x3a9b
movq 0x50(%rsp), %rax
leaq 0x18(%rax), %r13
movslq 0x8891(%rip), %rsi      # 0xc3ac
movq %r13, %rdi
callq 0x55d4
cmpl $0x0, 0x8882(%rip)      # 0xc3ac
jle 0x3bb0
movl 0x8626(%rip), %eax      # 0xc15c
leaq 0x4605(%rip), %rbp      # 0x8142
xorl %ebx, %ebx
leaq (%rbx,%rbx,2), %r14
leaq (,%r14,8), %rdi
addq (%r13), %rdi
movslq %eax, %rsi
callq 0x5610
movl 0x85ff(%rip), %eax      # 0xc15c
testl %eax, %eax
jle 0x3ba1
movq %rbx, 0x40(%rsp)
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x60(%rsp), %rbx
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 0x85c9(%rip), %rax      # 0xc15c
addq $0x8, %r15
cmpq %rax, %r12
jl 0x3b71
movq 0x40(%rsp), %rbx
incq %rbx
movslq 0x8801(%rip), %rcx      # 0xc3ac
cmpq %rcx, %rbx
jl 0x3b3f
movq 0x50(%rsp), %rax
leaq 0xd8(%rax), %r15
movslq 0x87e5(%rip), %rsi      # 0xc3a8
movq %r15, %rdi
callq 0x5642
cmpl $0x0, 0x87d6(%rip)      # 0xc3a8
movq 0x58(%rsp), %rbx
jle 0x3cd1
movl 0x8579(%rip), %ecx      # 0xc15c
leaq 0x4558(%rip), %r13      # 0x8142
xorl %edx, %edx
movq %rdx, 0x98(%rsp)
leaq (%rdx,%rdx,2), %r14
leaq (,%r14,8), %rdi
addq (%r15), %rdi
movslq %ecx, %rsi
callq 0x55d4
movl 0x854b(%rip), %ecx      # 0xc15c
testl %ecx, %ecx
jle 0x3cb6
movl 0x8539(%rip), %eax      # 0xc158
xorl %ebx, %ebx
movq (%r15), %rcx
leaq (%rbx,%rbx,2), %r12
leaq (,%r12,8), %rdi
addq (%rcx,%r14,8), %rdi
movslq %eax, %rsi
callq 0x5610
movl 0x8516(%rip), %eax      # 0xc158
testl %eax, %eax
jle 0x3c9e
movq %rbx, 0x68(%rsp)
movq %r12, 0x40(%rsp)
xorl %r12d, %r12d
xorl %ebp, %ebp
movq %r14, %rbx
movq %r15, %r14
movq 0x70(%rsp), %r15
movq (%r14), %rax
movq (%rax,%rbx,8), %rax
movq 0x40(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
addq %r12, %rdx
movq %r15, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x2280
incq %rbp
movslq 0x84ce(%rip), %rax      # 0xc158
addq $0x8, %r12
cmpq %rax, %rbp
jl 0x3c60
movq %r14, %r15
movq %rbx, %r14
movq 0x68(%rsp), %rbx
incq %rbx
movslq 0x84b4(%rip), %rcx      # 0xc15c
cmpq %rcx, %rbx
jl 0x3c21
movq 0x58(%rsp), %rbx
movq 0x98(%rsp), %rdx
incq %rdx
movslq 0x86e0(%rip), %rax      # 0xc3a8
cmpq %rax, %rdx
jl 0x3bec
movq %rbx, %rdi
callq 0x2170
movq 0x60(%rsp), %rdi
callq 0x2170
movq 0x70(%rsp), %rdi
callq 0x2170
leaq 0xd0(%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 0x250(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x220(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x1f0(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x1c0(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x190(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x160(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x130(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x100(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
movq 0x50(%rsp), %r15
movq 0x90(%r15), %rax
cmpq %rax, 0x98(%r15)
je 0x44a5
leaq 0xf0(%r15), %rcx
movq %rcx, 0x68(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x78(%rsp)
xorl %ebp, %ebp
leaq 0xc(%rsp), %r13
xorpd %xmm0, %xmm0
movsd %xmm0, 0x80(%rsp)
movsd %xmm0, 0x88(%rsp)
movsd %xmm0, 0x90(%rsp)
movsd %xmm0, 0x60(%rsp)
movsd %xmm0, 0x58(%rsp)
movq 0x78(%r15), %rcx
movl (%rcx,%rbp,4), %esi
movl (%rax,%rbp,4), %r12d
movq 0xa8(%r15), %rax
movl (%rax,%rbp,4), %ecx
movl %ecx, 0xc(%rsp)
movq %r15, %rdi
movq %rsi, 0x40(%rsp)
movl %r12d, %edx
callq 0x56be
leaq 0xf8(%rsp), %rdi
movq %r13, %rsi
callq 0x38fa
incl (%rax)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
cmpl $0x0, 0x851e(%rip)      # 0xc3ac
movq %rbp, 0x98(%rsp)
jle 0x3f45
xorl %ebx, %ebx
movl 0xc(%rsp), %ecx
movq %r15, %rdi
movl %ebx, %esi
movl %r12d, %edx
callq 0x56be
movl %ebx, 0x30(%rsp)
movsd %xmm0, 0x38(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x3ed7
movupd 0x30(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x18(%rsp)
jmp 0x3ee6
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x5e92
incl %ebx
cmpl 0x84be(%rip), %ebx      # 0xc3ac
jl 0x3e9e
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rbx
cmpq %rbx, %r13
je 0x3f4a
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 -0x163b(%rip), %r14     # 0x28e8
movq %r14, %rcx
callq 0x5fd1
movq %r13, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x609c
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rbx
jmp 0x3f4a
xorl %r13d, %r13d
xorl %ebx, %ebx
subq %r13, %rbx
shrq $0x4, %rbx
movl %ebx, %ebp
xorl %ebx, %ebx
movl %r12d, 0x70(%rsp)
decq %rbp
testl %ebp, %ebp
js 0x4188
movq %rbx, %r12
movl %ebp, %r15d
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movq %r15, %r14
shlq $0x4, %r14
movl (%r13,%r14), %eax
movl 0xc(%rsp), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, 0x30(%rsp)
movq 0x68(%rsp), %r13
movq %r13, %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
callq 0x50dc
movq 0x10(%rsp), %rax
movl (%rax,%r14), %eax
movl 0xc(%rsp), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, 0x30(%rsp)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x50dc
movq 0x10(%rax), %rdx
addq $0x8, %rax
movq %rax, %rsi
testq %rdx, %rdx
movq %r12, %rbx
movl 0x70(%rsp), %r12d
je 0x400d
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 0x3fe2
movq %rax, %rsi
cmpq %rax, %rcx
je 0x400d
cmpl 0x20(%rcx), %r12d
cmovlq %rax, %rcx
movq %rcx, %rsi
xorl %ecx, %ecx
cmpq %rax, %rsi
sete %cl
addl %ecx, %ebx
movq 0x10(%rsp), %r13
movq 0x40(%rsp), %rax
cmpl %eax, (%r13,%r14)
jne 0x3f5a
movq 0x18(%rsp), %rax
subq %r13, %rax
sarq $0x4, %rax
subq %r15, %rax
movq %rax, %xmm0
punpckldq 0x3fd8(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3fe0(%rip), %xmm0     # 0x8030
movapd %xmm0, 0xb0(%rsp)
leaq 0xc8(%rsp), %rdi
leaq 0xc(%rsp), %r14
movq %r14, %rsi
callq 0x58de
movq 0x68(%rsp), %rbp
movapd 0xb0(%rsp), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd (%rax), %xmm0
movapd %xmm1, 0xb0(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
leaq 0x248(%rsp), %rdi
movq %r14, %rsi
callq 0x58de
leal 0x1(%rbx), %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
movsd (%rax), %xmm0
movsd %xmm1, 0xc0(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x4, %rax
subq %r15, %rax
cmpq $0xa, %rax
ja 0x411d
leaq 0x1b8(%rsp), %rdi
movq %r14, %rsi
callq 0x58de
movsd 0x80(%rsp), %xmm0
movsd 0x3f5c(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0x80(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movsd 0x58(%rsp), %xmm0
addsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
movsd 0x60(%rsp), %xmm0
addsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0x60(%rsp)
cmpl $0x9, %ebx
ja 0x418d
leaq 0x188(%rsp), %rdi
movq %r14, %rsi
callq 0x58de
movsd 0xa8(%rsp), %xmm0
movsd 0x3ef3(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0xa8(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
jmp 0x418d
movq 0x68(%rsp), %rbp
leaq 0x30(%rsp), %r15
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r13
cmpq %rbx, %r13
je 0x41a9
movq %rbx, 0x18(%rsp)
movq %rbx, %r13
cmpl $0x0, 0x81fc(%rip)      # 0xc3ac
jle 0x4215
xorl %ebx, %ebx
movq 0x50(%rsp), %r14
movl 0xc(%rsp), %ecx
movq %r14, %rdi
movq 0x40(%rsp), %rsi
movl %ebx, %edx
callq 0x56be
movl %ebx, 0x30(%rsp)
movsd %xmm0, 0x38(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x41f4
movupd 0x30(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x18(%rsp)
jmp 0x4201
leaq 0x10(%rsp), %rdi
movq %r15, %rdx
callq 0x5e92
incl %ebx
cmpl 0x81a3(%rip), %ebx      # 0xc3ac
jl 0x41b9
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r13
movq %r13, %rax
cmpq %r13, %rbx
je 0x425e
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 -0x1956(%rip), %r14     # 0x28e8
movq %r14, %rcx
callq 0x5fd1
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x609c
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rax
subq %r13, %rax
shrq $0x4, %rax
movl %eax, %r13d
decq %r13
xorl %ebx, %ebx
testl %r13d, %r13d
js 0x4459
movl 0xc(%rsp), %eax
shlq $0x20, %rax
addq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x50dc
movl %r13d, %r14d
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movq %r14, %r15
shlq $0x4, %r15
movq 0x10(%rsp), %rsi
addq %r15, %rsi
movq %rax, %rdi
callq 0x5896
movl 0xc(%rsp), %eax
shlq $0x20, %rax
addq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %rbp, %rdi
leaq 0x30(%rsp), %rsi
callq 0x50dc
movq 0x10(%rsp), %rsi
addq %r15, %rsi
movq %rax, %rdi
callq 0x5896
cmpq $0x1, %rax
adcl $0x0, %ebx
movq 0x10(%rsp), %rax
decq %r13
cmpl %r12d, (%rax,%r15)
leaq 0x30(%rsp), %r15
jne 0x426d
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
subq %r14, %rcx
movq %rcx, %xmm0
punpckldq 0x3d03(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3d0b(%rip), %xmm0     # 0x8030
movapd %xmm0, 0x40(%rsp)
leaq 0x218(%rsp), %rdi
leaq 0xc(%rsp), %r13
movq %r13, %rsi
callq 0x58de
movq 0x50(%rsp), %r15
movq 0x98(%rsp), %rbp
movapd 0x40(%rsp), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd (%rax), %xmm0
movapd %xmm1, 0x40(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
leaq 0x1e8(%rsp), %rdi
movq %r13, %rsi
callq 0x58de
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 %r14, %rax
cmpq $0xa, %rax
ja 0x43e8
leaq 0x158(%rsp), %rdi
movq %r13, %rsi
callq 0x58de
movsd 0x78(%rsp), %xmm0
movsd 0x3c8e(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0x78(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movsd 0x90(%rsp), %xmm0
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x90(%rsp)
movsd 0x88(%rsp), %xmm0
addsd 0x70(%rsp), %xmm0
movsd %xmm0, 0x88(%rsp)
cmpl $0x9, %ebx
ja 0x446b
leaq 0x128(%rsp), %rdi
movq %r13, %rsi
callq 0x58de
movsd 0xa0(%rsp), %xmm0
movsd 0x3c22(%rip), %xmm1     # 0x8060
addsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
jmp 0x446b
movq 0x50(%rsp), %r15
movq 0x98(%rsp), %rbp
leaq 0xc(%rsp), %r13
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4482
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
incq %rbp
movq 0x90(%r15), %rax
movq 0x98(%r15), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rbp, %rcx
ja 0x3e39
jmp 0x44d8
xorps %xmm0, %xmm0
movsd %xmm0, 0x58(%rsp)
movsd %xmm0, 0x60(%rsp)
movsd %xmm0, 0x90(%rsp)
movsd %xmm0, 0x88(%rsp)
movsd %xmm0, 0x80(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x78(%rsp)
movq 0x7af9(%rip), %rdi      # 0xbfd8
leaq 0x3c60(%rip), %rsi      # 0x8146
movl $0x5, %edx
callq 0x21b0
movq 0x98(%r15), %rax
subq 0x90(%r15), %rax
sarq $0x2, %rax
movq %rax, %xmm0
punpckldq 0x3b11(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3b19(%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 0x7aa4(%rip), %rdi      # 0xbfd8
callq 0x2210
leaq 0x10(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0x98(%r15), %rcx
subq 0x90(%r15), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x3ab3(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3abb(%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, %rbx
leaq 0x3ad0(%rip), %rsi      # 0x8070
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0x98(%r15), %rax
subq 0x90(%r15), %rax
sarq $0x2, %rax
movq %rax, %xmm0
punpckldq 0x3a54(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3a5c(%rip), %xmm0     # 0x8030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x60(%rsp), %xmm0
divsd %xmm1, %xmm0
movq %rbx, %rdi
callq 0x2210
leaq 0x10(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0x98(%r15), %rcx
subq 0x90(%r15), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x39fa(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3a02(%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 0x7958(%rip), %rdi      # 0xbfd8
leaq 0x3ac5(%rip), %rsi      # 0x814c
movl $0x6, %edx
callq 0x21b0
movq 0xb0(%r15), %rax
subq 0xa8(%r15), %rax
sarq $0x2, %rax
movq %rax, %xmm0
punpckldq 0x3970(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3978(%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 0x7900(%rip), %rdi      # 0xbfd8
callq 0x2210
leaq 0x10(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0xb0(%r15), %rcx
subq 0xa8(%r15), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x390f(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3917(%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
leaq 0x10(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0xb0(%r15), %rcx
subq 0xa8(%r15), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x38b5(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x38bd(%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 0x10(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movq 0xb0(%r15), %rcx
subq 0xa8(%r15), %rcx
sarq $0x2, %rcx
movq %rcx, %xmm0
punpckldq 0x3858(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3860(%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, 0x7b7e(%rip)      # 0xc3a8
jle 0x4b0d
leaq 0x10(%rsp), %r14
movq 0x779c(%rip), %r15      # 0xbfd8
leaq 0x30(%rsp), %rbp
leaq 0x128(%rsp), %r12
leaq 0xf8(%rsp), %rdi
movq %r14, %rsi
callq 0x38fa
movl (%rax), %r13d
movl $0x4, %edx
movq %r15, %rdi
leaq 0x38e8(%rip), %rsi      # 0x8153
callq 0x21b0
leaq 0x79e1(%rip), %rdi      # 0xc258
movq %r14, %rsi
callq 0x36be
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x21b0
movb $0x20, 0x30(%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 0x385f(%rip), %rsi      # 0x8146
callq 0x21b0
leaq 0xc8(%rsp), %rdi
movq %r14, %rsi
callq 0x58de
movsd (%rax), %xmm0
cvtsi2sd %r13d, %xmm1
movsd %xmm1, 0x40(%rsp)
divsd %xmm1, %xmm0
movq %r15, %rdi
callq 0x2210
movb $0x9, 0x30(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b0
movq %rax, %rbx
leaq 0x1b8(%rsp), %rdi
movq %r14, %rsi
callq 0x58de
movsd (%rax), %xmm0
divsd 0x40(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x370d(%rip), %rsi      # 0x8070
callq 0x21b0
leaq 0x248(%rsp), %rdi
movq %r14, %rsi
callq 0x58de
movsd (%rax), %xmm0
divsd 0x40(%rsp), %xmm0
movq %r13, %rdi
callq 0x2210
movb $0x9, 0x30(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b0
movq %rax, %rbx
leaq 0x188(%rsp), %rdi
movq %r14, %rsi
callq 0x58de
movsd (%rax), %xmm0
divsd 0x40(%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 0x374f(%rip), %rsi      # 0x814c
callq 0x21b0
leaq 0x218(%rsp), %rdi
movq %r14, %rsi
callq 0x58de
movsd (%rax), %xmm0
divsd 0x40(%rsp), %xmm0
movq %r15, %rdi
callq 0x2210
movb $0x9, 0x30(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b0
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
movq %r14, %rsi
callq 0x58de
movsd (%rax), %xmm0
divsd 0x40(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movb $0x9, 0x30(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b0
movq %rax, %rbx
leaq 0x1e8(%rsp), %rdi
movq %r14, %rsi
callq 0x58de
movsd (%rax), %xmm0
divsd 0x40(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2210
movb $0x9, 0x30(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x21b0
movq %rax, %rbx
movq %r12, %rdi
movq %r14, %rsi
callq 0x58de
movsd (%rax), %xmm0
divsd 0x40(%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 0x78a1(%rip), %eax      # 0xc3a8
jl 0x4849
leaq 0xf8(%rsp), %rdi
callq 0x4e30
leaq 0x128(%rsp), %rdi
callq 0x68ce
leaq 0x158(%rsp), %rdi
callq 0x68ce
leaq 0x188(%rsp), %rdi
callq 0x68ce
leaq 0x1b8(%rsp), %rdi
callq 0x68ce
leaq 0x1e8(%rsp), %rdi
callq 0x68ce
leaq 0x218(%rsp), %rdi
callq 0x68ce
leaq 0x248(%rsp), %rdi
callq 0x68ce
leaq 0xc8(%rsp), %rdi
callq 0x68ce
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4bae
jmp 0x4bca
jmp 0x4bae
jmp 0x4bae
jmp 0x4bae
jmp 0x4bca
jmp 0x4bae
jmp 0x4bae
jmp 0x4bae
jmp 0x4bae
jmp 0x4bae
jmp 0x4bae
jmp 0x4bae
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4bcd
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
jmp 0x4bcd
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x4e30
leaq 0x128(%rsp), %rdi
callq 0x68ce
leaq 0x158(%rsp), %rdi
callq 0x68ce
leaq 0x188(%rsp), %rdi
callq 0x68ce
leaq 0x1b8(%rsp), %rdi
callq 0x68ce
leaq 0x1e8(%rsp), %rdi
callq 0x68ce
leaq 0x218(%rsp), %rdi
callq 0x68ce
leaq 0x248(%rsp), %rdi
callq 0x68ce
leaq 0xc8(%rsp), %rdi
callq 0x68ce
movq %rbx, %rdi
callq 0x2250