// File: /workspace/github_c_makefile_star2_O0/yhg926[P]public_kssd/command_dist.c
// Function: combine_queries
const char * combine_queries(dist_opt_val_t *opt_val)
{
 int p_fit_mem = opt_val->p;
 const char* co_dir = opt_val->outdir;
 mkdir(co_dir,0700);
 const char kmerct_list_fname[] = "tmp_kmerct_list";
 const char fname_fname[] = "tmp_infiles_fname";
 if(opt_val->abundance){err(errno,"combine_queries(): abundance model not supported yet");}
 FILE *co_stat_fp;
 const char *qryco_dstat_fpath = NULL;
 qryco_dstat_fpath = test_get_fullpath(opt_val->remaining_args[0], co_dstat);
 if( ( co_stat_fp = fopen(qryco_dstat_fpath,"rb")) == NULL ){
  err(errno,"combine_queries():%s", qryco_dstat_fpath);
 }
 co_dstat_t co_dstat_one, co_dstat_it;
 fread(&co_dstat_one, sizeof(co_dstat_t), 1, co_stat_fp);
 if (co_dstat_one.koc) { err(errno,"combine_queries(): abundance model not supported yet"); }
 char one_kmerct_list_name[PATHLEN];
 sprintf(one_kmerct_list_name,"%s/%s",co_dir,kmerct_list_fname);
 FILE *kmerct_list_fp;
 if( (kmerct_list_fp = fopen(one_kmerct_list_name,"wb") ) == NULL ) {err(errno,"%s",one_kmerct_list_name);}
 ctx_obj_ct_t * tmp_ct_list = malloc(sizeof(ctx_obj_ct_t) * co_dstat_one.infile_num);
 fread(tmp_ct_list,sizeof(ctx_obj_ct_t),co_dstat_one.infile_num,co_stat_fp);
 fwrite(tmp_ct_list,sizeof(ctx_obj_ct_t),co_dstat_one.infile_num,kmerct_list_fp);
 char one_infilename_name[PATHLEN];
 sprintf(one_infilename_name,"%s/%s",co_dir,fname_fname);
 FILE *infilename_name_fp;
 if( ( infilename_name_fp = fopen(one_infilename_name,"wb") ) == NULL ){err(errno,"%s", one_infilename_name);}
 char (*tmpname)[PATHLEN] = malloc(PATHLEN * co_dstat_one.infile_num);
 fread(tmpname,PATHLEN,co_dstat_one.infile_num,co_stat_fp);
 fwrite(tmpname,PATHLEN,co_dstat_one.infile_num,infilename_name_fp);
 fclose(co_stat_fp);
 FILE** com_cofp = malloc( sizeof(FILE*) * co_dstat_one.comp_num);
  FILE** indexfp = malloc( sizeof(FILE*) * co_dstat_one.comp_num);
 size_t *index_offset = malloc(sizeof(size_t) * co_dstat_one.comp_num);
#pragma omp parallel for num_threads(p_fit_mem) schedule(guided)
 for(int c = 0; c < co_dstat_one.comp_num; c++) {
  struct stat file_stat;
  char combined_cof[PATHLEN];
  sprintf(combined_cof,"%s/combco.%d",co_dir,c);
  if( (com_cofp[c] = fopen(combined_cof,"wb")) == NULL) err(errno,"%s",combined_cof);
  sprintf(combined_cof,"%s/combco.%d",opt_val->remaining_args[0],c);
  stat(combined_cof, &file_stat);
  unsigned int *tmp_combco = malloc(file_stat.st_size);
  FILE *com_cofp_it;
  if( (com_cofp_it = fopen(combined_cof,"rb")) == NULL) err(errno,"%s",combined_cof);
  fread(tmp_combco, file_stat.st_size, 1, com_cofp_it);
    fwrite(tmp_combco, file_stat.st_size, 1, com_cofp[c]);
    fclose(com_cofp_it);
    free(tmp_combco);
  char indexfname[PATHLEN];
  sprintf(indexfname,"%s/combco.index.%d",co_dir,c);
    if( (indexfp[c] = fopen(indexfname,"wb")) == NULL) err(errno,"%s",indexfname);
  sprintf(indexfname, "%s/combco.index.%d", opt_val->remaining_args[0], c);
  stat(indexfname, &file_stat);
  size_t *tmp_index_combco = malloc(file_stat.st_size);
  FILE *com_indexfp_it;
  if((com_indexfp_it = fopen(indexfname,"rb") ) == NULL) err(errno,"%s",indexfname);
  fread(tmp_index_combco,file_stat.st_size, 1,com_indexfp_it);
  fwrite(tmp_index_combco,file_stat.st_size, 1,indexfp[c]);
  index_offset[c] = tmp_index_combco[file_stat.st_size/sizeof(size_t) - 1] ;
  fclose(com_indexfp_it);
  free(tmp_index_combco);
 }
 for (int i = 1; i< opt_val->num_remaining_args; i++){
  qryco_dstat_fpath = test_get_fullpath(opt_val->remaining_args[i],co_dstat);
  if(qryco_dstat_fpath == NULL){
     printf("%dth query %s is not a valid query: no %s file\n", i, opt_val->remaining_args[i], co_dstat);
      continue;
    }
  else if( ( co_stat_fp = fopen(qryco_dstat_fpath,"rb")) == NULL ){
     printf("combine_queries(): %dth query can not open %s\n", i, qryco_dstat_fpath);
   continue;
   }
  fread(&co_dstat_it, sizeof(co_dstat_t), 1, co_stat_fp);
  if(co_dstat_one.shuf_id != co_dstat_it.shuf_id){
      printf("combine_queries(): %dth shuf_id: %u not match 0th shuf_id: %u\n",i, co_dstat_it.shuf_id, co_dstat_one.shuf_id);
      fclose(co_stat_fp);
      continue;
    }
  else if (co_dstat_it.koc){
   printf("combine_queries(): %dth query abundance model not supported yet \n", i);
      fclose(co_stat_fp);
      continue;
  }
    co_dstat_one.all_ctx_ct += co_dstat_it.all_ctx_ct;
    co_dstat_one.infile_num += co_dstat_it.infile_num;
  tmp_ct_list = realloc(tmp_ct_list, sizeof(ctx_obj_ct_t) * co_dstat_it.infile_num);
  fread(tmp_ct_list,sizeof(ctx_obj_ct_t),co_dstat_it.infile_num,co_stat_fp);
  fwrite(tmp_ct_list,sizeof(ctx_obj_ct_t),co_dstat_it.infile_num,kmerct_list_fp);
  tmpname = realloc(tmpname, PATHLEN * co_dstat_it.infile_num ) ;
  fread(tmpname,PATHLEN,co_dstat_it.infile_num,co_stat_fp);
  fwrite(tmpname,PATHLEN,co_dstat_it.infile_num,infilename_name_fp);
    fclose(co_stat_fp);
#pragma omp parallel for num_threads(p_fit_mem) schedule(guided)
  for(int c = 0; c < co_dstat_one.comp_num; c++) {
   char combined_cof_it[PATHLEN];
   FILE *com_cofp_it;
   struct stat file_stat;
   sprintf(combined_cof_it,"%s/combco.%d",opt_val->remaining_args[i],c);
   stat(combined_cof_it,&file_stat);
   unsigned int *tmpco = malloc(file_stat.st_size);
      if( (com_cofp_it = fopen(combined_cof_it,"rb")) == NULL) err(errno,"%s",combined_cof_it);
   fread(tmpco,file_stat.st_size, 1, com_cofp_it);
   fwrite(tmpco,file_stat.st_size, 1, com_cofp[c]);
   fclose(com_cofp_it);
   free(tmpco);
   char indexfname_it[PATHLEN];
   sprintf(indexfname_it,"%s/combco.index.%d",opt_val->remaining_args[i],c);
   stat(indexfname_it, &file_stat);
   size_t * tmpindex = malloc(file_stat.st_size);
   FILE *indexfp_it;
   if( (indexfp_it = fopen(indexfname_it,"rb")) == NULL) err(errno,"%s",indexfname_it);
   fread(tmpindex,file_stat.st_size, 1,indexfp_it);
   fclose(indexfp_it);
   int tmp_infile_num = file_stat.st_size/sizeof(size_t);
   for(int i=1; i< tmp_infile_num; i++ ) { tmpindex[i] += index_offset[c];}
   fwrite( tmpindex + 1, sizeof(size_t), tmp_infile_num - 1, indexfp[c]);
   index_offset[c] = tmpindex[tmp_infile_num-1];
  }
 }
 fclose(kmerct_list_fp);
 fclose(infilename_name_fp);
#pragma omp parallel for num_threads(p_fit_mem) schedule(guided)
  for(int c = 0; c < co_dstat_one.comp_num; c++) {
  fclose(com_cofp[c]);
  fclose(indexfp[c]);
 }
 FILE *one_co_stat_fp;
 char one_stat_name[PATHLEN];
 sprintf(one_stat_name,"%s/%s",co_dir,co_dstat);
 if( (one_co_stat_fp = fopen(one_stat_name,"wb")) == NULL) { err(errno,"%s",one_stat_name) ;};
 fwrite(&co_dstat_one,sizeof(co_dstat_t),1,one_co_stat_fp);
 struct stat file_stat;
 stat(one_kmerct_list_name, &file_stat);
 tmp_ct_list = realloc(tmp_ct_list, file_stat.st_size);
 if( (kmerct_list_fp = fopen(one_kmerct_list_name,"rb") ) == NULL ) {err(errno,"%s",one_kmerct_list_name);}
 fread(tmp_ct_list,file_stat.st_size,1,kmerct_list_fp);
 fwrite(tmp_ct_list,file_stat.st_size,1,one_co_stat_fp);
 stat(one_infilename_name,&file_stat);
 tmpname = realloc(tmpname,file_stat.st_size);
 if( (infilename_name_fp = fopen(one_infilename_name,"rb") ) == NULL ){err(errno,"%s", one_infilename_name);}
 fread(tmpname,file_stat.st_size,1,infilename_name_fp);
 fwrite(tmpname,file_stat.st_size,1,one_co_stat_fp);
 fclose(one_co_stat_fp);
 remove(one_kmerct_list_name);
 remove(one_infilename_name);
 free(tmp_ct_list);
 free(tmpname);
 free(com_cofp);
  free(indexfp);
 return co_dir;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa00, %rsp            # imm = 0xA00
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
addq $0x322, %rax            # imm = 0x322
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x3080
movq 0x13484(%rip), %rax     # 0x1d540
movq %rax, -0x30(%rbp)
movq 0x13481(%rip), %rax     # 0x1d548
movq %rax, -0x28(%rbp)
movq 0x1347e(%rip), %rax     # 0x1d550
movq %rax, -0x50(%rbp)
movq 0x1347b(%rip), %rax     # 0x1d558
movq %rax, -0x48(%rbp)
movw 0x13478(%rip), %ax      # 0x1d560
movw %ax, -0x40(%rbp)
movq -0x8(%rbp), %rax
testb $0x1, 0x449(%rax)
je 0xa10e
callq 0x3050
movl (%rax), %edi
leaq 0x132be(%rip), %rsi     # 0x1d3c5
movb $0x0, %al
callq 0x3300
movq $0x0, -0x60(%rbp)
movq -0x8(%rbp), %rax
movq 0x658(%rax), %rax
movq (%rax), %rdi
leaq 0x125c5(%rip), %rsi     # 0x1c6f0
callq 0x8250
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
leaq 0x11f18(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
jne 0xa167
callq 0x3050
movl (%rax), %edi
movq -0x60(%rbp), %rdx
leaq 0x1329a(%rip), %rsi     # 0x1d3fa
movb $0x0, %al
callq 0x3300
movq -0x58(%rbp), %rcx
leaq -0x80(%rbp), %rdi
movl $0x20, %esi
movl $0x1, %edx
callq 0x30a0
testb $0x1, -0x7c(%rbp)
je 0xa199
callq 0x3050
movl (%rax), %edi
leaq 0x13233(%rip), %rsi     # 0x1d3c5
movb $0x0, %al
callq 0x3300
leaq -0x1a0(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x30(%rbp), %rcx
leaq 0x1217c(%rip), %rsi     # 0x1c32b
movb $0x0, %al
callq 0x3400
leaq -0x1a0(%rbp), %rdi
leaq 0x11e96(%rip), %rsi     # 0x1c05a
callq 0x3370
movq %rax, -0x1a8(%rbp)
cmpq $0x0, %rax
jne 0xa1f2
callq 0x3050
movl (%rax), %edi
leaq -0x1a0(%rbp), %rdx
leaq 0x1315b(%rip), %rsi     # 0x1d346
movb $0x0, %al
callq 0x3300
movslq -0x6c(%rbp), %rdi
shlq $0x2, %rdi
callq 0x3310
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rdi
movslq -0x6c(%rbp), %rdx
movq -0x58(%rbp), %rcx
movl $0x4, %esi
callq 0x30a0
movq -0x1b0(%rbp), %rdi
movslq -0x6c(%rbp), %rdx
movq -0x1a8(%rbp), %rcx
movl $0x4, %esi
callq 0x3420
leaq -0x2b0(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x50(%rbp), %rcx
leaq 0x120da(%rip), %rsi     # 0x1c32b
movb $0x0, %al
callq 0x3400
leaq -0x2b0(%rbp), %rdi
leaq 0x11df4(%rip), %rsi     # 0x1c05a
callq 0x3370
movq %rax, -0x2b8(%rbp)
cmpq $0x0, %rax
jne 0xa294
callq 0x3050
movl (%rax), %edi
leaq -0x2b0(%rbp), %rdx
leaq 0x130b9(%rip), %rsi     # 0x1d346
movb $0x0, %al
callq 0x3300
movl -0x6c(%rbp), %eax
shll $0x8, %eax
movslq %eax, %rdi
callq 0x3310
movq %rax, -0x2c0(%rbp)
movq -0x2c0(%rbp), %rdi
movslq -0x6c(%rbp), %rdx
movq -0x58(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
callq 0x30a0
movq -0x2c0(%rbp), %rdi
movslq -0x6c(%rbp), %rdx
movq -0x2b8(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
callq 0x3420
movq -0x58(%rbp), %rdi
callq 0x30e0
movslq -0x70(%rbp), %rdi
shlq $0x3, %rdi
callq 0x3310
movq %rax, -0x2c8(%rbp)
movslq -0x70(%rbp), %rdi
shlq $0x3, %rdi
callq 0x3310
movq %rax, -0x2d0(%rbp)
movslq -0x70(%rbp), %rdi
shlq $0x3, %rdi
callq 0x3310
movq %rax, -0x2d8(%rbp)
movl $0x0, -0x2dc(%rbp)
movl -0x2dc(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0xa620
leaq -0x470(%rbp), %rdi
movq -0x18(%rbp), %rdx
movl -0x2dc(%rbp), %ecx
leaq 0x11d2d(%rip), %rsi     # 0x1c081
movb $0x0, %al
callq 0x3400
leaq -0x470(%rbp), %rdi
leaq 0x11cf1(%rip), %rsi     # 0x1c05a
callq 0x3370
movq -0x2c8(%rbp), %rcx
movslq -0x2dc(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
jne 0xa3a2
callq 0x3050
movl (%rax), %edi
leaq -0x470(%rbp), %rdx
leaq 0x12fab(%rip), %rsi     # 0x1d346
movb $0x0, %al
callq 0x3300
leaq -0x470(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x658(%rax), %rax
movq (%rax), %rdx
movl -0x2dc(%rbp), %ecx
leaq 0x11cbd(%rip), %rsi     # 0x1c081
movb $0x0, %al
callq 0x3400
leaq -0x470(%rbp), %rdi
leaq -0x370(%rbp), %rsi
callq 0x32b0
movq -0x340(%rbp), %rdi
callq 0x3310
movq %rax, -0x478(%rbp)
leaq -0x470(%rbp), %rdi
leaq 0x11c58(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x480(%rbp)
cmpq $0x0, %rax
jne 0xa42d
callq 0x3050
movl (%rax), %edi
leaq -0x470(%rbp), %rdx
leaq 0x12f20(%rip), %rsi     # 0x1d346
movb $0x0, %al
callq 0x3300
movq -0x478(%rbp), %rdi
movq -0x340(%rbp), %rsi
movq -0x480(%rbp), %rcx
movl $0x1, %edx
callq 0x30a0
movq -0x478(%rbp), %rdi
movq -0x340(%rbp), %rsi
movq -0x2c8(%rbp), %rax
movslq -0x2dc(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movl $0x1, %edx
callq 0x3420
movq -0x480(%rbp), %rdi
callq 0x30e0
movq -0x478(%rbp), %rdi
callq 0x3040
leaq -0x580(%rbp), %rdi
movq -0x18(%rbp), %rdx
movl -0x2dc(%rbp), %ecx
leaq 0x11bc8(%rip), %rsi     # 0x1c06e
movb $0x0, %al
callq 0x3400
leaq -0x580(%rbp), %rdi
leaq 0x11b9f(%rip), %rsi     # 0x1c05a
callq 0x3370
movq -0x2d0(%rbp), %rcx
movslq -0x2dc(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
jne 0xa4f4
callq 0x3050
movl (%rax), %edi
leaq -0x580(%rbp), %rdx
leaq 0x12e59(%rip), %rsi     # 0x1d346
movb $0x0, %al
callq 0x3300
leaq -0x580(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x658(%rax), %rax
movq (%rax), %rdx
movl -0x2dc(%rbp), %ecx
leaq 0x11b58(%rip), %rsi     # 0x1c06e
movb $0x0, %al
callq 0x3400
leaq -0x580(%rbp), %rdi
leaq -0x370(%rbp), %rsi
callq 0x32b0
movq -0x340(%rbp), %rdi
callq 0x3310
movq %rax, -0x588(%rbp)
leaq -0x580(%rbp), %rdi
leaq 0x11b06(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x590(%rbp)
cmpq $0x0, %rax
jne 0xa57f
callq 0x3050
movl (%rax), %edi
leaq -0x580(%rbp), %rdx
leaq 0x12dce(%rip), %rsi     # 0x1d346
movb $0x0, %al
callq 0x3300
movq -0x588(%rbp), %rdi
movq -0x340(%rbp), %rsi
movq -0x590(%rbp), %rcx
movl $0x1, %edx
callq 0x30a0
movq -0x588(%rbp), %rdi
movq -0x340(%rbp), %rsi
movq -0x2d0(%rbp), %rax
movslq -0x2dc(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movl $0x1, %edx
callq 0x3420
movq -0x588(%rbp), %rax
movq -0x340(%rbp), %rcx
shrq $0x3, %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
movq -0x2d8(%rbp), %rax
movslq -0x2dc(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x590(%rbp), %rdi
callq 0x30e0
movq -0x588(%rbp), %rdi
callq 0x3040
movl -0x2dc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2dc(%rbp)
jmp 0xa32d
movl $0x1, -0x594(%rbp)
movl -0x594(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x650(%rcx), %eax
jge 0xaae3
movq -0x8(%rbp), %rax
movq 0x658(%rax), %rax
movslq -0x594(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x12093(%rip), %rsi     # 0x1c6f0
callq 0x8250
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
jne 0xa6a3
movl -0x594(%rbp), %esi
movq -0x8(%rbp), %rax
movq 0x658(%rax), %rax
movslq -0x594(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0x12d7f(%rip), %rdi     # 0x1d40f
leaq 0x12059(%rip), %rcx     # 0x1c6f0
movb $0x0, %al
callq 0x3150
jmp 0xaacf
movq -0x60(%rbp), %rdi
leaq 0x119a9(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
jne 0xa6da
movl -0x594(%rbp), %esi
movq -0x60(%rbp), %rdx
leaq 0x12d71(%rip), %rdi     # 0x1d43f
movb $0x0, %al
callq 0x3150
jmp 0xaacf
jmp 0xa6dc
movq -0x58(%rbp), %rcx
leaq -0xa0(%rbp), %rdi
movl $0x20, %esi
movl $0x1, %edx
callq 0x30a0
movl -0x80(%rbp), %eax
cmpl -0xa0(%rbp), %eax
je 0xa72c
movl -0x594(%rbp), %esi
movl -0xa0(%rbp), %edx
movl -0x80(%rbp), %ecx
leaq 0x12d57(%rip), %rdi     # 0x1d46e
movb $0x0, %al
callq 0x3150
movq -0x58(%rbp), %rdi
callq 0x30e0
jmp 0xaacf
testb $0x1, -0x9c(%rbp)
je 0xa757
movl -0x594(%rbp), %esi
leaq 0x12d6b(%rip), %rdi     # 0x1d4ad
movb $0x0, %al
callq 0x3150
movq -0x58(%rbp), %rdi
callq 0x30e0
jmp 0xaacf
jmp 0xa759
movq -0x88(%rbp), %rax
addq -0x68(%rbp), %rax
movq %rax, -0x68(%rbp)
movl -0x8c(%rbp), %eax
addl -0x6c(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x1b0(%rbp), %rdi
movslq -0x8c(%rbp), %rsi
shlq $0x2, %rsi
callq 0x3320
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rdi
movslq -0x8c(%rbp), %rdx
movq -0x58(%rbp), %rcx
movl $0x4, %esi
callq 0x30a0
movq -0x1b0(%rbp), %rdi
movslq -0x8c(%rbp), %rdx
movq -0x1a8(%rbp), %rcx
movl $0x4, %esi
callq 0x3420
movq -0x2c0(%rbp), %rdi
movl -0x8c(%rbp), %eax
shll $0x8, %eax
movslq %eax, %rsi
callq 0x3320
movq %rax, -0x2c0(%rbp)
movq -0x2c0(%rbp), %rdi
movslq -0x8c(%rbp), %rdx
movq -0x58(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
callq 0x30a0
movq -0x2c0(%rbp), %rdi
movslq -0x8c(%rbp), %rdx
movq -0x2b8(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
callq 0x3420
movq -0x58(%rbp), %rdi
callq 0x30e0
movl $0x0, -0x598(%rbp)
movl -0x598(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0xaacd
leaq -0x6a0(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x658(%rax), %rax
movslq -0x594(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movl -0x598(%rbp), %ecx
leaq 0x1180e(%rip), %rsi     # 0x1c081
movb $0x0, %al
callq 0x3400
leaq -0x6a0(%rbp), %rdi
leaq -0x738(%rbp), %rsi
callq 0x32b0
movq -0x708(%rbp), %rdi
callq 0x3310
movq %rax, -0x740(%rbp)
leaq -0x6a0(%rbp), %rdi
leaq 0x117a9(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x6a8(%rbp)
cmpq $0x0, %rax
jne 0xa8dc
callq 0x3050
movl (%rax), %edi
leaq -0x6a0(%rbp), %rdx
leaq 0x12a71(%rip), %rsi     # 0x1d346
movb $0x0, %al
callq 0x3300
movq -0x740(%rbp), %rdi
movq -0x708(%rbp), %rsi
movq -0x6a8(%rbp), %rcx
movl $0x1, %edx
callq 0x30a0
movq -0x740(%rbp), %rdi
movq -0x708(%rbp), %rsi
movq -0x2c8(%rbp), %rax
movslq -0x598(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movl $0x1, %edx
callq 0x3420
movq -0x6a8(%rbp), %rdi
callq 0x30e0
movq -0x740(%rbp), %rdi
callq 0x3040
leaq -0x840(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x658(%rax), %rax
movslq -0x594(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movl -0x598(%rbp), %ecx
leaq 0x11707(%rip), %rsi     # 0x1c06e
movb $0x0, %al
callq 0x3400
leaq -0x840(%rbp), %rdi
leaq -0x738(%rbp), %rsi
callq 0x32b0
movq -0x708(%rbp), %rdi
callq 0x3310
movq %rax, -0x848(%rbp)
leaq -0x840(%rbp), %rdi
leaq 0x116b5(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x850(%rbp)
cmpq $0x0, %rax
jne 0xa9d0
callq 0x3050
movl (%rax), %edi
leaq -0x840(%rbp), %rdx
leaq 0x1297d(%rip), %rsi     # 0x1d346
movb $0x0, %al
callq 0x3300
movq -0x848(%rbp), %rdi
movq -0x708(%rbp), %rsi
movq -0x850(%rbp), %rcx
movl $0x1, %edx
callq 0x30a0
movq -0x850(%rbp), %rdi
callq 0x30e0
movq -0x708(%rbp), %rax
shrq $0x3, %rax
movl %eax, -0x854(%rbp)
movl $0x1, -0x858(%rbp)
movl -0x858(%rbp), %eax
cmpl -0x854(%rbp), %eax
jge 0xaa5d
movq -0x2d8(%rbp), %rax
movslq -0x598(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x848(%rbp), %rax
movslq -0x858(%rbp), %rcx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0x858(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x858(%rbp)
jmp 0xaa16
movq -0x848(%rbp), %rdi
addq $0x8, %rdi
movl -0x854(%rbp), %eax
subl $0x1, %eax
movslq %eax, %rdx
movq -0x2d0(%rbp), %rax
movslq -0x598(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movl $0x8, %esi
callq 0x3420
movq -0x848(%rbp), %rax
movl -0x854(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdx
movq -0x2d8(%rbp), %rax
movslq -0x598(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x598(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x598(%rbp)
jmp 0xa83a
jmp 0xaacf
movl -0x594(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x594(%rbp)
jmp 0xa62a
movq -0x1a8(%rbp), %rdi
callq 0x30e0
movq -0x2b8(%rbp), %rdi
callq 0x30e0
movl $0x0, -0x85c(%rbp)
movl -0x85c(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0xab4f
movq -0x2c8(%rbp), %rax
movslq -0x85c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x30e0
movq -0x2d0(%rbp), %rax
movslq -0x85c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x30e0
movl -0x85c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x85c(%rbp)
jmp 0xab05
leaq -0x970(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x117ca(%rip), %rsi     # 0x1c32b
leaq 0x11b88(%rip), %rcx     # 0x1c6f0
movb $0x0, %al
callq 0x3400
leaq -0x970(%rbp), %rdi
leaq 0x114dd(%rip), %rsi     # 0x1c05a
callq 0x3370
movq %rax, -0x868(%rbp)
cmpq $0x0, %rax
jne 0xabab
callq 0x3050
movl (%rax), %edi
leaq -0x970(%rbp), %rdx
leaq 0x127a2(%rip), %rsi     # 0x1d346
movb $0x0, %al
callq 0x3300
movq -0x868(%rbp), %rcx
leaq -0x80(%rbp), %rdi
movl $0x20, %esi
movl $0x1, %edx
callq 0x3420
leaq -0x1a0(%rbp), %rdi
leaq -0xa00(%rbp), %rsi
callq 0x32b0
movq -0x1b0(%rbp), %rdi
movq -0x9d0(%rbp), %rsi
callq 0x3320
movq %rax, -0x1b0(%rbp)
leaq -0x1a0(%rbp), %rdi
leaq 0x11457(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x1a8(%rbp)
cmpq $0x0, %rax
jne 0xac2e
callq 0x3050
movl (%rax), %edi
leaq -0x1a0(%rbp), %rdx
leaq 0x1271f(%rip), %rsi     # 0x1d346
movb $0x0, %al
callq 0x3300
movq -0x1b0(%rbp), %rdi
movq -0x9d0(%rbp), %rsi
movq -0x1a8(%rbp), %rcx
movl $0x1, %edx
callq 0x30a0
movq -0x1b0(%rbp), %rdi
movq -0x9d0(%rbp), %rsi
movq -0x868(%rbp), %rcx
movl $0x1, %edx
callq 0x3420
leaq -0x2b0(%rbp), %rdi
leaq -0xa00(%rbp), %rsi
callq 0x32b0
movq -0x2c0(%rbp), %rdi
movq -0x9d0(%rbp), %rsi
callq 0x3320
movq %rax, -0x2c0(%rbp)
leaq -0x2b0(%rbp), %rdi
leaq 0x113b0(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x2b8(%rbp)
cmpq $0x0, %rax
jne 0xacd5
callq 0x3050
movl (%rax), %edi
leaq -0x2b0(%rbp), %rdx
leaq 0x12678(%rip), %rsi     # 0x1d346
movb $0x0, %al
callq 0x3300
movq -0x2c0(%rbp), %rdi
movq -0x9d0(%rbp), %rsi
movq -0x2b8(%rbp), %rcx
movl $0x1, %edx
callq 0x30a0
movq -0x2c0(%rbp), %rdi
movq -0x9d0(%rbp), %rsi
movq -0x868(%rbp), %rcx
movl $0x1, %edx
callq 0x3420
movq -0x868(%rbp), %rdi
callq 0x30e0
leaq -0x1a0(%rbp), %rdi
callq 0x3060
leaq -0x2b0(%rbp), %rdi
callq 0x3060
movq -0x1b0(%rbp), %rdi
callq 0x3040
movq -0x2c0(%rbp), %rdi
callq 0x3040
movq -0x2c8(%rbp), %rdi
callq 0x3040
movq -0x2d0(%rbp), %rdi
callq 0x3040
movq -0x18(%rbp), %rax
addq $0xa00, %rsp            # imm = 0xA00
popq %rbp
retq
nopw %cs:(%rax,%rax)