// File: /workspace/github_c_makefile_star2_O0/yhg926[P]public_kssd/command_set.c
// Function: grouping_genomes
int grouping_genomes(char* taxfile){
  compan_t *subset = organize_taxf(taxfile);
  const char* co_dstat_fpath = NULL;
  co_dstat_fpath = test_get_fullpath(set_opt.insketchpath,co_dstat);
  if(co_dstat_fpath == NULL ) err(errno,"cannot find %s under %s ",co_dstat,set_opt.insketchpath);
  FILE *tmpfh;
  if( ( tmpfh = fopen(co_dstat_fpath,"rb")) == NULL ) err(errno,"grouping_genomes():%s",co_dstat_fpath);
  co_dstat_t co_dstat_readin;
  fread( &co_dstat_readin, sizeof(co_dstat_t),1,tmpfh );
  fclose(tmpfh);
  if(co_dstat_readin.infile_num != subset->gn)
    err(errno,"grouping_genomes():%s's genome number %d not matches %s's genome number %d",co_dstat_fpath,co_dstat_readin.infile_num,taxfile,subset->gn);
  free(co_dstat_fpath);
  mkdir(set_opt.outdir,0777);
  char tmppath[PATHLEN]; struct stat s; int outfn = 0; llong all_ctx_ct = 0;
  ctx_obj_ct_t *ctx_ct_list = calloc(subset->taxn,sizeof(ctx_obj_ct_t));
 unsigned int **tax_dict_ar = malloc(subset->taxn * sizeof(unsigned int *));
 int* tax_dict_size = malloc(subset->taxn*sizeof(int));
  size_t *outcombcoidx = malloc(sizeof(size_t)* (subset->taxn+1));
  for(int c=0; c < co_dstat_readin.comp_num; c++){
    sprintf(tmppath,"%s/%s.%d",set_opt.insketchpath,skch_prefix,c);
    if(stat(tmppath, &s) != 0) err(errno,"grouping_genomes():%s",tmppath);
    unsigned int *tmpcombco = malloc(s.st_size);
    if((tmpfh = fopen(tmppath,"rb")) == NULL) err(errno,"grouping_genomes():%s",tmppath);
    fread(tmpcombco,s.st_size, 1,tmpfh);
    fclose(tmpfh);
    sprintf(tmppath,"%s/%s.%d",set_opt.insketchpath,idx_prefix,c);
    if(stat(tmppath, &s) != 0) err(errno,"grouping_genomes():%s",tmppath);
    size_t *tmpcombcoidx = malloc(s.st_size);
    if((tmpfh = fopen(tmppath,"rb")) == NULL) err(errno,"grouping_genomes():%s",tmppath);
    fread(tmpcombcoidx,s.st_size, 1,tmpfh);
    fclose(tmpfh);
    for(int t = 0; t < subset->taxn; t++){
      if(subset->tax[t].taxid == 0) continue;
    int hashsize = 0;
    for(int n = 1; n <= subset->tax[t].gids[0];n++)
     hashsize += (tmpcombcoidx[subset->tax[t].gids[n]+1] - tmpcombcoidx[subset->tax[t].gids[n]]) ;
    int primer_ind = LOG2(hashsize * 1.5);
    tax_dict_size[t] = hashsize = primer_ind > 7 ? primer[primer_ind - 7] : primer[0] ;
    tax_dict_ar[t] = calloc(hashsize,sizeof(unsigned int));
        for(int n = 1; n <= subset->tax[t].gids[0];n++){
          int gid = subset->tax[t].gids[n] ;
          for(size_t i= tmpcombcoidx[gid]; i < tmpcombcoidx[gid+1];i++){
      for (int x = 0 ; x < hashsize; x++){
       int y = HASH(tmpcombco[i],x,hashsize);
       if (tax_dict_ar[t][y] == 0){
        tax_dict_ar[t][y] = tmpcombco[i];
        break;
       }
       else if (tax_dict_ar[t][y] == tmpcombco[i])
        break;
       if (x==hashsize -1){
        printf("grouping_genomes(): hashtable overflow! taxn=%d\tgid=%d\tkmer=%u\n",t,gid,tmpcombco[i]);
       }
      }
          }
        }
  }
  sprintf(tmppath,"%s/%s.%d",set_opt.outdir,skch_prefix,c);
    if((tmpfh = fopen(tmppath,"wb")) == NULL) err(errno,"grouping_genomes():%s",tmppath);
  outfn = 0;
  size_t offset = 0;
  outcombcoidx[0] = 0;
  for(int t = 0; t < subset->taxn; t++){
   if(subset->tax[t].taxid == 0) continue;
   for (int x = 0; x < tax_dict_size[t]; x++){
    if(tax_dict_ar[t][x] != 0){
     fwrite(&tax_dict_ar[t][x],sizeof(unsigned int),1,tmpfh);
     offset++;
     all_ctx_ct++;
     ctx_ct_list[outfn]++;
    }
   }
   outfn++;
   outcombcoidx[outfn]= offset;
   printf("%d/%d species pangenome grouped\r",t,subset->taxn);
   free(tax_dict_ar[t]);
  }
    printf("\n");
    fclose(tmpfh);
    sprintf(tmppath,"%s/%s.%d",set_opt.outdir,idx_prefix,c);
    tmpfh = fopen(tmppath,"wb");
    if(tmpfh == NULL) err(errno,"grouping_genomes():%s",tmppath);
    fwrite(outcombcoidx,sizeof(size_t),outfn+1,tmpfh);
    fclose(tmpfh);
    free(tmpcombco);
    free(tmpcombcoidx);
  }
  co_dstat_readin.infile_num = outfn;
  co_dstat_readin.koc = 0;
  co_dstat_readin.all_ctx_ct = all_ctx_ct;
  sprintf(tmppath,"%s/%s",set_opt.outdir,co_dstat);
  if((tmpfh = fopen(tmppath,"wb")) == NULL) err(errno,"grouping_genomes():%s",tmppath);
  fwrite(&co_dstat_readin,sizeof(co_dstat_t),1,tmpfh);
  fwrite(ctx_ct_list,sizeof(ctx_obj_ct_t),outfn,tmpfh);
  char (*tmpfname)[PATHLEN] = malloc(outfn * PATHLEN);
  int idx = 0;
  for(int t=0;t<subset->taxn;t++){
    if(subset->tax[t].taxid != 0) {
      if(subset->tax[t].taxname != NULL)
        sprintf(tmpfname[idx],"%d_%s",subset->tax[t].taxid,subset->tax[t].taxname);
      else sprintf(tmpfname[idx],"%d",subset->tax[t].taxid);
      idx++;
    }
    free(subset->tax[t].gids);
    free(subset->tax[t].taxname);
  }
  free(subset->tax);
  free(subset);
  fwrite(tmpfname,PATHLEN,outfn,tmpfh);
  fclose(tmpfh);
  free(tmpfname);
  free(ctx_ct_list);
  free(tax_dict_ar);
 free(tax_dict_size);
  free(outcombcoidx);
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x14ac0
movq %rax, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
leaq 0x11525(%rip), %rdi     # 0x23660
addq $0x18, %rdi
leaq 0xa5aa(%rip), %rsi      # 0x1c6f0
callq 0x8250
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x1217d
callq 0x3050
movl (%rax), %edi
leaq 0xa21b(%rip), %rsi      # 0x1c37f
leaq 0xa585(%rip), %rdx      # 0x1c6f0
leaq 0x114ee(%rip), %rcx     # 0x23660
addq $0x18, %rcx
movb $0x0, %al
callq 0x3300
movq -0x18(%rbp), %rdi
leaq 0x9ecf(%rip), %rsi      # 0x1c057
callq 0x3370
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x121b0
callq 0x3050
movl (%rax), %edi
movq -0x18(%rbp), %rdx
leaq 0xbf3f(%rip), %rsi      # 0x1e0e8
movb $0x0, %al
callq 0x3300
movq -0x20(%rbp), %rcx
leaq -0x40(%rbp), %rdi
movl $0x20, %esi
movl $0x1, %edx
callq 0x30a0
movq -0x20(%rbp), %rdi
callq 0x30e0
movl -0x2c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
je 0x12204
callq 0x3050
movl (%rax), %edi
movq -0x18(%rbp), %rdx
movl -0x2c(%rbp), %ecx
movq -0x8(%rbp), %r8
movq -0x10(%rbp), %rax
movl 0x4(%rax), %r9d
leaq 0xbf01(%rip), %rsi      # 0x1e0fe
movb $0x0, %al
callq 0x3300
movq -0x18(%rbp), %rdi
callq 0x3040
leaq 0x1144c(%rip), %rdi     # 0x23660
addq $0x318, %rdi            # imm = 0x318
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x3080
movl $0x0, -0x1d4(%rbp)
movq $0x0, -0x1e0(%rbp)
movq -0x10(%rbp), %rax
movslq (%rax), %rdi
movl $0x4, %esi
callq 0x3270
movq %rax, -0x1e8(%rbp)
movq -0x10(%rbp), %rax
movslq (%rax), %rdi
shlq $0x3, %rdi
callq 0x3310
movq %rax, -0x1f0(%rbp)
movq -0x10(%rbp), %rax
movslq (%rax), %rdi
shlq $0x2, %rdi
callq 0x3310
movq %rax, -0x1f8(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
addl $0x1, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x3310
movq %rax, -0x200(%rbp)
movl $0x0, -0x204(%rbp)
movl -0x204(%rbp), %eax
cmpl -0x30(%rbp), %eax
jge 0x12b35
leaq -0x140(%rbp), %rdi
movl -0x204(%rbp), %r8d
leaq 0x9d84(%rip), %rsi      # 0x1c04e
leaq 0x1138f(%rip), %rdx     # 0x23660
addq $0x18, %rdx
leaq 0xc17d(%rip), %rcx      # 0x1e459
movb $0x0, %al
callq 0x3400
leaq -0x140(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x32b0
cmpl $0x0, %eax
je 0x12317
callq 0x3050
movl (%rax), %edi
leaq -0x140(%rbp), %rdx
leaq 0xbdd8(%rip), %rsi      # 0x1e0e8
movb $0x0, %al
callq 0x3300
movq -0x1a0(%rbp), %rdi
callq 0x3310
movq %rax, -0x210(%rbp)
leaq -0x140(%rbp), %rdi
leaq 0x9d1f(%rip), %rsi      # 0x1c057
callq 0x3370
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x12363
callq 0x3050
movl (%rax), %edi
leaq -0x140(%rbp), %rdx
leaq 0xbd8c(%rip), %rsi      # 0x1e0e8
movb $0x0, %al
callq 0x3300
movq -0x210(%rbp), %rdi
movq -0x1a0(%rbp), %rsi
movq -0x20(%rbp), %rcx
movl $0x1, %edx
callq 0x30a0
movq -0x20(%rbp), %rdi
callq 0x30e0
leaq -0x140(%rbp), %rdi
movl -0x204(%rbp), %r8d
leaq 0x9cb1(%rip), %rsi      # 0x1c04e
leaq 0x112bc(%rip), %rdx     # 0x23660
addq $0x18, %rdx
leaq 0xc0b1(%rip), %rcx      # 0x1e460
movb $0x0, %al
callq 0x3400
leaq -0x140(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x32b0
cmpl $0x0, %eax
je 0x123ea
callq 0x3050
movl (%rax), %edi
leaq -0x140(%rbp), %rdx
leaq 0xbd05(%rip), %rsi      # 0x1e0e8
movb $0x0, %al
callq 0x3300
movq -0x1a0(%rbp), %rdi
callq 0x3310
movq %rax, -0x218(%rbp)
leaq -0x140(%rbp), %rdi
leaq 0x9c4c(%rip), %rsi      # 0x1c057
callq 0x3370
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x12436
callq 0x3050
movl (%rax), %edi
leaq -0x140(%rbp), %rdx
leaq 0xbcb9(%rip), %rsi      # 0x1e0e8
movb $0x0, %al
callq 0x3300
movq -0x218(%rbp), %rdi
movq -0x1a0(%rbp), %rsi
movq -0x20(%rbp), %rcx
movl $0x1, %edx
callq 0x30a0
movq -0x20(%rbp), %rdi
callq 0x30e0
movl $0x0, -0x21c(%rbp)
movl -0x21c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x1285d
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x21c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, (%rax)
jne 0x12497
jmp 0x12849
movl $0x0, -0x220(%rbp)
movl $0x1, -0x224(%rbp)
movl -0x224(%rbp), %eax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movslq -0x21c(%rbp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rcx
cmpl (%rcx), %eax
jg 0x1255c
movq -0x218(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movslq -0x21c(%rbp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rcx
movslq -0x224(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rcx
movq -0x218(%rbp), %rax
movq -0x10(%rbp), %rdx
movq 0x8(%rdx), %rdx
movslq -0x21c(%rbp), %rsi
imulq $0x18, %rsi, %rsi
addq %rsi, %rdx
movq 0x10(%rdx), %rdx
movslq -0x224(%rbp), %rsi
movslq (%rdx,%rsi,4), %rdx
subq (%rax,%rdx,8), %rcx
movslq -0x220(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x220(%rbp)
movl -0x224(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x224(%rbp)
jmp 0x124ab
cvtsi2sdl -0x220(%rbp), %xmm0
movsd 0xb8d4(%rip), %xmm1     # 0x1de40
mulsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
movsd 0xa129(%rip), %xmm1     # 0x1c6b0
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
bsrq %rax, %rax
xorq $0x3f, %rax
movslq %eax, %rcx
movl $0x40, %eax
subq %rcx, %rax
subq $0x1, %rax
movl %eax, -0x228(%rbp)
cmpl $0x7, -0x228(%rbp)
jle 0x125da
movl -0x228(%rbp), %eax
subl $0x7, %eax
movslq %eax, %rcx
leaq 0xc5d1(%rip), %rax      # 0x1eba0
movl (%rax,%rcx,4), %eax
movl %eax, -0x264(%rbp)
jmp 0x125e9
leaq 0xc5bf(%rip), %rax      # 0x1eba0
movl (%rax), %eax
movl %eax, -0x264(%rbp)
movl -0x264(%rbp), %edx
movl %edx, -0x220(%rbp)
movq -0x1f8(%rbp), %rax
movslq -0x21c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movslq -0x220(%rbp), %rdi
movl $0x4, %esi
callq 0x3270
movq %rax, %rdx
movq -0x1f0(%rbp), %rax
movslq -0x21c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x1, -0x22c(%rbp)
movl -0x22c(%rbp), %eax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movslq -0x21c(%rbp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rcx
cmpl (%rcx), %eax
jg 0x12847
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x21c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movslq -0x22c(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x230(%rbp)
movq -0x218(%rbp), %rax
movslq -0x230(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rax
movq -0x218(%rbp), %rcx
movl -0x230(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
cmpq (%rcx,%rdx,8), %rax
jae 0x12831
movl $0x0, -0x23c(%rbp)
movl -0x23c(%rbp), %eax
cmpl -0x220(%rbp), %eax
jge 0x12818
movq -0x210(%rbp), %rax
movq -0x238(%rbp), %rcx
movl (%rax,%rcx,4), %eax
xorl %edx, %edx
divl -0x220(%rbp)
movl %edx, -0x268(%rbp)
movl -0x23c(%rbp), %ecx
movq -0x210(%rbp), %rax
movq -0x238(%rbp), %rdx
movl (%rax,%rdx,4), %eax
movl -0x220(%rbp), %esi
subl $0x1, %esi
xorl %edx, %edx
divl %esi
movl -0x268(%rbp), %eax
addl $0x1, %edx
imull %edx, %ecx
addl %ecx, %eax
xorl %edx, %edx
divl -0x220(%rbp)
movl %edx, -0x240(%rbp)
movq -0x1f0(%rbp), %rax
movslq -0x21c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x240(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jne 0x12791
movq -0x210(%rbp), %rax
movq -0x238(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x1f0(%rbp), %rax
movslq -0x21c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x240(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x12818
movq -0x1f0(%rbp), %rax
movslq -0x21c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x240(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -0x210(%rbp), %rcx
movq -0x238(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jne 0x127c2
jmp 0x12818
jmp 0x127c4
movl -0x23c(%rbp), %eax
movl -0x220(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x12802
movl -0x21c(%rbp), %esi
movl -0x230(%rbp), %edx
movq -0x210(%rbp), %rax
movq -0x238(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
leaq 0xb94e(%rip), %rdi      # 0x1e149
movb $0x0, %al
callq 0x3150
jmp 0x12804
movl -0x23c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x23c(%rbp)
jmp 0x126cf
jmp 0x1281a
movq -0x238(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x238(%rbp)
jmp 0x126a1
jmp 0x12833
movl -0x22c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x22c(%rbp)
jmp 0x12636
jmp 0x12849
movl -0x21c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x21c(%rbp)
jmp 0x12465
leaq -0x140(%rbp), %rdi
movl -0x204(%rbp), %r8d
leaq 0x97dc(%rip), %rsi      # 0x1c04e
leaq 0x10de7(%rip), %rdx     # 0x23660
addq $0x318, %rdx            # imm = 0x318
leaq 0xbbd2(%rip), %rcx      # 0x1e459
movb $0x0, %al
callq 0x3400
leaq -0x140(%rbp), %rdi
leaq 0x97be(%rip), %rsi      # 0x1c05a
callq 0x3370
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x128c7
callq 0x3050
movl (%rax), %edi
leaq -0x140(%rbp), %rdx
leaq 0xb828(%rip), %rsi      # 0x1e0e8
movb $0x0, %al
callq 0x3300
movl $0x0, -0x1d4(%rbp)
movq $0x0, -0x248(%rbp)
movq -0x200(%rbp), %rax
movq $0x0, (%rax)
movl $0x0, -0x24c(%rbp)
movl -0x24c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x12a5d
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x24c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, (%rax)
jne 0x12926
jmp 0x12a49
movl $0x0, -0x250(%rbp)
movl -0x250(%rbp), %eax
movq -0x1f8(%rbp), %rcx
movslq -0x24c(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x129f0
movq -0x1f0(%rbp), %rax
movslq -0x24c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x250(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x129da
movq -0x1f0(%rbp), %rax
movslq -0x24c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x250(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rcx
movl $0x4, %esi
movl $0x1, %edx
callq 0x3420
movq -0x248(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x248(%rbp)
movq -0x1e0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1e0(%rbp)
movq -0x1e8(%rbp), %rax
movslq -0x1d4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
jmp 0x129dc
movl -0x250(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x250(%rbp)
jmp 0x12930
movl -0x1d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1d4(%rbp)
movq -0x248(%rbp), %rdx
movq -0x200(%rbp), %rax
movslq -0x1d4(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x24c(%rbp), %esi
movq -0x10(%rbp), %rax
movl (%rax), %edx
leaq 0xb696(%rip), %rdi      # 0x1e0c1
movb $0x0, %al
callq 0x3150
movq -0x1f0(%rbp), %rax
movslq -0x24c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x3040
movl -0x24c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24c(%rbp)
jmp 0x128f4
leaq 0xc54b(%rip), %rdi      # 0x1efaf
movb $0x0, %al
callq 0x3150
movq -0x20(%rbp), %rdi
callq 0x30e0
leaq -0x140(%rbp), %rdi
movl -0x204(%rbp), %r8d
leaq 0x95c5(%rip), %rsi      # 0x1c04e
leaq 0x10bd0(%rip), %rdx     # 0x23660
addq $0x318, %rdx            # imm = 0x318
leaq 0xb9c2(%rip), %rcx      # 0x1e460
movb $0x0, %al
callq 0x3400
leaq -0x140(%rbp), %rdi
leaq 0x95a7(%rip), %rsi      # 0x1c05a
callq 0x3370
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x12adf
callq 0x3050
movl (%rax), %edi
leaq -0x140(%rbp), %rdx
leaq 0xb610(%rip), %rsi      # 0x1e0e8
movb $0x0, %al
callq 0x3300
movq -0x200(%rbp), %rdi
movl -0x1d4(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdx
movq -0x20(%rbp), %rcx
movl $0x8, %esi
callq 0x3420
movq -0x20(%rbp), %rdi
callq 0x30e0
movq -0x210(%rbp), %rdi
callq 0x3040
movq -0x218(%rbp), %rdi
callq 0x3040
movl -0x204(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x204(%rbp)
jmp 0x122a6
movl -0x1d4(%rbp), %eax
movl %eax, -0x2c(%rbp)
movb $0x0, -0x3c(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq -0x140(%rbp), %rdi
leaq 0x97d0(%rip), %rsi      # 0x1c32b
leaq 0x10afe(%rip), %rdx     # 0x23660
addq $0x318, %rdx            # imm = 0x318
leaq 0x9b80(%rip), %rcx      # 0x1c6f0
movb $0x0, %al
callq 0x3400
leaq -0x140(%rbp), %rdi
leaq 0x94d5(%rip), %rsi      # 0x1c05a
callq 0x3370
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x12bb0
callq 0x3050
movl (%rax), %edi
leaq -0x140(%rbp), %rdx
leaq 0xb53f(%rip), %rsi      # 0x1e0e8
movb $0x0, %al
callq 0x3300
movq -0x20(%rbp), %rcx
leaq -0x40(%rbp), %rdi
movl $0x20, %esi
movl $0x1, %edx
callq 0x3420
movq -0x1e8(%rbp), %rdi
movslq -0x1d4(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl $0x4, %esi
callq 0x3420
movl -0x1d4(%rbp), %eax
shll $0x8, %eax
movslq %eax, %rdi
callq 0x3310
movq %rax, -0x258(%rbp)
movl $0x0, -0x25c(%rbp)
movl $0x0, -0x260(%rbp)
movl -0x260(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x12d50
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x260(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, (%rax)
je 0x12cfe
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x260(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x8(%rax)
je 0x12cb4
movq -0x258(%rbp), %rdi
movslq -0x25c(%rbp), %rax
shlq $0x8, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x260(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x260(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rcx
leaq 0xb437(%rip), %rsi      # 0x1e0e2
movb $0x0, %al
callq 0x3400
jmp 0x12cef
movq -0x258(%rbp), %rdi
movslq -0x25c(%rbp), %rax
shlq $0x8, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x260(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %edx
leaq 0xc38d(%rip), %rsi      # 0x1f075
movb $0x0, %al
callq 0x3400
movl -0x25c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x25c(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x260(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdi
callq 0x3040
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x260(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdi
callq 0x3040
movl -0x260(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x260(%rbp)
jmp 0x12c0f
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x3040
movq -0x10(%rbp), %rdi
callq 0x3040
movq -0x258(%rbp), %rdi
movslq -0x1d4(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
callq 0x3420
movq -0x20(%rbp), %rdi
callq 0x30e0
movq -0x258(%rbp), %rdi
callq 0x3040
movq -0x1e8(%rbp), %rdi
callq 0x3040
movq -0x1f0(%rbp), %rdi
callq 0x3040
movq -0x1f8(%rbp), %rdi
callq 0x3040
movq -0x200(%rbp), %rdi
callq 0x3040
xorl %eax, %eax
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
nopw %cs:(%rax,%rax)