// File: /workspace/github_c_makefile_star2_O1/jsh58[P]Genrich/Genrich.c
// Function: runProgram
void runProgram(char* inFile, char* ctrlFile, char* outFile,
    char* logFile, char* pileFile, char* bedFile,
    bool gzOut, bool singleOpt, bool extendOpt, int extend,
    bool avgExtOpt, int minMapQ, int xcount,
    char** xchrList, char* xFile, float pqvalue,
    bool qvalOpt, int minLen, int maxGap, float minAUC,
    float asDiff, bool atacOpt, int atacLen5, int atacLen3,
    bool atacAdj, bool dupsOpt, char* dupsFile,
    bool peaksOpt, bool peaksOnly, bool sortOpt,
    uint64_t genomeLen, bool verbose) {

  // option to call peaks only, from already produced log file
  if (peaksOnly) {
    findPeaksOnly(logFile, outFile, gzOut, xcount,
      xchrList, xFile, pqvalue, qvalOpt, minLen, maxGap,
      minAUC, genomeLen, verbose);
    return;
  }

  // open optional output files
  File bed, pile, dups;
  if (bedFile != NULL)
    openWrite(bedFile, &bed, gzOut);
  if (pileFile != NULL)
    openWrite(pileFile, &pile, gzOut);
  bool dupsVerb = false;
  if (dupsOpt && dupsFile != NULL) {
    openWrite(dupsFile, &dups, gzOut);
    dupsVerb = true;
  }

  // initialize variables
  char* line = (char*) memalloc(MAX_SIZE);
  int chromLen = 0;     // number of reference sequences
  Chrom* chrom = NULL;  // array of reference sequences
  Aln* aln = (Aln*) memalloc(MAX_ALNS * sizeof(Aln)); // array of saved alns
  int unpairMem = 0;    // number of unpaired alns (for avg-ext option)
  Aln** unpair = NULL;  // array of unpaired alns (for avg-ext option)
  char* readName = memalloc(MAX_ALNS + 1);  // name of read being analyzed
  readName[0] = readName[MAX_ALNS] = '\0';
  int sample = 0;       // number of sample pairs analyzed

  // variables for duplicate removal option
  Read** readPr = NULL;     // array of reads with properly paired aln(s)
  int readMemPr = 0;        // index into readPr array
  Read** readDc = NULL;     // array of reads with discordant aln(s)
  int readMemDc = 0;        // index into readDc array
  Read** readSn = NULL;     // array of reads with singleton aln(s)
  int readMemSn = 0;        // index into readSn array
  HashAln** table = NULL;   // hashtable for paired/discordant alns (recycled)
  uint32_t tableMem = 0;    // size of above hashtable
  HashAln** tableSn = NULL; // hashtable for singletons alns
  uint32_t tableSnMem = 0;  // size of above hashtable
  uint32_t* order = NULL;   // array for order of reads to be processed
  uint32_t* order0 = NULL;  // |
  uint32_t* order1 = NULL;  // | temp arrays for order
  uint32_t* order2 = NULL;  // |
  uint16_t* qual = NULL;    // array of quality score sums (sorting key)
  uint16_t* qual0 = NULL;   // |
  uint16_t* qual1 = NULL;   // | temp arrays for qual
  uint16_t* qual2 = NULL;   // |
  uint32_t arrMem = 0;      // length of above order/qual arrays

  // save genomic regions to exclude
  Bed* xBed = NULL;
  int xBedLen = 0;
  if (xFile != NULL)
    xBedLen = loadBED(xFile, line, &xBed);

  // loop through input files (experimental and control)
  char* end1, *end2;
  char* exptName = strtok_r(inFile, COM, &end1);
  char* ctrlName = ctrlFile == NULL ? NULL
    : strtok_r(ctrlFile, COM, &end2);
  while (exptName) {

    // reset 'save' bools of each Chrom
    for (int j = 0; j < chromLen; j++)
      (chrom + j)->save = false;

    // process matching experimental/control files
    double fragLen = 0.0; // total weighted length of all experimental fragments
    for (int i = 0; i < 2; i++) {

      // get expt/ctrl filename
      char* filename = exptName;
      if (i) {
        filename = ctrlName;
        if (ctrlName != NULL && !strcmp(ctrlName, "null"))
          filename = NULL;
        if (filename == NULL) {
          if (verbose)
            fprintf(stderr, "- control file #%d not provided -\n",
              sample);
          savePileupNoCtrl(chrom, chromLen, fragLen,
            genomeLen, verbose);
          break;
        }
      }

      // open input file
      File in;
      bool gz = openRead(filename, &in);
      bool bam = checkBAM(in, gz);
      if (verbose)
        fprintf(stderr, "Processing %s file #%d: %s\n",
          i ? "control" : "experimental", sample, filename);
      if (dupsVerb) {
        if (gzOut)
          gzprintf(dups.gzf, "# %s file #%d: %s\n",
            i ? "control" : "experimental", sample, filename);
        else
          fprintf(dups.f, "# %s file #%d: %s\n",
            i ? "control" : "experimental", sample, filename);
      }

      // reset 'diff' array for each Chrom
      for (int j = 0; j < chromLen; j++) {
        Chrom* c = chrom + j;
        if (c->diff != NULL)
          for (int k = 0; k < 1 + c->len; k++) {
            c->diff->frac[k] = 0;
            c->diff->cov[k] = 0;
          }
      }

      // load and process alignments
      uint64_t unmapped = 0, paired = 0, single = 0,
        orphan = 0, pairedPr = 0, singlePr = 0, supp = 0,
        skipped = 0, lowMapQ = 0, secPair = 0,
        secSingle = 0, countPr = 0, dupsPr = 0,
        countDc = 0, dupsDc = 0, countSn = 0, dupsSn = 0,
        errCount = 0;  // counting variables
      double totalLen = 0.0;  // total weighted length of paired fragments
      uint64_t count;
      if (bam)
        count = readBAM(in.gzf, line, &aln, readName,
          &totalLen, &unmapped, &paired, &single,
          &pairedPr, &singlePr, &supp, &skipped, &lowMapQ,
          minMapQ, xcount, xchrList, xBedLen, xBed,
          &secPair, &secSingle, &orphan, &chromLen, &chrom,
          singleOpt, extendOpt, extend, avgExtOpt, &unpair,
          &unpairMem, asDiff, atacOpt, atacLen5, atacLen3,
          atacAdj, bed, bedFile != NULL, gzOut, i, sample,
          dupsOpt, dups, dupsVerb, &readPr, &readMemPr,
          &readDc, &readMemDc, &readSn, &readMemSn, &table,
          &tableMem, &tableSn, &tableSnMem, &order,
          &order0, &order1, &order2, &qual, &qual0, &qual1,
          &qual2, &arrMem, &countPr, &dupsPr, &countDc,
          &dupsDc, &countSn, &dupsSn, &errCount, sortOpt,
          verbose);
      else
        count = readSAM(in, gz, line, &aln, readName,
          &totalLen, &unmapped, &paired, &single,
          &pairedPr, &singlePr, &supp, &skipped, &lowMapQ,
          minMapQ, xcount, xchrList, xBedLen, xBed,
          &secPair, &secSingle, &orphan, &chromLen, &chrom,
          singleOpt, extendOpt, extend, avgExtOpt, &unpair,
          &unpairMem, asDiff, atacOpt, atacLen5, atacLen3,
          atacAdj, bed, bedFile != NULL, gzOut, i, sample,
          dupsOpt, dups, dupsVerb, &readPr, &readMemPr,
          &readDc, &readMemDc, &readSn, &readMemSn, &table,
          &tableMem, &tableSn, &tableSnMem, &order,
          &order0, &order1, &order2, &qual, &qual0, &qual1,
          &qual2, &arrMem, &countPr, &dupsPr, &countDc,
          &dupsDc, &countSn, &dupsSn, &errCount, sortOpt,
          verbose);

      // log counts
      if (verbose)
        logCounts(count, unmapped, supp, skipped, chrom,
          chromLen, minMapQ, lowMapQ, paired, secPair,
          orphan, single, secSingle, singlePr, pairedPr,
          totalLen, singleOpt, extendOpt, extend,
          avgExtOpt, bam, atacOpt, atacLen5 + atacLen3,
          dupsOpt, countPr, dupsPr, countDc, dupsDc,
          countSn, dupsSn, errCount);

      // save pileup values
      if (i)
        savePileupCtrl(chrom, chromLen, fragLen, genomeLen,
          verbose);
      else
        fragLen = savePileupExpt(chrom, chromLen);

      // close input file
      if ( (gz && gzclose(in.gzf) != Z_OK)
          || (! gz && fclose(in.f)) )
        exit(error(filename, ERRCLOSE));
    }

    // calculate p-values
    savePval(chrom, chromLen, sample, pile,
      pileFile != NULL, exptName, ctrlName, gzOut);

    exptName = strtok_r(NULL, COM, &end1);
    ctrlName = ctrlFile == NULL ? NULL
      : strtok_r(NULL, COM, &end2);
    sample++;
  }

  // free 'diff' arrays
  for (int i = 0; i < chromLen; i++) {
    Chrom* chr = chrom + i;
    if (chr->diff) {
      free(chr->diff->frac);
      free(chr->diff->cov);
      free(chr->diff);
    }
  }

  // open output files
  File out, log;
  if (peaksOpt)
    openWrite(outFile, &out, gzOut);
  if (logFile != NULL)
    openWrite(logFile, &log, gzOut);

  // find peaks
  findPeaks(out, log, logFile != NULL, gzOut, chrom,
    chromLen, &sample, pqvalue, qvalOpt, minLen,
    maxGap, minAUC, peaksOpt, genomeLen, verbose);

  // free memory
  if (xcount) {
    for (int i = 0; i < xcount; i++)
      free(xchrList[i]);
    free(xchrList);
  }
  if (xBedLen) {
    for (int i = 0; i < xBedLen; i++)
      free(xBed[i].name);
    free(xBed);
  }
  if (avgExtOpt) {
    for (int i = 0; i < unpairMem; i++)
      free(unpair[i]);
    free(unpair);
  }
  if (dupsOpt) {
    for (int i = 0; i < readMemPr; i++)
      free(readPr[i]);
    free(readPr);
    for (int i = 0; i < readMemDc; i++)
      free(readDc[i]);
    free(readDc);
    for (int i = 0; i < readMemSn; i++)
      free(readSn[i]);
    free(readSn);
    free(table);
    free(tableSn);
    free(order);
    free(order0);
    free(order1);
    free(order2);
    free(qual);
    free(qual0);
    free(qual1);
    free(qual2);
  }
  for (int i = 0; i < chromLen; i++) {
    Chrom* chr = chrom + i;
    if (! chr->skip) {
      if (chr->bedLen)
        free(chr->bed);
      if (qvalOpt && chr->qval) {
        free(chr->qval->end);
        free(chr->qval->cov);
        free(chr->qval);
      }
      for (int j = 0; j < sample; j++) {
        if (chr->pval[j]) {
          free(chr->pval[j]->end);
          free(chr->pval[j]->cov);
          free(chr->pval[j]);
        }
      }
      free(chr->pval);
      free(chr->pvalLen);
      free(chr->ctrl->end);
      free(chr->ctrl->cov);
      free(chr->expt->end);
      free(chr->expt->cov);
    }
    free(chr->ctrl);
    free(chr->expt);
    free(chr->name);
  }
  free(chrom);
  free(aln);
  free(readName);
  free(line);

  // close files
  if (peaksOpt && ( ( gzOut && gzclose(out.gzf) != Z_OK )
      || ( ! gzOut && fclose(out.f) ) ) )
    exit(error(outFile, ERRCLOSE));
  if (logFile != NULL && ( ( ! gzOut && fclose(log.f) )
      || ( gzOut && gzclose(log.gzf) != Z_OK ) ) )
    exit(error(logFile, ERRCLOSE));
  if (pileFile != NULL && ( ( ! gzOut && fclose(pile.f) )
      || ( gzOut && gzclose(pile.gzf) != Z_OK ) ) )
    exit(error(pileFile, ERRCLOSE));
  if (bedFile != NULL && ( ( ! gzOut && fclose(bed.f) )
      || ( gzOut && gzclose(bed.gzf) != Z_OK ) ) )
    exit(error(bedFile, ERRCLOSE));
  if (dupsVerb && ( ( ! gzOut && fclose(dups.f) )
      || ( gzOut && gzclose(dups.gzf) != Z_OK ) ) )
    exit(error(dupsFile, ERRCLOSE));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movd %xmm2, 0x78(%rsp)
movq %r8, %rbp
movq %rdx, %r8
movq %rsi, 0x200(%rsp)
movl 0x2c8(%rsp), %r12d
movl 0x2c0(%rsp), %r11d
movq 0x2b0(%rsp), %r14
movq 0x2a8(%rsp), %r13
movl 0x2a0(%rsp), %r15d
movb 0x270(%rsp), %dl
cmpb $0x0, 0x308(%rsp)
je 0xf409
subq $0x8, %rsp
movzbl 0x328(%rsp), %eax
movzbl 0x2c0(%rsp), %r10d
movzbl %dl, %edx
movq %rcx, %rdi
movq %r8, %rsi
movl %r15d, %ecx
movq %r13, %r8
movq %r14, %r9
pushq %rax
pushq 0x328(%rsp)
pushq %r12
pushq %r11
pushq %r10
callq 0xf162
addq $0x268, %rsp            # imm = 0x268
jmp 0x10be0
movq %rdi, %rbx
movd %xmm0, 0x18(%rsp)
movd %xmm1, 0x1c(%rsp)
movq %r8, 0x1e8(%rsp)
movq %rcx, 0x1f0(%rsp)
movzbl %dl, %eax
movq %rax, 0x20(%rsp)
testq %r9, %r9
movq %r9, %r15
je 0xf44d
leaq 0x1e0(%rsp), %rsi
movq %r15, %rdi
movq 0x20(%rsp), %rdx
callq 0xebde
movq %r15, 0x88(%rsp)
testq %rbp, %rbp
je 0xf46f
leaq 0x1d8(%rsp), %rsi
movq %rbp, %rdi
movq 0x20(%rsp), %rdx
callq 0xebde
cmpq $0x0, 0x2f8(%rsp)
setne %al
andb 0x2f0(%rsp), %al
movb %al, 0x3(%rsp)
cmpb $0x1, %al
jne 0xf4a4
leaq 0xb8(%rsp), %rsi
movq 0x2f8(%rsp), %rdi
movq 0x20(%rsp), %rdx
callq 0xebde
movl $0xfff0, %edi           # imm = 0xFFF0
callq 0x3903
movq %rax, %r15
xorl %r12d, %r12d
movl %r12d, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movl $0x1400, %edi           # imm = 0x1400
callq 0x3903
movq %rax, 0x1d0(%rsp)
movl %r12d, 0x3c(%rsp)
movq %r12, 0xb0(%rsp)
movl $0x81, %edi
callq 0x3903
movb %r12b, 0x80(%rax)
movq %rax, 0xe0(%rsp)
movb %r12b, (%rax)
movl %r12d, 0x4(%rsp)
movq %r12, 0xa8(%rsp)
movl %r12d, 0x38(%rsp)
movq %r12, 0xa0(%rsp)
movl %r12d, 0x34(%rsp)
movq %r12, 0x98(%rsp)
movl %r12d, 0x30(%rsp)
movq %r12, 0x1c8(%rsp)
movl %r12d, 0x84(%rsp)
movq %r12, 0x1c0(%rsp)
movl %r12d, 0x80(%rsp)
movq %r12, 0x1b8(%rsp)
movq %r12, 0x1b0(%rsp)
movq %r12, 0x1a8(%rsp)
movq %r12, 0x1a0(%rsp)
movq %r12, 0x198(%rsp)
movq %r12, 0x190(%rsp)
movq %r12, 0x188(%rsp)
movq %r12, 0x180(%rsp)
movl %r12d, 0x7c(%rsp)
movq $0x0, 0x40(%rsp)
movq %r12, 0x70(%rsp)
testq %r14, %r14
je 0xf5b2
leaq 0x70(%rsp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xef3b
movq %rax, 0x40(%rsp)
movq %r15, 0x208(%rsp)
leaq 0x4613(%rip), %rsi      # 0x13bd4
leaq 0x230(%rsp), %rdx
movq %rbx, %rdi
callq 0x2190
movq %rax, 0x48(%rsp)
movq 0x200(%rsp), %rdi
testq %rdi, %rdi
je 0xf5fc
leaq 0x45ea(%rip), %rsi      # 0x13bd4
leaq 0x228(%rsp), %rdx
callq 0x2190
movq %rax, %r14
jmp 0xf5ff
xorl %r14d, %r14d
movq 0x318(%rsp), %rbx
movb 0x320(%rsp), %r15b
movzbl %r15b, %eax
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x48(%rsp)
movq %rbp, 0x1f8(%rsp)
je 0x10640
movl 0x2e0(%rsp), %eax
movl 0x2d8(%rsp), %ecx
addl %ecx, %eax
movq %rax, 0x218(%rsp)
movdqa 0x2cb3(%rip), %xmm15    # 0x12300
leaq 0x4580(%rip), %r12      # 0x13bd4
movslq 0x8(%rsp), %rcx
testq %rcx, %rcx
jle 0xfc23
movq 0x10(%rsp), %rax
leal 0xf(%rcx), %edx
decq %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
shrl $0x4, %edx
imulq $0x680, %rdx, %rcx      # imm = 0x680
xorl %edx, %edx
movdqa 0x2c65(%rip), %xmm1     # 0x122f0
movdqa 0x2c4d(%rip), %xmm2     # 0x122e0
movdqa 0x2c35(%rip), %xmm3     # 0x122d0
movdqa 0x2c1d(%rip), %xmm4     # 0x122c0
movdqa 0x2c05(%rip), %xmm5     # 0x122b0
movdqa 0x2bed(%rip), %xmm6     # 0x122a0
movdqa 0x2bd5(%rip), %xmm7     # 0x12290
movdqa 0x2bbc(%rip), %xmm8     # 0x12280
movdqa %xmm0, %xmm9
pxor %xmm15, %xmm9
movdqa %xmm1, %xmm10
pxor %xmm15, %xmm10
movdqa %xmm10, %xmm12
pcmpgtd %xmm9, %xmm12
pshufd $0xa0, %xmm12, %xmm11   # xmm11 = xmm12[0,0,2,2]
pshuflw $0xe8, %xmm11, %xmm13   # xmm13 = xmm11[0,2,2,3,4,5,6,7]
pcmpeqd %xmm9, %xmm10
pshufd $0xf5, %xmm10, %xmm10   # xmm10 = xmm10[1,1,3,3]
pshuflw $0xe8, %xmm10, %xmm14   # xmm14 = xmm10[0,2,2,3,4,5,6,7]
pand %xmm13, %xmm14
pshufd $0xf5, %xmm12, %xmm12   # xmm12 = xmm12[1,1,3,3]
pshuflw $0xe8, %xmm12, %xmm13   # xmm13 = xmm12[0,2,2,3,4,5,6,7]
por %xmm14, %xmm13
pcmpeqd %xmm14, %xmm14
pxor %xmm14, %xmm13
packssdw %xmm13, %xmm13
movd %xmm13, %esi
testb $0x1, %sil
je 0xf734
movb $0x0, 0xd(%rax,%rdx)
pand %xmm11, %xmm10
por %xmm12, %xmm10
packssdw %xmm10, %xmm10
pxor %xmm14, %xmm10
packssdw %xmm10, %xmm10
packsswb %xmm10, %xmm10
movd %xmm10, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0xf765
movb $0x0, 0x75(%rax,%rdx)
movdqa %xmm2, %xmm11
pxor %xmm15, %xmm11
movdqa %xmm11, %xmm12
pcmpgtd %xmm9, %xmm12
pshufd $0xa0, %xmm12, %xmm10   # xmm10 = xmm12[0,0,2,2]
pcmpeqd %xmm9, %xmm11
pshufd $0xf5, %xmm11, %xmm11   # xmm11 = xmm11[1,1,3,3]
movdqa %xmm11, %xmm13
pand %xmm10, %xmm13
pshufd $0xf5, %xmm12, %xmm12   # xmm12 = xmm12[1,1,3,3]
por %xmm12, %xmm13
packssdw %xmm13, %xmm13
pxor %xmm14, %xmm13
packssdw %xmm13, %xmm13
packsswb %xmm13, %xmm13
movd %xmm13, %esi
shrl $0x10, %esi
testb $0x1, %sil
je 0xf7c9
movb $0x0, 0xdd(%rax,%rdx)
pshufhw $0x84, %xmm10, %xmm10   # xmm10 = xmm10[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm11, %xmm11   # xmm11 = xmm11[0,1,2,3,4,5,4,6]
pand %xmm10, %xmm11
pshufhw $0x84, %xmm12, %xmm10   # xmm10 = xmm12[0,1,2,3,4,5,4,6]
por %xmm11, %xmm10
pxor %xmm14, %xmm10
packssdw %xmm10, %xmm10
packsswb %xmm10, %xmm10
movd %xmm10, %esi
shrl $0x18, %esi
testb $0x1, %sil
je 0xf80a
movb $0x0, 0x145(%rax,%rdx)
movdqa %xmm3, %xmm10
pxor %xmm15, %xmm10
movdqa %xmm10, %xmm12
pcmpgtd %xmm9, %xmm12
pshufd $0xa0, %xmm12, %xmm11   # xmm11 = xmm12[0,0,2,2]
pshuflw $0xe8, %xmm11, %xmm13   # xmm13 = xmm11[0,2,2,3,4,5,6,7]
pcmpeqd %xmm9, %xmm10
pshufd $0xf5, %xmm10, %xmm10   # xmm10 = xmm10[1,1,3,3]
pshuflw $0xe8, %xmm10, %xmm14   # xmm14 = xmm10[0,2,2,3,4,5,6,7]
pand %xmm13, %xmm14
pshufd $0xf5, %xmm12, %xmm12   # xmm12 = xmm12[1,1,3,3]
pshuflw $0xe8, %xmm12, %xmm13   # xmm13 = xmm12[0,2,2,3,4,5,6,7]
por %xmm14, %xmm13
pcmpeqd %xmm14, %xmm14
pxor %xmm14, %xmm13
packssdw %xmm13, %xmm13
packsswb %xmm13, %xmm13
pextrw $0x2, %xmm13, %esi
testb $0x1, %sil
je 0xf879
movb $0x0, 0x1ad(%rax,%rdx)
pand %xmm11, %xmm10
por %xmm12, %xmm10
packssdw %xmm10, %xmm10
pxor %xmm14, %xmm10
packssdw %xmm10, %xmm10
packsswb %xmm10, %xmm10
pextrw $0x2, %xmm10, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0xf8ae
movb $0x0, 0x215(%rax,%rdx)
movdqa %xmm4, %xmm11
pxor %xmm15, %xmm11
movdqa %xmm11, %xmm12
pcmpgtd %xmm9, %xmm12
pshufd $0xa0, %xmm12, %xmm10   # xmm10 = xmm12[0,0,2,2]
pcmpeqd %xmm9, %xmm11
pshufd $0xf5, %xmm11, %xmm11   # xmm11 = xmm11[1,1,3,3]
movdqa %xmm11, %xmm13
pand %xmm10, %xmm13
pshufd $0xf5, %xmm12, %xmm12   # xmm12 = xmm12[1,1,3,3]
por %xmm12, %xmm13
packssdw %xmm13, %xmm13
pxor %xmm14, %xmm13
packssdw %xmm13, %xmm13
packsswb %xmm13, %xmm13
pextrw $0x3, %xmm13, %esi
testb $0x1, %sil
je 0xf910
movb $0x0, 0x27d(%rax,%rdx)
pshufhw $0x84, %xmm10, %xmm10   # xmm10 = xmm10[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm11, %xmm11   # xmm11 = xmm11[0,1,2,3,4,5,4,6]
pand %xmm10, %xmm11
pshufhw $0x84, %xmm12, %xmm10   # xmm10 = xmm12[0,1,2,3,4,5,4,6]
por %xmm11, %xmm10
pxor %xmm14, %xmm10
packssdw %xmm10, %xmm10
packsswb %xmm10, %xmm10
pextrw $0x3, %xmm10, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0xf952
movb $0x0, 0x2e5(%rax,%rdx)
movdqa %xmm5, %xmm10
pxor %xmm15, %xmm10
movdqa %xmm10, %xmm12
pcmpgtd %xmm9, %xmm12
pshufd $0xa0, %xmm12, %xmm11   # xmm11 = xmm12[0,0,2,2]
pshuflw $0xe8, %xmm11, %xmm13   # xmm13 = xmm11[0,2,2,3,4,5,6,7]
pcmpeqd %xmm9, %xmm10
pshufd $0xf5, %xmm10, %xmm10   # xmm10 = xmm10[1,1,3,3]
pshuflw $0xe8, %xmm10, %xmm14   # xmm14 = xmm10[0,2,2,3,4,5,6,7]
pand %xmm13, %xmm14
pshufd $0xf5, %xmm12, %xmm12   # xmm12 = xmm12[1,1,3,3]
pshuflw $0xe8, %xmm12, %xmm13   # xmm13 = xmm12[0,2,2,3,4,5,6,7]
por %xmm14, %xmm13
pcmpeqd %xmm14, %xmm14
pxor %xmm14, %xmm13
packssdw %xmm13, %xmm13
packsswb %xmm13, %xmm13
pextrw $0x4, %xmm13, %esi
testb $0x1, %sil
je 0xf9c1
movb $0x0, 0x34d(%rax,%rdx)
pand %xmm11, %xmm10
por %xmm12, %xmm10
packssdw %xmm10, %xmm10
pxor %xmm14, %xmm10
packssdw %xmm10, %xmm10
packsswb %xmm10, %xmm10
pextrw $0x4, %xmm10, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0xf9f6
movb $0x0, 0x3b5(%rax,%rdx)
movdqa %xmm6, %xmm11
pxor %xmm15, %xmm11
movdqa %xmm11, %xmm12
pcmpgtd %xmm9, %xmm12
pshufd $0xa0, %xmm12, %xmm10   # xmm10 = xmm12[0,0,2,2]
pcmpeqd %xmm9, %xmm11
pshufd $0xf5, %xmm11, %xmm11   # xmm11 = xmm11[1,1,3,3]
movdqa %xmm11, %xmm13
pand %xmm10, %xmm13
pshufd $0xf5, %xmm12, %xmm12   # xmm12 = xmm12[1,1,3,3]
por %xmm12, %xmm13
packssdw %xmm13, %xmm13
pxor %xmm14, %xmm13
packssdw %xmm13, %xmm13
packsswb %xmm13, %xmm13
pextrw $0x5, %xmm13, %esi
testb $0x1, %sil
je 0xfa58
movb $0x0, 0x41d(%rax,%rdx)
pshufhw $0x84, %xmm10, %xmm10   # xmm10 = xmm10[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm11, %xmm11   # xmm11 = xmm11[0,1,2,3,4,5,4,6]
pand %xmm10, %xmm11
pshufhw $0x84, %xmm12, %xmm10   # xmm10 = xmm12[0,1,2,3,4,5,4,6]
por %xmm11, %xmm10
pxor %xmm14, %xmm10
packssdw %xmm10, %xmm10
packsswb %xmm10, %xmm10
pextrw $0x5, %xmm10, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0xfa9a
movb $0x0, 0x485(%rax,%rdx)
movdqa %xmm7, %xmm10
pxor %xmm15, %xmm10
movdqa %xmm10, %xmm12
pcmpgtd %xmm9, %xmm12
pshufd $0xa0, %xmm12, %xmm11   # xmm11 = xmm12[0,0,2,2]
pshuflw $0xe8, %xmm11, %xmm13   # xmm13 = xmm11[0,2,2,3,4,5,6,7]
pcmpeqd %xmm9, %xmm10
pshufd $0xf5, %xmm10, %xmm10   # xmm10 = xmm10[1,1,3,3]
pshuflw $0xe8, %xmm10, %xmm14   # xmm14 = xmm10[0,2,2,3,4,5,6,7]
pand %xmm13, %xmm14
pshufd $0xf5, %xmm12, %xmm12   # xmm12 = xmm12[1,1,3,3]
pshuflw $0xe8, %xmm12, %xmm13   # xmm13 = xmm12[0,2,2,3,4,5,6,7]
por %xmm14, %xmm13
pcmpeqd %xmm14, %xmm14
pxor %xmm14, %xmm13
packssdw %xmm13, %xmm13
packsswb %xmm13, %xmm13
pextrw $0x6, %xmm13, %esi
testb $0x1, %sil
je 0xfb09
movb $0x0, 0x4ed(%rax,%rdx)
pand %xmm11, %xmm10
por %xmm12, %xmm10
packssdw %xmm10, %xmm10
pxor %xmm14, %xmm10
packssdw %xmm10, %xmm10
packsswb %xmm10, %xmm10
pextrw $0x6, %xmm10, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0xfb3e
movb $0x0, 0x555(%rax,%rdx)
movdqa %xmm8, %xmm11
pxor %xmm15, %xmm11
movdqa %xmm11, %xmm12
pcmpgtd %xmm9, %xmm12
pshufd $0xa0, %xmm12, %xmm10   # xmm10 = xmm12[0,0,2,2]
pcmpeqd %xmm9, %xmm11
pshufd $0xf5, %xmm11, %xmm9    # xmm9 = xmm11[1,1,3,3]
movdqa %xmm9, %xmm13
pand %xmm10, %xmm13
pshufd $0xf5, %xmm12, %xmm11   # xmm11 = xmm12[1,1,3,3]
por %xmm11, %xmm13
packssdw %xmm13, %xmm12
pxor %xmm14, %xmm12
packssdw %xmm12, %xmm12
packsswb %xmm12, %xmm12
pextrw $0x7, %xmm12, %esi
testb $0x1, %sil
je 0xfba0
movb $0x0, 0x5bd(%rax,%rdx)
pshufhw $0x84, %xmm10, %xmm10   # xmm10 = xmm10[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm9, %xmm9     # xmm9 = xmm9[0,1,2,3,4,5,4,6]
pand %xmm10, %xmm9
pshufhw $0x84, %xmm11, %xmm10   # xmm10 = xmm11[0,1,2,3,4,5,4,6]
por %xmm9, %xmm10
pxor %xmm14, %xmm10
packssdw %xmm10, %xmm9
packsswb %xmm9, %xmm9
pextrw $0x7, %xmm9, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0xfbe2
movb $0x0, 0x625(%rax,%rdx)
movdqa 0x2725(%rip), %xmm9     # 0x12310
paddq %xmm9, %xmm1
paddq %xmm9, %xmm2
paddq %xmm9, %xmm3
paddq %xmm9, %xmm4
paddq %xmm9, %xmm5
paddq %xmm9, %xmm6
paddq %xmm9, %xmm7
paddq %xmm9, %xmm8
addq $0x680, %rdx            # imm = 0x680
cmpq %rdx, %rcx
jne 0xf6c4
pxor %xmm0, %xmm0
movq %xmm0, 0xe8(%rsp)
xorl %ebp, %ebp
movq %r14, 0x210(%rsp)
movq 0x48(%rsp), %rdi
testl %ebp, %ebp
je 0xfc6b
testq %r14, %r14
je 0xfc64
movq %r14, %rdi
leaq 0x3f69(%rip), %rsi      # 0x13bbb
callq 0x21b0
testl %eax, %eax
movl $0x0, %edi
cmovneq %r14, %rdi
jmp 0xfc66
xorl %edi, %edi
testq %rdi, %rdi
je 0xfcea
movq %rdi, 0x90(%rsp)
leaq 0x28(%rsp), %rsi
callq 0xedd9
movq 0x28(%rsp), %rdi
movb %al, 0x60(%rsp)
movzbl %al, %r14d
movl %r14d, %esi
callq 0xed38
movl %eax, %ebx
testb %r15b, %r15b
jne 0x1044b
cmpb $0x0, 0x3(%rsp)
je 0xfd28
testl %ebp, %ebp
movq 0xb8(%rsp), %rdi
leaq 0x427b(%rip), %rdx      # 0x13f34
leaq 0x426c(%rip), %rax      # 0x13f2c
cmovneq %rax, %rdx
movl 0x4(%rsp), %ecx
leaq 0x4272(%rip), %rsi      # 0x13f41
cmpb $0x0, 0x270(%rsp)
je 0xfd19
movq 0x90(%rsp), %r8
xorl %eax, %eax
callq 0x20e0
jmp 0xfd28
testb %r15b, %r15b
jne 0x105a0
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %esi
movq 0xe8(%rsp), %xmm0
movq %rbx, %rdx
movq 0x50(%rsp), %rcx
callq 0x7a20
xorl %eax, %eax
jmp 0x10431
movq 0x90(%rsp), %r8
xorl %eax, %eax
callq 0x21d0
movslq 0x8(%rsp), %rax
testq %rax, %rax
movq 0x208(%rsp), %rdx
jle 0xfd8b
movq 0x10(%rsp), %rcx
xorl %r9d, %r9d
imulq $0x68, %r9, %rsi
cmpq $0x0, 0x20(%rcx,%rsi)
je 0xfd83
addq %rcx, %rsi
cmpl $-0x1, 0x8(%rsi)
je 0xfd83
xorl %edi, %edi
movq 0x20(%rsi), %r8
movq (%r8), %r8
movb $0x0, (%r8,%rdi)
movq 0x20(%rsi), %r8
movq 0x8(%r8), %r8
movw $0x0, (%r8,%rdi,2)
incq %rdi
movl 0x8(%rsi), %r8d
incl %r8d
cmpq %r8, %rdi
jb 0xfd59
incq %r9
cmpq %rax, %r9
jne 0xfd42
xorl %eax, %eax
movq %rax, 0x68(%rsp)
movq %rax, 0x178(%rsp)
movq %rax, 0x170(%rsp)
movq %rax, 0x168(%rsp)
movq %rax, 0x160(%rsp)
movq %rax, 0x158(%rsp)
movq %rax, 0x150(%rsp)
movq %rax, 0x148(%rsp)
movq %rax, 0x140(%rsp)
movq %rax, 0x138(%rsp)
movq %rax, 0x130(%rsp)
movq %rax, 0x128(%rsp)
movq %rax, 0x120(%rsp)
movq %rax, 0x118(%rsp)
movq %rax, 0x110(%rsp)
movq %rax, 0x108(%rsp)
movq %rax, 0x100(%rsp)
movq %rax, 0xf8(%rsp)
movq %rax, 0xf0(%rsp)
movq 0x1e0(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0xb8(%rsp), %r10
movb %bl, 0xf(%rsp)
testb %bl, %bl
je 0x100e0
xorl %r13d, %r13d
testl %ebp, %ebp
setne %r13b
xorl %r11d, %r11d
cmpq $0x0, 0x88(%rsp)
setne %r11b
movq 0x28(%rsp), %rdi
movl 0x4(%rsp), %r15d
subq $0x8, %rsp
movzbl 0x318(%rsp), %eax
movzbl 0xb(%rsp), %ebx
movzbl 0x2f8(%rsp), %r12d
movzbl 0x2f0(%rsp), %r14d
movzbl 0x2d8(%rsp), %ecx
movq %rcx, 0xc8(%rsp)
movzbl 0x298(%rsp), %ecx
movq %rcx, 0xd0(%rsp)
movzbl 0x288(%rsp), %ecx
movq %rcx, 0xd8(%rsp)
movzbl 0x280(%rsp), %ecx
movq %rcx, 0xe0(%rsp)
movq %rdx, %rsi
leaq 0x1d8(%rsp), %rdx
movq 0xe8(%rsp), %rcx
leaq 0xf8(%rsp), %r8
leaq 0x70(%rsp), %r9
movd 0x80(%rsp), %xmm0
pushq 0x58(%rsp)
pushq %rax
leaq 0x110(%rsp), %rax
pushq %rax
leaq 0x120(%rsp), %rax
pushq %rax
leaq 0x130(%rsp), %rax
pushq %rax
leaq 0x140(%rsp), %rax
pushq %rax
leaq 0x150(%rsp), %rax
pushq %rax
leaq 0x160(%rsp), %rax
pushq %rax
leaq 0x170(%rsp), %rax
pushq %rax
leaq 0xcc(%rsp), %rax
pushq %rax
leaq 0x1d8(%rsp), %rax
pushq %rax
leaq 0x1e8(%rsp), %rax
pushq %rax
leaq 0x1f8(%rsp), %rax
pushq %rax
leaq 0x208(%rsp), %rax
pushq %rax
leaq 0x218(%rsp), %rax
pushq %rax
leaq 0x228(%rsp), %rax
pushq %rax
leaq 0x238(%rsp), %rax
pushq %rax
leaq 0x248(%rsp), %rax
pushq %rax
leaq 0x118(%rsp), %rax
pushq %rax
leaq 0x260(%rsp), %rax
pushq %rax
leaq 0x12c(%rsp), %rax
pushq %rax
leaq 0x278(%rsp), %rax
pushq %rax
leaq 0xe8(%rsp), %rax
pushq %rax
leaq 0x158(%rsp), %rax
pushq %rax
leaq 0xfc(%rsp), %rax
pushq %rax
leaq 0x170(%rsp), %rax
pushq %rax
leaq 0x110(%rsp), %rax
pushq %rax
leaq 0x188(%rsp), %rax
pushq %rax
pushq %rbx
pushq %r10
pushq %r12
pushq %r15
pushq %r13
pushq 0x130(%rsp)
pushq %r11
pushq 0x178(%rsp)
pushq %r14
movl 0x410(%rsp), %eax
pushq %rax
movl 0x410(%rsp), %eax
pushq %rax
pushq 0x200(%rsp)
leaq 0x184(%rsp), %rax
pushq %rax
leaq 0x200(%rsp), %rax
pushq %rax
pushq 0x220(%rsp)
movl 0x3e8(%rsp), %eax
pushq %rax
pushq 0x238(%rsp)
pushq 0x248(%rsp)
leaq 0x188(%rsp), %rax
pushq %rax
leaq 0x188(%rsp), %rax
pushq %rax
leaq 0x2f0(%rsp), %rax
pushq %rax
leaq 0x2c0(%rsp), %rax
pushq %rax
leaq 0x2d0(%rsp), %rax
pushq %rax
pushq 0x210(%rsp)
pushq 0x1e8(%rsp)
movq 0x458(%rsp), %r13
pushq %r13
movl 0x458(%rsp), %eax
pushq %rax
movl 0x458(%rsp), %eax
pushq %rax
leaq 0x308(%rsp), %rax
pushq %rax
leaq 0x318(%rsp), %rax
pushq %rax
leaq 0x328(%rsp), %rax
pushq %rax
leaq 0x338(%rsp), %rax
pushq %rax
leaq 0x348(%rsp), %rax
pushq %rax
leaq 0x360(%rsp), %rax
pushq %rax
leaq 0x370(%rsp), %rax
pushq %rax
callq 0xe75c
jmp 0x1039b
xorl %r15d, %r15d
testl %ebp, %ebp
setne %r15b
xorl %r13d, %r13d
cmpq $0x0, 0x88(%rsp)
setne %r13b
movl 0x4(%rsp), %r11d
movq 0x28(%rsp), %rdi
movzbl 0x310(%rsp), %r12d
movzbl 0x3(%rsp), %eax
movzbl 0x2f0(%rsp), %ebx
movzbl 0x2e8(%rsp), %ecx
movq %rcx, 0x220(%rsp)
movzbl 0x2d0(%rsp), %ecx
movq %rcx, 0xc0(%rsp)
movzbl 0x290(%rsp), %ecx
movq %rcx, 0xc8(%rsp)
movzbl 0x280(%rsp), %ecx
movq %rcx, 0xd0(%rsp)
movzbl 0x278(%rsp), %ecx
movq %rcx, 0xd8(%rsp)
movl %r14d, %esi
leaq 0x1d0(%rsp), %rcx
movq 0xe0(%rsp), %r8
leaq 0xf0(%rsp), %r9
movd 0x78(%rsp), %xmm0
pushq 0x50(%rsp)
pushq %r12
leaq 0x108(%rsp), %r14
pushq %r14
leaq 0x118(%rsp), %r14
pushq %r14
leaq 0x128(%rsp), %r14
pushq %r14
leaq 0x138(%rsp), %r14
pushq %r14
leaq 0x148(%rsp), %r14
pushq %r14
leaq 0x158(%rsp), %r14
pushq %r14
leaq 0x168(%rsp), %r14
pushq %r14
leaq 0xc4(%rsp), %r14
pushq %r14
leaq 0x1d0(%rsp), %r14
pushq %r14
leaq 0x1e0(%rsp), %r14
pushq %r14
leaq 0x1f0(%rsp), %r14
pushq %r14
leaq 0x200(%rsp), %r14
pushq %r14
leaq 0x210(%rsp), %r14
pushq %r14
leaq 0x220(%rsp), %r14
pushq %r14
leaq 0x230(%rsp), %r14
pushq %r14
leaq 0x240(%rsp), %r14
pushq %r14
leaq 0x110(%rsp), %r14
pushq %r14
leaq 0x258(%rsp), %r14
pushq %r14
leaq 0x124(%rsp), %r14
pushq %r14
leaq 0x270(%rsp), %r14
pushq %r14
leaq 0xe0(%rsp), %r14
pushq %r14
leaq 0x150(%rsp), %r14
pushq %r14
leaq 0xf4(%rsp), %r14
pushq %r14
leaq 0x168(%rsp), %r14
pushq %r14
leaq 0x108(%rsp), %r14
pushq %r14
leaq 0x180(%rsp), %r14
pushq %r14
pushq %rax
pushq %r10
pushq %rbx
pushq %r11
pushq %r15
pushq 0x128(%rsp)
pushq %r13
pushq 0x170(%rsp)
pushq 0x340(%rsp)
movl 0x408(%rsp), %eax
pushq %rax
movl 0x408(%rsp), %eax
pushq %rax
pushq 0x1f8(%rsp)
leaq 0x17c(%rsp), %rax
pushq %rax
leaq 0x1f8(%rsp), %rax
pushq %rax
pushq 0x218(%rsp)
movl 0x3e0(%rsp), %eax
pushq %rax
pushq 0x230(%rsp)
pushq 0x240(%rsp)
leaq 0x180(%rsp), %rax
pushq %rax
leaq 0x180(%rsp), %rax
pushq %rax
leaq 0x2e8(%rsp), %rax
pushq %rax
leaq 0x2b8(%rsp), %rax
pushq %rax
leaq 0x2c8(%rsp), %rax
pushq %rax
pushq 0x208(%rsp)
pushq 0x1e0(%rsp)
movq 0x450(%rsp), %r13
pushq %r13
movl 0x450(%rsp), %eax
pushq %rax
movl 0x450(%rsp), %eax
pushq %rax
leaq 0x300(%rsp), %rax
pushq %rax
leaq 0x310(%rsp), %rax
pushq %rax
leaq 0x320(%rsp), %rax
pushq %rax
leaq 0x330(%rsp), %rax
pushq %rax
leaq 0x340(%rsp), %rax
pushq %rax
leaq 0x358(%rsp), %rax
pushq %rax
leaq 0x368(%rsp), %rax
pushq %rax
leaq 0x260(%rsp), %rax
pushq %rax
callq 0xcede
addq $0x200, %rsp            # imm = 0x200
movb 0x320(%rsp), %r15b
testb %r15b, %r15b
movq 0x318(%rsp), %rbx
movq 0x210(%rsp), %r14
leaq 0x3810(%rip), %r12      # 0x13bd4
jne 0x10488
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %esi
testl %ebp, %ebp
je 0x103ef
movq 0xe8(%rsp), %xmm0
movq %rbx, %rdx
movq 0x50(%rsp), %rcx
callq 0x7eb2
jmp 0x103fd
callq 0x81dc
movq %xmm0, 0xe8(%rsp)
cmpb $0x0, 0x60(%rsp)
je 0x1041d
movq 0x28(%rsp), %rdi
callq 0x2030
testl %eax, %eax
jne 0x10beb
cmpb $0x0, 0x60(%rsp)
jne 0x1042f
movq 0x28(%rsp), %rdi
callq 0x20d0
testl %eax, %eax
jne 0x10beb
movb $0x1, %al
testb %al, %al
je 0x105af
leal 0x1(%rbp), %eax
testl %ebp, %ebp
movl %eax, %ebp
je 0xfc3a
jmp 0x105af
testl %ebp, %ebp
movq 0x9ba4(%rip), %rax      # 0x19ff8
movq (%rax), %rdi
leaq 0x3ad6(%rip), %rdx      # 0x13f34
leaq 0x3ac7(%rip), %rax      # 0x13f2c
cmovneq %rax, %rdx
movl 0x4(%rsp), %ecx
leaq 0x3a9c(%rip), %rsi      # 0x13f10
movq 0x90(%rsp), %r8
xorl %eax, %eax
callq 0x21d0
jmp 0xfc9d
movq 0x68(%rsp), %rsi
movq 0x150(%rsp), %rdx
movq 0x148(%rsp), %rcx
movq 0x10(%rsp), %r8
movl 0x8(%rsp), %r9d
movq 0xf0(%rsp), %xmm0
movzbl 0x2f0(%rsp), %r12d
movzbl 0x2d0(%rsp), %r15d
movzbl 0xf(%rsp), %r14d
movzbl 0x290(%rsp), %ebx
movzbl 0x280(%rsp), %r11d
movzbl 0x278(%rsp), %r10d
movq %rax, %rdi
pushq 0xf8(%rsp)
pushq 0x108(%rsp)
pushq 0x118(%rsp)
pushq 0x128(%rsp)
pushq 0x138(%rsp)
pushq 0x148(%rsp)
pushq 0x158(%rsp)
pushq %r12
leaq 0x36b5(%rip), %r12      # 0x13bd4
pushq 0x258(%rsp)
pushq %r15
movb 0x370(%rsp), %r15b
pushq %r14
movq 0x268(%rsp), %r14
pushq %rbx
movq 0x378(%rsp), %rbx
movl 0x2e8(%rsp), %eax
pushq %rax
pushq %r11
pushq %r10
pushq 0x1d8(%rsp)
pushq 0x1d8(%rsp)
pushq 0x1b8(%rsp)
pushq 0x200(%rsp)
pushq 0x200(%rsp)
pushq 0x1d8(%rsp)
pushq 0x220(%rsp)
pushq 0x1f0(%rsp)
movl 0x350(%rsp), %eax
pushq %rax
callq 0x231e
addq $0xc0, %rsp
jmp 0x103ca
leaq 0x4(%rsp), %rdi
callq 0x3334
jmp 0xfcf3
xorl %r8d, %r8d
movq 0x1f8(%rsp), %rbp
testq %rbp, %rbp
setne %r8b
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %esi
movl 0x4(%rsp), %edx
movq 0x1d8(%rsp), %rcx
movq 0x48(%rsp), %r9
pushq 0x20(%rsp)
pushq %r14
callq 0x74bb
addq $0x10, %rsp
xorl %edi, %edi
movq %r12, %rsi
leaq 0x230(%rsp), %rdx
callq 0x2190
movq %rax, 0x48(%rsp)
movl $0x0, %r14d
cmpq $0x0, 0x200(%rsp)
je 0x10627
xorl %edi, %edi
movq %r12, %rsi
leaq 0x228(%rsp), %rdx
callq 0x2190
movq %rax, %r14
incl 0x4(%rsp)
cmpq $0x0, 0x48(%rsp)
movdqa 0x1cc6(%rip), %xmm15    # 0x12300
jne 0xf654
movslq 0x8(%rsp), %rbx
testq %rbx, %rbx
movss 0x1c(%rsp), %xmm1
movss 0x18(%rsp), %xmm0
jle 0x106a1
movq 0x10(%rsp), %r14
imulq $0x68, %rbx, %r15
xorl %r12d, %r12d
movq 0x20(%r14,%r12), %rax
testq %rax, %rax
je 0x10698
movq (%rax), %rdi
callq 0x2040
movq 0x20(%r14,%r12), %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq 0x20(%r14,%r12), %rdi
callq 0x2040
movss 0x18(%rsp), %xmm0
movss 0x1c(%rsp), %xmm1
addq $0x68, %r12
cmpq %r12, %r15
jne 0x10662
cmpb $0x0, 0x300(%rsp)
je 0x106ce
leaq 0x28(%rsp), %rsi
movq 0x1e8(%rsp), %rdi
movq 0x20(%rsp), %rdx
callq 0xebde
movss 0x18(%rsp), %xmm0
movss 0x1c(%rsp), %xmm1
movq 0x1f0(%rsp), %r14
testq %r14, %r14
movb 0x2b8(%rsp), %cl
movq 0x20(%rsp), %r15
je 0x10709
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
movl %r15d, %edx
movl %ecx, %r12d
callq 0xebde
movl %r12d, %ecx
movss 0x18(%rsp), %xmm0
movss 0x1c(%rsp), %xmm1
xorl %edx, %edx
testq %r14, %r14
setne %dl
movq 0x10(%rsp), %r12
movq 0x28(%rsp), %rdi
movq 0x68(%rsp), %rsi
subq $0x8, %rsp
movzbl 0x308(%rsp), %eax
movzbl %cl, %r10d
leaq 0xc(%rsp), %r11
movq %rdi, 0x60(%rsp)
movq %rsi, 0x68(%rsp)
movl %r15d, %ecx
movq %r12, %r8
movl %ebx, %r9d
pushq 0x58(%rsp)
pushq 0x328(%rsp)
pushq %rax
movl 0x2e8(%rsp), %eax
pushq %rax
movl 0x2e8(%rsp), %eax
pushq %rax
pushq %r10
pushq %r11
callq 0x5a89
addq $0x40, %rsp
movl 0x2a0(%rsp), %eax
testl %eax, %eax
je 0x1079e
jle 0x10796
movl %eax, %r14d
xorl %r15d, %r15d
movq (%r13,%r15,8), %rdi
callq 0x2040
incq %r15
cmpq %r15, %r14
jne 0x10784
movq %r13, %rdi
callq 0x2040
cmpl $0x0, 0x40(%rsp)
je 0x107d5
jle 0x107cb
movq 0x70(%rsp), %r14
movl 0x40(%rsp), %r15d
shlq $0x4, %r15
xorl %r13d, %r13d
movq 0x8(%r14,%r13), %rdi
callq 0x2040
addq $0x10, %r13
cmpq %r13, %r15
jne 0x107b8
movq 0x70(%rsp), %rdi
callq 0x2040
cmpb $0x0, 0x290(%rsp)
je 0x10812
movslq 0x3c(%rsp), %r14
testq %r14, %r14
jle 0x10805
movq 0xb0(%rsp), %r15
xorl %r13d, %r13d
movq (%r15,%r13,8), %rdi
callq 0x2040
incq %r13
cmpq %r13, %r14
jne 0x107f4
movq 0xb0(%rsp), %rdi
callq 0x2040
cmpb $0x0, 0x2f0(%rsp)
je 0x1093b
movslq 0x38(%rsp), %r14
testq %r14, %r14
jle 0x10846
movq 0xa8(%rsp), %r15
xorl %r13d, %r13d
movq (%r15,%r13,8), %rdi
callq 0x2040
incq %r13
cmpq %r13, %r14
jne 0x10835
movq 0xa8(%rsp), %rdi
callq 0x2040
movslq 0x34(%rsp), %r14
testq %r14, %r14
jle 0x10879
movq 0xa0(%rsp), %r15
xorl %r13d, %r13d
movq (%r15,%r13,8), %rdi
callq 0x2040
incq %r13
cmpq %r13, %r14
jne 0x10868
movq 0xa0(%rsp), %rdi
callq 0x2040
movslq 0x30(%rsp), %r14
testq %r14, %r14
jle 0x108ac
movq 0x98(%rsp), %r15
xorl %r13d, %r13d
movq (%r15,%r13,8), %rdi
callq 0x2040
incq %r13
cmpq %r13, %r14
jne 0x1089b
movq 0x98(%rsp), %rdi
callq 0x2040
movq 0x1c8(%rsp), %rdi
callq 0x2040
movq 0x1c0(%rsp), %rdi
callq 0x2040
movq 0x1b8(%rsp), %rdi
callq 0x2040
movq 0x1b0(%rsp), %rdi
callq 0x2040
movq 0x1a8(%rsp), %rdi
callq 0x2040
movq 0x1a0(%rsp), %rdi
callq 0x2040
movq 0x198(%rsp), %rdi
callq 0x2040
movq 0x190(%rsp), %rdi
callq 0x2040
movq 0x188(%rsp), %rdi
callq 0x2040
movq 0x180(%rsp), %rdi
callq 0x2040
testl %ebx, %ebx
jle 0x10a4c
movl 0x4(%rsp), %r13d
xorl %ebp, %ebp
imulq $0x68, %rbp, %rax
leaq (%r12,%rax), %r15
cmpb $0x0, 0xc(%r12,%rax)
jne 0x10a26
cmpl $0x0, 0x18(%r15)
je 0x1096e
movq 0x10(%r15), %rdi
callq 0x2040
cmpb $0x0, 0x2b8(%rsp)
je 0x1099f
movq 0x60(%r15), %rax
testq %rax, %rax
je 0x1099f
movq (%rax), %rdi
callq 0x2040
movq 0x60(%r15), %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq 0x60(%r15), %rdi
callq 0x2040
testl %r13d, %r13d
jle 0x109e2
xorl %r14d, %r14d
movq 0x48(%r15), %rax
movq (%rax,%r14,8), %rax
testq %rax, %rax
je 0x109da
movq (%rax), %rdi
callq 0x2040
movq 0x48(%r15), %rax
movq (%rax,%r14,8), %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq 0x48(%r15), %rax
movq (%rax,%r14,8), %rdi
callq 0x2040
incq %r14
cmpq %r14, %r13
jne 0x109a7
movq 0x48(%r15), %rdi
callq 0x2040
movq 0x50(%r15), %rdi
callq 0x2040
movq 0x38(%r15), %rax
movq (%rax), %rdi
callq 0x2040
movq 0x38(%r15), %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq 0x28(%r15), %rax
movq (%rax), %rdi
callq 0x2040
movq 0x28(%r15), %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq 0x38(%r15), %rdi
callq 0x2040
movq 0x28(%r15), %rdi
callq 0x2040
movq (%r15), %rdi
callq 0x2040
incq %rbp
cmpq %rbx, %rbp
jne 0x1094a
movq %r12, %rdi
callq 0x2040
movq 0x1d0(%rsp), %rdi
callq 0x2040
movq 0xe0(%rsp), %rdi
callq 0x2040
movq 0x208(%rsp), %rdi
callq 0x2040
cmpb $0x0, 0x300(%rsp)
movb 0x270(%rsp), %cl
je 0x10ac6
testb %cl, %cl
je 0x10aad
movq 0x58(%rsp), %rdi
callq 0x2030
movb 0x270(%rsp), %cl
testl %eax, %eax
jne 0x10c15
testb %cl, %cl
jne 0x10ac6
movq 0x58(%rsp), %rdi
callq 0x20d0
movb 0x270(%rsp), %cl
testl %eax, %eax
jne 0x10c15
movq 0x1f0(%rsp), %r14
testq %r14, %r14
movq 0x1f8(%rsp), %rbx
je 0x10b15
testb %cl, %cl
jne 0x10afc
movq 0x60(%rsp), %rdi
callq 0x20d0
movb 0x270(%rsp), %cl
testl %eax, %eax
jne 0x10bf8
testb %cl, %cl
je 0x10b15
movq 0x60(%rsp), %rdi
callq 0x2030
movb 0x270(%rsp), %cl
testl %eax, %eax
jne 0x10bf8
testq %rbx, %rbx
je 0x10b5a
testb %cl, %cl
jne 0x10b3e
movq 0x1d8(%rsp), %rdi
callq 0x20d0
movb 0x270(%rsp), %cl
testl %eax, %eax
jne 0x10c00
testb %cl, %cl
je 0x10b5a
movq 0x1d8(%rsp), %rdi
callq 0x2030
movb 0x270(%rsp), %cl
testl %eax, %eax
jne 0x10c00
cmpq $0x0, 0x88(%rsp)
je 0x10ba1
testb %cl, %cl
jne 0x10b89
movq 0x1e0(%rsp), %rdi
callq 0x20d0
movb 0x270(%rsp), %cl
testl %eax, %eax
jne 0x10c08
testb %cl, %cl
je 0x10ba1
movq 0x1e0(%rsp), %rdi
callq 0x2030
movb 0x270(%rsp), %cl
testl %eax, %eax
jne 0x10c08
cmpb $0x0, 0x3(%rsp)
je 0x10bd9
testb %cl, %cl
jne 0x10bc8
movq 0xb8(%rsp), %rdi
callq 0x20d0
movb 0x270(%rsp), %cl
testl %eax, %eax
jne 0x10c22
testb %cl, %cl
je 0x10bd9
movq 0xb8(%rsp), %rdi
callq 0x2030
testl %eax, %eax
jne 0x10c22
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x90(%rsp), %rdi
callq 0x3323
movq %r14, %rdi
callq 0x3368
movq %rbx, %rdi
callq 0x3379
movq 0x88(%rsp), %rdi
callq 0x338a
movq 0x1e8(%rsp), %rdi
callq 0x3357
movq 0x2f8(%rsp), %rdi
callq 0x339b