// File: /workspace/github_c_makefile_star2_O0/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
subq $0xc0, %rsp
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movq 0x10(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x48(%rbp)
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x4c(%rbp)
movl $0x0, -0x54(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x7ef1a
movq -0x30(%rbp), %rax
movzbl 0x1(%rax), %eax
movl %eax, -0xa4(%rbp)
jmp 0x7ef24
xorl %eax, %eax
movl %eax, -0xa4(%rbp)
jmp 0x7ef24
movl -0xa4(%rbp), %eax
movl %eax, -0x40(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x7ef46
movq -0x28(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x7ef46
movq $0x0, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x7ef66
cmpl $0x0, -0x40(%rbp)
jne 0x7ef66
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %esi
movl 0x18(%rbp), %edx
callq 0x827c0
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x50(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x7efd2
cmpq $0x0, -0x28(%rbp)
je 0x7efb2
movq -0x28(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x54(%rbp)
movq -0x28(%rbp), %rax
movzbl 0x20(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x7efa5
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %ecx
movq -0x8(%rbp), %rax
addl 0x54(%rax), %ecx
movl %ecx, 0x54(%rax)
movq -0x8(%rbp), %rax
movl 0x54(%rax), %ecx
addl $0x1, %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x8(%rax)
movl -0x50(%rbp), %ecx
movq -0x8(%rbp), %rax
addl 0x54(%rax), %ecx
movl %ecx, 0x54(%rax)
jmp 0x7eff4
movq 0x10(%rbp), %rax
movl 0x8(%rax), %eax
addl -0x50(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x54(%rcx), %eax
jle 0x7eff2
movl -0x50(%rbp), %ecx
movq -0x8(%rbp), %rax
addl 0x54(%rax), %ecx
movl %ecx, 0x54(%rax)
jmp 0x7eff4
movl -0x50(%rbp), %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0xc(%rax)
movq 0x10(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x1c(%rbp)
jl 0x7f046
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x50(%rbp), %eax
jge 0x7f044
movq -0x38(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x3c(%rbp), %ecx
movl -0x44(%rbp), %r8d
addl -0x3c(%rbp), %r8d
movl $0x30, %esi
callq 0x56c10
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x7f015
jmp 0x7f081
cmpl $0x3, -0x48(%rbp)
je 0x7f07f
cmpl $0xa, -0x48(%rbp)
je 0x7f05e
cmpl $0x9, -0x48(%rbp)
je 0x7f05e
cmpl $0xd, -0x48(%rbp)
jne 0x7f064
movb $0x1, -0x55(%rbp)
jmp 0x7f068
movb $0x0, -0x55(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x44(%rbp), %edx
xorl %ecx, %ecx
movzbl -0x55(%rbp), %r8d
callq 0x6ead0
jmp 0x7f081
cmpl $0x0, -0x40(%rbp)
je 0x7f23a
movq -0x30(%rbp), %rax
movzbl 0x1(%rax), %eax
movl %eax, -0xa8(%rbp)
subl $0x1, %eax
je 0x7f1f2
jmp 0x7f0a4
movl -0xa8(%rbp), %eax
subl $0x2, %eax
jne 0x7f204
jmp 0x7f0b5
movq -0x8(%rbp), %rax
movl 0x54(%rax), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
movl -0x50(%rbp), %ecx
movq -0x8(%rbp), %rax
addl 0x54(%rax), %ecx
movl %ecx, 0x54(%rax)
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movl 0x8(%rax), %esi
callq 0x17f60
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movl 0x8(%rax), %esi
callq 0x56e10
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movb $0x1a, (%rax)
movq -0x60(%rbp), %rax
movl $0x1, 0x4(%rax)
movl -0x68(%rbp), %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x38(%rbp), %rdi
callq 0x6c2b0
addl -0x50(%rbp), %eax
movl %eax, -0x64(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x50(%rbp), %eax
jge 0x7f1d4
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x3c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rsi
callq 0x6e810
movq %rax, -0x70(%rbp)
movl -0x3c(%rbp), %eax
movl -0x50(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x7f182
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %edx
addl -0x3c(%rbp), %edx
movl -0x64(%rbp), %ecx
movl -0x68(%rbp), %r8d
addl -0x3c(%rbp), %r8d
movl $0x4e, %esi
callq 0x56c10
jmp 0x7f1a1
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %edx
addl -0x3c(%rbp), %edx
movl 0x18(%rbp), %ecx
movl -0x68(%rbp), %r8d
addl -0x3c(%rbp), %r8d
movl $0x4f, %esi
callq 0x56c10
movq -0x38(%rbp), %rdi
movq -0x70(%rbp), %rdx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xfffffffc, %ecx       # imm = 0xFFFFFFFC
callq 0x17dd0
movq -0x38(%rbp), %rdi
movl $0x80, %esi
callq 0x17b70
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x7f125
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %edx
movl -0x68(%rbp), %ecx
movl -0x50(%rbp), %r8d
subl $0x1, %r8d
movl $0x1f, %esi
callq 0x56c10
jmp 0x7f21e
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movl 0x8(%rax), %esi
callq 0x17f60
jmp 0x7f21e
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rax
movl 0x4(%rax), %esi
movl 0x18(%rbp), %edx
movl -0x50(%rbp), %ecx
movl -0x44(%rbp), %r8d
callq 0x8ee00
cmpq $0x0, -0x28(%rbp)
jne 0x7f238
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %esi
movl 0x18(%rbp), %edx
callq 0x827c0
jmp 0x7f23a
movl -0x48(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0xb0(%rbp)
subl $0xd, %eax
ja 0x7f72b
movq -0xb0(%rbp), %rax
leaq 0x235fd(%rip), %rcx     # 0xa285c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rdi
callq 0x6f960
movl %eax, -0x74(%rbp)
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %edx
movl -0x50(%rbp), %ecx
movl -0x74(%rbp), %r8d
movl $0x32, %esi
callq 0x56c10
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
movl -0x74(%rbp), %ecx
movl $0x70, %esi
callq 0x6c310
movq -0x8(%rbp), %rdi
movl -0x74(%rbp), %esi
callq 0x6f9b0
jmp 0x7f72d
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
movl -0x44(%rbp), %ecx
movl -0x50(%rbp), %r8d
movl $0x71, %esi
callq 0x56c10
jmp 0x7f72d
movq -0x8(%rbp), %rdi
movl -0x54(%rbp), %esi
addl $0x1, %esi
callq 0x6ea60
movl %eax, -0x78(%rbp)
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %edx
movl -0x50(%rbp), %ecx
movl -0x78(%rbp), %r8d
addl -0x54(%rbp), %r8d
movl $0x32, %esi
callq 0x56c10
cmpl $0x6, -0x48(%rbp)
jne 0x7f346
movq -0x38(%rbp), %rdi
callq 0x6c2b0
addl $0x4, %eax
movl %eax, -0x7c(%rbp)
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
addl $0x1, %edx
movl -0x7c(%rbp), %ecx
movl -0x78(%rbp), %r8d
movl $0x49, %esi
xorl %r9d, %r9d
callq 0x17b10
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
addl $0x1, %edx
movl -0x78(%rbp), %ecx
movl $0x70, %esi
callq 0x6c310
cmpq $0x0, -0x28(%rbp)
je 0x7f376
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x78(%rbp), %ecx
addl -0x54(%rbp), %ecx
movl -0x44(%rbp), %r8d
movl -0x54(%rbp), %eax
movl $0x1, %r9d
movl %eax, (%rsp)
callq 0x8ee90
jmp 0x7f3c8
movq -0x8(%rbp), %rdi
callq 0x6f960
movl %eax, -0x80(%rbp)
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
movl -0x80(%rbp), %ecx
movl $0x54, %esi
callq 0x6c310
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
movl -0x78(%rbp), %ecx
movl -0x80(%rbp), %r8d
movl $0x5f, %esi
callq 0x56c10
movq -0x38(%rbp), %rdi
movl $0x8, %esi
callq 0x17b70
movq -0x8(%rbp), %rdi
movl -0x80(%rbp), %esi
callq 0x6f9b0
movq -0x8(%rbp), %rdi
movl -0x78(%rbp), %esi
movl -0x54(%rbp), %edx
addl $0x1, %edx
callq 0x6eef0
jmp 0x7f72d
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
movq 0x10(%rbp), %rax
movsbl 0x1(%rax), %esi
callq 0x72390
movb %al, %cl
movq 0x10(%rbp), %rax
movb %cl, 0x1(%rax)
cmpq $0x0, -0x28(%rbp)
je 0x7f42d
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x44(%rbp), %ecx
movl -0x44(%rbp), %r8d
movl -0x54(%rbp), %eax
movl $0x1, %r9d
movl %eax, (%rsp)
callq 0x8ee90
jmp 0x7f49f
movq -0x8(%rbp), %rdi
callq 0x6f960
movl %eax, -0x84(%rbp)
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %edx
movl -0x84(%rbp), %r8d
movq 0x10(%rbp), %r9
addq $0x1, %r9
movl $0x32, %esi
movl $0x1, %ecx
movl $0x1, (%rsp)
callq 0x6be70
movq -0x8(%rbp), %rdi
movl -0x44(%rbp), %esi
movl $0x1, %edx
callq 0x6e330
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
movl -0x84(%rbp), %ecx
movl $0x70, %esi
callq 0x6c310
movq -0x8(%rbp), %rdi
movl -0x84(%rbp), %esi
callq 0x6f9b0
jmp 0x7f72d
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %ecx
movl $0x17, %esi
movl $0x1, %edx
callq 0x6c310
jmp 0x7f72d
cmpq $0x0, -0x28(%rbp)
je 0x7f4ec
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x44(%rbp), %ecx
movl -0x44(%rbp), %r8d
movl -0x54(%rbp), %eax
movl $0x1, %r9d
movl %eax, (%rsp)
callq 0x8ee90
jmp 0x7f4ee
jmp 0x7f4ee
jmp 0x7f72d
cmpq $0x0, -0x28(%rbp)
je 0x7f51e
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x44(%rbp), %ecx
movl -0x44(%rbp), %r8d
movl -0x50(%rbp), %r9d
movl -0x54(%rbp), %eax
movl %eax, (%rsp)
callq 0x8ee90
jmp 0x7f560
cmpl $0xd, -0x48(%rbp)
jne 0x7f53b
movq -0x38(%rbp), %rdi
movq 0x10(%rbp), %rax
movl 0x4(%rax), %edx
movl $0x14, %esi
callq 0x6e570
jmp 0x7f55e
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %edx
movl -0x50(%rbp), %ecx
movl $0x22, %esi
callq 0x6c310
movq -0x8(%rbp), %rdi
movl -0x44(%rbp), %esi
movl -0x50(%rbp), %edx
callq 0x6e330
jmp 0x7f560
jmp 0x7f72d
movl $0x0, -0x98(%rbp)
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x88(%rbp)
movq -0x8(%rbp), %rdi
callq 0x6f960
movl %eax, -0x8c(%rbp)
movq -0x8(%rbp), %rdi
movl -0x88(%rbp), %esi
addl $0x2, %esi
callq 0x6ea60
movl %eax, -0x90(%rbp)
movl -0x90(%rbp), %eax
addl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x94(%rbp)
cmpl $0x8, -0x48(%rbp)
jne 0x7f5f3
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
addl $0x1, %edx
movl -0x44(%rbp), %r8d
movl -0x50(%rbp), %r9d
movl $0x49, %esi
xorl %ecx, %ecx
callq 0x17b10
movl %eax, -0x98(%rbp)
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %edx
movl -0x50(%rbp), %ecx
movl -0x94(%rbp), %r8d
movl $0x32, %esi
callq 0x56c10
cmpl $0x8, -0x48(%rbp)
jne 0x7f63c
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
addl $0x1, %edx
movl -0x94(%rbp), %ecx
movl $0x70, %esi
callq 0x6c310
movq -0x38(%rbp), %rdi
movl $0x10, %esi
callq 0x17b70
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x88(%rbp), %eax
jge 0x7f692
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %edx
movq -0xa0(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x3c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movzwl 0x1c(%rax), %eax
addl %eax, %edx
subl $0x1, %edx
movl -0x90(%rbp), %ecx
addl -0x3c(%rbp), %ecx
movl $0x20, %esi
callq 0x6c310
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x7f643
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
movl -0x90(%rbp), %ecx
addl -0x88(%rbp), %ecx
movl $0x4b, %esi
callq 0x6c310
movq -0x38(%rbp), %rdi
movl -0x90(%rbp), %edx
movl -0x88(%rbp), %ecx
addl $0x2, %ecx
movl -0x8c(%rbp), %r8d
movl $0x32, %esi
callq 0x56c10
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
movl -0x8c(%rbp), %ecx
movl $0x70, %esi
callq 0x6c310
cmpl $0x0, -0x98(%rbp)
je 0x7f702
movq -0x38(%rbp), %rdi
movl -0x98(%rbp), %esi
callq 0x6be30
movq -0x8(%rbp), %rdi
movl -0x8c(%rbp), %esi
callq 0x6f9b0
movq -0x8(%rbp), %rdi
movl -0x90(%rbp), %esi
movl -0x88(%rbp), %edx
addl $0x2, %edx
callq 0x6eef0
jmp 0x7f72d
jmp 0x7f72d
cmpq $0x0, -0x28(%rbp)
jne 0x7f756
movq -0x10(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x7f756
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0xc(%rax), %edx
movl 0x20(%rbp), %ecx
movl $0x8e, %esi
callq 0x6c310
addq $0xc0, %rsp
popq %rbp
retq
nop