// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x568, %rsp            # imm = 0x568
movq %rdi, %r15
leaq 0x322(%rdi), %r12
movq %r12, %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x3090
movaps 0xd753(%rip), %xmm0     # 0x155a0
movaps %xmm0, 0xc0(%rsp)
movaps 0xd754(%rip), %xmm0     # 0x155b0
movaps %xmm0, 0xa0(%rsp)
movw $0x65, 0xb0(%rsp)
cmpb $0x1, 0x449(%r15)
je 0x87a7
movq 0x658(%r15), %rax
movq (%rax), %rdi
leaq 0xc8d3(%rip), %rsi      # 0x14760
callq 0x68a5
movq %rax, %r14
leaq 0xc1cb(%rip), %rsi      # 0x14067
movq %rax, %rdi
callq 0x33a0
testq %rax, %rax
je 0x87ec
movq %rax, %rbx
leaq 0x60(%rsp), %r14
pushq $0x20
popq %rsi
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rax, %rcx
callq 0x30c0
cmpb $0x1, 0x4(%r14)
je 0x87a7
movq %r15, 0x18(%rsp)
leaq 0xc4b6(%rip), %rsi      # 0x14393
leaq 0x460(%rsp), %r14
leaq 0xc0(%rsp), %rcx
movq %r14, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xc169(%rip), %rsi      # 0x1406a
movq %r14, %rdi
callq 0x33a0
testq %rax, %rax
je 0x87bc
movq %rax, %rbp
movslq 0x74(%rsp), %r14
leaq (,%r14,4), %rdi
callq 0x3340
movq %rax, %r13
pushq $0x4
popq %r15
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x30c0
movq %r13, 0x28(%rsp)
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbp, 0x48(%rsp)
movq %rbp, %rcx
callq 0x3450
leaq 0xc432(%rip), %rsi      # 0x14393
leaq 0x360(%rsp), %r15
leaq 0xa0(%rsp), %rcx
movq %r15, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xc0e5(%rip), %rsi      # 0x1406a
movq %r15, %rdi
callq 0x33a0
testq %rax, %rax
je 0x87d4
movq %rax, %r13
movl %r14d, %eax
shll $0x8, %eax
movslq %eax, %rdi
callq 0x3340
movq %rax, %r15
movl $0x100, %esi            # imm = 0x100
movq %rax, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x30c0
movl $0x100, %esi            # imm = 0x100
movq %r15, 0x20(%rsp)
movq %r15, %rdi
movq %r14, %rdx
movq %r13, 0x40(%rsp)
movq %r13, %rcx
callq 0x3450
movq %rbx, %rdi
callq 0x3100
movslq 0x70(%rsp), %r14
movq %r14, %rbx
shlq $0x3, %rbx
movq %rbx, %rdi
callq 0x3340
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
callq 0x3340
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
callq 0x3340
movq %rax, %r13
testl %r14d, %r14d
movl $0x0, %eax
movq %r14, 0x38(%rsp)
cmovgl %r14d, %eax
movq %rax, (%rsp)
leaq 0xc062(%rip), %rbx      # 0x14091
leaq 0x260(%rsp), %rbp
xorl %r14d, %r14d
movq 0x18(%rsp), %r15
movq %r12, 0x30(%rsp)
cmpq %r14, (%rsp)
je 0x8218
movq %rbp, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x3430
movq %rbp, %rdi
leaq 0xbfff(%rip), %rsi      # 0x1406a
callq 0x33a0
movq %rax, %r12
movq 0x10(%rsp), %rax
movq %r12, (%rax,%r14,8)
testq %r12, %r12
je 0x8772
movq 0x658(%r15), %rax
movq (%rax), %rdx
movq %rbp, %rdi
movq %rbx, %rsi
movl %r14d, %ecx
xorl %eax, %eax
callq 0x3430
movq %rbp, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x32e0
movq %rbp, %rbx
movq 0x100(%rsp), %rbp
movq %rbp, %rdi
callq 0x3340
movq %rax, %r15
movq %rbx, %rdi
leaq 0xbf98(%rip), %rsi      # 0x14067
callq 0x33a0
testq %rax, %rax
je 0x8772
movq %rax, %rbx
movq %r15, %rdi
movq %rbp, %rsi
pushq $0x1
popq %rdx
movq %rax, %rcx
callq 0x30c0
movq %r15, %rdi
movq %rbp, %rsi
pushq $0x1
popq %rdx
movq %r12, %rcx
callq 0x3450
movq %rbx, %rdi
callq 0x3100
movq %r15, %rdi
callq 0x3040
leaq 0x160(%rsp), %r15
movq %r15, %rdi
leaq 0xbf5a(%rip), %rbx      # 0x1407e
movq %rbx, %rsi
movq 0x30(%rsp), %rdx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x3430
movq %r15, %rdi
leaq 0xbf2a(%rip), %rsi      # 0x1406a
callq 0x33a0
movq %rax, %r12
movq 0x8(%rsp), %rax
movq %r12, (%rax,%r14,8)
testq %r12, %r12
je 0x878a
movq 0x18(%rsp), %rax
movq 0x658(%rax), %rax
movq (%rax), %rdx
movq %r15, %rdi
movq %rbx, %rsi
movl %r14d, %ecx
xorl %eax, %eax
callq 0x3430
movq %r15, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x32e0
movq 0x100(%rsp), %rbp
movq %rbp, %rdi
callq 0x3340
movq %r15, %rdi
movq %rax, %r15
leaq 0xbec1(%rip), %rsi      # 0x14067
callq 0x33a0
testq %rax, %rax
je 0x878a
movq %rax, %rbx
movq %r15, %rdi
movq %rbp, %rsi
pushq $0x1
popq %rdx
movq %rax, %rcx
callq 0x30c0
movq %r15, %rdi
movq %rbp, %rsi
pushq $0x1
popq %rdx
movq %r12, %rcx
callq 0x3450
andq $-0x8, %rbp
movq -0x8(%r15,%rbp), %rax
movq %rax, (%r13,%r14,8)
movq %rbx, %rdi
callq 0x3100
movq %r15, %rdi
callq 0x3040
incq %r14
movq 0x30(%rsp), %r12
movq 0x18(%rsp), %r15
leaq 0xbe86(%rip), %rbx      # 0x14091
leaq 0x260(%rsp), %rbp
jmp 0x8044
leaq 0xc541(%rip), %r14      # 0x14760
pushq $0x1
popq %rbp
movq %rbp, %rbx
movq %r13, 0x50(%rsp)
movslq 0x650(%r15), %rax
cmpq %rax, %rbx
jge 0x8599
movq 0x658(%r15), %rax
movq (%rax,%rbx,8), %rdi
movq %r14, %rsi
callq 0x68a5
movq %rbx, %r12
testq %rax, %rax
je 0x82b8
movq %rax, %rbx
movq %r12, (%rsp)
movq %rax, %rdi
leaq 0xbe01(%rip), %rsi      # 0x14067
callq 0x33a0
testq %rax, %rax
je 0x82dc
movq %rax, %r14
leaq 0x80(%rsp), %rdi
pushq $0x20
popq %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq 0x30c0
movl 0x60(%rsp), %ecx
movl 0x80(%rsp), %edx
cmpl %edx, %ecx
jne 0x82f6
cmpb $0x1, 0x84(%rsp)
jne 0x8321
leaq 0xd234(%rip), %rdi      # 0x154dd
movq (%rsp), %rbx
movl %ebx, %esi
xorl %eax, %eax
callq 0x3170
jmp 0x830a
movq 0x658(%r15), %rax
movq (%rax,%r12,8), %rdx
leaq 0xd175(%rip), %rdi      # 0x1543f
movl %r12d, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0x3170
movq %r12, %rbx
jmp 0x8319
leaq 0xd18c(%rip), %rdi      # 0x1546f
movq (%rsp), %rsi
movq %rbx, %rdx
movq %rsi, %rbx
xorl %eax, %eax
callq 0x3170
jmp 0x8312
leaq 0xd1a1(%rip), %rdi      # 0x1549e
movq (%rsp), %rbx
movl %ebx, %esi
xorl %eax, %eax
callq 0x3170
movq %r14, %rdi
callq 0x3100
leaq 0xc447(%rip), %r14      # 0x14760
incq %rbx
jmp 0x822a
movq 0x98(%rsp), %rax
addq %rax, 0x78(%rsp)
movslq 0x94(%rsp), %rsi
addl %esi, 0x74(%rsp)
shlq $0x2, %rsi
movq 0x28(%rsp), %rdi
callq 0x3350
movq %rax, %r12
movslq 0x94(%rsp), %rbx
movq %rax, %rdi
pushq $0x4
popq %rbp
movq %rbp, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x30c0
movq %r12, 0x28(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movq 0x48(%rsp), %rcx
pushq $0x1
popq %rbp
callq 0x3450
shlq $0x8, %rbx
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x3350
movq %rax, %r12
movslq 0x94(%rsp), %rbx
movl $0x100, %esi            # imm = 0x100
movq %rax, %rdi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x30c0
movl $0x100, %esi            # imm = 0x100
movq %r12, 0x20(%rsp)
movq %r12, %rdi
movq %rbx, %rdx
movq 0x40(%rsp), %rcx
callq 0x3450
movq %r14, %rdi
callq 0x3100
movl 0x70(%rsp), %eax
testl %eax, %eax
movl $0x0, %ecx
movq %rax, 0x38(%rsp)
cmovgl %eax, %ecx
movq %rcx, 0x58(%rsp)
xorl %r14d, %r14d
movq (%rsp), %rbx
cmpq 0x58(%rsp), %r14
leaq 0xd0(%rsp), %r12
je 0x8312
movq 0x658(%r15), %rax
movq (%rax,%rbx,8), %rdx
leaq 0x260(%rsp), %rbx
movq %rbx, %rdi
leaq 0xbc6f(%rip), %rsi      # 0x14091
movl %r14d, %ecx
xorl %eax, %eax
callq 0x3430
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32e0
movq 0x100(%rsp), %r12
movq %r12, %rdi
callq 0x3340
movq %r15, %rbp
movq %rax, %r15
movq %rbx, %rdi
leaq 0xbc10(%rip), %rsi      # 0x14067
callq 0x33a0
testq %rax, %rax
je 0x8772
movq %rax, %rbx
movq %r15, %rdi
movq %r12, %rsi
pushq $0x1
popq %r13
movq %r13, %rdx
movq %rax, %rcx
callq 0x30c0
movq 0x10(%rsp), %rax
movq (%rax,%r14,8), %rcx
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x3450
movq %rbx, %rdi
callq 0x3100
movq %r15, %rdi
callq 0x3040
movq 0x658(%rbp), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0x160(%rsp), %rbx
movq %rbx, %rdi
leaq 0xbbb9(%rip), %rsi      # 0x1407e
movl %r14d, %ecx
xorl %eax, %eax
callq 0x3430
movq %rbx, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x32e0
movq 0x100(%rsp), %r15
movq %r15, %rdi
callq 0x3340
movq %rax, %r12
movq %rbx, %rdi
leaq 0xbb6b(%rip), %rsi      # 0x14067
callq 0x33a0
testq %rax, %rax
je 0x878a
movq %rax, %rbx
movq %r12, %rdi
movq %r15, %rsi
pushq $0x1
popq %rbp
movq %rbp, %rdx
movq %rax, %rcx
callq 0x30c0
movq %rbx, %rdi
callq 0x3100
shrq $0x3, %r15
movslq %r15d, %rax
movq %rbp, %rcx
movq (%rsp), %rbx
movq 0x50(%rsp), %r13
cmpq %rax, %rcx
jge 0x854f
movq (%r13,%r14,8), %rdx
addq %rdx, (%r12,%rcx,8)
incq %rcx
jmp 0x853c
movq %r12, %rdi
addq $0x8, %rdi
shlq $0x20, %r15
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
addq %rax, %r15
movq %r15, %rdx
sarq $0x20, %rdx
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rcx
pushq $0x8
popq %rsi
callq 0x3450
sarq $0x1d, %r15
movq (%r12,%r15), %rax
movq %rax, (%r13,%r14,8)
incq %r14
movq 0x18(%rsp), %r15
jmp 0x83f2
movq 0x48(%rsp), %rdi
callq 0x3100
movq 0x40(%rsp), %rdi
callq 0x3100
xorl %ebx, %ebx
movq 0x38(%rsp), %r14
testl %r14d, %r14d
cmovlel %ebx, %r14d
movq 0x30(%rsp), %rbp
cmpq %rbx, %r14
je 0x85e6
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x3100
movq 0x8(%rsp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x3100
incq %rbx
jmp 0x85c0
leaq 0xbda6(%rip), %rsi      # 0x14393
leaq 0xc16c(%rip), %rcx      # 0x14760
leaq 0x260(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xba5a(%rip), %rsi      # 0x1406a
movq %rbx, %rdi
callq 0x33a0
testq %rax, %rax
je 0x8772
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
pushq $0x20
popq %rsi
pushq $0x1
popq %rdx
movq %rax, %rcx
callq 0x3450
leaq 0x460(%rsp), %r15
leaq 0x160(%rsp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x32e0
movq 0x30(%r14), %rsi
movq 0x28(%rsp), %rdi
callq 0x3350
movq %rax, %r14
leaq 0xb9fd(%rip), %rsi      # 0x14067
movq %r15, %rdi
callq 0x33a0
testq %rax, %rax
je 0x87bc
leaq 0x160(%rsp), %r15
movq 0x30(%r15), %r12
pushq $0x1
popq %r13
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rax, %rcx
callq 0x30c0
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x3450
leaq 0x360(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x32e0
movq 0x30(%r15), %rsi
movq 0x20(%rsp), %rdi
callq 0x3350
movq %rax, %r15
leaq 0xb98f(%rip), %rsi      # 0x14067
movq %r12, %rdi
callq 0x33a0
testq %rax, %rax
je 0x87d4
movq 0x190(%rsp), %r12
pushq $0x1
popq %r13
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rax, %rcx
callq 0x30c0
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x3450
movq %rbx, %rdi
callq 0x3100
leaq 0x460(%rsp), %rdi
callq 0x3070
leaq 0x360(%rsp), %rdi
callq 0x3070
movq %r14, %rdi
callq 0x3040
movq %r15, %rdi
callq 0x3040
movq 0x10(%rsp), %rdi
callq 0x3040
movq 0x8(%rsp), %rdi
callq 0x3040
movq %rbp, %rax
addq $0x568, %rsp            # imm = 0x568
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3060
movl (%rax), %edi
leaq 0xcbf6(%rip), %rsi      # 0x15376
leaq 0x260(%rsp), %rdx
jmp 0x87a0
callq 0x3060
movl (%rax), %edi
leaq 0xcbde(%rip), %rsi      # 0x15376
leaq 0x160(%rsp), %rdx
xorl %eax, %eax
callq 0x3330
callq 0x3060
movl (%rax), %edi
leaq 0xcc40(%rip), %rsi      # 0x153f5
xorl %eax, %eax
callq 0x3330
callq 0x3060
movl (%rax), %edi
leaq 0xcbac(%rip), %rsi      # 0x15376
leaq 0x460(%rsp), %rdx
jmp 0x87a0
callq 0x3060
movl (%rax), %edi
leaq 0xcb94(%rip), %rsi      # 0x15376
leaq 0x360(%rsp), %rdx
jmp 0x87a0
callq 0x3060
movl (%rax), %edi
leaq 0xcc30(%rip), %rsi      # 0x1542a
movq %r14, %rdx
jmp 0x87a0