// File: /workspace/github_c_makefile_star2_O0/yhg926[P]public_kssd/command_dist.c
// Function: koc_dist_print_nobin
void koc_dist_print_nobin ( const char *distout_dir,unsigned int ref_num, unsigned int qry_num, unsigned int*ref_ctx_ct_list,
      unsigned int*qry_ctx_ct_list, int num_cof_batch, char (*refname)[PATHLEN], char (*qryfname)[PATHLEN])
{
  sprintf(full_distfcode,"%s/sharedk_ct.dat",distout_dir);
  int fd;
  struct stat s;
  fd = open (full_distfcode, O_RDONLY);
  check (fd < 0, "open %s failed: %s", full_distfcode, strerror (errno));
  fstat (fd, & s);
  koc_dist_t * ctx_obj_ct = mmap(0, s.st_size , PROT_READ, MAP_PRIVATE, fd, 0);
  check ( ctx_obj_ct == MAP_FAILED, "mmap %s failed: %s", full_distfcode, strerror (errno));
  close(fd);
  char distf[PATHLEN];
  sprintf(distf, "%s/distance.out", distout_dir);
  FILE *distfp = fopen(distf,"a") ;
  if( distfp == NULL ) err(errno,"dist_print_nobin():%s",distf);
  double jac_ind,contain_ind,Dm,Da,P_K_in_X_XnY, P_K_in_Y_XnY,
  j_prim, c_prim, Dm_prim, Da_prim, sd_j_prim, sd_c_prim,
  CI95_j_prim1, CI95_j_prim2, CI95_c_prim1, CI95_c_prim2,
  CI95_Dm_prim1,CI95_Dm_prim2,CI95_Da_prim1,CI95_Da_prim2;
  int Min_XY_size, X_size, Y_size, XnY_size, XuY_size, X_XnY_size, Y_XnY_size ;
  int num_mapping_distf = qry_num / num_cof_batch; int bnum_infile;
 double abundence_rowsum;
  for(int b=0;b<=num_mapping_distf;b++){
    if(b==num_mapping_distf){
      bnum_infile = qry_num % num_cof_batch ;
      if( bnum_infile == 0 ) continue;
    }else bnum_infile = num_cof_batch;
    size_t maplength = (size_t)bnum_infile * ref_num * sizeof(koc_dist_t);
    for(int qid = 0; qid < bnum_infile; qid++) {
   abundence_rowsum = 0;
   for(int rid = 0; rid < ref_num; rid++)
    if(ctx_obj_ct[ ((llong)b*num_cof_batch + qid)*ref_num + rid ].shared_k_ct > 0)
     abundence_rowsum += (double)ctx_obj_ct[ ((llong)b*num_cof_batch + qid) * ref_num + rid ].shared_koc_ct
              / (double)ctx_obj_ct[ ((llong)b*num_cof_batch + qid)*ref_num + rid ].shared_k_ct;
   Y_size = qry_ctx_ct_list[b*num_cof_batch + qid];
      for(int rid = 0; rid < ref_num; rid++) {
        X_size = ref_ctx_ct_list[rid];
        Min_XY_size = X_size < Y_size ? X_size : Y_size ;
        XnY_size = ctx_obj_ct[ ((llong)b*num_cof_batch + qid)*ref_num + rid ].shared_k_ct;
    double abundence_pct = (double)ctx_obj_ct[ ((llong)b*num_cof_batch + qid)*ref_num + rid ].shared_koc_ct
               / XnY_size;
        XuY_size = X_size + Y_size - XnY_size ;
        X_XnY_size = X_size - XnY_size;
        Y_XnY_size = Y_size- XnY_size;
        jac_ind = (double)XnY_size / XuY_size;
        contain_ind = (double)XnY_size / Min_XY_size ;
        Dm = jac_ind == 1? 0: -log(2*jac_ind/(1+jac_ind)) / kmerlen ;
        Da = contain_ind== 1? 0: -log(contain_ind) / kmerlen ;
        P_K_in_X_XnY = 1 - pow( (1- 1/pow(alp_size,(kmerlen - dim_reduct_len) )), X_XnY_size );
        P_K_in_Y_XnY = 1 - pow( (1- 1/pow(alp_size,(kmerlen - dim_reduct_len) )), Y_XnY_size );
        double rs = P_K_in_X_XnY * P_K_in_Y_XnY * ( X_XnY_size + Y_XnY_size )
              /(P_K_in_X_XnY + P_K_in_Y_XnY - 2*P_K_in_X_XnY * P_K_in_Y_XnY);
        j_prim = ((double)XnY_size - rs) / XuY_size ;
        c_prim = ((double)XnY_size - rs) / Min_XY_size ;
        Dm_prim = j_prim == 1? 0:-log(2*j_prim/(1+j_prim)) / kmerlen ;
        Da_prim = c_prim==1? 0:-log(c_prim) / kmerlen ;
        sd_j_prim = pow(j_prim*(1 - j_prim) / XuY_size, 0.5) ;
        sd_c_prim = pow(c_prim*(1 - c_prim) / Min_XY_size,0.5) ;
        CI95_j_prim1 = j_prim - 1.96*sd_j_prim;
        CI95_j_prim2 = j_prim + 1.96*sd_j_prim;
        CI95_c_prim1 = c_prim - 1.96*sd_c_prim;
        CI95_c_prim2 = c_prim + 1.96*sd_c_prim;
        CI95_Dm_prim1 = CI95_j_prim2 == 1? 0:-log(2*CI95_j_prim2/(1+CI95_j_prim2)) / kmerlen ;
        CI95_Dm_prim2 = CI95_j_prim1 == 1? 0:-log(2*CI95_j_prim1/(1+CI95_j_prim1)) / kmerlen ;
        CI95_Da_prim1 = CI95_c_prim2 == 1? 0:-log(CI95_c_prim2) / kmerlen ;
        CI95_Da_prim2 = CI95_c_prim1 == 1? 0:-log(CI95_c_prim1) / kmerlen ;
        double pv_j_prim = 0.5 * erfc( j_prim / sd_j_prim * pow(0.5,0.5) );
        double pv_c_prim = 0.5 * erfc( c_prim/sd_c_prim * pow(0.5,0.5) );
        double qv_j_prim = pv_j_prim * ref_seq_num*qry_seq_num ;
        double qv_c_prim = pv_c_prim * ref_seq_num*qry_seq_num ;
        fprintf(distfp,"%s\t%s\t%lf\t%u-%u|%u|%u\t%lf\t%lf\t%lf\t%lf\t%lf[%lf,%lf]\t%lf[%lf,%lf]\t%lf[%lf,%lf]\t%lf[%lf,%lf]\t%E\t%E\t%E\t%E\n",
          qryfname[b*num_cof_batch + qid],refname[rid],abundence_pct,XnY_size,(unsigned int)rs,X_size,Y_size,jac_ind,Dm,
          contain_ind,Da,j_prim,CI95_j_prim1,CI95_j_prim2,Dm_prim,CI95_Dm_prim1,CI95_Dm_prim2,c_prim,CI95_c_prim1,
          CI95_c_prim2,Da_prim,CI95_Da_prim1,CI95_Da_prim2,pv_j_prim,pv_c_prim,qv_j_prim,qv_c_prim);
      }
    }
    munmap(ctx_obj_ct + (size_t)b*num_cof_batch*ref_num, maplength);
  }
  fclose(distfp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x4d0, %rsp            # imm = 0x4D0
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0xd8(%rbp)
movl %esi, -0xdc(%rbp)
movl %edx, -0xe0(%rbp)
movq %rcx, -0xe8(%rbp)
movq %r8, -0xf0(%rbp)
movl %r9d, -0xf4(%rbp)
movq -0xd8(%rbp), %rdx
leaq 0x55b77(%rip), %rdi     # 0x644f0
leaq 0xe62f(%rip), %rsi      # 0x1cfaf
movb $0x0, %al
callq 0x3400
leaq 0x55b62(%rip), %rdi     # 0x644f0
xorl %esi, %esi
movb $0x0, %al
callq 0x3350
movl %eax, -0xf8(%rbp)
cmpl $0x0, -0xf8(%rbp)
setl %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x3c0(%rbp)
callq 0x3050
movl (%rax), %edi
callq 0x3440
movl -0x3c0(%rbp), %edi
movq %rax, %rcx
leaq 0xd7d1(%rip), %rsi      # 0x1c19f
leaq 0x55b1b(%rip), %rdx     # 0x644f0
movb $0x0, %al
callq 0xe860
movl -0xf8(%rbp), %edi
leaq -0x188(%rbp), %rsi
callq 0x3470
movq -0x158(%rbp), %rsi
movl -0xf8(%rbp), %r8d
xorl %eax, %eax
movl %eax, %r9d
movl $0x1, %edx
movl $0x2, %ecx
movq %r9, %rdi
callq 0x3130
movq %rax, -0x190(%rbp)
movq $-0x1, %rax
cmpq %rax, -0x190(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x3bc(%rbp)
callq 0x3050
movl (%rax), %edi
callq 0x3440
movl -0x3bc(%rbp), %edi
movq %rax, %rcx
leaq 0xd760(%rip), %rsi      # 0x1c1b2
leaq 0x55a97(%rip), %rdx     # 0x644f0
movb $0x0, %al
callq 0xe860
movl -0xf8(%rbp), %edi
callq 0x3200
leaq -0x290(%rbp), %rdi
movq -0xd8(%rbp), %rdx
leaq 0xe4d6(%rip), %rsi      # 0x1cf56
movb $0x0, %al
callq 0x3400
leaq -0x290(%rbp), %rdi
leaq 0xe2a1(%rip), %rsi      # 0x1cd36
callq 0x3370
movq %rax, -0x298(%rbp)
cmpq $0x0, -0x298(%rbp)
jne 0xeac7
callq 0x3050
movl (%rax), %edi
leaq -0x290(%rbp), %rdx
leaq 0xe7eb(%rip), %rsi      # 0x1d2ab
movb $0x0, %al
callq 0x3300
movl -0xe0(%rbp), %eax
xorl %edx, %edx
divl -0xf4(%rbp)
movl %eax, -0x358(%rbp)
movl $0x0, -0x36c(%rbp)
movl -0x36c(%rbp), %eax
cmpl -0x358(%rbp), %eax
jg 0xf927
movl -0x36c(%rbp), %eax
cmpl -0x358(%rbp), %eax
jne 0xeb29
movl -0xe0(%rbp), %eax
xorl %edx, %edx
divl -0xf4(%rbp)
movl %edx, -0x35c(%rbp)
cmpl $0x0, -0x35c(%rbp)
jne 0xeb27
jmp 0xf913
jmp 0xeb35
movl -0xf4(%rbp), %eax
movl %eax, -0x35c(%rbp)
movslq -0x35c(%rbp), %rax
movl -0xdc(%rbp), %ecx
imulq %rcx, %rax
shlq $0x4, %rax
movq %rax, -0x378(%rbp)
movl $0x0, -0x37c(%rbp)
movl -0x37c(%rbp), %eax
cmpl -0x35c(%rbp), %eax
jge 0xf8dd
xorps %xmm0, %xmm0
movsd %xmm0, -0x368(%rbp)
movl $0x0, -0x380(%rbp)
movl -0x380(%rbp), %eax
cmpl -0xdc(%rbp), %eax
jae 0xec6d
movq -0x190(%rbp), %rax
movslq -0x36c(%rbp), %rcx
movslq -0xf4(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x37c(%rbp), %rdx
addq %rdx, %rcx
movl -0xdc(%rbp), %edx
imulq %rdx, %rcx
movslq -0x380(%rbp), %rdx
addq %rdx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x0, 0x8(%rax)
jbe 0xec57
movq -0x190(%rbp), %rax
movslq -0x36c(%rbp), %rcx
movslq -0xf4(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x37c(%rbp), %rdx
addq %rdx, %rcx
movl -0xdc(%rbp), %edx
imulq %rdx, %rcx
movslq -0x380(%rbp), %rdx
addq %rdx, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %xmm0
movaps 0xd401(%rip), %xmm1     # 0x1c020
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0xd405(%rip), %xmm1     # 0x1c030
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movl 0x8(%rax,%rcx), %eax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
addsd -0x368(%rbp), %xmm0
movsd %xmm0, -0x368(%rbp)
jmp 0xec59
movl -0x380(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x380(%rbp)
jmp 0xeb82
movq -0xf0(%rbp), %rax
movl -0x36c(%rbp), %ecx
imull -0xf4(%rbp), %ecx
addl -0x37c(%rbp), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x344(%rbp)
movl $0x0, -0x384(%rbp)
movl -0x384(%rbp), %eax
cmpl -0xdc(%rbp), %eax
jae 0xf8c7
movq -0xe8(%rbp), %rax
movslq -0x384(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x340(%rbp)
movl -0x340(%rbp), %eax
cmpl -0x344(%rbp), %eax
jge 0xece2
movl -0x340(%rbp), %eax
movl %eax, -0x3c4(%rbp)
jmp 0xecee
movl -0x344(%rbp), %eax
movl %eax, -0x3c4(%rbp)
movl -0x3c4(%rbp), %eax
movl %eax, -0x33c(%rbp)
movq -0x190(%rbp), %rax
movslq -0x36c(%rbp), %rcx
movslq -0xf4(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x37c(%rbp), %rdx
addq %rdx, %rcx
movl -0xdc(%rbp), %edx
imulq %rdx, %rcx
movslq -0x384(%rbp), %rdx
addq %rdx, %rcx
shlq $0x4, %rcx
movl 0x8(%rax,%rcx), %eax
movl %eax, -0x348(%rbp)
movq -0x190(%rbp), %rax
movslq -0x36c(%rbp), %rcx
movslq -0xf4(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x37c(%rbp), %rdx
addq %rdx, %rcx
movl -0xdc(%rbp), %edx
imulq %rdx, %rcx
movslq -0x384(%rbp), %rdx
addq %rdx, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %xmm0
movaps 0xd29a(%rip), %xmm1     # 0x1c020
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0xd29e(%rip), %xmm1     # 0x1c030
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
cvtsi2sdl -0x348(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x390(%rbp)
movl -0x340(%rbp), %eax
addl -0x344(%rbp), %eax
subl -0x348(%rbp), %eax
movl %eax, -0x34c(%rbp)
movl -0x340(%rbp), %eax
subl -0x348(%rbp), %eax
movl %eax, -0x350(%rbp)
movl -0x344(%rbp), %eax
subl -0x348(%rbp), %eax
movl %eax, -0x354(%rbp)
cvtsi2sdl -0x348(%rbp), %xmm0
cvtsi2sdl -0x34c(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x2a0(%rbp)
cvtsi2sdl -0x348(%rbp), %xmm0
cvtsi2sdl -0x33c(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x2a8(%rbp)
movsd -0x2a0(%rbp), %xmm0
movsd 0xd87f(%rip), %xmm1     # 0x1c6b8
ucomisd %xmm1, %xmm0
jne 0xee4e
jp 0xee4e
xorps %xmm0, %xmm0
movsd %xmm0, -0x3d0(%rbp)
jmp 0xeeb2
movsd 0xd86a(%rip), %xmm0     # 0x1c6c0
mulsd -0x2a0(%rbp), %xmm0
movsd 0xd852(%rip), %xmm1     # 0x1c6b8
addsd -0x2a0(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x98(%rbp)
movsd -0x98(%rbp), %xmm0
callq 0x3210
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
cvtsi2sdl 0x55642(%rip), %xmm1 # 0x644e8
divsd %xmm1, %xmm0
movsd %xmm0, -0x3d0(%rbp)
movsd -0x3d0(%rbp), %xmm0
movsd %xmm0, -0x2b0(%rbp)
movsd -0x2a8(%rbp), %xmm0
movsd 0xd7e6(%rip), %xmm1     # 0x1c6b8
ucomisd %xmm1, %xmm0
jne 0xeee7
jp 0xeee7
xorps %xmm0, %xmm0
movsd %xmm0, -0x3d8(%rbp)
jmp 0xef2f
movsd -0x2a8(%rbp), %xmm0
movsd %xmm0, -0xa0(%rbp)
movsd -0xa0(%rbp), %xmm0
callq 0x3210
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
cvtsi2sdl 0x555c5(%rip), %xmm1 # 0x644e8
divsd %xmm1, %xmm0
movsd %xmm0, -0x3d8(%rbp)
movsd -0x3d8(%rbp), %xmm0
movsd %xmm0, -0x2b8(%rbp)
cvtsi2sdl 0x138a1(%rip), %xmm1 # 0x227e8
movl 0x5559b(%rip), %eax     # 0x644e8
subl 0x55599(%rip), %eax     # 0x644ec
cvtsi2sd %eax, %xmm0
movsd %xmm1, -0x18(%rbp)
movsd %xmm0, -0x20(%rbp)
movsd -0x18(%rbp), %xmm0
movsd -0x20(%rbp), %xmm1
callq 0x30d0
movaps %xmm0, %xmm1
movsd 0xd73d(%rip), %xmm0     # 0x1c6b8
divsd %xmm1, %xmm0
movsd 0xd731(%rip), %xmm1     # 0x1c6b8
subsd %xmm0, %xmm1
cvtsi2sdl -0x350(%rbp), %xmm0
movsd %xmm1, -0x28(%rbp)
movsd %xmm0, -0x30(%rbp)
movsd -0x28(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
callq 0x30d0
movaps %xmm0, %xmm1
movsd 0xd701(%rip), %xmm0     # 0x1c6b8
subsd %xmm1, %xmm0
movsd %xmm0, -0x2c0(%rbp)
cvtsi2sdl 0x1381d(%rip), %xmm1 # 0x227e8
movl 0x55517(%rip), %eax     # 0x644e8
subl 0x55515(%rip), %eax     # 0x644ec
cvtsi2sd %eax, %xmm0
movsd %xmm1, -0x38(%rbp)
movsd %xmm0, -0x40(%rbp)
movsd -0x38(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
callq 0x30d0
movaps %xmm0, %xmm1
movsd 0xd6b9(%rip), %xmm0     # 0x1c6b8
divsd %xmm1, %xmm0
movsd 0xd6ad(%rip), %xmm1     # 0x1c6b8
subsd %xmm0, %xmm1
cvtsi2sdl -0x354(%rbp), %xmm0
movsd %xmm1, -0x48(%rbp)
movsd %xmm0, -0x50(%rbp)
movsd -0x48(%rbp), %xmm0
movsd -0x50(%rbp), %xmm1
callq 0x30d0
movaps %xmm0, %xmm1
movsd 0xd67d(%rip), %xmm0     # 0x1c6b8
subsd %xmm1, %xmm0
movsd %xmm0, -0x2c8(%rbp)
movsd -0x2c0(%rbp), %xmm0
mulsd -0x2c8(%rbp), %xmm0
movl -0x350(%rbp), %eax
addl -0x354(%rbp), %eax
cvtsi2sd %eax, %xmm1
mulsd %xmm1, %xmm0
movsd -0x2c0(%rbp), %xmm2
addsd -0x2c8(%rbp), %xmm2
movsd 0xd63d(%rip), %xmm1     # 0x1c6c0
mulsd -0x2c0(%rbp), %xmm1
movsd -0x2c8(%rbp), %xmm3
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x398(%rbp)
cvtsi2sdl -0x348(%rbp), %xmm0
subsd -0x398(%rbp), %xmm0
cvtsi2sdl -0x34c(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x2d0(%rbp)
cvtsi2sdl -0x348(%rbp), %xmm0
subsd -0x398(%rbp), %xmm0
cvtsi2sdl -0x33c(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x2d8(%rbp)
movsd -0x2d0(%rbp), %xmm0
movsd 0xd5a2(%rip), %xmm1     # 0x1c6b8
ucomisd %xmm1, %xmm0
jne 0xf12b
jp 0xf12b
xorps %xmm0, %xmm0
movsd %xmm0, -0x3e0(%rbp)
jmp 0xf18f
movsd 0xd58d(%rip), %xmm0     # 0x1c6c0
mulsd -0x2d0(%rbp), %xmm0
movsd 0xd575(%rip), %xmm1     # 0x1c6b8
addsd -0x2d0(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0xa8(%rbp)
movsd -0xa8(%rbp), %xmm0
callq 0x3210
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
cvtsi2sdl 0x55365(%rip), %xmm1 # 0x644e8
divsd %xmm1, %xmm0
movsd %xmm0, -0x3e0(%rbp)
movsd -0x3e0(%rbp), %xmm0
movsd %xmm0, -0x2e0(%rbp)
movsd -0x2d8(%rbp), %xmm0
movsd 0xd509(%rip), %xmm1     # 0x1c6b8
ucomisd %xmm1, %xmm0
jne 0xf1c4
jp 0xf1c4
xorps %xmm0, %xmm0
movsd %xmm0, -0x3e8(%rbp)
jmp 0xf20c
movsd -0x2d8(%rbp), %xmm0
movsd %xmm0, -0xb0(%rbp)
movsd -0xb0(%rbp), %xmm0
callq 0x3210
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
cvtsi2sdl 0x552e8(%rip), %xmm1 # 0x644e8
divsd %xmm1, %xmm0
movsd %xmm0, -0x3e8(%rbp)
movsd -0x3e8(%rbp), %xmm0
movsd %xmm0, -0x2e8(%rbp)
movsd -0x2d0(%rbp), %xmm0
movsd 0xd48c(%rip), %xmm1     # 0x1c6b8
subsd -0x2d0(%rbp), %xmm1
mulsd %xmm1, %xmm0
cvtsi2sdl -0x34c(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
movsd 0xd487(%rip), %xmm0     # 0x1c6d8
movsd %xmm0, -0x60(%rbp)
movsd -0x58(%rbp), %xmm0
movsd -0x60(%rbp), %xmm1
callq 0x30d0
movsd %xmm0, -0x2f0(%rbp)
movsd -0x2d8(%rbp), %xmm0
movsd 0xd43b(%rip), %xmm1     # 0x1c6b8
subsd -0x2d8(%rbp), %xmm1
mulsd %xmm1, %xmm0
cvtsi2sdl -0x33c(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x68(%rbp)
movsd 0xd436(%rip), %xmm0     # 0x1c6d8
movsd %xmm0, -0x70(%rbp)
movsd -0x68(%rbp), %xmm0
movsd -0x70(%rbp), %xmm1
callq 0x30d0
movsd %xmm0, -0x2f8(%rbp)
movsd -0x2d0(%rbp), %xmm1
movsd -0x2f0(%rbp), %xmm0
movsd 0xd3fa(%rip), %xmm2     # 0x1c6d0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x300(%rbp)
movsd -0x2d0(%rbp), %xmm1
movsd -0x2f0(%rbp), %xmm0
movsd 0xd3ca(%rip), %xmm2     # 0x1c6c8
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x308(%rbp)
movsd -0x2d8(%rbp), %xmm1
movsd -0x2f8(%rbp), %xmm0
movsd 0xd3aa(%rip), %xmm2     # 0x1c6d0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x310(%rbp)
movsd -0x2d8(%rbp), %xmm1
movsd -0x2f8(%rbp), %xmm0
movsd 0xd37a(%rip), %xmm2     # 0x1c6c8
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x318(%rbp)
movsd -0x308(%rbp), %xmm0
movsd 0xd34a(%rip), %xmm1     # 0x1c6b8
ucomisd %xmm1, %xmm0
jne 0xf383
jp 0xf383
xorps %xmm0, %xmm0
movsd %xmm0, -0x3f0(%rbp)
jmp 0xf3e7
movsd 0xd335(%rip), %xmm0     # 0x1c6c0
mulsd -0x308(%rbp), %xmm0
movsd 0xd31d(%rip), %xmm1     # 0x1c6b8
addsd -0x308(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0xb8(%rbp)
movsd -0xb8(%rbp), %xmm0
callq 0x3210
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
cvtsi2sdl 0x5510d(%rip), %xmm1 # 0x644e8
divsd %xmm1, %xmm0
movsd %xmm0, -0x3f0(%rbp)
movsd -0x3f0(%rbp), %xmm0
movsd %xmm0, -0x320(%rbp)
movsd -0x300(%rbp), %xmm0
movsd 0xd2b1(%rip), %xmm1     # 0x1c6b8
ucomisd %xmm1, %xmm0
jne 0xf41c
jp 0xf41c
xorps %xmm0, %xmm0
movsd %xmm0, -0x3f8(%rbp)
jmp 0xf480
movsd 0xd29c(%rip), %xmm0     # 0x1c6c0
mulsd -0x300(%rbp), %xmm0
movsd 0xd284(%rip), %xmm1     # 0x1c6b8
addsd -0x300(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0xc0(%rbp)
movsd -0xc0(%rbp), %xmm0
callq 0x3210
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
cvtsi2sdl 0x55074(%rip), %xmm1 # 0x644e8
divsd %xmm1, %xmm0
movsd %xmm0, -0x3f8(%rbp)
movsd -0x3f8(%rbp), %xmm0
movsd %xmm0, -0x328(%rbp)
movsd -0x318(%rbp), %xmm0
movsd 0xd218(%rip), %xmm1     # 0x1c6b8
ucomisd %xmm1, %xmm0
jne 0xf4b5
jp 0xf4b5
xorps %xmm0, %xmm0
movsd %xmm0, -0x400(%rbp)
jmp 0xf4fd
movsd -0x318(%rbp), %xmm0
movsd %xmm0, -0xc8(%rbp)
movsd -0xc8(%rbp), %xmm0
callq 0x3210
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
cvtsi2sdl 0x54ff7(%rip), %xmm1 # 0x644e8
divsd %xmm1, %xmm0
movsd %xmm0, -0x400(%rbp)
movsd -0x400(%rbp), %xmm0
movsd %xmm0, -0x330(%rbp)
movsd -0x310(%rbp), %xmm0
movsd 0xd19b(%rip), %xmm1     # 0x1c6b8
ucomisd %xmm1, %xmm0
jne 0xf532
jp 0xf532
xorps %xmm0, %xmm0
movsd %xmm0, -0x408(%rbp)
jmp 0xf57a
movsd -0x310(%rbp), %xmm0
movsd %xmm0, -0xd0(%rbp)
movsd -0xd0(%rbp), %xmm0
callq 0x3210
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
cvtsi2sdl 0x54f7a(%rip), %xmm1 # 0x644e8
divsd %xmm1, %xmm0
movsd %xmm0, -0x408(%rbp)
movsd -0x408(%rbp), %xmm0
movsd %xmm0, -0x338(%rbp)
movsd -0x2d0(%rbp), %xmm0
movsd -0x2f0(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x458(%rbp)
movabsq $0x3fe0000000000000, %rax # imm = 0x3FE0000000000000
movq %rax, -0x450(%rbp)
movq %rax, -0x78(%rbp)
movq %rax, -0x80(%rbp)
movsd -0x78(%rbp), %xmm0
movsd -0x80(%rbp), %xmm1
callq 0x30d0
movaps %xmm0, %xmm1
movsd -0x458(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
callq 0x3030
movq -0x450(%rbp), %rax
movsd 0xd0dd(%rip), %xmm1     # 0x1c6d8
movsd %xmm1, -0x440(%rbp)
mulsd %xmm1, %xmm0
movsd %xmm0, -0x3a0(%rbp)
movsd -0x2d8(%rbp), %xmm0
movsd -0x2f8(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x448(%rbp)
movq %rax, -0x88(%rbp)
movq %rax, -0x90(%rbp)
movsd -0x88(%rbp), %xmm0
movsd -0x90(%rbp), %xmm1
callq 0x30d0
movaps %xmm0, %xmm1
movsd -0x448(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x10(%rbp)
movsd -0x10(%rbp), %xmm0
callq 0x3030
movsd -0x440(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, -0x3a8(%rbp)
movsd -0x3a0(%rbp), %xmm0
cvtsi2sdl 0x54e50(%rip), %xmm1 # 0x644e0
mulsd %xmm1, %xmm0
cvtsi2sdl 0x54e48(%rip), %xmm1 # 0x644e4
mulsd %xmm1, %xmm0
movsd %xmm0, -0x3b0(%rbp)
movsd -0x3a8(%rbp), %xmm0
cvtsi2sdl 0x54e28(%rip), %xmm1 # 0x644e0
mulsd %xmm1, %xmm0
cvtsi2sdl 0x54e20(%rip), %xmm1 # 0x644e4
mulsd %xmm1, %xmm0
movsd %xmm0, -0x3b8(%rbp)
movq -0x298(%rbp), %rdi
movq 0x18(%rbp), %rdx
movl -0x36c(%rbp), %eax
movl -0xf4(%rbp), %ecx
imull %ecx, %eax
movl -0x37c(%rbp), %ecx
addl %ecx, %eax
cltq
shlq $0x8, %rax
addq %rax, %rdx
movq 0x10(%rbp), %rcx
movslq -0x384(%rbp), %rax
shlq $0x8, %rax
addq %rax, %rcx
movsd -0x390(%rbp), %xmm0
movsd %xmm0, -0x438(%rbp)
movl -0x348(%rbp), %r8d
cvttsd2si -0x398(%rbp), %rax
movl %eax, %r9d
movl -0x340(%rbp), %r10d
movl -0x344(%rbp), %eax
movsd -0x2a0(%rbp), %xmm1
movsd -0x2b0(%rbp), %xmm2
movsd -0x2a8(%rbp), %xmm3
movsd -0x2b8(%rbp), %xmm4
movsd -0x2d0(%rbp), %xmm5
movsd -0x300(%rbp), %xmm6
movsd -0x308(%rbp), %xmm7
movsd -0x2e0(%rbp), %xmm8
movsd -0x320(%rbp), %xmm0
movsd %xmm0, -0x430(%rbp)
movsd -0x328(%rbp), %xmm0
movsd %xmm0, -0x428(%rbp)
movsd -0x2d8(%rbp), %xmm0
movsd %xmm0, -0x420(%rbp)
movsd -0x310(%rbp), %xmm0
movsd %xmm0, -0x418(%rbp)
movsd -0x318(%rbp), %xmm15
movsd -0x2e8(%rbp), %xmm14
movsd -0x330(%rbp), %xmm13
movsd -0x338(%rbp), %xmm12
movsd -0x3a0(%rbp), %xmm11
movsd -0x3a8(%rbp), %xmm10
movsd -0x3b0(%rbp), %xmm9
movsd -0x3b8(%rbp), %xmm0
movsd %xmm0, -0x410(%rbp)
movsd -0x438(%rbp), %xmm0
leaq 0xdaa5(%rip), %rsi      # 0x1d2c1
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
movsd %xmm8, 0x10(%rsp)
movsd -0x430(%rbp), %xmm8
movsd %xmm8, 0x18(%rsp)
movsd -0x428(%rbp), %xmm8
movsd %xmm8, 0x20(%rsp)
movsd -0x420(%rbp), %xmm8
movsd %xmm8, 0x28(%rsp)
movsd -0x418(%rbp), %xmm8
movsd %xmm8, 0x30(%rsp)
movsd -0x410(%rbp), %xmm8
movsd %xmm15, 0x38(%rsp)
movsd %xmm14, 0x40(%rsp)
movsd %xmm13, 0x48(%rsp)
movsd %xmm12, 0x50(%rsp)
movsd %xmm11, 0x58(%rsp)
movsd %xmm10, 0x60(%rsp)
movsd %xmm9, 0x68(%rsp)
movsd %xmm8, 0x70(%rsp)
movb $0x8, %al
callq 0x3290
movl -0x384(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x384(%rbp)
jmp 0xec9d
jmp 0xf8c9
movl -0x37c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x37c(%rbp)
jmp 0xeb5b
movq -0x190(%rbp), %rdi
movslq -0x36c(%rbp), %rax
movslq -0xf4(%rbp), %rcx
imulq %rcx, %rax
movl -0xdc(%rbp), %ecx
imulq %rcx, %rax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x378(%rbp), %rsi
callq 0x3330
movl -0x36c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x36c(%rbp)
jmp 0xeae5
movq -0x298(%rbp), %rdi
callq 0x30e0
addq $0x4d0, %rsp            # imm = 0x4D0
popq %rbp
retq
nopl (%rax)