// File: /workspace/github_c_makefile_star2_O0/jsh58[P]Genrich/Genrich.c
// Function: parseBAM
uint64_t parseBAM(gzFile in, char* line, Aln** aln,
    char* readName, int chromLen, Chrom* chrom, int n_ref,
    int idx[], 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, uint64_t* secPair,
    uint64_t* secSingle, uint64_t* orphan, 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 verbose) {

  // BAM fields to save
  int32_t refID, pos, l_seq, next_refID, next_pos, tlen;
  uint16_t n_cigar_op, flag;
  uint8_t mapq;
  uint32_t* cigar;
  uint8_t* seq;
  char* read_name, *qual, *extra;

  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
  uint64_t count = 0;
  int32_t block_size;
  while ((block_size = readInt32(in, false)) != EOF) {

    if (block_size < 6 * sizeof(int32_t) + 2 * sizeof(uint32_t))
      exit(error("", ERRBAM));  // min. guaranteed block size

    // copy alignment record
    char* block = line;
    for (int i = 0; i < block_size; i++) {
      int m = gzgetc(in);
      if (m == -1)
        exit(error("", ERRBAM));
      block[i] = m;
    }

    // save BAM fields
    loadBAMfields(&block, &refID, &pos, &mapq, &n_cigar_op,
      &flag, &l_seq, &next_refID, &next_pos, &tlen,
      &read_name, &cigar, &seq, &qual, &extra);
    if (block > line + block_size)
      exit(error("", ERRBAM));  // read off the end of the block

    count++;
    if (flag & 0x4) {
      // skip unmapped
      (*unmapped)++;
      continue;
    }
    if (! strcmp(read_name, "*")
        || refID < 0 || refID >= n_ref
        || idx[refID] < 0 || idx[refID] >= chromLen
        || pos < 0)
      // insufficient alignment info
      exit(error(read_name, ERRSAM));
    if (flag & 0xE00) {
      // skip supplementary/PCR dups/low quality
      (*supp)++;
      continue;
    }
    if (mapq < minMapQ) {
      // skip low MAPQ alignments
      (*lowMapQ)++;
      continue;
    }

    // process previous set of alns
    if (readName[0] == '\0' || strcmp(read_name, 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, read_name, MAX_ALNS);
    }

    // save alignment information
    int length = calcDistBAM(l_seq, n_cigar_op, cigar); // distance to 3' end
    float score = getBAMscore(extra, block_size
      - (int) (extra - line));
    if (! parseAlign(aln, &alnLen, flag, chrom + idx[refID],
        pos, length, next_pos, paired, single, secPair,
        secSingle, skipped, singleOpt, score, dupsOpt,
        qual, l_seq, 0, &qualR1, &qualR2) && verbose)
      fprintf(stderr, "Warning! Read %s has more than %d alignments\n",
        read_name, MAX_ALNS);
    // NOTE: the following BAM fields are ignored:
    //   next_refID, tlen, seq
  }

  // 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 $0x4a8, %rsp            # imm = 0x4A8
movq %r9, %r14
movl %r8d, %r15d
movq %rcx, %r12
movq %rdx, %r13
movb 0x6b8(%rsp), %al
movb %al, 0x3bd(%rsp)
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
movq 0x628(%rsp), %rax
movq 0x620(%rsp), %rax
movq 0x618(%rsp), %rax
movq 0x610(%rsp), %rax
movq 0x608(%rsp), %rax
movq 0x600(%rsp), %rax
movq 0x5f8(%rsp), %rax
movq 0x5f0(%rsp), %rax
movq 0x5e8(%rsp), %rax
movb 0x5e0(%rsp), %cl
movq 0x5d8(%rsp), %rax
movq %rax, 0x3b0(%rsp)
movb 0x5d0(%rsp), %dl
movl 0x5c8(%rsp), %eax
movb 0x5c0(%rsp), %al
movb %al, 0x3bf(%rsp)
movb 0x5b8(%rsp), %al
movb %al, 0x3be(%rsp)
movb 0x5b0(%rsp), %r8b
movq 0x5a8(%rsp), %rax
movq %rax, 0x3a8(%rsp)
movb 0x5a0(%rsp), %r9b
movl 0x598(%rsp), %eax
movl 0x590(%rsp), %eax
movb 0x588(%rsp), %r10b
movq 0x580(%rsp), %rax
movq 0x578(%rsp), %rax
movb 0x570(%rsp), %r11b
movl 0x568(%rsp), %eax
movb 0x560(%rsp), %bl
movb 0x558(%rsp), %bpl
movq 0x550(%rsp), %rax
movq 0x548(%rsp), %rax
movq 0x540(%rsp), %rax
movl 0x538(%rsp), %eax
movq 0x530(%rsp), %rax
movq 0x528(%rsp), %rax
movq 0x520(%rsp), %rax
movq 0x518(%rsp), %rax
movq 0x510(%rsp), %rax
movq 0x508(%rsp), %rax
movq 0x500(%rsp), %rax
movq 0x4f8(%rsp), %rax
movq 0x4f0(%rsp), %rax
movq 0x4e8(%rsp), %rax
movl 0x4e0(%rsp), %eax
movq 0x3a8(%rsp), %rax
movq %rax, 0x4a0(%rsp)
movq 0x3b0(%rsp), %rax
movq %rax, 0x498(%rsp)
movb 0x3bd(%rsp), %al
movq %rdi, 0x490(%rsp)
movb 0x3be(%rsp), %dil
movq %rsi, 0x488(%rsp)
movb 0x3bf(%rsp), %sil
movq %r13, 0x480(%rsp)
movq %r12, 0x478(%rsp)
movl %r15d, 0x474(%rsp)
movq %r14, 0x468(%rsp)
andb $0x1, %bpl
movb %bpl, 0x467(%rsp)
andb $0x1, %bl
movb %bl, 0x466(%rsp)
andb $0x1, %r11b
movb %r11b, 0x465(%rsp)
movss %xmm0, 0x460(%rsp)
andb $0x1, %r10b
movb %r10b, 0x45f(%rsp)
andb $0x1, %r9b
movb %r9b, 0x45e(%rsp)
andb $0x1, %r8b
movb %r8b, 0x45d(%rsp)
andb $0x1, %dil
movb %dil, 0x45c(%rsp)
andb $0x1, %sil
movb %sil, 0x45b(%rsp)
andb $0x1, %dl
movb %dl, 0x45a(%rsp)
andb $0x1, %cl
movb %cl, 0x459(%rsp)
andb $0x1, %al
movb %al, 0x458(%rsp)
movl $0x0, 0x40c(%rsp)
movl $0x0, 0x408(%rsp)
movl $0x0, 0x404(%rsp)
movl $0x0, 0x400(%rsp)
movl $0x0, 0x3fc(%rsp)
movl $0x0, 0x3f8(%rsp)
movl $0x0, 0x3f4(%rsp)
movl $0x0, 0x3f0(%rsp)
movl $0x0, 0x3ec(%rsp)
movw $0x0, 0x3ea(%rsp)
movw $0x0, 0x3e8(%rsp)
movq $0x0, 0x3e0(%rsp)
movq 0x490(%rsp), %rdi
xorl %esi, %esi
callq 0x16250
movl %eax, 0x3dc(%rsp)
cmpl $-0x1, %eax
je 0x178e5
movslq 0x3dc(%rsp), %rax
cmpq $0x20, %rax
jae 0x16f19
leaq 0x8e6a(%rip), %rdi      # 0x1fd72
movl $0x13, %esi
callq 0x2840
movl %eax, %edi
callq 0x22b0
movq 0x488(%rsp), %rax
movq %rax, 0x3d0(%rsp)
movl $0x0, 0x3cc(%rsp)
movl 0x3cc(%rsp), %eax
cmpl 0x3dc(%rsp), %eax
jge 0x17011
movq 0x490(%rsp), %rax
cmpl $0x0, (%rax)
je 0x16f9b
movq 0x490(%rsp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq 0x490(%rsp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
movq 0x490(%rsp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0x3a4(%rsp)
jmp 0x16faf
movq 0x490(%rsp), %rdi
callq 0x20a0
movl %eax, 0x3a4(%rsp)
movl 0x3a4(%rsp), %eax
movl %eax, 0x3c8(%rsp)
cmpl $-0x1, 0x3c8(%rsp)
jne 0x16fdf
leaq 0x8da4(%rip), %rdi      # 0x1fd72
movl $0x13, %esi
callq 0x2840
movl %eax, %edi
callq 0x22b0
movl 0x3c8(%rsp), %eax
movb %al, %dl
movq 0x3d0(%rsp), %rax
movslq 0x3cc(%rsp), %rcx
movb %dl, (%rax,%rcx)
movl 0x3cc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3cc(%rsp)
jmp 0x16f34
leaq 0x3d0(%rsp), %rdi
leaq 0x454(%rsp), %rsi
leaq 0x450(%rsp), %rdx
leaq 0x43b(%rsp), %rcx
leaq 0x43e(%rsp), %r8
leaq 0x43c(%rsp), %r9
leaq 0x44c(%rsp), %rbp
leaq 0x448(%rsp), %r13
leaq 0x444(%rsp), %r12
leaq 0x440(%rsp), %r15
leaq 0x420(%rsp), %r14
leaq 0x430(%rsp), %rbx
leaq 0x428(%rsp), %r11
leaq 0x418(%rsp), %r10
leaq 0x410(%rsp), %rax
movq %rbp, (%rsp)
movq %r13, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movq %r14, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movq %r11, 0x30(%rsp)
movq %r10, 0x38(%rsp)
movq %rax, 0x40(%rsp)
callq 0x163c0
movq 0x3d0(%rsp), %rax
movq 0x488(%rsp), %rcx
movslq 0x3dc(%rsp), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jbe 0x170f2
leaq 0x8c91(%rip), %rdi      # 0x1fd72
movl $0x13, %esi
callq 0x2840
movl %eax, %edi
callq 0x22b0
movq 0x3e0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x3e0(%rsp)
movzwl 0x43c(%rsp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x1712d
movq 0x4f8(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x16ed4
movq 0x420(%rsp), %rdi
leaq 0x84fb(%rip), %rsi      # 0x1f637
callq 0x21a0
cmpl $0x0, %eax
je 0x1719c
cmpl $0x0, 0x454(%rsp)
jl 0x1719c
movl 0x454(%rsp), %eax
cmpl 0x4e0(%rsp), %eax
jge 0x1719c
movq 0x4e8(%rsp), %rax
movslq 0x454(%rsp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jl 0x1719c
movq 0x4e8(%rsp), %rax
movslq 0x454(%rsp), %rcx
movl (%rax,%rcx,4), %eax
cmpl 0x474(%rsp), %eax
jge 0x1719c
cmpl $0x0, 0x450(%rsp)
jge 0x171b5
movq 0x420(%rsp), %rdi
movl $0x10, %esi
callq 0x2840
movl %eax, %edi
callq 0x22b0
movzwl 0x43c(%rsp), %eax
andl $0xe00, %eax            # imm = 0xE00
cmpl $0x0, %eax
je 0x171de
movq 0x520(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x16ed4
movzbl 0x43b(%rsp), %eax
cmpl 0x538(%rsp), %eax
jge 0x17206
movq 0x530(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x16ed4
movq 0x478(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x17234
movq 0x420(%rsp), %rdi
movq 0x478(%rsp), %rsi
callq 0x21a0
cmpl $0x0, %eax
je 0x17709
movq 0x478(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x176d0
movq 0x478(%rsp), %rdi
movq 0x480(%rsp), %rax
movq (%rax), %rsi
movl 0x40c(%rsp), %edx
movq 0x4f0(%rsp), %rcx
movq 0x510(%rsp), %r8
movq 0x518(%rsp), %r9
movq 0x550(%rsp), %rax
movq %rax, 0x308(%rsp)
movb 0x467(%rsp), %al
movb 0x466(%rsp), %r10b
movb %r10b, 0x2ff(%rsp)
movl 0x568(%rsp), %r10d
movl %r10d, 0x318(%rsp)
movb 0x465(%rsp), %r10b
movb %r10b, 0x300(%rsp)
movq 0x578(%rsp), %r10
movq %r10, 0x320(%rsp)
movq 0x580(%rsp), %r10
movq %r10, 0x338(%rsp)
movss 0x460(%rsp), %xmm0
movb 0x45f(%rsp), %r10b
movb %r10b, 0x301(%rsp)
movl 0x590(%rsp), %r10d
movl %r10d, 0x344(%rsp)
movl 0x598(%rsp), %r10d
movl %r10d, 0x348(%rsp)
movb 0x45e(%rsp), %r10b
movb %r10b, 0x302(%rsp)
movb 0x45d(%rsp), %r10b
movb %r10b, 0x303(%rsp)
movb 0x45c(%rsp), %r10b
movb %r10b, 0x304(%rsp)
movb 0x45b(%rsp), %r10b
movb %r10b, 0x305(%rsp)
movl 0x5c8(%rsp), %r10d
movl %r10d, 0x360(%rsp)
movb 0x45a(%rsp), %r10b
movb %r10b, 0x306(%rsp)
movq 0x5e8(%rsp), %r10
movq %r10, 0x368(%rsp)
movq 0x5f0(%rsp), %r10
movq %r10, 0x380(%rsp)
movq 0x5f8(%rsp), %r10
movq %r10, 0x388(%rsp)
movq 0x600(%rsp), %rbp
movq 0x608(%rsp), %r13
movq 0x610(%rsp), %r14
movw 0x3ea(%rsp), %bx
movw 0x3e8(%rsp), %r11w
movq 0x6b0(%rsp), %r10
movb 0x458(%rsp), %r15b
movb %r15b, 0x307(%rsp)
movq 0x4a0(%rsp), %r15
movq %r15, 0x350(%rsp)
leaq 0x408(%rsp), %r15
movq %r15, 0x328(%rsp)
leaq 0x404(%rsp), %r15
movq %r15, 0x330(%rsp)
leaq 0x400(%rsp), %r15
movq %r15, 0x370(%rsp)
leaq 0x3fc(%rsp), %r15
movq %r15, 0x378(%rsp)
leaq 0x3f8(%rsp), %r15
movq %r15, 0x390(%rsp)
leaq 0x3f4(%rsp), %r15
movq %r15, 0x398(%rsp)
leaq 0x3f0(%rsp), %r12
leaq 0x3ec(%rsp), %r15
andb $0x1, %al
movb %al, 0x316(%rsp)
movb 0x2ff(%rsp), %al
andb $0x1, %al
movb %al, 0x317(%rsp)
movb 0x300(%rsp), %al
andb $0x1, %al
movb %al, 0x31f(%rsp)
movb 0x301(%rsp), %al
andb $0x1, %al
movb %al, 0x343(%rsp)
movb 0x302(%rsp), %al
andb $0x1, %al
movb %al, 0x34f(%rsp)
movb 0x303(%rsp), %al
andb $0x1, %al
movb %al, 0x35d(%rsp)
movb 0x304(%rsp), %al
andb $0x1, %al
movb %al, 0x35e(%rsp)
movb 0x305(%rsp), %al
andb $0x1, %al
movb %al, 0x35f(%rsp)
movb 0x306(%rsp), %al
andb $0x1, %al
movb %al, 0x367(%rsp)
movb 0x307(%rsp), %al
andb $0x1, %al
movb %al, 0x3a3(%rsp)
movq 0x308(%rsp), %rax
movq %rax, (%rsp)
movb 0x316(%rsp), %al
movzbl %al, %eax
movl %eax, 0x8(%rsp)
movb 0x317(%rsp), %al
movzbl %al, %eax
movl %eax, 0x10(%rsp)
movl 0x318(%rsp), %eax
movl %eax, 0x18(%rsp)
movb 0x31f(%rsp), %al
movzbl %al, %eax
movl %eax, 0x20(%rsp)
movq 0x320(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x328(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x330(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x338(%rsp), %rax
movq %rax, 0x40(%rsp)
movb 0x343(%rsp), %al
movzbl %al, %eax
movl %eax, 0x48(%rsp)
movl 0x344(%rsp), %eax
movl %eax, 0x50(%rsp)
movl 0x348(%rsp), %eax
movl %eax, 0x58(%rsp)
movb 0x34f(%rsp), %al
movzbl %al, %eax
movl %eax, 0x60(%rsp)
movq 0x350(%rsp), %rax
movq %rax, 0x68(%rsp)
movb 0x35d(%rsp), %al
movzbl %al, %eax
movl %eax, 0x70(%rsp)
movb 0x35e(%rsp), %al
movzbl %al, %eax
movl %eax, 0x78(%rsp)
movb 0x35f(%rsp), %al
movzbl %al, %eax
movl %eax, 0x80(%rsp)
movl 0x360(%rsp), %eax
movl %eax, 0x88(%rsp)
movb 0x367(%rsp), %al
movzbl %al, %eax
movl %eax, 0x90(%rsp)
movq 0x368(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x370(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x378(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x380(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x388(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x390(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x398(%rsp), %rax
movq %rax, 0xc8(%rsp)
movb 0x3a3(%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, 0x40c(%rsp)
movw $0x0, 0x3e8(%rsp)
movw $0x0, 0x3ea(%rsp)
movq 0x478(%rsp), %rdi
movq 0x420(%rsp), %rsi
movl $0x80, %edx
callq 0x2050
movl 0x44c(%rsp), %edi
movw 0x43e(%rsp), %ax
movq 0x430(%rsp), %rdx
movzwl %ax, %esi
callq 0x165c0
movl %eax, 0x3c4(%rsp)
movq 0x410(%rsp), %rdi
movl 0x3dc(%rsp), %esi
movq 0x410(%rsp), %rax
movq 0x488(%rsp), %rcx
subq %rcx, %rax
subl %eax, %esi
callq 0x167c0
movss %xmm0, 0x3c0(%rsp)
movq 0x480(%rsp), %rdi
movw 0x43c(%rsp), %dx
movq 0x468(%rsp), %rcx
movq 0x4e8(%rsp), %rax
movslq 0x454(%rsp), %rsi
movslq (%rax,%rsi,4), %rax
imulq $0x68, %rax, %rax
addq %rax, %rcx
movl 0x450(%rsp), %r8d
movl 0x3c4(%rsp), %r9d
movl 0x444(%rsp), %eax
movl %eax, 0x2dc(%rsp)
movq 0x500(%rsp), %rax
movq %rax, 0x2e0(%rsp)
movq 0x508(%rsp), %rax
movq %rax, 0x2e8(%rsp)
movq 0x540(%rsp), %r13
movq 0x548(%rsp), %r12
movq 0x528(%rsp), %r15
movb 0x467(%rsp), %r14b
movss 0x3c0(%rsp), %xmm0
movb 0x45a(%rsp), %bpl
movq 0x418(%rsp), %rbx
movl 0x44c(%rsp), %r11d
leaq 0x40c(%rsp), %rsi
xorl %eax, %eax
leaq 0x3ea(%rsp), %r10
leaq 0x3e8(%rsp), %rax
movq %rax, 0x2f0(%rsp)
movl 0x2dc(%rsp), %eax
andb $0x1, %r14b
andb $0x1, %bpl
movzwl %dx, %edx
movl %eax, (%rsp)
movq 0x2e0(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x2e8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x2f0(%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 $0x0, 0x50(%rsp)
movq %r10, 0x58(%rsp)
movq %rax, 0x60(%rsp)
callq 0x13840
testb $0x1, %al
jne 0x178e0
testb $0x1, 0x458(%rsp)
je 0x178e0
movq 0xb736(%rip), %rax      # 0x22ff8
movq (%rax), %rdi
movq 0x420(%rsp), %rdx
leaq 0x8457(%rip), %rsi      # 0x1fd2b
movl $0x80, %ecx
movb $0x0, %al
callq 0x21c0
jmp 0x16ed4
movq 0x478(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x17d81
movq 0x478(%rsp), %rdi
movq 0x480(%rsp), %rax
movq (%rax), %rsi
movl 0x40c(%rsp), %edx
movq 0x4f0(%rsp), %rcx
movq 0x510(%rsp), %r8
movq 0x518(%rsp), %r9
movq 0x550(%rsp), %rax
movq %rax, 0x240(%rsp)
movb 0x467(%rsp), %al
movb 0x466(%rsp), %r10b
movb %r10b, 0x237(%rsp)
movl 0x568(%rsp), %r10d
movl %r10d, 0x250(%rsp)
movb 0x465(%rsp), %r10b
movb %r10b, 0x238(%rsp)
movq 0x578(%rsp), %r10
movq %r10, 0x258(%rsp)
movq 0x580(%rsp), %r10
movq %r10, 0x270(%rsp)
movss 0x460(%rsp), %xmm0
movb 0x45f(%rsp), %r10b
movb %r10b, 0x239(%rsp)
movl 0x590(%rsp), %r10d
movl %r10d, 0x27c(%rsp)
movl 0x598(%rsp), %r10d
movl %r10d, 0x280(%rsp)
movb 0x45e(%rsp), %r10b
movb %r10b, 0x23a(%rsp)
movb 0x45d(%rsp), %r10b
movb %r10b, 0x23b(%rsp)
movb 0x45c(%rsp), %r10b
movb %r10b, 0x23c(%rsp)
movb 0x45b(%rsp), %r10b
movb %r10b, 0x23d(%rsp)
movl 0x5c8(%rsp), %r10d
movl %r10d, 0x298(%rsp)
movb 0x45a(%rsp), %r10b
movb %r10b, 0x23e(%rsp)
movq 0x5e8(%rsp), %r10
movq %r10, 0x2a0(%rsp)
movq 0x5f0(%rsp), %r10
movq %r10, 0x2b8(%rsp)
movq 0x5f8(%rsp), %r10
movq %r10, 0x2c0(%rsp)
movq 0x600(%rsp), %rbp
movq 0x608(%rsp), %r13
movq 0x610(%rsp), %r14
movw 0x3ea(%rsp), %bx
movw 0x3e8(%rsp), %r11w
movq 0x6b0(%rsp), %r10
movb 0x458(%rsp), %r15b
movb %r15b, 0x23f(%rsp)
movq 0x4a0(%rsp), %r15
movq %r15, 0x288(%rsp)
leaq 0x408(%rsp), %r15
movq %r15, 0x260(%rsp)
leaq 0x404(%rsp), %r15
movq %r15, 0x268(%rsp)
leaq 0x400(%rsp), %r15
movq %r15, 0x2a8(%rsp)
leaq 0x3fc(%rsp), %r15
movq %r15, 0x2b0(%rsp)
leaq 0x3f8(%rsp), %r15
movq %r15, 0x2c8(%rsp)
leaq 0x3f4(%rsp), %r15
movq %r15, 0x2d0(%rsp)
leaq 0x3f0(%rsp), %r12
leaq 0x3ec(%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, 0x2db(%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 0x2db(%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, 0x45a(%rsp)
je 0x182cb
movq 0x5e8(%rsp), %rax
movq (%rax), %rdi
movl 0x400(%rsp), %esi
movl 0x3fc(%rsp), %edx
movq 0x5f8(%rsp), %rax
movq (%rax), %rcx
movl 0x3f8(%rsp), %r8d
movl 0x3f4(%rsp), %r9d
movq 0x608(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x158(%rsp)
movl 0x3f0(%rsp), %eax
movl %eax, 0x160(%rsp)
movl 0x3ec(%rsp), %eax
movl %eax, 0x164(%rsp)
movq 0x618(%rsp), %rax
movq %rax, 0x168(%rsp)
movq 0x620(%rsp), %rax
movq %rax, 0x170(%rsp)
movq 0x628(%rsp), %rax
movq %rax, 0x178(%rsp)
movq 0x630(%rsp), %rax
movq %rax, 0x180(%rsp)
movq 0x638(%rsp), %rax
movq %rax, 0x188(%rsp)
movq 0x640(%rsp), %rax
movq %rax, 0x190(%rsp)
movq 0x648(%rsp), %rax
movq %rax, 0x198(%rsp)
movq 0x650(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq 0x658(%rsp), %rax
movq %rax, 0x1a8(%rsp)
movq 0x660(%rsp), %rax
movq %rax, 0x1b0(%rsp)
movq 0x668(%rsp), %rax
movq %rax, 0x1b8(%rsp)
movq 0x670(%rsp), %rax
movq %rax, 0x1c0(%rsp)
movq 0x678(%rsp), %rax
movq %rax, 0x1c8(%rsp)
movq 0x680(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x688(%rsp), %rax
movq %rax, 0x1d8(%rsp)
movq 0x690(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movq 0x698(%rsp), %rax
movq %rax, 0x1e8(%rsp)
movq 0x6a0(%rsp), %rax
movq %rax, 0x1f0(%rsp)
movq 0x6a8(%rsp), %rax
movq %rax, 0x1f8(%rsp)
movb 0x467(%rsp), %al
movq 0x510(%rsp), %r10
movq %r10, 0x208(%rsp)
movq 0x518(%rsp), %r10
movq %r10, 0x210(%rsp)
movq 0x4f0(%rsp), %r10
movq %r10, 0x218(%rsp)
movb 0x466(%rsp), %r10b
movb %r10b, 0x153(%rsp)
movl 0x568(%rsp), %r10d
movl %r10d, 0x224(%rsp)
movb 0x465(%rsp), %r10b
movb %r10b, 0x154(%rsp)
movss 0x460(%rsp), %xmm0
movb 0x45f(%rsp), %r10b
movb %r10b, 0x155(%rsp)
movl 0x590(%rsp), %r10d
movl %r10d, 0x22c(%rsp)
movl 0x598(%rsp), %r10d
movl %r10d, 0x230(%rsp)
movb 0x45e(%rsp), %r10b
movb %r10b, 0x156(%rsp)
movb 0x45d(%rsp), %r12b
movb 0x45c(%rsp), %r15b
movb 0x459(%rsp), %bpl
movb 0x45b(%rsp), %bl
movl 0x5c8(%rsp), %r11d
movq 0x6b0(%rsp), %r10
movb 0x458(%rsp), %r14b
movb %r14b, 0x157(%rsp)
movq 0x4a0(%rsp), %r13
movq 0x498(%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 0x18376
testb $0x1, 0x465(%rsp)
je 0x18374
movq 0x578(%rsp), %rax
movq (%rax), %rdi
movl 0x408(%rsp), %esi
movl 0x404(%rsp), %edx
movq 0x4f0(%rsp), %rax
movsd (%rax), %xmm0
movq 0x510(%rsp), %rax
movq (%rax), %rcx
movb 0x45d(%rsp), %r9b
movb 0x45c(%rsp), %bpl
movb 0x45b(%rsp), %bl
movl 0x5c8(%rsp), %r11d
movq 0x6b0(%rsp), %r10
movb 0x458(%rsp), %al
movq 0x4a0(%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 0x18376
movq 0x3e0(%rsp), %rax
addq $0x4a8, %rsp            # imm = 0x4A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq