// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/eis-bwtseq.c
// Function: gt_BWTSeqVerifyIntegrity
enum verifyBWTSeqErrCode
gt_BWTSeqVerifyIntegrity(BWTSeq *bwtSeq, const char *projectName,
                      int checkFlags,
                      GtUword tickPrint, FILE *fp,
                      GtLogger *verbosity, GtError *err)
{
  Suffixarray suffixArray;
  struct extBitsRetrieval extBits;
  bool suffixArrayIsInitialized = false, extBitsAreInitialized = false;
  enum verifyBWTSeqErrCode retval = VERIFY_BWTSEQ_NO_ERROR;
  do
  {
    GtUword seqLen;
    gt_assert(bwtSeq && projectName && err);
    gt_error_check(err);

    initExtBitsRetrieval(&extBits);
    extBitsAreInitialized = true;

    if (gt_mapsuffixarray(&suffixArray,
                       SARR_SUFTAB | SARR_ESQTAB, projectName, verbosity, err))
    {
      gt_error_set(err, "Cannot load reference suffix array project with"
                    " demand for suffix table file and encoded sequence"
                    " for project: %s", projectName);
      retval = VERIFY_BWTSEQ_REFLOAD_ERROR;
      break;
    }
    suffixArrayIsInitialized = true;
    seqLen = gt_encseq_total_length(suffixArray.encseq) + 1;
    if (BWTSeqLength(bwtSeq) != seqLen)
    {
      gt_error_set(err, "length mismatch for suffix array project %s and "
                "bwt sequence index", projectName);
      retval = VERIFY_BWTSEQ_LENCOMPARE_ERROR;
      break;
    }

    if (checkFlags & VERIFY_BWTSEQ_SUFVAL
        && BWTSeqHasLocateInformation(bwtSeq))
    {
      GtUword i;
      for (i = 0; i < seqLen && retval == VERIFY_BWTSEQ_NO_ERROR; ++i)
      {
        if (gt_BWTSeqPosHasLocateInfo(bwtSeq, i, &extBits))
        {
          GtUword sfxArrayValue = gt_BWTSeqLocateMatch(bwtSeq, i,
                                                             &extBits);
          if (sfxArrayValue != ESASUFFIXPTRGET(suffixArray.suftab,i))
          {
            gt_error_set(err, "Failed suffix array value comparison"
                          " at position "GT_WU": "GT_WU" != "GT_WU"",
                          i, sfxArrayValue,
                          ESASUFFIXPTRGET(suffixArray.suftab,i));
            retval = VERIFY_BWTSEQ_SUFVAL_ERROR;
            break;
          }
        }
        if (tickPrint && !((i + 1) % tickPrint))
          putc('.', fp);
      }
      if (tickPrint)
        putc('\n', fp);
      if (retval != VERIFY_BWTSEQ_NO_ERROR)
        break;
    }
    else if (checkFlags & VERIFY_BWTSEQ_SUFVAL)
    {
      gt_error_set(err, "check of suffix array values was requested,"
                " but index contains no  locate information!");
      retval = VERIFY_BWTSEQ_SUFVAL_ERROR;
      break;
    }
    else if (!(checkFlags & VERIFY_BWTSEQ_SUFVAL)
             && BWTSeqHasLocateInformation(bwtSeq))
    {
      fputs("Not checking suftab values.\n", stderr);
    }
    if (BWTSeqHasLocateInformation(bwtSeq))
    {
      GtUword nextLocate = BWTSeqTerminatorPos(bwtSeq);
      if (suffixArray.longest.defined &&
          suffixArray.longest.valueunsignedlong != nextLocate)
      {
        gt_error_set(err, "terminator/0-rotation position mismatch "GT_WU""
                  " vs. "GT_WU"", suffixArray.longest.valueunsignedlong,
                  nextLocate);
        retval = VERIFY_BWTSEQ_TERMPOS_ERROR;
        break;
      }
      if ((checkFlags & VERIFY_BWTSEQ_LFMAPWALK)
          && (bwtSeq->featureToggles & BWTReversiblySorted))
      {
        GtUword i = seqLen;
        /* handle first symbol specially because the encseq
         * will not return the terminator symbol */
        {
          Symbol sym = BWTSeqGetSym(bwtSeq, nextLocate);
          if (sym != GT_UNDEFBWTCHAR)
          {
            gt_error_set(err, "symbol mismatch at position "GT_WU": "
                      "%d vs. reference symbol %d", i - 1, (int)sym,
                      (int)GT_UNDEFBWTCHAR);
            retval = VERIFY_BWTSEQ_LFMAPWALK_ERROR;
            break;
          }
          --i;
          nextLocate = BWTSeqLFMap(bwtSeq, nextLocate, &extBits);
        }
        while (i > 0)
        {
          Symbol symRef =
                         gt_encseq_get_encoded_char(suffixArray.encseq,
                                                          --i,
                                                          suffixArray.readmode);
          Symbol symCmp = BWTSeqGetSym(bwtSeq, nextLocate);
          if (symCmp != symRef)
          {
            gt_error_set(err, "symbol mismatch at position "GT_WU": "
                      "%d vs. reference symbol %d", i, symCmp, symRef);
            retval = VERIFY_BWTSEQ_LFMAPWALK_ERROR;
            break;
          }
          nextLocate = BWTSeqLFMap(bwtSeq, nextLocate, &extBits);
        }
        if (retval != VERIFY_BWTSEQ_NO_ERROR)
          break;
      }
      else if ((checkFlags & VERIFY_BWTSEQ_LFMAPWALK)
               && !(bwtSeq->featureToggles & BWTReversiblySorted))
      {
        gt_error_set(err, "requested complete backwards regeneration in index"
                  " without regeneration capability");
        retval = VERIFY_BWTSEQ_LFMAPWALK_IMP_ERROR;
        break;
      }
    }
    if (checkFlags & VERIFY_BWTSEQ_CONTEXT)
    {
      BWTSeqContextRetriever *bwtSeqCR =
        gt_BWTSeqCRLoad(bwtSeq, projectName, CTX_MAP_ILOG_AUTOSIZE);
      if (!bwtSeqCR)
      {
        gt_error_set(err, "cannot load BWT sequence context access table"
                  " for project %s", projectName);
        retval = VERIFY_BWTSEQ_CONTEXT_LOADFAIL;
        break;
      }
      fputs("Checking context regeneration.\n", stderr);
      {
        GtUword i, start, subSeqLen,
          maxSubSeqLen = GT_MIN(GT_MAX(MIN_CONTEXT_LEN,
                                seqLen/CONTEXT_FRACTION),
                                MAX_CONTEXT_LEN),
          numTries = GT_MIN(MAX_NUM_CONTEXT_CHECKS,
                         GT_MAX(2, seqLen/CONTEXT_INTERVAL));
        Symbol *contextBuf = gt_malloc(sizeof (Symbol) * MAX_CONTEXT_LEN);
        GtEncseqReader *esr =
           gt_encseq_create_reader_with_readmode(suffixArray.encseq,
                                                 suffixArray.readmode,
                                                 0);
        for (i = 0; i < numTries && retval == VERIFY_BWTSEQ_NO_ERROR; ++i)
        {
          GtUword j, end, inSubSeqLen;
          subSeqLen = random()%maxSubSeqLen + 1;
          start = random()%(seqLen - subSeqLen + 1);
          end = start + subSeqLen;
          inSubSeqLen = subSeqLen - ((end==seqLen)?1:0);
          gt_BWTSeqCRAccessSubseq(bwtSeqCR, start, subSeqLen, contextBuf);
          gt_encseq_reader_reinit_with_readmode(esr, suffixArray.encseq,
                                                suffixArray.readmode, start);
          for (j = 0; j < inSubSeqLen; ++j)
          {
            Symbol symRef = gt_encseq_reader_next_encoded_char(esr);
            Symbol symCmp = contextBuf[j];
            if (symCmp != symRef)
            {
              gt_error_set(err, "symbol mismatch at position "GT_WU": "
                        "%d vs. reference symbol %d", start + j, (int)symCmp,
                        (int)symRef);
              retval = VERIFY_BWTSEQ_CONTEXT_SYMFAIL;
              break;
            }
          }
          while (j < subSeqLen)
          {
            Symbol symRef = GT_UNDEFBWTCHAR;
            Symbol symCmp = contextBuf[j];
            if (symCmp != symRef)
            {
              gt_error_set(err, "symbol mismatch at position "GT_WU": "
                        "%d vs. reference symbol %d", start + j, (int)symCmp,
                        (int)symRef);
              retval = VERIFY_BWTSEQ_CONTEXT_SYMFAIL;
              break;
            }
            ++j;
          }
        }
        if (retval == VERIFY_BWTSEQ_NO_ERROR)
          fputs("Context regeneration completed successfully.\n", stderr);
        gt_encseq_reader_delete(esr);
        gt_free(contextBuf);
      }
      gt_deleteBWTSeqCR(bwtSeqCR);
    }
  } while (0);
  if (suffixArrayIsInitialized) gt_freesuffixarray(&suffixArray);
  if (extBitsAreInitialized) destructExtBitsRetrieval(&extBits);
  return retval;
}

// Assembly:
subq $0x238, %rsp            # imm = 0x238
movq 0x240(%rsp), %rax
movq %rdi, 0x230(%rsp)
movq %rsi, 0x228(%rsp)
movl %edx, 0x224(%rsp)
movq %rcx, 0x218(%rsp)
movq %r8, 0x210(%rsp)
movq %r9, 0x208(%rsp)
movb $0x0, 0xcf(%rsp)
movb $0x0, 0xce(%rsp)
movl $0x0, 0xc8(%rsp)
jmp 0x22730b
cmpq $0x0, 0x230(%rsp)
je 0x22732c
cmpq $0x0, 0x228(%rsp)
je 0x22732c
cmpq $0x0, 0x240(%rsp)
jne 0x227364
movq 0x414c6d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2eecd6(%rip), %rsi    # 0x516013
leaq 0x34e2ec(%rip), %rdx    # 0x575630
leaq 0x34e302(%rip), %rcx    # 0x57564d
leaq 0x34e16d(%rip), %r8     # 0x5754bf
movl $0x1e9, %r9d            # imm = 0x1E9
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x227366
jmp 0x227368
cmpq $0x0, 0x240(%rsp)
je 0x2273be
movq 0x240(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x227386
jmp 0x2273be
movq 0x414c13(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2eec7c(%rip), %rsi    # 0x516013
leaq 0x2eee21(%rip), %rdx    # 0x5161bf
leaq 0x34e2a8(%rip), %rcx    # 0x57564d
leaq 0x34e113(%rip), %r8     # 0x5754bf
movl $0x1ea, %r9d            # imm = 0x1EA
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2273c0
leaq 0xd0(%rsp), %rdi
callq 0x226eb0
movb $0x1, 0xce(%rsp)
movq 0x228(%rsp), %rdx
movq 0x208(%rsp), %rcx
movq 0x240(%rsp), %r8
leaq 0x108(%rsp), %rdi
movl $0x3, %esi
callq 0x233e00
cmpl $0x0, %eax
je 0x227432
movq 0x240(%rsp), %rdi
movq 0x228(%rsp), %rdx
leaq 0x34e24b(%rip), %rsi    # 0x575666
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0xc8(%rsp) # imm = 0xFFFFFFFF
jmp 0x227d94
movb $0x1, 0xcf(%rsp)
movq 0x108(%rsp), %rdi
callq 0xa9d00
addq $0x1, %rax
movq %rax, 0xc0(%rsp)
movq 0x230(%rsp), %rdi
callq 0x227de0
cmpq 0xc0(%rsp), %rax
je 0x227498
movq 0x240(%rsp), %rdi
movq 0x228(%rsp), %rdx
leaq 0x34e257(%rip), %rsi    # 0x5756d8
movb $0x0, %al
callq 0xd88c0
movl $0xfffffffe, 0xc8(%rsp) # imm = 0xFFFFFFFE
jmp 0x227d94
movl 0x224(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x227637
movq 0x230(%rsp), %rdi
callq 0x227e00
testb $0x1, %al
jne 0x2274c1
jmp 0x227637
movq $0x0, 0xb8(%rsp)
movq 0xb8(%rsp), %rcx
xorl %eax, %eax
cmpq 0xc0(%rsp), %rcx
movb %al, 0x3b(%rsp)
jae 0x2274f4
cmpl $0x0, 0xc8(%rsp)
sete %al
movb %al, 0x3b(%rsp)
movb 0x3b(%rsp), %al
testb $0x1, %al
jne 0x227501
jmp 0x227609
movq 0x230(%rsp), %rdi
movq 0xb8(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x222ea0
cmpl $0x0, %eax
je 0x2275b3
movq 0x230(%rsp), %rdi
movq 0xb8(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x223230
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq 0x160(%rsp), %rcx
movq 0xb8(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
je 0x2275b1
movq 0x240(%rsp), %rdi
movq 0xb8(%rsp), %rdx
movq 0xb0(%rsp), %rcx
movq 0x160(%rsp), %rax
movq 0xb8(%rsp), %rsi
movq (%rax,%rsi,8), %r8
leaq 0x34e17e(%rip), %rsi    # 0x57571b
movb $0x0, %al
callq 0xd88c0
movl $0xfffffffd, 0xc8(%rsp) # imm = 0xFFFFFFFD
jmp 0x227609
jmp 0x2275b3
cmpq $0x0, 0x218(%rsp)
je 0x2275ee
movq 0xb8(%rsp), %rax
addq $0x1, %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq 0x218(%rsp)
cmpq $0x0, %rdx
jne 0x2275ee
movq 0x210(%rsp), %rsi
movl $0x2e, %edi
callq 0x19e80
jmp 0x2275f0
movq 0xb8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xb8(%rsp)
jmp 0x2274cd
cmpq $0x0, 0x218(%rsp)
je 0x227626
movq 0x210(%rsp), %rsi
movl $0xa, %edi
callq 0x19e80
cmpl $0x0, 0xc8(%rsp)
je 0x227635
jmp 0x227d94
jmp 0x2276a8
movl 0x224(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x22766c
movq 0x240(%rsp), %rdi
leaq 0x34e107(%rip), %rsi    # 0x57575c
movb $0x0, %al
callq 0xd88c0
movl $0xfffffffd, 0xc8(%rsp) # imm = 0xFFFFFFFD
jmp 0x227d94
movl 0x224(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x2276a4
movq 0x230(%rsp), %rdi
callq 0x227e00
testb $0x1, %al
jne 0x22768e
jmp 0x2276a4
movq 0x41490b(%rip), %rax    # 0x63bfa0
movq (%rax), %rsi
leaq 0x34e114(%rip), %rdi    # 0x5757b3
callq 0x19810
jmp 0x2276a6
jmp 0x2276a8
movq 0x230(%rsp), %rdi
callq 0x227e00
testb $0x1, %al
jne 0x2276be
jmp 0x227934
movq 0x230(%rsp), %rdi
callq 0x227e20
movq %rax, 0xa8(%rsp)
testb $0x1, 0x140(%rsp)
je 0x227725
movq 0x148(%rsp), %rax
cmpq 0xa8(%rsp), %rax
je 0x227725
movq 0x240(%rsp), %rdi
movq 0x148(%rsp), %rdx
movq 0xa8(%rsp), %rcx
leaq 0x34e0c2(%rip), %rsi    # 0x5757d0
movb $0x0, %al
callq 0xd88c0
movl $0xfffffffa, 0xc8(%rsp) # imm = 0xFFFFFFFA
jmp 0x227d94
movl 0x224(%rsp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x2278e8
movq 0x230(%rsp), %rax
movl 0x40(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x2278e8
movq 0xc0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x230(%rsp), %rdi
movq 0xa8(%rsp), %rsi
callq 0x227e30
movb %al, 0x9f(%rsp)
movzbl 0x9f(%rsp), %eax
cmpl $0xfe, %eax
je 0x2277ca
movq 0x240(%rsp), %rdi
movq 0xa0(%rsp), %rdx
subq $0x1, %rdx
movzbl 0x9f(%rsp), %ecx
leaq 0x34e057(%rip), %rsi    # 0x575804
movl $0xfe, %r8d
movb $0x0, %al
callq 0xd88c0
movl $0xfffffffc, 0xc8(%rsp) # imm = 0xFFFFFFFC
jmp 0x227d94
movq 0xa0(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0xa0(%rsp)
movq 0x230(%rsp), %rdi
movq 0xa8(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x227ea0
movq %rax, 0xa8(%rsp)
cmpq $0x0, 0xa0(%rsp)
jbe 0x2278d7
movq 0x108(%rsp), %rdi
movq 0xa0(%rsp), %rsi
addq $-0x1, %rsi
movq %rsi, 0xa0(%rsp)
movl 0x150(%rsp), %edx
callq 0xa9da0
movb %al, 0x9e(%rsp)
movq 0x230(%rsp), %rdi
movq 0xa8(%rsp), %rsi
callq 0x227e30
movb %al, 0x9d(%rsp)
movzbl 0x9d(%rsp), %eax
movzbl 0x9e(%rsp), %ecx
cmpl %ecx, %eax
je 0x2278ad
movq 0x240(%rsp), %rdi
movq 0xa0(%rsp), %rdx
movzbl 0x9d(%rsp), %ecx
movzbl 0x9e(%rsp), %r8d
leaq 0x34df6b(%rip), %rsi    # 0x575804
movb $0x0, %al
callq 0xd88c0
movl $0xfffffffc, 0xc8(%rsp) # imm = 0xFFFFFFFC
jmp 0x2278d7
movq 0x230(%rsp), %rdi
movq 0xa8(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x227ea0
movq %rax, 0xa8(%rsp)
jmp 0x227803
cmpl $0x0, 0xc8(%rsp)
je 0x2278e6
jmp 0x227d94
jmp 0x227932
movl 0x224(%rsp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x227930
movq 0x230(%rsp), %rax
movl 0x40(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x227930
movq 0x240(%rsp), %rdi
leaq 0x34df27(%rip), %rsi    # 0x575840
movb $0x0, %al
callq 0xd88c0
movl $0xfffffffb, 0xc8(%rsp) # imm = 0xFFFFFFFB
jmp 0x227d94
jmp 0x227932
jmp 0x227934
movl 0x224(%rsp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x227d92
movq 0x230(%rsp), %rdi
movq 0x228(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x220290
movq %rax, 0x90(%rsp)
cmpq $0x0, 0x90(%rsp)
jne 0x2279a2
movq 0x240(%rsp), %rdi
movq 0x228(%rsp), %rdx
leaq 0x34df08(%rip), %rsi    # 0x575893
movb $0x0, %al
callq 0xd88c0
movl $0xfffffff8, 0xc8(%rsp) # imm = 0xFFFFFFF8
jmp 0x227d94
movq 0x4145f7(%rip), %rax    # 0x63bfa0
movq (%rax), %rsi
leaq 0x34df1d(%rip), %rdi    # 0x5758d0
callq 0x19810
movq 0xc0(%rsp), %rcx
shrq $0x7, %rcx
movl $0x1, %eax
cmpq %rcx, %rax
jbe 0x2279da
movl $0x1, %eax
movq %rax, 0x30(%rsp)
jmp 0x2279eb
movq 0xc0(%rsp), %rax
shrq $0x7, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq $0x3e8, %rax            # imm = 0x3E8
jae 0x227a37
movq 0xc0(%rsp), %rcx
shrq $0x7, %rcx
movl $0x1, %eax
cmpq %rcx, %rax
jbe 0x227a1a
movl $0x1, %eax
movq %rax, 0x28(%rsp)
jmp 0x227a2b
movq 0xc0(%rsp), %rax
shrq $0x7, %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x227a43
movl $0x3e8, %eax            # imm = 0x3E8
movq %rax, 0x20(%rsp)
jmp 0x227a43
movq 0x20(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0xc0(%rsp), %rcx
shrq $0x7, %rcx
movl $0x2, %eax
cmpq %rcx, %rax
jbe 0x227a6f
movl $0x2, %eax
movq %rax, 0x18(%rsp)
jmp 0x227a80
movq 0xc0(%rsp), %rax
shrq $0x7, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rcx
movl $0x3e8, %eax            # imm = 0x3E8
cmpq %rcx, %rax
jae 0x227a9b
movl $0x3e8, %eax            # imm = 0x3E8
movq %rax, 0x10(%rsp)
jmp 0x227ad8
movq 0xc0(%rsp), %rcx
shrq $0x7, %rcx
movl $0x2, %eax
cmpq %rcx, %rax
jbe 0x227abd
movl $0x2, %eax
movq %rax, 0x8(%rsp)
jmp 0x227ace
movq 0xc0(%rsp), %rax
shrq $0x7, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x68(%rsp)
movl $0x3e8, %edi            # imm = 0x3E8
leaq 0x34d9d1(%rip), %rsi    # 0x5754bf
movl $0x278, %edx            # imm = 0x278
callq 0xe80f0
movq %rax, 0x60(%rsp)
movq 0x108(%rsp), %rdi
movl 0x150(%rsp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0xac380
movq %rax, 0x58(%rsp)
movq $0x0, 0x88(%rsp)
movq 0x88(%rsp), %rcx
xorl %eax, %eax
cmpq 0x68(%rsp), %rcx
movb %al, 0x7(%rsp)
jae 0x227b4a
cmpl $0x0, 0xc8(%rsp)
sete %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x227b57
jmp 0x227d45
callq 0x127e80
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
xorl %ecx, %ecx
movl %ecx, %edx
divq 0x70(%rsp)
addq $0x1, %rdx
movq %rdx, 0x78(%rsp)
callq 0x127e80
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movq 0xc0(%rsp), %rcx
subq 0x78(%rsp), %rcx
addq $0x1, %rcx
xorl %edx, %edx
divq %rcx
movq %rdx, 0x80(%rsp)
movq 0x80(%rsp), %rax
addq 0x78(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x78(%rsp), %rax
movq 0x48(%rsp), %rsi
movq 0xc0(%rsp), %rdi
xorl %ecx, %ecx
movl $0x1, %edx
cmpq %rdi, %rsi
cmovel %edx, %ecx
movslq %ecx, %rcx
subq %rcx, %rax
movq %rax, 0x40(%rsp)
movq 0x90(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq 0x60(%rsp), %rcx
callq 0x220530
movq 0x58(%rsp), %rdi
movq 0x108(%rsp), %rsi
movl 0x150(%rsp), %edx
movq 0x80(%rsp), %rcx
callq 0xabdb0
movq $0x0, 0x50(%rsp)
movq 0x50(%rsp), %rax
cmpq 0x40(%rsp), %rax
jae 0x227cad
movq 0x58(%rsp), %rdi
callq 0xaae30
movb %al, 0x3f(%rsp)
movq 0x60(%rsp), %rax
movq 0x50(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x3e(%rsp)
movzbl 0x3e(%rsp), %eax
movzbl 0x3f(%rsp), %ecx
cmpl %ecx, %eax
je 0x227c98
movq 0x240(%rsp), %rdi
movq 0x80(%rsp), %rdx
addq 0x50(%rsp), %rdx
movzbl 0x3e(%rsp), %ecx
movzbl 0x3f(%rsp), %r8d
leaq 0x34db80(%rip), %rsi    # 0x575804
movb $0x0, %al
callq 0xd88c0
movl $0xfffffff9, 0xc8(%rsp) # imm = 0xFFFFFFF9
jmp 0x227cad
jmp 0x227c9a
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x227c24
jmp 0x227caf
movq 0x50(%rsp), %rax
cmpq 0x78(%rsp), %rax
jae 0x227d2a
movb $-0x2, 0x3d(%rsp)
movq 0x60(%rsp), %rax
movq 0x50(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x3c(%rsp)
movzbl 0x3c(%rsp), %eax
movzbl 0x3d(%rsp), %ecx
cmpl %ecx, %eax
je 0x227d1a
movq 0x240(%rsp), %rdi
movq 0x80(%rsp), %rdx
addq 0x50(%rsp), %rdx
movzbl 0x3c(%rsp), %ecx
movzbl 0x3d(%rsp), %r8d
leaq 0x34dafe(%rip), %rsi    # 0x575804
movb $0x0, %al
callq 0xd88c0
movl $0xfffffff9, 0xc8(%rsp) # imm = 0xFFFFFFF9
jmp 0x227d2a
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x227caf
jmp 0x227d2c
movq 0x88(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x88(%rsp)
jmp 0x227b26
cmpl $0x0, 0xc8(%rsp)
jne 0x227d65
movq 0x41424a(%rip), %rax    # 0x63bfa0
movq (%rax), %rsi
leaq 0x34db90(%rip), %rdi    # 0x5758f0
callq 0x19810
movq 0x58(%rsp), %rdi
callq 0xac3f0
movq 0x60(%rsp), %rdi
leaq 0x34d744(%rip), %rsi    # 0x5754bf
movl $0x2a6, %edx            # imm = 0x2A6
callq 0xe88c0
movq 0x90(%rsp), %rdi
callq 0x2204c0
jmp 0x227d94
testb $0x1, 0xcf(%rsp)
je 0x227dab
leaq 0x108(%rsp), %rdi
callq 0x233320
testb $0x1, 0xce(%rsp)
je 0x227dc2
leaq 0xd0(%rsp), %rdi
callq 0x227100
movl 0xc8(%rsp), %eax
addq $0x238, %rsp            # imm = 0x238
retq
nopw %cs:(%rax,%rax)