// File: /workspace/github_c_makefile_star2_O2/yhg926[P]public_kssd/command_dist.c
// Function: mco_cbdco_nobin_dist
void mco_cbdco_nobin_dist(dist_opt_val_t *opt_val_in)
{
  int p_fit_mem = opt_val_in->p;
  llong mem_limit = (llong)opt_val_in->mmry*BBILLION;
  char *refmco_dname = opt_val_in->refpath;
  char *qryco_dname = opt_val_in->remaining_args[0];
  const char *distout_dir = opt_val_in->outdir;
  mkdir(distout_dir,0700);
  FILE *refmco_dstat_fp, *qryco_dstat_fp;
  char *refmco_dstat_fpath = malloc(PATHLEN*sizeof(char));
  char *qryco_dstat_fpath = malloc(PATHLEN*sizeof(char));
  sprintf(refmco_dstat_fpath,"%s/%s",refmco_dname,mco_dstat);
  sprintf(qryco_dstat_fpath,"%s/%s",qryco_dname,co_dstat);
  if( (refmco_dstat_fp = fopen(refmco_dstat_fpath,"rb")) == NULL )
    err(errno,"need provied mco dir path for mco_co_dist() arg 1. refmco_dstat_fpath");
  if( (qryco_dstat_fp = fopen(qryco_dstat_fpath,"rb")) == NULL )
    err(errno,"need provied co dir path for mco_co_dist() arg 2.  qryco_dstat_fpath");
  mco_dstat_t mco_dstat_readin ;
  co_dstat_t co_dstat_readin ;
  fread(&mco_dstat_readin,sizeof(mco_dstat_readin),1,refmco_dstat_fp);
  fread(&co_dstat_readin,sizeof(co_dstat_readin),1,qryco_dstat_fp);
  ctx_obj_ct_t * qry_ctx_ct_list = malloc(co_dstat_readin.infile_num * sizeof(ctx_obj_ct_t));
  ctx_obj_ct_t * ref_ctx_ct_list = malloc(mco_dstat_readin.infile_num * sizeof(ctx_obj_ct_t));
  fread(qry_ctx_ct_list,sizeof(ctx_obj_ct_t),co_dstat_readin.infile_num,qryco_dstat_fp);
  fread(ref_ctx_ct_list,sizeof(ctx_obj_ct_t),mco_dstat_readin.infile_num,refmco_dstat_fp);
  char (*cofname)[PATHLEN] = malloc(co_dstat_readin.infile_num * PATHLEN);
  char (*mcofname)[PATHLEN] = malloc(mco_dstat_readin.infile_num * PATHLEN);
  fread(cofname,PATHLEN,co_dstat_readin.infile_num,qryco_dstat_fp);
  fread(mcofname,PATHLEN,mco_dstat_readin.infile_num,refmco_dstat_fp);
  fclose(refmco_dstat_fp);
  fclose(qryco_dstat_fp);
  if( !(mco_dstat_readin.comp_num == co_dstat_readin.comp_num) )
    err(errno,"query args not match ref args: ref.comp_num = %d vs. %d = qry.comp_num",
    mco_dstat_readin.comp_num, co_dstat_readin.comp_num);
  if(!(mco_dstat_readin.shuf_id == co_dstat_readin.shuf_id))
    err(errno,"query args not match ref args: ref.shuf_id = %d vs. %d = qry.shuf_id",
    mco_dstat_readin.shuf_id, co_dstat_readin.shuf_id);
  char onedist[PATHLEN];
  sprintf(onedist,"%s/sharedk_ct.dat",distout_dir);
  int dist_bfp = open(onedist,O_RDWR,0600) ;
  if (dist_bfp == -1) {
    close(dist_bfp);
    dist_bfp = open(onedist,O_RDWR|O_CREAT, 0600) ;
    if (dist_bfp == -1) err(errno," mco_cbdco_nobin_dist()::%s",onedist);
  }else err(EEXIST," mco_cbdco_nobin_dist():%s",onedist);
  int page_sz = sysconf(_SC_PAGESIZE);
  size_t comp_sz = (1LLU << 4*COMPONENT_SZ);
  if( comp_sz % page_sz != 0 ) err(errno,"comp_sz %d is not multiple of page_sz %d ",comp_sz,page_sz );
  size_t maplength;
  int bnum_infile;
  size_t *mco_offset_index = malloc(sizeof(size_t) * comp_sz);
#define MCOMM_SZ 442317172
  gidobj_t* mco_mem = malloc( sizeof(gidobj_t) * MCOMM_SZ );
  char mco_fcode[PATHLEN]; char mco_index_fcode[PATHLEN];
  char co_cbd_fcode[PATHLEN];char co_cbd_index_fcode[PATHLEN];
  ref_seq_num = mco_dstat_readin.infile_num ;
  qry_seq_num = co_dstat_readin.infile_num ;
  kmerlen = co_dstat_readin.kmerlen;
  dim_reduct_len = co_dstat_readin.dim_rd_len;
  char distf[PATHLEN];
  sprintf(distf, "%s/distance.out", distout_dir);
  int num_unit_mem = mem_limit / (mco_dstat_readin.infile_num*sizeof(ctx_obj_ct_t) * page_sz);
  if(num_unit_mem < 1) err(errno,"at least %fG memory needed to map ./onedist, specify more memory use -m",
      (float)mco_dstat_readin.infile_num*sizeof(ctx_obj_ct_t) * page_sz/1073741824 );
  int num_cof_batch = num_unit_mem*page_sz;
  if( opt_val_in->shared_kmerpath[0] != '\0'){
    dist_print_nobin(distout_dir,ref_seq_num, qry_seq_num, ref_ctx_ct_list, qry_ctx_ct_list,num_cof_batch,mcofname, cofname,opt_val_in);
    return;
  }
  size_t unitsz_distf_mapped = (size_t)num_cof_batch * mco_dstat_readin.infile_num * sizeof(ctx_obj_ct_t) ;
  int num_mapping_distf = co_dstat_readin.infile_num / num_cof_batch ;
  size_t disf_sz = (size_t)mco_dstat_readin.infile_num*co_dstat_readin.infile_num*sizeof(ctx_obj_ct_t) ;
  if(ftruncate(dist_bfp, disf_sz) == -1) err(errno,"mco_cbdco_nobin_dist()::ftruncate");
  close(dist_bfp);
  dist_bfp = open(onedist,O_RDWR, 0600);
  if (dist_bfp == -1) err(errno,"mco_cbdco_nobin_dist()::%s",onedist);
  ctx_obj_ct_t *ctx_obj_ct = mmap(NULL,disf_sz,PROT_READ | PROT_WRITE,MAP_SHARED,dist_bfp,0);
  if(ctx_obj_ct == MAP_FAILED) err(errno,"ctx_obj_ct mmap error");
  close(dist_bfp);
 mmp_any_t* mco_offset_index_comps = malloc(sizeof( mmp_any_t) * mco_dstat_readin.comp_num);
 mmp_any_t* mco_mem_comps = malloc(sizeof( mmp_any_t) * mco_dstat_readin.comp_num);
 mmp_any_t* fco_pos_comps = malloc(sizeof( mmp_any_t) * mco_dstat_readin.comp_num);
 mmp_any_t* cbd_fcode_mem_comps = malloc(sizeof( mmp_any_t) * mco_dstat_readin.comp_num);
 for ( int j = 0; j < mco_dstat_readin.comp_num; j++ ) {
  sprintf(mco_index_fcode,"%s/%s.%d",refmco_dname,mco_idx_prefix,j);
  mco_offset_index_comps[j] = mmp_any(mco_index_fcode);
  sprintf(mco_fcode,"%s/%s.%d",refmco_dname,mco_gids_prefix,j);
  mco_mem_comps[j] = mmp_any(mco_fcode);
  sprintf(co_cbd_index_fcode,"%s/%s.%d",qryco_dname,idx_prefix,j);
  fco_pos_comps[j] = mmp_any(co_cbd_index_fcode);
  sprintf(co_cbd_fcode,"%s/%s.%d",qryco_dname,skch_prefix,j);
  cbd_fcode_mem_comps[j] = mmp_any(co_cbd_fcode);
 }
  for(int b=0;b<=num_mapping_distf;b++){
    if(b==num_mapping_distf) bnum_infile = co_dstat_readin.infile_num % num_cof_batch ;
  else bnum_infile = num_cof_batch;
    if( bnum_infile == 0 ) continue;
    maplength = (size_t)bnum_infile * mco_dstat_readin.infile_num * sizeof(ctx_obj_ct_t);
printf("disf_sz=%lu\trefnum=%d\tqrynum=%d\tnum_mapping_distf=%d\tbatch_qrynum=%d\t%lu\t%lu\n",disf_sz,mco_dstat_readin.infile_num,co_dstat_readin.infile_num,num_mapping_distf,bnum_infile,maplength,(size_t)b*unitsz_distf_mapped);
    for ( int j = 0; j < mco_dstat_readin.comp_num; j++ ) {
   size_t *mco_offset_index= (size_t *) mco_offset_index_comps[j].mmp;
   gidobj_t* mco_mem = (gidobj_t*) mco_mem_comps[j].mmp;
   size_t *fco_pos = (size_t *)fco_pos_comps[j].mmp;
   unsigned int *cbd_fcode_mem = (unsigned int *)cbd_fcode_mem_comps[j].mmp;
#pragma omp parallel for num_threads(p_fit_mem) schedule(guided)
      for(int kind = 0; kind < bnum_infile; kind++){
        int k = b*num_cof_batch + kind;
        if(qry_ctx_ct_list[k]==0) continue;
        size_t distf_offset = (size_t)k * mco_dstat_readin.infile_num;
        for(size_t n = fco_pos[k]; n < fco_pos[k+1]; n++){
          unsigned int ind = cbd_fcode_mem[n];
     size_t s = ind > 0 ? mco_offset_index[ind-1] : 0 ;
     for(size_t g = s; g < mco_offset_index[ind] ; g++)
      ctx_obj_ct[distf_offset + mco_mem[g]]++ ;
        }
      }
    }
    if ( msync( ctx_obj_ct + (size_t)b*num_cof_batch*mco_dstat_readin.infile_num, maplength, MS_SYNC ) < 0 )
      err(errno,"mco_cbdco_nobin_dist()::ctx_obj_ct msync failed");
    munmap(ctx_obj_ct + (size_t)b*num_cof_batch*mco_dstat_readin.infile_num, maplength);
  }
 for ( int j = 0; j < mco_dstat_readin.comp_num; j++ ){
  munmap(mco_offset_index_comps[j].mmp,mco_offset_index_comps[j].fsize);
  munmap(mco_mem_comps[j].mmp,mco_mem_comps[j].fsize);
  munmap(fco_pos_comps[j].mmp,fco_pos_comps[j].fsize);
  munmap(cbd_fcode_mem_comps[j].mmp,cbd_fcode_mem_comps[j].fsize);
 }
  free(mco_offset_index_comps);
  free( mco_mem_comps);
  free( fco_pos_comps);
  free (cbd_fcode_mem_comps);
  dist_print_nobin(distout_dir,ref_seq_num, qry_seq_num, ref_ctx_ct_list, qry_ctx_ct_list,num_cof_batch,mcofname,cofname,opt_val_in);
  free(mco_offset_index);
  free(mco_mem);
  free(ref_ctx_ct_list);
  free(qry_ctx_ct_list);
  free(mcofname);
  free(cofname);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x718, %rsp            # imm = 0x718
movsd 0x110(%rdi), %xmm0
movapd %xmm0, 0x70(%rsp)
leaq 0x122(%rdi), %r12
movq 0x658(%rdi), %rax
movq (%rax), %r13
movq %rdi, 0x98(%rsp)
addq $0x322, %rdi            # imm = 0x322
movq %rdi, 0x20(%rsp)
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x3090
movl $0x100, %edi            # imm = 0x100
callq 0x3340
movq %rax, %rbx
movl $0x100, %edi            # imm = 0x100
callq 0x3340
movq %rax, %r14
leaq 0xcef2(%rip), %r15      # 0x14393
leaq 0xd2c5(%rip), %rcx      # 0x1476d
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xd2a1(%rip), %rcx      # 0x14760
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xcb91(%rip), %rsi      # 0x14067
movq %rbx, %rdi
callq 0x33a0
testq %rax, %rax
je 0x7ccc
movq %rax, %rbx
movq %r13, 0x38(%rsp)
movq %r12, 0x58(%rsp)
leaq 0xcb6c(%rip), %rsi      # 0x14067
movq %r14, %rdi
callq 0x33a0
testq %rax, %rax
je 0x7cdc
movq %rax, %r12
leaq 0xfc(%rsp), %rdi
pushq $0x14
popq %rsi
pushq $0x1
popq %r14
movq %rdi, %rbp
movq %r14, %rdx
movq %rbx, %rcx
callq 0x30c0
leaq 0xd8(%rsp), %r15
pushq $0x20
popq %rsi
movq %r15, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x30c0
movl 0x14(%r15), %eax
movl %eax, 0x18(%rsp)
movslq %eax, %r13
leaq (,%r13,4), %rdi
movq %rdi, 0x30(%rsp)
callq 0x3340
movq %rax, %r15
movl 0x10(%rbp), %eax
movl %eax, 0x14(%rsp)
movq %rbx, %rbp
movq %rbx, 0x8(%rsp)
movslq %eax, %rbx
leaq (,%rbx,4), %rdi
movq %rdi, 0xa8(%rsp)
callq 0x3340
movq %rax, %r14
pushq $0x4
popq %rsi
movq %r15, %rdi
movq %r13, %rdx
movq %r12, %rcx
callq 0x30c0
movq %r14, 0x90(%rsp)
movq %r14, %rdi
pushq $0x4
popq %rsi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x30c0
movq %r13, %rdi
shlq $0x8, %rdi
callq 0x3340
movq %rax, %r14
movq %rbx, %rdi
shlq $0x8, %rdi
callq 0x3340
movq %rax, %rbp
movl $0x100, %esi            # imm = 0x100
movq %r14, 0x88(%rsp)
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
callq 0x30c0
movl $0x100, %esi            # imm = 0x100
movq %rbp, 0x80(%rsp)
movq %rbp, %rdi
movq %rbx, 0x60(%rsp)
movq %rbx, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x30c0
movq %rbx, %rdi
callq 0x3100
movq %r12, %rdi
callq 0x3100
leaq 0xfc(%rsp), %rax
movslq 0xc(%rax), %r14
leaq 0xd8(%rsp), %rax
movl 0x10(%rax), %ebp
cmpl %ebp, %r14d
jne 0x7cec
movl 0xfc(%rsp), %ebp
movl 0xd8(%rsp), %r12d
cmpl %r12d, %ebp
jne 0x7d01
leaq 0xd979(%rip), %rsi      # 0x14fdf
leaq 0x110(%rsp), %r12
movq %r12, %rdi
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0x3430
pushq $0x2
popq %rsi
movq %r12, %rdi
movl $0x180, %edx            # imm = 0x180
xorl %eax, %eax
callq 0x3380
cmpl $-0x1, %eax
jne 0x7d1b
pushq $-0x1
popq %rdi
callq 0x3220
leaq 0x110(%rsp), %rdi
pushq $0x42
popq %rsi
movl $0x180, %edx            # imm = 0x180
xorl %eax, %eax
callq 0x3380
cmpl $-0x1, %eax
je 0x7d2a
movl %eax, %ebp
pushq $0x1e
popq %rdi
callq 0x33d0
movq %rax, %r12
movslq %r12d, %rbx
movl $0x10000000, %eax       # imm = 0x10000000
xorl %edx, %edx
divq %rbx
testq %rdx, %rdx
jne 0x7d3a
movq %r14, 0x8(%rsp)
movapd 0x70(%rsp), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
subsd 0xd012(%rip), %xmm0     # 0x14710
sarq $0x3f, %rcx
cvttsd2si %xmm0, %r13
andq %rcx, %r13
orq %rax, %r13
shlq $0x1e, %r13
movl 0x14(%rsp), %eax
movl %eax, 0x55dd5(%rip)     # 0x5d4f0
movl 0x18(%rsp), %eax
movl %eax, 0x55dcf(%rip)     # 0x5d4f4
movl 0xe0(%rsp), %eax
movl 0xe4(%rsp), %ecx
movl %eax, 0x55dbf(%rip)     # 0x5d4f8
movl %ecx, 0x55dbd(%rip)     # 0x5d4fc
leaq 0xd840(%rip), %rsi      # 0x14f86
leaq 0x310(%rsp), %rdi
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0x3430
imulq 0xa8(%rsp), %rbx
movq %r13, %rax
xorl %edx, %edx
divq %rbx
movq %rax, %r9
testl %r9d, %r9d
jle 0x7d57
imull %r12d, %r9d
movq 0x98(%rsp), %rax
cmpb $0x0, 0x54b(%rax)
je 0x77cc
movl 0x55d5e(%rip), %esi     # 0x5d4f0
movl 0x55d5c(%rip), %edx     # 0x5d4f4
subq $0x8, %rsp
movq 0x28(%rsp), %rdi
movq 0x98(%rsp), %rcx
movq %r15, %r8
pushq %rax
pushq 0x98(%rsp)
pushq 0x98(%rsp)
callq 0xa1f5
addq $0x738, %rsp            # imm = 0x738
jmp 0x7cac
movl 0x18(%rsp), %eax
cltd
movq %r9, 0x28(%rsp)
idivl %r9d
movl %eax, 0x1c(%rsp)
movl %edx, 0x6c(%rsp)
movq 0x30(%rsp), %rsi
imulq 0x60(%rsp), %rsi
movl %ebp, %edi
movq %rsi, 0x30(%rsp)
callq 0x31e0
cmpl $-0x1, %eax
je 0x7d8f
movl %ebp, %edi
callq 0x3220
leaq 0x110(%rsp), %rdi
pushq $0x2
popq %rsi
movl $0x180, %edx            # imm = 0x180
xorl %eax, %eax
callq 0x3380
cmpl $-0x1, %eax
je 0x7da2
movl %eax, %r12d
pushq $0x3
popq %rdx
pushq $0x1
popq %rcx
xorl %edi, %edi
movq 0x30(%rsp), %rsi
movl %eax, %r8d
xorl %r9d, %r9d
callq 0x3150
cmpq $-0x1, %rax
je 0x7dbf
movq %rax, %rbp
movslq 0x28(%rsp), %rax
movq %rax, 0xa0(%rsp)
movl %r12d, %edi
callq 0x3220
movq 0x8(%rsp), %r13
movq %r13, %r12
shlq $0x4, %r12
movq %r12, %rdi
callq 0x3340
movq %rax, 0x70(%rsp)
movq %r12, %rdi
callq 0x3340
movq %rax, 0x50(%rsp)
movq %r12, %rdi
callq 0x3340
movq %rax, 0x48(%rsp)
movq %r12, %rdi
callq 0x3340
testl %r13d, %r13d
movl $0x0, %ecx
cmovgl %r13d, %ecx
movq %rcx, 0x8(%rsp)
movq %rax, 0x40(%rsp)
pushq $0x8
popq %r12
xorl %r13d, %r13d
cmpq %r13, 0x8(%rsp)
je 0x79cf
leaq 0x610(%rsp), %rbx
movq %rbx, %rdi
leaq 0xc784(%rip), %rsi      # 0x1405e
movq 0x58(%rsp), %r14
movq %r14, %rdx
leaq 0xc76b(%rip), %rcx      # 0x14054
movl %r13d, %r8d
xorl %eax, %eax
callq 0x3430
movq %rbx, %rdi
callq 0xa86f
movq 0x70(%rsp), %rcx
movq %rax, -0x8(%rcx,%r12)
movq %rdx, (%rcx,%r12)
leaq 0x210(%rsp), %rdi
leaq 0xc746(%rip), %rbx      # 0x1405e
movq %rbx, %rsi
movq %r14, %rdx
leaq 0xc72b(%rip), %rcx      # 0x14050
movl %r13d, %r8d
xorl %eax, %eax
callq 0x3430
leaq 0x210(%rsp), %rdi
callq 0xa86f
movq 0x50(%rsp), %rcx
movq %rax, -0x8(%rcx,%r12)
movq %rdx, (%rcx,%r12)
leaq 0x410(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq 0x38(%rsp), %rbx
movq %rbx, %rdx
leaq 0xe61c(%rip), %rcx      # 0x15f83
movl %r13d, %r8d
xorl %eax, %eax
callq 0x3430
movq %r14, %rdi
callq 0xa86f
movq 0x48(%rsp), %rcx
movq %rax, -0x8(%rcx,%r12)
movq %rdx, (%rcx,%r12)
leaq 0x510(%rsp), %r14
movq %r14, %rdi
leaq 0xc6c5(%rip), %rsi      # 0x1405e
movq %rbx, %rdx
leaq 0xe5d9(%rip), %rcx      # 0x15f7c
movl %r13d, %r8d
xorl %eax, %eax
callq 0x3430
movq %r14, %rdi
callq 0xa86f
movq 0x40(%rsp), %rcx
movq %rax, -0x8(%rcx,%r12)
movq %rdx, (%rcx,%r12)
incq %r13
addq $0x10, %r12
jmp 0x78bd
movq 0x60(%rsp), %rax
imulq 0xa0(%rsp), %rax
movq %rax, 0xb8(%rsp)
leaq (,%rax,4), %rax
movq %rax, 0xb0(%rsp)
movl 0x1c(%rsp), %eax
movslq %eax, %rcx
movq %rcx, 0xc8(%rsp)
movl %eax, %eax
movq %rax, 0xc0(%rsp)
xorl %ebx, %ebx
movq 0x28(%rsp), %rax
cmpq 0xc8(%rsp), %rbx
jg 0x7baf
cmpq 0xc0(%rsp), %rbx
movl %eax, %r12d
cmovel 0x6c(%rsp), %r12d
testl %r12d, %r12d
je 0x7ba7
movslq %r12d, %r11
imulq 0xa8(%rsp), %r11
movq 0xb0(%rsp), %r10
imulq %rbx, %r10
leaq 0xd714(%rip), %rdi      # 0x15170
movq 0x30(%rsp), %rsi
movl 0x14(%rsp), %edx
movl 0x18(%rsp), %ecx
movl 0x1c(%rsp), %r8d
movl %r12d, %r9d
xorl %eax, %eax
pushq %r10
movq %r11, 0xd8(%rsp)
pushq %r11
callq 0x3170
addq $0x10, %rsp
movq %rbx, 0x38(%rsp)
movq %rbx, %rax
imulq 0xa0(%rsp), %rax
testl %r12d, %r12d
movl $0x0, %ecx
cmovlel %ecx, %r12d
xorl %r8d, %r8d
cmpq 0x8(%rsp), %r8
je 0x7b5b
movq %r8, 0x58(%rsp)
shlq $0x4, %r8
movq 0x70(%rsp), %rcx
movq 0x8(%rcx,%r8), %rdx
movq 0x50(%rsp), %rcx
movq 0x8(%rcx,%r8), %rsi
movq 0x48(%rsp), %rcx
movq 0x8(%rcx,%r8), %rdi
movq 0x40(%rsp), %rcx
movq 0x8(%rcx,%r8), %r8
xorl %r9d, %r9d
cmpq %r12, %r9
je 0x7b4e
leaq (%r9,%rax), %r11
cmpl $0x0, (%r15,%r11,4)
je 0x7b49
movq %r11, %rbx
imulq 0x60(%rsp), %rbx
movq (%rdi,%r11,8), %r10
movq 0x8(%rdi,%r11,8), %r11
leaq (,%rbx,4), %r13
addq %rbp, %r13
cmpq %r11, %r10
jae 0x7b49
movl (%r8,%r10,4), %r14d
testq %r14, %r14
je 0x7b2c
leal -0x1(%r14), %ebx
movq (%rdx,%rbx,8), %rbx
jmp 0x7b2e
xorl %ebx, %ebx
movq (%rdx,%r14,8), %r14
cmpq %r14, %rbx
jae 0x7b44
movl (%rsi,%rbx,4), %ecx
incl (%r13,%rcx,4)
incq %rbx
jmp 0x7b32
incq %r10
jmp 0x7b14
incq %r9
jmp 0x7ae7
movq 0x58(%rsp), %r8
incq %r8
jmp 0x7aa8
movq 0xb8(%rsp), %rax
imulq 0x38(%rsp), %rax
leaq (,%rax,4), %r12
addq %rbp, %r12
movq %r12, %rdi
movq 0xd0(%rsp), %rbx
movq %rbx, %rsi
pushq $0x4
popq %rdx
callq 0x3120
testl %eax, %eax
js 0x7cb7
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3360
movq 0x28(%rsp), %rax
movq 0x38(%rsp), %rbx
incq %rbx
jmp 0x7a15
shlq $0x4, 0x8(%rsp)
xorl %r14d, %r14d
cmpq %r14, 0x8(%rsp)
je 0x7c11
movq 0x70(%rsp), %rax
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdi
callq 0x3360
movq 0x50(%rsp), %rax
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdi
callq 0x3360
movq 0x48(%rsp), %rax
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdi
callq 0x3360
movq 0x40(%rsp), %rax
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdi
callq 0x3360
addq $0x10, %r14
jmp 0x7bb8
movq 0x70(%rsp), %rdi
callq 0x3040
movq 0x50(%rsp), %rdi
callq 0x3040
movq 0x48(%rsp), %rdi
callq 0x3040
movq 0x40(%rsp), %rdi
callq 0x3040
movl 0x558b1(%rip), %esi     # 0x5d4f0
movl 0x558af(%rip), %edx     # 0x5d4f4
subq $0x8, %rsp
movq 0x28(%rsp), %rdi
movq 0x98(%rsp), %rbx
movq %rbx, %rcx
movq %r15, %r8
movq 0x30(%rsp), %r9
pushq 0xa0(%rsp)
movq 0x98(%rsp), %r14
pushq %r14
movq 0x98(%rsp), %r12
pushq %r12
callq 0xa1f5
addq $0x20, %rsp
movq %rbx, %rdi
callq 0x3040
movq %r15, %rdi
callq 0x3040
movq %r12, %rdi
callq 0x3040
movq %r14, %rdi
callq 0x3040
addq $0x718, %rsp            # imm = 0x718
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3060
movl (%rax), %edi
leaq 0xd4f9(%rip), %rsi      # 0x151be
xorl %eax, %eax
callq 0x3330
callq 0x3060
movl (%rax), %edi
leaq 0xd0ee(%rip), %rsi      # 0x14dc8
jmp 0x7cc5
callq 0x3060
movl (%rax), %edi
leaq 0xd124(%rip), %rsi      # 0x14e0e
jmp 0x7cc5
callq 0x3060
movl (%rax), %edi
leaq 0xd159(%rip), %rsi      # 0x14e53
movl %r14d, %edx
movl %ebp, %ecx
jmp 0x7d14
callq 0x3060
movl (%rax), %edi
leaq 0xd18b(%rip), %rsi      # 0x14e9a
movl %ebp, %edx
movl %r12d, %ecx
xorl %eax, %eax
callq 0x3330
leaq 0xd411(%rip), %rsi      # 0x15133
pushq $0x11
popq %rdi
jmp 0x7db0
callq 0x3060
movl (%rax), %edi
leaq 0xd3df(%rip), %rsi      # 0x15117
jmp 0x7db0
callq 0x3060
movl (%rax), %edi
leaq 0xd2dc(%rip), %rsi      # 0x15024
movl $0x10000000, %edx       # imm = 0x10000000
movl %r12d, %ecx
xorl %eax, %eax
callq 0x3330
callq 0x3060
cvtsi2ssl 0x14(%rsp), %xmm0
mulss 0xc9de(%rip), %xmm0     # 0x14748
movl (%rax), %edi
cvtsi2ss %r12d, %xmm1
mulss %xmm0, %xmm1
mulss 0xc9cf(%rip), %xmm1     # 0x1474c
cvtss2sd %xmm1, %xmm0
leaq 0xd2c6(%rip), %rsi      # 0x1504e
movb $0x1, %al
callq 0x3330
callq 0x3060
movl (%rax), %edi
leaq 0xd3b1(%rip), %rsi      # 0x1514e
jmp 0x7cc5
callq 0x3060
movl (%rax), %edi
leaq 0xd368(%rip), %rsi      # 0x15118
leaq 0x110(%rsp), %rdx
xorl %eax, %eax
callq 0x3330
callq 0x3060
movl (%rax), %edi
leaq 0xd17c(%rip), %rsi      # 0x14f49
jmp 0x7cc5