// File: /workspace/github_c_makefile_star2_O3/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), %rbp
movq %rbp, %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x3090
movaps 0xdd8e(%rip), %xmm0     # 0x165f0
movaps %xmm0, 0xc0(%rsp)
movaps 0xdd8f(%rip), %xmm0     # 0x16600
movaps %xmm0, 0xa0(%rsp)
movw $0x65, 0xb0(%rsp)
cmpb $0x1, 0x449(%r15)
je 0x91e4
movq 0x658(%r15), %rax
movq (%rax), %rdi
leaq 0xcf0e(%rip), %rsi      # 0x157b0
callq 0x6d79
movq %rax, %r14
leaq 0xc7b6(%rip), %rsi      # 0x15067
movq %rax, %rdi
callq 0x33a0
testq %rax, %rax
je 0x9229
movq %rax, %rbx
leaq 0x60(%rsp), %r14
movl $0x20, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rax, %rcx
callq 0x30c0
cmpb $0x1, 0x4(%r14)
je 0x91e4
movq %r15, 0x8(%rsp)
leaq 0xcaed(%rip), %rsi      # 0x153e3
leaq 0x460(%rsp), %r14
leaq 0xc0(%rsp), %rcx
movq %r14, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xc750(%rip), %rsi      # 0x1506a
movq %r14, %rdi
callq 0x33a0
testq %rax, %rax
je 0x91f9
movq %rax, %r12
movslq 0x74(%rsp), %r14
leaq (,%r14,4), %rdi
callq 0x3340
movq %rax, %r15
movl $0x4, %esi
movq %rax, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x30c0
movl $0x4, %esi
movq %r15, 0x28(%rsp)
movq %r15, %rdi
movq %r14, %rdx
movq %r12, 0x50(%rsp)
movq %r12, %rcx
callq 0x3450
leaq 0xca69(%rip), %rsi      # 0x153e3
leaq 0x360(%rsp), %r15
leaq 0xa0(%rsp), %rcx
movq %r15, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xc6cc(%rip), %rsi      # 0x1506a
movq %r15, %rdi
callq 0x33a0
testq %rax, %rax
je 0x9211
movq %rax, %r12
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 %r12, 0x48(%rsp)
movq %r12, %rcx
callq 0x3450
movq %rbx, %rdi
callq 0x3100
movslq 0x70(%rsp), %r15
leaq (,%r15,8), %rbx
movq %rbx, %rdi
callq 0x3340
movq %rax, %r14
movq %rbx, %rdi
callq 0x3340
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
callq 0x3340
movq %rax, 0x40(%rsp)
movq %r15, 0x10(%rsp)
testq %r15, %r15
movq %rbp, 0x30(%rsp)
movq %r14, 0x38(%rsp)
jle 0x8c2b
leaq 0xc645(%rip), %r13      # 0x15091
leaq 0x260(%rsp), %r15
xorl %ebx, %ebx
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x3430
movq %r15, %rdi
leaq 0xc5f8(%rip), %rsi      # 0x1506a
callq 0x33a0
movq %rax, (%r14,%rbx,8)
testq %rax, %rax
je 0x91af
movq %rax, %r12
movq 0x8(%rsp), %rax
movq 0x658(%rax), %rax
movq (%rax), %rdx
movq %r15, %rdi
movq %r13, %rsi
movl %ebx, %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 %rax, %r13
movq %r15, %rdi
leaq 0xc595(%rip), %rsi      # 0x15067
callq 0x33a0
testq %rax, %rax
je 0x91af
movq %rax, %r14
movl $0x1, %edx
movq %r13, %rdi
movq %rbp, %rsi
movq %rax, %rcx
callq 0x30c0
movl $0x1, %edx
movq %r13, %rdi
movq %rbp, %rsi
movq %r12, %rcx
callq 0x3450
movq %r14, %rdi
callq 0x3100
movq %r13, %rdi
callq 0x3040
leaq 0x160(%rsp), %r15
movq %r15, %rdi
leaq 0xc553(%rip), %r14      # 0x1507e
movq %r14, %rsi
movq 0x30(%rsp), %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x3430
movq %r15, %rdi
leaq 0xc524(%rip), %rsi      # 0x1506a
callq 0x33a0
movq %rax, %r12
movq 0x18(%rsp), %rax
movq %r12, (%rax,%rbx,8)
testq %r12, %r12
je 0x91c7
movq 0x8(%rsp), %rax
movq 0x658(%rax), %rax
movq (%rax), %rdx
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %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 %rax, %r13
movq %r15, %rdi
leaq 0xc4bc(%rip), %rsi      # 0x15067
callq 0x33a0
testq %rax, %rax
je 0x91c7
movq %rax, %r14
movl $0x1, %edx
movq %r13, %rdi
movq %rbp, %rsi
movq %rax, %rcx
callq 0x30c0
movl $0x1, %edx
movq %r13, %rdi
movq %rbp, %rsi
movq %r12, %rcx
callq 0x3450
andq $-0x8, %rbp
movq -0x8(%r13,%rbp), %rax
movq 0x40(%rsp), %rcx
movq %rax, (%rcx,%rbx,8)
movq %r14, %rdi
callq 0x3100
movq %r13, %rdi
callq 0x3040
incq %rbx
cmpq %rbx, 0x10(%rsp)
movq 0x30(%rsp), %rbp
movq 0x38(%rsp), %r14
leaq 0xc474(%rip), %r13      # 0x15091
leaq 0x260(%rsp), %r15
jne 0x8a56
movq 0x8(%rsp), %r12
cmpl $0x2, 0x650(%r12)
jl 0x8fd8
movl $0x1, %r13d
leaq 0xcb64(%rip), %r15      # 0x157b0
movq 0x10(%rsp), %r14
movq 0x658(%r12), %rax
movq (%rax,%r13,8), %rdi
movq %r15, %rsi
callq 0x6d79
testq %rax, %rax
je 0x8cce
movq %rax, %rbx
movq %rax, %rdi
leaq 0xc3f0(%rip), %rsi      # 0x15067
callq 0x33a0
testq %rax, %rax
je 0x8cf0
movq %rax, %r15
movl $0x20, %esi
movl $0x1, %edx
leaq 0x80(%rsp), %rdi
movq %rax, %rcx
callq 0x30c0
movl 0x60(%rsp), %ecx
movl 0x80(%rsp), %edx
cmpl %edx, %ecx
jne 0x8d06
cmpb $0x1, 0x84(%rsp)
jne 0x8d3f
leaq 0xd86b(%rip), %rdi      # 0x1652d
movl %r13d, %esi
xorl %eax, %eax
callq 0x3170
jmp 0x8d17
movq 0x658(%r12), %rax
movq (%rax,%r13,8), %rdx
leaq 0xd7ae(%rip), %rdi      # 0x1648f
movl %r13d, %esi
movq %r15, %rcx
xorl %eax, %eax
callq 0x3170
jmp 0x8d26
leaq 0xd7c8(%rip), %rdi      # 0x164bf
movl %r13d, %esi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3170
jmp 0x8d1f
leaq 0xd7e1(%rip), %rdi      # 0x164ee
movl %r13d, %esi
xorl %eax, %eax
callq 0x3170
movq %r15, %rdi
callq 0x3100
leaq 0xca8a(%rip), %r15      # 0x157b0
incq %r13
movslq 0x650(%r12), %rax
cmpq %rax, %r13
jl 0x8c51
jmp 0x8fdd
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
movl $0x4, %esi
movq %rax, %rdi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x30c0
movl $0x4, %esi
movq %r12, 0x28(%rsp)
movq %r12, %rdi
movq %rbx, %rdx
movq 0x50(%rsp), %rcx
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 %r15, %rcx
callq 0x30c0
movl $0x100, %esi            # imm = 0x100
movq %r12, 0x20(%rsp)
movq %r12, %rdi
movq %rbx, %rdx
movq 0x48(%rsp), %rcx
callq 0x3450
movq %r15, %rdi
callq 0x3100
movslq 0x70(%rsp), %r14
testq %r14, %r14
jle 0x8fce
movq %r13, 0x58(%rsp)
xorl %r15d, %r15d
movq 0x8(%rsp), %r12
movq %r14, 0x10(%rsp)
movq 0x658(%r12), %rax
movq 0x58(%rsp), %r13
movq (%rax,%r13,8), %rdx
leaq 0x260(%rsp), %rbp
movq %rbp, %rdi
leaq 0xc25f(%rip), %rsi      # 0x15091
movl %r15d, %ecx
xorl %eax, %eax
callq 0x3430
movq %rbp, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x32e0
movq %r12, %r14
movq 0x100(%rsp), %r12
movq %r12, %rdi
callq 0x3340
movq %rax, %rbx
movq %rbp, %rdi
leaq 0xc1fb(%rip), %rsi      # 0x15067
callq 0x33a0
testq %rax, %rax
je 0x91af
movq %rax, %rbp
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rcx
callq 0x30c0
movq 0x38(%rsp), %rax
movq (%rax,%r15,8), %rcx
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3450
movq %rbp, %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x3040
movq 0x658(%r14), %rax
movq (%rax,%r13,8), %rdx
leaq 0x160(%rsp), %r14
movq %r14, %rdi
leaq 0xc1a8(%rip), %rsi      # 0x1507e
movl %r15d, %ecx
xorl %eax, %eax
callq 0x3430
movq %r14, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x32e0
movq 0x100(%rsp), %r12
movq %r12, %rdi
callq 0x3340
movq %rax, %rbx
movq %r14, %rdi
leaq 0xc15a(%rip), %rsi      # 0x15067
callq 0x33a0
testq %rax, %rax
je 0x91c7
movq %rax, %rbp
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rcx
callq 0x30c0
movq %rbp, %rdi
callq 0x3100
shrq $0x3, %r12
cmpl $0x2, %r12d
movq 0x10(%rsp), %r14
jl 0x8f6b
movq 0x40(%rsp), %rax
movq (%rax,%r15,8), %rax
movl %r12d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl $0x1, %edx
addq %rax, (%rbx,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x8f5f
movq %rbx, %rdi
addq $0x8, %rdi
shlq $0x20, %r12
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
addq %rax, %r12
movq %r12, %rdx
sarq $0x20, %rdx
movq 0x18(%rsp), %rax
movq (%rax,%r15,8), %rcx
movl $0x8, %esi
callq 0x3450
sarq $0x1d, %r12
movq (%rbx,%r12), %rax
movq 0x40(%rsp), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
cmpq %r14, %r15
movq 0x8(%rsp), %r12
jne 0x8e0f
movq 0x30(%rsp), %rbp
movq 0x58(%rsp), %r13
jmp 0x8d1f
movq 0x8(%rsp), %r12
jmp 0x8d1f
movq 0x10(%rsp), %r14
movq 0x50(%rsp), %rdi
callq 0x3100
movq 0x48(%rsp), %rdi
callq 0x3100
testl %r14d, %r14d
movq 0x38(%rsp), %r13
movq 0x18(%rsp), %r15
jle 0x9021
movl %r14d, %ebx
xorl %r14d, %r14d
movq (%r13,%r14,8), %rdi
callq 0x3100
movq (%r15,%r14,8), %rdi
callq 0x3100
incq %r14
cmpq %r14, %rbx
jne 0x9006
leaq 0xc3bb(%rip), %rsi      # 0x153e3
leaq 0xc781(%rip), %rcx      # 0x157b0
leaq 0x260(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xc01f(%rip), %rsi      # 0x1506a
movq %rbx, %rdi
callq 0x33a0
testq %rax, %rax
je 0x91af
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
movl $0x20, %esi
movl $0x1, %edx
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 0xbfbe(%rip), %rsi      # 0x15067
movq %r15, %rdi
callq 0x33a0
testq %rax, %rax
je 0x91f9
leaq 0x160(%rsp), %r15
movq 0x30(%r15), %r12
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rcx
callq 0x30c0
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
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 0xbf50(%rip), %rsi      # 0x15067
movq %r12, %rdi
callq 0x33a0
testq %rax, %rax
je 0x9211
movq 0x190(%rsp), %r12
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rcx
callq 0x30c0
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
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 %r13, %rdi
callq 0x3040
movq 0x18(%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 0xd209(%rip), %rsi      # 0x163c6
leaq 0x260(%rsp), %rdx
jmp 0x91dd
callq 0x3060
movl (%rax), %edi
leaq 0xd1f1(%rip), %rsi      # 0x163c6
leaq 0x160(%rsp), %rdx
xorl %eax, %eax
callq 0x3330
callq 0x3060
movl (%rax), %edi
leaq 0xd253(%rip), %rsi      # 0x16445
xorl %eax, %eax
callq 0x3330
callq 0x3060
movl (%rax), %edi
leaq 0xd1bf(%rip), %rsi      # 0x163c6
leaq 0x460(%rsp), %rdx
jmp 0x91dd
callq 0x3060
movl (%rax), %edi
leaq 0xd1a7(%rip), %rsi      # 0x163c6
leaq 0x360(%rsp), %rdx
jmp 0x91dd
callq 0x3060
movl (%rax), %edi
leaq 0xd243(%rip), %rsi      # 0x1647a
movq %r14, %rdx
jmp 0x91dd