// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/fmi-sufbwtstream.c
// Function: gt_sufbwt2fmindex
int gt_sufbwt2fmindex(Fmindex *fmindex,
                   GtSpecialcharinfo *specialcharinfo,
                   unsigned int log2bsize,
                   unsigned int log2markdist,
                   const char *outfmindex,
                   const GtStrArray *indexnametab,
                   bool storeindexpos,
                   GtLogger *logger,
                   GtError *err)
{
  Suffixarray suffixarray;
  Emissionmergedesa emmesa;
  GtUchar cc;
  GtUword bwtpos,
         totallength = 0,
         suftabvalue = 0,
         *sequenceoffsettable = NULL,
         firstignorespecial = 0,
         nextmark,
         *markptr,
         nextprogress,
         tmpsuftabvalue,
         stepprogress;
  unsigned int numofchars = 0,
               suffixlength = 0,
               numofindexes;
  int retval;
  Definedunsignedlong longest = { false, 0 };
  GtPairBwtidx *pairptr;
  FILE *outbwt = NULL;
  GtStr *tmpfilename = NULL;
  bool haserr = false;

  gt_error_check(err);
  longest.defined = false;
  longest.valueunsignedlong = 0;
  numofindexes = (unsigned int) gt_str_array_size(indexnametab);
  if (numofindexes == 1U)
  {
    const char *indexname = gt_str_array_get(indexnametab,0);

    if (streamsuffixarray(&suffixarray,
                          SARR_BWTTAB | (storeindexpos ? SARR_SUFTAB : 0),
                          indexname,
                          logger,
                          err) != 0)
    {
      haserr = true;
    } else
    {
      totallength = gt_encseq_total_length(suffixarray.encseq);
    }
    if (!haserr && gt_specialcharinfo_read(specialcharinfo,indexname,err) != 0)
    {
      haserr = true;
    }
    if (!haserr)
    {
      numofchars = gt_alphabet_num_of_chars(
                               gt_encseq_alphabet(suffixarray.encseq));
      firstignorespecial = totallength - specialcharinfo->specialcharacters;
      if (gt_alphabet_to_file(gt_encseq_alphabet(suffixarray.encseq),
                              outfmindex, err) != 0)
      {
        haserr = true;
      }
    }
    if (!haserr)
    {
      if (copytheindexfile(outfmindex,
                            indexname,
                            GT_BWTTABSUFFIX,
                            (uint64_t) firstignorespecial,
                            err) != 0)
      {
        haserr = true;
      }
    }
  } else
  {
    GtEncseqMetadata *emd = NULL;
    if (gt_emissionmergedesa_init(&emmesa,
                               indexnametab,
                               SARR_ESQTAB | SARR_SUFTAB | SARR_LCPTAB,
                               logger,
                               err) != 0)
    {
      haserr = true;
    }
    if (!haserr)
    {
      const char *indexname = NULL;
      indexname = gt_str_array_get(indexnametab,0);
      emd = gt_encseq_metadata_new(indexname, err);
      if (emd == NULL) {
        haserr = true;
      }
    }
    if (!haserr) {
      suffixlength = 0;
      if (gt_alphabet_to_file(gt_encseq_metadata_alphabet(emd),
                              outfmindex, err) != 0)
      {
        haserr = true;
      }
    }
    gt_encseq_metadata_delete(emd);
    if (!haserr)
    {
      sequenceoffsettable = gt_encseqtable2sequenceoffsets(&totallength,
                                                        specialcharinfo,
                                                        emmesa.suffixarraytable,
                                                        numofindexes);
      if (sequenceoffsettable == NULL)
      {
        haserr = true;
      }
    }
    if (!haserr)
    {
      longest.defined = false;
      longest.valueunsignedlong = 0;
      outbwt = gt_fa_fopen_with_suffix(outfmindex,GT_BWTTABSUFFIX,"wb",err);
      if (outbwt == NULL)
      {
        haserr = true;
      }
    }
    if (!haserr)
    {
      numofchars = emmesa.numofchars;
      firstignorespecial = totallength - specialcharinfo->specialcharacters;
    }
  }
  if (!haserr)
  {
    printf("# firstignorespecial="GT_WU"\n",
              firstignorespecial);
    gt_computefmkeyvalues (fmindex,
                        specialcharinfo,
                        totallength+1,
                        log2bsize,
                        log2markdist,
                        numofchars,
                        suffixlength,
                        storeindexpos);
    showconstructionmessage(outfmindex,
                            totallength,
                            fmindex->sizeofindex,
                            log2bsize,
                            log2markdist,
                            numofchars);
    allocatefmtables(fmindex,specialcharinfo,storeindexpos);
    set0frequencies(fmindex);
    if (storeindexpos)
    {
      markptr = fmindex->markpostable;
    } else
    {
      markptr = NULL;
    }
    nextprogress = stepprogress = totallength/78;
    for (bwtpos = 0, nextmark = 0; ; bwtpos++)
    {
      if (numofindexes == 1U)
      {
        if (storeindexpos)
        {
          retval = gt_readnextfromstream_GtUword(&tmpsuftabvalue,
                                            &suffixarray.suftabstream_GtUword);
          if (retval == 0)
          {
            break;
          }
          suftabvalue = (GtUword) tmpsuftabvalue;
        }
        retval = gt_readnextfromstream_GtUchar(&cc,&suffixarray.bwttabstream);
        if (retval == 0)
        {
          break;
        }
      } else
      {
        retval = nextesamergedsufbwttabvalues(&longest,
                                              &cc,
                                              &suftabvalue,
                                              &emmesa,
                                              sequenceoffsettable,
                                              bwtpos,
                                              err);
        if (retval < 0)
        {
          haserr = true;
          break;
        }
        if (retval == 0)
        {
          break;
        }
        gt_xfwrite(&cc, sizeof (GtUchar), (size_t) 1, outbwt);
      }
      if (bwtpos == nextprogress)
      {
        if (bwtpos == stepprogress)
        {
          (void) putchar('#');
        }
        (void) putchar('.');
        (void) fflush(stdout);
        nextprogress += stepprogress;
      }
      if (storeindexpos && bwtpos == nextmark)
      {
        *markptr++ = suftabvalue;
        nextmark += fmindex->markdist;
      }
      if (GT_ISBWTSPECIAL(cc))
      {
        if (storeindexpos && bwtpos < firstignorespecial)
        {
          pairptr = fmindex->specpos.spaceGtPairBwtidx +
                    fmindex->specpos.nextfreeGtPairBwtidx++;
          if (pairptr >= fmindex->specpos.spaceGtPairBwtidx +
                         fmindex->specpos.allocatedGtPairBwtidx)
          {
            gt_error_set(err,"program error: not enough space for specpos");
            haserr = true;
            break;
          }
          pairptr->bwtpos = bwtpos;
          pairptr->suftabvalue = suftabvalue;
        }
      } else
      {
        fmindex->tfreq[cc+1]++;
        fmindex->bfreq[(cc * fmindex->nofblocks) +
                       (bwtpos >> fmindex->log2bsize)]++;
        fmindex->superbfreq[(cc * fmindex->nofsuperblocks) +
                       (bwtpos >> fmindex->log2superbsize) + 1]++;
      }
    }
  }
  if (!haserr)
  {
    if (storeindexpos &&
        fmindex->specpos.allocatedGtPairBwtidx !=
        fmindex->specpos.nextfreeGtPairBwtidx)
    {
      gt_error_set(err,"program error: too much space for specpos: "
                    "allocated = "GT_WU" != "GT_WU" = used",
                    fmindex->specpos.allocatedGtPairBwtidx,
                    fmindex->specpos.nextfreeGtPairBwtidx);
      haserr = true;
    }
  }
  if (!haserr)
  {
    (void) putchar('\n');
    finalizefmfrequencies(fmindex);
    if (fmindex->suffixlength > 0)
    {
      fmindex->boundarray = gt_malloc(sizeof *fmindex->boundarray
                                      * fmindex->numofcodes);
    }
    if (numofindexes == 1U)
    {
      fmindex->longestsuffixpos = suffixarray.longest.valueunsignedlong;
      gt_freesuffixarray(&suffixarray);
    } else
    {
      if (!longest.defined)
      {
        gt_error_set(err,"longest is not defined after merging");
        haserr = true;
      }
      if (!haserr)
      {
        fmindex->longestsuffixpos = longest.valueunsignedlong;
      }
      gt_fa_xfclose(outbwt);
      gt_emissionmergedesa_wrap(&emmesa);
    }
  }
  gt_free(sequenceoffsettable);
  gt_free(tmpfilename);
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x301c8, %rsp          # imm = 0x301C8
movq %r9, %rbp
movq %r8, 0x18(%rsp)
movl %ecx, 0x48(%rsp)
movl %edx, %r13d
movq %rsi, %r12
movq %rdi, %r14
movq 0x30210(%rsp), %rdi
andq $0x0, 0x30(%rsp)
testq %rdi, %rdi
je 0x15c15e
callq 0x89eb7
testb %al, %al
jne 0x15ccad
movq 0x30208(%rsp), %rbx
movq %rbp, %rdi
callq 0xae61c
movzbl 0x30200(%rsp), %r15d
movq %rax, 0x50(%rsp)
cmpl $0x1, %eax
jne 0x15c200
movq $0x0, 0x8(%rsp)
movq %rbp, %rdi
xorl %esi, %esi
callq 0xae386
movq %rax, %rbp
leal 0x8(,%r15,2), %esi
leaq 0x60(%rsp), %rdi
movq %rax, %rdx
movq %rbx, %rcx
movq 0x30210(%rsp), %rbx
movq %rbx, %r8
callq 0x14d283
movq %r15, %rcx
movb $0x1, %r15b
testl %eax, %eax
jne 0x15cbfe
movq %rcx, 0x28(%rsp)
movq 0x60(%rsp), %rdi
callq 0x7055e
movq %rax, 0x30(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x75435
testl %eax, %eax
je 0x15c33b
movq $0x0, 0x8(%rsp)
jmp 0x15cbfe
movq %r15, 0x28(%rsp)
leaq 0x160(%rsp), %rdi
pushq $0x7
popq %rdx
movq %rbp, %rsi
movq %rbx, %rcx
movq 0x30210(%rsp), %rbx
movq %rbx, %r8
callq 0x2b0df5
testl %eax, %eax
je 0x15c231
movb $0x1, %r15b
xorl %ebx, %ebx
jmp 0x15c283
setne %r15b
movq %rbp, %rdi
xorl %esi, %esi
callq 0xae386
movq %rax, %rdi
movq %rbx, %rsi
callq 0x87eb0
movq %rbx, %rbp
movq %rax, %rbx
testq %rax, %rax
sete %al
orb %r15b, %al
movl %eax, %r15d
jne 0x15c283
movq %rbx, %rdi
callq 0x88545
movq %rax, %rdi
movq 0x18(%rsp), %rsi
movq %rbp, %rdx
callq 0x57e06
testl %eax, %eax
movzbl %r15b, %r15d
pushq $0x1
popq %rax
cmovnel %eax, %r15d
movq %rbx, %rdi
callq 0x888b5
testb %r15b, %r15b
je 0x15c29b
movq $0x0, 0x8(%rsp)
jmp 0x15c2c8
movq 0x301b8(%rsp), %rdx
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
movq 0x50(%rsp), %rcx
callq 0x2aebd0
movq %rax, 0x8(%rsp)
testq %rax, %rax
movzbl %r15b, %r15d
pushq $0x1
popq %rax
cmovel %eax, %r15d
movq 0x30210(%rsp), %r9
xorl %ebx, %ebx
testb %r15b, %r15b
je 0x15c2e2
movq $0x0, 0x38(%rsp)
jmp 0x15c31a
leaq 0x1e833e(%rip), %rsi    # 0x344627
leaq 0x199801(%rip), %rdx    # 0x2f5af1
leaq 0x1eaac8(%rip), %rcx    # 0x346dbf
movq 0x18(%rsp), %rdi
movl $0x16e, %r8d            # imm = 0x16E
callq 0x8a449
movq %rax, 0x38(%rsp)
testq %rax, %rax
movzbl %r15b, %r15d
pushq $0x1
popq %rax
cmovel %eax, %r15d
testb %r15b, %r15b
je 0x15c326
xorl %ebp, %ebp
jmp 0x15c4cf
movl 0x301c0(%rsp), %ebx
movq 0x30(%rsp), %rbp
subq (%r12), %rbp
jmp 0x15c4cf
movq 0x60(%rsp), %rdi
callq 0x754dd
movq %rax, %rdi
callq 0x56c8e
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rcx
subq (%r12), %rcx
movq %rcx, 0x40(%rsp)
movq 0x60(%rsp), %rdi
callq 0x754dd
movq %rax, %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x57e06
testl %eax, %eax
setne %r15b
je 0x15c39e
movq $0x0, 0x38(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x40(%rsp), %rbp
jmp 0x15c4ca
movl %r15d, 0x14(%rsp)
testq %rbx, %rbx
je 0x15c3b8
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x15cce5
leaq 0x1e8268(%rip), %rsi    # 0x344627
leaq 0x19972b(%rip), %rdx    # 0x2f5af1
leaq 0x1ea9f2(%rip), %rcx    # 0x346dbf
pushq $0x33
popq %r8
movq 0x18(%rsp), %rdi
movq %rbx, %r9
callq 0x8a449
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x15c418
leaq 0x1e8238(%rip), %rsi    # 0x344627
leaq 0x1e96a7(%rip), %rdx    # 0x345a9d
leaq 0x1ea9c2(%rip), %rcx    # 0x346dbf
pushq $0x3a
popq %r8
movq %rbp, %rdi
movq %rbx, %r9
callq 0x8a449
movq %rax, %rbx
testq %rax, %rax
sete %r15b
jmp 0x15c41d
xorl %ebx, %ebx
movb $0x1, %r15b
leaq 0x1eaa7d(%rip), %rdi    # 0x346ea1
leaq 0x1e81fc(%rip), %rdx    # 0x344627
movq %rbp, %rsi
movq 0x18(%rsp), %rcx
movq %rdx, %r8
xorl %eax, %eax
callq 0x17070
testb %r15b, %r15b
movq 0x40(%rsp), %rbp
movb $0x1, %r15b
jne 0x15c4a6
testq %rbp, %rbp
je 0x15c47c
movq %rbp, %r15
subq $0x1, %r15
jb 0x15c473
movq %rbx, %rdi
callq 0x17bb0
cmpl $-0x1, %eax
je 0x15c473
movl %eax, %edi
movq 0x8(%rsp), %rsi
callq 0x17ee0
jmp 0x15c452
movl 0x14(%rsp), %eax
movl %eax, %r15d
jmp 0x15c4a6
movq %rbp, %r15
movl 0x14(%rsp), %ebp
movq %rbx, %rdi
callq 0x17bb0
cmpl $-0x1, %eax
je 0x15c49e
movl %eax, %edi
movq 0x8(%rsp), %rsi
callq 0x17ee0
jmp 0x15c483
movl %ebp, %eax
movq %r15, %rbp
movl %eax, %r15d
movq 0x8(%rsp), %rdi
callq 0x8a5e5
movq %rbx, %rdi
callq 0x8a5e5
movq $0x0, 0x38(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rbx
testb %r15b, %r15b
jne 0x15cbfe
leaq 0x1ea8fd(%rip), %rdi    # 0x346ddc
movq %rbp, 0x40(%rsp)
movq %rbp, %rsi
xorl %eax, %eax
callq 0x17070
movq 0x30(%rsp), %rdx
incq %rdx
movq %r14, %rdi
movq %r12, 0x58(%rsp)
movq %r12, %rsi
movl %r13d, %ecx
movl %r13d, %r12d
movl 0x48(%rsp), %r13d
movl %r13d, %r8d
movl %ebx, %r9d
pushq 0x28(%rsp)
pushq $0x0
callq 0x2b77c7
popq %rax
popq %rcx
movq %rbx, %rbp
movq 0x30(%rsp), %rbx
movq 0xa0(%r14), %rax
movq %rax, 0x20(%rsp)
pushq $0x1
popq %rax
movl %eax, %edx
movl %r12d, %ecx
shll %cl, %edx
movl %r13d, %ecx
shll %cl, %eax
leaq 0x1ea968(%rip), %rdi    # 0x346eb1
movq 0x18(%rsp), %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17070
leaq 0x1ea98a(%rip), %rdi    # 0x346ee9
movq %rbx, %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0x17070
movq 0x20(%rsp), %rsi
movq %rsi, %xmm1
movq 0x18b363(%rip), %xmm2   # 0x2e78e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x18b367(%rip), %xmm3   # 0x2e78f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
incq %rbx
movq %rbx, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x1ea947(%rip), %rdi    # 0x346f07
movb $0x1, %al
callq 0x17070
movl 0x78(%r14), %edi
incl %edi
shlq $0x3, %rdi
leaq 0x1ea7e7(%rip), %rbx    # 0x346dbf
pushq $0x60
popq %rdx
movq %rbx, %rsi
callq 0x93160
movq %rax, 0x18(%r14)
movl 0x78(%r14), %edi
imulq 0xb0(%r14), %rdi
shlq $0x3, %rdi
pushq $0x62
popq %rdx
movq %rbx, %rsi
callq 0x93160
movq %rax, 0x20(%r14)
cmpb $0x0, 0x28(%rsp)
je 0x15c6c7
movq 0x10(%r14), %rax
decq %rax
xorl %edx, %edx
divq 0xb8(%r14)
leaq 0x8(,%rax,8), %rdi
leaq 0x1ea78f(%rip), %r13    # 0x346dbf
pushq $0x67
popq %rdx
movq %r13, %rsi
callq 0x93160
movq %rax, 0x28(%r14)
andq $0x0, 0x60(%r14)
movq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0x2b77a0
movq %rax, 0x58(%r14)
movq (%rbx), %rdx
movq %rdx, %rsi
subq %rax, %rsi
movq %rsi, %xmm1
movq 0x18b275(%rip), %xmm2   # 0x2e78e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x18b279(%rip), %xmm3   # 0x2e78f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rdx, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x1ea87c(%rip), %rdi    # 0x346f27
movb $0x1, %al
callq 0x17070
movq 0x58(%r14), %rdi
shlq $0x4, %rdi
pushq $0x74
popq %rdx
movq %r13, %rsi
callq 0x93160
jmp 0x15c6d8
andq $0x0, 0x28(%r14)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x58(%r14)
xorl %eax, %eax
movq %rax, 0x50(%r14)
movl 0x78(%r14), %edi
imulq 0xa8(%r14), %rdi
leaq 0x1ea6d0(%rip), %rsi    # 0x346dbf
pushq $0x7b
popq %rdx
callq 0x93160
movq %rax, 0x8(%r14)
movl 0x78(%r14), %eax
leal 0x1(%rax), %ecx
xorl %edx, %edx
movq 0x30210(%rsp), %rbx
cmpq %rdx, %rcx
je 0x15c71f
movq 0x18(%r14), %rsi
andq $0x0, (%rsi,%rdx,8)
incq %rdx
jmp 0x15c70c
xorl %ecx, %ecx
movl %eax, %eax
movq 0xa8(%r14), %rdx
imulq %rax, %rdx
cmpq %rdx, %rcx
jae 0x15c744
movq 0x8(%r14), %rax
movb $0x0, (%rax,%rcx)
incq %rcx
movl 0x78(%r14), %eax
jmp 0x15c721
xorl %ecx, %ecx
movq 0xb0(%r14), %rdx
imulq %rax, %rdx
cmpq %rdx, %rcx
jae 0x15c764
movq 0x20(%r14), %rdx
andq $0x0, (%rdx,%rcx,8)
incq %rcx
jmp 0x15c746
cmpb $0x0, 0x30200(%rsp)
movl %r15d, 0x14(%rsp)
je 0x15c77e
movq 0x28(%r14), %rax
movq %rax, 0x18(%rsp)
jmp 0x15c787
movq $0x0, 0x18(%rsp)
movq 0x30(%rsp), %rax
xorl %r12d, %r12d
pushq $0x4e
popq %rcx
xorl %edx, %edx
divq %rcx
movq %rax, %r13
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq %rax, 0x48(%rsp)
xorl %ebp, %ebp
xorl %r15d, %r15d
cmpl $0x1, 0x50(%rsp)
jne 0x15c8cf
cmpb $0x0, 0x30200(%rsp)
je 0x15c849
movl 0x104(%rsp), %eax
movq 0x108(%rsp), %rdi
cmpl 0x100(%rsp), %eax
jb 0x15c839
movq 0x110(%rsp), %rcx
movl $0x1000, %edx           # imm = 0x1000
pushq $0x8
popq %rsi
callq 0x17ad0
movq %rax, %rbx
movl %ebx, 0x100(%rsp)
movq 0x110(%rsp), %rdi
callq 0x17e70
testl %eax, %eax
jne 0x15cc86
andl $0x0, 0x104(%rsp)
testl %ebx, %ebx
movq 0x30210(%rsp), %rbx
je 0x15cab2
xorl %eax, %eax
movq 0x108(%rsp), %rdi
leal 0x1(%rax), %ecx
movl %ecx, 0x104(%rsp)
movl %eax, %eax
movq (%rdi,%rax,8), %r12
movl 0x11c(%rsp), %eax
movq 0x120(%rsp), %rdi
cmpl 0x118(%rsp), %eax
jb 0x15c8b7
movq 0x128(%rsp), %rcx
movl $0x1000, %edx           # imm = 0x1000
pushq $0x1
popq %rsi
callq 0x17ad0
movq %rax, %rbx
movl %ebx, 0x118(%rsp)
movq 0x128(%rsp), %rdi
callq 0x17e70
testl %eax, %eax
jne 0x15cc6c
andl $0x0, 0x11c(%rsp)
testl %ebx, %ebx
movq 0x30210(%rsp), %rbx
je 0x15cab2
xorl %eax, %eax
movq 0x120(%rsp), %rdi
leal 0x1(%rax), %ecx
movl %ecx, 0x11c(%rsp)
movl %eax, %eax
movb (%rdi,%rax), %al
movb %al, 0x7(%rsp)
jmp 0x15c9c0
testq %rbx, %rbx
je 0x15c8e4
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x15cc3e
movl 0x178(%rsp), %ecx
cmpl 0x17c(%rsp), %ecx
jb 0x15c932
cmpl $0x0, 0x168(%rsp)
je 0x15cab2
leaq 0x160(%rsp), %rdi
movq %rbx, %rsi
callq 0x2b09b0
testl %eax, %eax
jne 0x15cbfb
cmpl $0x0, 0x17c(%rsp)
je 0x15cab2
andl $0x0, 0x178(%rsp)
xorl %ecx, %ecx
movl %ecx, %eax
shlq $0x4, %rax
leaq 0x10180(%rsp), %rsi
movl (%rsi,%rax), %edx
movq 0x8(%rsi,%rax), %rsi
movq 0x8(%rsp), %rax
movq (%rax,%rdx,8), %r12
addq %rsi, %r12
testq %rsi, %rsi
je 0x15c97e
movq 0x301b8(%rsp), %rax
shlq $0x8, %rdx
movq (%rax,%rdx), %rdi
decq %rsi
movl 0x48(%rax,%rdx), %edx
callq 0x705e4
movl 0x178(%rsp), %ecx
jmp 0x15c99e
movb $-0x1, %al
testq %rdx, %rdx
jne 0x15c99e
testb $0x1, 0x28(%rsp)
jne 0x15cbe5
movb $-0x2, %al
movb $0x1, %dl
movq %rdx, 0x28(%rsp)
movq %r15, 0x20(%rsp)
movb %al, 0x7(%rsp)
incl %ecx
movl %ecx, 0x178(%rsp)
leaq 0x7(%rsp), %rdi
pushq $0x1
popq %rdx
movq %rdx, %rsi
movq 0x38(%rsp), %rcx
callq 0xb302c
cmpq %r13, %r15
jne 0x15c9f0
cmpq 0x48(%rsp), %r13
jne 0x15c9d4
pushq $0x23
popq %rdi
callq 0x179c0
pushq $0x2e
popq %rdi
callq 0x179c0
movq 0x2db4cd(%rip), %rax    # 0x437eb0
movq (%rax), %rdi
callq 0x178a0
addq 0x48(%rsp), %r13
cmpb $0x0, 0x30200(%rsp)
je 0x15ca17
cmpq %rbp, %r15
jne 0x15ca17
movq 0x18(%rsp), %rax
movq %r12, (%rax)
addq $0x8, %rax
movq %rax, 0x18(%rsp)
addq 0xb8(%r14), %rbp
movzbl 0x7(%rsp), %eax
cmpq $0xfe, %rax
jb 0x15ca5e
cmpb $0x0, 0x30200(%rsp)
je 0x15caaa
cmpq 0x40(%rsp), %r15
jae 0x15caaa
movq 0x50(%r14), %rax
movq 0x60(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x60(%r14)
cmpq 0x58(%r14), %rcx
jge 0x15cb80
shlq $0x4, %rcx
movq %r15, (%rax,%rcx)
movq %r12, 0x8(%rax,%rcx)
jmp 0x15caaa
movq 0x18(%r14), %rcx
incq 0x8(%rcx,%rax,8)
movb 0x88(%r14), %cl
movq %r15, %rdx
shrq %cl, %rdx
imulq 0xa8(%r14), %rax
addq 0x8(%r14), %rax
incb (%rdx,%rax)
movzbl 0x7(%rsp), %eax
imulq 0xb0(%r14), %rax
movb 0x8c(%r14), %cl
movq %r15, %rdx
shrq %cl, %rdx
shlq $0x3, %rax
addq 0x20(%r14), %rax
incq 0x8(%rax,%rdx,8)
incq %r15
jmp 0x15c7b6
cmpb $0x0, 0x30200(%rsp)
movl 0x14(%rsp), %r15d
je 0x15cad7
testb %r15b, %r15b
jne 0x15cad7
movq 0x58(%r14), %rdx
movq 0x60(%r14), %rcx
cmpq %rcx, %rdx
jne 0x15cb93
testb %r15b, %r15b
jne 0x15cbfe
pushq $0xa
popq %rdi
callq 0x179c0
movl 0x78(%r14), %eax
pushq $0x2
popq %rcx
cmpq %rax, %rcx
ja 0x15cb06
movq 0x18(%r14), %rdx
movq -0x8(%rdx,%rcx,8), %rsi
addq %rsi, (%rdx,%rcx,8)
incq %rcx
jmp 0x15caef
movq 0x20(%r14), %rcx
xorl %edx, %edx
pushq $0x2
popq %rsi
cmpl %eax, %edx
je 0x15cb38
movq %rsi, %rdi
movq 0xb0(%r14), %r8
cmpq %r8, %rdi
jae 0x15cb30
movq -0x8(%rcx,%rdi,8), %r8
addq %r8, (%rcx,%rdi,8)
incq %rdi
jmp 0x15cb16
leaq (%rcx,%r8,8), %rcx
incl %edx
jmp 0x15cb0f
cmpl $0x0, 0x98(%r14)
je 0x15cb65
movq 0xc0(%r14), %rdi
shlq $0x4, %rdi
leaq 0x1ea26b(%rip), %rsi    # 0x346dbf
movl $0x1fa, %edx            # imm = 0x1FA
callq 0x93160
movq %rax, 0xc8(%r14)
cmpl $0x1, 0x50(%rsp)
jne 0x15cba6
leaq 0x60(%rsp), %rdi
movq 0x40(%rdi), %rax
movq %rax, 0x30(%r14)
callq 0x14d148
jmp 0x15cbfe
leaq 0x1ea26f(%rip), %rsi    # 0x346df6
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
jmp 0x15cbfb
leaq 0x1ea288(%rip), %rsi    # 0x346e22
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
jmp 0x15cbfb
testb $0x1, 0x28(%rsp)
je 0x15cbb8
movq 0x20(%rsp), %rax
movq %rax, 0x30(%r14)
jmp 0x15cbcc
leaq 0x1ea2ac(%rip), %rsi    # 0x346e6b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
movb $0x1, %r15b
movq 0x38(%rsp), %rdi
callq 0x8a5e5
leaq 0x160(%rsp), %rdi
callq 0x2b10e8
jmp 0x15cbfe
leaq 0x1ea38b(%rip), %rsi    # 0x346f77
movq %rbx, %rdi
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0x89dbb
movb $0x1, %r15b
leaq 0x1ea1ba(%rip), %rbx    # 0x346dbf
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
movl $0x20f, %edx            # imm = 0x20F
callq 0x936f9
xorl %edi, %edi
movq %rbx, %rsi
movl $0x210, %edx            # imm = 0x210
callq 0x936f9
movzbl %r15b, %eax
negl %eax
addq $0x301c8, %rsp          # imm = 0x301C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2db323(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1883c4(%rip), %rsi    # 0x2e5013
leaq 0x188569(%rip), %rdx    # 0x2e51bf
leaq 0x1ea2fd(%rip), %rcx    # 0x346f5a
leaq 0x1ea15b(%rip), %r8     # 0x346dbf
movl $0xc3, %r9d
jmp 0x15ccd9
movq 0x2db2f5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19cf4c(%rip), %rsi    # 0x2f9bc9
leaq 0x19cf67(%rip), %rdx    # 0x2f9beb
jmp 0x15cc9e
movq 0x2db2db(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19cf32(%rip), %rsi    # 0x2f9bc9
leaq 0x22608d(%rip), %rdx    # 0x382d2b
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0
movq 0x2db2b4(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x188355(%rip), %rsi    # 0x2e5013
leaq 0x1884fa(%rip), %rdx    # 0x2e51bf
leaq 0x1ea0e1(%rip), %rcx    # 0x346dad
leaq 0x1ea0ec(%rip), %r8     # 0x346dbf
movl $0x115, %r9d            # imm = 0x115
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2db27c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x18831d(%rip), %rsi    # 0x2e5013
leaq 0x1884c2(%rip), %rdx    # 0x2e51bf
leaq 0x1ea18c(%rip), %rcx    # 0x346e90
leaq 0x1ea0b4(%rip), %r8     # 0x346dbf
pushq $0x32
popq %r9
jmp 0x15ccd9
nopl (%rax)