// File: /workspace/github_c_makefile_star2_O2/thegenemyers[P]DASCRUBBER/DASqv.c
// Function: main
int main(int argc, char *argv[])
{ char  *root, *dpwd;
  int64  novl;
  int    c;

  DAZZ_EXTRA ex_hgap, ex_covr;
  DAZZ_EXTRA ex_cest, ex_qvs, ex_dif;

  char *cest_name = "Coverage Estimate";
  char *qvs_name  = "Histogram of QVs";
  char *dif_name  = "Histogram of Tile Differences";
  int64 cover64;

  //  Process arguments

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

    ARG_INIT("DASqv")

    COVERAGE = -1;

    j = 1;
    for (i = 1; i < argc; i++)
      if (argv[i][0] == '-')
        switch (argv[i][1])
        { default:
            ARG_FLAGS("v")
            break;
          case 'c':
            ARG_POSITIVE(COVERAGE,"Voting depth")
            break;
        }
      else
        argv[j++] = argv[i];
    argc = j;

    VERBOSE = flags['v'];

    if (argc < 3)
      { fprintf(stderr,"Usage: %s %s\n",Prog_Name,Usage);
        fprintf(stderr,"\n");
        fprintf(stderr,"      -v: Verbose mode, output statistics as proceed.\n");
        fprintf(stderr,"      -c: Use this as the average coverage (not DAScover estimate).\n");
        exit (1);
      }
  }

  //  Open trimmed DB

  { int status;

    status = Open_DB(argv[1],DB);
    if (status < 0)
      exit (1);
    if (status == 1)
      { fprintf(stderr,"%s: Cannot be called on a .dam index: %s\n",Prog_Name,argv[1]);
        exit (1);
      }
    if (DB->part)
      { fprintf(stderr,"%s: Cannot be called on a block: %s\n",Prog_Name,argv[1]);
        exit (1);
      }
    Trim_DB(DB);
  }

  //  Get .covr track information

  { FILE      *afile;
    char      *aname;
    int        extra, cmax;
    int64     *cgram;

    aname = Strdup(Catenate(DB->path,".","covr",".anno"),"Allocating anno file");
    if (aname == NULL)
      exit (1);
    afile  = fopen(aname,"r");
    if (afile == NULL)
      { fprintf(stderr,"%s: Must have a 'covr' track, run DAScover\n",Prog_Name);
        exit (1);
      }

    fseeko(afile,0,SEEK_END);
    extra = ftell(afile) - sizeof(int)*2;
    fseeko(afile,-extra,SEEK_END);
    ex_covr.nelem = 0;
    if (Read_Extra(afile,aname,&ex_covr) != 0)
      { fprintf(stderr,"%s: Histogram extra missing from .covr track?\n",Prog_Name);
        exit (1);
      }
    ex_hgap.nelem = 0;
    if (Read_Extra(afile,aname,&ex_hgap) != 0)
      { fprintf(stderr,"%s: Hgap threshold extra missing from .covr track?\n",Prog_Name);
        exit (1);
      }
    fclose(afile);

    HGAP_MIN = (int) ((int64 *) (ex_hgap.value))[0];
    cgram    = (int64 *) (ex_covr.value);
    cmax     = ex_covr.nelem - 1;

    if (COVERAGE < 0)
      { int i;

        i = 0;
        while (cgram[i+1] < cgram[i])
          i += 1;
        for (COVERAGE = i++; i < cmax; i++)
          if (cgram[COVERAGE] < cgram[i])
            COVERAGE = i;
      }

    if (COVERAGE >= 40)
      QV_DEEP = COVERAGE/8;
     else if (COVERAGE >= 20)
       QV_DEEP = 5;
     else if (COVERAGE >= 4)
       QV_DEEP = COVERAGE/4;
     else
       { fprintf(stderr,"%s: Average coverage is too low (< 4X), cannot infer qv's\n",Prog_Name);
         exit (1);
       }
  }

  //  Setup extras

  ex_cest.vtype = DB_INT;      // Estimated coverage (same for every .las)
  ex_cest.nelem = 1;
  ex_cest.accum = DB_EXACT;
  ex_cest.name  = cest_name;
  cover64 = COVERAGE;
  ex_cest.value = &cover64;

  ex_qvs.vtype = DB_INT;      //  Histogram of MAXQV1 trace-point diff counts
  ex_qvs.nelem = MAXQV1;
  ex_qvs.accum = DB_SUM;
  ex_qvs.name  = qvs_name;
  ex_qvs.value = &qgram;

  ex_dif.vtype = DB_INT;     //  Histogram of MAXQV1 intrinisic qv counts
  ex_dif.nelem = MAXQV1;
  ex_dif.accum = DB_SUM;
  ex_dif.name  = dif_name;
  ex_dif.value = &sgram;

  //  For each .las file do

  dpwd = PathTo(argv[1]);
  root = Root(argv[1],".db");

  for (c = 2; c < argc; c++)
    { Block_Looper *parse;
      FILE         *input;

      parse = Parse_Block_LAS_Arg(argv[c]);

      while ((input = Next_Block_Arg(parse)) != NULL)
        { DB_PART  = 0;
          DB_FIRST = 0;
          DB_LAST  = DB->nreads;

          //  Determine if overlap block is being processed and if so get first and last read
          //    from .db file

          { FILE *dbfile;
            char  buffer[2*MAX_NAME+100];
            char *p, *eptr;
            int   i, part, nfiles, nblocks, cutoff, all, oindx;
            int64 size;

            p = rindex(Block_Arg_Root(parse),'.');
            if (p != NULL)
              { part = strtol(p+1,&eptr,10);
                if (*eptr == '\0' && eptr != p+1)
                  { dbfile = Fopen(Catenate(dpwd,"/",root,".db"),"r");
                    if (dbfile == NULL)
                      exit (1);
                    if (fscanf(dbfile,DB_NFILE,&nfiles) != 1)
                      SYSTEM_READ_ERROR
                    for (i = 0; i < nfiles; i++)
                      if (fgets(buffer,2*MAX_NAME+100,dbfile) == NULL)
                        SYSTEM_READ_ERROR
                    if (fscanf(dbfile,DB_NBLOCK,&nblocks) != 1)
                      SYSTEM_READ_ERROR
                    if (fscanf(dbfile,DB_PARAMS,&size,&cutoff,&all) != 3)
                      SYSTEM_READ_ERROR
                    for (i = 1; i <= part; i++)
                      if (fscanf(dbfile,DB_BDATA,&oindx,&DB_FIRST) != 2)
                        SYSTEM_READ_ERROR
                    if (fscanf(dbfile,DB_BDATA,&oindx,&DB_LAST) != 2)
                      SYSTEM_READ_ERROR
                    fclose(dbfile);
                    DB_PART = part;
                  }
              }
          }

          //   Set up preliminary trimming track

          if (DB_PART > 0)
            { QV_AFILE = Fopen(Catenate(dpwd,PATHSEP,root,
                                        Numbered_Suffix(".",DB_PART,".qual.anno")),"w");
              QV_DFILE = Fopen(Catenate(dpwd,PATHSEP,root,
                                        Numbered_Suffix(".",DB_PART,".qual.data")),"w");
            }
          else
            { QV_AFILE = Fopen(Catenate(dpwd,PATHSEP,root,".qual.anno"),"w");
              QV_DFILE = Fopen(Catenate(dpwd,PATHSEP,root,".qual.data"),"w");
            }
          if (QV_AFILE == NULL || QV_DFILE == NULL)
            exit (1);

          { int size, length;

            length = DB_LAST - DB_FIRST;
            size   = sizeof(int64);
            fwrite(&length,sizeof(int),1,QV_AFILE);
            fwrite(&size,sizeof(int),1,QV_AFILE);
            QV_INDEX = 0;
            fwrite(&QV_INDEX,sizeof(int64),1,QV_AFILE);
          }

          //  Get trace point spacing information

          fread(&novl,sizeof(int64),1,input);
          fread(&TRACE_SPACING,sizeof(int),1,input);

          //  Initialize statistics gathering

          { int i;

            nreads = 0;
            totlen = 0;
            for (i = 0; i <= MAXQV; i++)
              qgram[i] = sgram[i] = 0;
          }

          if (VERBOSE)
            { printf("\n\nDASqv");
              if (HGAP_MIN > 0)
                printf(" -H%d",HGAP_MIN);
              printf(" -c%d %s %s\n\n",COVERAGE,argv[1],Block_Arg_Root(parse));
              fflush(stdout);
            }

          //  Process each read pile

          make_a_pass(input,CALCULATE_QVS,1);

          //  Write out extras and close .qual track

          Write_Extra(QV_AFILE,&ex_hgap);
          Write_Extra(QV_AFILE,&ex_cest);
          Write_Extra(QV_AFILE,&ex_qvs);
          Write_Extra(QV_AFILE,&ex_dif);

          fclose(QV_AFILE);
          fclose(QV_DFILE);
          fclose(input);

          //  If verbose output statistics summary to stdout

          if (VERBOSE)
            { int   i;
              int64 ssum, qsum;
              int64 stotal, qtotal;
              int   gval, bval;

              printf("\n  Input:  ");
              Print_Number(nreads,7,stdout);
              printf("reads,  ");
              Print_Number(totlen,12,stdout);
              printf(" bases");
              if (HGAP_MIN > 0)
                { printf(" (another ");
                  Print_Number((DB_LAST-DB_FIRST) - nreads,0,stdout);
		  printf(" were < H-length)");
		}
	      printf("\n");

	      stotal = qtotal = 0;
	      for (i = 0; i <= MAXQV; i++)
	        { stotal += sgram[i];
                  qtotal += qgram[i];
                }

              printf("\n  Histogram of q-values (average %d best)\n",2*QV_DEEP);
              printf("\n                   Input                 QV\n");
              qsum = qgram[MAXQV];
              ssum = sgram[MAXQV];
              printf("\n      %2d:  %9lld  %5.1f%%    %9lld  %5.1f%%\n\n",
                     MAXQV,sgram[MAXQV],(100.*ssum)/stotal,qgram[MAXQV],(100.*qsum)/qtotal);

              bval    = gval = -1;
              qtotal -= qsum;
              stotal -= ssum;
              ssum = qsum = 0;
              for (i = MAXQV-1; i >= 0; i--) 
                if (qgram[i] > 0)
                  { ssum += sgram[i];
                    qsum += qgram[i];
                    printf("      %2d:  %9lld  %5.1f%%    %9lld  %5.1f%%\n",
                           i,sgram[i],(100.*ssum)/stotal,
                             qgram[i],(100.*qsum)/qtotal);
                    if ((100.*qsum)/qtotal > 7. && bval < 0)
                      bval = i;
                    if ((100.*qsum)/qtotal > 20. && gval < 0)
                      gval = i;
                  }

              printf("\n    Recommend \'DAStrim -g%d -b%d'\n\n",gval,bval);
            }
        }

      Free_Block_Arg(parse);
    }

  //  Clean up

  free(dpwd);
  free(root);

  Close_DB(DB);
  free(Prog_Name);

  exit (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4fc8, %rsp           # imm = 0x4FC8
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x16f53(%rip), %rdi     # 0x1833c
leaq 0x16ffa(%rip), %rsi     # 0x183ea
callq 0x10e0c
leaq 0x1d1e4(%rip), %rcx     # 0x1e5e0
movq %rax, (%rcx)
xorl %eax, %eax
cmpq $0x80, %rax
je 0x1416
andl $0x0, 0x140(%rsp,%rax,4)
incq %rax
jmp 0x1401
orl $-0x1, 0x1cd93(%rip)    # 0x1e1b0
movslq %ebp, %r14
pushq $0x1
popq %rax
movl %eax, 0x8(%rsp)
pushq $0x1
popq %rbp
leaq 0x16f0f(%rip), %r15     # 0x18340
movq %rbx, 0x18(%rsp)
cmpq %r14, %rbp
jge 0x1520
movq (%rbx,%rbp,8), %r12
cmpb $0x2d, (%r12)
jne 0x14d3
movb 0x1(%r12), %bl
addq $0x2, %r12
cmpb $0x63, %bl
jne 0x14a3
movq %r12, %rdi
leaq 0x88(%rsp), %rsi
pushq $0xa
popq %rdx
callq 0x11e0
movl %eax, 0x1cd3b(%rip)     # 0x1e1b0
movq 0x88(%rsp), %rcx
cmpb $0x0, (%rcx)
movq 0x18(%rsp), %rbx
movq (%rbx,%rbp,8), %r8
jne 0x15dc
cmpb $0x0, 0x2(%r8)
je 0x15dc
testl %eax, %eax
jg 0x14eb
jmp 0x160c
testb %bl, %bl
je 0x14e6
movsbl %bl, %r13d
movq %r15, %rdi
movl %r13d, %esi
callq 0x1150
testq %rax, %rax
je 0x14f3
movsbq %bl, %rax
movl $0x1, 0x140(%rsp,%rax,4)
movb (%r12), %bl
incq %r12
jmp 0x14a3
movl 0x8(%rsp), %ecx
movslq %ecx, %rax
incl %ecx
movl %ecx, 0x8(%rsp)
movq %r12, (%rbx,%rax,8)
jmp 0x14eb
movq 0x18(%rsp), %rbx
incq %rbp
jmp 0x1436
movq 0x1cafe(%rip), %rax     # 0x1dff8
movq (%rax), %rdi
leaq 0x1d0dc(%rip), %rax     # 0x1e5e0
movq (%rax), %rdx
leaq 0x16b73(%rip), %rsi     # 0x18081
movl %r13d, %ecx
xorl %eax, %eax
callq 0x11b0
pushq $0x1
popq %rdi
callq 0x1290
movl 0x318(%rsp), %eax
movl %eax, 0x1cc87(%rip)     # 0x1e1b4
cmpl $0x2, 0x8(%rsp)
jg 0x1597
movq 0x1cabd(%rip), %r14     # 0x1dff8
movq (%r14), %rdi
leaq 0x1d09b(%rip), %rax     # 0x1e5e0
movq (%rax), %rdx
leaq 0x16ba4(%rip), %rsi     # 0x180f3
leaq 0x16ee8(%rip), %rcx     # 0x1843e
xorl %eax, %eax
callq 0x11b0
movq (%r14), %rsi
pushq $0xa
popq %rdi
callq 0x1180
movq (%r14), %rcx
leaq 0x16b8f(%rip), %rdi     # 0x18101
pushq $0x36
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x12a0
movq (%r14), %rcx
leaq 0x16bae(%rip), %rdi     # 0x18138
pushq $0x44
popq %rsi
movq %rbx, %rdx
callq 0x12a0
jmp 0x1518
movq 0x8(%rbx), %rdi
leaq 0x1cf96(%rip), %rsi     # 0x1e538
callq 0x11bf4
testl %eax, %eax
js 0x1518
cmpl $0x1, %eax
jne 0x163d
movq 0x1ca39(%rip), %rax     # 0x1dff8
movq (%rax), %rdi
leaq 0x1d017(%rip), %rax     # 0x1e5e0
movq (%rax), %rdx
movq 0x8(%rbx), %rcx
leaq 0x16ba6(%rip), %rsi     # 0x1817d
jmp 0x16e1
movq 0x1ca15(%rip), %rax     # 0x1dff8
movq (%rax), %rdi
leaq 0x1cff3(%rip), %rax     # 0x1e5e0
movq (%rax), %rdx
movsbl 0x1(%r8), %ecx
addq $0x2, %r8
leaq 0x16a9f(%rip), %rsi     # 0x1809f
xorl %eax, %eax
callq 0x11b0
jmp 0x1518
movq 0x1c9e5(%rip), %rcx     # 0x1dff8
movq (%rcx), %rdi
leaq 0x1cfc3(%rip), %rcx     # 0x1e5e0
movq (%rcx), %rdx
leaq 0x16aa1(%rip), %rsi     # 0x180c8
leaq 0x16ab8(%rip), %rcx     # 0x180e6
movl %eax, %r8d
xorl %eax, %eax
callq 0x11b0
jmp 0x1518
cmpl $0x0, 0x1cf2c(%rip)     # 0x1e570
jne 0x16c2
leaq 0x1ceeb(%rip), %rdi     # 0x1e538
callq 0x1249a
movq 0x1cf27(%rip), %rdi     # 0x1e580
leaq 0x16e0a(%rip), %rsi     # 0x1846a
leaq 0x16b65(%rip), %rdx     # 0x181cc
leaq 0x16cbb(%rip), %rcx     # 0x18329
callq 0x10feb
leaq 0x16b57(%rip), %rsi     # 0x181d1
movq %rax, %rdi
callq 0x10e0c
testq %rax, %rax
je 0x1518
movq %rax, %r14
leaq 0x17d51(%rip), %rsi     # 0x193e6
movq %rax, %rdi
callq 0x1260
testq %rax, %rax
jne 0x16ed
movq 0x1c94f(%rip), %rax     # 0x1dff8
movq (%rax), %rdi
leaq 0x1cf2d(%rip), %rax     # 0x1e5e0
movq (%rax), %rdx
leaq 0x16b29(%rip), %rsi     # 0x181e6
jmp 0x1809
movq 0x1c92f(%rip), %rax     # 0x1dff8
movq (%rax), %rdi
leaq 0x1cf0d(%rip), %rax     # 0x1e5e0
movq (%rax), %rdx
movq 0x8(%rbx), %rcx
leaq 0x16ac6(%rip), %rsi     # 0x181a7
xorl %eax, %eax
callq 0x11b0
jmp 0x1518
movq %rax, %r15
pushq $0x2
popq %rbp
movq %rax, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x1250
movq %r15, %rdi
callq 0x11c0
pushq $0x8
popq %rcx
subl %eax, %ecx
movslq %ecx, %rsi
movq %r15, %rdi
movl %ebp, %edx
callq 0x1250
leaq 0xc0(%rsp), %rdx
andl $0x0, 0x4(%rdx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x144ed
testl %eax, %eax
jne 0x17d1
leaq 0x88(%rsp), %rdx
andl $0x0, 0x4(%rdx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x144ed
testl %eax, %eax
jne 0x17ee
movq %r15, %rdi
callq 0x10d0
movq 0xa0(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x1ca49(%rip)     # 0x1e1b8
movl 0x1ca3b(%rip), %eax     # 0x1e1b0
testl %eax, %eax
jns 0x1815
movq 0xd8(%rsp), %rcx
movslq 0xc4(%rsp), %rdx
decq %rdx
movq (%rcx), %rax
xorl %esi, %esi
movq 0x8(%rcx,%rsi,8), %rdi
incq %rsi
cmpq %rax, %rdi
movq %rdi, %rax
jl 0x1795
leal -0x1(%rsi), %eax
movl %eax, 0x1ca02(%rip)     # 0x1e1b0
movl %eax, %edi
cmpq %rdx, %rsi
jge 0x1815
movslq %edi, %r8
movq (%rcx,%r8,8), %r8
cmpq (%rcx,%rsi,8), %r8
jge 0x17cc
movl %esi, 0x1c9e8(%rip)     # 0x1e1b0
movl %esi, %eax
movl %esi, %edi
incq %rsi
jmp 0x17b0
movq 0x1c820(%rip), %rax     # 0x1dff8
movq (%rax), %rdi
leaq 0x1cdfe(%rip), %rax     # 0x1e5e0
movq (%rax), %rdx
leaq 0x16a26(%rip), %rsi     # 0x18212
jmp 0x1809
movq 0x1c803(%rip), %rax     # 0x1dff8
movq (%rax), %rdi
leaq 0x1cde1(%rip), %rax     # 0x1e5e0
movq (%rax), %rdx
leaq 0x16a38(%rip), %rsi     # 0x18241
xorl %eax, %eax
callq 0x11b0
jmp 0x1518
cmpl $0x28, %eax
jl 0x1821
movl %eax, %ecx
shrl $0x3, %ecx
jmp 0x1839
cmpl $0x13, %eax
jle 0x182b
pushq $0x5
popq %rcx
jmp 0x1839
cmpl $0x4, %eax
jl 0x27ba
movl %eax, %ecx
shrl $0x2, %ecx
movabsq $0x100000000, %rdx      # imm = 0x100000000
leaq 0x120(%rsp), %rsi
movq %rdx, (%rsi)
andl $0x0, 0x8(%rsi)
movl %ecx, 0x1c964(%rip)     # 0x1e1bc
leaq 0x167e1(%rip), %rcx     # 0x18040
movq %rcx, 0x10(%rsi)
movl %eax, %eax
leaq 0xb0(%rsp), %rcx
movq %rax, (%rcx)
movq %rcx, 0x18(%rsi)
movabsq $0x3300000000, %rax     # imm = 0x3300000000
leaq 0x100(%rsp), %rsi
movq %rax, (%rsi)
pushq $0x1
popq %rcx
movl %ecx, 0x8(%rsi)
leaq 0x167bc(%rip), %rdx     # 0x18052
movq %rdx, 0x10(%rsi)
leaq 0x1c91f(%rip), %rdx     # 0x1e1c0
movq %rdx, 0x18(%rsi)
leaq 0xe0(%rsp), %rdx
movq %rax, (%rdx)
movl %ecx, 0x8(%rdx)
leaq 0x167a9(%rip), %rax     # 0x18063
movq %rax, 0x10(%rdx)
leaq 0x1ca9b(%rip), %rax     # 0x1e360
movq %rax, 0x18(%rdx)
movq 0x8(%rbx), %rdi
callq 0x10ecf
movq %rax, 0x30(%rsp)
movq 0x8(%rbx), %rdi
leaq 0x169ce(%rip), %rsi     # 0x182b0
callq 0x10f27
movq %rax, 0x28(%rsp)
movl 0x8(%rsp), %eax
movq %rax, 0x58(%rsp)
pushq $0x2
popq %rax
leaq 0x1750d(%rip), %r13     # 0x18e0c
cmpq 0x58(%rsp), %rax
jae 0x2829
movq %rax, 0x60(%rsp)
movq (%rbx,%rax,8), %rdi
callq 0x15517
movq %rax, %r14
movq %rax, 0x40(%rsp)
movq %r14, %rdi
callq 0x15313
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x27a5
andl $0x0, 0x1cbbb(%rip)     # 0x1e4f8
andl $0x0, 0x1cbb8(%rip)     # 0x1e4fc
movl 0x1cc1e(%rip), %eax     # 0x1e568
movl %eax, 0x1cbb0(%rip)     # 0x1e500
movq %r14, %rdi
callq 0x15403
movq %rax, %rdi
pushq $0x2e
popq %rsi
callq 0x1270
testq %rax, %rax
je 0x1ad2
movq %rax, %r12
incq %r12
movq %r12, %rdi
leaq 0x48(%rsp), %rsi
pushq $0xa
popq %rdx
callq 0x11e0
movq %rax, %r14
movq 0x48(%rsp), %rax
cmpq %r12, %rax
je 0x1ad2
cmpb $0x0, (%rax)
jne 0x1ad2
movq 0x30(%rsp), %rdi
leaq 0x1690c(%rip), %rsi     # 0x182b4
movq 0x28(%rsp), %rdx
leaq 0x168fc(%rip), %rcx     # 0x182b0
callq 0x10feb
movq %rax, %rdi
leaq 0x17a23(%rip), %rsi     # 0x193e6
callq 0x10e6f
testq %rax, %rax
je 0x1518
movq %rax, %r12
movq %rax, %rdi
leaq 0x168d8(%rip), %rsi     # 0x182b6
leaq 0x54(%rsp), %rdx
xorl %eax, %eax
callq 0x1090
cmpl $0x1, %eax
jne 0x27da
pushq $-0x1
popq %rbx
incl %ebx
cmpl 0x54(%rsp), %ebx
jge 0x1a1d
leaq 0x140(%rsp), %rdi
movl $0x4e84, %esi           # imm = 0x4E84
movq %r12, %rdx
callq 0x1190
testq %rax, %rax
jne 0x19f6
jmp 0x27da
movq %r12, %rdi
leaq 0x168bc(%rip), %rsi     # 0x182e3
leaq 0x84(%rsp), %rdx
xorl %eax, %eax
callq 0x1090
cmpl $0x1, %eax
jne 0x27da
movq %r12, %rdi
leaq 0x168a8(%rip), %rsi     # 0x182f1
leaq 0xa8(%rsp), %rdx
leaq 0x80(%rsp), %rcx
leaq 0x7c(%rsp), %r8
xorl %eax, %eax
callq 0x1090
cmpl $0x3, %eax
jne 0x27da
testl %r14d, %r14d
movl $0x0, %ebx
cmovgl %r14d, %ebx
incl %ebx
movq %r12, %rdi
leaq 0x16891(%rip), %rsi     # 0x18317
leaq 0x50(%rsp), %rdx
decl %ebx
je 0x1aa7
leaq 0x1ca66(%rip), %rcx     # 0x1e4fc
xorl %eax, %eax
callq 0x1090
cmpl $0x2, %eax
je 0x1a7c
jmp 0x27da
leaq 0x1ca52(%rip), %rcx     # 0x1e500
xorl %eax, %eax
callq 0x1090
cmpl $0x2, %eax
jne 0x27da
movq %r12, %rdi
callq 0x10d0
movl %r14d, 0x1ca2b(%rip)    # 0x1e4f8
movq 0x18(%rsp), %rbx
movl 0x1ca20(%rip), %esi     # 0x1e4f8
testl %esi, %esi
jle 0x1b54
leaq 0x16987(%rip), %r12     # 0x1846a
movq %r12, %rdi
leaq 0x16837(%rip), %rdx     # 0x18324
callq 0x11112
movq 0x30(%rsp), %r14
movq %r14, %rdi
leaq 0x16820(%rip), %r13     # 0x18321
movq %r13, %rsi
movq 0x28(%rsp), %r15
movq %r15, %rdx
movq %rax, %rcx
callq 0x10feb
movq %rax, %rdi
leaq 0x172ee(%rip), %rsi     # 0x18e0c
callq 0x10e6f
movq %rax, 0x1c9de(%rip)     # 0x1e508
movl 0x1c9c8(%rip), %esi     # 0x1e4f8
movq %r12, %rdi
leaq 0x167f5(%rip), %rdx     # 0x1832f
callq 0x11112
movq %r14, %rdi
movq %r13, %rsi
leaq 0x172c0(%rip), %r13     # 0x18e0c
movq %r15, %rdx
movq %rax, %rcx
jmp 0x1b9c
movq 0x30(%rsp), %r14
movq %r14, %rdi
leaq 0x167be(%rip), %r12     # 0x18321
movq %r12, %rsi
movq 0x28(%rsp), %r15
movq %r15, %rdx
leaq 0x167af(%rip), %rcx     # 0x18324
callq 0x10feb
movq %rax, %rdi
movq %r13, %rsi
callq 0x10e6f
movq %rax, 0x1c97c(%rip)     # 0x1e508
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
leaq 0x16793(%rip), %rcx     # 0x1832f
callq 0x10feb
movq %rax, %rdi
movq %r13, %rsi
callq 0x10e6f
movq %rax, 0x1c95d(%rip)     # 0x1e510
movq 0x1c94e(%rip), %rcx     # 0x1e508
testq %rcx, %rcx
je 0x1518
testq %rax, %rax
je 0x1518
movl 0x1c92e(%rip), %eax     # 0x1e500
subl 0x1c924(%rip), %eax     # 0x1e4fc
movl %eax, 0x48(%rsp)
movl $0x8, 0x140(%rsp)
leaq 0x48(%rsp), %rdi
pushq $0x4
popq %r15
movq %r15, %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
callq 0x12a0
movq 0x1c902(%rip), %rcx     # 0x1e508
leaq 0x140(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x12a0
andq $0x0, 0x1c8f7(%rip)     # 0x1e518
movq 0x1c8e0(%rip), %rcx     # 0x1e508
leaq 0x1c8e9(%rip), %rdi     # 0x1e518
pushq $0x8
popq %r12
movq %r12, %rsi
movq %r14, %rdx
callq 0x12a0
leaq 0xb8(%rsp), %rdi
movq %r12, %rsi
movq %r14, %rdx
movq 0x10(%rsp), %r12
movq %r12, %rcx
callq 0x10c0
leaq 0x1c8c0(%rip), %r13     # 0x1e520
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x10c0
andq $0x0, 0x1c8af(%rip)     # 0x1e528
andq $0x0, 0x1c8af(%rip)     # 0x1e530
xorl %eax, %eax
leaq 0x1c536(%rip), %rcx     # 0x1e1c0
cmpq $0x198, %rax            # imm = 0x198
je 0x1ca9
leaq 0x1c6c7(%rip), %rdx     # 0x1e360
andq $0x0, (%rax,%rdx)
andq $0x0, (%rax,%rcx)
addq $0x8, %rax
jmp 0x1c8a
cmpl $0x0, 0x1c504(%rip)     # 0x1e1b4
je 0x1d13
leaq 0x16681(%rip), %rdi     # 0x1833a
xorl %eax, %eax
callq 0x1110
movl 0x1c4f2(%rip), %esi     # 0x1e1b8
testl %esi, %esi
jle 0x1cd8
leaq 0x16671(%rip), %rdi     # 0x18342
xorl %eax, %eax
callq 0x1110
movl 0x1c4d1(%rip), %r14d    # 0x1e1b0
movq 0x8(%rbx), %r12
movq 0x40(%rsp), %rdi
callq 0x15403
leaq 0x16654(%rip), %rdi     # 0x18348
movl %r14d, %esi
movq %r12, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1110
movq 0x1c2cd(%rip), %rax     # 0x1dfd8
movq (%rax), %rdi
callq 0x1210
cmpq $0x0, 0x1c88d(%rip)     # 0x1e5a8
jne 0x1d44
movslq 0x1c454(%rip), %rax     # 0x1e178
imulq $0x30, %rax, %rdi
leaq 0x1673d(%rip), %rsi     # 0x1846c
callq 0x10d51
movq %rax, 0x1c86d(%rip)     # 0x1e5a8
testq %rax, %rax
je 0x1518
cmpq $0x0, 0x1c864(%rip)     # 0x1e5b0
jne 0x1d74
movslq 0x1c427(%rip), %rdi     # 0x1e17c
addq %rdi, %rdi
leaq 0x16727(%rip), %rsi     # 0x18486
callq 0x10d51
movq %rax, 0x1c845(%rip)     # 0x1e5b0
testq %rax, %rax
je 0x1518
movq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x1120
leaq 0x140(%rsp), %rdi
pushq $0x8
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
movq %r12, %rcx
callq 0x10c0
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x10c0
xorl %eax, %eax
cmpl $0x7e, 0x1c76b(%rip)    # 0x1e520
setge %al
incl %eax
movl %eax, 0x1c7f8(%rip)     # 0x1e5b8
movq 0x1c7e1(%rip), %rsi     # 0x1e5a8
movq %r12, %rdi
callq 0x835d
movq 0x1c7d2(%rip), %rdi     # 0x1e5a8
testl %eax, %eax
je 0x1de6
movl $0x7fffffff, 0x24(%rdi) # imm = 0x7FFFFFFF
jmp 0x1e81
movl 0x8(%rdi), %ecx
movq 0x1c7c0(%rip), %rax     # 0x1e5b0
cmpl 0x1c386(%rip), %ecx     # 0x1e17c
jle 0x1e45
cvtsi2sd %ecx, %xmm0
mulsd 0x16204(%rip), %xmm0    # 0x18008
addsd 0x16204(%rip), %xmm0    # 0x18010
cvttsd2si %xmm0, %ecx
movl %ecx, 0x1c366(%rip)     # 0x1e17c
movslq %ecx, %rsi
addq %rsi, %rsi
movq %rax, %rdi
leaq 0x16677(%rip), %rdx     # 0x1849d
callq 0x10da9
movq %rax, 0x1c77e(%rip)     # 0x1e5b0
testq %rax, %rax
je 0x1518
movq 0x1c766(%rip), %rcx     # 0x1e5a8
movl 0x8(%rcx), %ecx
movl 0x1c76d(%rip), %esi     # 0x1e5b8
movslq %ecx, %rdx
movq %rax, %rdi
movq 0x10(%rsp), %rcx
callq 0x10c0
cmpl $0x1, 0x1c756(%rip)     # 0x1e5b8
movq 0x1c73f(%rip), %rdi     # 0x1e5a8
jne 0x1e81
movq 0x1c73e(%rip), %rax     # 0x1e5b0
movq %rax, (%rdi)
callq 0x846f
movq 0x1c727(%rip), %rdi     # 0x1e5a8
movslq 0x1c674(%rip), %rbp     # 0x1e4fc
cmpl %ebp, 0x24(%rdi)
jl 0x2803
xorl %eax, %eax
xorl %r13d, %r13d
movslq 0x1c663(%rip), %rcx     # 0x1e500
movq 0x1c704(%rip), %r12     # 0x1e5a8
cltq
imulq $0x30, %rax, %rax
cmpq %rcx, %rbp
jge 0x24c2
movupd (%r12,%rax), %xmm0
movupd 0x10(%r12,%rax), %xmm1
movupd 0x20(%r12,%rax), %xmm2
movupd %xmm2, 0x20(%r12)
movupd %xmm1, 0x10(%r12)
movupd %xmm0, (%r12)
movslq 0x24(%r12), %rbx
cmpq %rbx, %rbp
jne 0x205b
movq 0x1c6c0(%rip), %rdi     # 0x1e5b0
movslq %r13d, %rax
leaq (%rdi,%rax,2), %rsi
movslq 0x8(%r12), %rdx
addq %rdx, %rdx
callq 0x1240
movl 0x8(%r12), %r14d
xorl %r13d, %r13d
pushq $0x1
popq %rax
movq %rax, 0x8(%rsp)
leaq (%r12,%r13), %rsi
addq $0x30, %rsi
movq 0x10(%rsp), %rdi
callq 0x835d
movq 0x1c67b(%rip), %r12     # 0x1e5a8
testl %eax, %eax
jne 0x218a
movl 0x38(%r12,%r13), %ecx
leal (%rcx,%r14), %edx
movq 0x1c66b(%rip), %rax     # 0x1e5b0
cmpl 0x1c231(%rip), %edx     # 0x1e17c
jle 0x1f9c
cvtsi2sd %edx, %xmm0
mulsd 0x160af(%rip), %xmm0    # 0x18008
addsd 0x160af(%rip), %xmm0    # 0x18010
cvttsd2si %xmm0, %ecx
movl %ecx, 0x1c211(%rip)     # 0x1e17c
movslq %ecx, %rsi
addq %rsi, %rsi
movq %rax, %rdi
leaq 0x16522(%rip), %rdx     # 0x1849d
callq 0x10da9
movq %rax, 0x1c629(%rip)     # 0x1e5b0
testq %rax, %rax
je 0x1518
movq 0x1c611(%rip), %rcx     # 0x1e5a8
movl 0x38(%rcx,%r13), %ecx
movslq %r14d, %r15
leaq (%rax,%r15,2), %rdi
movl 0x1c60f(%rip), %esi     # 0x1e5b8
movslq %ecx, %rdx
movq 0x10(%rsp), %rcx
callq 0x10c0
cmpl $0x1, 0x1c5fb(%rip)     # 0x1e5b8
jne 0x1fe0
addq %r15, %r15
addq 0x1c5e7(%rip), %r15     # 0x1e5b0
movq 0x1c5d8(%rip), %rax     # 0x1e5a8
leaq (%rax,%r13), %rdi
addq $0x30, %rdi
movq %r15, (%rdi)
callq 0x846f
movq 0x1c5c1(%rip), %r12     # 0x1e5a8
cmpl %ebx, 0x54(%r12,%r13)
jne 0x2193
addl 0x38(%r12,%r13), %r14d
movq 0x8(%rsp), %rax
incq %rax
cmpl %eax, 0x1c173(%rip)     # 0x1e178
movq %rax, 0x8(%rsp)
jg 0x2052
cvtsi2sd %eax, %xmm0
mulsd 0x15ff0(%rip), %xmm0    # 0x18008
addsd 0x15ff8(%rip), %xmm0    # 0x18018
cvttsd2si %xmm0, %eax
movl %eax, 0x1c14e(%rip)     # 0x1e178
cltq
imulq $0x30, %rax, %rsi
movq %r12, %rdi
leaq 0x164bd(%rip), %rdx     # 0x184f7
callq 0x10da9
movq %rax, %r12
movq %rax, 0x1c55f(%rip)     # 0x1e5a8
testq %rax, %rax
je 0x1518
addq $0x30, %r13
jmp 0x1f14
movq $0x0, 0x8(%rsp)
movq 0x18(%rsp), %rbx
movq 0x1c528(%rip), %rax     # 0x1e598
movq %rbp, 0x68(%rsp)
movslq %ebp, %rcx
imulq $0x28, %rcx, %rcx
movslq 0x4(%rax,%rcx), %rsi
movl 0x1c499(%rip), %ecx     # 0x1e520
leal (%rsi,%rcx), %eax
decl %eax
cltd
idivl %ecx
movq %rsi, 0x38(%rsp)
cmpl 0x1c11e(%rip), %esi     # 0x1e1b8
jl 0x2497
cmpl 0x1c516(%rip), %eax     # 0x1e5bc
movl %eax, 0x20(%rsp)
jle 0x21ca
cvtsi2sd %eax, %xmm0
mulsd 0x15f4c(%rip), %xmm0    # 0x18008
addsd 0x15f54(%rip), %xmm0    # 0x18018
cvttsd2si %xmm0, %eax
movl %eax, 0x1c4ee(%rip)     # 0x1e5bc
movq 0x1c4eb(%rip), %rdi     # 0x1e5c0
imull $0x33, %eax, %eax
movslq %eax, %rsi
shlq $0x2, %rsi
leaq 0x1642a(%rip), %rbx     # 0x18510
movq %rbx, %rdx
callq 0x10da9
movq %rax, 0x1c4cb(%rip)     # 0x1e5c0
movq 0x1c4cc(%rip), %rdi     # 0x1e5c8
movslq 0x1c4b9(%rip), %rax     # 0x1e5bc
imulq $0xcc, %rax, %rsi
movq %rbx, %rdx
callq 0x10da9
movq %rax, 0x1c4af(%rip)     # 0x1e5c8
movq 0x1c4b0(%rip), %rdi     # 0x1e5d0
movslq 0x1c495(%rip), %rsi     # 0x1e5bc
leaq 0x163f8(%rip), %rdx     # 0x18526
callq 0x10da9
movq %rax, 0x1c496(%rip)     # 0x1e5d0
movq 0x1c47f(%rip), %rcx     # 0x1e5c0
testq %rcx, %rcx
je 0x1518
movq 0x1c477(%rip), %rdx     # 0x1e5c8
testq %rdx, %rdx
je 0x1518
testq %rax, %rax
je 0x1518
imull $0x33, 0x1c452(%rip), %eax # 0x1e5bc
movsd 0x15ec6(%rip), %xmm2    # 0x18038
movq 0x8(%rsp), %rdi
testl %eax, %eax
jle 0x21e3
andl $0x0, -0x4(%rdx,%rax,4)
andl $0x0, -0x4(%rcx,%rax,4)
decq %rax
jmp 0x2177
movl $0x7fffffff, 0x54(%r12,%r13) # imm = 0x7FFFFFFF
movq 0x8(%rsp), %rdx
movq 0x1c411(%rip), %rax     # 0x1e5b0
leaq 0x8(%r12), %rcx
xorl %r13d, %r13d
movq 0x18(%rsp), %rbx
subq $0x1, %rdx
jb 0x2069
movslq %r13d, %r13
leaq (%rax,%r13,2), %rsi
movq %rsi, -0x8(%rcx)
addl (%rcx), %r13d
addq $0x30, %rcx
jmp 0x21ac
movl 0x1c408(%rip), %eax     # 0x1e5d8
movl %eax, 0x24(%rsp)
movsd 0x15e5c(%rip), %xmm2    # 0x18038
movq 0x8(%rsp), %rdi
jmp 0x2201
cvtsi2sdl 0x1c335(%rip), %xmm0 # 0x1e520
mulsd 0x15e3d(%rip), %xmm0    # 0x18030
cvttsd2si %xmm0, %eax
movl %eax, 0x24(%rsp)
movl %eax, 0x1c3d7(%rip)     # 0x1e5d8
testl %edi, %edi
movl $0x0, %esi
cmovgl %edi, %esi
movq 0x1c3ae(%rip), %rax     # 0x1e5c0
movq %rax, 0x70(%rsp)
movq 0x1c3aa(%rip), %r8      # 0x1e5c8
xorl %r9d, %r9d
cmpq %rsi, %r9
je 0x231a
imulq $0x30, %r9, %rcx
testb $0x1, 0x20(%r12,%rcx)
movq (%r12,%rcx), %r11
movq %r8, %r10
cmoveq 0x70(%rsp), %r10
movl 0x8(%r12,%rcx), %r15d
movl 0x10(%r12,%rcx), %eax
movl 0x1c2cf(%rip), %ebp     # 0x1e520
cltd
idivl %ebp
leaq (%r12,%rcx), %rbx
imull $0x33, %eax, %eax
leal 0x33(%rax), %edi
xorl %r14d, %r14d
testl %edx, %edx
setne %r14b
cmovel %eax, %edi
addl %r14d, %r14d
movl 0x18(%r12,%rcx), %eax
cltd
idivl %ebp
leal -0x2(%r15), %eax
testl %edx, %edx
cmovel %r15d, %eax
movslq %eax, %r15
movslq %edi, %rax
pushq $0x32
popq %rdi
cmpq %r15, %r14
jge 0x22cf
movzwl (%r11,%r14,2), %ecx
cvtsi2sd %ecx, %xmm0
movzwl 0x2(%r11,%r14,2), %ecx
addl 0x1c27e(%rip), %ecx     # 0x1e520
mulsd %xmm2, %xmm0
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
movslq %ecx, %rcx
cmpq $0x32, %rcx
jl 0x22be
movq %rdi, %rcx
addq %rax, %rcx
incl (%r10,%rcx,4)
addq $0x2, %r14
addq $0x33, %rax
jmp 0x2288
movq 0x38(%rsp), %rcx
cmpl %ecx, 0x18(%rbx)
jne 0x2312
cmpl 0x24(%rsp), %edx
jl 0x2312
movzwl (%r11,%r15,2), %ecx
cvtsi2sd %ecx, %xmm0
movzwl 0x2(%r11,%r15,2), %ecx
addl %ecx, %edx
cvtsi2sd %edx, %xmm1
mulsd %xmm2, %xmm0
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
movslq %ecx, %rcx
cmpq $0x32, %rcx
cmovgeq %rdi, %rcx
addq %rax, %rcx
incl (%r10,%rcx,4)
incq %r9
jmp 0x2221
movq 0x1c29f(%rip), %r9      # 0x1e5c0
movq 0x1c2a0(%rip), %r10     # 0x1e5c8
movl 0x1be8d(%rip), %r14d    # 0x1e1bc
movq 0x1c29a(%rip), %rdi     # 0x1e5d0
movl 0x20(%rsp), %eax
testl %eax, %eax
movl $0x0, %r8d
cmovgl %eax, %r8d
xorl %ebx, %ebx
cmpq %r8, %rbx
je 0x2446
leaq 0x1c008(%rip), %rax     # 0x1e360
xorl %ecx, %ecx
cmpq $0x33, %rcx
je 0x2377
movslq (%r9,%rcx,4), %rdx
movslq (%r10,%rcx,4), %rsi
addq %rdx, %rsi
addq %rsi, (%rax)
incq %rcx
addq $0x8, %rax
jmp 0x235a
xorl %ecx, %ecx
xorl %r12d, %r12d
xorl %eax, %eax
cmpq $0x33, %rcx
je 0x23a4
movl (%r9,%rcx,4), %edx
andl $0x0, (%r9,%rcx,4)
addl %edx, %r12d
movl %ecx, %esi
imull %edx, %esi
addl %esi, %eax
movl %r14d, %edx
subl %r12d, %edx
jle 0x23a9
incq %rcx
jmp 0x237e
pushq $0x33
popq %rcx
jmp 0x23bc
imull %ecx, %edx
addl %edx, %eax
movl %r14d, %r12d
jmp 0x23bc
andl $0x0, 0x4(%r9,%rcx,4)
incq %rcx
cmpq $0x32, %rcx
jb 0x23b3
xorl %edx, %edx
xorl %r11d, %r11d
xorl %ecx, %ecx
cmpq $0x33, %rdx
je 0x23ef
movl (%r10,%rdx,4), %esi
andl $0x0, (%r10,%rdx,4)
addl %esi, %r11d
movl %edx, %ebp
imull %esi, %ebp
addl %ebp, %ecx
movl %r14d, %esi
subl %r11d, %esi
jle 0x23f4
incq %rdx
jmp 0x23c9
pushq $0x33
popq %rdx
jmp 0x2407
imull %edx, %esi
addl %esi, %ecx
movl %r14d, %r11d
jmp 0x2407
andl $0x0, 0x4(%r10,%rdx,4)
incq %rdx
cmpq $0x31, %rdx
jbe 0x23fe
pushq $0x32
popq %rsi
cmpl $0x2, %r12d
jl 0x241c
cltd
idivl %r12d
movl %eax, %esi
pushq $0x32
popq %rax
cmpl $0x2, %r11d
jl 0x242b
movl %ecx, %eax
cltd
idivl %r11d
cmpl %eax, %esi
cmovgl %esi, %eax
movb %al, (%rdi,%rbx)
movl $0xcc, %eax
addq %rax, %r9
addq %rax, %r10
incq %rbx
jmp 0x2348
xorl %eax, %eax
movq 0x18(%rsp), %rbx
leaq 0x1bd6c(%rip), %rdx     # 0x1e1c0
cmpq %rax, %r8
je 0x2466
movzbl (%rdi,%rax), %ecx
incq (%rdx,%rcx,8)
incq %rax
jmp 0x2454
incq 0x1c0bb(%rip)           # 0x1e528
movq 0x38(%rsp), %rax
addq %rax, 0x1c0b7(%rip)     # 0x1e530
movslq 0x20(%rsp), %r14
movq 0x1c08b(%rip), %rcx     # 0x1e510
pushq $0x1
popq %rsi
movq %r14, %rdx
callq 0x12a0
addq %r14, 0x1c081(%rip)     # 0x1e518
movq 0x1c06a(%rip), %rcx     # 0x1e508
leaq 0x1c073(%rip), %rdi     # 0x1e518
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
callq 0x12a0
movq 0x68(%rsp), %rbp
incq %rbp
movq 0x8(%rsp), %rax
jmp 0x1e96
cmpl $0x7fffffff, 0x24(%r12,%rax) # imm = 0x7FFFFFFF
jne 0x2803
movq 0x1c030(%rip), %rdi     # 0x1e508
leaq 0x88(%rsp), %rsi
callq 0x148b5
movq 0x1c01c(%rip), %rdi     # 0x1e508
leaq 0x120(%rsp), %rsi
callq 0x148b5
movq 0x1c008(%rip), %rdi     # 0x1e508
leaq 0x100(%rsp), %rsi
callq 0x148b5
movq 0x1bff4(%rip), %rdi     # 0x1e508
leaq 0xe0(%rsp), %rsi
callq 0x148b5
movq 0x1bfe0(%rip), %rdi     # 0x1e508
callq 0x10d0
movq 0x1bfdc(%rip), %rdi     # 0x1e510
callq 0x10d0
movq 0x10(%rsp), %rdi
callq 0x10d0
cmpl $0x0, 0x1bc6a(%rip)     # 0x1e1b4
leaq 0x168bb(%rip), %r13     # 0x18e0c
movq 0x40(%rsp), %r14
je 0x1920
leaq 0x15df3(%rip), %rdi     # 0x18356
xorl %eax, %eax
callq 0x1110
movq 0x1bfb7(%rip), %rdi     # 0x1e528
movq 0x1ba60(%rip), %rbx     # 0x1dfd8
movq (%rbx), %rdx
pushq $0x7
popq %rsi
callq 0x111e1
leaq 0x15dd8(%rip), %rdi     # 0x18362
xorl %eax, %eax
callq 0x1110
movq 0x1bf98(%rip), %rdi     # 0x1e530
movq (%rbx), %rdx
pushq $0xc
popq %rsi
callq 0x111e1
leaq 0x15dc1(%rip), %rdi     # 0x1836b
xorl %eax, %eax
callq 0x1110
cmpl $0x0, 0x1bc00(%rip)     # 0x1e1b8
jle 0x25f8
leaq 0x15db1(%rip), %rdi     # 0x18372
xorl %eax, %eax
callq 0x1110
movslq 0x1bf31(%rip), %rdi     # 0x1e500
movslq 0x1bf26(%rip), %rax     # 0x1e4fc
subq %rax, %rdi
subq 0x1bf48(%rip), %rdi     # 0x1e528
movq (%rbx), %rdx
xorl %esi, %esi
callq 0x111e1
leaq 0x15d8c(%rip), %rdi     # 0x1837d
xorl %eax, %eax
callq 0x1110
pushq $0xa
popq %rdi
callq 0x1040
xorl %eax, %eax
xorl %r15d, %r15d
xorl %ebx, %ebx
leaq 0x1bbb2(%rip), %rcx     # 0x1e1c0
cmpq $0x198, %rax            # imm = 0x198
je 0x262b
leaq 0x1bd43(%rip), %rdx     # 0x1e360
addq (%rax,%rdx), %r15
addq (%rax,%rcx), %rbx
addq $0x8, %rax
jmp 0x260e
movl 0x1bb8b(%rip), %esi     # 0x1e1bc
addl %esi, %esi
leaq 0x15d55(%rip), %rdi     # 0x1838f
xorl %eax, %eax
callq 0x1110
leaq 0x15ef3(%rip), %rdi     # 0x1853b
callq 0x10a0
movq 0x1bcfc(%rip), %r14     # 0x1e350
movq 0x1be95(%rip), %r12     # 0x1e4f0
cvtsi2sd %r12, %xmm0
cvtsi2sd %r15, %xmm1
movsd 0x159ab(%rip), %xmm2    # 0x18018
mulsd %xmm2, %xmm0
divsd %xmm1, %xmm0
cvtsi2sd %r14, %xmm1
mulsd %xmm2, %xmm1
cvtsi2sd %rbx, %xmm2
divsd %xmm2, %xmm1
leaq 0x15d2d(%rip), %rdi     # 0x183bb
pushq $0x32
popq %rsi
movq %r12, %rdx
movq %r14, %rcx
movb $0x2, %al
callq 0x1110
leaq 0x1bb1b(%rip), %rdx     # 0x1e1c0
subq %r12, %r15
cvtsi2sd %r15, %xmm0
movsd %xmm0, 0x38(%rsp)
subq %r14, %rbx
cvtsi2sd %rbx, %xmm0
movsd %xmm0, 0x10(%rsp)
pushq $0x31
popq %r13
xorl %ebx, %ebx
xorl %r15d, %r15d
pushq $-0x1
popq %r12
movl %r12d, %r14d
testl %r13d, %r13d
js 0x277b
movl %r13d, %eax
movq (%rdx,%rax,8), %rcx
testq %rcx, %rcx
jle 0x2773
leaq 0x1bc6f(%rip), %rdx     # 0x1e360
movq (%rdx,%rax,8), %rdx
addq %rdx, %rbx
addq %rcx, %r15
cvtsi2sd %rbx, %xmm0
movsd 0x15910(%rip), %xmm2    # 0x18018
mulsd %xmm2, %xmm0
divsd 0x38(%rsp), %xmm0
cvtsi2sd %r15, %xmm1
mulsd %xmm2, %xmm1
divsd 0x10(%rsp), %xmm1
leaq 0x15cc3(%rip), %rdi     # 0x183eb
movl %r13d, %esi
movsd %xmm1, 0x8(%rsp)
movb $0x2, %al
callq 0x1110
movl %r13d, %eax
testl %r12d, %r12d
js 0x2743
movl %r12d, %eax
movsd 0x8(%rsp), %xmm0
ucomisd 0x158cf(%rip), %xmm0    # 0x18020
cmoval %eax, %r12d
movl %r13d, %eax
testl %r14d, %r14d
js 0x2760
movl %r14d, %eax
ucomisd 0x158c0(%rip), %xmm0    # 0x18028
cmoval %eax, %r14d
leaq 0x1ba4d(%rip), %rdx     # 0x1e1c0
decl %r13d
jmp 0x26d1
leaq 0x15c97(%rip), %rdi     # 0x18419
movl %r14d, %esi
movl %r12d, %edx
xorl %eax, %eax
callq 0x1110
movq 0x18(%rsp), %rbx
leaq 0x16671(%rip), %r13     # 0x18e0c
movq 0x40(%rsp), %r14
jmp 0x1920
movq %r14, %rdi
callq 0x1542e
movq 0x60(%rsp), %rax
incq %rax
jmp 0x18ff
movq 0x1b837(%rip), %rax     # 0x1dff8
movq (%rax), %rdi
leaq 0x1be15(%rip), %rax     # 0x1e5e0
movq (%rax), %rdx
leaq 0x15aa0(%rip), %rsi     # 0x18275
jmp 0x1809
movq 0x1b817(%rip), %rax     # 0x1dff8
movq (%rax), %rdi
leaq 0x1bdf5(%rip), %rax     # 0x1e5e0
movq (%rax), %rdx
leaq 0x15ace(%rip), %rsi     # 0x182c3
xorl %eax, %eax
callq 0x11b0
pushq $0x2
jmp 0x151a
movq 0x1b7ee(%rip), %rax     # 0x1dff8
movq (%rax), %rdi
leaq 0x1bdcc(%rip), %rax     # 0x1e5e0
movq (%rax), %rdx
movl 0x1bcdb(%rip), %ecx     # 0x1e4f8
leaq 0x15c8f(%rip), %rsi     # 0x184b3
jmp 0x1511
movq 0x30(%rsp), %rdi
callq 0x1030
movq 0x28(%rsp), %rdi
callq 0x1030
leaq 0x1bcf4(%rip), %rdi     # 0x1e538
callq 0x12c53
leaq 0x1bd90(%rip), %rax     # 0x1e5e0
movq (%rax), %rdi
callq 0x1030
xorl %edi, %edi
callq 0x1290
nop