// File: /workspace/github_c_makefile_star2_O1/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 $0x558, %rsp            # imm = 0x558
movq %rdi, %r15
leaq 0x322(%rdi), %r13
movq %r13, %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x3090
movaps 0xe0c7(%rip), %xmm0     # 0x165a0
movaps %xmm0, 0xb0(%rsp)
movaps 0xe0c8(%rip), %xmm0     # 0x165b0
movaps %xmm0, 0x90(%rsp)
movw $0x65, 0xa0(%rsp)
cmpb $0x1, 0x449(%r15)
je 0x8e28
movq 0x658(%r15), %rax
movq (%rax), %rdi
leaq 0xd247(%rip), %rsi      # 0x15760
callq 0x6bcc
movq %rax, %r14
leaq 0xcb3f(%rip), %rsi      # 0x15067
movq %rax, %rdi
callq 0x33a0
testq %rax, %rax
je 0x8e6d
movq %rax, %rbx
leaq 0x50(%rsp), %r14
movl $0x20, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rax, %rcx
callq 0x30c0
cmpb $0x1, 0x4(%r14)
je 0x8e28
movq %r15, (%rsp)
leaq 0xce27(%rip), %rsi      # 0x15393
leaq 0x450(%rsp), %r14
leaq 0xb0(%rsp), %rcx
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xcada(%rip), %rsi      # 0x1506a
movq %r14, %rdi
callq 0x33a0
testq %rax, %rax
je 0x8e3d
movq %rax, %r12
movslq 0x64(%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, 0x18(%rsp)
movq %r15, %rdi
movq %r14, %rdx
movq %r12, 0x48(%rsp)
movq %r12, %rcx
callq 0x3450
leaq 0xcda3(%rip), %rsi      # 0x15393
leaq 0x350(%rsp), %r15
leaq 0x90(%rsp), %rcx
movq %r15, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xca56(%rip), %rsi      # 0x1506a
movq %r15, %rdi
callq 0x33a0
testq %rax, %rax
je 0x8e55
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, 0x10(%rsp)
movq %r15, %rdi
movq %r14, %rdx
movq %r12, 0x40(%rsp)
movq %r12, %rcx
callq 0x3450
movq %rbx, %rdi
callq 0x3100
movslq 0x60(%rsp), %r14
leaq (,%r14,8), %rbx
movq %rbx, %rdi
callq 0x3340
movq %rax, 0x30(%rsp)
movq %rbx, %rdi
callq 0x3340
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
callq 0x3340
movq %rax, 0x38(%rsp)
movq %r14, 0x20(%rsp)
testq %r14, %r14
movq (%rsp), %r15
movq %r13, 0x28(%rsp)
jle 0x88a0
leaq 0xc9ce(%rip), %r14      # 0x15091
leaq 0x250(%rsp), %rbp
xorl %ebx, %ebx
movq %rbp, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x3430
movq %rbp, %rdi
leaq 0xc981(%rip), %rsi      # 0x1506a
callq 0x33a0
movq %rax, %r12
movq 0x30(%rsp), %rax
movq %r12, (%rax,%rbx,8)
testq %r12, %r12
je 0x8df3
movq 0x658(%r15), %rax
movq (%rax), %rdx
movq %rbp, %rdi
movq %r14, %rsi
movl %ebx, %ecx
xorl %eax, %eax
callq 0x3430
movq %rbp, %rdi
leaq 0xc0(%rsp), %rsi
callq 0x32e0
movq 0xf0(%rsp), %r13
movq %r13, %rdi
callq 0x3340
movq %rax, %r15
movq %rbp, %rdi
leaq 0xc91e(%rip), %rsi      # 0x15067
callq 0x33a0
testq %rax, %rax
je 0x8df3
movq %rax, %r14
movl $0x1, %edx
movq %r15, %rdi
movq %r13, %rsi
movq %rax, %rcx
callq 0x30c0
movl $0x1, %edx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rcx
callq 0x3450
movq %r14, %rdi
callq 0x3100
movq %r15, %rdi
callq 0x3040
leaq 0x150(%rsp), %rbp
movq %rbp, %rdi
leaq 0xc8dc(%rip), %r14      # 0x1507e
movq %r14, %rsi
movq 0x28(%rsp), %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x3430
movq %rbp, %rdi
leaq 0xc8ad(%rip), %rsi      # 0x1506a
callq 0x33a0
movq %rax, %r12
movq 0x8(%rsp), %rax
movq %r12, (%rax,%rbx,8)
testq %r12, %r12
je 0x8e0b
movq (%rsp), %rax
movq 0x658(%rax), %rax
movq (%rax), %rdx
movq %rbp, %rdi
movq %r14, %rsi
movl %ebx, %ecx
xorl %eax, %eax
callq 0x3430
movq %rbp, %rdi
leaq 0xc0(%rsp), %rsi
callq 0x32e0
movq 0xf0(%rsp), %r13
movq %r13, %rdi
callq 0x3340
movq %rax, %r15
movq %rbp, %rdi
leaq 0xc846(%rip), %rsi      # 0x15067
callq 0x33a0
testq %rax, %rax
je 0x8e0b
movq %rax, %r14
movl $0x1, %edx
movq %r15, %rdi
movq %r13, %rsi
movq %rax, %rcx
callq 0x30c0
movl $0x1, %edx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rcx
callq 0x3450
andq $-0x8, %r13
movq -0x8(%r15,%r13), %rax
movq 0x38(%rsp), %rcx
movq %rax, (%rcx,%rbx,8)
movq %r14, %rdi
callq 0x3100
movq %r15, %rdi
callq 0x3040
incq %rbx
cmpq %rbx, 0x20(%rsp)
movq 0x28(%rsp), %r13
movq (%rsp), %r15
leaq 0xc7ff(%rip), %r14      # 0x15091
leaq 0x250(%rsp), %rbp
jne 0x86cd
cmpl $0x2, 0x650(%r15)
jl 0x8c1f
movl $0x1, %ebp
leaq 0xcea6(%rip), %rbx      # 0x15760
movq 0x8(%rsp), %r12
movq 0x658(%r15), %rax
movq (%rax,%rbp,8), %rdi
movq %rbx, %rsi
callq 0x6bcc
testq %rax, %rax
je 0x892d
movq %rax, %r14
movq %rax, %rdi
leaq 0xc783(%rip), %rsi      # 0x15067
callq 0x33a0
testq %rax, %rax
je 0x8950
movq %rax, %rbx
movl $0x20, %esi
movl $0x1, %edx
leaq 0x70(%rsp), %rdi
movq %rax, %rcx
callq 0x30c0
movl 0x50(%rsp), %ecx
movl 0x70(%rsp), %edx
cmpl %edx, %ecx
jne 0x8968
cmpb $0x1, 0x74(%rsp)
jne 0x8985
leaq 0xdbbb(%rip), %rdi      # 0x164dd
movl %ebp, %esi
xorl %eax, %eax
callq 0x3170
jmp 0x8978
movq 0x658(%r15), %rax
movq (%rax,%rbp,8), %rdx
leaq 0xdb00(%rip), %rdi      # 0x1643f
movl %ebp, %esi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x3170
jmp 0x8c0a
leaq 0xdb18(%rip), %rdi      # 0x1646f
movl %ebp, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3170
jmp 0x8c03
leaq 0xdb2f(%rip), %rdi      # 0x1649e
movl %ebp, %esi
xorl %eax, %eax
callq 0x3170
movq %rbx, %rdi
callq 0x3100
jmp 0x8c03
movq 0x88(%rsp), %rax
addq %rax, 0x68(%rsp)
movslq 0x84(%rsp), %rsi
addl %esi, 0x64(%rsp)
shlq $0x2, %rsi
movq 0x18(%rsp), %rdi
callq 0x3350
movq %rax, %r15
movslq 0x84(%rsp), %r14
movl $0x4, %esi
movq %rax, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x30c0
movl $0x4, %esi
movq %r15, 0x18(%rsp)
movq %r15, %rdi
movq %r14, %rdx
movq 0x48(%rsp), %rcx
callq 0x3450
shlq $0x8, %r14
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x3350
movq %rax, %r15
movslq 0x84(%rsp), %r14
movl $0x100, %esi            # imm = 0x100
movq %rax, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x30c0
movl $0x100, %esi            # imm = 0x100
movq %r15, 0x10(%rsp)
movq %r15, %rdi
movq %r14, %rdx
movq 0x40(%rsp), %rcx
callq 0x3450
movq %rbx, %rdi
callq 0x3100
movslq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
jle 0x8bff
xorl %ebx, %ebx
movq (%rsp), %rax
movq 0x658(%rax), %rax
movq (%rax,%rbp,8), %rdx
leaq 0x250(%rsp), %r15
movq %r15, %rdi
leaq 0xc626(%rip), %rsi      # 0x15091
movl %ebx, %ecx
xorl %eax, %eax
callq 0x3430
movq %r15, %rdi
leaq 0xc0(%rsp), %rsi
callq 0x32e0
movq 0xf0(%rsp), %r12
movq %r12, %rdi
callq 0x3340
movq %rax, %r14
movq %r15, %rdi
movq %rbp, %r15
leaq 0xc5c3(%rip), %rsi      # 0x15067
callq 0x33a0
testq %rax, %rax
je 0x8df3
movq %rax, %r13
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rcx
callq 0x30c0
movq 0x30(%rsp), %rax
movq (%rax,%rbx,8), %rcx
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x3450
movq %r13, %rdi
callq 0x3100
movq %r14, %rdi
callq 0x3040
movq (%rsp), %rax
movq 0x658(%rax), %rax
movq %r15, %rbp
movq (%rax,%r15,8), %rdx
leaq 0x150(%rsp), %r15
movq %r15, %rdi
leaq 0xc569(%rip), %rsi      # 0x1507e
movl %ebx, %ecx
xorl %eax, %eax
callq 0x3430
movq %r15, %rdi
leaq 0xc0(%rsp), %rsi
callq 0x32e0
movq 0xf0(%rsp), %r12
movq %r12, %rdi
callq 0x3340
movq %rax, %r14
movq %r15, %rdi
leaq 0xc51c(%rip), %rsi      # 0x15067
callq 0x33a0
testq %rax, %rax
je 0x8e0b
movq %rax, %r13
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rcx
callq 0x30c0
movq %r13, %rdi
callq 0x3100
shrq $0x3, %r12
cmpl $0x2, %r12d
jl 0x8ba4
movq 0x38(%rsp), %rax
movq (%rax,%rbx,8), %rax
movl %r12d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl $0x1, %edx
addq %rax, (%r14,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x8b98
movq %r14, %rdi
addq $0x8, %rdi
shlq $0x20, %r12
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
addq %rax, %r12
movq %r12, %rdx
sarq $0x20, %rdx
movq 0x8(%rsp), %rax
movq (%rax,%rbx,8), %rcx
movl $0x8, %esi
callq 0x3450
sarq $0x1d, %r12
movq (%r14,%r12), %rax
movq 0x38(%rsp), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
cmpq 0x20(%rsp), %rbx
jne 0x8a4a
movq 0x28(%rsp), %r13
movq 0x8(%rsp), %r12
movq (%rsp), %r15
leaq 0xcb56(%rip), %rbx      # 0x15760
incq %rbp
movslq 0x650(%r15), %rax
cmpq %rax, %rbp
jl 0x88bf
jmp 0x8c24
movq 0x8(%rsp), %r12
movq 0x48(%rsp), %rdi
callq 0x3100
movq 0x40(%rsp), %rdi
callq 0x3100
movslq 0x60(%rsp), %rbx
testq %rbx, %rbx
movq 0x30(%rsp), %rbp
jle 0x8c65
xorl %r14d, %r14d
movq (%rbp,%r14,8), %rdi
callq 0x3100
movq (%r12,%r14,8), %rdi
callq 0x3100
incq %r14
cmpq %r14, %rbx
jne 0x8c4a
leaq 0xc727(%rip), %rsi      # 0x15393
leaq 0xcaed(%rip), %rcx      # 0x15760
leaq 0x250(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xc3db(%rip), %rsi      # 0x1506a
movq %rbx, %rdi
callq 0x33a0
testq %rax, %rax
je 0x8df3
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
movl $0x20, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x3450
leaq 0x450(%rsp), %r15
leaq 0x150(%rsp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x32e0
movq 0x30(%r14), %rsi
movq 0x18(%rsp), %rdi
callq 0x3350
movq %rax, %r14
leaq 0xc37a(%rip), %rsi      # 0x15067
movq %r15, %rdi
callq 0x33a0
testq %rax, %rax
je 0x8e3d
leaq 0x150(%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 0x350(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x32e0
movq 0x30(%r15), %rsi
movq 0x10(%rsp), %rdi
callq 0x3350
movq %rax, %r15
leaq 0xc30c(%rip), %rsi      # 0x15067
movq %r12, %rdi
callq 0x33a0
testq %rax, %rax
je 0x8e55
movq 0x180(%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 0x450(%rsp), %rdi
callq 0x3070
leaq 0x350(%rsp), %rdi
callq 0x3070
movq %r14, %rdi
callq 0x3040
movq %r15, %rdi
callq 0x3040
movq %rbp, %rdi
callq 0x3040
movq 0x8(%rsp), %rdi
callq 0x3040
movq %r13, %rax
addq $0x558, %rsp            # imm = 0x558
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3060
movl (%rax), %edi
leaq 0xd575(%rip), %rsi      # 0x16376
leaq 0x250(%rsp), %rdx
jmp 0x8e21
callq 0x3060
movl (%rax), %edi
leaq 0xd55d(%rip), %rsi      # 0x16376
leaq 0x150(%rsp), %rdx
xorl %eax, %eax
callq 0x3330
callq 0x3060
movl (%rax), %edi
leaq 0xd5bf(%rip), %rsi      # 0x163f5
xorl %eax, %eax
callq 0x3330
callq 0x3060
movl (%rax), %edi
leaq 0xd52b(%rip), %rsi      # 0x16376
leaq 0x450(%rsp), %rdx
jmp 0x8e21
callq 0x3060
movl (%rax), %edi
leaq 0xd513(%rip), %rsi      # 0x16376
leaq 0x350(%rsp), %rdx
jmp 0x8e21
callq 0x3060
movl (%rax), %edi
leaq 0xd5af(%rip), %rsi      # 0x1642a
movq %r14, %rdx
jmp 0x8e21