// File: /workspace/github_c_makefile_star2_O0/jsh58[P]Genrich/Genrich.c
// Function: readSAM
uint64_t readSAM(File in, bool gz, char* line, Aln** aln,
    char* readName, double* totalLen, uint64_t* unmapped,
    uint64_t* paired, uint64_t* single, uint64_t* pairedPr,
    uint64_t* singlePr, uint64_t* supp, uint64_t* skipped,
    uint64_t* lowMapQ, int minMapQ, int xcount,
    char** xchrList, int xBedLen, Bed* xBed,
    uint64_t* secPair, uint64_t* secSingle,
    uint64_t* orphan, int* chromLen, Chrom** chrom,
    bool singleOpt, bool extendOpt, int extend,
    bool avgExtOpt, Aln*** unpair, int* unpairMem,
    float asDiff, bool atacOpt, int atacLen5, int atacLen3,
    bool atacAdj, File bed, bool bedOpt, bool gzOut,
    bool ctrl, int sample, bool dupsOpt, File dups,
    bool dupsVerb, Read*** readPr, int* readMemPr,
    Read*** readDc, int* readMemDc, Read*** readSn,
    int* readMemSn, HashAln*** table, uint32_t* tableMem,
    HashAln*** tableSn, uint32_t* tableSnMem,
    uint32_t** order, uint32_t** order0, uint32_t** order1,
    uint32_t** order2, uint16_t** qualA, uint16_t** qual0,
    uint16_t** qual1, uint16_t** qual2, uint32_t* arrMem,
    uint64_t* countPr, uint64_t* dupsPr, uint64_t* countDc,
    uint64_t* dupsDc, uint64_t* countSn, uint64_t* dupsSn,
    uint64_t* errCount, bool sortOpt, bool verbose) {

  // SAM fields to save
  char* qname, *rname, *cigar, *rnext, *seq, *qual, *extra;
  uint16_t flag;
  uint32_t pos, pnext;
  int32_t tlen;
  uint8_t mapq;

  int alnLen = 0;     // number of alignments for this read
  int unpairIdx = 0;  // \ indexes into unpaired array(s)
  int unpairLen = 0;  // /   (with avgExtOpt)
  int readIdxPr = 0;  // \ indexes into read array readPr
  int readLenPr = 0;  // /   (with dupsOpt)
  int readIdxDc = 0;  // \ indexes into read array readDc
  int readLenDc = 0;  // /   (with dupsOpt)
  int readIdxSn = 0;  // \ indexes into read array readSn
  int readLenSn = 0;  // /   (with dupsOpt)
  uint16_t qualR1 = 0, qualR2 = 0; // sums of quality scores
  bool pastHeader = false;    // to check for misplaced header lines
  uint64_t count = 0;
  while (getLine(line, MAX_SIZE, in, gz) != NULL) {

    if (line[0] == '@') {
      if (pastHeader)
        exit(error(line, ERRHEAD));
      checkHeader(line, chromLen, chrom, xcount, xchrList,
        xBedLen, xBed, ctrl, sortOpt, verbose);
      continue;
    }
    pastHeader = true;

    // parse SAM record
    qname = strtok(line, TAB);
    if (qname == NULL)
      exit(error(line, ERRSAM));
    if (! loadFields(&flag, &rname, &pos, &mapq, &cigar,
        &rnext, &pnext, &tlen, &seq, &qual, &extra))
      exit(error(qname, ERRSAM));

    count++;
    if (flag & 0x4) {
      // skip unmapped
      (*unmapped)++;
      continue;
    }
    if (! strcmp(qname, "*") || ! strcmp(rname, "*")
        || pos < 0)
      // insufficient alignment info
      exit(error(qname, ERRSAM));
    if (flag & 0xE00) {
      // skip supplementary/PCR dups/low quality
      (*supp)++;
      continue;
    }
    // find matching Chrom (reference sequence)
    Chrom* ref = NULL;
    for (int i = 0; i < *chromLen; i++)
      if (! strcmp((*chrom + i)->name, rname)) {
        ref = *chrom + i;
        break;
      }
    if (ref == NULL)
      // cannot find reference sequence
      exit(error(rname, ERRCHROM));
    if (mapq < minMapQ) {
      // skip low MAPQ alignments
      (*lowMapQ)++;
      continue;
    }

    // process previous set of alns, if starting a new set
    if (readName[0] == '\0' || strcmp(qname, readName)) {
      if (readName[0] != '\0')
        processAlns(readName, *aln, alnLen, totalLen,
          pairedPr, singlePr, orphan, singleOpt,
          extendOpt, extend, avgExtOpt, unpair,
          &unpairIdx, &unpairLen, unpairMem, asDiff,
          atacOpt, atacLen5, atacLen3, atacAdj,
          bed, bedOpt, gzOut, ctrl, sample, dupsOpt,
          readPr, &readIdxPr, &readLenPr, readMemPr,
          readDc, &readIdxDc, &readLenDc, readMemDc,
          readSn, &readIdxSn, &readLenSn, readMemSn,
          qualR1, qualR2, errCount, verbose);
      alnLen = 0;
      qualR1 = qualR2 = 0;
      strncpy(readName, qname, MAX_ALNS);
    }

    // save alignment information
    int length = calcDist(qname, seq, cigar); // distance to 3' end
    float score = getScore(extra);
    if (! parseAlign(aln, &alnLen, flag, ref, pos, length,
        pnext, paired, single, secPair, secSingle, skipped,
        singleOpt, score, dupsOpt, qual, strlen(qual),
        SAMQUAL, &qualR1, &qualR2) && verbose)
      fprintf(stderr, "Warning! Read %s has more than %d alignments\n",
        qname, MAX_ALNS);
    // NOTE: the following SAM fields are ignored:
    //   rnext, tlen
  }

  // process last set of alns
  if (readName[0] != '\0')
    processAlns(readName, *aln, alnLen, totalLen,
      pairedPr, singlePr, orphan, singleOpt,
      extendOpt, extend, avgExtOpt, unpair,
      &unpairIdx, &unpairLen, unpairMem, asDiff,
      atacOpt, atacLen5, atacLen3, atacAdj,
      bed, bedOpt, gzOut, ctrl, sample, dupsOpt,
      readPr, &readIdxPr, &readLenPr, readMemPr,
      readDc, &readIdxDc, &readLenDc, readMemDc,
      readSn, &readIdxSn, &readLenSn, readMemSn,
      qualR1, qualR2, errCount, verbose);

  if (dupsOpt)
    // remove duplicates and process all alignments
    findDups(*readPr, readIdxPr, readLenPr, *readDc,
      readIdxDc, readLenDc, *readSn, readIdxSn, readLenSn,
      table, tableMem, tableSn, tableSnMem, order, order0,
      order1, order2, qualA, qual0, qual1, qual2, arrMem,
      countPr, dupsPr, countDc, dupsDc, countSn, dupsSn,
      singleOpt, pairedPr, singlePr, totalLen, extendOpt,
      extend, avgExtOpt, asDiff, atacOpt, atacLen5,
      atacLen3, atacAdj, bed, bedOpt, gzOut, dups,
      dupsVerb, ctrl, sample, errCount, verbose);

  else if (avgExtOpt)
    // process single alignments w/ avgExtOpt
    processAvgExt(*unpair, unpairIdx, unpairLen,
      *totalLen, *pairedPr, bed, bedOpt, gzOut,
      ctrl, sample, errCount, verbose);

  return count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4d8, %rsp            # imm = 0x4D8
movq %r9, %r15
movq %r8, %r12
movq %rcx, %r13
movb %sil, %al
movb %al, 0x3e9(%rsp)
movb 0x708(%rsp), %al
movb %al, 0x3ea(%rsp)
movb 0x700(%rsp), %cl
movq 0x6f8(%rsp), %rax
movq 0x6f0(%rsp), %rax
movq 0x6e8(%rsp), %rax
movq 0x6e0(%rsp), %rax
movq 0x6d8(%rsp), %rax
movq 0x6d0(%rsp), %rax
movq 0x6c8(%rsp), %rax
movq 0x6c0(%rsp), %rax
movq 0x6b8(%rsp), %rax
movq 0x6b0(%rsp), %rax
movq 0x6a8(%rsp), %rax
movq 0x6a0(%rsp), %rax
movq 0x698(%rsp), %rax
movq 0x690(%rsp), %rax
movq 0x688(%rsp), %rax
movq 0x680(%rsp), %rax
movq 0x678(%rsp), %rax
movq 0x670(%rsp), %rax
movq 0x668(%rsp), %rax
movq 0x660(%rsp), %rax
movq 0x658(%rsp), %rax
movq 0x650(%rsp), %rax
movq 0x648(%rsp), %rax
movq 0x640(%rsp), %rax
movq 0x638(%rsp), %rax
movq 0x630(%rsp), %rax
movb 0x628(%rsp), %al
movb %al, 0x3eb(%rsp)
movq 0x620(%rsp), %rax
movq %rax, 0x3e0(%rsp)
movb 0x618(%rsp), %sil
movl 0x610(%rsp), %eax
movb 0x608(%rsp), %al
movb %al, 0x3df(%rsp)
movb 0x600(%rsp), %r8b
movb 0x5f8(%rsp), %r9b
movq 0x5f0(%rsp), %rax
movq %rax, 0x3d0(%rsp)
movb 0x5e8(%rsp), %r10b
movl 0x5e0(%rsp), %eax
movl 0x5d8(%rsp), %eax
movb 0x5d0(%rsp), %r11b
movq 0x5c8(%rsp), %rax
movq 0x5c0(%rsp), %rax
movb 0x5b8(%rsp), %bl
movl 0x5b0(%rsp), %eax
movb 0x5a8(%rsp), %bpl
movb 0x5a0(%rsp), %r14b
movq 0x598(%rsp), %rax
movq 0x590(%rsp), %rax
movq 0x588(%rsp), %rax
movq 0x580(%rsp), %rax
movq 0x578(%rsp), %rax
movq 0x570(%rsp), %rax
movl 0x568(%rsp), %eax
movq 0x560(%rsp), %rax
movl 0x558(%rsp), %eax
movl 0x550(%rsp), %eax
movq 0x548(%rsp), %rax
movq 0x540(%rsp), %rax
movq 0x538(%rsp), %rax
movq 0x530(%rsp), %rax
movq 0x528(%rsp), %rax
movq 0x520(%rsp), %rax
movq 0x518(%rsp), %rax
movq 0x510(%rsp), %rax
movq 0x3d0(%rsp), %rax
movq %rdi, 0x4d0(%rsp)
movb 0x3df(%rsp), %dil
movq %rax, 0x4c8(%rsp)
movq 0x3e0(%rsp), %rax
movq %rax, 0x4c0(%rsp)
movb 0x3e9(%rsp), %al
andb $0x1, %al
movb %al, 0x4bf(%rsp)
movb 0x3ea(%rsp), %al
movq %rdx, 0x4b0(%rsp)
movb 0x3eb(%rsp), %dl
movq %r13, 0x4a8(%rsp)
movq %r12, 0x4a0(%rsp)
movq %r15, 0x498(%rsp)
andb $0x1, %r14b
movb %r14b, 0x497(%rsp)
andb $0x1, %bpl
movb %bpl, 0x496(%rsp)
andb $0x1, %bl
movb %bl, 0x495(%rsp)
movss %xmm0, 0x490(%rsp)
andb $0x1, %r11b
movb %r11b, 0x48f(%rsp)
andb $0x1, %r10b
movb %r10b, 0x48e(%rsp)
andb $0x1, %r9b
movb %r9b, 0x48d(%rsp)
andb $0x1, %r8b
movb %r8b, 0x48c(%rsp)
andb $0x1, %dil
movb %dil, 0x48b(%rsp)
andb $0x1, %sil
movb %sil, 0x48a(%rsp)
andb $0x1, %dl
movb %dl, 0x489(%rsp)
andb $0x1, %cl
movb %cl, 0x488(%rsp)
andb $0x1, %al
movb %al, 0x487(%rsp)
movl $0x0, 0x430(%rsp)
movl $0x0, 0x42c(%rsp)
movl $0x0, 0x428(%rsp)
movl $0x0, 0x424(%rsp)
movl $0x0, 0x420(%rsp)
movl $0x0, 0x41c(%rsp)
movl $0x0, 0x418(%rsp)
movl $0x0, 0x414(%rsp)
movl $0x0, 0x410(%rsp)
movw $0x0, 0x40e(%rsp)
movw $0x0, 0x40c(%rsp)
movb $0x0, 0x40b(%rsp)
movq $0x0, 0x400(%rsp)
movq 0x4b0(%rsp), %rdi
movb 0x4bf(%rsp), %al
movq 0x4d0(%rsp), %rdx
movl $0xfff0, %esi           # imm = 0xFFF0
andb $0x1, %al
movzbl %al, %ecx
callq 0x2a20
cmpq $0x0, %rax
je 0x15797
movq 0x4b0(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x40, %eax
jne 0x14e1c
testb $0x1, 0x40b(%rsp)
je 0x14d9d
movq 0x4b0(%rsp), %rdi
movl $0x12, %esi
callq 0x2840
movl %eax, %edi
callq 0x22b0
movq 0x4b0(%rsp), %rdi
movq 0x590(%rsp), %rsi
movq 0x598(%rsp), %rdx
movl 0x558(%rsp), %ecx
movq 0x560(%rsp), %r8
movl 0x568(%rsp), %r9d
movq 0x570(%rsp), %rbx
movb 0x48b(%rsp), %r11b
movb 0x488(%rsp), %r10b
movb 0x487(%rsp), %al
andb $0x1, %r11b
andb $0x1, %r10b
andb $0x1, %al
movq %rbx, (%rsp)
movzbl %r11b, %r11d
movl %r11d, 0x8(%rsp)
movzbl %r10b, %r10d
movl %r10d, 0x10(%rsp)
movzbl %al, %eax
movl %eax, 0x18(%rsp)
callq 0x14200
jmp 0x14d36
movb $0x1, 0x40b(%rsp)
movq 0x4b0(%rsp), %rdi
leaq 0xaed1(%rip), %rsi      # 0x1fd04
callq 0x2280
movq %rax, 0x478(%rsp)
cmpq $0x0, 0x478(%rsp)
jne 0x14e64
movq 0x4b0(%rsp), %rdi
movl $0x10, %esi
callq 0x2840
movl %eax, %edi
callq 0x22b0
leaq 0x446(%rsp), %rdi
leaq 0x470(%rsp), %rsi
leaq 0x440(%rsp), %rdx
leaq 0x437(%rsp), %rcx
leaq 0x468(%rsp), %r8
leaq 0x460(%rsp), %r9
leaq 0x43c(%rsp), %r14
leaq 0x438(%rsp), %rbx
leaq 0x458(%rsp), %r11
leaq 0x450(%rsp), %r10
leaq 0x448(%rsp), %rax
movq %r14, (%rsp)
movq %rbx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x14430
testb $0x1, %al
jne 0x14ef6
movq 0x478(%rsp), %rdi
movl $0x10, %esi
callq 0x2840
movl %eax, %edi
callq 0x22b0
movq 0x400(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x400(%rsp)
movzwl 0x446(%rsp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x14f31
movq 0x510(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x14d36
movq 0x478(%rsp), %rdi
leaq 0xa6f7(%rip), %rsi      # 0x1f637
callq 0x21a0
cmpl $0x0, %eax
je 0x14f6d
movq 0x470(%rsp), %rdi
leaq 0xa6de(%rip), %rsi      # 0x1f637
callq 0x21a0
cmpl $0x0, %eax
je 0x14f6d
cmpl $0x0, 0x440(%rsp)
jae 0x14f86
movq 0x478(%rsp), %rdi
movl $0x10, %esi
callq 0x2840
movl %eax, %edi
callq 0x22b0
movzwl 0x446(%rsp), %eax
andl $0xe00, %eax            # imm = 0xE00
cmpl $0x0, %eax
je 0x14faf
movq 0x538(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x14d36
movq $0x0, 0x3f8(%rsp)
movl $0x0, 0x3f4(%rsp)
movl 0x3f4(%rsp), %eax
movq 0x590(%rsp), %rcx
cmpl (%rcx), %eax
jge 0x15041
movq 0x598(%rsp), %rax
movq (%rax), %rax
movslq 0x3f4(%rsp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 0x470(%rsp), %rsi
callq 0x21a0
cmpl $0x0, %eax
jne 0x1502c
movq 0x598(%rsp), %rax
movq (%rax), %rax
movslq 0x3f4(%rsp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x3f8(%rsp)
jmp 0x15041
jmp 0x1502e
movl 0x3f4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3f4(%rsp)
jmp 0x14fc6
cmpq $0x0, 0x3f8(%rsp)
jne 0x15065
movq 0x470(%rsp), %rdi
movl $0x11, %esi
callq 0x2840
movl %eax, %edi
callq 0x22b0
movzbl 0x437(%rsp), %eax
cmpl 0x550(%rsp), %eax
jge 0x1508d
movq 0x548(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x14d36
movq 0x4a0(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x150bb
movq 0x478(%rsp), %rdi
movq 0x4a0(%rsp), %rsi
callq 0x21a0
cmpl $0x0, %eax
je 0x15590
movq 0x4a0(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x15557
movq 0x4a0(%rsp), %rdi
movq 0x4a8(%rsp), %rax
movq (%rax), %rsi
movl 0x430(%rsp), %edx
movq 0x498(%rsp), %rcx
movq 0x528(%rsp), %r8
movq 0x530(%rsp), %r9
movq 0x588(%rsp), %rax
movq %rax, 0x330(%rsp)
movb 0x497(%rsp), %al
movb 0x496(%rsp), %r10b
movb %r10b, 0x327(%rsp)
movl 0x5b0(%rsp), %r10d
movl %r10d, 0x340(%rsp)
movb 0x495(%rsp), %r10b
movb %r10b, 0x328(%rsp)
movq 0x5c0(%rsp), %r10
movq %r10, 0x348(%rsp)
movq 0x5c8(%rsp), %r10
movq %r10, 0x360(%rsp)
movss 0x490(%rsp), %xmm0
movb 0x48f(%rsp), %r10b
movb %r10b, 0x329(%rsp)
movl 0x5d8(%rsp), %r10d
movl %r10d, 0x36c(%rsp)
movl 0x5e0(%rsp), %r10d
movl %r10d, 0x370(%rsp)
movb 0x48e(%rsp), %r10b
movb %r10b, 0x32a(%rsp)
movb 0x48d(%rsp), %r10b
movb %r10b, 0x32b(%rsp)
movb 0x48c(%rsp), %r10b
movb %r10b, 0x32c(%rsp)
movb 0x48b(%rsp), %r10b
movb %r10b, 0x32d(%rsp)
movl 0x610(%rsp), %r10d
movl %r10d, 0x388(%rsp)
movb 0x48a(%rsp), %r10b
movb %r10b, 0x32e(%rsp)
movq 0x630(%rsp), %r10
movq %r10, 0x390(%rsp)
movq 0x638(%rsp), %r10
movq %r10, 0x3a8(%rsp)
movq 0x640(%rsp), %r10
movq %r10, 0x3b0(%rsp)
movq 0x648(%rsp), %rbp
movq 0x650(%rsp), %r13
movq 0x658(%rsp), %r14
movw 0x40e(%rsp), %bx
movw 0x40c(%rsp), %r11w
movq 0x6f8(%rsp), %r10
movb 0x487(%rsp), %r15b
movb %r15b, 0x32f(%rsp)
movq 0x4c8(%rsp), %r15
movq %r15, 0x378(%rsp)
leaq 0x42c(%rsp), %r15
movq %r15, 0x350(%rsp)
leaq 0x428(%rsp), %r15
movq %r15, 0x358(%rsp)
leaq 0x424(%rsp), %r15
movq %r15, 0x398(%rsp)
leaq 0x420(%rsp), %r15
movq %r15, 0x3a0(%rsp)
leaq 0x41c(%rsp), %r15
movq %r15, 0x3b8(%rsp)
leaq 0x418(%rsp), %r15
movq %r15, 0x3c0(%rsp)
leaq 0x414(%rsp), %r12
leaq 0x410(%rsp), %r15
andb $0x1, %al
movb %al, 0x33e(%rsp)
movb 0x327(%rsp), %al
andb $0x1, %al
movb %al, 0x33f(%rsp)
movb 0x328(%rsp), %al
andb $0x1, %al
movb %al, 0x347(%rsp)
movb 0x329(%rsp), %al
andb $0x1, %al
movb %al, 0x36b(%rsp)
movb 0x32a(%rsp), %al
andb $0x1, %al
movb %al, 0x377(%rsp)
movb 0x32b(%rsp), %al
andb $0x1, %al
movb %al, 0x385(%rsp)
movb 0x32c(%rsp), %al
andb $0x1, %al
movb %al, 0x386(%rsp)
movb 0x32d(%rsp), %al
andb $0x1, %al
movb %al, 0x387(%rsp)
movb 0x32e(%rsp), %al
andb $0x1, %al
movb %al, 0x38f(%rsp)
movb 0x32f(%rsp), %al
andb $0x1, %al
movb %al, 0x3cf(%rsp)
movq 0x330(%rsp), %rax
movq %rax, (%rsp)
movb 0x33e(%rsp), %al
movzbl %al, %eax
movl %eax, 0x8(%rsp)
movb 0x33f(%rsp), %al
movzbl %al, %eax
movl %eax, 0x10(%rsp)
movl 0x340(%rsp), %eax
movl %eax, 0x18(%rsp)
movb 0x347(%rsp), %al
movzbl %al, %eax
movl %eax, 0x20(%rsp)
movq 0x348(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x350(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x358(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x360(%rsp), %rax
movq %rax, 0x40(%rsp)
movb 0x36b(%rsp), %al
movzbl %al, %eax
movl %eax, 0x48(%rsp)
movl 0x36c(%rsp), %eax
movl %eax, 0x50(%rsp)
movl 0x370(%rsp), %eax
movl %eax, 0x58(%rsp)
movb 0x377(%rsp), %al
movzbl %al, %eax
movl %eax, 0x60(%rsp)
movq 0x378(%rsp), %rax
movq %rax, 0x68(%rsp)
movb 0x385(%rsp), %al
movzbl %al, %eax
movl %eax, 0x70(%rsp)
movb 0x386(%rsp), %al
movzbl %al, %eax
movl %eax, 0x78(%rsp)
movb 0x387(%rsp), %al
movzbl %al, %eax
movl %eax, 0x80(%rsp)
movl 0x388(%rsp), %eax
movl %eax, 0x88(%rsp)
movb 0x38f(%rsp), %al
movzbl %al, %eax
movl %eax, 0x90(%rsp)
movq 0x390(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x398(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x3a0(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x3a8(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x3b0(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x3b8(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x3c0(%rsp), %rax
movq %rax, 0xc8(%rsp)
movb 0x3cf(%rsp), %al
movq %rbp, 0xd0(%rsp)
movq %r13, 0xd8(%rsp)
movq %r12, 0xe0(%rsp)
movq %r15, 0xe8(%rsp)
movq %r14, 0xf0(%rsp)
movzwl %bx, %ebx
movl %ebx, 0xf8(%rsp)
movzwl %r11w, %r11d
movl %r11d, 0x100(%rsp)
movq %r10, 0x108(%rsp)
movzbl %al, %eax
movl %eax, 0x110(%rsp)
callq 0xe3d0
movl $0x0, 0x430(%rsp)
movw $0x0, 0x40c(%rsp)
movw $0x0, 0x40e(%rsp)
movq 0x4a0(%rsp), %rdi
movq 0x478(%rsp), %rsi
movl $0x80, %edx
callq 0x2050
movq 0x478(%rsp), %rdi
movq 0x458(%rsp), %rsi
movq 0x468(%rsp), %rdx
callq 0x14890
movl %eax, 0x3f0(%rsp)
movq 0x448(%rsp), %rdi
callq 0x14610
movss %xmm0, 0x3ec(%rsp)
movq 0x4a8(%rsp), %rax
movq %rax, 0x2e0(%rsp)
movw 0x446(%rsp), %ax
movw %ax, 0x2ee(%rsp)
movq 0x3f8(%rsp), %rax
movq %rax, 0x2f0(%rsp)
movl 0x440(%rsp), %eax
movl %eax, 0x2f8(%rsp)
movl 0x3f0(%rsp), %eax
movl %eax, 0x2fc(%rsp)
movl 0x43c(%rsp), %eax
movl %eax, 0x304(%rsp)
movq 0x518(%rsp), %rax
movq %rax, 0x308(%rsp)
movq 0x520(%rsp), %rax
movq %rax, 0x310(%rsp)
movq 0x578(%rsp), %r13
movq 0x580(%rsp), %r12
movq 0x540(%rsp), %r15
movb 0x497(%rsp), %r14b
movss 0x3ec(%rsp), %xmm0
movss %xmm0, 0x300(%rsp)
movb 0x48a(%rsp), %bpl
movq 0x450(%rsp), %rbx
movq 0x450(%rsp), %rdi
callq 0x20f0
movq 0x2e0(%rsp), %rdi
movw 0x2ee(%rsp), %dx
movq 0x2f0(%rsp), %rcx
movl 0x2f8(%rsp), %r8d
movl 0x2fc(%rsp), %r9d
movss 0x300(%rsp), %xmm0
movl %eax, %r11d
leaq 0x430(%rsp), %rsi
leaq 0x40e(%rsp), %r10
leaq 0x40c(%rsp), %rax
movq %rax, 0x318(%rsp)
movl 0x304(%rsp), %eax
andb $0x1, %r14b
andb $0x1, %bpl
movzwl %dx, %edx
movl %eax, (%rsp)
movq 0x308(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x310(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x318(%rsp), %rax
movq %r13, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movzbl %r14b, %r14d
movl %r14d, 0x30(%rsp)
movzbl %bpl, %ebp
movl %ebp, 0x38(%rsp)
movq %rbx, 0x40(%rsp)
movl %r11d, 0x48(%rsp)
movl $0x21, 0x50(%rsp)
movq %r10, 0x58(%rsp)
movq %rax, 0x60(%rsp)
callq 0x13840
testb $0x1, %al
jne 0x15792
testb $0x1, 0x487(%rsp)
je 0x15792
movq 0xd884(%rip), %rax      # 0x22ff8
movq (%rax), %rdi
movq 0x478(%rsp), %rdx
leaq 0xa5a5(%rip), %rsi      # 0x1fd2b
movl $0x80, %ecx
movb $0x0, %al
callq 0x21c0
jmp 0x14d36
movq 0x4a0(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x15c33
movq 0x4a0(%rsp), %rdi
movq 0x4a8(%rsp), %rax
movq (%rax), %rsi
movl 0x430(%rsp), %edx
movq 0x498(%rsp), %rcx
movq 0x528(%rsp), %r8
movq 0x530(%rsp), %r9
movq 0x588(%rsp), %rax
movq %rax, 0x240(%rsp)
movb 0x497(%rsp), %al
movb 0x496(%rsp), %r10b
movb %r10b, 0x237(%rsp)
movl 0x5b0(%rsp), %r10d
movl %r10d, 0x250(%rsp)
movb 0x495(%rsp), %r10b
movb %r10b, 0x238(%rsp)
movq 0x5c0(%rsp), %r10
movq %r10, 0x258(%rsp)
movq 0x5c8(%rsp), %r10
movq %r10, 0x270(%rsp)
movss 0x490(%rsp), %xmm0
movb 0x48f(%rsp), %r10b
movb %r10b, 0x239(%rsp)
movl 0x5d8(%rsp), %r10d
movl %r10d, 0x27c(%rsp)
movl 0x5e0(%rsp), %r10d
movl %r10d, 0x280(%rsp)
movb 0x48e(%rsp), %r10b
movb %r10b, 0x23a(%rsp)
movb 0x48d(%rsp), %r10b
movb %r10b, 0x23b(%rsp)
movb 0x48c(%rsp), %r10b
movb %r10b, 0x23c(%rsp)
movb 0x48b(%rsp), %r10b
movb %r10b, 0x23d(%rsp)
movl 0x610(%rsp), %r10d
movl %r10d, 0x298(%rsp)
movb 0x48a(%rsp), %r10b
movb %r10b, 0x23e(%rsp)
movq 0x630(%rsp), %r10
movq %r10, 0x2a0(%rsp)
movq 0x638(%rsp), %r10
movq %r10, 0x2b8(%rsp)
movq 0x640(%rsp), %r10
movq %r10, 0x2c0(%rsp)
movq 0x648(%rsp), %rbp
movq 0x650(%rsp), %r13
movq 0x658(%rsp), %r14
movw 0x40e(%rsp), %bx
movw 0x40c(%rsp), %r11w
movq 0x6f8(%rsp), %r10
movb 0x487(%rsp), %r15b
movb %r15b, 0x23f(%rsp)
movq 0x4c8(%rsp), %r15
movq %r15, 0x288(%rsp)
leaq 0x42c(%rsp), %r15
movq %r15, 0x260(%rsp)
leaq 0x428(%rsp), %r15
movq %r15, 0x268(%rsp)
leaq 0x424(%rsp), %r15
movq %r15, 0x2a8(%rsp)
leaq 0x420(%rsp), %r15
movq %r15, 0x2b0(%rsp)
leaq 0x41c(%rsp), %r15
movq %r15, 0x2c8(%rsp)
leaq 0x418(%rsp), %r15
movq %r15, 0x2d0(%rsp)
leaq 0x414(%rsp), %r12
leaq 0x410(%rsp), %r15
andb $0x1, %al
movb %al, 0x24e(%rsp)
movb 0x237(%rsp), %al
andb $0x1, %al
movb %al, 0x24f(%rsp)
movb 0x238(%rsp), %al
andb $0x1, %al
movb %al, 0x257(%rsp)
movb 0x239(%rsp), %al
andb $0x1, %al
movb %al, 0x27b(%rsp)
movb 0x23a(%rsp), %al
andb $0x1, %al
movb %al, 0x287(%rsp)
movb 0x23b(%rsp), %al
andb $0x1, %al
movb %al, 0x295(%rsp)
movb 0x23c(%rsp), %al
andb $0x1, %al
movb %al, 0x296(%rsp)
movb 0x23d(%rsp), %al
andb $0x1, %al
movb %al, 0x297(%rsp)
movb 0x23e(%rsp), %al
andb $0x1, %al
movb %al, 0x29f(%rsp)
movb 0x23f(%rsp), %al
andb $0x1, %al
movb %al, 0x2df(%rsp)
movq 0x240(%rsp), %rax
movq %rax, (%rsp)
movb 0x24e(%rsp), %al
movzbl %al, %eax
movl %eax, 0x8(%rsp)
movb 0x24f(%rsp), %al
movzbl %al, %eax
movl %eax, 0x10(%rsp)
movl 0x250(%rsp), %eax
movl %eax, 0x18(%rsp)
movb 0x257(%rsp), %al
movzbl %al, %eax
movl %eax, 0x20(%rsp)
movq 0x258(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x260(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x268(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x270(%rsp), %rax
movq %rax, 0x40(%rsp)
movb 0x27b(%rsp), %al
movzbl %al, %eax
movl %eax, 0x48(%rsp)
movl 0x27c(%rsp), %eax
movl %eax, 0x50(%rsp)
movl 0x280(%rsp), %eax
movl %eax, 0x58(%rsp)
movb 0x287(%rsp), %al
movzbl %al, %eax
movl %eax, 0x60(%rsp)
movq 0x288(%rsp), %rax
movq %rax, 0x68(%rsp)
movb 0x295(%rsp), %al
movzbl %al, %eax
movl %eax, 0x70(%rsp)
movb 0x296(%rsp), %al
movzbl %al, %eax
movl %eax, 0x78(%rsp)
movb 0x297(%rsp), %al
movzbl %al, %eax
movl %eax, 0x80(%rsp)
movl 0x298(%rsp), %eax
movl %eax, 0x88(%rsp)
movb 0x29f(%rsp), %al
movzbl %al, %eax
movl %eax, 0x90(%rsp)
movq 0x2a0(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x2a8(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x2b0(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x2b8(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x2c0(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x2c8(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x2d0(%rsp), %rax
movq %rax, 0xc8(%rsp)
movb 0x2df(%rsp), %al
movq %rbp, 0xd0(%rsp)
movq %r13, 0xd8(%rsp)
movq %r12, 0xe0(%rsp)
movq %r15, 0xe8(%rsp)
movq %r14, 0xf0(%rsp)
movzwl %bx, %ebx
movl %ebx, 0xf8(%rsp)
movzwl %r11w, %r11d
movl %r11d, 0x100(%rsp)
movq %r10, 0x108(%rsp)
movzbl %al, %eax
movl %eax, 0x110(%rsp)
callq 0xe3d0
testb $0x1, 0x48a(%rsp)
je 0x1617d
movq 0x630(%rsp), %rax
movq (%rax), %rdi
movl 0x424(%rsp), %esi
movl 0x420(%rsp), %edx
movq 0x640(%rsp), %rax
movq (%rax), %rcx
movl 0x41c(%rsp), %r8d
movl 0x418(%rsp), %r9d
movq 0x650(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x158(%rsp)
movl 0x414(%rsp), %eax
movl %eax, 0x160(%rsp)
movl 0x410(%rsp), %eax
movl %eax, 0x164(%rsp)
movq 0x660(%rsp), %rax
movq %rax, 0x168(%rsp)
movq 0x668(%rsp), %rax
movq %rax, 0x170(%rsp)
movq 0x670(%rsp), %rax
movq %rax, 0x178(%rsp)
movq 0x678(%rsp), %rax
movq %rax, 0x180(%rsp)
movq 0x680(%rsp), %rax
movq %rax, 0x188(%rsp)
movq 0x688(%rsp), %rax
movq %rax, 0x190(%rsp)
movq 0x690(%rsp), %rax
movq %rax, 0x198(%rsp)
movq 0x698(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq 0x6a0(%rsp), %rax
movq %rax, 0x1a8(%rsp)
movq 0x6a8(%rsp), %rax
movq %rax, 0x1b0(%rsp)
movq 0x6b0(%rsp), %rax
movq %rax, 0x1b8(%rsp)
movq 0x6b8(%rsp), %rax
movq %rax, 0x1c0(%rsp)
movq 0x6c0(%rsp), %rax
movq %rax, 0x1c8(%rsp)
movq 0x6c8(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x6d0(%rsp), %rax
movq %rax, 0x1d8(%rsp)
movq 0x6d8(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movq 0x6e0(%rsp), %rax
movq %rax, 0x1e8(%rsp)
movq 0x6e8(%rsp), %rax
movq %rax, 0x1f0(%rsp)
movq 0x6f0(%rsp), %rax
movq %rax, 0x1f8(%rsp)
movb 0x497(%rsp), %al
movq 0x528(%rsp), %r10
movq %r10, 0x208(%rsp)
movq 0x530(%rsp), %r10
movq %r10, 0x210(%rsp)
movq 0x498(%rsp), %r10
movq %r10, 0x218(%rsp)
movb 0x496(%rsp), %r10b
movb %r10b, 0x153(%rsp)
movl 0x5b0(%rsp), %r10d
movl %r10d, 0x224(%rsp)
movb 0x495(%rsp), %r10b
movb %r10b, 0x154(%rsp)
movss 0x490(%rsp), %xmm0
movb 0x48f(%rsp), %r10b
movb %r10b, 0x155(%rsp)
movl 0x5d8(%rsp), %r10d
movl %r10d, 0x22c(%rsp)
movl 0x5e0(%rsp), %r10d
movl %r10d, 0x230(%rsp)
movb 0x48e(%rsp), %r10b
movb %r10b, 0x156(%rsp)
movb 0x48d(%rsp), %r12b
movb 0x48c(%rsp), %r15b
movb 0x489(%rsp), %bpl
movb 0x48b(%rsp), %bl
movl 0x610(%rsp), %r11d
movq 0x6f8(%rsp), %r10
movb 0x487(%rsp), %r14b
movb %r14b, 0x157(%rsp)
movq 0x4c8(%rsp), %r13
movq 0x4c0(%rsp), %r14
andb $0x1, %al
movb %al, 0x207(%rsp)
movb 0x153(%rsp), %al
andb $0x1, %al
movb %al, 0x223(%rsp)
movb 0x154(%rsp), %al
andb $0x1, %al
movb %al, 0x22a(%rsp)
movb 0x155(%rsp), %al
andb $0x1, %al
movb %al, 0x22b(%rsp)
movb 0x156(%rsp), %al
andb $0x1, %al
movb %al, 0x235(%rsp)
movb 0x157(%rsp), %al
andb $0x1, %r12b
andb $0x1, %r15b
andb $0x1, %bpl
andb $0x1, %bl
andb $0x1, %al
movb %al, 0x236(%rsp)
movq 0x158(%rsp), %rax
movq %rax, (%rsp)
movl 0x160(%rsp), %eax
movl %eax, 0x8(%rsp)
movl 0x164(%rsp), %eax
movl %eax, 0x10(%rsp)
movq 0x168(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x180(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x190(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x198(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x1a0(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x1a8(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x1b0(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x1b8(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x1c0(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x1c8(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x1d0(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x1d8(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x1e0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x1e8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x1f0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x1f8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movb 0x207(%rsp), %al
movzbl %al, %eax
movl %eax, 0xb0(%rsp)
movq 0x208(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x210(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x218(%rsp), %rax
movq %rax, 0xc8(%rsp)
movb 0x223(%rsp), %al
movzbl %al, %eax
movl %eax, 0xd0(%rsp)
movl 0x224(%rsp), %eax
movl %eax, 0xd8(%rsp)
movb 0x22a(%rsp), %al
movzbl %al, %eax
movl %eax, 0xe0(%rsp)
movb 0x22b(%rsp), %al
movzbl %al, %eax
movl %eax, 0xe8(%rsp)
movl 0x22c(%rsp), %eax
movl %eax, 0xf0(%rsp)
movl 0x230(%rsp), %eax
movl %eax, 0xf8(%rsp)
movb 0x235(%rsp), %al
movzbl %al, %eax
movl %eax, 0x100(%rsp)
movb 0x236(%rsp), %al
movq %r13, 0x108(%rsp)
movzbl %r12b, %r12d
movl %r12d, 0x110(%rsp)
movzbl %r15b, %r15d
movl %r15d, 0x118(%rsp)
movq %r14, 0x120(%rsp)
movzbl %bpl, %ebp
movl %ebp, 0x128(%rsp)
movzbl %bl, %ebx
movl %ebx, 0x130(%rsp)
movl %r11d, 0x138(%rsp)
movq %r10, 0x140(%rsp)
movzbl %al, %eax
movl %eax, 0x148(%rsp)
callq 0x121f0
jmp 0x16228
testb $0x1, 0x495(%rsp)
je 0x16226
movq 0x5c0(%rsp), %rax
movq (%rax), %rdi
movl 0x42c(%rsp), %esi
movl 0x428(%rsp), %edx
movq 0x498(%rsp), %rax
movsd (%rax), %xmm0
movq 0x528(%rsp), %rax
movq (%rax), %rcx
movb 0x48d(%rsp), %r9b
movb 0x48c(%rsp), %bpl
movb 0x48b(%rsp), %bl
movl 0x610(%rsp), %r11d
movq 0x6f8(%rsp), %r10
movb 0x487(%rsp), %al
movq 0x4c8(%rsp), %r8
andb $0x1, %r9b
andb $0x1, %bpl
andb $0x1, %bl
andb $0x1, %al
movzbl %r9b, %r9d
movzbl %bpl, %ebp
movl %ebp, (%rsp)
movzbl %bl, %ebx
movl %ebx, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movzbl %al, %eax
movl %eax, 0x20(%rsp)
callq 0xbcc0
jmp 0x16228
movq 0x400(%rsp), %rax
addq $0x4d8, %rsp            # imm = 0x4D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)