// File: /workspace/github_c_makefile_star2_O2/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 %r8, %r13
movl %ecx, %r12d
movq %rdx, -0x58(%rbp)
movq %rsi, %rbx
movq %rdi, %r15
testq %r9, %r9
je 0x5658e
cmpb $0x0, 0x1(%r9)
setne %cl
jmp 0x56590
xorl %ecx, %ecx
movq 0x10(%rbp), %rdi
testq %r13, %r13
movq %r9, -0x80(%rbp)
je 0x565aa
movq (%r13), %rax
testq %rax, %rax
cmoveq %rax, %r13
jmp 0x565ad
xorl %r13d, %r13d
movl 0x20(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl 0x18(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq 0x10(%r15), %r14
movzbl (%rdi), %eax
movq %rax, -0x98(%rbp)
movl 0x4(%rdi), %eax
movq %rax, -0x60(%rbp)
testq %r13, %r13
setne %al
orb %cl, %al
testb $0x1, %al
movq %rdi, -0x70(%rbp)
movl %ecx, -0x50(%rbp)
jne 0x565f6
movl 0x10(%rbx), %esi
movq %r14, %rdi
movl -0x3c(%rbp), %edx
callq 0x57d31
movq -0x70(%rbp), %rdi
movq -0x58(%rbp), %rax
movl (%rax), %ecx
movl 0x8(%rdi), %eax
testl %eax, %eax
movq %rcx, -0x38(%rbp)
movq %rbx, -0x78(%rbp)
je 0x56624
leal (%rax,%rcx), %edx
movl 0x54(%r15), %ecx
movq $0x0, -0x68(%rbp)
cmpl %ecx, %edx
jle 0x56644
leaq 0x54(%r15), %rdx
jmp 0x56660
testq %r13, %r13
je 0x5664a
movq (%r13), %rax
movl 0x20(%r13), %edx
notl %edx
andl $0x1, %edx
addl (%rax), %edx
movl 0x54(%r15), %ecx
movq %rdx, -0x68(%rbp)
addl %edx, %ecx
jmp 0x56656
movq -0x38(%rbp), %rsi
jmp 0x56668
movl 0x54(%r15), %ecx
movq $0x0, -0x68(%rbp)
leaq 0x54(%r15), %rdx
leal 0x1(%rcx), %eax
movl %eax, 0x8(%rdi)
movq -0x38(%rbp), %rsi
addl %esi, %ecx
movl %ecx, (%rdx)
movl %eax, %ebx
movl %esi, 0xc(%rdi)
testl %r12d, %r12d
movq %r14, -0x30(%rbp)
movq %r15, -0x88(%rbp)
movq %r13, -0x90(%rbp)
js 0x566b7
xorl %r14d, %r14d
testl %esi, %esi
movl $0x0, %r15d
cmovgl %esi, %r15d
pushq $0x30
popq %r13
cmpl %r14d, %r15d
je 0x566f3
leal (%rbx,%r14), %r8d
movq -0x30(%rbp), %rdi
movl %r13d, %esi
movl %r12d, %edx
movl %r14d, %ecx
callq 0x385b6
incl %r14d
jmp 0x56697
movb $0x1, %al
movq -0x98(%rbp), %rdx
leal -0x9(%rdx), %ecx
cmpl $0x2, %ecx
jb 0x566df
cmpl $0x3, %edx
je 0x566f3
cmpl $0xd, -0x98(%rbp)
movq -0x88(%rbp), %r15
je 0x566df
xorl %eax, %eax
movzbl %al, %r8d
movq %r15, %rdi
movq -0x58(%rbp), %rsi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0x4bc86
movq %rbx, -0x48(%rbp)
cmpb $0x0, -0x50(%rbp)
movq -0x88(%rbp), %rbx
movq -0x90(%rbp), %r12
movq -0x98(%rbp), %r13
movq -0x70(%rbp), %rdx
je 0x56899
movq -0x80(%rbp), %r14
movzbl 0x1(%r14), %eax
cmpl $0x1, %eax
je 0x56853
cmpl $0x2, %eax
jne 0x56862
movq -0x38(%rbp), %r13
movslq %r13d, %r12
movl 0x54(%rbx), %eax
leal 0x1(%rax), %ecx
movq %rcx, -0x50(%rbp)
addl %r13d, %eax
movl %eax, 0x54(%rbx)
movl 0x8(%r14), %esi
movq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0x1396b
movl 0x8(%r14), %esi
movq %r15, %rdi
callq 0x386ca
movb $0x1a, (%rax)
movl $0x1, 0x4(%rax)
movq -0x50(%rbp), %rcx
movl %ecx, 0x8(%rax)
movl 0x3c(%r15), %eax
addl %r13d, %eax
movl %eax, -0xa0(%rbp)
decq %r12
movq %r12, -0x80(%rbp)
xorl %r14d, %r14d
testl %r13d, %r13d
movl $0x0, %r12d
cmovgl %r13d, %r12d
xorl %r15d, %r15d
cmpq %r15, %r12
je 0x5682b
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14), %rsi
movq %rbx, %rdi
callq 0x4bb0b
movq %rax, %r13
movq -0x48(%rbp), %rax
leaq (%rax,%r15), %rdx
movq -0x50(%rbp), %rax
leaq (%rax,%r15), %r8
cmpq -0x80(%rbp), %r15
jge 0x567e8
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
pushq $0x4e
popq %rsi
movl -0xa0(%rbp), %ecx
jmp 0x567f5
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
pushq $0x4f
popq %rsi
movl -0x3c(%rbp), %ecx
callq 0x385b6
movq %rbx, %rdi
pushq $-0x1
popq %rsi
movq %r13, %rdx
pushq $-0x4
popq %rcx
callq 0x1385d
movq %rbx, %rdi
movl $0x80, %esi
callq 0x13770
incq %r15
addq $0x20, %r14
movq -0x88(%rbp), %rbx
jmp 0x567a0
pushq $0x1f
popq %rsi
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq -0x80(%rbp), %r8
callq 0x385b6
movq -0x90(%rbp), %r12
movq -0x98(%rbp), %r13
jmp 0x56879
movl 0x8(%r14), %esi
movq -0x30(%rbp), %rdi
callq 0x1396b
jmp 0x56879
movl 0x4(%r14), %esi
movq %rbx, %rdi
movl -0x3c(%rbp), %edx
movq -0x38(%rbp), %rcx
movq -0x48(%rbp), %r8
callq 0x5d28a
testq %r12, %r12
movq -0x70(%rbp), %rdx
jne 0x56899
movq -0x78(%rbp), %rax
movl 0x10(%rax), %esi
movq -0x30(%rbp), %rdi
movl -0x3c(%rbp), %edx
callq 0x57d31
movq -0x70(%rbp), %rdx
leal -0x1(%r13), %eax
cmpl $0xd, %eax
ja 0x56b6a
leaq 0x12993(%rip), %rcx     # 0x69240
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x68(%rbp), %r15
leal 0x1(%r15), %r12d
movq %rbx, %rdi
movl %r12d, %esi
callq 0x4bc61
movq %r13, %r14
movl %eax, -0x58(%rbp)
movl %eax, %r13d
addl %r15d, %r13d
movq -0x30(%rbp), %rdi
pushq $0x32
popq %rsi
movq -0x48(%rbp), %rbx
movl %ebx, %edx
movq -0x38(%rbp), %rcx
movl %r13d, %r8d
callq 0x385b6
cmpl $0x6, %r14d
jne 0x56938
movq -0x30(%rbp), %r15
movl 0x3c(%r15), %ecx
addl $0x4, %ecx
movq -0x60(%rbp), %rax
leal 0x1(%rax), %r14d
pushq $0x49
popq %rsi
movq %r15, %rdi
movl %r14d, %edx
movl %r12d, -0x50(%rbp)
movl -0x58(%rbp), %r12d
movl %r12d, %r8d
xorl %r9d, %r9d
callq 0x1373a
pushq $0x70
popq %rsi
movq %r15, %rdi
movl %r14d, %edx
movl %r12d, %ecx
movl -0x50(%rbp), %r12d
callq 0x4a1ab
movq -0x90(%rbp), %rsi
testq %rsi, %rsi
je 0x56aff
movq -0x68(%rbp), %rax
movl %eax, (%rsp)
pushq $0x1
popq %r9
movq -0x88(%rbp), %r14
movq %r14, %rdi
movq -0x78(%rbp), %rdx
movl %r13d, %ecx
movl %ebx, %r8d
callq 0x5d313
movl -0x58(%rbp), %r13d
jmp 0x56b55
movq 0x10(%rdx), %rax
movq %rax, -0x58(%rbp)
movl (%rax), %r14d
movq %rbx, %rdi
callq 0x4c550
movl %eax, -0x3c(%rbp)
leal 0x2(%r14), %esi
movq %rbx, %rdi
movl %esi, -0x80(%rbp)
callq 0x4bc61
movq %rax, -0x50(%rbp)
leal (%rax,%r14), %r12d
incl %r12d
xorl %eax, %eax
cmpl $0x8, %r13d
movq -0x48(%rbp), %rbx
jne 0x569cd
movq -0x60(%rbp), %rax
leal 0x1(%rax), %edx
pushq $0x49
popq %rsi
movq -0x30(%rbp), %rdi
xorl %ecx, %ecx
movl %ebx, %r8d
movq -0x38(%rbp), %r9
callq 0x1373a
movl %eax, -0x70(%rbp)
pushq $0x32
popq %rsi
movq -0x30(%rbp), %rdi
movl %ebx, %edx
movq -0x38(%rbp), %rcx
movl %r12d, %r8d
callq 0x385b6
cmpl $0x8, %r13d
jne 0x56a0f
movq -0x60(%rbp), %rax
leal 0x1(%rax), %edx
pushq $0x70
popq %rsi
movq -0x30(%rbp), %r15
movq %r15, %rdi
movl %r12d, %ecx
callq 0x4a1ab
pushq $0x10
popq %rsi
movq %r15, %rdi
callq 0x13770
movq -0x50(%rbp), %rax
movl %eax, %ecx
addl %r14d, %ecx
movl %ecx, -0x38(%rbp)
decl %ebx
xorl %r15d, %r15d
testl %r14d, %r14d
cmovlel %r15d, %r14d
shlq $0x5, %r14
pushq $0x20
popq %r12
movl %eax, %r13d
cmpq %r15, %r14
je 0x56a5f
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
movzwl 0x1c(%rax,%r15), %edx
addl %ebx, %edx
movq -0x30(%rbp), %rdi
movl %r12d, %esi
movl %r13d, %ecx
callq 0x4a1ab
incl %r13d
addq $0x20, %r15
jmp 0x56a32
pushq $0x4b
popq %rsi
movq -0x30(%rbp), %r15
movq %r15, %rdi
movq -0x60(%rbp), %rbx
movl %ebx, %edx
movl -0x38(%rbp), %ecx
callq 0x4a1ab
pushq $0x32
popq %rsi
movq %r15, %rdi
movq -0x50(%rbp), %rdx
movl -0x80(%rbp), %r14d
movl %r14d, %ecx
movl -0x3c(%rbp), %r12d
movl %r12d, %r8d
callq 0x385b6
pushq $0x70
popq %rsi
movq %r15, %rdi
movl %ebx, %edx
movl %r12d, %ecx
callq 0x4a1ab
movl -0x70(%rbp), %esi
testl %esi, %esi
je 0x56ab4
movq -0x30(%rbp), %rdi
callq 0x4a022
movq -0x88(%rbp), %rbx
movq %rbx, %rdi
movl %r12d, %esi
callq 0x4c573
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
movl %r14d, %edx
jmp 0x56b5e
testq %r12, %r12
je 0x56ce6
movq -0x68(%rbp), %rax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq -0x78(%rbp), %rdx
movq -0x48(%rbp), %rcx
movl %ecx, %r8d
movq -0x38(%rbp), %r9
jmp 0x56c53
movq -0x88(%rbp), %r14
movq %r14, %rdi
callq 0x4c550
movl %eax, %ebx
pushq $0x54
popq %rsi
movq -0x30(%rbp), %r15
movq %r15, %rdi
movq -0x60(%rbp), %r13
movl %r13d, %edx
movl %eax, %ecx
callq 0x4a1ab
pushq $0x5f
popq %rsi
movq %r15, %rdi
movl %r13d, %edx
movl -0x58(%rbp), %r13d
movl %r13d, %ecx
movl %ebx, %r8d
callq 0x385b6
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x13770
movq %r14, %rdi
movl %ebx, %esi
callq 0x4c573
movq %r14, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x4bdbc
movq -0x90(%rbp), %r12
testq %r12, %r12
jne 0x56c58
movq -0x78(%rbp), %rax
movl 0xc(%rax), %edx
testl %edx, %edx
je 0x56c58
movq -0x30(%rbp), %rdi
movl $0x8e, %esi
movl -0x9c(%rbp), %ecx
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4a1ab
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
movsbl 0x1(%rdx), %esi
callq 0x4dda0
movq -0x70(%rbp), %rcx
movb %al, 0x1(%rcx)
testq %r12, %r12
jne 0x56c37
incq %rcx
movq %rbx, %rdi
movq %rcx, %r12
callq 0x4c550
movl %eax, %r14d
movl $0x1, (%rsp)
pushq $0x32
popq %rsi
pushq $0x1
popq %rcx
movq -0x30(%rbp), %r15
movq %r15, %rdi
movq -0x48(%rbp), %r13
movl %r13d, %edx
movl %eax, %r8d
movq %r12, %r9
callq 0x4a044
movq %rbx, %rdi
movl %r13d, %esi
pushq $0x1
popq %rdx
callq 0x4ba18
pushq $0x70
popq %rsi
movq %r15, %rdi
movq -0x60(%rbp), %rdx
movl %r14d, %ecx
callq 0x4a1ab
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4c573
jmp 0x56b73
testq %r12, %r12
je 0x56b73
movq -0x68(%rbp), %rax
movl %eax, (%rsp)
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %r12, %rsi
movq -0x78(%rbp), %rdx
movq -0x48(%rbp), %rcx
movl %ecx, %r8d
callq 0x5d313
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x4c550
movl %eax, %r14d
pushq $0x32
popq %rsi
movq -0x30(%rbp), %r15
movq %r15, %rdi
movq -0x48(%rbp), %rdx
movq -0x38(%rbp), %rcx
movl %eax, %r8d
callq 0x385b6
pushq $0x70
popq %rsi
movq %r15, %rdi
movq -0x60(%rbp), %rdx
movl %r14d, %ecx
callq 0x4a1ab
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4c573
jmp 0x56b6a
pushq $0x17
popq %rsi
pushq $0x1
popq %rdx
movq -0x30(%rbp), %rdi
movq -0x60(%rbp), %rcx
callq 0x4a1ab
jmp 0x56b6a
pushq $0x71
popq %rsi
movq -0x30(%rbp), %rdi
movq -0x60(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %r8
callq 0x385b6
jmp 0x56b6a
cmpl $0xd, %r13d
movq -0x38(%rbp), %r12
jne 0x56d04
movl 0x4(%rdx), %edx
pushq $0x14
popq %rsi
movq -0x30(%rbp), %rdi
callq 0x4b9b3
jmp 0x56b73
pushq $0x22
popq %rsi
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %r14
movl %r14d, %edx
movl %r12d, %ecx
callq 0x4a1ab
movq %rbx, %rdi
movl %r14d, %esi
movl %r12d, %edx
callq 0x4ba18
jmp 0x56b73