// File: /workspace/github_c_makefile_star2_O0/thegenemyers[P]DAMASKER/datander.c
// Function: main
int main(int argc, char *argv[])
{ DAZZ_DB    _bblock;
  DAZZ_DB    *bblock = &_bblock;
  char       *bfile;
  char       *broot;
  Align_Spec *settings;
  int         isdam;
  char       *command;

  int    KMER_LEN;
  int    BIN_SHIFT;
  int    HIT_MIN;
  double AVE_ERROR;
  int    SPACING;
  int    NTHREADS;

  { int    i, j, k;
    int    flags[128];
    char  *eptr;
    DIR   *dirp;

    ARG_INIT("datander")

    KMER_LEN  = 12;
    HIT_MIN   = 35;
    BIN_SHIFT = 4;
    AVE_ERROR = .70;
    SPACING   = 100;
    MINOVER   = 500;    //   Globally visible to filter.c
    NTHREADS  = 4;
    SORT_PATH = "/tmp";

    j    = 1;
    for (i = 1; i < argc; i++)
      if (argv[i][0] == '-')
        switch (argv[i][1])
        { default:
            ARG_FLAGS("v")
            break;
          case 'k':
            ARG_POSITIVE(KMER_LEN,"K-mer length")
            if (KMER_LEN > 32)
              { fprintf(stderr,"%s: K-mer length must be 32 or less\n",Prog_Name);
                exit (1);
              }
            break;
          case 'w':
            ARG_POSITIVE(BIN_SHIFT,"Log of bin width")
            break;
          case 'h':
            ARG_POSITIVE(HIT_MIN,"Hit threshold (in bp.s)")
            break;
          case 'e':
            ARG_REAL(AVE_ERROR)
            if (AVE_ERROR < .6 || AVE_ERROR >= 1.)
              { fprintf(stderr,"%s: Average correlation must be in [.6,1.) (%g)\n",
                               Prog_Name,AVE_ERROR);
                exit (1);
              }
            break;
          case 'l':
            ARG_POSITIVE(MINOVER,"Minimum alignment length")
            break;
          case 's':
            ARG_POSITIVE(SPACING,"Trace spacing")
            break;
          case 'P':
            SORT_PATH = argv[i]+2;
            if ((dirp = opendir(SORT_PATH)) == NULL)
              { fprintf(stderr,"%s: -P option: cannot open directory %s\n",Prog_Name,SORT_PATH);
                exit (1);
              }
            closedir(dirp);
            break;
          case 'T':
            ARG_POSITIVE(NTHREADS,"Number of threads")
            break;
        }
      else
        argv[j++] = argv[i];
    argc = j;

    VERBOSE = flags['v'];   //  Globally declared in filter.h

    if (argc <= 1)
      { fprintf(stderr,"Usage: %s %s\n",Prog_Name,Usage[0]);
        fprintf(stderr,"       %*s %s\n",(int) strlen(Prog_Name),"",Usage[1]);
        fprintf(stderr,"\n");
        fprintf(stderr,"      -v: Verbose mode, output statistics as proceed.\n");
        fprintf(stderr,"      -k: k-mer size (must be <= 32).\n");
        fprintf(stderr,"      -w: Look for k-mers in averlapping bands of size 2^-w.\n");
        fprintf(stderr,"      -h: A seed hit if the k-mers in band cover >= -h bps in the");
        fprintf(stderr," targest read.\n");
        fprintf(stderr,"\n");
        fprintf(stderr,"      -e: Look for alignments with -e percent similarity.\n");
        fprintf(stderr,"      -l: Look for alignments of length >= -l.\n");
        fprintf(stderr,"      -s: Use -s as the trace point spacing for encoding alignments.\n");
        fprintf(stderr,"\n");
        fprintf(stderr,"      -T: Use -T threads.\n");
        fprintf(stderr,"      -P: Do first level sort and merge in directory -P.\n");
        exit (1);
      }
  }

  MINOVER *= 2;
  if (Set_Filter_Params(KMER_LEN,BIN_SHIFT,HIT_MIN,NTHREADS))
    { fprintf(stderr,"Illegal combination of filter parameters\n");
      exit (1);
    }

  { float freq[4] = { .25, .25, .25, .25};

    settings = New_Align_Spec( AVE_ERROR, SPACING, freq, 0);
  }

  // Create directory in SORT_PATH for file operations

  { char *newpath;

    newpath = (char *) Malloc(strlen(SORT_PATH)+30,"Allocating sort path");
    if (newpath == NULL)
      exit (1);
    sprintf(newpath,"%s/datander.%d",SORT_PATH,getpid());
    if (mkdir(newpath,S_IRWXU) !=  0)
      { fprintf(stderr,"%s: Could not create directory %s\n",Prog_Name,newpath);
        exit (1);
      }
    SORT_PATH = newpath;
  }

  // Compare each block against itself

  { int i;

    broot = NULL;
    for (i = 1; i < argc; i++)
      { bfile = argv[i];
        isdam = read_DB(bblock,bfile,KMER_LEN);
        if (isdam)
          broot = Root(bfile,".dam");
        else
          broot = Root(bfile,".db");

        Match_Self(broot,bblock,settings);

        Close_DB(bblock);

        command = CommandBuffer(broot,SORT_PATH);

#define SYSTEM_CHECK(command)                                           \
 if (VERBOSE)                                                           \
   printf("%s\n",command);                                              \
 if (system(command) != 0)                                              \
   { fprintf(stderr,"\n%s: Command Failed:\n%*s      %s\n",             \
                    Prog_Name,(int) strlen(Prog_Name),"",command);      \
     Clean_Exit(1);                                                     \
   }

        sprintf(command,"LAsort %s/%s.T%c.las",SORT_PATH,broot,BLOCK_SYMBOL);
        SYSTEM_CHECK(command)

        sprintf(command,"LAmerge TAN.%s.las %s/%s.T%c.S.las",broot,SORT_PATH,broot,BLOCK_SYMBOL);
        SYSTEM_CHECK(command)
      }
  }

  Clean_Exit(0);
  exit (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x350, %rsp            # imm = 0x350
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x26b06(%rip), %rdi     # 0x290d1
leaq 0x27cbd(%rip), %rsi     # 0x2a28f
callq 0x1d8a0
movq %rax, %rcx
leaq 0x2becf(%rip), %rax     # 0x2e4b0
movq %rcx, (%rax)
movl $0x0, -0xd4(%rbp)
cmpl $0x80, -0xd4(%rbp)
jge 0x261d
movslq -0xd4(%rbp), %rax
movl $0x0, -0x2e0(%rbp,%rax,4)
movl -0xd4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xd4(%rbp)
jmp 0x25ee
movl $0xc, -0xb4(%rbp)
movl $0x23, -0xbc(%rbp)
movl $0x4, -0xb8(%rbp)
movsd 0x269cd(%rip), %xmm0    # 0x29010
movsd %xmm0, -0xc8(%rbp)
movl $0x64, -0xcc(%rbp)
movl $0x1f4, 0x2bdc1(%rip)   # imm = 0x1F4
movl $0x4, -0xd0(%rbp)
leaq 0x26a6a(%rip), %rax     # 0x290da
movq %rax, 0x2bda1(%rip)     # 0x2e418
movl $0x1, -0xd8(%rbp)
movl $0x1, -0xd4(%rbp)
movl -0xd4(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x2f3e
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x2efd
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x1(%rax), %eax
addl $-0x50, %eax
movl %eax, %ecx
movq %rcx, -0x318(%rbp)
subl $0x27, %eax
ja 0x26f0
movq -0x318(%rbp), %rax
leaq 0x26941(%rip), %rcx     # 0x29028
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, -0xdc(%rbp)
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xdc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x27ca
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xdc(%rbp), %rcx
movsbl (%rax,%rcx), %esi
leaq 0x269a1(%rip), %rdi     # 0x290df
callq 0x2170
cmpq $0x0, %rax
jne 0x278f
movq 0x2b8a8(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2bd56(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xdc(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
leaq 0x26963(%rip), %rsi     # 0x290e1
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xdc(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cltq
movl $0x1, -0x2e0(%rbp,%rax,4)
movl -0xdc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xdc(%rbp)
jmp 0x26fa
jmp 0x2efb
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $0x2, %rdi
leaq -0x2e8(%rbp), %rsi
movl $0xa, %edx
callq 0x2200
movl %eax, -0xb4(%rbp)
movq -0x2e8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2820
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
cmpl $0x0, %eax
jne 0x2872
movq 0x2b7d1(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2bc7f(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x1(%rax), %ecx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rsi
movq (%rax,%rsi,8), %r8
addq $0x2, %r8
leaq 0x2689e(%rip), %rsi     # 0x290ff
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
cmpl $0x0, -0xb4(%rbp)
jg 0x28b5
movq 0x2b776(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2bc24(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movl -0xb4(%rbp), %r8d
leaq 0x2688b(%rip), %rsi     # 0x29128
leaq 0x268a2(%rip), %rcx     # 0x29146
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
cmpl $0x20, -0xb4(%rbp)
jle 0x28ea
movq 0x2b733(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2bbe1(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
leaq 0x2687a(%rip), %rsi     # 0x29153
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
jmp 0x2efb
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $0x2, %rdi
leaq -0x2e8(%rbp), %rsi
movl $0xa, %edx
callq 0x2200
movl %eax, -0xb8(%rbp)
movq -0x2e8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2940
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
cmpl $0x0, %eax
jne 0x2992
movq 0x2b6b1(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2bb5f(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x1(%rax), %ecx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rsi
movq (%rax,%rsi,8), %r8
addq $0x2, %r8
leaq 0x2677e(%rip), %rsi     # 0x290ff
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
cmpl $0x0, -0xb8(%rbp)
jg 0x29d5
movq 0x2b656(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2bb04(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movl -0xb8(%rbp), %r8d
leaq 0x2676b(%rip), %rsi     # 0x29128
leaq 0x267b4(%rip), %rcx     # 0x29178
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
jmp 0x2efb
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $0x2, %rdi
leaq -0x2e8(%rbp), %rsi
movl $0xa, %edx
callq 0x2200
movl %eax, -0xbc(%rbp)
movq -0x2e8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2a2b
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
cmpl $0x0, %eax
jne 0x2a7d
movq 0x2b5c6(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2ba74(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x1(%rax), %ecx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rsi
movq (%rax,%rsi,8), %r8
addq $0x2, %r8
leaq 0x26693(%rip), %rsi     # 0x290ff
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
cmpl $0x0, -0xbc(%rbp)
jg 0x2ac0
movq 0x2b56b(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2ba19(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movl -0xbc(%rbp), %r8d
leaq 0x26680(%rip), %rsi     # 0x29128
leaq 0x266da(%rip), %rcx     # 0x29189
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
jmp 0x2efb
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $0x2, %rdi
leaq -0x2e8(%rbp), %rsi
callq 0x20c0
movsd %xmm0, -0xc8(%rbp)
movq -0x2e8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2b13
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
cmpl $0x0, %eax
jne 0x2b65
movq 0x2b4de(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2b98c(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x1(%rax), %ecx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rsi
movq (%rax,%rsi,8), %r8
addq $0x2, %r8
leaq 0x2664d(%rip), %rsi     # 0x291a1
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
movsd 0x264ab(%rip), %xmm0    # 0x29018
ucomisd -0xc8(%rbp), %xmm0
ja 0x2b8d
movsd -0xc8(%rbp), %xmm0
movsd 0x26499(%rip), %xmm1    # 0x29020
ucomisd %xmm1, %xmm0
jb 0x2bc1
movq 0x2b464(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2b912(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movsd -0xc8(%rbp), %xmm0
leaq 0x2661d(%rip), %rsi     # 0x291cd
movb $0x1, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
jmp 0x2efb
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $0x2, %rdi
leaq -0x2e8(%rbp), %rsi
movl $0xa, %edx
callq 0x2200
movl %eax, 0x2b830(%rip)     # 0x2e420
movq -0x2e8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2c17
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
cmpl $0x0, %eax
jne 0x2c69
movq 0x2b3da(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2b888(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x1(%rax), %ecx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rsi
movq (%rax,%rsi,8), %r8
addq $0x2, %r8
leaq 0x264a7(%rip), %rsi     # 0x290ff
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
cmpl $0x0, 0x2b7b0(%rip)     # 0x2e420
jg 0x2cac
movq 0x2b37f(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2b82d(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movl 0x2b793(%rip), %r8d     # 0x2e420
leaq 0x26494(%rip), %rsi     # 0x29128
leaq 0x26563(%rip), %rcx     # 0x291fe
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
jmp 0x2efb
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $0x2, %rdi
leaq -0x2e8(%rbp), %rsi
movl $0xa, %edx
callq 0x2200
movl %eax, -0xcc(%rbp)
movq -0x2e8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2d02
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
cmpl $0x0, %eax
jne 0x2d54
movq 0x2b2ef(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2b79d(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x1(%rax), %ecx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rsi
movq (%rax,%rsi,8), %r8
addq $0x2, %r8
leaq 0x263bc(%rip), %rsi     # 0x290ff
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
cmpl $0x0, -0xcc(%rbp)
jg 0x2d97
movq 0x2b294(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2b742(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movl -0xcc(%rbp), %r8d
leaq 0x263a9(%rip), %rsi     # 0x29128
leaq 0x26491(%rip), %rcx     # 0x29217
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
jmp 0x2efb
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
addq $0x2, %rax
movq %rax, 0x2b662(%rip)     # 0x2e418
movq 0x2b65b(%rip), %rdi     # 0x2e418
callq 0x20f0
movq %rax, -0x2f0(%rbp)
cmpq $0x0, %rax
jne 0x2e02
movq 0x2b222(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2b6d0(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movq 0x2b62e(%rip), %rcx     # 0x2e418
leaq 0x26434(%rip), %rsi     # 0x29225
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
movq -0x2f0(%rbp), %rdi
callq 0x2190
jmp 0x2efb
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $0x2, %rdi
leaq -0x2e8(%rbp), %rsi
movl $0xa, %edx
callq 0x2200
movl %eax, -0xd0(%rbp)
movq -0x2e8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2e64
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
cmpl $0x0, %eax
jne 0x2eb6
movq 0x2b18d(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2b63b(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x1(%rax), %ecx
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rsi
movq (%rax,%rsi,8), %r8
addq $0x2, %r8
leaq 0x2625a(%rip), %rsi     # 0x290ff
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
cmpl $0x0, -0xd0(%rbp)
jg 0x2ef9
movq 0x2b132(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2b5e0(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movl -0xd0(%rbp), %r8d
leaq 0x26247(%rip), %rsi     # 0x29128
leaq 0x26366(%rip), %rcx     # 0x2924e
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
jmp 0x2efb
jmp 0x2f28
movq -0x10(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x10(%rbp), %rax
movl -0xd8(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0xd8(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x2f2a
movl -0xd4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xd4(%rbp)
jmp 0x268b
movl -0xd8(%rbp), %eax
movl %eax, -0x8(%rbp)
movl -0x108(%rbp), %eax
movl %eax, 0x2b4d1(%rip)     # 0x2e424
cmpl $0x1, -0x8(%rbp)
jg 0x310d
movq 0x2b094(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2b542(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movq 0x2b228(%rip), %rcx     # 0x2e1a0
leaq 0x262e1(%rip), %rsi     # 0x29260
movb $0x0, %al
callq 0x21e0
movq 0x2b06b(%rip), %rax     # 0x2dff8
movq (%rax), %rax
movq %rax, -0x320(%rbp)
leaq 0x2b512(%rip), %rax     # 0x2e4b0
movq (%rax), %rdi
callq 0x2100
movq -0x320(%rbp), %rdi
movl %eax, %edx
movq 0x2b1f2(%rip), %r8      # 0x2e1a8
leaq 0x262b1(%rip), %rsi     # 0x2926e
leaq 0x272cb(%rip), %rcx     # 0x2a28f
movb $0x0, %al
callq 0x21e0
movq 0x2b026(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x272b2(%rip), %rsi     # 0x2a28e
movb $0x0, %al
callq 0x21e0
movq 0x2b00e(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x26289(%rip), %rsi     # 0x2927d
movb $0x0, %al
callq 0x21e0
movq 0x2aff6(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x262a8(%rip), %rsi     # 0x292b4
movb $0x0, %al
callq 0x21e0
movq 0x2afde(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x262b7(%rip), %rsi     # 0x292db
movb $0x0, %al
callq 0x21e0
movq 0x2afc6(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x262dd(%rip), %rsi     # 0x29319
movb $0x0, %al
callq 0x21e0
movq 0x2afae(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x26307(%rip), %rsi     # 0x2935b
movb $0x0, %al
callq 0x21e0
movq 0x2af96(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x27222(%rip), %rsi     # 0x2a28e
movb $0x0, %al
callq 0x21e0
movq 0x2af7e(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x262e7(%rip), %rsi     # 0x2936b
movb $0x0, %al
callq 0x21e0
movq 0x2af66(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2630a(%rip), %rsi     # 0x293a6
movb $0x0, %al
callq 0x21e0
movq 0x2af4e(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x26322(%rip), %rsi     # 0x293d6
movb $0x0, %al
callq 0x21e0
movq 0x2af36(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x271c2(%rip), %rsi     # 0x2a28e
movb $0x0, %al
callq 0x21e0
movq 0x2af1e(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x26338(%rip), %rsi     # 0x2941c
movb $0x0, %al
callq 0x21e0
movq 0x2af06(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2633b(%rip), %rsi     # 0x29437
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
movl 0x2b30d(%rip), %eax     # 0x2e420
shll %eax
movl %eax, 0x2b305(%rip)     # 0x2e420
movl -0xb4(%rbp), %edi
movl -0xb8(%rbp), %esi
movl -0xbc(%rbp), %edx
movl -0xd0(%rbp), %ecx
callq 0x35c0
cmpl $0x0, %eax
je 0x315f
movq 0x2aeb4(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x26323(%rip), %rsi     # 0x29471
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
movq 0x264da(%rip), %rax     # 0x29640
movq %rax, -0x300(%rbp)
movq 0x264d4(%rip), %rax     # 0x29648
movq %rax, -0x2f8(%rbp)
movsd -0xc8(%rbp), %xmm0
movl -0xcc(%rbp), %edi
leaq -0x300(%rbp), %rsi
xorl %edx, %edx
callq 0x72b0
movq %rax, -0xa0(%rbp)
movq 0x2b273(%rip), %rdi     # 0x2e418
callq 0x2100
movq %rax, %rdi
addq $0x1e, %rdi
leaq 0x262e3(%rip), %rsi     # 0x2949b
callq 0x1d780
movq %rax, -0x308(%rbp)
cmpq $0x0, -0x308(%rbp)
jne 0x31d8
movl $0x1, %edi
callq 0x22d0
movq -0x308(%rbp), %rax
movq %rax, -0x330(%rbp)
movq 0x2b22b(%rip), %rax     # 0x2e418
movq %rax, -0x328(%rbp)
callq 0x20d0
movq -0x330(%rbp), %rdi
movq -0x328(%rbp), %rdx
movl %eax, %ecx
leaq 0x262a0(%rip), %rsi     # 0x294b0
movb $0x0, %al
callq 0x22c0
movq -0x308(%rbp), %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x2090
cmpl $0x0, %eax
je 0x3260
movq 0x2adc4(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x2b272(%rip), %rax     # 0x2e4b0
movq (%rax), %rdx
movq -0x308(%rbp), %rcx
leaq 0x26270(%rip), %rsi     # 0x294bf
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
movq -0x308(%rbp), %rax
movq %rax, 0x2b1aa(%rip)     # 0x2e418
movq $0x0, -0x98(%rbp)
movl $0x1, -0x30c(%rbp)
movl -0x30c(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x34e1
movq -0x10(%rbp), %rax
movslq -0x30c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rdi
movq -0x90(%rbp), %rsi
movl -0xb4(%rbp), %edx
callq 0x34f0
movl %eax, -0xa4(%rbp)
cmpl $0x0, -0xa4(%rbp)
je 0x32ec
movq -0x90(%rbp), %rdi
leaq 0x26204(%rip), %rsi     # 0x294e2
callq 0x1da50
movq %rax, -0x98(%rbp)
jmp 0x3306
movq -0x90(%rbp), %rdi
leaq 0x261ed(%rip), %rsi     # 0x294e7
callq 0x1da50
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq -0xa0(%rbp), %rdx
callq 0x37b0
movq -0x88(%rbp), %rdi
callq 0x20880
movq -0x98(%rbp), %rdi
movq 0x2b0de(%rip), %rsi     # 0x2e418
callq 0x24d0
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rdi
movq 0x2b0c4(%rip), %rdx     # 0x2e418
movq -0x98(%rbp), %rcx
leaq 0x26189(%rip), %rsi     # 0x294eb
movl $0x40, %r8d
movb $0x0, %al
callq 0x22c0
cmpl $0x0, 0x2b0ae(%rip)     # 0x2e424
je 0x338d
movq -0xb0(%rbp), %rsi
leaq 0x26198(%rip), %rdi     # 0x2951e
movb $0x0, %al
callq 0x2130
movq -0xb0(%rbp), %rdi
callq 0x2110
cmpl $0x0, %eax
je 0x3405
movq 0x2ac53(%rip), %rax     # 0x2dff8
movq (%rax), %rax
movq %rax, -0x340(%rbp)
leaq 0x2b0fa(%rip), %rax     # 0x2e4b0
movq (%rax), %rax
movq %rax, -0x338(%rbp)
leaq 0x2b0e9(%rip), %rax     # 0x2e4b0
movq (%rax), %rdi
callq 0x2100
movq -0x340(%rbp), %rdi
movq -0x338(%rbp), %rdx
movl %eax, %ecx
movq -0xb0(%rbp), %r9
leaq 0x26113(%rip), %rsi     # 0x29500
leaq 0x26e9b(%rip), %r8      # 0x2a28f
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x2420
movq -0xb0(%rbp), %rdi
movq -0x98(%rbp), %rdx
movq 0x2affe(%rip), %rcx     # 0x2e418
movq -0x98(%rbp), %r8
leaq 0x260fa(%rip), %rsi     # 0x29522
movl $0x40, %r9d
movb $0x0, %al
callq 0x22c0
cmpl $0x0, 0x2afe8(%rip)     # 0x2e424
je 0x3453
movq -0xb0(%rbp), %rsi
leaq 0x260d2(%rip), %rdi     # 0x2951e
movb $0x0, %al
callq 0x2130
movq -0xb0(%rbp), %rdi
callq 0x2110
cmpl $0x0, %eax
je 0x34cb
movq 0x2ab8d(%rip), %rax     # 0x2dff8
movq (%rax), %rax
movq %rax, -0x350(%rbp)
leaq 0x2b034(%rip), %rax     # 0x2e4b0
movq (%rax), %rax
movq %rax, -0x348(%rbp)
leaq 0x2b023(%rip), %rax     # 0x2e4b0
movq (%rax), %rdi
callq 0x2100
movq -0x350(%rbp), %rdi
movq -0x348(%rbp), %rdx
movl %eax, %ecx
movq -0xb0(%rbp), %r9
leaq 0x2604d(%rip), %rsi     # 0x29500
leaq 0x26dd5(%rip), %r8      # 0x2a28f
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x2420
jmp 0x34cd
movl -0x30c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30c(%rbp)
jmp 0x3283
xorl %edi, %edi
callq 0x2420
xorl %edi, %edi
callq 0x22d0
nop