// File: thunlp[P]KB2E/TransE/Test_TransE.cpp
// Function: Test::run()
void run()
    {
        FILE* f1 = fopen(("relation2vec."+version).c_str(),"r");
        FILE* f3 = fopen(("entity2vec."+version).c_str(),"r");
        cout<<relation_num<<' '<<entity_num<<endl;
        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(n);
            for (int ii=0; ii<n; 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]);
            if (vec_len(entity_vec[i])-1>1e-3)
            	cout<<"wrong_entity"<<i<<' '<<vec_len(entity_vec[i])<<endl;
        }
        fclose(f1);
        fclose(f3);
		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);
			rel_num[rel]+=1;
			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;
				}
			}
        }
		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;
    }

// Assembly:
subq $0x618, %rsp            # imm = 0x618
movq %rdi, 0x610(%rsp)
movq 0x610(%rsp), %rax
movq %rax, 0x298(%rsp)
leaq 0x10b33(%rip), %rsi     # 0x15119
leaq 0x19c1b(%rip), %rdx     # 0x1e208
leaq 0x5e8(%rsp), %rdi
movq %rdi, 0x2a0(%rsp)
callq 0x9a20
movq 0x2a0(%rsp), %rdi
callq 0x20c0
movq %rax, %rdi
leaq 0x10a6e(%rip), %rsi     # 0x15087
callq 0x2270
movq %rax, 0x2a8(%rsp)
jmp 0x4628
leaq 0x5e8(%rsp), %rdi
callq 0x23a8
movq 0x2a8(%rsp), %rax
movq %rax, 0x608(%rsp)
leaq 0x10adb(%rip), %rsi     # 0x15127
leaq 0x19bb5(%rip), %rdx     # 0x1e208
leaq 0x5b0(%rsp), %rdi
movq %rdi, 0x288(%rsp)
callq 0x9a20
movq 0x288(%rsp), %rdi
callq 0x20c0
movq %rax, %rdi
leaq 0x10a08(%rip), %rsi     # 0x15087
callq 0x2270
movq %rax, 0x290(%rsp)
jmp 0x468e
leaq 0x5b0(%rsp), %rdi
callq 0x23a8
movq 0x290(%rsp), %rax
movq %rax, 0x5d0(%rsp)
movl 0x19d77(%rip), %esi     # 0x1e428
movq 0x19920(%rip), %rdi     # 0x1dfd8
callq 0x2310
movq %rax, %rdi
movl $0x20, %esi
callq 0x2260
movq %rax, %rdi
movl 0x19d59(%rip), %esi     # 0x1e42c
callq 0x2310
movq %rax, %rdi
movq 0x198de(%rip), %rsi     # 0x1dfc0
callq 0x2210
movq 0x298(%rsp), %rdi
movl 0x19d33(%rip), %eax     # 0x1e428
movl %eax, 0x5ac(%rsp)
movslq 0x5ac(%rsp), %rsi
callq 0x9b50
movl $0x0, 0x5a8(%rsp)
movl 0x5a8(%rsp), %eax
cmpl 0x5ac(%rsp), %eax
jge 0x482f
movq 0x298(%rsp), %rdi
movslq 0x5a8(%rsp), %rsi
callq 0x9bf0
movq %rax, %rdi
movslq 0x19a9d(%rip), %rsi     # 0x1e1e4
callq 0x9c10
movl $0x0, 0x5a4(%rsp)
movl 0x5a4(%rsp), %eax
cmpl 0x19a80(%rip), %eax     # 0x1e1e4
jge 0x4817
movq 0x298(%rsp), %rdi
movq 0x608(%rsp), %rax
movq %rax, 0x280(%rsp)
movslq 0x5a8(%rsp), %rsi
callq 0x9bf0
movq %rax, %rdi
movslq 0x5a4(%rsp), %rsi
callq 0x3e90
movq 0x280(%rsp), %rdi
movq %rax, %rdx
leaq 0x10982(%rip), %rsi     # 0x15133
movb $0x0, %al
callq 0x2360
movl 0x5a4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5a4(%rsp)
jmp 0x4757
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x5e0(%rsp)
movl %eax, 0x5dc(%rsp)
leaq 0x5e8(%rsp), %rdi
callq 0x23a8
jmp 0x5c8d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x5e0(%rsp)
movl %eax, 0x5dc(%rsp)
leaq 0x5b0(%rsp), %rdi
callq 0x23a8
jmp 0x5c8d
jmp 0x4819
movl 0x5a8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5a8(%rsp)
jmp 0x4714
movq 0x298(%rsp), %rdi
addq $0x18, %rdi
movslq 0x19bea(%rip), %rsi     # 0x1e42c
callq 0x9b50
movl $0x0, 0x5a0(%rsp)
movl 0x5a0(%rsp), %eax
cmpl 0x19bcd(%rip), %eax     # 0x1e42c
jge 0x4a6e
movq 0x298(%rsp), %rdi
addq $0x18, %rdi
movslq 0x5a0(%rsp), %rsi
callq 0x9bf0
movq %rax, %rdi
movslq 0x1995c(%rip), %rsi     # 0x1e1e4
callq 0x9c10
movl $0x0, 0x59c(%rsp)
movl 0x59c(%rsp), %eax
cmpl 0x1993f(%rip), %eax     # 0x1e1e4
jge 0x490c
movq 0x298(%rsp), %rdi
movq 0x5d0(%rsp), %rax
movq %rax, 0x278(%rsp)
addq $0x18, %rdi
movslq 0x5a0(%rsp), %rsi
callq 0x9bf0
movq %rax, %rdi
movslq 0x59c(%rsp), %rsi
callq 0x3e90
movq 0x278(%rsp), %rdi
movq %rax, %rdx
leaq 0x10841(%rip), %rsi     # 0x15133
movb $0x0, %al
callq 0x2360
movl 0x59c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x59c(%rsp)
jmp 0x4898
movq 0x298(%rsp), %rdi
addq $0x18, %rdi
movslq 0x5a0(%rsp), %rsi
callq 0x9bf0
movq %rax, %rsi
leaq 0x580(%rsp), %rdi
callq 0x9cb0
leaq 0x580(%rsp), %rdi
callq 0x2830
movsd 0x106be(%rip), %xmm1    # 0x15008
subsd %xmm1, %xmm0
movsd %xmm0, 0x270(%rsp)
leaq 0x580(%rsp), %rdi
callq 0x7da0
movsd 0x270(%rsp), %xmm0
movsd 0x1069b(%rip), %xmm1    # 0x15010
ucomisd %xmm1, %xmm0
jbe 0x4a56
movq 0x19652(%rip), %rdi     # 0x1dfd8
leaq 0x107aa(%rip), %rsi     # 0x15137
callq 0x21c0
movq %rax, %rdi
movl 0x5a0(%rsp), %esi
callq 0x2310
movq %rax, %rdi
movl $0x20, %esi
callq 0x2260
movq 0x298(%rsp), %rdi
movq %rax, 0x260(%rsp)
addq $0x18, %rdi
movslq 0x5a0(%rsp), %rsi
callq 0x9bf0
movq %rax, %rsi
leaq 0x568(%rsp), %rdi
movq %rdi, 0x258(%rsp)
callq 0x9cb0
movq 0x258(%rsp), %rdi
callq 0x2830
movq 0x260(%rsp), %rdi
callq 0x2370
movq %rax, 0x268(%rsp)
jmp 0x4a0b
movq 0x268(%rsp), %rdi
movq 0x195a6(%rip), %rsi     # 0x1dfc0
callq 0x2210
jmp 0x4a21
leaq 0x568(%rsp), %rdi
callq 0x7da0
jmp 0x4a56
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x5e0(%rsp)
movl %eax, 0x5dc(%rsp)
leaq 0x568(%rsp), %rdi
callq 0x7da0
jmp 0x5c8d
jmp 0x4a58
movl 0x5a0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5a0(%rsp)
jmp 0x4852
movq 0x608(%rsp), %rdi
callq 0x21d0
movq 0x5d0(%rsp), %rdi
callq 0x21d0
xorps %xmm0, %xmm0
movsd %xmm0, 0x560(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x558(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x550(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x548(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x540(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x530(%rsp)
leaq 0x4f8(%rsp), %rdi
callq 0x9db0
leaq 0x4c8(%rsp), %rdi
callq 0x9db0
leaq 0x498(%rsp), %rdi
callq 0x9db0
leaq 0x468(%rsp), %rdi
callq 0x9db0
leaq 0x438(%rsp), %rdi
callq 0x9db0
leaq 0x408(%rsp), %rdi
callq 0x9db0
leaq 0x3d8(%rsp), %rdi
callq 0x9db0
leaq 0x3a8(%rsp), %rdi
callq 0x9db0
leaq 0x378(%rsp), %rdi
callq 0x3e30
movl $0x0, 0x374(%rsp)
movq 0x298(%rsp), %rdi
movslq 0x374(%rsp), %rax
movq %rax, 0x250(%rsp)
addq $0x90, %rdi
callq 0x8640
movq %rax, %rcx
movq 0x250(%rsp), %rax
cmpq %rcx, %rax
jae 0x575d
movq 0x298(%rsp), %rdi
addq $0x78, %rdi
movslq 0x374(%rsp), %rsi
callq 0x9dc0
movq 0x298(%rsp), %rdi
movl (%rax), %eax
movl %eax, 0x370(%rsp)
addq $0x90, %rdi
movslq 0x374(%rsp), %rsi
callq 0x9dc0
movq 0x298(%rsp), %rdi
movl (%rax), %eax
movl %eax, 0x36c(%rsp)
addq $0xa8, %rdi
movslq 0x374(%rsp), %rsi
callq 0x9dc0
movq 0x298(%rsp), %rdi
movl (%rax), %eax
movl %eax, 0x368(%rsp)
movl 0x370(%rsp), %esi
movl 0x36c(%rsp), %edx
movl 0x368(%rsp), %ecx
callq 0x9de0
movsd %xmm0, 0x248(%rsp)
jmp 0x4c21
movsd 0x248(%rsp), %xmm0
movsd %xmm0, 0x360(%rsp)
leaq 0x378(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0x44d0
movq %rax, 0x240(%rsp)
jmp 0x4c52
movq 0x240(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
leaq 0x348(%rsp), %rdi
callq 0x9fd0
movl $0x0, 0x344(%rsp)
movl 0x344(%rsp), %eax
cmpl 0x197a6(%rip), %eax     # 0x1e42c
jge 0x4d80
movq 0x298(%rsp), %rdi
movl 0x344(%rsp), %esi
movl 0x36c(%rsp), %edx
movl 0x368(%rsp), %ecx
callq 0x9de0
movsd %xmm0, 0x238(%rsp)
jmp 0x4cb9
movsd 0x238(%rsp), %xmm0
movsd %xmm0, 0x338(%rsp)
leaq 0x344(%rsp), %rdi
leaq 0x338(%rsp), %rsi
callq 0xa010
movsd %xmm0, 0x228(%rsp)
movl %eax, 0x234(%rsp)
jmp 0x4cf2
movsd 0x228(%rsp), %xmm0
movl 0x234(%rsp), %eax
movl %eax, 0x328(%rsp)
movsd %xmm0, 0x330(%rsp)
leaq 0x348(%rsp), %rdi
leaq 0x328(%rsp), %rsi
callq 0x9fe0
jmp 0x4d29
jmp 0x4d2b
movl 0x344(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x344(%rsp)
jmp 0x4c79
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x5e0(%rsp)
movl %eax, 0x5dc(%rsp)
jmp 0x5c18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x5e0(%rsp)
movl %eax, 0x5dc(%rsp)
leaq 0x348(%rsp), %rdi
callq 0xa2b0
jmp 0x5c18
leaq 0x348(%rsp), %rdi
movq %rdi, 0x220(%rsp)
callq 0xa0a0
movq 0x220(%rsp), %rdi
movq %rax, 0x320(%rsp)
callq 0xa0d0
movq %rax, 0x318(%rsp)
movq 0x320(%rsp), %rdi
movq 0x318(%rsp), %rsi
leaq -0x23c9(%rip), %rdx     # 0x2a00
callq 0xa050
jmp 0x4dd0
xorps %xmm0, %xmm0
movsd %xmm0, 0x310(%rsp)
movl $0x0, 0x30c(%rsp)
leaq 0x348(%rsp), %rdi
callq 0xa100
subq $0x1, %rax
movl %eax, 0x308(%rsp)
cmpl $0x0, 0x308(%rsp)
jl 0x51ed
movq 0x298(%rsp), %rax
addq $0xc0, %rax
movq %rax, 0x210(%rsp)
movslq 0x308(%rsp), %rsi
leaq 0x348(%rsp), %rdi
callq 0xa120
movq %rax, %rdi
leaq 0x368(%rsp), %rsi
callq 0x81b0
movq %rax, 0x218(%rsp)
jmp 0x4e52
movq 0x210(%rsp), %rdi
movq 0x218(%rsp), %rax
movq %rax, 0x300(%rsp)
leaq 0x300(%rsp), %rsi
callq 0x80c0
movq %rax, 0x208(%rsp)
jmp 0x4e81
movq 0x208(%rsp), %rdi
leaq 0x36c(%rsp), %rsi
callq 0xa140
movq %rax, 0x200(%rsp)
jmp 0x4ea0
movq 0x200(%rsp), %rax
cmpq $0x0, %rax
jbe 0x4ec8
movsd 0x10152(%rip), %xmm0    # 0x15008
addsd 0x310(%rsp), %xmm0
movsd %xmm0, 0x310(%rsp)
movq 0x298(%rsp), %rax
addq $0xc0, %rax
movq %rax, 0x1f0(%rsp)
movslq 0x308(%rsp), %rsi
leaq 0x348(%rsp), %rdi
callq 0xa120
movq %rax, %rdi
leaq 0x368(%rsp), %rsi
callq 0x81b0
movq %rax, 0x1f8(%rsp)
jmp 0x4f0d
movq 0x1f0(%rsp), %rdi
movq 0x1f8(%rsp), %rax
movq %rax, 0x2f8(%rsp)
leaq 0x2f8(%rsp), %rsi
callq 0x80c0
movq %rax, 0x1e8(%rsp)
jmp 0x4f3c
movq 0x1e8(%rsp), %rdi
leaq 0x36c(%rsp), %rsi
callq 0xa140
movq %rax, 0x1e0(%rsp)
jmp 0x4f5b
movq 0x1e0(%rsp), %rax
cmpq $0x0, %rax
jne 0x4f7a
movl 0x30c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30c(%rsp)
movslq 0x308(%rsp), %rsi
leaq 0x348(%rsp), %rdi
callq 0xa120
movl (%rax), %eax
cmpl 0x370(%rsp), %eax
jne 0x51d5
leaq 0x348(%rsp), %rdi
movq %rdi, 0x1a8(%rsp)
callq 0xa100
movq 0x1a8(%rsp), %rdi
movslq 0x308(%rsp), %rcx
subq %rcx, %rax
movq %rax, %xmm1
movaps 0x1004e(%rip), %xmm0    # 0x15020
movaps %xmm0, 0x1b0(%rsp)
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0x1004a(%rip), %xmm0    # 0x15030
movaps %xmm0, 0x1c0(%rsp)
subpd %xmm0, %xmm1
movaps %xmm1, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm0, %xmm1
movsd 0x560(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x560(%rsp)
movl 0x30c(%rsp), %eax
incl %eax
cvtsi2sd %eax, %xmm1
movsd 0x558(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x558(%rsp)
callq 0xa100
movaps 0x1b0(%rsp), %xmm2
movaps 0x1c0(%rsp), %xmm1
movslq 0x308(%rsp), %rcx
subq %rcx, %rax
movq %rax, %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, 0x1d0(%rsp)
leaq 0x4f8(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0xa1a0
movq %rax, 0x1d8(%rsp)
jmp 0x5096
movq 0x1d8(%rsp), %rax
movsd 0x1d0(%rsp), %xmm1
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movl 0x30c(%rsp), %eax
incl %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x198(%rsp)
leaq 0x4c8(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0xa1a0
movq %rax, 0x1a0(%rsp)
jmp 0x50e8
movq 0x1a0(%rsp), %rax
movsd 0x198(%rsp), %xmm0
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
leaq 0x348(%rsp), %rdi
callq 0xa100
movslq 0x308(%rsp), %rcx
subq %rcx, %rax
cmpq $0xa, %rax
ja 0x5174
movsd 0x540(%rsp), %xmm0
movsd 0xfed8(%rip), %xmm1     # 0x15008
addsd %xmm1, %xmm0
movsd %xmm0, 0x540(%rsp)
leaq 0x438(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0xa1a0
movq %rax, 0x190(%rsp)
jmp 0x515c
movq 0x190(%rsp), %rax
movsd 0xfe9c(%rip), %xmm0     # 0x15008
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
cmpl $0xa, 0x30c(%rsp)
jge 0x51d3
movsd 0x538(%rsp), %xmm0
movsd 0xfe79(%rip), %xmm1     # 0x15008
addsd %xmm1, %xmm0
movsd %xmm0, 0x538(%rsp)
leaq 0x408(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0xa1a0
movq %rax, 0x188(%rsp)
jmp 0x51bb
movq 0x188(%rsp), %rax
movsd 0xfe3d(%rip), %xmm0     # 0x15008
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
jmp 0x51ed
jmp 0x51d7
movl 0x308(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x308(%rsp)
jmp 0x4dff
leaq 0x348(%rsp), %rdi
callq 0xa290
movl $0x0, 0x2f4(%rsp)
movl 0x2f4(%rsp), %eax
cmpl 0x1921a(%rip), %eax     # 0x1e42c
jge 0x52cd
movq 0x298(%rsp), %rdi
movl 0x370(%rsp), %esi
movl 0x2f4(%rsp), %edx
movl 0x368(%rsp), %ecx
callq 0x9de0
movsd %xmm0, 0x180(%rsp)
jmp 0x5245
movsd 0x180(%rsp), %xmm0
movsd %xmm0, 0x2e8(%rsp)
leaq 0x2f4(%rsp), %rdi
leaq 0x2e8(%rsp), %rsi
callq 0xa010
movsd %xmm0, 0x170(%rsp)
movl %eax, 0x17c(%rsp)
jmp 0x527e
movsd 0x170(%rsp), %xmm0
movl 0x17c(%rsp), %eax
movl %eax, 0x2d8(%rsp)
movsd %xmm0, 0x2e0(%rsp)
leaq 0x348(%rsp), %rdi
leaq 0x2d8(%rsp), %rsi
callq 0x9fe0
jmp 0x52b5
jmp 0x52b7
movl 0x2f4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2f4(%rsp)
jmp 0x5205
leaq 0x348(%rsp), %rdi
movq %rdi, 0x168(%rsp)
callq 0xa0a0
movq 0x168(%rsp), %rdi
movq %rax, 0x2d0(%rsp)
callq 0xa0d0
movq %rax, 0x2c8(%rsp)
movq 0x2d0(%rsp), %rdi
movq 0x2c8(%rsp), %rsi
leaq -0x2916(%rip), %rdx     # 0x2a00
callq 0xa050
jmp 0x531d
xorps %xmm0, %xmm0
movsd %xmm0, 0x310(%rsp)
movl $0x0, 0x30c(%rsp)
leaq 0x348(%rsp), %rdi
callq 0xa100
subq $0x1, %rax
movl %eax, 0x2c4(%rsp)
cmpl $0x0, 0x2c4(%rsp)
jl 0x573a
movq 0x298(%rsp), %rax
addq $0xc0, %rax
movq %rax, 0x158(%rsp)
leaq 0x370(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0x81b0
movq %rax, 0x160(%rsp)
jmp 0x538f
movq 0x158(%rsp), %rdi
movq 0x160(%rsp), %rax
movq %rax, 0x2bc(%rsp)
leaq 0x2bc(%rsp), %rsi
callq 0x80c0
movq %rax, 0x150(%rsp)
jmp 0x53be
movslq 0x2c4(%rsp), %rsi
leaq 0x348(%rsp), %rdi
callq 0xa120
movq 0x150(%rsp), %rdi
movq %rax, %rsi
callq 0xa140
movq %rax, 0x148(%rsp)
jmp 0x53ed
movq 0x148(%rsp), %rax
cmpq $0x0, %rax
jbe 0x5415
movsd 0xfc05(%rip), %xmm0     # 0x15008
addsd 0x310(%rsp), %xmm0
movsd %xmm0, 0x310(%rsp)
movq 0x298(%rsp), %rax
addq $0xc0, %rax
movq %rax, 0x138(%rsp)
leaq 0x370(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0x81b0
movq %rax, 0x140(%rsp)
jmp 0x544a
movq 0x138(%rsp), %rdi
movq 0x140(%rsp), %rax
movq %rax, 0x2b4(%rsp)
leaq 0x2b4(%rsp), %rsi
callq 0x80c0
movq %rax, 0x130(%rsp)
jmp 0x5479
movslq 0x2c4(%rsp), %rsi
leaq 0x348(%rsp), %rdi
callq 0xa120
movq 0x130(%rsp), %rdi
movq %rax, %rsi
callq 0xa140
movq %rax, 0x128(%rsp)
jmp 0x54a8
movq 0x128(%rsp), %rax
cmpq $0x0, %rax
jne 0x54c7
movl 0x30c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30c(%rsp)
movslq 0x2c4(%rsp), %rsi
leaq 0x348(%rsp), %rdi
callq 0xa120
movl (%rax), %eax
cmpl 0x36c(%rsp), %eax
jne 0x5722
leaq 0x348(%rsp), %rdi
movq %rdi, 0xe8(%rsp)
callq 0xa100
movq 0xe8(%rsp), %rdi
movslq 0x2c4(%rsp), %rcx
subq %rcx, %rax
movq %rax, %xmm1
movaps 0xfb01(%rip), %xmm0     # 0x15020
movaps %xmm0, 0xf0(%rsp)
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0xfafd(%rip), %xmm0     # 0x15030
movaps %xmm0, 0x100(%rsp)
subpd %xmm0, %xmm1
movaps %xmm1, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm0, %xmm1
movsd 0x550(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x550(%rsp)
movl 0x30c(%rsp), %eax
incl %eax
cvtsi2sd %eax, %xmm1
movsd 0x548(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x548(%rsp)
callq 0xa100
movaps 0xf0(%rsp), %xmm2
movaps 0x100(%rsp), %xmm1
movslq 0x2c4(%rsp), %rcx
subq %rcx, %rax
movq %rax, %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, 0x118(%rsp)
leaq 0x498(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0xa1a0
movq %rax, 0x120(%rsp)
jmp 0x55e3
movq 0x120(%rsp), %rax
movsd 0x118(%rsp), %xmm1
movsd (%rax), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movl 0x30c(%rsp), %eax
incl %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0xd8(%rsp)
leaq 0x468(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0xa1a0
movq %rax, 0xe0(%rsp)
jmp 0x5635
movq 0xe0(%rsp), %rax
movsd 0xd8(%rsp), %xmm0
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
leaq 0x348(%rsp), %rdi
callq 0xa100
movslq 0x2c4(%rsp), %rcx
subq %rcx, %rax
cmpq $0xa, %rax
ja 0x56c1
movsd 0x530(%rsp), %xmm0
movsd 0xf98b(%rip), %xmm1     # 0x15008
addsd %xmm1, %xmm0
movsd %xmm0, 0x530(%rsp)
leaq 0x3d8(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0xa1a0
movq %rax, 0xd0(%rsp)
jmp 0x56a9
movq 0xd0(%rsp), %rax
movsd 0xf94f(%rip), %xmm0     # 0x15008
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
cmpl $0xa, 0x30c(%rsp)
jge 0x5720
movsd 0x528(%rsp), %xmm0
movsd 0xf92c(%rip), %xmm1     # 0x15008
addsd %xmm1, %xmm0
movsd %xmm0, 0x528(%rsp)
leaq 0x3a8(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0xa1a0
movq %rax, 0xc8(%rsp)
jmp 0x5708
movq 0xc8(%rsp), %rax
movsd 0xf8f0(%rip), %xmm0     # 0x15008
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
jmp 0x573a
jmp 0x5724
movl 0x2c4(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x2c4(%rsp)
jmp 0x534c
leaq 0x348(%rsp), %rdi
callq 0xa2b0
movl 0x374(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x374(%rsp)
jmp 0x4b50
movq 0x18874(%rip), %rdi     # 0x1dfd8
leaq 0xf9d9(%rip), %rsi      # 0x15144
callq 0x21c0
movq %rax, 0xc0(%rsp)
jmp 0x577a
movq 0x298(%rsp), %rdi
movsd 0x560(%rsp), %xmm0
movsd %xmm0, 0xb0(%rsp)
addq $0x90, %rdi
callq 0x8640
movsd 0xb0(%rsp), %xmm0
movq 0xc0(%rsp), %rdi
movq %rax, %xmm1
movaps 0xf863(%rip), %xmm2     # 0x15020
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0xf867(%rip), %xmm2     # 0x15030
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x2370
movq %rax, 0xb8(%rsp)
jmp 0x57eb
movq 0xb8(%rsp), %rdi
movl $0x9, %esi
callq 0x2260
movq %rax, 0xa8(%rsp)
jmp 0x5807
movq 0x298(%rsp), %rdi
movsd 0x540(%rsp), %xmm0
movsd %xmm0, 0x98(%rsp)
addq $0x90, %rdi
callq 0x8640
movsd 0x98(%rsp), %xmm0
movq 0xa8(%rsp), %rdi
movq %rax, %xmm1
movaps 0xf7d6(%rip), %xmm2     # 0x15020
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0xf7da(%rip), %xmm2     # 0x15030
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x2370
movq %rax, 0xa0(%rsp)
jmp 0x5878
movq 0xa0(%rsp), %rdi
leaq 0xf7ce(%rip), %rsi      # 0x15055
callq 0x21c0
movq %rax, 0x90(%rsp)
jmp 0x5896
movq 0x298(%rsp), %rdi
movsd 0x558(%rsp), %xmm0
movsd %xmm0, 0x80(%rsp)
addq $0x90, %rdi
callq 0x8640
movsd 0x80(%rsp), %xmm0
movq 0x90(%rsp), %rdi
movq %rax, %xmm1
movaps 0xf747(%rip), %xmm2     # 0x15020
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0xf74b(%rip), %xmm2     # 0x15030
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x2370
movq %rax, 0x88(%rsp)
jmp 0x5907
movq 0x88(%rsp), %rdi
movl $0x9, %esi
callq 0x2260
movq %rax, 0x78(%rsp)
jmp 0x5920
movq 0x298(%rsp), %rdi
movsd 0x538(%rsp), %xmm0
movsd %xmm0, 0x68(%rsp)
addq $0x90, %rdi
callq 0x8640
movsd 0x68(%rsp), %xmm0
movq 0x78(%rsp), %rdi
movq %rax, %xmm1
movaps 0xf6c6(%rip), %xmm2     # 0x15020
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0xf6ca(%rip), %xmm2     # 0x15030
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x2370
movq %rax, 0x70(%rsp)
jmp 0x5985
movq 0x70(%rsp), %rdi
movq 0x1862f(%rip), %rsi     # 0x1dfc0
callq 0x2210
jmp 0x5998
movq 0x18639(%rip), %rdi     # 0x1dfd8
leaq 0xf7a4(%rip), %rsi      # 0x1514a
callq 0x21c0
movq %rax, 0x60(%rsp)
jmp 0x59b2
movq 0x298(%rsp), %rdi
movsd 0x550(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
addq $0xa8, %rdi
callq 0x8640
movsd 0x50(%rsp), %xmm0
movq 0x60(%rsp), %rdi
movq %rax, %xmm1
movaps 0xf634(%rip), %xmm2     # 0x15020
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0xf638(%rip), %xmm2     # 0x15030
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x2370
movq %rax, 0x58(%rsp)
jmp 0x5a17
movq 0x58(%rsp), %rdi
movl $0x9, %esi
callq 0x2260
movq %rax, 0x48(%rsp)
jmp 0x5a2d
movq 0x298(%rsp), %rdi
movsd 0x530(%rsp), %xmm0
movsd %xmm0, 0x38(%rsp)
addq $0xa8, %rdi
callq 0x8640
movsd 0x38(%rsp), %xmm0
movq 0x48(%rsp), %rdi
movq %rax, %xmm1
movaps 0xf5b9(%rip), %xmm2     # 0x15020
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0xf5bd(%rip), %xmm2     # 0x15030
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x2370
movq %rax, 0x40(%rsp)
jmp 0x5a92
movq 0x40(%rsp), %rdi
movl $0x9, %esi
callq 0x2260
movq %rax, 0x30(%rsp)
jmp 0x5aa8
movq 0x298(%rsp), %rdi
movsd 0x548(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
addq $0xa8, %rdi
callq 0x8640
movsd 0x20(%rsp), %xmm0
movq 0x30(%rsp), %rdi
movq %rax, %xmm1
movaps 0xf53e(%rip), %xmm2     # 0x15020
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0xf542(%rip), %xmm2     # 0x15030
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x2370
movq %rax, 0x28(%rsp)
jmp 0x5b0d
movq 0x28(%rsp), %rdi
movl $0x9, %esi
callq 0x2260
movq %rax, 0x18(%rsp)
jmp 0x5b23
movq 0x298(%rsp), %rdi
movsd 0x528(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
addq $0xa8, %rdi
callq 0x8640
movsd 0x8(%rsp), %xmm0
movq 0x18(%rsp), %rdi
movq %rax, %xmm1
movaps 0xf4c3(%rip), %xmm2     # 0x15020
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0xf4c7(%rip), %xmm2     # 0x15030
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x2370
movq %rax, 0x10(%rsp)
jmp 0x5b88
movq 0x10(%rsp), %rdi
movq 0x1842c(%rip), %rsi     # 0x1dfc0
callq 0x2210
jmp 0x5b9b
leaq 0x378(%rsp), %rdi
callq 0x3e40
leaq 0x3a8(%rsp), %rdi
callq 0xa310
leaq 0x3d8(%rsp), %rdi
callq 0xa310
leaq 0x408(%rsp), %rdi
callq 0xa310
leaq 0x438(%rsp), %rdi
callq 0xa310
leaq 0x468(%rsp), %rdi
callq 0xa310
leaq 0x498(%rsp), %rdi
callq 0xa310
leaq 0x4c8(%rsp), %rdi
callq 0xa310
leaq 0x4f8(%rsp), %rdi
callq 0xa310
addq $0x618, %rsp            # imm = 0x618
retq
leaq 0x378(%rsp), %rdi
callq 0x3e40
leaq 0x3a8(%rsp), %rdi
callq 0xa310
leaq 0x3d8(%rsp), %rdi
callq 0xa310
leaq 0x408(%rsp), %rdi
callq 0xa310
leaq 0x438(%rsp), %rdi
callq 0xa310
leaq 0x468(%rsp), %rdi
callq 0xa310
leaq 0x498(%rsp), %rdi
callq 0xa310
leaq 0x4c8(%rsp), %rdi
callq 0xa310
leaq 0x4f8(%rsp), %rdi
callq 0xa310
movq 0x5e0(%rsp), %rdi
callq 0x2320
nopw (%rax,%rax)