// File: /workspace/github_c_makefile_star2_O1/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 $0x88, %rsp
movq %r9, %rax
movq %r8, %rbx
movl %ecx, %r14d
movq %rdx, -0x78(%rbp)
movq %rsi, -0x88(%rbp)
testq %r9, %r9
je 0x5f79b
cmpb $0x0, 0x1(%rax)
setne %cl
jmp 0x5f79d
xorl %ecx, %ecx
movq 0x10(%rbp), %r9
testq %rbx, %rbx
movq %rax, -0x58(%rbp)
je 0x5f7b6
movq (%rbx), %rax
testq %rax, %rax
cmoveq %rax, %rbx
jmp 0x5f7b8
xorl %ebx, %ebx
movl 0x20(%rbp), %eax
movl %eax, -0x94(%rbp)
movl 0x18(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq 0x10(%rdi), %r13
movzbl (%r9), %eax
movq %rax, -0x70(%rbp)
movl 0x4(%r9), %eax
movq %rax, -0x60(%rbp)
testq %rbx, %rbx
setne %al
movl %ecx, %r12d
orb %cl, %al
testb $0x1, %al
movq %rdi, -0x38(%rbp)
jne 0x5f81c
movq -0x88(%rbp), %rax
movl 0x10(%rax), %edx
testl %edx, %edx
jle 0x5f81c
movq %r13, %rdi
movl $0x8b, %esi
movl -0x3c(%rbp), %ecx
movl $0x1, %r8d
movq %r9, %r15
callq 0x3fa9e
movq %r15, %r9
movq -0x38(%rbp), %rdi
movq -0x78(%rbp), %rax
movl (%rax), %r15d
movl 0x8(%r9), %ecx
testl %ecx, %ecx
movq %rbx, -0x90(%rbp)
je 0x5f84a
addl %r15d, %ecx
movl 0x54(%rdi), %eax
movq $0x0, -0x48(%rbp)
cmpl %eax, %ecx
jle 0x5f880
leaq 0x54(%rdi), %rcx
jmp 0x5f87b
testq %rbx, %rbx
je 0x5f865
movq (%rbx), %rax
movl 0x20(%rbx), %ecx
notl %ecx
andl $0x1, %ecx
addl (%rax), %ecx
movq %rcx, -0x48(%rbp)
addl %ecx, 0x54(%rdi)
jmp 0x5f86d
movq $0x0, -0x48(%rbp)
leaq 0x54(%rdi), %rcx
movl 0x54(%rdi), %eax
leal 0x1(%rax), %edx
movl %edx, 0x8(%r9)
addl %r15d, %eax
movl %eax, (%rcx)
movl %r15d, 0xc(%r9)
movq %r9, -0x80(%rbp)
movl 0x8(%r9), %r9d
testl %r14d, %r14d
movq %r13, -0x30(%rbp)
movq %r9, -0x50(%rbp)
js 0x5f8c9
testl %r15d, %r15d
jle 0x5f8fe
movq %r13, %rbx
xorl %r13d, %r13d
leal (%r9,%r13), %r8d
movq %rbx, %rdi
movl $0x30, %esi
movl %r14d, %edx
movl %r13d, %ecx
callq 0x3fa9e
movq -0x50(%rbp), %r9
incl %r13d
cmpl %r13d, %r15d
jne 0x5f8a4
jmp 0x5f8fe
movb $0x1, %al
movq -0x70(%rbp), %rdx
leal -0x9(%rdx), %ecx
cmpl $0x2, %ecx
jb 0x5f8e8
cmpl $0x3, %edx
je 0x5f8fe
cmpl $0xd, -0x70(%rbp)
movq -0x38(%rbp), %rdi
je 0x5f8e8
xorl %eax, %eax
movzbl %al, %r8d
movq -0x78(%rbp), %rsi
movl %r9d, %edx
xorl %ecx, %ecx
callq 0x52b74
movq -0x50(%rbp), %r9
movslq %r15d, %r14
testb %r12b, %r12b
movq -0x38(%rbp), %rdi
movq -0x70(%rbp), %rbx
je 0x5fae3
movq -0x58(%rbp), %rcx
movzbl 0x1(%rcx), %eax
cmpl $0x1, %eax
je 0x5f96e
cmpl $0x2, %eax
movq -0x30(%rbp), %r13
jne 0x5f97f
movl 0x54(%rdi), %ebx
leal (%rbx,%r15), %eax
movl %eax, 0x54(%rdi)
movq -0x58(%rbp), %r12
movl 0x8(%r12), %esi
movq %r13, %rdi
callq 0x14be2
movl 0x8(%r12), %eax
testl %eax, %eax
jns 0x5f952
movl 0x3c(%r13), %eax
decl %eax
incl %ebx
movq (%r13), %rcx
cmpb $0x0, 0x51(%rcx)
movq %r14, -0xa0(%rbp)
je 0x5f999
leaq 0x35b7c(%rip), %rax     # 0x954e8
jmp 0x5f9a7
movl 0x8(%rcx), %esi
movq -0x30(%rbp), %rdi
callq 0x14be2
jmp 0x5faa4
movq -0x58(%rbp), %rax
movl 0x4(%rax), %esi
movl -0x3c(%rbp), %edx
movl %r15d, %ecx
movl %r9d, %r8d
callq 0x6a46f
jmp 0x5faa4
cltq
leaq (%rax,%rax,2), %rax
shlq $0x3, %rax
addq 0x8(%r13), %rax
movq -0x38(%rbp), %rdi
movb $0x1a, (%rax)
movl $0x1, 0x4(%rax)
movq %rbx, -0x58(%rbp)
movl %ebx, 0x8(%rax)
testl %r15d, %r15d
jle 0x5fa80
movl 0x3c(%r13), %eax
addl %r15d, %eax
movl %eax, -0x64(%rbp)
movq -0xa0(%rbp), %rax
leaq -0x1(%rax), %r14
xorl %r12d, %r12d
movq -0x78(%rbp), %rax
movq 0x8(%rax), %rax
movq %r12, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
callq 0x529e4
movq %rax, %rbx
movq -0x58(%rbp), %rax
leal (%rax,%r12), %r8d
movq -0x50(%rbp), %rax
leal (%rax,%r12), %edx
cmpq %r14, %r12
jge 0x5fa1e
movq -0x30(%rbp), %r13
movq %r13, %rdi
movl $0x4e, %esi
movl -0x64(%rbp), %ecx
jmp 0x5fa2d
movq -0x30(%rbp), %r13
movq %r13, %rdi
movl $0x4f, %esi
movl -0x3c(%rbp), %ecx
callq 0x3fa9e
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %rbx, %rdx
movl $0xfffffffc, %ecx       # imm = 0xFFFFFFFC
callq 0x14ab9
movq (%r13), %rax
cmpb $0x0, 0x51(%rax)
leaq 0x35a92(%rip), %rax     # 0x954e8
jne 0x5fa6c
movslq 0x3c(%r13), %rax
movq 0x8(%r13), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movb $-0x80, 0x3(%rax)
incq %r12
cmpq %r15, %r12
movq -0x38(%rbp), %rdi
jne 0x5f9dd
leal -0x1(%r15), %r8d
movq %r13, %rdi
movl $0x1f, %esi
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq 0x3fa9e
movq -0x70(%rbp), %rbx
movq -0xa0(%rbp), %r14
cmpq $0x0, -0x90(%rbp)
movq -0x38(%rbp), %rdi
movq -0x50(%rbp), %r9
jne 0x5fae3
movq -0x88(%rbp), %rax
movl 0x10(%rax), %edx
testl %edx, %edx
jle 0x5fae3
movq -0x30(%rbp), %rdi
movl $0x8b, %esi
movl -0x3c(%rbp), %ecx
movl $0x1, %r8d
callq 0x3fa9e
movq -0x50(%rbp), %r9
movq -0x38(%rbp), %rdi
leal -0x1(%rbx), %eax
cmpl $0xd, %eax
ja 0x6014c
leaq 0x1a74a(%rip), %rcx     # 0x7a240
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x48(%rbp), %rcx
leal 0x1(%rcx), %r12d
movl 0x44(%rdi), %eax
cmpl %ecx, %eax
jle 0x5fb4e
movl 0x48(%rdi), %r13d
leal (%r12,%r13), %ecx
movl %ecx, 0x48(%rdi)
subl %r12d, %eax
movl %eax, 0x44(%rdi)
jmp 0x5fb5b
movq -0x80(%rbp), %rax
movq 0x10(%rax), %rcx
movl (%rcx), %edx
movb 0x1f(%rdi), %al
testb %al, %al
movq %rcx, -0x80(%rbp)
je 0x5fd40
decb %al
movb %al, 0x1f(%rdi)
movzbl %al, %eax
movl 0x24(%rdi,%rax,4), %eax
movl %eax, -0x64(%rbp)
jmp 0x5fd4b
movl 0x54(%rdi), %eax
leal 0x1(%rax), %r13d
addl %r12d, %eax
movl %eax, 0x54(%rdi)
movq -0x48(%rbp), %rax
leal (%rax,%r13), %r14d
movq -0x30(%rbp), %rdi
movl $0x32, %esi
movl %r9d, %edx
movl %r15d, %ecx
movl %r14d, %r8d
callq 0x3fa9e
cmpl $0x6, -0x70(%rbp)
jne 0x5fbcc
movq -0x30(%rbp), %rbx
movl 0x3c(%rbx), %ecx
addl $0x4, %ecx
movq -0x60(%rbp), %rax
leal 0x1(%rax), %r15d
movq %rbx, %rdi
movl $0x49, %esi
movl %r15d, %edx
movl %r13d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl %eax, %esi
xorl %edx, %edx
movl $0xfffffff2, %ecx       # imm = 0xFFFFFFF2
callq 0x14ab9
movq %rbx, %rdi
movl $0x70, %esi
movl %r15d, %edx
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq -0x90(%rbp), %rsi
testq %rsi, %rsi
movq -0x38(%rbp), %rcx
je 0x5fc59
movq -0x48(%rbp), %rax
movl %eax, (%rsp)
movq -0x38(%rbp), %rdi
movq -0x88(%rbp), %rdx
movl %r14d, %ecx
movq -0x50(%rbp), %r8
movl $0x1, %r9d
callq 0x6a54e
movq -0x38(%rbp), %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x5291f
movq -0x38(%rbp), %rax
movq -0x48(%rbp), %rcx
cmpl %ecx, 0x44(%rax)
jg 0x6014c
movl %r12d, 0x44(%rax)
movl %r13d, 0x48(%rax)
jmp 0x6014c
movq -0x90(%rbp), %rsi
testq %rsi, %rsi
je 0x5fe28
movq -0x48(%rbp), %rax
movl %eax, (%rsp)
movq -0x88(%rbp), %rdx
movl %r9d, %ecx
movl %r9d, %r8d
movl %r15d, %r9d
jmp 0x5fcea
movb 0x1f(%rcx), %al
testb %al, %al
je 0x5fe50
decb %al
movb %al, 0x1f(%rcx)
movzbl %al, %eax
movl 0x24(%rcx,%rax,4), %ebx
jmp 0x5fe58
movq -0x78(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
movq -0x80(%rbp), %rbx
movsbl 0x1(%rbx), %esi
callq 0x553ef
movb %al, 0x1(%rbx)
movq -0x90(%rbp), %rsi
testq %rsi, %rsi
je 0x5fef9
movq -0x48(%rbp), %rax
movl %eax, (%rsp)
movq -0x38(%rbp), %rdi
movq -0x88(%rbp), %rdx
movq -0x50(%rbp), %rcx
movl %ecx, %r8d
jmp 0x5fce4
cmpq $0x0, -0x90(%rbp)
je 0x6014c
movq -0x48(%rbp), %rax
movl %eax, (%rsp)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
movl %r9d, %ecx
movl %r9d, %r8d
movl $0x1, %r9d
callq 0x6a54e
jmp 0x6014c
movb 0x1f(%rdi), %al
testb %al, %al
je 0x6007c
decb %al
movb %al, 0x1f(%rdi)
movzbl %al, %eax
movl 0x24(%rdi,%rax,4), %r14d
jmp 0x60087
movq -0x30(%rbp), %rdi
movl $0x17, %esi
movl $0x1, %edx
movq -0x60(%rbp), %rcx
jmp 0x5fe43
movq -0x30(%rbp), %rdi
movl $0x71, %esi
movq -0x60(%rbp), %rdx
movl %r9d, %ecx
movl %r15d, %r8d
jmp 0x5fe46
movl 0x54(%rdi), %eax
incl %eax
movl %eax, -0x64(%rbp)
movl %eax, 0x54(%rdi)
movq %r14, %r12
leal 0x2(%rdx), %ecx
movl 0x44(%rdi), %eax
subl %ecx, %eax
movq %rcx, -0x48(%rbp)
jge 0x5fd6a
movl 0x54(%rdi), %eax
leal 0x1(%rax), %r14d
addl %ecx, %eax
movl %eax, 0x54(%rdi)
jmp 0x5fd77
movl 0x48(%rdi), %r14d
addl %r14d, %ecx
movl %ecx, 0x48(%rdi)
movl %eax, 0x44(%rdi)
movq %rdx, -0x78(%rbp)
leal (%r14,%rdx), %r13d
incl %r13d
movl $0x0, -0x3c(%rbp)
cmpl $0x8, %ebx
jne 0x5fdce
movq -0x60(%rbp), %rax
leal 0x1(%rax), %edx
movq %r14, %rbx
movq -0x30(%rbp), %r14
movq %r14, %rdi
movl $0x49, %esi
xorl %ecx, %ecx
movl %r9d, %r8d
callq 0x3fa9e
movq %r14, %rdi
movq %rbx, %r14
movq -0x70(%rbp), %rbx
movl %eax, -0x3c(%rbp)
movl %eax, %esi
movq %r12, %rdx
movl $0xfffffff2, %ecx       # imm = 0xFFFFFFF2
callq 0x14ab9
movq -0x50(%rbp), %r9
movq -0x30(%rbp), %rdi
movl $0x32, %esi
movl %r9d, %edx
movl %r15d, %ecx
movl %r13d, %r8d
callq 0x3fa9e
cmpl $0x8, %ebx
jne 0x5ff43
movq %r14, %rbx
movq -0x60(%rbp), %rax
leal 0x1(%rax), %edx
movq -0x30(%rbp), %r14
movq %r14, %rdi
movl $0x70, %esi
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq (%r14), %rax
cmpb $0x0, 0x51(%rax)
je 0x5ff28
leaq 0x356c5(%rip), %rax     # 0x954e8
jmp 0x5ff3c
cmpl $0xd, %ebx
jne 0x600f8
movq -0x80(%rbp), %rax
movl 0x4(%rax), %edx
movq -0x30(%rbp), %rdi
movl $0x14, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
jmp 0x6014c
movl 0x54(%rcx), %ebx
incl %ebx
movl %ebx, 0x54(%rcx)
movq -0x30(%rbp), %r14
movq %r14, %rdi
movl $0x54, %esi
movq -0x60(%rbp), %r15
movl %r15d, %edx
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %r14, %rdi
movl $0x5f, %esi
movl %r15d, %edx
movl %r13d, %ecx
movl %ebx, %r8d
callq 0x3fa9e
movq (%r14), %rax
cmpb $0x0, 0x51(%rax)
je 0x5fe9d
leaq 0x3564d(%rip), %rax     # 0x954e8
jmp 0x5feb1
movslq 0x3c(%r14), %rax
movq 0x8(%r14), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movb $0x8, 0x3(%rax)
testl %ebx, %ebx
movq -0x38(%rbp), %rdx
je 0x5fc00
movzbl 0x1f(%rdx), %eax
cmpq $0x7, %rax
ja 0x5fc00
xorl %ecx, %ecx
cmpl %ebx, 0x94(%rdx,%rcx)
je 0x6019e
addq $0x14, %rcx
cmpl $0xc8, %ecx
jne 0x5fed1
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rdx)
movl %ebx, 0x24(%rdx,%rax,4)
jmp 0x5fc00
movq %rbx, %rcx
incq %rcx
movq -0x38(%rbp), %rbx
movb 0x1f(%rbx), %al
testb %al, %al
movq -0x50(%rbp), %r13
movq %rcx, -0x80(%rbp)
je 0x601b5
decb %al
movb %al, 0x1f(%rbx)
movzbl %al, %eax
movl 0x24(%rbx,%rax,4), %r14d
jmp 0x601c0
movslq 0x3c(%r14), %rax
movq 0x8(%r14), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movb $0x10, 0x3(%rax)
movq %rbx, %r14
movq %r14, -0x58(%rbp)
movq -0x78(%rbp), %rcx
leal (%r14,%rcx), %eax
movl %eax, -0x70(%rbp)
testl %ecx, %ecx
movq -0x30(%rbp), %r13
movq -0x50(%rbp), %rbx
movq -0x80(%rbp), %r14
jle 0x5ffa5
decl %ebx
shlq $0x5, %rcx
xorl %r12d, %r12d
movq -0x58(%rbp), %rax
movl %eax, %r15d
movq %rcx, -0x78(%rbp)
movq 0x8(%r14), %rax
movzwl 0x1c(%rax,%r12), %edx
addl %ebx, %edx
movq %r13, %rdi
movl $0x20, %esi
movl %r15d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq -0x78(%rbp), %rcx
incl %r15d
addq $0x20, %r12
cmpq %r12, %rcx
jne 0x5ff76
movq %r13, %rdi
movl $0x4b, %esi
movq -0x60(%rbp), %rbx
movl %ebx, %edx
movl -0x70(%rbp), %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %r13, %rdi
movl $0x32, %esi
movq -0x58(%rbp), %rdx
movq -0x48(%rbp), %r15
movl %r15d, %ecx
movl -0x64(%rbp), %r12d
movl %r12d, %r8d
callq 0x3fa9e
movq %r13, %rdi
movl $0x70, %esi
movl %ebx, %edx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movl -0x3c(%rbp), %edi
testl %edi, %edi
movq -0x38(%rbp), %rsi
je 0x60035
movl 0x3c(%r13), %eax
leal -0x1(%rax), %ecx
movq 0x30(%r13), %rdx
movl %ecx, 0x68(%rdx)
movq (%r13), %rdx
cmpb $0x0, 0x51(%rdx)
je 0x6001e
leaq 0x354cc(%rip), %rcx     # 0x954e8
jmp 0x60032
testl %edi, %edi
cmovnsl %edi, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rcx
addq 0x8(%r13), %rcx
movl %eax, 0x8(%rcx)
testl %r12d, %r12d
movq -0x58(%rbp), %rbx
je 0x6012d
movzbl 0x1f(%rsi), %eax
cmpq $0x7, %rax
ja 0x6012d
xorl %ecx, %ecx
cmpl %r12d, 0x94(%rsi,%rcx)
je 0x60125
addq $0x14, %rcx
cmpl $0xc8, %ecx
jne 0x60052
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rsi)
movl %r12d, 0x24(%rsi,%rax,4)
jmp 0x6012d
movl 0x54(%rdi), %r14d
incl %r14d
movl %r14d, 0x54(%rdi)
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
movl $0x32, %esi
movl %r9d, %edx
movl %r15d, %ecx
movl %r14d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0x70, %esi
movq -0x60(%rbp), %rdx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
testl %r14d, %r14d
movq -0x38(%rbp), %rdx
je 0x6014c
movzbl 0x1f(%rdx), %eax
cmpq $0x7, %rax
ja 0x6014c
xorl %ecx, %ecx
cmpl %r14d, 0x94(%rdx,%rcx)
je 0x601ab
addq $0x14, %rcx
cmpl $0xc8, %ecx
jne 0x600d1
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rdx)
movl %r14d, 0x24(%rdx,%rax,4)
jmp 0x6014c
movq %rdi, %rbx
movq -0x30(%rbp), %rdi
movl $0x22, %esi
movl %r9d, %edx
movl %r15d, %ecx
xorl %r8d, %r8d
movq %r9, %r14
callq 0x3fa9e
movq %rbx, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x5291f
jmp 0x6014c
movb $0x1, 0x8e(%rsi,%rcx)
movq -0x38(%rbp), %rdi
movl %ebx, %esi
movl %r15d, %edx
callq 0x5291f
movq -0x38(%rbp), %rax
cmpl %r15d, 0x44(%rax)
jge 0x6014c
movl %r15d, 0x44(%rax)
movl %ebx, 0x48(%rax)
cmpq $0x0, -0x90(%rbp)
je 0x60168
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x88(%rbp), %rax
movl 0xc(%rax), %edx
testl %edx, %edx
je 0x60156
movq -0x30(%rbp), %rdi
movl $0x8e, %esi
movl -0x94(%rbp), %ecx
xorl %r8d, %r8d
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3fa9e
movb $0x1, 0x8e(%rdx,%rcx)
jmp 0x5fc00
movb $0x1, 0x8e(%rdx,%rcx)
jmp 0x6014c
movl 0x54(%rbx), %r14d
incl %r14d
movl %r14d, 0x54(%rbx)
movq -0x30(%rbp), %r15
movq %r15, %rdi
movl $0x32, %esi
movl %r13d, %edx
movl $0x1, %ecx
movl %r14d, %r8d
callq 0x3fa9e
movq %r15, %rdi
movl %eax, %esi
movq -0x80(%rbp), %rdx
movl $0x1, %ecx
callq 0x14ab9
movq %rbx, %rdi
movl %r13d, %esi
movl $0x1, %edx
callq 0x5291f
movq %r15, %rdi
movl $0x70, %esi
movq -0x60(%rbp), %rdx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
testl %r14d, %r14d
je 0x6014c
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x6014c
xorl %ecx, %ecx
cmpl %r14d, 0x94(%rbx,%rcx)
je 0x60255
addq $0x14, %rcx
cmpl $0xc8, %ecx
jne 0x6022f
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %r14d, 0x24(%rbx,%rax,4)
jmp 0x6014c
movb $0x1, 0x8e(%rbx,%rcx)
jmp 0x6014c