// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: selectInnerLoop
static void selectInnerLoop(
  Parse *pParse,          /* The parser context */
  Select *p,              /* The complete select statement being coded */
  ExprList *pEList,       /* List of values being extracted */
  int srcTab,             /* Pull data from this table */
  SortCtx *pSort,         /* If not NULL, info on how to process ORDER BY */
  DistinctCtx *pDistinct, /* If not NULL, info on how to process DISTINCT */
  SelectDest *pDest,      /* How to dispose of the results */
  int iContinue,          /* Jump here to continue with next row */
  int iBreak              /* Jump here to break out of the inner loop */
){
  Vdbe *v = pParse->pVdbe;
  int i;
  int hasDistinct;        /* True if the DISTINCT keyword is present */
  int regResult;              /* Start of memory holding result set */
  int eDest = pDest->eDest;   /* How to dispose of results */
  int iParm = pDest->iSDParm; /* First argument to disposal method */
  int nResultCol;             /* Number of result columns */
  int nPrefixReg = 0;         /* Number of extra registers before regResult */

  assert( v );
  assert( pEList!=0 );
  hasDistinct = pDistinct ? pDistinct->eTnctType : WHERE_DISTINCT_NOOP;
  if( pSort && pSort->pOrderBy==0 ) pSort = 0;
  if( pSort==0 && !hasDistinct ){
    assert( iContinue!=0 );
    codeOffset(v, p->iOffset, iContinue);
  }

  /* Pull the requested columns.
  */
  nResultCol = pEList->nExpr;

  if( pDest->iSdst==0 ){
    if( pSort ){
      nPrefixReg = pSort->pOrderBy->nExpr;
      if( !(pSort->sortFlags & SORTFLAG_UseSorter) ) nPrefixReg++;
      pParse->nMem += nPrefixReg;
    }
    pDest->iSdst = pParse->nMem+1;
    pParse->nMem += nResultCol;
  }else if( pDest->iSdst+nResultCol > pParse->nMem ){
    /* This is an error condition that can result, for example, when a SELECT
    ** on the right-hand side of an INSERT contains more result columns than
    ** there are columns in the table on the left.  The error will be caught
    ** and reported later.  But we need to make sure enough memory is allocated
    ** to avoid other spurious errors in the meantime. */
    pParse->nMem += nResultCol;
  }
  pDest->nSdst = nResultCol;
  regResult = pDest->iSdst;
  if( srcTab>=0 ){
    for(i=0; i<nResultCol; i++){
      sqlite3VdbeAddOp3(v, OP_Column, srcTab, i, regResult+i);
      VdbeComment((v, "%s", pEList->a[i].zName));
    }
  }else if( eDest!=SRT_Exists ){
    /* If the destination is an EXISTS(...) expression, the actual
    ** values returned by the SELECT are not required.
    */
    u8 ecelFlags;
    if( eDest==SRT_Mem || eDest==SRT_Output || eDest==SRT_Coroutine ){
      ecelFlags = SQLITE_ECEL_DUP;
    }else{
      ecelFlags = 0;
    }
    sqlite3ExprCodeExprList(pParse, pEList, regResult, 0, ecelFlags);
  }

  /* If the DISTINCT keyword was present on the SELECT statement
  ** and this row has been seen before, then do not make this row
  ** part of the result.
  */
  if( hasDistinct ){
    switch( pDistinct->eTnctType ){
      case WHERE_DISTINCT_ORDERED: {
        VdbeOp *pOp;            /* No longer required OpenEphemeral instr. */
        int iJump;              /* Jump destination */
        int regPrev;            /* Previous row content */

        /* Allocate space for the previous row */
        regPrev = pParse->nMem+1;
        pParse->nMem += nResultCol;

        /* Change the OP_OpenEphemeral coded earlier to an OP_Null
        ** sets the MEM_Cleared bit on the first register of the
        ** previous value.  This will cause the OP_Ne below to always
        ** fail on the first iteration of the loop even if the first
        ** row is all NULLs.
        */
        sqlite3VdbeChangeToNoop(v, pDistinct->addrTnct);
        pOp = sqlite3VdbeGetOp(v, pDistinct->addrTnct);
        pOp->opcode = OP_Null;
        pOp->p1 = 1;
        pOp->p2 = regPrev;

        iJump = sqlite3VdbeCurrentAddr(v) + nResultCol;
        for(i=0; i<nResultCol; i++){
          CollSeq *pColl = sqlite3ExprCollSeq(pParse, pEList->a[i].pExpr);
          if( i<nResultCol-1 ){
            sqlite3VdbeAddOp3(v, OP_Ne, regResult+i, iJump, regPrev+i);
            VdbeCoverage(v);
          }else{
            sqlite3VdbeAddOp3(v, OP_Eq, regResult+i, iContinue, regPrev+i);
            VdbeCoverage(v);
           }
          sqlite3VdbeChangeP4(v, -1, (const char *)pColl, P4_COLLSEQ);
          sqlite3VdbeChangeP5(v, SQLITE_NULLEQ);
        }
        assert( sqlite3VdbeCurrentAddr(v)==iJump || pParse->db->mallocFailed );
        sqlite3VdbeAddOp3(v, OP_Copy, regResult, regPrev, nResultCol-1);
        break;
      }

      case WHERE_DISTINCT_UNIQUE: {
        sqlite3VdbeChangeToNoop(v, pDistinct->addrTnct);
        break;
      }

      default: {
        assert( pDistinct->eTnctType==WHERE_DISTINCT_UNORDERED );
        codeDistinct(pParse, pDistinct->tabTnct, iContinue, nResultCol,
                     regResult);
        break;
      }
    }
    if( pSort==0 ){
      codeOffset(v, p->iOffset, iContinue);
    }
  }

  switch( eDest ){
    /* In this mode, write each query result to the key of the temporary
    ** table iParm.
    */
#ifndef SQLITE_OMIT_COMPOUND_SELECT
    case SRT_Union: {
      int r1;
      r1 = sqlite3GetTempReg(pParse);
      sqlite3VdbeAddOp3(v, OP_MakeRecord, regResult, nResultCol, r1);
      sqlite3VdbeAddOp2(v, OP_IdxInsert, iParm, r1);
      sqlite3ReleaseTempReg(pParse, r1);
      break;
    }

    /* Construct a record from the query result, but instead of
    ** saving that record, use it as a key to delete elements from
    ** the temporary table iParm.
    */
    case SRT_Except: {
      sqlite3VdbeAddOp3(v, OP_IdxDelete, iParm, regResult, nResultCol);
      break;
    }
#endif /* SQLITE_OMIT_COMPOUND_SELECT */

    /* Store the result as data using a unique key.
    */
    case SRT_Fifo:
    case SRT_DistFifo:
    case SRT_Table:
    case SRT_EphemTab: {
      int r1 = sqlite3GetTempRange(pParse, nPrefixReg+1);
      testcase( eDest==SRT_Table );
      testcase( eDest==SRT_EphemTab );
      testcase( eDest==SRT_Fifo );
      testcase( eDest==SRT_DistFifo );
      sqlite3VdbeAddOp3(v, OP_MakeRecord, regResult, nResultCol, r1+nPrefixReg);
#ifndef SQLITE_OMIT_CTE
      if( eDest==SRT_DistFifo ){
        /* If the destination is DistFifo, then cursor (iParm+1) is open
        ** on an ephemeral index. If the current row is already present
        ** in the index, do not write it to the output. If not, add the
        ** current row to the index and proceed with writing it to the
        ** output table as well.  */
        int addr = sqlite3VdbeCurrentAddr(v) + 4;
        sqlite3VdbeAddOp4Int(v, OP_Found, iParm+1, addr, r1, 0);
        VdbeCoverage(v);
        sqlite3VdbeAddOp2(v, OP_IdxInsert, iParm+1, r1);
        assert( pSort==0 );
      }
#endif
      if( pSort ){
        pushOntoSorter(pParse, pSort, p, r1+nPrefixReg,regResult,1,nPrefixReg);
      }else{
        int r2 = sqlite3GetTempReg(pParse);
        sqlite3VdbeAddOp2(v, OP_NewRowid, iParm, r2);
        sqlite3VdbeAddOp3(v, OP_Insert, iParm, r1, r2);
        sqlite3VdbeChangeP5(v, OPFLAG_APPEND);
        sqlite3ReleaseTempReg(pParse, r2);
      }
      sqlite3ReleaseTempRange(pParse, r1, nPrefixReg+1);
      break;
    }

#ifndef SQLITE_OMIT_SUBQUERY
    /* If we are creating a set for an "expr IN (SELECT ...)" construct,
    ** then there should be a single item on the stack.  Write this
    ** item into the set table with bogus data.
    */
    case SRT_Set: {
      assert( nResultCol==1 );
      pDest->affSdst =
                  sqlite3CompareAffinity(pEList->a[0].pExpr, pDest->affSdst);
      if( pSort ){
        /* At first glance you would think we could optimize out the
        ** ORDER BY in this case since the order of entries in the set
        ** does not matter.  But there might be a LIMIT clause, in which
        ** case the order does matter */
        pushOntoSorter(pParse, pSort, p, regResult, regResult, 1, nPrefixReg);
      }else{
        int r1 = sqlite3GetTempReg(pParse);
        sqlite3VdbeAddOp4(v, OP_MakeRecord, regResult,1,r1, &pDest->affSdst, 1);
        sqlite3ExprCacheAffinityChange(pParse, regResult, 1);
        sqlite3VdbeAddOp2(v, OP_IdxInsert, iParm, r1);
        sqlite3ReleaseTempReg(pParse, r1);
      }
      break;
    }

    /* If any row exist in the result set, record that fact and abort.
    */
    case SRT_Exists: {
      sqlite3VdbeAddOp2(v, OP_Integer, 1, iParm);
      /* The LIMIT clause will terminate the loop for us */
      break;
    }

    /* If this is a scalar select that is part of an expression, then
    ** store the results in the appropriate memory cell and break out
    ** of the scan loop.
    */
    case SRT_Mem: {
      assert( nResultCol==1 );
      if( pSort ){
        pushOntoSorter(pParse, pSort, p, regResult, regResult, 1, nPrefixReg);
      }else{
        assert( regResult==iParm );
        /* The LIMIT clause will jump out of the loop for us */
      }
      break;
    }
#endif /* #ifndef SQLITE_OMIT_SUBQUERY */

    case SRT_Coroutine:       /* Send data to a co-routine */
    case SRT_Output: {        /* Return the results */
      testcase( eDest==SRT_Coroutine );
      testcase( eDest==SRT_Output );
      if( pSort ){
        pushOntoSorter(pParse, pSort, p, regResult, regResult, nResultCol,
                       nPrefixReg);
      }else if( eDest==SRT_Coroutine ){
        sqlite3VdbeAddOp1(v, OP_Yield, pDest->iSDParm);
      }else{
        sqlite3VdbeAddOp2(v, OP_ResultRow, regResult, nResultCol);
        sqlite3ExprCacheAffinityChange(pParse, regResult, nResultCol);
      }
      break;
    }

#ifndef SQLITE_OMIT_CTE
    /* Write the results into a priority queue that is order according to
    ** pDest->pOrderBy (in pSO).  pDest->iSDParm (in iParm) is the cursor for an
    ** index with pSO->nExpr+2 columns.  Build a key using pSO for the first
    ** pSO->nExpr columns, then make sure all keys are unique by adding a
    ** final OP_Sequence column.  The last column is the record as a blob.
    */
    case SRT_DistQueue:
    case SRT_Queue: {
      int nKey;
      int r1, r2, r3;
      int addrTest = 0;
      ExprList *pSO;
      pSO = pDest->pOrderBy;
      assert( pSO );
      nKey = pSO->nExpr;
      r1 = sqlite3GetTempReg(pParse);
      r2 = sqlite3GetTempRange(pParse, nKey+2);
      r3 = r2+nKey+1;
      if( eDest==SRT_DistQueue ){
        /* If the destination is DistQueue, then cursor (iParm+1) is open
        ** on a second ephemeral index that holds all values every previously
        ** added to the queue. */
        addrTest = sqlite3VdbeAddOp4Int(v, OP_Found, iParm+1, 0, 
                                        regResult, nResultCol);
        VdbeCoverage(v);
      }
      sqlite3VdbeAddOp3(v, OP_MakeRecord, regResult, nResultCol, r3);
      if( eDest==SRT_DistQueue ){
        sqlite3VdbeAddOp2(v, OP_IdxInsert, iParm+1, r3);
        sqlite3VdbeChangeP5(v, OPFLAG_USESEEKRESULT);
      }
      for(i=0; i<nKey; i++){
        sqlite3VdbeAddOp2(v, OP_SCopy,
                          regResult + pSO->a[i].u.x.iOrderByCol - 1,
                          r2+i);
      }
      sqlite3VdbeAddOp2(v, OP_Sequence, iParm, r2+nKey);
      sqlite3VdbeAddOp3(v, OP_MakeRecord, r2, nKey+2, r1);
      sqlite3VdbeAddOp2(v, OP_IdxInsert, iParm, r1);
      if( addrTest ) sqlite3VdbeJumpHere(v, addrTest);
      sqlite3ReleaseTempReg(pParse, r1);
      sqlite3ReleaseTempRange(pParse, r2, nKey+2);
      break;
    }
#endif /* SQLITE_OMIT_CTE */



#if !defined(SQLITE_OMIT_TRIGGER)
    /* Discard the results.  This is used for SELECT statements inside
    ** the body of a TRIGGER.  The purpose of such selects is to call
    ** user-defined functions that have side effects.  We do not care
    ** about the actual results of the select.
    */
    default: {
      assert( eDest==SRT_Discard );
      break;
    }
#endif
  }

  /* Jump to the end of the loop if the LIMIT is reached.  Except, if
  ** there is a sorter, in which case the sorter has already limited
  ** the output for us.
  */
  if( pSort==0 && p->iLimit ){
    sqlite3VdbeAddOp2(v, OP_DecrJumpZero, p->iLimit, iBreak); VdbeCoverage(v);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r8, %r13
movl %ecx, %r14d
movq %rdx, -0x38(%rbp)
movq %rsi, %rbx
movq %rdi, %r12
testq %r9, %r9
je 0x5e1e6
cmpb $0x0, 0x1(%r9)
setne %dl
jmp 0x5e1e8
xorl %edx, %edx
movq 0x10(%rbp), %rcx
testq %r13, %r13
je 0x5e1fe
movq (%r13), %rax
testq %rax, %rax
cmoveq %rax, %r13
jmp 0x5e201
xorl %r13d, %r13d
movl 0x20(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl 0x18(%rbp), %eax
movl %eax, -0x88(%rbp)
movq 0x10(%r12), %rax
movq %rax, -0x30(%rbp)
movzbl (%rcx), %eax
movq %rax, -0x58(%rbp)
movq %rcx, -0x48(%rbp)
movl 0x4(%rcx), %eax
movq %rax, -0x50(%rbp)
testq %r13, %r13
setne %al
movl %edx, -0x68(%rbp)
orb %dl, %al
testb $0x1, %al
movq %r9, -0x70(%rbp)
jne 0x5e262
movl 0x10(%rbx), %edx
testl %edx, %edx
jle 0x5e262
movq -0x30(%rbp), %rdi
movl $0x8b, %esi
movl -0x88(%rbp), %ecx
movl $0x1, %r8d
callq 0x3ea9f
movq %rbx, -0x80(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %r15d
movq -0x48(%rbp), %rdx
movl 0x8(%rdx), %ebx
testl %ebx, %ebx
movq %r12, -0x78(%rbp)
je 0x5e298
leal (%rbx,%r15), %ecx
movl 0x54(%r12), %eax
movq $0x0, -0x40(%rbp)
cmpl %eax, %ecx
jle 0x5e2da
leaq 0x54(%r12), %rcx
jmp 0x5e2d5
testq %r13, %r13
je 0x5e2bd
movq (%r13), %rax
movl 0x20(%r13), %edx
notl %edx
andl $0x1, %edx
addl (%rax), %edx
movl 0x54(%r12), %eax
movq %rdx, -0x40(%rbp)
addl %edx, %eax
movq -0x48(%rbp), %rdx
jmp 0x5e2ca
movl 0x54(%r12), %eax
movq $0x0, -0x40(%rbp)
leaq 0x54(%r12), %rcx
leal 0x1(%rax), %ebx
movl %ebx, 0x8(%rdx)
addl %r15d, %eax
movl %eax, (%rcx)
movq %r13, -0x60(%rbp)
movl %r15d, 0xc(%rdx)
testl %r14d, %r14d
js 0x5e314
testl %r15d, %r15d
movq -0x30(%rbp), %r12
jle 0x5e344
xorl %r13d, %r13d
leal (%rbx,%r13), %r8d
movq %r12, %rdi
movl $0x30, %esi
movl %r14d, %edx
movl %r13d, %ecx
callq 0x3ea9f
incl %r13d
cmpl %r13d, %r15d
jne 0x5e2f3
jmp 0x5e344
movb $0x1, %al
movq -0x58(%rbp), %rdx
leal -0x9(%rdx), %ecx
cmpl $0x2, %ecx
jb 0x5e32f
cmpl $0x3, %edx
je 0x5e344
cmpl $0xd, -0x58(%rbp)
je 0x5e32f
xorl %eax, %eax
movzbl %al, %r8d
movq -0x78(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0x51995
cmpb $0x0, -0x68(%rbp)
movq -0x78(%rbp), %r12
je 0x5e522
movq -0x70(%rbp), %rcx
movzbl 0x1(%rcx), %eax
cmpl $0x1, %eax
je 0x5e3b4
cmpl $0x2, %eax
movq -0x60(%rbp), %r14
jne 0x5e3c5
movq %r15, %rax
movl 0x54(%r12), %r15d
movq %rax, -0x68(%rbp)
addl %r15d, %eax
movl %eax, 0x54(%r12)
movl 0x8(%rcx), %esi
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq %rcx, %r13
callq 0x14c6f
movl 0x8(%r13), %eax
testl %eax, %eax
jns 0x5e39c
movl 0x3c(%r14), %eax
decl %eax
incl %r15d
movq (%r14), %rcx
cmpb $0x0, 0x51(%rcx)
movq %r15, %r13
je 0x5e3e1
leaq 0x35146(%rip), %rax     # 0x934f8
jmp 0x5e3ef
movl 0x8(%rcx), %esi
movq -0x30(%rbp), %rdi
callq 0x14c6f
jmp 0x5e4f4
movl 0x4(%rcx), %esi
movq %r12, %rdi
movl -0x88(%rbp), %edx
movl %r15d, %ecx
movl %ebx, %r8d
callq 0x68eb3
jmp 0x5e4f8
cltq
leaq (%rax,%rax,2), %rax
shlq $0x3, %rax
addq 0x8(%r14), %rax
movq -0x68(%rbp), %r15
movb $0x1a, (%rax)
movl $0x1, 0x4(%rax)
movl %r13d, 0x8(%rax)
testl %r15d, %r15d
jle 0x5e4dd
movl 0x3c(%r14), %eax
addl %r15d, %eax
movl %eax, -0x90(%rbp)
leal -0x1(%r15), %eax
movq %rax, -0x70(%rbp)
xorl %r12d, %r12d
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %r12, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq -0x78(%rbp), %rdi
callq 0x51845
movq %rax, %r14
movq %r13, %r15
leal (%r12,%r13), %r8d
leal (%rbx,%r12), %edx
cmpq -0x70(%rbp), %r12
jae 0x5e466
movq -0x30(%rbp), %r13
movq %r13, %rdi
movl $0x4e, %esi
movl -0x90(%rbp), %ecx
jmp 0x5e478
movq -0x30(%rbp), %r13
movq %r13, %rdi
movl $0x4f, %esi
movl -0x88(%rbp), %ecx
callq 0x3ea9f
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r14, %rdx
movl $0xfffffffc, %ecx       # imm = 0xFFFFFFFC
callq 0x14b4f
movq (%r13), %rax
cmpb $0x0, 0x51(%rax)
leaq 0x35057(%rip), %rax     # 0x934f8
jne 0x5e4bb
movq -0x30(%rbp), %rcx
movslq 0x3c(%rcx), %rax
movq 0x8(%rcx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movb $-0x80, 0x3(%rax)
incq %r12
cmpq -0x68(%rbp), %r12
movq %r15, %r13
jne 0x5e422
movq -0x78(%rbp), %r12
movq -0x68(%rbp), %r15
movq -0x70(%rbp), %r8
jmp 0x5e4e1
leal -0x1(%r15), %r8d
movq -0x30(%rbp), %rdi
movl $0x1f, %esi
movl %ebx, %edx
movl %r13d, %ecx
callq 0x3ea9f
movq -0x60(%rbp), %r14
testq %r14, %r14
jne 0x5e522
movq -0x80(%rbp), %rax
movl 0x10(%rax), %edx
testl %edx, %edx
jle 0x5e522
movq -0x30(%rbp), %rdi
movl $0x8b, %esi
movl -0x88(%rbp), %ecx
movl $0x1, %r8d
callq 0x3ea9f
movq -0x58(%rbp), %rdx
leal -0x1(%rdx), %eax
cmpl $0xd, %eax
ja 0x5eb8c
leaq 0x19d3b(%rip), %rcx     # 0x78274
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x40(%rbp), %rcx
leal 0x1(%rcx), %edx
movl 0x44(%r12), %eax
cmpl %ecx, %eax
movq %rdx, -0x38(%rbp)
jle 0x5e5a2
movl 0x48(%r12), %r13d
leal (%rdx,%r13), %ecx
movl %ecx, 0x48(%r12)
subl %edx, %eax
movl %eax, 0x44(%r12)
jmp 0x5e5b2
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rcx
movl (%rcx), %esi
movb 0x1f(%r12), %al
testb %al, %al
movq %rcx, -0x88(%rbp)
je 0x5e797
decb %al
movb %al, 0x1f(%r12)
movzbl %al, %eax
movl 0x24(%r12,%rax,4), %eax
movl %eax, -0x70(%rbp)
jmp 0x5e7a6
movl 0x54(%r12), %eax
leal 0x1(%rax), %r13d
addl %edx, %eax
movl %eax, 0x54(%r12)
movq -0x40(%rbp), %rax
leal (%rax,%r13), %r14d
movq -0x30(%rbp), %rdi
movl $0x32, %esi
movl %ebx, %edx
movl %r15d, %ecx
movl %r14d, %r8d
callq 0x3ea9f
cmpl $0x6, -0x58(%rbp)
jne 0x5e628
movq -0x30(%rbp), %r12
movl 0x3c(%r12), %ecx
addl $0x4, %ecx
movq -0x50(%rbp), %rax
leal 0x1(%rax), %r15d
movq %r12, %rdi
movl $0x49, %esi
movl %r15d, %edx
movl %r13d, %r8d
callq 0x3ea9f
movq %r12, %rdi
movl %eax, %esi
xorl %edx, %edx
movl $0xfffffff2, %ecx       # imm = 0xFFFFFFF2
callq 0x14b4f
movq %r12, %rdi
movq -0x78(%rbp), %r12
movl $0x70, %esi
movl %r15d, %edx
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq -0x60(%rbp), %rsi
testq %rsi, %rsi
je 0x5e6a8
movq -0x40(%rbp), %rax
movl %eax, (%rsp)
movq %r12, %rdi
movq -0x80(%rbp), %rdx
movl %r14d, %ecx
movl %ebx, %r8d
movl $0x1, %r9d
callq 0x68f92
movq -0x38(%rbp), %r14
movq %r12, %rdi
movl %r13d, %esi
movl %r14d, %edx
callq 0x51780
movq -0x40(%rbp), %rax
cmpl %eax, 0x44(%r12)
jg 0x5eb8c
movl %r14d, 0x44(%r12)
movl %r13d, 0x48(%r12)
jmp 0x5eb8c
movq -0x60(%rbp), %rsi
testq %rsi, %rsi
je 0x5e898
movq -0x40(%rbp), %rax
movl %eax, (%rsp)
movq %r12, %rdi
movq -0x80(%rbp), %rdx
movl %ebx, %ecx
movl %ebx, %r8d
movl %r15d, %r9d
jmp 0x5e739
movb 0x1f(%r12), %al
testb %al, %al
je 0x5e8c0
decb %al
movb %al, 0x1f(%r12)
movzbl %al, %eax
movl 0x24(%r12,%rax,4), %ebx
jmp 0x5e8cc
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
movq -0x48(%rbp), %r13
movsbl 0x1(%r13), %esi
callq 0x54209
movb %al, 0x1(%r13)
movq -0x60(%rbp), %rsi
testq %rsi, %rsi
jne 0x5e720
incq %r13
movb 0x1f(%r12), %al
testb %al, %al
je 0x5ebea
decb %al
movb %al, 0x1f(%r12)
movzbl %al, %eax
movl 0x24(%r12,%rax,4), %r14d
jmp 0x5ebf7
movq -0x60(%rbp), %rsi
testq %rsi, %rsi
je 0x5eb93
movq -0x40(%rbp), %rax
movl %eax, (%rsp)
movq %r12, %rdi
movq -0x80(%rbp), %rdx
movl %ebx, %ecx
movl %ebx, %r8d
movl $0x1, %r9d
callq 0x68f92
jmp 0x5ebc3
movb 0x1f(%r12), %al
testb %al, %al
je 0x5eaca
decb %al
movb %al, 0x1f(%r12)
movzbl %al, %eax
movl 0x24(%r12,%rax,4), %r14d
jmp 0x5ead7
movq -0x30(%rbp), %rdi
movl $0x17, %esi
movl $0x1, %edx
movq -0x50(%rbp), %rcx
xorl %r8d, %r8d
jmp 0x5e78d
movq -0x30(%rbp), %rdi
movl $0x71, %esi
movq -0x50(%rbp), %rdx
movl %ebx, %ecx
movl %r15d, %r8d
callq 0x3ea9f
jmp 0x5eb8c
movl 0x54(%r12), %eax
incl %eax
movl %eax, -0x70(%rbp)
movl %eax, 0x54(%r12)
leal 0x2(%rsi), %ecx
movl 0x44(%r12), %eax
subl %ecx, %eax
movq %rcx, -0x68(%rbp)
jge 0x5e7c7
movl 0x54(%r12), %eax
leal 0x1(%rax), %edx
addl %ecx, %eax
movl %eax, 0x54(%r12)
jmp 0x5e7d8
movl 0x48(%r12), %edx
addl %edx, %ecx
movl %ecx, 0x48(%r12)
movl %eax, 0x44(%r12)
movq %rdx, -0x38(%rbp)
movq %rsi, %r14
leal (%rdx,%rsi), %r13d
incl %r13d
cmpl $0x8, -0x58(%rbp)
jne 0x5e872
movslq %r15d, %rax
movq %rax, -0x40(%rbp)
movq -0x50(%rbp), %rax
leal 0x1(%rax), %edx
movl %edx, -0x48(%rbp)
movq -0x30(%rbp), %r12
movq %r12, %rdi
movl $0x49, %esi
xorl %ecx, %ecx
movl %ebx, %r8d
callq 0x3ea9f
movq %r12, %rdi
movl %eax, -0x58(%rbp)
movl %eax, %esi
movq -0x40(%rbp), %rdx
movl $0xfffffff2, %ecx       # imm = 0xFFFFFFF2
callq 0x14b4f
movq %r12, %rdi
movl $0x32, %esi
movl %ebx, %edx
movl %r15d, %ecx
movl %r13d, %r8d
callq 0x3ea9f
movq %r12, %rdi
movl $0x70, %esi
movl -0x48(%rbp), %edx
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq (%r12), %rax
cmpb $0x0, 0x51(%rax)
je 0x5e973
leaq 0x34c8b(%rip), %rax     # 0x934f8
jmp 0x5e989
movq -0x30(%rbp), %rdi
movl $0x32, %esi
movl %ebx, %edx
movl %r15d, %ecx
movl %r13d, %r8d
callq 0x3ea9f
movl $0x0, -0x58(%rbp)
movq -0x38(%rbp), %rcx
jmp 0x5e991
cmpl $0xd, %edx
jne 0x5eb43
movq -0x48(%rbp), %rax
movl 0x4(%rax), %edx
movq -0x30(%rbp), %rdi
movl $0x14, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
jmp 0x5eb93
movl 0x54(%r12), %ebx
incl %ebx
movl %ebx, 0x54(%r12)
movq -0x30(%rbp), %r14
movq %r14, %rdi
movl $0x54, %esi
movq -0x50(%rbp), %r15
movl %r15d, %edx
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq %r14, %rdi
movl $0x5f, %esi
movl %r15d, %edx
movl %r13d, %ecx
movl %ebx, %r8d
callq 0x3ea9f
movq (%r14), %rax
cmpb $0x0, 0x51(%rax)
je 0x5e911
leaq 0x34be9(%rip), %rax     # 0x934f8
jmp 0x5e925
movslq 0x3c(%r14), %rax
movq 0x8(%r14), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movq -0x38(%rbp), %r14
movb $0x8, 0x3(%rax)
testl %ebx, %ebx
je 0x5e654
movzbl 0x1f(%r12), %eax
cmpq $0x7, %rax
ja 0x5e654
xorl %ecx, %ecx
cmpl %ebx, 0x94(%r12,%rcx)
je 0x5ebd2
addq $0x14, %rcx
cmpl $0xc8, %ecx
jne 0x5e947
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%r12)
movl %ebx, 0x24(%r12,%rax,4)
jmp 0x5e654
movslq 0x3c(%r12), %rax
movq 0x8(%r12), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movq -0x38(%rbp), %rcx
movb $0x10, 0x3(%rax)
movq %r14, %rsi
leal (%rcx,%r14), %eax
movl %eax, -0x48(%rbp)
testl %esi, %esi
movq -0x30(%rbp), %r15
movq -0x88(%rbp), %r14
jle 0x5e9f5
decl %ebx
shlq $0x5, %rsi
xorl %r12d, %r12d
movq -0x38(%rbp), %rax
movl %eax, %r13d
movq 0x8(%r14), %rax
movzwl 0x1c(%rax,%r12), %edx
addl %ebx, %edx
movq %r15, %rdi
movq %rbx, %r15
movq %rsi, %rbx
movl $0x20, %esi
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq %rbx, %rsi
movq %r15, %rbx
movq -0x30(%rbp), %r15
incl %r13d
addq $0x20, %r12
cmpq %r12, %rsi
jne 0x5e9ba
movq %r15, %rdi
movl $0x4b, %esi
movq -0x50(%rbp), %rbx
movl %ebx, %edx
movl -0x48(%rbp), %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq %r15, %rdi
movl $0x32, %esi
movq -0x38(%rbp), %r13
movl %r13d, %edx
movq -0x68(%rbp), %r14
movl %r14d, %ecx
movl -0x70(%rbp), %r12d
movl %r12d, %r8d
callq 0x3ea9f
movq %r15, %rdi
movl $0x70, %esi
movl %ebx, %edx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movl -0x58(%rbp), %esi
testl %esi, %esi
movq -0x78(%rbp), %rbx
je 0x5ea87
movl 0x3c(%r15), %eax
leal -0x1(%rax), %ecx
movq 0x30(%r15), %rdx
movl %ecx, 0x68(%rdx)
movq (%r15), %rdx
cmpb $0x0, 0x51(%rdx)
je 0x5ea70
leaq 0x34a8a(%rip), %rcx     # 0x934f8
jmp 0x5ea84
testl %esi, %esi
cmovnsl %esi, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rcx
addq 0x8(%r15), %rcx
movl %eax, 0x8(%rcx)
testl %r12d, %r12d
je 0x5eb70
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x5eb70
xorl %ecx, %ecx
cmpl %r12d, 0x94(%rbx,%rcx)
je 0x5eb68
addq $0x14, %rcx
cmpl $0xc8, %ecx
jne 0x5eaa0
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %r12d, 0x24(%rbx,%rax,4)
jmp 0x5eb70
movl 0x54(%r12), %r14d
incl %r14d
movl %r14d, 0x54(%r12)
movq -0x30(%rbp), %r12
movq %r12, %rdi
movl $0x32, %esi
movl %ebx, %edx
movl %r15d, %ecx
movl %r14d, %r8d
callq 0x3ea9f
movq %r12, %rdi
movl $0x70, %esi
movq -0x50(%rbp), %rdx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
testl %r14d, %r14d
movq -0x78(%rbp), %rdx
je 0x5eb8c
movzbl 0x1f(%rdx), %eax
cmpq $0x7, %rax
ja 0x5eb8c
xorl %ecx, %ecx
cmpl %r14d, 0x94(%rdx,%rcx)
je 0x5ebe0
addq $0x14, %rcx
cmpl $0xc8, %ecx
jne 0x5eb1c
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rdx)
movl %r14d, 0x24(%rdx,%rax,4)
jmp 0x5eb8c
movq -0x30(%rbp), %rdi
movl $0x22, %esi
movl %ebx, %edx
movl %r15d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq %r12, %rdi
movl %ebx, %esi
movl %r15d, %edx
callq 0x51780
jmp 0x5eb93
movb $0x1, 0x8e(%rbx,%rcx)
movq %rbx, %rdi
movl %r13d, %esi
movl %r14d, %edx
callq 0x51780
cmpl %r14d, 0x44(%rbx)
jge 0x5eb8c
movl %r14d, 0x44(%rbx)
movl %r13d, 0x48(%rbx)
cmpq $0x0, -0x60(%rbp)
jne 0x5ebc3
movq -0x80(%rbp), %rax
movl 0xc(%rax), %edx
testl %edx, %edx
je 0x5ebc3
movq -0x30(%rbp), %rdi
movl $0x8e, %esi
movl -0x8c(%rbp), %ecx
xorl %r8d, %r8d
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3ea9f
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, 0x8e(%r12,%rcx)
jmp 0x5e654
movb $0x1, 0x8e(%rdx,%rcx)
jmp 0x5eb8c
movl 0x54(%r12), %r14d
incl %r14d
movl %r14d, 0x54(%r12)
movq -0x30(%rbp), %r15
movq %r15, %rdi
movl $0x32, %esi
movl %ebx, %edx
movl $0x1, %ecx
movl %r14d, %r8d
callq 0x3ea9f
movq %r15, %rdi
movl %eax, %esi
movq %r13, %rdx
movl $0x1, %ecx
callq 0x14b4f
movq %r12, %rdi
movl %ebx, %esi
movl $0x1, %edx
callq 0x51780
movq %r15, %rdi
movl $0x70, %esi
movq -0x50(%rbp), %rdx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
testl %r14d, %r14d
je 0x5eb93
movzbl 0x1f(%r12), %eax
cmpq $0x7, %rax
ja 0x5eb93
xorl %ecx, %ecx
cmpl %r14d, 0x94(%r12,%rcx)
je 0x5ec8d
addq $0x14, %rcx
cmpl $0xc8, %ecx
jne 0x5ec65
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%r12)
movl %r14d, 0x24(%r12,%rax,4)
jmp 0x5eb8c
movb $0x1, 0x8e(%r12,%rcx)
jmp 0x5eb8c