// File: /workspace/github_c_makefile_star2_O3/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 $0x258, %rsp            # imm = 0x258
movd %xmm2, 0x70(%rsp)
movq %r9, %rbp
movq %r8, %r12
movq %rdx, %r14
movq 0x338(%rsp), %r13
movl 0x2e8(%rsp), %r11d
movl 0x2e0(%rsp), %r10d
movq 0x2d0(%rsp), %rbx
movq 0x2c8(%rsp), %r8
movl 0x2c0(%rsp), %r9d
cmpb $0x0, 0x328(%rsp)
movzbl 0x340(%rsp), %r15d
movzbl 0x290(%rsp), %edx
je 0xf3ef
subq $0x8, %rsp
movzbl 0x2e0(%rsp), %eax
movq %rcx, %rdi
movq %r14, %rsi
movl %r9d, %ecx
movq %rbx, %r9
pushq %r15
pushq %r13
pushq %r11
pushq %r10
pushq %rax
callq 0xf155
addq $0x288, %rsp            # imm = 0x288
jmp 0x10bbc
movq %rdi, 0x30(%rsp)
movq %rsi, 0x228(%rsp)
movq %rdx, 0x18(%rsp)
movq %r15, 0x28(%rsp)
movd %xmm0, 0x218(%rsp)
movd %xmm1, 0x21c(%rsp)
movq %r14, 0x220(%rsp)
movq %rcx, 0xa0(%rsp)
testq %rbp, %rbp
je 0xf442
leaq 0x210(%rsp), %rsi
movq %rbp, %rdi
movq 0x18(%rsp), %rdx
callq 0xebe3
movq 0x318(%rsp), %r15
testq %r12, %r12
je 0xf464
leaq 0x238(%rsp), %rsi
movq %r12, %rdi
movq 0x18(%rsp), %rdx
callq 0xebe3
testq %r15, %r15
setne %al
andb 0x310(%rsp), %al
movb %al, 0xb(%rsp)
cmpb $0x1, %al
jne 0xf48e
leaq 0x208(%rsp), %rsi
movq %r15, %rdi
movq 0x18(%rsp), %rdx
callq 0xebe3
movq %r12, 0xa8(%rsp)
movl $0xfff0, %edi           # imm = 0xFFF0
callq 0x3913
movq %rax, %r15
xorl %r12d, %r12d
movl %r12d, 0x10(%rsp)
movq %r12, 0x20(%rsp)
movl $0x1400, %edi           # imm = 0x1400
callq 0x3913
movq %rax, 0x200(%rsp)
movl %r12d, 0x44(%rsp)
movq %r12, 0x1f8(%rsp)
movl $0x81, %edi
callq 0x3913
movb %r12b, 0x80(%rax)
movq %rax, 0xd8(%rsp)
movb %r12b, (%rax)
movl %r12d, 0xc(%rsp)
movq %r12, 0x1f0(%rsp)
movl %r12d, 0x40(%rsp)
movq %r12, 0x1e8(%rsp)
movl %r12d, 0x3c(%rsp)
movq %r12, 0x1e0(%rsp)
movl %r12d, 0x38(%rsp)
movq %r12, 0x1d8(%rsp)
movl %r12d, 0x7c(%rsp)
movq %r12, 0x1d0(%rsp)
movl %r12d, 0x78(%rsp)
movq %r12, 0x1c8(%rsp)
movq %r12, 0x1c0(%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)
movl %r12d, 0x74(%rsp)
movq $0x0, 0x50(%rsp)
movq %r12, 0x98(%rsp)
testq %rbx, %rbx
je 0xf5a4
leaq 0x98(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xef23
movq %rax, 0x50(%rsp)
movq %r15, 0xe0(%rsp)
leaq 0x4615(%rip), %rsi      # 0x13bc8
leaq 0x250(%rsp), %rdx
movq 0x30(%rsp), %rdi
callq 0x2190
movq %rax, 0x58(%rsp)
xorl %r12d, %r12d
movq 0x228(%rsp), %rdi
testq %rdi, %rdi
je 0xf5f5
leaq 0x45e7(%rip), %rsi      # 0x13bc8
leaq 0x248(%rsp), %rdx
callq 0x2190
movq %rax, 0x48(%rsp)
jmp 0xf5fe
movq $0x0, 0x48(%rsp)
movq 0x28(%rsp), %rbx
cmpq $0x0, 0x58(%rsp)
movq %rbp, 0xe8(%rsp)
je 0x1069c
movl 0x300(%rsp), %eax
movl 0x2f8(%rsp), %ecx
addl %ecx, %eax
movq %rax, 0x240(%rsp)
movdqa 0x2cc8(%rip), %xmm15    # 0x12300
xorl %eax, %eax
movq %rax, 0x80(%rsp)
movslq 0x10(%rsp), %r15
testq %r15, %r15
jle 0xfc13
movq 0x20(%rsp), %rax
leal 0xf(%r15), %ecx
leaq -0x1(%r15), %rdx
movq %rdx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
shrl $0x4, %ecx
imulq $0x680, %rcx, %rcx      # imm = 0x680
xorl %edx, %edx
movdqa 0x2c75(%rip), %xmm1     # 0x122f0
movdqa 0x2c5d(%rip), %xmm2     # 0x122e0
movdqa 0x2c45(%rip), %xmm3     # 0x122d0
movdqa 0x2c2d(%rip), %xmm4     # 0x122c0
movdqa 0x2c15(%rip), %xmm5     # 0x122b0
movdqa 0x2bfd(%rip), %xmm6     # 0x122a0
movdqa 0x2be5(%rip), %xmm7     # 0x12290
movdqa 0x2bcc(%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 0xf724
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 0xf755
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 0xf7b9
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 0xf7fa
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 0xf869
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 0xf89e
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 0xf900
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 0xf942
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 0xf9b1
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 0xf9e6
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 0xfa48
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 0xfa8a
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 0xfaf9
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 0xfb2e
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 0xfb90
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 0xfbd2
movb $0x0, 0x625(%rax,%rdx)
movdqa 0x2735(%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 0xf6b4
pxor %xmm0, %xmm0
movq %xmm0, 0xf0(%rsp)
movb $0x1, %al
xorl %r12d, %r12d
movl %eax, 0x88(%rsp)
movq 0x58(%rsp), %r14
testb $0x1, %r12b
je 0xfc5f
cmpq $0x0, 0x48(%rsp)
je 0x10548
movq 0x48(%rsp), %r14
movq %r14, %rdi
leaq 0x3f5f(%rip), %rsi      # 0x13bb1
callq 0x21b0
testl %eax, %eax
je 0x10548
movq %r14, %rdi
leaq 0x68(%rsp), %rsi
callq 0xedce
movq 0x68(%rsp), %rdi
movb %al, 0x60(%rsp)
movzbl %al, %r13d
movl %r13d, %esi
callq 0xed39
movl %eax, %ebx
cmpb $0x0, 0x340(%rsp)
jne 0x1040a
cmpb $0x0, 0xb(%rsp)
je 0xfcdc
movq 0x208(%rsp), %rdi
testb $0x1, %r12b
leaq 0x427d(%rip), %rdx      # 0x13f28
leaq 0x426e(%rip), %rax      # 0x13f20
cmovneq %rax, %rdx
movl 0xc(%rsp), %ecx
leaq 0x4274(%rip), %rsi      # 0x13f35
movq %r14, %r8
xorl %eax, %eax
cmpb $0x0, 0x290(%rsp)
je 0xfcd7
callq 0x20e0
jmp 0xfcdc
callq 0x21d0
movslq 0x10(%rsp), %rax
testq %rax, %rax
jle 0xfd35
movq 0x20(%rsp), %rcx
xorl %edx, %edx
imulq $0x68, %rdx, %rsi
movq 0x20(%rcx,%rsi), %rdi
testq %rdi, %rdi
je 0xfd2d
addq %rcx, %rsi
cmpl $-0x1, 0x8(%rsi)
je 0xfd2d
xorl %r8d, %r8d
movq (%rdi), %rdi
movb $0x0, (%rdi,%r8)
movq 0x20(%rsi), %rdi
movq 0x8(%rdi), %r9
movw $0x0, (%r9,%r8,2)
incq %r8
movl 0x8(%rsi), %r9d
incl %r9d
cmpq %r9, %r8
jb 0xfd07
incq %rdx
cmpq %rax, %rdx
jne 0xfced
movq %r14, 0x30(%rsp)
xorl %eax, %eax
movq %rax, 0x90(%rsp)
movq %rax, 0x188(%rsp)
movq %rax, 0x180(%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 0x210(%rsp), %rax
movq %rax, 0x230(%rsp)
movq 0x208(%rsp), %r10
movb %bl, 0x17(%rsp)
testb %bl, %bl
je 0x100ac
xorl %r15d, %r15d
testq %rbp, %rbp
setne %r15b
movq 0x68(%rsp), %rdi
movl 0xc(%rsp), %r14d
subq $0x8, %rsp
movzbl 0x338(%rsp), %ebp
movzbl 0x13(%rsp), %ebx
movzbl 0x318(%rsp), %r13d
movzbl %r12b, %r11d
andl $0x1, %r11d
movzbl 0x310(%rsp), %eax
movq %rax, 0xb8(%rsp)
movzbl 0x2f8(%rsp), %eax
movq %rax, 0xc0(%rsp)
movzbl 0x2b8(%rsp), %eax
movq %rax, 0xc8(%rsp)
movzbl 0x2a8(%rsp), %eax
movq %rax, 0xd0(%rsp)
movzbl 0x2a0(%rsp), %eax
movq %rax, 0xd8(%rsp)
movq %rdi, 0x100(%rsp)
movq 0xe8(%rsp), %rsi
leaq 0x208(%rsp), %rdx
movq 0xe0(%rsp), %rcx
leaq 0x108(%rsp), %r8
leaq 0x98(%rsp), %r9
movd 0x78(%rsp), %xmm0
pushq 0x30(%rsp)
pushq %rbp
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 0x180(%rsp), %rax
pushq %rax
leaq 0xc4(%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 0x258(%rsp), %rax
pushq %rax
leaq 0x110(%rsp), %rax
pushq %rax
leaq 0x270(%rsp), %rax
pushq %rax
leaq 0x124(%rsp), %rax
pushq %rax
leaq 0x288(%rsp), %rax
pushq %rax
leaq 0xf0(%rsp), %rax
pushq %rax
leaq 0x2a0(%rsp), %rax
pushq %rax
leaq 0x104(%rsp), %rax
pushq %rax
leaq 0x2b8(%rsp), %rax
pushq %rax
leaq 0x118(%rsp), %rax
pushq %rax
leaq 0x2d0(%rsp), %rax
pushq %rax
pushq %rbx
pushq %r10
pushq %r13
movq %r14, 0x180(%rsp)
pushq %r14
pushq %r11
pushq 0x128(%rsp)
pushq %r15
pushq 0x350(%rsp)
pushq 0x1d8(%rsp)
movl 0x430(%rsp), %eax
pushq %rax
movl 0x430(%rsp), %eax
pushq %rax
pushq 0x1f8(%rsp)
leaq 0x18c(%rsp), %rax
pushq %rax
leaq 0x348(%rsp), %rax
pushq %rax
pushq 0x218(%rsp)
movl 0x408(%rsp), %eax
pushq %rax
pushq 0x230(%rsp)
pushq 0x240(%rsp)
leaq 0x198(%rsp), %rax
pushq %rax
leaq 0x190(%rsp), %rax
pushq %rax
leaq 0x300(%rsp), %rax
pushq %rax
leaq 0x2d0(%rsp), %rax
pushq %rax
leaq 0x2e0(%rsp), %rax
pushq %rax
pushq 0x238(%rsp)
pushq 0x1f8(%rsp)
pushq 0x478(%rsp)
movl 0x478(%rsp), %eax
pushq %rax
movl 0x478(%rsp), %eax
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 0x358(%rsp), %rax
pushq %rax
leaq 0x370(%rsp), %rax
pushq %rax
leaq 0x380(%rsp), %rax
pushq %rax
callq 0xe786
jmp 0x10359
xorl %r14d, %r14d
testq %rbp, %rbp
setne %r14b
movl 0xc(%rsp), %r11d
movq 0x68(%rsp), %rdi
movzbl 0x330(%rsp), %eax
movzbl 0xb(%rsp), %r15d
movzbl 0x310(%rsp), %ebp
movzbl %r12b, %ebx
andl $0x1, %ebx
movzbl 0x308(%rsp), %ecx
movq %rcx, 0xb0(%rsp)
movzbl 0x2f0(%rsp), %ecx
movq %rcx, 0xb8(%rsp)
movzbl 0x2b0(%rsp), %ecx
movq %rcx, 0xc0(%rsp)
movzbl 0x2a0(%rsp), %ecx
movq %rcx, 0xc8(%rsp)
movzbl 0x298(%rsp), %ecx
movq %rcx, 0xd0(%rsp)
movq %rdi, 0xf8(%rsp)
movl %r13d, %esi
movq 0xe0(%rsp), %rdx
leaq 0x200(%rsp), %rcx
movq 0xd8(%rsp), %r8
leaq 0x100(%rsp), %r9
movd 0x70(%rsp), %xmm0
pushq 0x28(%rsp)
pushq %rax
leaq 0x118(%rsp), %rax
pushq %rax
leaq 0x128(%rsp), %rax
pushq %rax
leaq 0x138(%rsp), %rax
pushq %rax
leaq 0x148(%rsp), %rax
pushq %rax
leaq 0x158(%rsp), %rax
pushq %rax
leaq 0x168(%rsp), %rax
pushq %rax
leaq 0x178(%rsp), %rax
pushq %rax
leaq 0xbc(%rsp), %rax
pushq %rax
leaq 0x1e0(%rsp), %rax
pushq %rax
leaq 0x1f0(%rsp), %rax
pushq %rax
leaq 0x200(%rsp), %rax
pushq %rax
leaq 0x210(%rsp), %rax
pushq %rax
leaq 0x220(%rsp), %rax
pushq %rax
leaq 0x230(%rsp), %rax
pushq %rax
leaq 0x240(%rsp), %rax
pushq %rax
leaq 0x250(%rsp), %rax
pushq %rax
leaq 0x108(%rsp), %rax
pushq %rax
leaq 0x268(%rsp), %rax
pushq %rax
leaq 0x11c(%rsp), %rax
pushq %rax
leaq 0x280(%rsp), %rax
pushq %rax
leaq 0xe8(%rsp), %rax
pushq %rax
leaq 0x298(%rsp), %rax
pushq %rax
leaq 0xfc(%rsp), %rax
pushq %rax
leaq 0x2b0(%rsp), %rax
pushq %rax
leaq 0x110(%rsp), %rax
pushq %rax
leaq 0x2c8(%rsp), %rax
pushq %rax
pushq %r15
pushq %r10
pushq %rbp
movq %r11, 0x178(%rsp)
pushq %r11
pushq %rbx
pushq 0x120(%rsp)
pushq %r14
pushq 0x348(%rsp)
pushq 0x1d0(%rsp)
movl 0x428(%rsp), %eax
pushq %rax
movl 0x428(%rsp), %eax
pushq %rax
pushq 0x1f0(%rsp)
leaq 0x184(%rsp), %rax
pushq %rax
leaq 0x340(%rsp), %rax
pushq %rax
pushq 0x210(%rsp)
movl 0x400(%rsp), %eax
pushq %rax
pushq 0x228(%rsp)
pushq 0x238(%rsp)
leaq 0x190(%rsp), %rax
pushq %rax
leaq 0x188(%rsp), %rax
pushq %rax
leaq 0x2f8(%rsp), %rax
pushq %rax
leaq 0x2c8(%rsp), %rax
pushq %rax
leaq 0x2d8(%rsp), %rax
pushq %rax
pushq 0x230(%rsp)
pushq 0x1f0(%rsp)
pushq 0x470(%rsp)
movl 0x470(%rsp), %eax
pushq %rax
movl 0x470(%rsp), %eax
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 0x350(%rsp), %rax
pushq %rax
leaq 0x368(%rsp), %rax
pushq %rax
leaq 0x378(%rsp), %rax
pushq %rax
leaq 0x288(%rsp), %rax
pushq %rax
callq 0xcfe8
addq $0x200, %rsp            # imm = 0x200
cmpb $0x0, 0x340(%rsp)
movq 0x30(%rsp), %r14
jne 0x10444
movq 0x20(%rsp), %r13
movl 0x10(%rsp), %r15d
testb $0x1, %r12b
movq 0xe8(%rsp), %rbp
movq %r13, %rdi
movl %r15d, %esi
je 0x103b0
movq 0xf0(%rsp), %xmm0
movq 0x338(%rsp), %rdx
movq 0x28(%rsp), %rbx
movl %ebx, %ecx
callq 0x7ed0
jmp 0x103c3
callq 0x8273
movq %xmm0, 0xf0(%rsp)
movq 0x28(%rsp), %rbx
movb 0x60(%rsp), %al
testb %al, %al
je 0x103da
movq 0xf8(%rsp), %rdi
callq 0x2030
jmp 0x103e7
movq 0xf8(%rsp), %rdi
callq 0x20d0
testl %eax, %eax
jne 0x10bc7
movb $0x1, %r12b
testb $0x1, 0x88(%rsp)
movl $0x0, %eax
jne 0xfc25
jmp 0x10579
movq 0x9be7(%rip), %rax      # 0x19ff8
movq (%rax), %rdi
testb $0x1, %r12b
leaq 0x3b09(%rip), %rdx      # 0x13f28
leaq 0x3afa(%rip), %rax      # 0x13f20
cmovneq %rax, %rdx
movl 0xc(%rsp), %ecx
leaq 0x3acf(%rip), %rsi      # 0x13f04
movq %r14, %r8
xorl %eax, %eax
callq 0x21d0
jmp 0xfc91
movq 0x90(%rsp), %rsi
movq 0x160(%rsp), %rdx
movq 0x158(%rsp), %rcx
movq 0x20(%rsp), %r8
movl 0x10(%rsp), %r9d
movq 0x100(%rsp), %xmm0
movzbl 0x310(%rsp), %r13d
movzbl 0x2f0(%rsp), %r15d
movzbl 0x17(%rsp), %r14d
movzbl 0x2b0(%rsp), %ebx
movzbl 0x2a0(%rsp), %r11d
movzbl 0x298(%rsp), %r10d
movq %rax, %rdi
pushq 0x108(%rsp)
pushq 0x118(%rsp)
pushq 0x128(%rsp)
pushq 0x138(%rsp)
pushq 0x148(%rsp)
pushq 0x158(%rsp)
pushq 0x168(%rsp)
pushq %r13
pushq 0x280(%rsp)
pushq %r15
pushq %r14
movq 0x88(%rsp), %r14
pushq %rbx
movl 0x308(%rsp), %eax
pushq %rax
pushq %r11
pushq %r10
pushq 0x1e8(%rsp)
pushq 0x1e8(%rsp)
pushq 0x1c8(%rsp)
pushq 0x210(%rsp)
pushq 0x210(%rsp)
pushq 0x1e8(%rsp)
pushq 0x230(%rsp)
pushq 0x200(%rsp)
movl 0x370(%rsp), %eax
pushq %rax
callq 0x231e
addq $0xc0, %rsp
jmp 0x10373
cmpb $0x0, 0x340(%rsp)
jne 0x10628
movq 0x20(%rsp), %r13
movq %r13, %rdi
movl %r15d, %esi
movq 0xf0(%rsp), %xmm0
movq 0x338(%rsp), %rdx
movl %ebx, %ecx
callq 0x7a35
xorl %r8d, %r8d
cmpq $0x0, 0xa8(%rsp)
setne %r8b
movq 0x238(%rsp), %rcx
movq %r13, %rdi
movl %r15d, %esi
movq 0x80(%rsp), %rdx
movq 0x58(%rsp), %r9
pushq 0x18(%rsp)
pushq 0x50(%rsp)
callq 0x74d5
addq $0x10, %rsp
xorl %edi, %edi
leaq 0x360a(%rip), %r14      # 0x13bc8
movq %r14, %rsi
leaq 0x250(%rsp), %rdx
callq 0x2190
movq %rax, 0x58(%rsp)
movl $0x0, %eax
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x228(%rsp)
je 0x105ff
xorl %edi, %edi
movq %r14, %rsi
leaq 0x248(%rsp), %rdx
callq 0x2190
movq %rax, 0x48(%rsp)
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0xc(%rsp)
cmpq $0x0, 0x58(%rsp)
movq 0x338(%rsp), %r13
movdqa 0x1ce0(%rip), %xmm15    # 0x12300
jne 0xf63a
jmp 0x1064d
movq 0x99c9(%rip), %rax      # 0x19ff8
movq (%rax), %rdi
leaq 0x38a8(%rip), %rsi      # 0x13ee1
movq 0x80(%rsp), %rdx
xorl %eax, %eax
callq 0x21d0
jmp 0x10556
movslq 0x10(%rsp), %r12
testq %r12, %r12
setg %bpl
jle 0x1069c
movq 0x20(%rsp), %rbx
imulq $0x68, %r12, %r14
xorl %r15d, %r15d
movq 0x20(%rbx,%r15), %rax
testq %rax, %rax
je 0x10691
movq (%rax), %rdi
callq 0x2040
movq 0x20(%rbx,%r15), %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq 0x20(%rbx,%r15), %rdi
callq 0x2040
addq $0x68, %r15
cmpq %r15, %r14
jne 0x10667
jmp 0x1069e
xorl %ebp, %ebp
movq %r12, 0x30(%rsp)
cmpb $0x0, 0x320(%rsp)
je 0x106c4
leaq 0x68(%rsp), %rsi
movq 0x220(%rsp), %rdi
movq 0x18(%rsp), %rdx
callq 0xebe3
movq %rbp, %r12
movq 0xa0(%rsp), %r14
testq %r14, %r14
je 0x106f3
leaq 0x90(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
movq 0x18(%rsp), %rbp
movl %ebp, %edx
callq 0xebe3
movq (%rbx), %rsi
jmp 0x106f8
movq 0x18(%rsp), %rbp
xorl %edx, %edx
testq %r14, %r14
setne %dl
movq 0x20(%rsp), %r15
movq 0x68(%rsp), %rdi
subq $0x8, %rsp
movzbl 0x328(%rsp), %eax
movzbl 0x2e0(%rsp), %r10d
leaq 0x14(%rsp), %r11
movq %rdi, 0x68(%rsp)
movq %rsi, 0x90(%rsp)
movl %ebp, %ecx
movq %r15, %r8
movq 0x38(%rsp), %r9
movss 0x220(%rsp), %xmm0
movss 0x224(%rsp), %xmm1
pushq 0x30(%rsp)
pushq %r13
pushq %rax
movl 0x308(%rsp), %eax
pushq %rax
movl 0x308(%rsp), %eax
pushq %rax
pushq %r10
pushq %r11
callq 0x59d2
addq $0x40, %rsp
movl 0x2c0(%rsp), %eax
testl %eax, %eax
movq %r12, %rbp
je 0x107a8
movq 0x2c8(%rsp), %r13
jle 0x107a0
movl %eax, %ebx
xorl %r14d, %r14d
movq (%r13,%r14,8), %rdi
callq 0x2040
incq %r14
cmpq %r14, %rbx
jne 0x1078e
movq %r13, %rdi
callq 0x2040
cmpl $0x0, 0x50(%rsp)
movq 0x30(%rsp), %r12
je 0x107e4
movq 0x98(%rsp), %r13
jle 0x107dc
movl 0x50(%rsp), %ebx
shlq $0x4, %rbx
xorl %r14d, %r14d
movq 0x8(%r13,%r14), %rdi
callq 0x2040
addq $0x10, %r14
cmpq %r14, %rbx
jne 0x107c9
movq %r13, %rdi
callq 0x2040
cmpb $0x0, 0x2b0(%rsp)
je 0x1081d
movslq 0x44(%rsp), %rbx
movq 0x1f8(%rsp), %r13
testq %rbx, %rbx
jle 0x10815
xorl %r14d, %r14d
movq (%r13,%r14,8), %rdi
callq 0x2040
incq %r14
cmpq %r14, %rbx
jne 0x10803
movq %r13, %rdi
callq 0x2040
cmpb $0x0, 0x310(%rsp)
je 0x1093a
movslq 0x40(%rsp), %rbx
movq 0x1f0(%rsp), %r13
testq %rbx, %rbx
jle 0x10852
xorl %r14d, %r14d
movq (%r13,%r14,8), %rdi
callq 0x2040
incq %r14
cmpq %r14, %rbx
jne 0x10840
movq %r13, %rdi
callq 0x2040
movslq 0x3c(%rsp), %rbx
movq 0x1e8(%rsp), %r13
testq %rbx, %rbx
jle 0x10881
xorl %r14d, %r14d
movq (%r13,%r14,8), %rdi
callq 0x2040
incq %r14
cmpq %r14, %rbx
jne 0x1086f
movq %r13, %rdi
callq 0x2040
movslq 0x38(%rsp), %rbx
movq 0x1e0(%rsp), %r13
testq %rbx, %rbx
jle 0x108b0
xorl %r14d, %r14d
movq (%r13,%r14,8), %rdi
callq 0x2040
incq %r14
cmpq %r14, %rbx
jne 0x1089e
movq %r13, %rdi
callq 0x2040
movq 0x1d8(%rsp), %rdi
callq 0x2040
movq 0x1d0(%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
testb %bpl, %bpl
je 0x10a4e
movl 0xc(%rsp), %r13d
movl %r12d, %r12d
xorl %ebp, %ebp
imulq $0x68, %rbp, %rax
leaq (%r15,%rax), %rbx
cmpb $0x0, 0xc(%r15,%rax)
jne 0x10a28
cmpl $0x0, 0x18(%rbx)
je 0x10970
movq 0x10(%rbx), %rdi
callq 0x2040
cmpb $0x0, 0x2d8(%rsp)
je 0x109a1
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x109a1
movq (%rax), %rdi
callq 0x2040
movq 0x60(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq 0x60(%rbx), %rdi
callq 0x2040
testl %r13d, %r13d
jle 0x109e4
xorl %r14d, %r14d
movq 0x48(%rbx), %rax
movq (%rax,%r14,8), %rax
testq %rax, %rax
je 0x109dc
movq (%rax), %rdi
callq 0x2040
movq 0x48(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq 0x48(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x2040
incq %r14
cmpq %r14, %r13
jne 0x109a9
movq 0x48(%rbx), %rdi
callq 0x2040
movq 0x50(%rbx), %rdi
callq 0x2040
movq 0x38(%rbx), %rax
movq (%rax), %rdi
callq 0x2040
movq 0x38(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq 0x28(%rbx), %rax
movq (%rax), %rdi
callq 0x2040
movq 0x28(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq 0x38(%rbx), %rdi
callq 0x2040
movq 0x28(%rbx), %rdi
callq 0x2040
movq (%rbx), %rdi
callq 0x2040
incq %rbp
cmpq %r12, %rbp
jne 0x1094d
movq %r15, %rdi
callq 0x2040
movq 0x200(%rsp), %rdi
callq 0x2040
movq 0xd8(%rsp), %rdi
callq 0x2040
movq 0xe0(%rsp), %rdi
callq 0x2040
cmpb $0x0, 0x320(%rsp)
je 0x10ac2
cmpb $0x0, 0x290(%rsp)
movq 0xe8(%rsp), %rbx
movq 0xa8(%rsp), %r14
movq 0xa0(%rsp), %r15
je 0x10af8
movq 0x60(%rsp), %rdi
callq 0x2030
testl %eax, %eax
jne 0x10be7
testq %r15, %r15
jne 0x10ae9
jmp 0x10b24
movq 0xa0(%rsp), %r15
testq %r15, %r15
movq 0xe8(%rsp), %rbx
movq 0xa8(%rsp), %r14
je 0x10b24
cmpb $0x0, 0x290(%rsp)
je 0x10b0f
movq 0x88(%rsp), %rdi
callq 0x2030
jmp 0x10b1c
movq 0x60(%rsp), %rdi
callq 0x20d0
testl %eax, %eax
jne 0x10be7
testq %r15, %r15
je 0x10b24
movq 0x88(%rsp), %rdi
callq 0x20d0
testl %eax, %eax
jne 0x10bd7
testq %r14, %r14
je 0x10b4f
movq 0x238(%rsp), %rdi
cmpb $0x0, 0x290(%rsp)
je 0x10b6d
callq 0x2030
testl %eax, %eax
jne 0x10bcf
testq %rbx, %rbx
jne 0x10b5e
jmp 0x10b8c
testq %rbx, %rbx
je 0x10b8c
cmpb $0x0, 0x290(%rsp)
je 0x10b7b
movq 0x210(%rsp), %rdi
callq 0x2030
jmp 0x10b88
callq 0x20d0
testl %eax, %eax
jne 0x10bcf
testq %rbx, %rbx
je 0x10b8c
movq 0x210(%rsp), %rdi
callq 0x20d0
testl %eax, %eax
jne 0x10bdf
cmpb $0x0, 0xb(%rsp)
je 0x10bb5
movq 0x208(%rsp), %rdi
cmpb $0x0, 0x290(%rsp)
je 0x10bac
callq 0x2030
jmp 0x10bb1
callq 0x20d0
testl %eax, %eax
jne 0x10bf4
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x3349
movq %r14, %rdi
callq 0x337c
movq %r15, %rdi
callq 0x336b
movq %rbx, %rdi
callq 0x338d
movq 0x220(%rsp), %rdi
callq 0x335a
movq 0x318(%rsp), %rdi
callq 0x339e