// File: /workspace/github_c_makefile_star2_O0/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: multiSelect
static int multiSelect(
  Parse *pParse,        /* Parsing context */
  Select *p,            /* The right-most of SELECTs to be coded */
  SelectDest *pDest     /* What to do with query results */
){
  int rc = SQLITE_OK;   /* Success code from a subroutine */
  Select *pPrior;       /* Another SELECT immediately to our left */
  Vdbe *v;              /* Generate code to this VDBE */
  SelectDest dest;      /* Alternative data destination */
  Select *pDelete = 0;  /* Chain of simple selects to delete */
  sqlite3 *db;          /* Database connection */
#ifndef SQLITE_OMIT_EXPLAIN
  int iSub1 = 0;        /* EQP id of left-hand query */
  int iSub2 = 0;        /* EQP id of right-hand query */
#endif

  /* Make sure there is no ORDER BY or LIMIT clause on prior SELECTs.  Only
  ** the last (right-most) SELECT in the series may have an ORDER BY or LIMIT.
  */
  assert( p && p->pPrior );  /* Calling function guarantees this much */
  assert( (p->selFlags & SF_Recursive)==0 || p->op==TK_ALL || p->op==TK_UNION );
  db = pParse->db;
  pPrior = p->pPrior;
  dest = *pDest;
  if( pPrior->pOrderBy ){
    sqlite3ErrorMsg(pParse,"ORDER BY clause should come after %s not before",
      selectOpName(p->op));
    rc = 1;
    goto multi_select_end;
  }
  if( pPrior->pLimit ){
    sqlite3ErrorMsg(pParse,"LIMIT clause should come after %s not before",
      selectOpName(p->op));
    rc = 1;
    goto multi_select_end;
  }

  v = sqlite3GetVdbe(pParse);
  assert( v!=0 );  /* The VDBE already created by calling function */

  /* Create the destination temporary table if necessary
  */
  if( dest.eDest==SRT_EphemTab ){
    assert( p->pEList );
    sqlite3VdbeAddOp2(v, OP_OpenEphemeral, dest.iSDParm, p->pEList->nExpr);
    sqlite3VdbeChangeP5(v, BTREE_UNORDERED);
    dest.eDest = SRT_Table;
  }

  /* Special handling for a compound-select that originates as a VALUES clause.
  */
  if( p->selFlags & SF_MultiValue ){
    rc = multiSelectValues(pParse, p, &dest);
    goto multi_select_end;
  }

  /* Make sure all SELECTs in the statement have the same number of elements
  ** in their result sets.
  */
  assert( p->pEList && pPrior->pEList );
  assert( p->pEList->nExpr==pPrior->pEList->nExpr );

#ifndef SQLITE_OMIT_CTE
  if( p->selFlags & SF_Recursive ){
    generateWithRecursiveQuery(pParse, p, &dest);
  }else
#endif

  /* Compound SELECTs that have an ORDER BY clause are handled separately.
  */
  if( p->pOrderBy ){
    return multiSelectOrderBy(pParse, p, pDest);
  }else

  /* Generate code for the left and right SELECT statements.
  */
  switch( p->op ){
    case TK_ALL: {
      int addr = 0;
      int nLimit;
      assert( !pPrior->pLimit );
      pPrior->iLimit = p->iLimit;
      pPrior->iOffset = p->iOffset;
      pPrior->pLimit = p->pLimit;
      pPrior->pOffset = p->pOffset;
      explainSetInteger(iSub1, pParse->iNextSelectId);
      rc = sqlite3Select(pParse, pPrior, &dest);
      p->pLimit = 0;
      p->pOffset = 0;
      if( rc ){
        goto multi_select_end;
      }
      p->pPrior = 0;
      p->iLimit = pPrior->iLimit;
      p->iOffset = pPrior->iOffset;
      if( p->iLimit ){
        addr = sqlite3VdbeAddOp1(v, OP_IfNot, p->iLimit); VdbeCoverage(v);
        VdbeComment((v, "Jump ahead if LIMIT reached"));
        if( p->iOffset ){
          sqlite3VdbeAddOp3(v, OP_SetIfNotPos, p->iOffset, p->iOffset, 0);
          sqlite3VdbeAddOp3(v, OP_Add, p->iLimit, p->iOffset, p->iOffset+1);
          sqlite3VdbeAddOp3(v, OP_SetIfNotPos, p->iLimit, p->iOffset+1, -1);
        }
      }
      explainSetInteger(iSub2, pParse->iNextSelectId);
      rc = sqlite3Select(pParse, p, &dest);
      testcase( rc!=SQLITE_OK );
      pDelete = p->pPrior;
      p->pPrior = pPrior;
      p->nSelectRow += pPrior->nSelectRow;
      if( pPrior->pLimit
       && sqlite3ExprIsInteger(pPrior->pLimit, &nLimit)
       && nLimit>0 && p->nSelectRow > (u64)nLimit 
      ){
        p->nSelectRow = nLimit;
      }
      if( addr ){
        sqlite3VdbeJumpHere(v, addr);
      }
      break;
    }
    case TK_EXCEPT:
    case TK_UNION: {
      int unionTab;    /* Cursor number of the temporary table holding result */
      u8 op = 0;       /* One of the SRT_ operations to apply to self */
      int priorOp;     /* The SRT_ operation to apply to prior selects */
      Expr *pLimit, *pOffset; /* Saved values of p->nLimit and p->nOffset */
      int addr;
      SelectDest uniondest;

      testcase( p->op==TK_EXCEPT );
      testcase( p->op==TK_UNION );
      priorOp = SRT_Union;
      if( dest.eDest==priorOp ){
        /* We can reuse a temporary table generated by a SELECT to our
        ** right.
        */
        assert( p->pLimit==0 );      /* Not allowed on leftward elements */
        assert( p->pOffset==0 );     /* Not allowed on leftward elements */
        unionTab = dest.iSDParm;
      }else{
        /* We will need to create our own temporary table to hold the
        ** intermediate results.
        */
        unionTab = pParse->nTab++;
        assert( p->pOrderBy==0 );
        addr = sqlite3VdbeAddOp2(v, OP_OpenEphemeral, unionTab, 0);
        assert( p->addrOpenEphm[0] == -1 );
        p->addrOpenEphm[0] = addr;
        findRightmost(p)->selFlags |= SF_UsesEphemeral;
        assert( p->pEList );
      }

      /* Code the SELECT statements to our left
      */
      assert( !pPrior->pOrderBy );
      sqlite3SelectDestInit(&uniondest, priorOp, unionTab);
      explainSetInteger(iSub1, pParse->iNextSelectId);
      rc = sqlite3Select(pParse, pPrior, &uniondest);
      if( rc ){
        goto multi_select_end;
      }

      /* Code the current SELECT statement
      */
      if( p->op==TK_EXCEPT ){
        op = SRT_Except;
      }else{
        assert( p->op==TK_UNION );
        op = SRT_Union;
      }
      p->pPrior = 0;
      pLimit = p->pLimit;
      p->pLimit = 0;
      pOffset = p->pOffset;
      p->pOffset = 0;
      uniondest.eDest = op;
      explainSetInteger(iSub2, pParse->iNextSelectId);
      rc = sqlite3Select(pParse, p, &uniondest);
      testcase( rc!=SQLITE_OK );
      /* Query flattening in sqlite3Select() might refill p->pOrderBy.
      ** Be sure to delete p->pOrderBy, therefore, to avoid a memory leak. */
      sqlite3ExprListDelete(db, p->pOrderBy);
      pDelete = p->pPrior;
      p->pPrior = pPrior;
      p->pOrderBy = 0;
      if( p->op==TK_UNION ) p->nSelectRow += pPrior->nSelectRow;
      sqlite3ExprDelete(db, p->pLimit);
      p->pLimit = pLimit;
      p->pOffset = pOffset;
      p->iLimit = 0;
      p->iOffset = 0;

      /* Convert the data in the temporary table into whatever form
      ** it is that we currently need.
      */
      assert( unionTab==dest.iSDParm || dest.eDest!=priorOp );
      if( dest.eDest!=priorOp ){
        int iCont, iBreak, iStart;
        assert( p->pEList );
        if( dest.eDest==SRT_Output ){
          Select *pFirst = p;
          while( pFirst->pPrior ) pFirst = pFirst->pPrior;
          generateColumnNames(pParse, pFirst->pSrc, pFirst->pEList);
        }
        iBreak = sqlite3VdbeMakeLabel(v);
        iCont = sqlite3VdbeMakeLabel(v);
        computeLimitRegisters(pParse, p, iBreak);
        sqlite3VdbeAddOp2(v, OP_Rewind, unionTab, iBreak); VdbeCoverage(v);
        iStart = sqlite3VdbeCurrentAddr(v);
        selectInnerLoop(pParse, p, p->pEList, unionTab,
                        0, 0, &dest, iCont, iBreak);
        sqlite3VdbeResolveLabel(v, iCont);
        sqlite3VdbeAddOp2(v, OP_Next, unionTab, iStart); VdbeCoverage(v);
        sqlite3VdbeResolveLabel(v, iBreak);
        sqlite3VdbeAddOp2(v, OP_Close, unionTab, 0);
      }
      break;
    }
    default: assert( p->op==TK_INTERSECT ); {
      int tab1, tab2;
      int iCont, iBreak, iStart;
      Expr *pLimit, *pOffset;
      int addr;
      SelectDest intersectdest;
      int r1;

      /* INTERSECT is different from the others since it requires
      ** two temporary tables.  Hence it has its own case.  Begin
      ** by allocating the tables we will need.
      */
      tab1 = pParse->nTab++;
      tab2 = pParse->nTab++;
      assert( p->pOrderBy==0 );

      addr = sqlite3VdbeAddOp2(v, OP_OpenEphemeral, tab1, 0);
      assert( p->addrOpenEphm[0] == -1 );
      p->addrOpenEphm[0] = addr;
      findRightmost(p)->selFlags |= SF_UsesEphemeral;
      assert( p->pEList );

      /* Code the SELECTs to our left into temporary table "tab1".
      */
      sqlite3SelectDestInit(&intersectdest, SRT_Union, tab1);
      explainSetInteger(iSub1, pParse->iNextSelectId);
      rc = sqlite3Select(pParse, pPrior, &intersectdest);
      if( rc ){
        goto multi_select_end;
      }

      /* Code the current SELECT into temporary table "tab2"
      */
      addr = sqlite3VdbeAddOp2(v, OP_OpenEphemeral, tab2, 0);
      assert( p->addrOpenEphm[1] == -1 );
      p->addrOpenEphm[1] = addr;
      p->pPrior = 0;
      pLimit = p->pLimit;
      p->pLimit = 0;
      pOffset = p->pOffset;
      p->pOffset = 0;
      intersectdest.iSDParm = tab2;
      explainSetInteger(iSub2, pParse->iNextSelectId);
      rc = sqlite3Select(pParse, p, &intersectdest);
      testcase( rc!=SQLITE_OK );
      pDelete = p->pPrior;
      p->pPrior = pPrior;
      if( p->nSelectRow>pPrior->nSelectRow ) p->nSelectRow = pPrior->nSelectRow;
      sqlite3ExprDelete(db, p->pLimit);
      p->pLimit = pLimit;
      p->pOffset = pOffset;

      /* Generate code to take the intersection of the two temporary
      ** tables.
      */
      assert( p->pEList );
      if( dest.eDest==SRT_Output ){
        Select *pFirst = p;
        while( pFirst->pPrior ) pFirst = pFirst->pPrior;
        generateColumnNames(pParse, pFirst->pSrc, pFirst->pEList);
      }
      iBreak = sqlite3VdbeMakeLabel(v);
      iCont = sqlite3VdbeMakeLabel(v);
      computeLimitRegisters(pParse, p, iBreak);
      sqlite3VdbeAddOp2(v, OP_Rewind, tab1, iBreak); VdbeCoverage(v);
      r1 = sqlite3GetTempReg(pParse);
      iStart = sqlite3VdbeAddOp2(v, OP_RowKey, tab1, r1);
      sqlite3VdbeAddOp4Int(v, OP_NotFound, tab2, iCont, r1, 0); VdbeCoverage(v);
      sqlite3ReleaseTempReg(pParse, r1);
      selectInnerLoop(pParse, p, p->pEList, tab1,
                      0, 0, &dest, iCont, iBreak);
      sqlite3VdbeResolveLabel(v, iCont);
      sqlite3VdbeAddOp2(v, OP_Next, tab1, iStart); VdbeCoverage(v);
      sqlite3VdbeResolveLabel(v, iBreak);
      sqlite3VdbeAddOp2(v, OP_Close, tab2, 0);
      sqlite3VdbeAddOp2(v, OP_Close, tab1, 0);
      break;
    }
  }

  explainComposite(pParse, p->op, iSub1, iSub2, p->op!=TK_ALL);

  /* Compute collating sequences used by 
  ** temporary tables needed to implement the compound select.
  ** Attach the KeyInfo structure to all temporary tables.
  **
  ** This section is run by the right-most SELECT statement only.
  ** SELECT statements to the left always skip this part.  The right-most
  ** SELECT might also skip this part if it has no ORDER BY clause and
  ** no temp tables are required.
  */
  if( p->selFlags & SF_UsesEphemeral ){
    int i;                        /* Loop counter */
    KeyInfo *pKeyInfo;            /* Collating sequence for the result set */
    Select *pLoop;                /* For looping through SELECT statements */
    CollSeq **apColl;             /* For looping through pKeyInfo->aColl[] */
    int nCol;                     /* Number of columns in result set */

    assert( p->pNext==0 );
    nCol = p->pEList->nExpr;
    pKeyInfo = sqlite3KeyInfoAlloc(db, nCol, 1);
    if( !pKeyInfo ){
      rc = SQLITE_NOMEM;
      goto multi_select_end;
    }
    for(i=0, apColl=pKeyInfo->aColl; i<nCol; i++, apColl++){
      *apColl = multiSelectCollSeq(pParse, p, i);
      if( 0==*apColl ){
        *apColl = db->pDfltColl;
      }
    }

    for(pLoop=p; pLoop; pLoop=pLoop->pPrior){
      for(i=0; i<2; i++){
        int addr = pLoop->addrOpenEphm[i];
        if( addr<0 ){
          /* If [0] is unused then [1] is also unused.  So we can
          ** always safely abort as soon as the first unused slot is found */
          assert( pLoop->addrOpenEphm[1]<0 );
          break;
        }
        sqlite3VdbeChangeP2(v, addr, nCol);
        sqlite3VdbeChangeP4(v, addr, (char*)sqlite3KeyInfoRef(pKeyInfo),
                            P4_KEYINFO);
        pLoop->addrOpenEphm[i] = -1;
      }
    }
    sqlite3KeyInfoUnref(pKeyInfo);
  }

multi_select_end:
  pDest->iSdst = dest.iSdst;
  pDest->nSdst = dest.nSdst;
  sqlite3SelectDelete(db, pDelete);
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq $0x0, -0x58(%rbp)
movl $0x0, -0x64(%rbp)
movl $0x0, -0x68(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x50(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x48(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x7cf9d
movq -0x10(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x18(%rbp), %rax
movzbl 0x8(%rax), %edi
callq 0x7a710
movq -0x150(%rbp), %rdi
movq %rax, %rdx
leaq 0x2b2d0(%rip), %rsi     # 0xa825a
movb $0x0, %al
callq 0x17840
movl $0x1, -0x24(%rbp)
jmp 0x7db38
movq -0x30(%rbp), %rax
cmpq $0x0, 0x60(%rax)
je 0x7cfe4
movq -0x10(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x18(%rbp), %rax
movzbl 0x8(%rax), %edi
callq 0x7a710
movq -0x158(%rbp), %rdi
movq %rax, %rdx
leaq 0x2b2b9(%rip), %rsi     # 0xa828a
movb $0x0, %al
callq 0x17840
movl $0x1, -0x24(%rbp)
jmp 0x7db38
movq -0x10(%rbp), %rdi
callq 0x6bd00
movq %rax, -0x38(%rbp)
movzbl -0x50(%rbp), %eax
cmpl $0xc, %eax
jne 0x7d026
movq -0x38(%rbp), %rdi
movl -0x4c(%rbp), %edx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl (%rax), %ecx
movl $0x3a, %esi
callq 0x6c310
movq -0x38(%rbp), %rdi
movl $0x8, %esi
callq 0x17b70
movb $0xe, -0x50(%rbp)
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x7d051
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x814a0
movl %eax, -0x24(%rbp)
jmp 0x7db38
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
je 0x7d079
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x81560
jmp 0x7d934
movq -0x18(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x7d09d
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x819f0
movl %eax, -0x4(%rbp)
jmp 0x7db5f
movq -0x18(%rbp), %rax
movzbl 0x8(%rax), %eax
movl %eax, -0x15c(%rbp)
subl $0x73, %eax
je 0x7d2cc
jmp 0x7d0b6
movl -0x15c(%rbp), %eax
subl $0x74, %eax
je 0x7d0d7
jmp 0x7d0c3
movl -0x15c(%rbp), %eax
subl $0x75, %eax
je 0x7d2cc
jmp 0x7d5d9
movl $0x0, -0x6c(%rbp)
movq -0x18(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x18(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq 0x60(%rax), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0x18(%rbp), %rax
movq 0x68(%rax), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x200(%rax), %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x5f480
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, 0x60(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x68(%rax)
cmpl $0x0, -0x24(%rbp)
je 0x7d15e
jmp 0x7db38
movq -0x18(%rbp), %rax
movq $0x0, 0x50(%rax)
movq -0x30(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x30(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x18(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x7d224
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0xc(%rax), %edx
movl $0x2f, %esi
callq 0x6e570
movl %eax, -0x6c(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x7d222
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x10(%rax), %edx
movq -0x18(%rbp), %rax
movl 0x10(%rax), %ecx
movl $0x8c, %esi
xorl %r8d, %r8d
callq 0x56c10
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0xc(%rax), %edx
movq -0x18(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x18(%rbp), %rax
movl 0x10(%rax), %r8d
addl $0x1, %r8d
movl $0x59, %esi
callq 0x56c10
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0xc(%rax), %edx
movq -0x18(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl $0x8c, %esi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x56c10
jmp 0x7d224
movq -0x10(%rbp), %rax
movl 0x200(%rax), %eax
movl %eax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x5f480
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x18(%rbp), %rax
addq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x60(%rax)
je 0x7d2b5
movq -0x30(%rbp), %rax
movq 0x60(%rax), %rdi
leaq -0x70(%rbp), %rsi
callq 0x72570
cmpl $0x0, %eax
je 0x7d2b5
cmpl $0x0, -0x70(%rbp)
jle 0x7d2b5
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x70(%rbp), %rcx
cmpq %rcx, %rax
jbe 0x7d2b5
movslq -0x70(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x20(%rax)
cmpl $0x0, -0x6c(%rbp)
je 0x7d2c7
movq -0x38(%rbp), %rdi
movl -0x6c(%rbp), %esi
callq 0x6be30
jmp 0x7d930
movb $0x0, -0x75(%rbp)
movl $0x1, -0x7c(%rbp)
movzbl -0x50(%rbp), %eax
cmpl -0x7c(%rbp), %eax
jne 0x7d2e8
movl -0x4c(%rbp), %eax
movl %eax, -0x74(%rbp)
jmp 0x7d334
movq -0x10(%rbp), %rcx
movl 0x50(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x50(%rcx)
movl %eax, -0x74(%rbp)
movq -0x38(%rbp), %rdi
movl -0x74(%rbp), %edx
movl $0x3a, %esi
xorl %ecx, %ecx
callq 0x6c310
movl %eax, -0x94(%rbp)
movl -0x94(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x18(%rbp), %rdi
callq 0x78540
movzwl 0xa(%rax), %ecx
orl $0x10, %ecx
movw %cx, 0xa(%rax)
movl -0x7c(%rbp), %esi
movl -0x74(%rbp), %edx
leaq -0xb0(%rbp), %rdi
callq 0x72520
movq -0x10(%rbp), %rax
movl 0x200(%rax), %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
callq 0x5f480
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x7d375
jmp 0x7db38
movq -0x18(%rbp), %rax
movzbl 0x8(%rax), %eax
cmpl $0x75, %eax
jne 0x7d388
movb $0x2, -0x75(%rbp)
jmp 0x7d38c
movb $0x1, -0x75(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, 0x50(%rax)
movq -0x18(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, 0x60(%rax)
movq -0x18(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x90(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, 0x68(%rax)
movb -0x75(%rbp), %al
movb %al, -0xb0(%rbp)
movq -0x10(%rbp), %rax
movl 0x200(%rax), %eax
movl %eax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
callq 0x5f480
movl %eax, -0x24(%rbp)
movq -0x60(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x48(%rax), %rsi
callq 0x53790
movq -0x18(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x48(%rax)
movq -0x18(%rbp), %rax
movzbl 0x8(%rax), %eax
cmpl $0x73, %eax
jne 0x7d451
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x18(%rbp), %rax
addq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
movq -0x60(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x60(%rax), %rsi
callq 0x536c0
movq -0x88(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0x90(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x68(%rax)
movq -0x18(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0x18(%rbp), %rax
movl $0x0, 0x10(%rax)
movzbl -0x50(%rbp), %eax
cmpl -0x7c(%rbp), %eax
je 0x7d5d4
movzbl -0x50(%rbp), %eax
cmpl $0x9, %eax
jne 0x7d4f7
movq -0x18(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x7d4d9
movq -0xc8(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0xc8(%rbp)
jmp 0x7d4b7
movq -0x10(%rbp), %rdi
movq -0xc8(%rbp), %rax
movq 0x28(%rax), %rsi
movq -0xc8(%rbp), %rax
movq (%rax), %rdx
callq 0x80c70
movq -0x38(%rbp), %rdi
callq 0x6e5a0
movl %eax, -0xb8(%rbp)
movq -0x38(%rbp), %rdi
callq 0x6e5a0
movl %eax, -0xb4(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0xb8(%rbp), %edx
callq 0x7de00
movq -0x38(%rbp), %rdi
movl -0x74(%rbp), %edx
movl -0xb8(%rbp), %ecx
movl $0x6e, %esi
callq 0x6c310
movq -0x38(%rbp), %rdi
callq 0x6c2b0
movl %eax, -0xbc(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x18(%rbp), %rax
movq (%rax), %rdx
movl -0x74(%rbp), %ecx
movl -0xb4(%rbp), %r10d
movl -0xb8(%rbp), %eax
xorl %r8d, %r8d
movl %r8d, %r9d
leaq -0x50(%rbp), %r11
movq %r9, %r8
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x7eeb0
movq -0x38(%rbp), %rdi
movl -0xb4(%rbp), %esi
callq 0x6e780
movq -0x38(%rbp), %rdi
movl -0x74(%rbp), %edx
movl -0xbc(%rbp), %ecx
movl $0x8, %esi
callq 0x6c310
movq -0x38(%rbp), %rdi
movl -0xb8(%rbp), %esi
callq 0x6e780
movq -0x38(%rbp), %rdi
movl -0x74(%rbp), %edx
movl $0x3e, %esi
xorl %ecx, %ecx
callq 0x6c310
jmp 0x7d930
movq -0x10(%rbp), %rcx
movl 0x50(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x50(%rcx)
movl %eax, -0xcc(%rbp)
movq -0x10(%rbp), %rcx
movl 0x50(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x50(%rcx)
movl %eax, -0xd0(%rbp)
movq -0x38(%rbp), %rdi
movl -0xcc(%rbp), %edx
movl $0x3a, %esi
xorl %ecx, %ecx
callq 0x6c310
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x18(%rbp), %rdi
callq 0x78540
movzwl 0xa(%rax), %ecx
orl $0x10, %ecx
movw %cx, 0xa(%rax)
movl -0xcc(%rbp), %edx
leaq -0x110(%rbp), %rdi
movl $0x1, %esi
callq 0x72520
movq -0x10(%rbp), %rax
movl 0x200(%rax), %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0x5f480
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x7d686
jmp 0x7db38
movq -0x38(%rbp), %rdi
movl -0xd0(%rbp), %edx
movl $0x3a, %esi
xorl %ecx, %ecx
callq 0x6c310
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x50(%rax)
movq -0x18(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0xe8(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, 0x60(%rax)
movq -0x18(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0xf0(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, 0x68(%rax)
movl -0xd0(%rbp), %eax
movl %eax, -0x10c(%rbp)
movq -0x10(%rbp), %rax
movl 0x200(%rax), %eax
movl %eax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0x5f480
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x30(%rbp), %rcx
cmpq 0x20(%rcx), %rax
jbe 0x7d75b
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x60(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x60(%rax), %rsi
callq 0x536c0
movq -0xe8(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0xf0(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x68(%rax)
movzbl -0x50(%rbp), %eax
cmpl $0x9, %eax
jne 0x7d7de
movq -0x18(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x7d7c0
movq -0x120(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x120(%rbp)
jmp 0x7d79e
movq -0x10(%rbp), %rdi
movq -0x120(%rbp), %rax
movq 0x28(%rax), %rsi
movq -0x120(%rbp), %rax
movq (%rax), %rdx
callq 0x80c70
movq -0x38(%rbp), %rdi
callq 0x6e5a0
movl %eax, -0xd8(%rbp)
movq -0x38(%rbp), %rdi
callq 0x6e5a0
movl %eax, -0xd4(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0xd8(%rbp), %edx
callq 0x7de00
movq -0x38(%rbp), %rdi
movl -0xcc(%rbp), %edx
movl -0xd8(%rbp), %ecx
movl $0x6e, %esi
callq 0x6c310
movq -0x10(%rbp), %rdi
callq 0x6f960
movl %eax, -0x114(%rbp)
movq -0x38(%rbp), %rdi
movl -0xcc(%rbp), %edx
movl -0x114(%rbp), %ecx
movl $0x67, %esi
callq 0x6c310
movl %eax, -0xdc(%rbp)
movq -0x38(%rbp), %rdi
movl -0xd0(%rbp), %edx
movl -0xd4(%rbp), %ecx
movl -0x114(%rbp), %r8d
movl $0x46, %esi
xorl %r9d, %r9d
callq 0x17b10
movq -0x10(%rbp), %rdi
movl -0x114(%rbp), %esi
callq 0x6f9b0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x18(%rbp), %rax
movq (%rax), %rdx
movl -0xcc(%rbp), %ecx
movl -0xd4(%rbp), %r10d
movl -0xd8(%rbp), %eax
xorl %r8d, %r8d
movl %r8d, %r9d
leaq -0x50(%rbp), %r11
movq %r9, %r8
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x7eeb0
movq -0x38(%rbp), %rdi
movl -0xd4(%rbp), %esi
callq 0x6e780
movq -0x38(%rbp), %rdi
movl -0xcc(%rbp), %edx
movl -0xdc(%rbp), %ecx
movl $0x8, %esi
callq 0x6c310
movq -0x38(%rbp), %rdi
movl -0xd8(%rbp), %esi
callq 0x6e780
movq -0x38(%rbp), %rdi
movl -0xd0(%rbp), %edx
movl $0x3e, %esi
xorl %ecx, %ecx
callq 0x6c310
movq -0x38(%rbp), %rdi
movl -0xcc(%rbp), %edx
movl $0x3e, %esi
xorl %ecx, %ecx
callq 0x6c310
jmp 0x7d932
jmp 0x7d934
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movzbl 0x8(%rax), %esi
movl -0x64(%rbp), %edx
movl -0x68(%rbp), %ecx
movq -0x18(%rbp), %rax
movzbl 0x8(%rax), %eax
cmpl $0x74, %eax
setne %al
andb $0x1, %al
movzbl %al, %r8d
callq 0x82500
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x7db36
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x144(%rbp)
movq -0x60(%rbp), %rdi
movl -0x144(%rbp), %esi
movl $0x1, %edx
callq 0x6c670
movq %rax, -0x130(%rbp)
cmpq $0x0, -0x130(%rbp)
jne 0x7d9b3
movl $0x7, -0x24(%rbp)
jmp 0x7db38
movl $0x0, -0x124(%rbp)
movq -0x130(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x140(%rbp)
movl -0x124(%rbp), %eax
cmpl -0x144(%rbp), %eax
jge 0x7da42
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x124(%rbp), %edx
callq 0x825d0
movq %rax, %rcx
movq -0x140(%rbp), %rax
movq %rcx, (%rax)
movq -0x140(%rbp), %rcx
xorl %eax, %eax
cmpq (%rcx), %rax
jne 0x7da1d
movq -0x60(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x140(%rbp), %rax
movq %rcx, (%rax)
jmp 0x7da1f
movl -0x124(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x124(%rbp)
movq -0x140(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x140(%rbp)
jmp 0x7d9cf
movq -0x18(%rbp), %rax
movq %rax, -0x138(%rbp)
cmpq $0x0, -0x138(%rbp)
je 0x7db2a
movl $0x0, -0x124(%rbp)
cmpl $0x2, -0x124(%rbp)
jge 0x7db11
movq -0x138(%rbp), %rax
movslq -0x124(%rbp), %rcx
movl 0x14(%rax,%rcx,4), %eax
movl %eax, -0x148(%rbp)
cmpl $0x0, -0x148(%rbp)
jge 0x7da95
jmp 0x7db11
movq -0x38(%rbp), %rdi
movl -0x148(%rbp), %esi
movl -0x144(%rbp), %edx
callq 0x17d70
movq -0x38(%rbp), %rax
movq %rax, -0x168(%rbp)
movl -0x148(%rbp), %eax
movl %eax, -0x160(%rbp)
movq -0x130(%rbp), %rdi
callq 0x7b560
movq -0x168(%rbp), %rdi
movl -0x160(%rbp), %esi
movq %rax, %rdx
movl $0xfffffffa, %ecx       # imm = 0xFFFFFFFA
callq 0x17dd0
movq -0x138(%rbp), %rax
movslq -0x124(%rbp), %rcx
movl $0xffffffff, 0x14(%rax,%rcx,4) # imm = 0xFFFFFFFF
movl -0x124(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x124(%rbp)
jmp 0x7da65
jmp 0x7db13
movq -0x138(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x138(%rbp)
jmp 0x7da4d
movq -0x130(%rbp), %rdi
callq 0x355b0
jmp 0x7db38
movl -0x48(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movl -0x44(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x53840
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
nopl (%rax,%rax)