// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %r13
movq 0x18(%rdi), %r15
movq (%r15), %rdi
movzwl 0xa(%rsi), %eax
movl %eax, %ecx
orl $0x20, %ecx
movw %cx, 0xa(%rsi)
cmpb $0x0, 0x51(%rdi)
je 0x57b93
movl $0x2, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28(%rsi), %rcx
movq %rcx, -0x98(%rbp)
testq %rcx, %rcx
setne %cl
testb $0x20, %al
sete %dl
andb %cl, %dl
movl $0x1, %eax
cmpb $0x1, %dl
jne 0x57b81
movq %rdi, -0x68(%rbp)
movq (%rsi), %rax
movq %rax, -0xa8(%rbp)
leaq 0xe4b(%rip), %rax       # 0x58a15
cmpq %rax, 0x10(%r13)
jne 0x57bfa
movq %rsi, %rcx
movq %rcx, %rax
movq 0x58(%rcx), %rcx
testq %rcx, %rcx
jne 0x57bd3
movq 0x70(%rax), %rax
testq %rax, %rax
je 0x57bfa
movq 0x280(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x280(%r15)
movq %rsi, -0x90(%rbp)
movq %r15, %rdi
movq -0x98(%rbp), %rbx
movq %rbx, %rsi
callq 0x58a3f
leaq 0x8(%rbx), %rax
movq %rax, -0xc8(%rbp)
movl (%rbx), %eax
testl %eax, %eax
movq %r15, -0x58(%rbp)
jle 0x580ee
xorl %ecx, %ecx
movq -0xc8(%rbp), %r12
movq %r13, -0x78(%rbp)
movb 0x3d(%r12), %dl
testb $0x20, %dl
jne 0x57faf
movl %ecx, -0x80(%rbp)
cmpq $0x0, 0x8(%r12)
je 0x57d0a
cmpq $0x0, 0x20(%r12)
movq -0x68(%rbp), %rbx
jne 0x57f90
cmpq $0x0, 0x10(%r12)
je 0x57ed5
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x58d7f
movq %rax, 0x20(%r12)
testq %rax, %rax
je 0x57b7c
movq %rax, %r14
movzwl 0x40(%rax), %eax
cmpw $-0x1, %ax
je 0x5895e
incl %eax
movw %ax, 0x40(%r14)
testb $0x10, 0x46(%r14)
jne 0x57cc3
testb $0x4, 0x3d(%r12)
jne 0x589ab
cmpq $0x0, 0x18(%r14)
je 0x57f90
movq %r15, %rdi
movq %r14, %rsi
callq 0x58dd8
testl %eax, %eax
jne 0x57b7c
movq 0x18(%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x53b46
movq %rax, 0x28(%r12)
movzwl 0x3e(%r14), %ebx
movw $0xffff, 0x3e(%r14)     # imm = 0xFFFF
movq %r13, %rdi
movq %rax, %rsi
callq 0x5365f
movw %bx, 0x3e(%r14)
jmp 0x57f90
movq 0x18(%r13), %rax
movq %rax, -0x30(%rbp)
movq 0x280(%rax), %rcx
testq %rcx, %rcx
je 0x57c56
movq 0x10(%r12), %r14
testq %r14, %r14
je 0x57c56
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq %r12, -0x38(%rbp)
movb %dl, -0x48(%rbp)
movslq (%rcx), %r12
testq %r12, %r12
jle 0x57d74
shlq $0x5, %r12
xorl %r15d, %r15d
movq %rcx, %rbx
movq 0x10(%rcx,%r15), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0xa400
testl %eax, %eax
je 0x57d8e
addq $0x20, %r15
cmpq %r15, %r12
movq %rbx, %rcx
jne 0x57d51
movq 0x8(%rcx), %rcx
testq %rcx, %rcx
movq -0x58(%rbp), %r15
movq -0x78(%rbp), %r13
movq -0x38(%rbp), %r12
jne 0x57d42
jmp 0x57c56
movq 0x28(%rbx,%r15), %rsi
testq %rsi, %rsi
jne 0x58980
testb $0x4, -0x48(%rbp)
jne 0x58989
movl $0x78, %esi
movq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0x145aa
testq %rax, %rax
je 0x5894d
movq %rax, %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq $0x0, 0x70(%rax)
movq -0x38(%rbp), %r12
movq %rax, 0x20(%r12)
movw $0x1, 0x40(%rax)
movq %rbx, -0x88(%rbp)
movq 0x10(%rbx,%r15), %rsi
movq %r14, %rdi
callq 0x12d65
movq %rax, (%r13)
movw $0xffff, 0x3c(%r13)     # imm = 0xFFFF
movw $0xc8, 0x42(%r13)
orb $0x42, 0x46(%r13)
movq -0x88(%rbp), %rax
movq 0x20(%rax,%r15), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x53b46
movq %rax, 0x28(%r12)
cmpb $0x0, 0x51(%r14)
jne 0x57b7c
movq %rax, %rdx
movb 0x8(%rax), %al
addb $-0x73, %al
movb %al, -0x50(%rbp)
cmpb $0x1, %al
movq %r13, -0x48(%rbp)
movq %rdx, -0x60(%rbp)
ja 0x57fc2
movq 0x28(%rdx), %r13
movslq (%r13), %rax
testq %rax, %rax
movq %rbx, %rcx
jle 0x57ffb
imulq $0x70, %rax, %rdx
xorl %r14d, %r14d
movq %rdx, -0x40(%rbp)
cmpq $0x0, 0x10(%r13,%r14)
je 0x57e99
addq $0x70, %r14
cmpq %r14, %rdx
jne 0x57e83
jmp 0x57ffb
movq 0x18(%r13,%r14), %rdi
testq %rdi, %rdi
je 0x57e8b
movq 0x10(%rcx,%r15), %rsi
callq 0xa400
movq -0x40(%rbp), %rdx
movq %rbx, %rcx
testl %eax, %eax
jne 0x57e8b
movq -0x48(%rbp), %rax
movq %rax, 0x28(%r13,%r14)
orb $0x20, 0x45(%r13,%r14)
incw 0x40(%rax)
movq -0x60(%rbp), %rax
orb $0x20, 0xb(%rax)
jmp 0x57e8b
movq %r12, -0x38(%rbp)
movq 0x28(%r12), %r12
movq %r13, %rdi
movq %r12, %rsi
callq 0x5365f
testl %eax, %eax
jne 0x57b7c
movl $0x78, %esi
movq %rbx, %rdi
callq 0x145aa
testq %rax, %rax
je 0x5894d
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq $0x0, 0x70(%rax)
movq -0x38(%rbp), %rax
movq %r14, 0x20(%rax)
movw $0x1, 0x40(%r14)
movq %rbx, %rdi
leaq 0x25076(%rip), %rsi     # 0x7cfbf
movq %r14, %rdx
xorl %eax, %eax
callq 0x1494e
movq %rax, (%r14)
movq %r12, %rax
movq 0x50(%r12), %r12
testq %r12, %r12
jne 0x57f56
movq (%rax), %rsi
leaq 0x3e(%r14), %rdx
movq %r14, %rcx
addq $0x8, %rcx
movq (%r15), %rdi
callq 0x58aa2
movw $0xffff, 0x3c(%r14)     # imm = 0xFFFF
movw $0xc8, 0x42(%r14)
orb $0x2, 0x46(%r14)
movq -0x38(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x5900f
testl %eax, %eax
jne 0x57b7c
movq -0x98(%rbp), %rax
movl (%rax), %eax
movl -0x80(%rbp), %ecx
incl %ecx
addq $0x70, %r12
cmpl %eax, %ecx
jl 0x57c39
jmp 0x580ee
cmpw $0x2, 0x40(%r13)
movq %rbx, %rcx
ja 0x58999
leaq 0x2508b(%rip), %rax     # 0x7d063
movq %rax, 0x28(%rcx,%r15)
movq -0x30(%rbp), %r13
movq 0x280(%r13), %rax
movq %rax, -0x40(%rbp)
movq %rcx, 0x280(%r13)
movq %rdx, %rsi
movq %rdx, %r14
jmp 0x58034
movq -0x48(%rbp), %rax
cmpw $0x2, 0x40(%rax)
movq -0x60(%rbp), %r14
ja 0x58999
leaq 0x2504e(%rip), %rax     # 0x7d063
movq %rax, 0x28(%rcx,%r15)
movq -0x30(%rbp), %r13
movq 0x280(%r13), %rax
movq %rax, -0x40(%rbp)
movq %rcx, 0x280(%r13)
movq 0x50(%r14), %rsi
movq -0x78(%rbp), %rdi
callq 0x5365f
movq -0x88(%rbp), %rdx
movq %rdx, 0x280(%r13)
movq %r14, %rcx
movq %r13, %rdi
movq %rcx, %rax
movq 0x50(%rcx), %rcx
testq %rcx, %rcx
jne 0x58051
movq (%rax), %rax
movq 0x18(%rdx,%r15), %rsi
testq %rsi, %rsi
je 0x58082
testq %rax, %rax
movq -0x78(%rbp), %r13
je 0x58089
movl (%rax), %ecx
movl (%rsi), %r8d
cmpl %r8d, %ecx
je 0x58089
jmp 0x589df
movq %rax, %rsi
movq -0x78(%rbp), %r13
movq -0x48(%rbp), %rcx
leaq 0x3e(%rcx), %rdx
addq $0x8, %rcx
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x58aa2
cmpb $0x1, -0x50(%rbp)
ja 0x580d1
movq -0x60(%rbp), %rsi
movzwl 0xa(%rsi), %eax
btl $0xd, %eax
leaq 0x24fe7(%rip), %rax     # 0x7d0a0
leaq 0x25002(%rip), %rcx     # 0x7d0c2
cmovaeq %rcx, %rax
movq %rax, 0x28(%rbx,%r15)
movq %r13, %rdi
callq 0x5365f
movq $0x0, 0x28(%rbx,%r15)
movq -0x40(%rbp), %rax
movq %rax, 0x280(%r14)
movq -0x58(%rbp), %r15
jmp 0x57c56
movq -0x68(%rbp), %rax
cmpb $0x0, 0x51(%rax)
jne 0x57b7c
movq -0x90(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x30(%rbp)
cmpl $0x2, (%rax)
jl 0x58374
movq -0x30(%rbp), %rcx
leaq 0x8(%rcx), %rdx
leaq 0x78(%rcx), %r14
movq -0x90(%rbp), %rax
addq $0x30, %rax
movq %rax, -0x48(%rbp)
leaq 0x28(%rcx), %rax
movq %rax, -0x78(%rbp)
xorl %esi, %esi
movq 0x20(%r14), %rcx
cmpq $0x0, 0x20(%rdx)
sete %al
movq %rcx, -0x80(%rbp)
testq %rcx, %rcx
sete %cl
orb %al, %cl
jne 0x58356
movq %rsi, -0x50(%rbp)
movq %rdx, -0xb0(%rbp)
movq %r14, -0x40(%rbp)
movzbl 0x3c(%r14), %eax
movl %eax, %ecx
andl $0x20, %ecx
movl %ecx, -0x70(%rbp)
shrl $0x5, %ecx
movq %rcx, -0x88(%rbp)
testb $0x4, %al
je 0x5823b
movq -0x40(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x589c6
cmpq $0x0, 0x50(%rax)
jne 0x589c6
movq -0x80(%rbp), %rax
movzwl 0x3e(%rax), %edx
testw %dx, %dx
jle 0x5823b
movq -0x50(%rbp), %rax
leal 0x1(%rax), %ecx
movl %ecx, -0x60(%rbp)
leaq 0x1(%rax), %r15
xorl %r12d, %r12d
movw %dx, -0x38(%rbp)
movq -0x80(%rbp), %rax
movq 0x8(%rax), %rax
leaq (%r12,%r12,2), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq -0x78(%rbp), %r14
xorl %r13d, %r13d
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x592d9
testl %eax, %eax
jns 0x58201
incq %r13
addq $0x70, %r14
cmpq %r13, %r15
jne 0x581e0
movzwl -0x38(%rbp), %edx
jmp 0x5822f
movq -0x58(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl %r13d, %edx
movl %eax, %ecx
movl -0x60(%rbp), %r8d
movl %r12d, %r9d
pushq -0x48(%rbp)
pushq -0x88(%rbp)
callq 0x590ec
addq $0x10, %rsp
movq -0x80(%rbp), %rax
movzwl 0x3e(%rax), %edx
incq %r12
movswq %dx, %rax
cmpq %rax, %r12
jl 0x581c1
movq -0x40(%rbp), %r14
movq 0x48(%r14), %rdx
testq %rdx, %rdx
je 0x58287
cmpq $0x0, 0x50(%r14)
jne 0x58a05
cmpl $0x0, -0x70(%rbp)
movq -0x58(%rbp), %rbx
je 0x5826d
movl 0x44(%r14), %esi
movq %rdx, %rdi
callq 0x59181
movq 0x48(%r14), %rdx
movq (%rbx), %rdi
movq -0x48(%rbp), %rbx
movq (%rbx), %rsi
callq 0x591f9
movq %rax, (%rbx)
movq $0x0, 0x48(%r14)
movq 0x50(%r14), %rcx
testq %rcx, %rcx
movq -0xb0(%rbp), %rdx
movq -0x50(%rbp), %rsi
je 0x58356
cmpl $0x0, 0x8(%rcx)
jle 0x58356
leal 0x1(%rsi), %eax
movl %eax, -0x70(%rbp)
leaq 0x1(%rsi), %rbx
xorl %edi, %edi
movq %rcx, -0x60(%rbp)
movq (%rcx), %rax
movq %rdi, -0x38(%rbp)
movq %rdi, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %r12
movq -0x80(%rbp), %rdi
movq %r12, %rsi
callq 0x592d9
testl %eax, %eax
js 0x583d3
movl %eax, %r13d
movq -0x78(%rbp), %r14
xorl %r15d, %r15d
movq (%r14), %rdi
movq %r12, %rsi
callq 0x592d9
testl %eax, %eax
jns 0x58309
incq %r15
addq $0x70, %r14
cmpq %r15, %rbx
jne 0x582e9
jmp 0x583d3
movq -0x58(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl %r15d, %edx
movl %eax, %ecx
movl -0x70(%rbp), %r8d
movl %r13d, %r9d
pushq -0x48(%rbp)
pushq -0x88(%rbp)
callq 0x590ec
addq $0x10, %rsp
movq -0x38(%rbp), %rdi
incq %rdi
movq -0x60(%rbp), %rcx
movslq 0x8(%rcx), %rax
cmpq %rax, %rdi
movq -0xb0(%rbp), %rdx
movq -0x40(%rbp), %r14
movq -0x50(%rbp), %rsi
jl 0x582b9
incq %rsi
addq $0x70, %r14
addq $0x70, %rdx
movq -0x30(%rbp), %rax
movslq (%rax), %rax
decq %rax
cmpq %rax, %rsi
jl 0x58139
movq -0xa8(%rbp), %rax
movslq (%rax), %rax
testq %rax, %rax
movq -0x58(%rbp), %r15
movq -0x68(%rbp), %rbx
jle 0x583c4
movq -0xa8(%rbp), %rcx
movq 0x8(%rcx), %r14
shlq $0x5, %rax
xorl %ecx, %ecx
movq (%r14,%rcx), %rdx
movzbl (%rdx), %esi
cmpl $0x7a, %esi
je 0x583b2
cmpl $0x9e, %esi
jne 0x583bb
jmp 0x583e6
movq 0x18(%rdx), %rdx
cmpb $-0x62, (%rdx)
je 0x583e6
addq $0x20, %rcx
cmpq %rcx, %rax
jne 0x5839c
movq -0x90(%rbp), %rax
movq (%rax), %r12
jmp 0x5891f
leaq 0x24dc6(%rip), %rsi     # 0x7d1a0
movq -0x58(%rbp), %rdi
movq %r12, %rdx
jmp 0x589ba
movq (%r15), %rax
movl 0x2c(%rax), %eax
andl $0x60, %eax
movl %eax, -0x60(%rbp)
xorl %r13d, %r13d
xorl %r12d, %r12d
movq %r14, -0xc0(%rbp)
movq %r13, %rbx
shlq $0x5, %rbx
movq (%r14,%rbx), %rdx
movzbl (%rdx), %eax
cmpl $0x9e, %eax
je 0x58478
cmpl $0x7a, %eax
jne 0x5842c
movq 0x18(%rdx), %rax
cmpb $-0x62, (%rax)
jne 0x5842c
movq 0x10(%rdx), %rax
movq 0x8(%rax), %rdx
jmp 0x5847a
addq %r14, %rbx
movq (%r15), %rdi
movq %r12, %rsi
callq 0x46675
movq %rax, %r12
testq %rax, %rax
je 0x58468
movq 0x8(%rbx), %rax
movq 0x8(%r12), %rcx
movslq (%r12), %rdx
shlq $0x5, %rdx
movq %rax, -0x18(%rcx,%rdx)
movq 0x10(%rbx), %rax
movq %rax, -0x10(%rcx,%rdx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq $0x0, (%rbx)
movq -0x68(%rbp), %rbx
jmp 0x588f0
xorl %edx, %edx
movq -0x98(%rbp), %rax
movl (%rax), %r14d
testl %r14d, %r14d
movq -0x68(%rbp), %rbx
jle 0x588c3
movq $0x0, -0x80(%rbp)
movq $0x0, -0xb8(%rbp)
movl $0x0, -0x48(%rbp)
movq -0xc8(%rbp), %rax
movq %rdx, -0x50(%rbp)
movq %r13, -0xe0(%rbp)
movq 0x18(%rax), %rsi
movq 0x20(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq %rsi, -0x70(%rbp)
testq %rsi, %rsi
jne 0x584dd
movq -0x38(%rbp), %rcx
movq (%rcx), %rcx
movq %rcx, -0x70(%rbp)
cmpb $0x0, 0x51(%rbx)
jne 0x588b4
movq %rax, -0x40(%rbp)
movq 0x28(%rax), %rcx
testq %rcx, %rcx
je 0x584fa
testb $0x4, 0xb(%rcx)
jne 0x58562
testq %rdx, %rdx
je 0x58517
movq %rdx, %rdi
movq -0x70(%rbp), %rsi
callq 0xa400
movq -0x50(%rbp), %rdx
testl %eax, %eax
jne 0x58887
movq -0x38(%rbp), %rax
movq 0x68(%rax), %rcx
testq %rcx, %rcx
movq %r12, -0x30(%rbp)
je 0x58550
movl 0x28(%rbx), %esi
movq 0x20(%rbx), %rax
testl %esi, %esi
jle 0x58573
leaq 0x18(%rax), %rdi
xorl %edx, %edx
cmpq %rcx, (%rdi)
je 0x5854c
incq %rdx
addq $0x20, %rdi
cmpq %rdx, %rsi
jne 0x58539
movl %esi, %edx
testl %edx, %edx
jns 0x58575
xorl %ecx, %ecx
leaq 0x2390b(%rip), %rax     # 0x7be64
movq %rax, -0xa0(%rbp)
jmp 0x58588
movq %r12, -0x30(%rbp)
movq $0x0, -0xa0(%rbp)
jmp 0x5858c
xorl %edx, %edx
movl %edx, %ecx
shlq $0x5, %rcx
movq (%rax,%rcx), %rax
movq %rax, -0xa0(%rbp)
xorl %ecx, %ecx
movq -0x50(%rbp), %rdx
movq -0x38(%rbp), %rax
movzwl 0x3e(%rax), %r12d
testw %r12w, %r12w
jle 0x58883
testq %rdx, %rdx
setne %al
movq %rcx, %rdx
sete %cl
movq %rdx, -0x88(%rbp)
testq %rdx, %rdx
setne %dl
andb %al, %dl
movb %dl, -0x78(%rbp)
cmpq $0x0, -0xb8(%rbp)
setne %al
andb %cl, %al
movb %al, -0xb0(%rbp)
xorl %r13d, %r13d
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rbx
leaq (,%r13,2), %r15
addq %r13, %r15
shlq $0x4, %r15
movq (%rbx,%r15), %r14
cmpb $0x0, -0x78(%rbp)
je 0x58623
movq -0x88(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %r13, %rcx
shlq $0x5, %rcx
movq 0x10(%rax,%rcx), %rdi
xorl %esi, %esi
movq -0x50(%rbp), %rdx
xorl %ecx, %ecx
callq 0x56f26
testl %eax, %eax
je 0x5876a
movq -0x90(%rbp), %rax
cmpw $0x0, 0xa(%rax)
js 0x5863d
testb $0x2, 0x2b(%rbx,%r15)
jne 0x5876a
cmpb $0x0, -0xb0(%rbp)
movq -0x58(%rbp), %r15
je 0x5869b
movq -0x40(%rbp), %rax
testb $0x4, 0x3c(%rax)
je 0x5867c
xorl %ebx, %ebx
movq -0x98(%rbp), %rax
movq 0x28(%rax,%rbx), %rdi
movq %r14, %rsi
callq 0x592d9
testl %eax, %eax
jns 0x5884d
addq $0x70, %rbx
cmpq %rbx, -0x80(%rbp)
jne 0x58656
movq -0x40(%rbp), %rax
movq 0x50(%rax), %rdi
movq %r14, %rsi
callq 0x59090
movl $0x1, -0x48(%rbp)
testl %eax, %eax
jns 0x58854
movq -0x68(%rbp), %rbx
movq %rbx, %rdi
movl $0x1b, %esi
movq %r14, %rdx
callq 0x46837
movq %rax, %r12
cmpl $0x20, -0x60(%rbp)
je 0x586c8
movq -0x98(%rbp), %rax
cmpl $0x2, (%rax)
jl 0x58773
movq %rbx, %rdi
movl $0x1b, %esi
movq -0x70(%rbp), %rdx
callq 0x46837
movq %r15, %rdi
movl $0x7a, %esi
movq %rax, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x42edf
movq %rax, %r12
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x58744
movq %rdi, -0xd8(%rbp)
callq 0xa190
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, -0xd0(%rbp)
movq %rbx, %rdi
movl $0x1b, %esi
leaq -0xd8(%rbp), %rdx
xorl %ecx, %ecx
callq 0x5589f
movq %r15, %rdi
movl $0x7a, %esi
movq %rax, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x42edf
movq %rax, %r12
cmpl $0x20, -0x60(%rbp)
jne 0x58773
movq %rbx, %rdi
leaq 0x22a95(%rip), %rsi     # 0x7b1e9
movq -0x70(%rbp), %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x1494e
movq %rax, %r14
movq %rax, %rbx
jmp 0x58775
movq -0x58(%rbp), %r15
jmp 0x58854
xorl %ebx, %ebx
movq (%r15), %rdi
movq -0x30(%rbp), %rsi
movq %r12, %rdx
callq 0x46675
movq %rax, %r12
movq %r14, -0xd8(%rbp)
testq %r14, %r14
je 0x587a2
movq %r14, %rdi
callq 0xa190
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
jmp 0x587a4
xorl %eax, %eax
movl %eax, -0xd0(%rbp)
movq %r15, %rdi
movq %r12, %rsi
leaq -0xd8(%rbp), %rdx
xorl %ecx, %ecx
callq 0x46731
movq %r12, -0x30(%rbp)
testq %r12, %r12
je 0x58838
movq -0x90(%rbp), %rax
testb $0x4, 0xb(%rax)
je 0x58838
movq -0x30(%rbp), %rax
movslq (%rax), %r12
shlq $0x5, %r12
addq 0x8(%rax), %r12
movq -0x88(%rbp), %rax
testq %rax, %rax
je 0x5880d
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %r13, %rcx
shlq $0x5, %rcx
movq 0x10(%rax,%rcx), %rsi
movq -0x68(%rbp), %rdi
callq 0x12d65
jmp 0x5882d
movq -0x68(%rbp), %rdi
leaq 0x24692(%rip), %rsi     # 0x7ceaa
movq -0xa0(%rbp), %rdx
movq -0x70(%rbp), %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x1494e
movq %rax, -0x10(%r12)
orb $0x2, -0x7(%r12)
movq -0x68(%rbp), %rdi
movq %rbx, %rsi
callq 0xb752
movq -0x38(%rbp), %rax
movzwl 0x3e(%rax), %r12d
movl $0x1, -0x48(%rbp)
incq %r13
movswq %r12w, %rax
cmpq %rax, %r13
jl 0x585d3
movq -0x98(%rbp), %rax
movl (%rax), %r14d
movq -0x68(%rbp), %rbx
movq -0x30(%rbp), %r12
movq -0xe0(%rbp), %r13
movq -0x50(%rbp), %rdx
jmp 0x58887
movq -0x30(%rbp), %r12
movq -0xb8(%rbp), %rsi
incq %rsi
movq -0x40(%rbp), %rdi
addq $0x70, %rdi
movslq %r14d, %rax
addq $0x70, -0x80(%rbp)
movq %rsi, -0xb8(%rbp)
cmpq %rax, %rsi
movq %rdi, %rax
jl 0x584bd
cmpl $0x0, -0x48(%rbp)
movq -0xc0(%rbp), %r14
jne 0x588f0
jmp 0x588ca
movq -0xc0(%rbp), %r14
movq %r15, %rdi
testq %rdx, %rdx
je 0x588e2
leaq 0x2471a(%rip), %rsi     # 0x7cff3
xorl %eax, %eax
callq 0x14890
jmp 0x588f0
leaq 0x2471c(%rip), %rsi     # 0x7d005
xorl %eax, %eax
callq 0x14890
incq %r13
movq -0xa8(%rbp), %rax
movslq (%rax), %rax
cmpq %rax, %r13
jl 0x583ff
movq %rbx, %rdi
movq -0xa8(%rbp), %rsi
callq 0x3c97e
movq -0x90(%rbp), %rax
movq %r12, (%rax)
xorl %eax, %eax
testq %r12, %r12
je 0x57b81
movl (%r12), %ecx
cmpl 0x70(%rbx), %ecx
jle 0x57b81
leaq 0x246db(%rip), %rsi     # 0x7d019
movq %r15, %rdi
xorl %eax, %eax
callq 0x14890
jmp 0x57b7c
movq -0x38(%rbp), %rax
movq $0x0, 0x20(%rax)
jmp 0x57b7c
movq (%r14), %rdx
leaq 0x24664(%rip), %rsi     # 0x7cfcc
movq %r15, %rdi
xorl %eax, %eax
callq 0x14890
movq $0x0, 0x20(%r12)
jmp 0x57b7c
movq -0x30(%rbp), %rdi
movq %r13, %rdx
jmp 0x589ba
leaq 0x24760(%rip), %rsi     # 0x7d0f0
movq -0x30(%rbp), %rdi
movq %r14, %rdx
jmp 0x589ba
movq 0x10(%rcx,%r15), %rdx
leaq 0x24693(%rip), %rsi     # 0x7d038
movq -0x30(%rbp), %rdi
jmp 0x589ba
movq 0x10(%r12), %rdx
leaq 0x24739(%rip), %rsi     # 0x7d0f0
movq %r15, %rdi
xorl %eax, %eax
callq 0x14890
jmp 0x57b7c
leaq 0x2476a(%rip), %rsi     # 0x7d137
movq -0x58(%rbp), %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x14890
jmp 0x57b7c
movq 0x10(%rdx,%r15), %rdx
leaq 0x2468f(%rip), %rsi     # 0x7d07a
movq %rdi, %rbx
xorl %eax, %eax
callq 0x14890
movq -0x40(%rbp), %rax
movq %rax, 0x280(%rbx)
jmp 0x57b7c
leaq 0x2475d(%rip), %rsi     # 0x7d169
movq -0x58(%rbp), %rdi
jmp 0x58941