// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x19a18(%rip), %rdi     # 0x1d051
leaq 0x1ac94(%rip), %rsi     # 0x1e2d4
callq 0x151ea
leaq 0x20c14(%rip), %r15     # 0x24260
movq %rax, (%r15)
leaq 0x40(%rsp), %rdi
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
callq 0x2180
movl $0x1f4, 0x20b66(%rip)   # imm = 0x1F4
leaq 0x199e9(%rip), %rax     # 0x1d05a
movq %rax, 0x20b50(%rip)     # 0x241c8
cmpl $0x1, %ebp
jle 0x3bf7
movl %ebp, %r12d
movl $0xc, %r14d
movl $0x23, %eax
movq %rax, 0x30(%rsp)
movsd 0x19974(%rip), %xmm0    # 0x1d010
movl $0x64, %eax
movq %rax, 0x18(%rsp)
movl $0x4, %eax
movq %rax, 0x28(%rsp)
movl $0x1, %r13d
movl $0x1, %r15d
movl $0x4, %eax
movq %rax, 0x20(%rsp)
movq (%rbx,%r15,8), %rbp
cmpb $0x2d, (%rbp)
jne 0x3758
movb 0x1(%rbp), %al
movzbl %al, %ecx
cmpl $0x64, %ecx
jle 0x3767
leal -0x65(%rcx), %edx
cmpl $0x7, %edx
movsd %xmm0, 0x8(%rsp)
ja 0x37cf
leaq 0x1992c(%rip), %rsi     # 0x1d028
movslq (%rsi,%rdx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
addq $0x2, %rbp
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
callq 0x20e0
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
movq (%rbx,%r15,8), %r8
jne 0x3dea
cmpb $0x0, 0x2(%r8)
je 0x3dea
movsd 0x198dd(%rip), %xmm1    # 0x1d018
ucomisd %xmm0, %xmm1
ja 0x3eac
ucomisd 0x198d3(%rip), %xmm0    # 0x1d020
jb 0x39bc
jmp 0x3eac
movslq %r13d, %rax
incl %r13d
movq %rbp, (%rbx,%rax,8)
jmp 0x39bc
testl %ecx, %ecx
je 0x39bc
movsd %xmm0, 0x8(%rsp)
cmpl $0x50, %ecx
je 0x394d
cmpl $0x54, %ecx
jne 0x3825
addq $0x2, %rbp
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
movl $0xa, %edx
callq 0x2220
movq %rax, 0x28(%rsp)
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
movq (%rbx,%r15,8), %r8
jne 0x3d9f
cmpb $0x0, 0x2(%r8)
je 0x3d9f
cmpl $0x0, 0x28(%rsp)
jg 0x39b6
jmp 0x3f28
cmpl $0x73, %ecx
je 0x3973
cmpl $0x77, %ecx
jne 0x3825
addq $0x2, %rbp
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
movl $0xa, %edx
callq 0x2220
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
movq (%rbx,%r15,8), %r8
jne 0x3d9f
cmpb $0x0, 0x2(%r8)
je 0x3d9f
cmpl $0x0, 0x20(%rsp)
jg 0x39b6
jmp 0x3f51
movq %r14, 0x38(%rsp)
addq $0x2, %rbp
movsbl %al, %r14d
leaq 0x19826(%rip), %rdi     # 0x1d05f
movl %r14d, %esi
callq 0x2190
testq %rax, %rax
je 0x3d75
movslq %r14d, %rax
movl $0x1, 0x40(%rsp,%rax,4)
movb (%rbp), %al
incq %rbp
testb %al, %al
jne 0x382e
movq 0x38(%rsp), %r14
jmp 0x39b6
addq $0x2, %rbp
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
movl $0xa, %edx
callq 0x2220
movl %eax, 0x2094b(%rip)     # 0x241d0
movq 0x10(%rsp), %rcx
cmpb $0x0, (%rcx)
movq (%rbx,%r15,8), %r8
jne 0x3d9f
cmpb $0x0, 0x2(%r8)
je 0x3d9f
testl %eax, %eax
movsd 0x8(%rsp), %xmm0
jg 0x39bc
jmp 0x3e82
addq $0x2, %rbp
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
movl $0xa, %edx
callq 0x2220
movq %rax, 0x30(%rsp)
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
movq (%rbx,%r15,8), %r8
jne 0x3d9f
cmpb $0x0, 0x2(%r8)
je 0x3d9f
cmpl $0x0, 0x30(%rsp)
jg 0x39b6
jmp 0x3e56
addq $0x2, %rbp
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
movl $0xa, %edx
callq 0x2220
movq %rax, %r14
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
movq (%rbx,%r15,8), %r8
jne 0x3d9f
cmpb $0x0, 0x2(%r8)
je 0x3d9f
testl %r14d, %r14d
jle 0x3e2c
cmpl $0x21, %r14d
movsd 0x8(%rsp), %xmm0
jb 0x39bc
jmp 0x3ed3
addq $0x2, %rbp
movq %rbp, 0x20870(%rip)     # 0x241c8
movq %rbp, %rdi
callq 0x2110
testq %rax, %rax
je 0x3efa
movq %rax, %rdi
callq 0x21b0
jmp 0x39b6
addq $0x2, %rbp
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
movl $0xa, %edx
callq 0x2220
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
movq (%rbx,%r15,8), %r8
jne 0x3d9f
cmpb $0x0, 0x2(%r8)
je 0x3d9f
cmpl $0x0, 0x18(%rsp)
jle 0x3f7a
movsd 0x8(%rsp), %xmm0
incq %r15
cmpq %r12, %r15
jne 0x36c6
movl 0x218(%rsp), %eax
movl %eax, 0x207ff(%rip)     # 0x241d4
cmpl $0x1, %r13d
leaq 0x20880(%rip), %r15     # 0x24260
jle 0x3c01
movsd %xmm0, 0x8(%rsp)
shll 0x207de(%rip)           # 0x241d0
movl %r14d, %edi
movq 0x20(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x28(%rsp), %rcx
callq 0x4024
testl %eax, %eax
jne 0x3dcf
movaps 0x19ba8(%rip), %xmm0    # 0x1d5c0
leaq 0x40(%rsp), %rsi
movaps %xmm0, (%rsi)
movsd 0x8(%rsp), %xmm0
movq 0x18(%rsp), %rdi
xorl %edx, %edx
callq 0x67a2
movq %rax, 0x8(%rsp)
movq 0x2078a(%rip), %rdi     # 0x241c8
callq 0x2120
leaq 0x1e(%rax), %rdi
leaq 0x199cd(%rip), %rsi     # 0x1d41b
callq 0x1512d
testq %rax, %rax
je 0x3fa8
movq %rax, %r12
movq 0x20762(%rip), %rbp     # 0x241c8
callq 0x20f0
leaq 0x199be(%rip), %rsi     # 0x1d430
movq %r12, %rdi
movq %rbp, %rdx
movl %eax, %ecx
xorl %eax, %eax
callq 0x22d0
movq %r12, %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x20a0
testl %eax, %eax
jne 0x3e10
movq %r12, 0x2072b(%rip)     # 0x241c8
movl %r13d, %eax
movq %rax, 0x38(%rsp)
movl $0x1, %r15d
leaq 0x40(%rsp), %r12
movq (%rbx,%r15,8), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x161b3
testl %eax, %eax
js 0x3fda
movl %eax, %ebp
movq %r12, %rdi
callq 0x169bc
cmpl %r14d, 0x48(%rsp)
jge 0x3b08
movslq 0x70(%rsp), %rcx
testq %rcx, %rcx
jle 0x3b08
movq 0xa0(%rsp), %rax
shlq $0x3, %rcx
leaq (%rcx,%rcx,4), %rcx
xorl %edx, %edx
cmpl %r14d, 0x4(%rax,%rdx)
jl 0x3fb2
addq $0x28, %rdx
cmpq %rdx, %rcx
jne 0x3af4
movq %r12, %rdi
xorl %esi, %esi
callq 0x17894
testl %ebp, %ebp
leaq 0x19947(%rip), %rsi     # 0x1d462
leaq 0x19945(%rip), %rax     # 0x1d467
cmoveq %rax, %rsi
movq %r13, %rdi
callq 0x15307
movq %rax, %rbp
movq %rax, %rdi
movq %r12, %rsi
movq 0x8(%rsp), %rdx
callq 0x4131
movq %r12, %rdi
callq 0x1719a
movq 0x20678(%rip), %rsi     # 0x241c8
movq %rbp, %rdi
callq 0x35ac
movq %rax, %r13
movq 0x20666(%rip), %rdx     # 0x241c8
movq %rax, %rdi
leaq 0x198ff(%rip), %rsi     # 0x1d46b
movq %rbp, %rcx
movl $0x40, %r8d
xorl %eax, %eax
callq 0x22d0
cmpl $0x0, 0x20651(%rip)     # 0x241d4
je 0x3b8d
movq %r13, %rdi
callq 0x20b0
movq %r13, %rdi
callq 0x2130
testl %eax, %eax
jne 0x3fe4
movq 0x20624(%rip), %rcx     # 0x241c8
movq %r13, %rdi
leaq 0x198f4(%rip), %rsi     # 0x1d4a2
movq %rbp, %rdx
movq %rbp, %r8
movl $0x40, %r9d
xorl %eax, %eax
callq 0x22d0
cmpl $0x0, 0x2060c(%rip)     # 0x241d4
je 0x3bd2
movq %r13, %rdi
callq 0x20b0
movq %r13, %rdi
callq 0x2130
testl %eax, %eax
jne 0x3fe4
incq %r15
cmpq 0x38(%rsp), %r15
jne 0x3ab0
xorl %edi, %edi
callq 0x351c
movl $0x0, 0x205d3(%rip)     # 0x241d4
movq 0x203f0(%rip), %r14     # 0x23ff8
movq (%r14), %rdi
movq (%r15), %rdx
leaq 0x195cb(%rip), %rsi     # 0x1d1e0
leaq 0x198cf(%rip), %rcx     # 0x1d4eb
xorl %eax, %eax
callq 0x2200
movq (%r14), %rbx
movq (%r15), %rdi
callq 0x2120
leaq 0x195b9(%rip), %rsi     # 0x1d1ee
leaq 0x1a698(%rip), %rcx     # 0x1e2d4
leaq 0x198f3(%rip), %r8      # 0x1d536
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x2200
movq (%r14), %rsi
movl $0xa, %edi
callq 0x21c0
movq (%r14), %rcx
leaq 0x19597(%rip), %rdi     # 0x1d1fd
movl $0x36, %esi
movl $0x1, %edx
callq 0x22f0
movq (%r14), %rcx
leaq 0x195b5(%rip), %rdi     # 0x1d234
movl $0x26, %esi
movl $0x1, %edx
callq 0x22f0
movq (%r14), %rcx
leaq 0x195c3(%rip), %rdi     # 0x1d25b
movl $0x3d, %esi
movl $0x1, %edx
callq 0x22f0
movq (%r14), %rcx
leaq 0x195e8(%rip), %rdi     # 0x1d299
movl $0x41, %esi
movl $0x1, %edx
callq 0x22f0
movq (%r14), %rcx
leaq 0x19611(%rip), %rdi     # 0x1d2db
movl $0xf, %esi
movl $0x1, %edx
callq 0x22f0
movq (%r14), %rsi
movl $0xa, %edi
callq 0x21c0
movq (%r14), %rcx
leaq 0x195fb(%rip), %rdi     # 0x1d2eb
movl $0x3a, %esi
movl $0x1, %edx
callq 0x22f0
movq (%r14), %rcx
leaq 0x1961d(%rip), %rdi     # 0x1d326
movl $0x2f, %esi
movl $0x1, %edx
callq 0x22f0
movq (%r14), %rcx
leaq 0x19634(%rip), %rdi     # 0x1d356
movl $0x45, %esi
movl $0x1, %edx
callq 0x22f0
movq (%r14), %rsi
movl $0xa, %edi
callq 0x21c0
movq (%r14), %rcx
leaq 0x19654(%rip), %rdi     # 0x1d39c
movl $0x1a, %esi
movl $0x1, %edx
callq 0x22f0
movq (%r14), %rcx
leaq 0x19656(%rip), %rdi     # 0x1d3b7
movl $0x39, %esi
movl $0x1, %edx
callq 0x22f0
jmp 0x3fa8
movq 0x2027c(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x204da(%rip), %rax     # 0x24260
movq (%rax), %rdx
leaq 0x192d1(%rip), %rsi     # 0x1d061
movl %r14d, %ecx
xorl %eax, %eax
callq 0x2200
jmp 0x3fa8
movq 0x20252(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x204b0(%rip), %rax     # 0x24260
movq (%rax), %rdx
movsbl 0x1(%r8), %ecx
addq $0x2, %r8
leaq 0x192bc(%rip), %rsi     # 0x1d07f
xorl %eax, %eax
callq 0x2200
jmp 0x3fa8
movq 0x20222(%rip), %rax     # 0x23ff8
movq (%rax), %rcx
leaq 0x19611(%rip), %rdi     # 0x1d3f1
movl $0x29, %esi
jmp 0x3d66
movq 0x20207(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x20465(%rip), %rax     # 0x24260
movq (%rax), %rdx
movsbl 0x1(%r8), %ecx
addq $0x2, %r8
leaq 0x19313(%rip), %rsi     # 0x1d121
jmp 0x3dc3
movq 0x201e1(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
movq (%r15), %rdx
leaq 0x1961b(%rip), %rsi     # 0x1d43f
movq %r12, %rcx
jmp 0x3f1c
movq 0x201c5(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x20423(%rip), %rax     # 0x24260
movq (%rax), %rdx
leaq 0x19261(%rip), %rsi     # 0x1d0a8
leaq 0x19278(%rip), %rcx     # 0x1d0c6
movl %r14d, %r8d
jmp 0x3fa1
movq 0x2019b(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x203f9(%rip), %rax     # 0x24260
movq (%rax), %rdx
leaq 0x19237(%rip), %rsi     # 0x1d0a8
leaq 0x19291(%rip), %rcx     # 0x1d109
movq 0x30(%rsp), %r8
jmp 0x3fa1
movq 0x2016f(%rip), %rcx     # 0x23ff8
movq (%rcx), %rdi
leaq 0x203cd(%rip), %rcx     # 0x24260
movq (%rcx), %rdx
leaq 0x1920b(%rip), %rsi     # 0x1d0a8
leaq 0x192da(%rip), %rcx     # 0x1d17e
movl %eax, %r8d
jmp 0x3fa1
movq 0x20145(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x203a3(%rip), %rax     # 0x24260
movq (%rax), %rdx
leaq 0x19286(%rip), %rsi     # 0x1d14d
movb $0x1, %al
callq 0x2200
jmp 0x3fa8
movq 0x2011e(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x2037c(%rip), %rax     # 0x24260
movq (%rax), %rdx
leaq 0x191e5(%rip), %rsi     # 0x1d0d3
xorl %eax, %eax
callq 0x2200
jmp 0x3fa8
movq 0x200f7(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x20355(%rip), %rax     # 0x24260
movq (%rax), %rdx
movq 0x202b3(%rip), %rcx     # 0x241c8
leaq 0x19289(%rip), %rsi     # 0x1d1a5
xorl %eax, %eax
callq 0x2200
jmp 0x3fa8
movq 0x200c9(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x20327(%rip), %rax     # 0x24260
movq (%rax), %rdx
leaq 0x19165(%rip), %rsi     # 0x1d0a8
leaq 0x19284(%rip), %rcx     # 0x1d1ce
movq 0x28(%rsp), %r8
jmp 0x3fa1
movq 0x200a0(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x202fe(%rip), %rax     # 0x24260
movq (%rax), %rdx
leaq 0x1913c(%rip), %rsi     # 0x1d0a8
leaq 0x19185(%rip), %rcx     # 0x1d0f8
movq 0x20(%rsp), %r8
jmp 0x3fa1
movq 0x20077(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x202d5(%rip), %rax     # 0x24260
movq (%rax), %rdx
leaq 0x19113(%rip), %rsi     # 0x1d0a8
leaq 0x191fb(%rip), %rcx     # 0x1d197
movq 0x18(%rsp), %r8
xorl %eax, %eax
callq 0x2200
movl $0x1, %edi
callq 0x22e0
movq 0x2003f(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
leaq 0x2029d(%rip), %rax     # 0x24260
movq (%rax), %rdx
leaq 0x195b2(%rip), %rsi     # 0x1d57f
movq %r13, %rcx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x2200
movl $0x1, %edi
callq 0x351c
movq 0x2000d(%rip), %rax     # 0x23ff8
movq (%rax), %rbx
leaq 0x2026b(%rip), %rax     # 0x24260
movq (%rax), %r14
movq %r14, %rdi
callq 0x2120
leaq 0x19479(%rip), %rsi     # 0x1d480
leaq 0x1a2c6(%rip), %r8      # 0x1e2d4
movq %rbx, %rdi
movq %r14, %rdx
movl %eax, %ecx
movq %r13, %r9
xorl %eax, %eax
callq 0x2200
jmp 0x3fda
nop