// File: /workspace/github_c_makefile_star2_O0/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: selectExpander
static int selectExpander(Walker *pWalker, Select *p){
  Parse *pParse = pWalker->pParse;
  int i, j, k;
  SrcList *pTabList;
  ExprList *pEList;
  struct SrcList_item *pFrom;
  sqlite3 *db = pParse->db;
  Expr *pE, *pRight, *pExpr;
  u16 selFlags = p->selFlags;

  p->selFlags |= SF_Expanded;
  if( db->mallocFailed  ){
    return WRC_Abort;
  }
  if( NEVER(p->pSrc==0) || (selFlags & SF_Expanded)!=0 ){
    return WRC_Prune;
  }
  pTabList = p->pSrc;
  pEList = p->pEList;
  if( pWalker->xSelectCallback2==selectPopWith ){
    sqlite3WithPush(pParse, findRightmost(p)->pWith, 0);
  }

  /* Make sure cursor numbers have been assigned to all entries in
  ** the FROM clause of the SELECT statement.
  */
  sqlite3SrcListAssignCursors(pParse, pTabList);

  /* Look up every table named in the FROM clause of the select.  If
  ** an entry of the FROM clause is a subquery instead of a table or view,
  ** then create a transient table structure to describe the subquery.
  */
  for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
    Table *pTab;
    assert( pFrom->fg.isRecursive==0 || pFrom->pTab!=0 );
    if( pFrom->fg.isRecursive ) continue;
    assert( pFrom->pTab==0 );
#ifndef SQLITE_OMIT_CTE
    if( withExpand(pWalker, pFrom) ) return WRC_Abort;
    if( pFrom->pTab ) {} else
#endif
    if( pFrom->zName==0 ){
#ifndef SQLITE_OMIT_SUBQUERY
      Select *pSel = pFrom->pSelect;
      /* A sub-query in the FROM clause of a SELECT */
      assert( pSel!=0 );
      assert( pFrom->pTab==0 );
      if( sqlite3WalkSelect(pWalker, pSel) ) return WRC_Abort;
      pFrom->pTab = pTab = sqlite3DbMallocZero(db, sizeof(Table));
      if( pTab==0 ) return WRC_Abort;
      pTab->nRef = 1;
      pTab->zName = sqlite3MPrintf(db, "sqlite_sq_%p", (void*)pTab);
      while( pSel->pPrior ){ pSel = pSel->pPrior; }
      sqlite3ColumnsFromExprList(pParse, pSel->pEList,&pTab->nCol,&pTab->aCol);
      pTab->iPKey = -1;
      pTab->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) );
      pTab->tabFlags |= TF_Ephemeral;
#endif
    }else{
      /* An ordinary table or view name in the FROM clause */
      assert( pFrom->pTab==0 );
      pFrom->pTab = pTab = sqlite3LocateTableItem(pParse, 0, pFrom);
      if( pTab==0 ) return WRC_Abort;
      if( pTab->nRef==0xffff ){
        sqlite3ErrorMsg(pParse, "too many references to \"%s\": max 65535",
           pTab->zName);
        pFrom->pTab = 0;
        return WRC_Abort;
      }
      pTab->nRef++;
      if( !IsVirtual(pTab) && cannotBeFunction(pParse, pFrom) ){
        return WRC_Abort;
      }
#if !defined(SQLITE_OMIT_VIEW) || !defined (SQLITE_OMIT_VIRTUALTABLE)
      if( IsVirtual(pTab) || pTab->pSelect ){
        i16 nCol;
        if( sqlite3ViewGetColumnNames(pParse, pTab) ) return WRC_Abort;
        assert( pFrom->pSelect==0 );
        pFrom->pSelect = sqlite3SelectDup(db, pTab->pSelect, 0);
        sqlite3SelectSetName(pFrom->pSelect, pTab->zName);
        nCol = pTab->nCol;
        pTab->nCol = -1;
        sqlite3WalkSelect(pWalker, pFrom->pSelect);
        pTab->nCol = nCol;
      }
#endif
    }

    /* Locate the index named by the INDEXED BY clause, if any. */
    if( sqlite3IndexedByLookup(pParse, pFrom) ){
      return WRC_Abort;
    }
  }

  /* Process NATURAL keywords, and ON and USING clauses of joins.
  */
  if( db->mallocFailed || sqliteProcessJoin(pParse, p) ){
    return WRC_Abort;
  }

  /* For every "*" that occurs in the column list, insert the names of
  ** all columns in all tables.  And for every TABLE.* insert the names
  ** of all columns in TABLE.  The parser inserted a special expression
  ** with the TK_ASTERISK operator for each "*" that it found in the column
  ** list.  The following code just has to locate the TK_ASTERISK
  ** expressions and expand each one to the list of all columns in
  ** all tables.
  **
  ** The first loop just checks to see if there are any "*" operators
  ** that need expanding.
  */
  for(k=0; k<pEList->nExpr; k++){
    pE = pEList->a[k].pExpr;
    if( pE->op==TK_ASTERISK ) break;
    assert( pE->op!=TK_DOT || pE->pRight!=0 );
    assert( pE->op!=TK_DOT || (pE->pLeft!=0 && pE->pLeft->op==TK_ID) );
    if( pE->op==TK_DOT && pE->pRight->op==TK_ASTERISK ) break;
  }
  if( k<pEList->nExpr ){
    /*
    ** If we get here it means the result set contains one or more "*"
    ** operators that need to be expanded.  Loop through each expression
    ** in the result set and expand them one by one.
    */
    struct ExprList_item *a = pEList->a;
    ExprList *pNew = 0;
    int flags = pParse->db->flags;
    int longNames = (flags & SQLITE_FullColNames)!=0
                      && (flags & SQLITE_ShortColNames)==0;

    for(k=0; k<pEList->nExpr; k++){
      pE = a[k].pExpr;
      pRight = pE->pRight;
      assert( pE->op!=TK_DOT || pRight!=0 );
      if( pE->op!=TK_ASTERISK
       && (pE->op!=TK_DOT || pRight->op!=TK_ASTERISK)
      ){
        /* This particular expression does not need to be expanded.
        */
        pNew = sqlite3ExprListAppend(pParse, pNew, a[k].pExpr);
        if( pNew ){
          pNew->a[pNew->nExpr-1].zName = a[k].zName;
          pNew->a[pNew->nExpr-1].zSpan = a[k].zSpan;
          a[k].zName = 0;
          a[k].zSpan = 0;
        }
        a[k].pExpr = 0;
      }else{
        /* This expression is a "*" or a "TABLE.*" and needs to be
        ** expanded. */
        int tableSeen = 0;      /* Set to 1 when TABLE matches */
        char *zTName = 0;       /* text of name of TABLE */
        if( pE->op==TK_DOT ){
          assert( pE->pLeft!=0 );
          assert( !ExprHasProperty(pE->pLeft, EP_IntValue) );
          zTName = pE->pLeft->u.zToken;
        }
        for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
          Table *pTab = pFrom->pTab;
          Select *pSub = pFrom->pSelect;
          char *zTabName = pFrom->zAlias;
          const char *zSchemaName = 0;
          int iDb;
          if( zTabName==0 ){
            zTabName = pTab->zName;
          }
          if( db->mallocFailed ) break;
          if( pSub==0 || (pSub->selFlags & SF_NestedFrom)==0 ){
            pSub = 0;
            if( zTName && sqlite3StrICmp(zTName, zTabName)!=0 ){
              continue;
            }
            iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
            zSchemaName = iDb>=0 ? db->aDb[iDb].zName : "*";
          }
          for(j=0; j<pTab->nCol; j++){
            char *zName = pTab->aCol[j].zName;
            char *zColname;  /* The computed column name */
            char *zToFree;   /* Malloced string that needs to be freed */
            Token sColname;  /* Computed column name as a token */

            assert( zName );
            if( zTName && pSub
             && sqlite3MatchSpanName(pSub->pEList->a[j].zSpan, 0, zTName, 0)==0
            ){
              continue;
            }

            /* If a column is marked as 'hidden', omit it from the expanded
            ** result-set list unless the SELECT has the SF_IncludeHidden
            ** bit set.
            */
            if( (p->selFlags & SF_IncludeHidden)==0
             && IsHiddenColumn(&pTab->aCol[j]) 
            ){
              continue;
            }
            tableSeen = 1;

            if( i>0 && zTName==0 ){
              if( (pFrom->fg.jointype & JT_NATURAL)!=0
                && tableAndColumnIndex(pTabList, i, zName, 0, 0)
              ){
                /* In a NATURAL join, omit the join columns from the 
                ** table to the right of the join */
                continue;
              }
              if( sqlite3IdListIndex(pFrom->pUsing, zName)>=0 ){
                /* In a join with a USING clause, omit columns in the
                ** using clause from the table on the right. */
                continue;
              }
            }
            pRight = sqlite3Expr(db, TK_ID, zName);
            zColname = zName;
            zToFree = 0;
            if( longNames || pTabList->nSrc>1 ){
              Expr *pLeft;
              pLeft = sqlite3Expr(db, TK_ID, zTabName);
              pExpr = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight, 0);
              if( zSchemaName ){
                pLeft = sqlite3Expr(db, TK_ID, zSchemaName);
                pExpr = sqlite3PExpr(pParse, TK_DOT, pLeft, pExpr, 0);
              }
              if( longNames ){
                zColname = sqlite3MPrintf(db, "%s.%s", zTabName, zName);
                zToFree = zColname;
              }
            }else{
              pExpr = pRight;
            }
            pNew = sqlite3ExprListAppend(pParse, pNew, pExpr);
            sColname.z = zColname;
            sColname.n = sqlite3Strlen30(zColname);
            sqlite3ExprListSetName(pParse, pNew, &sColname, 0);
            if( pNew && (p->selFlags & SF_NestedFrom)!=0 ){
              struct ExprList_item *pX = &pNew->a[pNew->nExpr-1];
              if( pSub ){
                pX->zSpan = sqlite3DbStrDup(db, pSub->pEList->a[j].zSpan);
                testcase( pX->zSpan==0 );
              }else{
                pX->zSpan = sqlite3MPrintf(db, "%s.%s.%s",
                                           zSchemaName, zTabName, zColname);
                testcase( pX->zSpan==0 );
              }
              pX->bSpanIsTab = 1;
            }
            sqlite3DbFree(db, zToFree);
          }
        }
        if( !tableSeen ){
          if( zTName ){
            sqlite3ErrorMsg(pParse, "no such table: %s", zTName);
          }else{
            sqlite3ErrorMsg(pParse, "no tables specified");
          }
        }
      }
    }
    sqlite3ExprListDelete(db, pEList);
    p->pEList = pNew;
  }
#if SQLITE_MAX_COLUMN
  if( p->pEList && p->pEList->nExpr>db->aLimit[SQLITE_LIMIT_COLUMN] ){
    sqlite3ErrorMsg(pParse, "too many columns in result set");
    return WRC_Abort;
  }
#endif
  return WRC_Continue;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
movw 0xa(%rax), %ax
movw %ax, -0x6a(%rbp)
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %ecx
orl $0x20, %ecx
movw %cx, 0xa(%rax)
movq -0x50(%rbp), %rax
cmpb $0x0, 0x51(%rax)
je 0x7794b
movl $0x2, -0x4(%rbp)
jmp 0x784e0
movq -0x18(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x77962
movzwl -0x6a(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x7796e
movl $0x1, -0x4(%rbp)
jmp 0x784e0
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
leaq 0xb60(%rip), %rcx       # 0x784f0
cmpq %rcx, 0x10(%rax)
jne 0x779bc
movq -0x20(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x18(%rbp), %rdi
callq 0x78540
movq -0x118(%rbp), %rdi
movq 0x70(%rax), %rsi
xorl %edx, %edx
callq 0x61b50
movq -0x20(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x78570
movl $0x0, -0x24(%rbp)
movq -0x38(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x48(%rbp)
movl -0x24(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x77ca2
movq -0x48(%rbp), %rax
movb 0x3d(%rax), %al
shrb $0x5, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x77a04
jmp 0x77c88
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x78610
cmpl $0x0, %eax
je 0x77a22
movl $0x2, -0x4(%rbp)
jmp 0x784e0
movq -0x48(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x77a32
jmp 0x77c68
movq -0x48(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x77b25
movq -0x48(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x70f50
cmpl $0x0, %eax
je 0x77a6b
movl $0x2, -0x4(%rbp)
jmp 0x784e0
movq -0x50(%rbp), %rdi
movl $0x78, %esi
callq 0x15b80
movq %rax, %rcx
movq %rcx, -0x78(%rbp)
movq -0x48(%rbp), %rax
movq %rcx, 0x20(%rax)
cmpq $0x0, -0x78(%rbp)
jne 0x77a9b
movl $0x2, -0x4(%rbp)
jmp 0x784e0
movq -0x78(%rbp), %rax
movw $0x1, 0x40(%rax)
movq -0x50(%rbp), %rdi
movq -0x78(%rbp), %rdx
leaq 0x2fe49(%rip), %rsi     # 0xa78fd
movb $0x0, %al
callq 0x17940
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, (%rax)
movq -0x80(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x77ade
movq -0x80(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x80(%rbp)
jmp 0x77ac5
movq -0x20(%rbp), %rdi
movq -0x80(%rbp), %rax
movq (%rax), %rsi
movq -0x78(%rbp), %rdx
addq $0x3e, %rdx
movq -0x78(%rbp), %rcx
addq $0x8, %rcx
callq 0x78a50
movq -0x78(%rbp), %rax
movw $0xffff, 0x3c(%rax)     # imm = 0xFFFF
movq -0x78(%rbp), %rax
movw $0xc8, 0x42(%rax)
movq -0x78(%rbp), %rax
movzbl 0x46(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x46(%rax)
jmp 0x77c66
movq -0x20(%rbp), %rdi
movq -0x48(%rbp), %rdx
xorl %esi, %esi
callq 0x78e70
movq %rax, %rcx
movq %rcx, -0x78(%rbp)
movq -0x48(%rbp), %rax
movq %rcx, 0x20(%rax)
cmpq $0x0, -0x78(%rbp)
jne 0x77b56
movl $0x2, -0x4(%rbp)
jmp 0x784e0
movq -0x78(%rbp), %rax
movzwl 0x40(%rax), %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x77b96
movq -0x20(%rbp), %rdi
movq -0x78(%rbp), %rax
movq (%rax), %rdx
leaq 0x2fd93(%rip), %rsi     # 0xa790a
movb $0x0, %al
callq 0x17840
movq -0x48(%rbp), %rax
movq $0x0, 0x20(%rax)
movl $0x2, -0x4(%rbp)
jmp 0x784e0
movq -0x78(%rbp), %rax
movw 0x40(%rax), %cx
addw $0x1, %cx
movw %cx, 0x40(%rax)
movq -0x78(%rbp), %rax
movzbl 0x46(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
jne 0x77bd4
movq -0x20(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x78ef0
cmpl $0x0, %eax
je 0x77bd4
movl $0x2, -0x4(%rbp)
jmp 0x784e0
movq -0x78(%rbp), %rax
movzbl 0x46(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
jne 0x77bef
movq -0x78(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x77c64
movq -0x20(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x78f50
cmpl $0x0, %eax
je 0x77c0d
movl $0x2, -0x4(%rbp)
jmp 0x784e0
movq -0x50(%rbp), %rdi
movq -0x78(%rbp), %rax
movq 0x18(%rax), %rsi
xorl %edx, %edx
callq 0x71840
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x78(%rbp), %rax
movw 0x3e(%rax), %ax
movw %ax, -0x82(%rbp)
movq -0x78(%rbp), %rax
movw $0xffff, 0x3e(%rax)     # imm = 0xFFFF
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0x70f50
movw -0x82(%rbp), %cx
movq -0x78(%rbp), %rax
movw %cx, 0x3e(%rax)
jmp 0x77c66
jmp 0x77c68
movq -0x20(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x79190
cmpl $0x0, %eax
je 0x77c86
movl $0x2, -0x4(%rbp)
jmp 0x784e0
jmp 0x77c88
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movq -0x48(%rbp), %rax
addq $0x70, %rax
movq %rax, -0x48(%rbp)
jmp 0x779dc
movq -0x50(%rbp), %rax
movzbl 0x51(%rax), %eax
cmpl $0x0, %eax
jne 0x77cc1
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x79280
cmpl $0x0, %eax
je 0x77ccd
movl $0x2, -0x4(%rbp)
jmp 0x784e0
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x40(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x77d36
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x9e, %eax
jne 0x77d09
jmp 0x77d36
movq -0x58(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x7a, %eax
jne 0x77d29
movq -0x58(%rbp), %rax
movq 0x18(%rax), %rax
movzbl (%rax), %eax
cmpl $0x9e, %eax
jne 0x77d29
jmp 0x77d36
jmp 0x77d2b
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x77cd4
movl -0x2c(%rbp), %eax
movq -0x40(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x784a2
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x90(%rbp)
movq $0x0, -0x98(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl 0x2c(%rax), %eax
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %ecx
andl $0x20, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x119(%rbp)
je 0x77d9a
movl -0x9c(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x119(%rbp)
movb -0x119(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0xa0(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x40(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x78487
movq -0x90(%rbp), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x9e, %eax
je 0x77f18
movq -0x58(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x7a, %eax
jne 0x77e16
movq -0x60(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x9e, %eax
je 0x77f18
movq -0x20(%rbp), %rdi
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rdx
callq 0x613a0
movq %rax, -0x98(%rbp)
cmpq $0x0, -0x98(%rbp)
je 0x77efa
movq -0x90(%rbp), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rcx
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x98(%rbp), %rdx
movl (%rdx), %edx
subl $0x1, %edx
movslq %edx, %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq -0x90(%rbp), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rcx
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x98(%rbp), %rdx
movl (%rdx), %edx
subl $0x1, %edx
movslq %edx, %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x10(%rax)
movq -0x90(%rbp), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq $0x0, 0x8(%rax)
movq -0x90(%rbp), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq $0x0, 0x10(%rax)
movq -0x90(%rbp), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq $0x0, (%rax)
jmp 0x78477
movl $0x0, -0xa4(%rbp)
movq $0x0, -0xb0(%rbp)
movq -0x58(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x7a, %eax
jne 0x77f4c
movq -0x58(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0xb0(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x38(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x48(%rbp)
movl -0x24(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x78433
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xb8(%rbp)
movq -0x48(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0xc0(%rbp)
movq -0x48(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0xc8(%rbp)
movq $0x0, -0xd0(%rbp)
cmpq $0x0, -0xc8(%rbp)
jne 0x77fc1
movq -0xb8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xc8(%rbp)
movq -0x50(%rbp), %rax
cmpb $0x0, 0x51(%rax)
je 0x77fd0
jmp 0x78433
cmpq $0x0, -0xc0(%rbp)
je 0x77ff3
movq -0xc0(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
jne 0x78088
movq $0x0, -0xc0(%rbp)
cmpq $0x0, -0xb0(%rbp)
je 0x78025
movq -0xb0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
callq 0xb5c0
cmpl $0x0, %eax
je 0x78025
jmp 0x78419
movq -0x50(%rbp), %rdi
movq -0xb8(%rbp), %rax
movq 0x68(%rax), %rsi
callq 0x17ab0
movl %eax, -0xd4(%rbp)
cmpl $0x0, -0xd4(%rbp)
jl 0x7806a
movq -0x50(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0xd4(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x128(%rbp)
jmp 0x7807a
leaq 0x2e728(%rip), %rax     # 0xa6799
movq %rax, -0x128(%rbp)
jmp 0x7807a
movq -0x128(%rbp), %rax
movq %rax, -0xd0(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movq -0xb8(%rbp), %rcx
movswl 0x3e(%rcx), %ecx
cmpl %ecx, %eax
jge 0x78417
movq -0xb8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x28(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0xe0(%rbp)
cmpq $0x0, -0xb0(%rbp)
je 0x78113
cmpq $0x0, -0xc0(%rbp)
je 0x78113
movq -0xc0(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movslq -0x28(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdi
movq -0xb0(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rsi
callq 0x76700
cmpl $0x0, %eax
jne 0x78113
jmp 0x78409
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
jne 0x7814c
movq -0xb8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x28(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movzbl 0x2b(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x7814c
jmp 0x78409
movl $0x1, -0xa4(%rbp)
cmpl $0x0, -0x24(%rbp)
jle 0x781bb
cmpq $0x0, -0xb0(%rbp)
jne 0x781bb
movq -0x48(%rbp), %rax
movzbl 0x3c(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x7819b
movq -0x38(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0xe0(%rbp), %rdx
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rcx
callq 0x795b0
cmpl $0x0, %eax
je 0x7819b
jmp 0x78409
movq -0x48(%rbp), %rax
movq 0x50(%rax), %rdi
movq -0xe0(%rbp), %rsi
callq 0x79650
cmpl $0x0, %eax
jl 0x781b9
jmp 0x78409
jmp 0x781bb
movq -0x50(%rbp), %rdi
movq -0xe0(%rbp), %rdx
movl $0x1b, %esi
callq 0x61600
movq %rax, -0x60(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq $0x0, -0xf0(%rbp)
cmpl $0x0, -0xa0(%rbp)
jne 0x78203
movq -0x38(%rbp), %rax
cmpl $0x1, (%rax)
jle 0x782c9
movq -0x50(%rbp), %rdi
movq -0xc8(%rbp), %rdx
movl $0x1b, %esi
callq 0x61600
movq %rax, -0x108(%rbp)
movq -0x20(%rbp), %rdi
movq -0x108(%rbp), %rdx
movq -0x60(%rbp), %rcx
movl $0x7a, %esi
xorl %eax, %eax
movl %eax, %r8d
callq 0x5d170
movq %rax, -0x68(%rbp)
cmpq $0x0, -0xd0(%rbp)
je 0x78289
movq -0x50(%rbp), %rdi
movq -0xd0(%rbp), %rdx
movl $0x1b, %esi
callq 0x61600
movq %rax, -0x108(%rbp)
movq -0x20(%rbp), %rdi
movq -0x108(%rbp), %rdx
movq -0x68(%rbp), %rcx
movl $0x7a, %esi
xorl %eax, %eax
movl %eax, %r8d
callq 0x5d170
movq %rax, -0x68(%rbp)
cmpl $0x0, -0xa0(%rbp)
je 0x782c7
movq -0x50(%rbp), %rdi
movq -0xc8(%rbp), %rdx
movq -0xe0(%rbp), %rcx
leaq 0x2d86e(%rip), %rsi     # 0xa5b19
movb $0x0, %al
callq 0x17940
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0xf0(%rbp)
jmp 0x782d1
movq -0x60(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x20(%rbp), %rdi
movq -0x98(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x613a0
movq %rax, -0x98(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0xe8(%rbp), %rdi
callq 0xc6c0
movl %eax, -0xf8(%rbp)
movq -0x20(%rbp), %rdi
movq -0x98(%rbp), %rsi
leaq -0x100(%rbp), %rdx
xorl %ecx, %ecx
callq 0x614e0
cmpq $0x0, -0x98(%rbp)
je 0x783f9
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x783f9
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x98(%rbp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x110(%rbp)
cmpq $0x0, -0xc0(%rbp)
je 0x783b1
movq -0x50(%rbp), %rdi
movq -0xc0(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movslq -0x28(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rsi
callq 0x15800
movq %rax, %rcx
movq -0x110(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x783e6
movq -0x50(%rbp), %rdi
movq -0xd0(%rbp), %rdx
movq -0xc8(%rbp), %rcx
movq -0xe8(%rbp), %r8
leaq 0x2f417(%rip), %rsi     # 0xa77e8
movb $0x0, %al
callq 0x17940
movq %rax, %rcx
movq -0x110(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x110(%rbp), %rax
movb 0x19(%rax), %cl
andb $-0x3, %cl
orb $0x2, %cl
movb %cl, 0x19(%rax)
movq -0x50(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0xd260
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x7808f
jmp 0x78419
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movq -0x48(%rbp), %rax
addq $0x70, %rax
movq %rax, -0x48(%rbp)
jmp 0x77f5f
cmpl $0x0, -0xa4(%rbp)
jne 0x78475
cmpq $0x0, -0xb0(%rbp)
je 0x78461
movq -0x20(%rbp), %rdi
movq -0xb0(%rbp), %rdx
leaq 0x2f4d9(%rip), %rsi     # 0xa7931
movb $0x0, %al
callq 0x17840
jmp 0x78473
movq -0x20(%rbp), %rdi
leaq 0x2f4d7(%rip), %rsi     # 0xa7943
movb $0x0, %al
callq 0x17840
jmp 0x78475
jmp 0x78477
jmp 0x78479
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x77db2
movq -0x50(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x53790
movq -0x98(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
je 0x784d9
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movq -0x50(%rbp), %rcx
cmpl 0x70(%rcx), %eax
jle 0x784d9
movq -0x20(%rbp), %rdi
leaq 0x2f48e(%rip), %rsi     # 0xa7957
movb $0x0, %al
callq 0x17840
movl $0x2, -0x4(%rbp)
jmp 0x784e0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nopl (%rax)