// File: /workspace/github_c_makefile_star2_O0/yhg926[P]public_kssd/command_dist.c
// Function: mco_cbd_co_dist
void mco_cbd_co_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;
  printf("run mco_cbd_co_dist(), %fG memory used\t%d threads used\n",opt_val_in->mmry,p_fit_mem);
  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);
  int ref_bin_num = mco_dstat_readin.infile_num / BIN_SZ;
 if( mco_dstat_readin.infile_num % BIN_SZ > 0 ) ref_bin_num +=1;
 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_cbd_co_dist()::%s",onedist);
 }
 else{
  errno = EEXIST;
  err(errno,"mco_cbd_co_dist()::%s",onedist);
 }
 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_cbd_co_dist()::ftruncate");
 close(dist_bfp);
 dist_bfp = open(onedist,O_RDWR, 0600);
 if (dist_bfp == -1) err(errno,"mco_cbd_co_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);
 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 );
 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;
 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 maplength;
 int bnum_infile;
 FILE *cbd_fcode_comp_fp,*cbd_fcode_comp_index_fp;
  struct stat cbd_fcode_stat;
 size_t *fco_pos = malloc(sizeof(size_t) * (co_dstat_readin.infile_num + 1) );
 size_t *mco_offset_index = malloc(sizeof(size_t) * comp_sz);
 unsigned int *mco_bin_index = malloc( sizeof(unsigned int) * comp_sz * ref_bin_num );
 gidobj_t* mco_mem = malloc( sizeof(gidobj_t) * 442317172 );
 char mco_fcode[PATHLEN]; char mco_index_fcode[PATHLEN];
 char co_cbd_fcode[PATHLEN];char co_cbd_index_fcode[PATHLEN];
 for(int b=0;b<=num_mapping_distf;b++){
  if(b==num_mapping_distf){
   bnum_infile = co_dstat_readin.infile_num % num_cof_batch ;
   if( bnum_infile == 0 ) continue;
  }else bnum_infile = num_cof_batch;
  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=%dbnum_infile=%d\t\t%lu\t%lu\tflag1:Ok\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++ ) {
   sprintf(mco_index_fcode,"%s/mco.index.%d",refmco_dname,j);
      sprintf(mco_fcode,"%s/mco.%d",refmco_dname,j);
   FILE *indexfp, *mcofp;
   if( (indexfp = fopen(mco_index_fcode,"rb"))==NULL) err(errno,"mco_cbd_co_dist()::%s",mco_index_fcode);
   fread(mco_offset_index,sizeof(size_t),comp_sz,indexfp);
   fread(mco_bin_index,sizeof(unsigned int),comp_sz * ref_bin_num,indexfp);
   fclose(indexfp);
   struct stat s;
   if( (mcofp = fopen(mco_fcode,"rb"))==NULL) err(errno,"mco_cbd_co_dist()::%s",mco_fcode);
   stat(mco_fcode, &s);
   fread(mco_mem,sizeof(gidobj_t),s.st_size/sizeof(gidobj_t),mcofp);
   fclose(mcofp);
      sprintf(co_cbd_fcode,"%s/combco.%d",qryco_dname,j);
      if( (cbd_fcode_comp_fp = fopen(co_cbd_fcode,"rb"))==NULL) err(errno,"mco_cbd_co_dist()::%s",co_cbd_fcode);
      stat(co_cbd_fcode, &cbd_fcode_stat);
   if(co_dstat_readin.koc){
   }
      unsigned int *cbd_fcode_mem = malloc(cbd_fcode_stat.st_size);
      fread(cbd_fcode_mem,sizeof(unsigned int),cbd_fcode_stat.st_size/sizeof(unsigned int),cbd_fcode_comp_fp);
      fclose(cbd_fcode_comp_fp);
   sprintf(co_cbd_index_fcode,"%s/combco.index.%d",qryco_dname,j);
   if( (cbd_fcode_comp_index_fp = fopen(co_cbd_index_fcode,"rb"))==NULL)
    err(errno,"mco_cbd_co_dist()::%s",co_cbd_index_fcode);
   fread(fco_pos,sizeof(size_t),co_dstat_readin.infile_num + 1 ,cbd_fcode_comp_index_fp);
   fclose(cbd_fcode_comp_index_fp);
#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;
    unsigned int ind, mcogid, pos;
    llong distf_offset = (size_t)k * mco_dstat_readin.infile_num;
     for(int n = 0; n < fco_pos[k+1] - fco_pos[k]; n++){
       ind = cbd_fcode_mem[ fco_pos[k] + n ];
     pos = 0;
     for(int bin=0; bin < ref_bin_num; bin++){
      int bin_gnum = mco_bin_index[ ind *ref_bin_num + bin];
      for(int g = 0; g < bin_gnum ; g++ ){
       mcogid = bin*BIN_SZ + mco_mem[ mco_offset_index[ind] + pos ];
       ctx_obj_ct[distf_offset + mcogid ]++ ;
       pos++;
      }
     }
     }
     }
    free(cbd_fcode_mem);
    munmap(mco_offset_index, comp_sz * sizeof(size_t));
    munmap(mco_bin_index,comp_sz*ref_bin_num*sizeof(unsigned int) );
   }
    if ( msync( ctx_obj_ct + (size_t)b*num_cof_batch*mco_dstat_readin.infile_num, maplength, MS_SYNC ) < 0 )
     err(errno,"mco_cbd_co_dist()::ctx_obj_ct msync failed");
    munmap(ctx_obj_ct + (size_t)b*num_cof_batch*mco_dstat_readin.infile_num, maplength);
  }
 free(fco_pos);
  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;
 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(ref_ctx_ct_list);
  free(qry_ctx_ct_list);
  free(mcofname);
  free(cofname);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x7c0, %rsp            # imm = 0x7C0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movsd 0x110(%rax), %xmm0
movsd 0x10433(%rip), %xmm2    # 0x1c6b0
movaps %xmm0, %xmm1
subsd %xmm2, %xmm1
cvttsd2si %xmm1, %rcx
cvttsd2si %xmm0, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
andq %rdx, %rcx
orq %rcx, %rax
shlq $0x1e, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
addq $0x122, %rax            # imm = 0x122
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x658(%rax), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
addq $0x322, %rax            # imm = 0x322
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movsd 0x110(%rax), %xmm0
movl -0xc(%rbp), %esi
leaq 0x10c90(%rip), %rdi     # 0x1cf77
movb $0x1, %al
callq 0x3150
movl $0x100, %edi            # imm = 0x100
callq 0x3310
movq %rax, -0x48(%rbp)
movl $0x100, %edi            # imm = 0x100
callq 0x3310
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq 0x10012(%rip), %rsi     # 0x1c32b
leaq 0x103dd(%rip), %rcx     # 0x1c6fd
movb $0x0, %al
callq 0x3400
movq -0x50(%rbp), %rdi
movq -0x28(%rbp), %rdx
leaq 0xfff5(%rip), %rsi      # 0x1c32b
leaq 0x103b3(%rip), %rcx     # 0x1c6f0
movb $0x0, %al
callq 0x3400
movq -0x48(%rbp), %rdi
leaq 0xfd08(%rip), %rsi      # 0x1c057
callq 0x3370
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0xc373
callq 0x3050
movl (%rax), %edi
leaq 0x10a2c(%rip), %rsi     # 0x1cd98
movb $0x0, %al
callq 0x3300
movq -0x50(%rbp), %rdi
leaq 0xfcd9(%rip), %rsi      # 0x1c057
callq 0x3370
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0xc3a2
callq 0x3050
movl (%rax), %edi
leaq 0x10a43(%rip), %rsi     # 0x1cdde
movb $0x0, %al
callq 0x3300
movq -0x38(%rbp), %rcx
leaq -0x64(%rbp), %rdi
movl $0x14, %esi
movl $0x1, %edx
callq 0x30a0
movq -0x40(%rbp), %rcx
leaq -0x88(%rbp), %rdi
movl $0x20, %esi
movl $0x1, %edx
callq 0x30a0
movslq -0x74(%rbp), %rdi
shlq $0x2, %rdi
callq 0x3310
movq %rax, -0x90(%rbp)
movslq -0x54(%rbp), %rdi
shlq $0x2, %rdi
callq 0x3310
movq %rax, -0x98(%rbp)
movq -0x90(%rbp), %rdi
movslq -0x74(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x4, %esi
callq 0x30a0
movq -0x98(%rbp), %rdi
movslq -0x54(%rbp), %rdx
movq -0x38(%rbp), %rcx
movl $0x4, %esi
callq 0x30a0
movl -0x74(%rbp), %eax
shll $0x8, %eax
movslq %eax, %rdi
callq 0x3310
movq %rax, -0xa0(%rbp)
movl -0x54(%rbp), %eax
shll $0x8, %eax
movslq %eax, %rdi
callq 0x3310
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rdi
movslq -0x74(%rbp), %rdx
movq -0x40(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
callq 0x30a0
movq -0xa8(%rbp), %rdi
movslq -0x54(%rbp), %rdx
movq -0x38(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
callq 0x30a0
movq -0x38(%rbp), %rdi
callq 0x30e0
movq -0x40(%rbp), %rdi
callq 0x30e0
movl -0x58(%rbp), %eax
cmpl -0x78(%rbp), %eax
je 0xc4be
callq 0x3050
movl (%rax), %edi
movl -0x58(%rbp), %edx
movl -0x78(%rbp), %ecx
leaq 0x1096c(%rip), %rsi     # 0x1ce23
movb $0x0, %al
callq 0x3300
movl -0x64(%rbp), %eax
cmpl -0x88(%rbp), %eax
je 0xc4e7
callq 0x3050
movl (%rax), %edi
movl -0x64(%rbp), %edx
movl -0x88(%rbp), %ecx
leaq 0x1098a(%rip), %rsi     # 0x1ce6a
movb $0x0, %al
callq 0x3300
movl -0x54(%rbp), %eax
movl $0x10000, %ecx          # imm = 0x10000
cltd
idivl %ecx
movl %eax, -0xac(%rbp)
movl -0x54(%rbp), %eax
movl $0x10000, %ecx          # imm = 0x10000
cltd
idivl %ecx
cmpl $0x0, %edx
jle 0xc517
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
leaq -0x1b0(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq 0x10a86(%rip), %rsi     # 0x1cfaf
movb $0x0, %al
callq 0x3400
leaq -0x1b0(%rbp), %rdi
movl $0x2, %esi
movl $0x180, %edx            # imm = 0x180
movb $0x0, %al
callq 0x3350
movl %eax, -0x1b4(%rbp)
cmpl $-0x1, -0x1b4(%rbp)
jne 0xc5a7
movl -0x1b4(%rbp), %edi
callq 0x3200
leaq -0x1b0(%rbp), %rdi
movl $0x42, %esi
movl $0x180, %edx            # imm = 0x180
movb $0x0, %al
callq 0x3350
movl %eax, -0x1b4(%rbp)
cmpl $-0x1, -0x1b4(%rbp)
jne 0xc5a5
callq 0x3050
movl (%rax), %edi
leaq -0x1b0(%rbp), %rdx
leaq 0x10a23(%rip), %rsi     # 0x1cfc1
movb $0x0, %al
callq 0x3300
jmp 0xc5ce
callq 0x3050
movl $0x11, (%rax)
callq 0x3050
movl (%rax), %edi
leaq -0x1b0(%rbp), %rdx
leaq 0x109fa(%rip), %rsi     # 0x1cfc1
movb $0x0, %al
callq 0x3300
movslq -0x54(%rbp), %rax
movslq -0x74(%rbp), %rcx
imulq %rcx, %rax
shlq $0x2, %rax
movq %rax, -0x1c0(%rbp)
movl -0x1b4(%rbp), %edi
movq -0x1c0(%rbp), %rsi
callq 0x31c0
cmpl $-0x1, %eax
jne 0xc611
callq 0x3050
movl (%rax), %edi
leaq 0x109cd(%rip), %rsi     # 0x1cfd7
movb $0x0, %al
callq 0x3300
movl -0x1b4(%rbp), %edi
callq 0x3200
leaq -0x1b0(%rbp), %rdi
movl $0x2, %esi
movl $0x180, %edx            # imm = 0x180
movb $0x0, %al
callq 0x3350
movl %eax, -0x1b4(%rbp)
cmpl $-0x1, -0x1b4(%rbp)
jne 0xc65f
callq 0x3050
movl (%rax), %edi
leaq -0x1b0(%rbp), %rdx
leaq 0x10969(%rip), %rsi     # 0x1cfc1
movb $0x0, %al
callq 0x3300
movq -0x1c0(%rbp), %rsi
movl -0x1b4(%rbp), %r8d
xorl %eax, %eax
movl %eax, %r9d
movl $0x3, %edx
movl $0x1, %ecx
movq %r9, %rdi
callq 0x3130
movq %rax, -0x1c8(%rbp)
movq $-0x1, %rax
cmpq %rax, -0x1c8(%rbp)
jne 0xc6b0
callq 0x3050
movl (%rax), %edi
leaq 0x10870(%rip), %rsi     # 0x1cf19
movb $0x0, %al
callq 0x3300
movl -0x1b4(%rbp), %edi
callq 0x3200
movl $0x1e, %edi
callq 0x33a0
movl %eax, -0x1cc(%rbp)
movq $0x10000000, -0x1d8(%rbp) # imm = 0x10000000
movq -0x1d8(%rbp), %rax
movslq -0x1cc(%rbp), %rcx
xorl %edx, %edx
divq %rcx
cmpq $0x0, %rdx
je 0xc711
callq 0x3050
movl (%rax), %edi
movq -0x1d8(%rbp), %rdx
movl -0x1cc(%rbp), %ecx
leaq 0x108ea(%rip), %rsi     # 0x1cff4
movb $0x0, %al
callq 0x3300
movq -0x18(%rbp), %rax
movslq -0x54(%rbp), %rcx
shlq $0x2, %rcx
movslq -0x1cc(%rbp), %rdx
imulq %rdx, %rcx
xorl %edx, %edx
divq %rcx
movl %eax, -0x1dc(%rbp)
cmpl $0x1, -0x1dc(%rbp)
jge 0xc77e
callq 0x3050
movl (%rax), %edi
cvtsi2ssl -0x54(%rbp), %xmm0
movss 0xff94(%rip), %xmm1     # 0x1c6e4
mulss %xmm1, %xmm0
cvtsi2ssl -0x1cc(%rbp), %xmm1
mulss %xmm1, %xmm0
movss 0xff78(%rip), %xmm1     # 0x1c6e0
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x108a7(%rip), %rsi     # 0x1d01e
movb $0x1, %al
callq 0x3300
movl -0x1dc(%rbp), %eax
imull -0x1cc(%rbp), %eax
movl %eax, -0x1e0(%rbp)
movslq -0x1e0(%rbp), %rax
movslq -0x54(%rbp), %rcx
imulq %rcx, %rax
shlq $0x2, %rax
movq %rax, -0x1e8(%rbp)
movl -0x74(%rbp), %eax
cltd
idivl -0x1e0(%rbp)
movl %eax, -0x1ec(%rbp)
movl -0x74(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x3310
movq %rax, -0x2a8(%rbp)
movq -0x1d8(%rbp), %rdi
shlq $0x3, %rdi
callq 0x3310
movq %rax, -0x2b0(%rbp)
movq -0x1d8(%rbp), %rdi
shlq $0x2, %rdi
movslq -0xac(%rbp), %rax
imulq %rax, %rdi
callq 0x3310
movq %rax, -0x2b8(%rbp)
movl $0x6974e5d0, %edi       # imm = 0x6974E5D0
callq 0x3310
movq %rax, -0x2c0(%rbp)
movl $0x0, -0x6c4(%rbp)
movl -0x6c4(%rbp), %eax
cmpl -0x1ec(%rbp), %eax
jg 0xce61
movl -0x6c4(%rbp), %eax
cmpl -0x1ec(%rbp), %eax
jne 0xc868
movl -0x74(%rbp), %eax
cltd
idivl -0x1e0(%rbp)
movl %edx, -0x1fc(%rbp)
cmpl $0x0, -0x1fc(%rbp)
jne 0xc866
jmp 0xce4d
jmp 0xc874
movl -0x1e0(%rbp), %eax
movl %eax, -0x1fc(%rbp)
movslq -0x1fc(%rbp), %rax
movslq -0x54(%rbp), %rcx
imulq %rcx, %rax
shlq $0x2, %rax
movq %rax, -0x1f8(%rbp)
movq -0x1c0(%rbp), %rsi
movl -0x54(%rbp), %edx
movl -0x74(%rbp), %ecx
movl -0x1ec(%rbp), %r8d
movl -0x1fc(%rbp), %r9d
movq -0x1f8(%rbp), %r10
movslq -0x6c4(%rbp), %rax
imulq -0x1e8(%rbp), %rax
leaq 0x107a0(%rip), %rdi     # 0x1d066
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movb $0x0, %al
callq 0x3150
movl $0x0, -0x6c8(%rbp)
movl -0x6c8(%rbp), %eax
cmpl -0x58(%rbp), %eax
jge 0xcdc6
leaq -0x4c0(%rbp), %rdi
movq -0x20(%rbp), %rdx
movl -0x6c8(%rbp), %ecx
leaq 0xf7a4(%rip), %rsi      # 0x1c0ab
movb $0x0, %al
callq 0x3400
leaq -0x3c0(%rbp), %rdi
movq -0x20(%rbp), %rdx
movl -0x6c8(%rbp), %ecx
leaq 0xf795(%rip), %rsi      # 0x1c0bb
movb $0x0, %al
callq 0x3400
leaq -0x4c0(%rbp), %rdi
leaq 0xf71c(%rip), %rsi      # 0x1c057
callq 0x3370
movq %rax, -0x6d0(%rbp)
cmpq $0x0, %rax
jne 0xc969
callq 0x3050
movl (%rax), %edi
leaq -0x4c0(%rbp), %rdx
leaq 0x1065f(%rip), %rsi     # 0x1cfc1
movb $0x0, %al
callq 0x3300
movq -0x2b0(%rbp), %rdi
movq -0x1d8(%rbp), %rdx
movq -0x6d0(%rbp), %rcx
movl $0x8, %esi
callq 0x30a0
movq -0x2b8(%rbp), %rdi
movq -0x1d8(%rbp), %rdx
movslq -0xac(%rbp), %rax
imulq %rax, %rdx
movq -0x6d0(%rbp), %rcx
movl $0x4, %esi
callq 0x30a0
movq -0x6d0(%rbp), %rdi
callq 0x30e0
leaq -0x3c0(%rbp), %rdi
leaq 0xf68b(%rip), %rsi      # 0x1c057
callq 0x3370
movq %rax, -0x6d8(%rbp)
cmpq $0x0, %rax
jne 0xc9fa
callq 0x3050
movl (%rax), %edi
leaq -0x3c0(%rbp), %rdx
leaq 0x105ce(%rip), %rsi     # 0x1cfc1
movb $0x0, %al
callq 0x3300
leaq -0x3c0(%rbp), %rdi
leaq -0x768(%rbp), %rsi
callq 0x32b0
movq -0x2c0(%rbp), %rdi
movq -0x738(%rbp), %rdx
shrq $0x2, %rdx
movq -0x6d8(%rbp), %rcx
movl $0x4, %esi
callq 0x30a0
movq -0x6d8(%rbp), %rdi
callq 0x30e0
leaq -0x5c0(%rbp), %rdi
movq -0x28(%rbp), %rdx
movl -0x6c8(%rbp), %ecx
leaq 0xf62d(%rip), %rsi      # 0x1c081
movb $0x0, %al
callq 0x3400
leaq -0x5c0(%rbp), %rdi
leaq 0xf5ee(%rip), %rsi      # 0x1c057
callq 0x3370
movq %rax, -0x208(%rbp)
cmpq $0x0, %rax
jne 0xca97
callq 0x3050
movl (%rax), %edi
leaq -0x5c0(%rbp), %rdx
leaq 0x10531(%rip), %rsi     # 0x1cfc1
movb $0x0, %al
callq 0x3300
leaq -0x5c0(%rbp), %rdi
leaq -0x2a0(%rbp), %rsi
callq 0x32b0
testb $0x1, -0x84(%rbp)
je 0xcab5
jmp 0xcab5
movq -0x270(%rbp), %rdi
callq 0x3310
movq %rax, -0x770(%rbp)
movq -0x770(%rbp), %rdi
movq -0x270(%rbp), %rdx
shrq $0x2, %rdx
movq -0x208(%rbp), %rcx
movl $0x4, %esi
callq 0x30a0
movq -0x208(%rbp), %rdi
callq 0x30e0
leaq -0x6c0(%rbp), %rdi
movq -0x28(%rbp), %rdx
movl -0x6c8(%rbp), %ecx
leaq 0xf55f(%rip), %rsi      # 0x1c06e
movb $0x0, %al
callq 0x3400
leaq -0x6c0(%rbp), %rdi
leaq 0xf533(%rip), %rsi      # 0x1c057
callq 0x3370
movq %rax, -0x210(%rbp)
cmpq $0x0, %rax
jne 0xcb52
callq 0x3050
movl (%rax), %edi
leaq -0x6c0(%rbp), %rdx
leaq 0x10476(%rip), %rsi     # 0x1cfc1
movb $0x0, %al
callq 0x3300
movq -0x2a8(%rbp), %rdi
movl -0x74(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdx
movq -0x210(%rbp), %rcx
movl $0x8, %esi
callq 0x30a0
movq -0x210(%rbp), %rdi
callq 0x30e0
movl $0x0, -0x774(%rbp)
movl -0x774(%rbp), %eax
cmpl -0x1fc(%rbp), %eax
jge 0xcd6d
movl -0x6c4(%rbp), %eax
imull -0x1e0(%rbp), %eax
addl -0x774(%rbp), %eax
movl %eax, -0x778(%rbp)
movq -0x90(%rbp), %rax
movslq -0x778(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jne 0xcbcd
jmp 0xcd59
movslq -0x778(%rbp), %rax
movslq -0x54(%rbp), %rcx
imulq %rcx, %rax
movq %rax, -0x790(%rbp)
movl $0x0, -0x794(%rbp)
movslq -0x794(%rbp), %rax
movq -0x2a8(%rbp), %rcx
movl -0x778(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movq -0x2a8(%rbp), %rdx
movslq -0x778(%rbp), %rsi
subq (%rdx,%rsi,8), %rcx
cmpq %rcx, %rax
jae 0xcd57
movq -0x770(%rbp), %rax
movq -0x2a8(%rbp), %rcx
movslq -0x778(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x794(%rbp), %rdx
addq %rdx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x77c(%rbp)
movl $0x0, -0x784(%rbp)
movl $0x0, -0x798(%rbp)
movl -0x798(%rbp), %eax
cmpl -0xac(%rbp), %eax
jge 0xcd41
movq -0x2b8(%rbp), %rax
movl -0x77c(%rbp), %ecx
imull -0xac(%rbp), %ecx
addl -0x798(%rbp), %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x79c(%rbp)
movl $0x0, -0x7a0(%rbp)
movl -0x7a0(%rbp), %eax
cmpl -0x79c(%rbp), %eax
jge 0xcd2b
movl -0x798(%rbp), %eax
shll $0x10, %eax
movq -0x2c0(%rbp), %rcx
movq -0x2b0(%rbp), %rdx
movl -0x77c(%rbp), %esi
movq (%rdx,%rsi,8), %rdx
movl -0x784(%rbp), %esi
addq %rsi, %rdx
addl (%rcx,%rdx,4), %eax
movl %eax, -0x780(%rbp)
movq -0x1c8(%rbp), %rax
movq -0x790(%rbp), %rcx
movl -0x780(%rbp), %edx
addq %rdx, %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movl -0x784(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x784(%rbp)
movl -0x7a0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a0(%rbp)
jmp 0xcca7
jmp 0xcd2d
movl -0x798(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x798(%rbp)
jmp 0xcc66
jmp 0xcd43
movl -0x794(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x794(%rbp)
jmp 0xcbed
jmp 0xcd59
movl -0x774(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x774(%rbp)
jmp 0xcb89
movq -0x770(%rbp), %rdi
callq 0x3040
movq -0x2b0(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
shlq $0x3, %rsi
callq 0x3330
movq -0x2b8(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
movslq -0xac(%rbp), %rax
imulq %rax, %rsi
shlq $0x2, %rsi
callq 0x3330
movl -0x6c8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c8(%rbp)
jmp 0xc8e0
movq -0x1c8(%rbp), %rdi
movslq -0x6c4(%rbp), %rax
movslq -0x1e0(%rbp), %rcx
imulq %rcx, %rax
movslq -0x54(%rbp), %rcx
imulq %rcx, %rax
shlq $0x2, %rax
addq %rax, %rdi
movq -0x1f8(%rbp), %rsi
movl $0x4, %edx
callq 0x3100
cmpl $0x0, %eax
jge 0xce19
callq 0x3050
movl (%rax), %edi
leaq 0x102aa(%rip), %rsi     # 0x1d0bc
movb $0x0, %al
callq 0x3300
movq -0x1c8(%rbp), %rdi
movslq -0x6c4(%rbp), %rax
movslq -0x1e0(%rbp), %rcx
imulq %rcx, %rax
movslq -0x54(%rbp), %rcx
imulq %rcx, %rax
shlq $0x2, %rax
addq %rax, %rdi
movq -0x1f8(%rbp), %rsi
callq 0x3330
movl -0x6c4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c4(%rbp)
jmp 0xc828
movq -0x2a8(%rbp), %rdi
callq 0x3040
movl -0x54(%rbp), %eax
movl %eax, 0x5766a(%rip)     # 0x644e0
movl -0x74(%rbp), %eax
movl %eax, 0x57665(%rip)     # 0x644e4
movl -0x80(%rbp), %eax
movl %eax, 0x57660(%rip)     # 0x644e8
movl -0x7c(%rbp), %eax
movl %eax, 0x5765b(%rip)     # 0x644ec
movq -0x30(%rbp), %rdi
movl 0x57645(%rip), %esi     # 0x644e0
movl 0x57643(%rip), %edx     # 0x644e4
movq -0x98(%rbp), %rcx
movq -0x90(%rbp), %r8
movl -0x1e0(%rbp), %r9d
movq -0xa8(%rbp), %r11
movq -0xa0(%rbp), %r10
movq -0x8(%rbp), %rax
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0xcf20
movq -0x98(%rbp), %rdi
callq 0x3040
movq -0x90(%rbp), %rdi
callq 0x3040
movq -0xa8(%rbp), %rdi
callq 0x3040
movq -0xa0(%rbp), %rdi
callq 0x3040
addq $0x7c0, %rsp            # imm = 0x7C0
popq %rbp
retq
nopw %cs:(%rax,%rax)