// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/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;

  /* 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;
    if( pFrom->pTab!=0 ){
      /* This statement has already been prepared.  There is no need
      ** to go further. */
      assert( i==0 );
      return WRC_Prune;
    }
    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 );
      sqlite3WalkSelect(pWalker, pSel);
      pFrom->pTab = pTab = sqlite3DbMallocZero(db, sizeof(Table));
      if( pTab==0 ) return WRC_Abort;
      pTab->nRef = 1;
      pTab->zName = sqlite3MPrintf(db, "sqlite_subquery_%p_", (void*)pTab);
      while( pSel->pPrior ){ pSel = pSel->pPrior; }
      selectColumnsFromExprList(pParse, pSel->pEList, &pTab->nCol, &pTab->aCol);
      pTab->iPKey = -1;
      pTab->nRowEst = 1000000;
      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 !defined(SQLITE_OMIT_VIEW) || !defined (SQLITE_OMIT_VIRTUALTABLE)
      if( pTab->pSelect || IsVirtual(pTab) ){
        /* We reach here if the named table is a really a view */
        if( sqlite3ViewGetColumnNames(pParse, pTab) ) return WRC_Abort;
        assert( pFrom->pSelect==0 );
        pFrom->pSelect = sqlite3SelectDup(db, pTab->pSelect, 0);
        sqlite3WalkSelect(pWalker, pFrom->pSelect);
      }
#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_ALL operator for each "*" that it found in the column list.
  ** The following code just has to locate the TK_ALL 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_ALL ) 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_ALL ) 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;

    /* When processing FROM-clause subqueries, it is always the case
    ** that full_column_names=OFF and short_column_names=ON.  The
    ** sqlite3ResultSetOfSelect() routine makes it so. */
    assert( (p->selFlags & SF_NestedFrom)==0
          || ((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_ALL && (pE->op!=TK_DOT || pRight->op!=TK_ALL) ){
        /* 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' (currently only possible
            ** for virtual tables), do not include it in the expanded
            ** result-set list.
            */
            if( IsHiddenColumn(&pTab->aCol[j]) ){
              assert(IsVirtual(pTab));
              continue;
            }
            tableSeen = 1;

            if( i>0 && zTName==0 ){
              if( (pFrom->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");
  }
#endif
  return WRC_Continue;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq 0x10(%rdi), %r14
movq (%r14), %rdx
movzwl 0xa(%rsi), %eax
movl %eax, %ecx
orl $0x10, %ecx
movw %cx, 0xa(%rsi)
movl $0x2, %ebx
cmpb $0x0, 0x50(%rdx)
jne 0x49a86
movq %rdx, -0x38(%rbp)
movq 0x28(%rsi), %rbx
testq %rbx, %rbx
setne %cl
testb $0x10, %al
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x49a46
movq %rdi, -0x58(%rbp)
movq %rsi, -0x80(%rbp)
movq (%rsi), %rax
movq %rax, -0xa0(%rbp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4a074
leaq 0x8(%rbx), %rax
movq %rax, -0xc0(%rbp)
movq %rbx, -0x98(%rbp)
cmpb $0x0, (%rbx)
movq %r14, -0x30(%rbp)
je 0x4974d
xorl %r12d, %r12d
movq -0xc0(%rbp), %r13
movq -0x38(%rbp), %rbx
cmpq $0x0, 0x20(%r13)
jne 0x49a46
cmpq $0x0, 0x10(%r13)
je 0x49672
movq %r14, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x4a479
movq %rax, 0x20(%r13)
testq %rax, %rax
je 0x49a81
movq %rax, %r14
movzwl 0x44(%rax), %eax
cmpw $-0x1, %ax
je 0x49a4d
incl %eax
movw %ax, 0x44(%r14)
cmpq $0x0, 0x18(%r14)
jne 0x4963a
testb $0x10, 0x46(%r14)
je 0x4971c
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x4a4d2
testl %eax, %eax
jne 0x49a81
movq 0x18(%r14), %rsi
movq -0x38(%rbp), %rdi
xorl %edx, %edx
callq 0x48744
movq %rax, 0x28(%r13)
movq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x47f1c
jmp 0x4971c
movq 0x28(%r13), %r15
movq -0x58(%rbp), %rdi
movq %r15, %rsi
callq 0x47f1c
movq %rbx, %rdi
movl $0x78, %esi
callq 0x11721
testq %rax, %rax
je 0x49a62
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 %rax, 0x20(%r13)
movw $0x1, 0x44(%rax)
movq %rbx, %rdi
leaq 0x31a3a(%rip), %rsi     # 0x7b10f
movq %rax, %rdx
xorl %eax, %eax
callq 0x11900
movq %rax, (%r14)
movq %r15, %rax
movq 0x50(%r15), %r15
testq %r15, %r15
jne 0x496e2
movq (%rax), %rsi
leaq 0x42(%r14), %rdx
movq %r14, %rcx
addq $0x8, %rcx
movq -0x30(%rbp), %rax
movq (%rax), %rdi
callq 0x4a0da
movw $0xffff, 0x40(%r14)     # imm = 0xFFFF
movl $0xf4240, 0x38(%r14)    # imm = 0xF4240
orb $0x2, 0x46(%r14)
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x4a6e7
testl %eax, %eax
jne 0x49a81
incl %r12d
addq $0x68, %r13
movq -0x98(%rbp), %rax
movzbl (%rax), %eax
cmpl %eax, %r12d
jb 0x495e4
movq -0x38(%rbp), %rax
cmpb $0x0, 0x50(%rax)
jne 0x49a81
movq -0x80(%rbp), %rdi
movq 0x28(%rdi), %rax
movq %rax, -0x40(%rbp)
cmpb $0x2, (%rax)
jb 0x499e4
movq -0x40(%rbp), %rax
leaq 0x8(%rax), %rdx
leaq 0x70(%rax), %rbx
leaq 0x30(%rdi), %rcx
movq %rcx, -0x50(%rbp)
addq $0x28, %rax
movq %rax, -0xb0(%rbp)
xorl %esi, %esi
movq 0x20(%rbx), %rcx
cmpq $0x0, 0x20(%rdx)
sete %al
movq %rcx, -0x58(%rbp)
testq %rcx, %rcx
sete %cl
orb %al, %cl
jne 0x499c6
movq %rsi, -0x48(%rbp)
movq %rdx, -0xa8(%rbp)
movq %rbx, -0x78(%rbp)
movzbl 0x38(%rbx), %eax
movl %eax, %ecx
andl $0x20, %ecx
movl %ecx, -0x70(%rbp)
shrl $0x5, %ecx
movq %rcx, -0x90(%rbp)
testb $0x4, %al
je 0x498a0
movq -0x78(%rbp), %rax
cmpq $0x0, 0x40(%rax)
jne 0x4a046
cmpq $0x0, 0x48(%rax)
jne 0x4a046
movq -0x58(%rbp), %rax
movzwl 0x42(%rax), %edx
testw %dx, %dx
jle 0x498a0
movq -0x48(%rbp), %rax
leal 0x1(%rax), %ecx
movl %ecx, -0x68(%rbp)
leaq 0x1(%rax), %r12
xorl %ebx, %ebx
movw %dx, -0x60(%rbp)
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
leaq (%rbx,%rbx,2), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %r14
movq -0xb0(%rbp), %r13
xorl %r15d, %r15d
movq (%r13), %rdi
movq %r14, %rsi
callq 0x4a9c5
testl %eax, %eax
jns 0x4985f
incq %r15
addq $0x68, %r13
cmpq %r15, %r12
jne 0x49839
movq -0x30(%rbp), %r14
movzwl -0x60(%rbp), %edx
jmp 0x49890
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq -0x40(%rbp), %rsi
movl %r15d, %edx
movl %eax, %ecx
movl -0x68(%rbp), %r8d
movl %ebx, %r9d
pushq -0x50(%rbp)
pushq -0x90(%rbp)
callq 0x4a81c
addq $0x10, %rsp
movq -0x58(%rbp), %rax
movzwl 0x42(%rax), %edx
incq %rbx
movswq %dx, %rax
cmpq %rax, %rbx
jl 0x49817
movq -0x78(%rbp), %rbx
movq 0x40(%rbx), %rdx
testq %rdx, %rdx
je 0x498e7
cmpq $0x0, 0x48(%rbx)
jne 0x4a05e
cmpl $0x0, -0x70(%rbp)
je 0x498cd
movl 0x3c(%rbx), %esi
movq %rdx, %rdi
callq 0x4a8b1
movq 0x40(%rbx), %rdx
movq (%r14), %rdi
movq -0x50(%rbp), %r15
movq (%r15), %rsi
callq 0x4a8e5
movq %rax, (%r15)
movq $0x0, 0x40(%rbx)
movq 0x48(%rbx), %rcx
testq %rcx, %rcx
movq -0x80(%rbp), %rdi
movq -0xa8(%rbp), %rdx
movq -0x48(%rbp), %rsi
je 0x499c6
cmpl $0x0, 0x8(%rcx)
jle 0x499c6
leal 0x1(%rsi), %eax
movl %eax, -0x70(%rbp)
leaq 0x1(%rsi), %r12
xorl %r8d, %r8d
movq %rcx, -0x68(%rbp)
movq (%rcx), %rax
movq %r8, -0x60(%rbp)
movq %r8, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq -0x58(%rbp), %rdi
movq %rbx, %rsi
callq 0x4a9c5
testl %eax, %eax
js 0x49a6c
movl %eax, %r15d
movq -0xb0(%rbp), %r13
xorl %r14d, %r14d
movq (%r13), %rdi
movq %rbx, %rsi
callq 0x4a9c5
testl %eax, %eax
jns 0x49972
incq %r14
addq $0x68, %r13
cmpq %r14, %r12
jne 0x49951
jmp 0x49a6c
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl %r14d, %edx
movq %rdi, %r14
movl %eax, %ecx
movl -0x70(%rbp), %r8d
movl %r15d, %r9d
pushq -0x50(%rbp)
pushq -0x90(%rbp)
callq 0x4a81c
addq $0x10, %rsp
movq -0x60(%rbp), %r8
incq %r8
movq -0x68(%rbp), %rcx
movslq 0x8(%rcx), %rax
cmpq %rax, %r8
movq -0x80(%rbp), %rdi
movq -0xa8(%rbp), %rdx
movq -0x78(%rbp), %rbx
movq -0x48(%rbp), %rsi
jl 0x4991e
incq %rsi
addq $0x68, %rbx
addq $0x68, %rdx
movq -0x40(%rbp), %rax
movzbl (%rax), %eax
decq %rax
cmpq %rax, %rsi
jl 0x49791
movq -0xa0(%rbp), %rax
movslq (%rax), %rax
testq %rax, %rax
movq -0x98(%rbp), %r12
jle 0x49a3e
movq -0xa0(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, -0xb8(%rbp)
shlq $0x5, %rax
xorl %ecx, %ecx
movq -0xb8(%rbp), %rdx
movq (%rdx,%rcx), %rdx
movzbl (%rdx), %esi
cmpl $0x76, %esi
je 0x49a2c
cmpl $0x71, %esi
jne 0x49a35
jmp 0x49a9a
movq 0x18(%rdx), %rdx
cmpb $0x71, (%rdx)
je 0x49a9a
addq $0x20, %rcx
cmpq %rcx, %rax
jne 0x49a12
movq (%rdi), %rcx
jmp 0x4a014
movl $0x1, %ebx
jmp 0x49a86
movq (%r14), %rdx
leaq 0x316cc(%rip), %rsi     # 0x7b123
movq -0x30(%rbp), %rdi
xorl %eax, %eax
callq 0x11842
movq $0x0, 0x20(%r13)
jmp 0x49a81
leaq 0x317bd(%rip), %rsi     # 0x7b230
movq -0x30(%rbp), %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x11842
movl $0x2, %ebx
movl %ebx, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r14), %rax
movl 0x2c(%rax), %eax
andl $0x60, %eax
movl %eax, -0x78(%rbp)
leaq 0x2c603(%rip), %r15     # 0x760b0
xorl %ecx, %ecx
movq $0x0, -0x40(%rbp)
movq %rcx, %rbx
shlq $0x5, %rbx
movq -0xb8(%rbp), %rax
movq (%rax,%rbx), %rdx
movzbl (%rdx), %eax
cmpl $0x71, %eax
je 0x49b3b
cmpl $0x76, %eax
jne 0x49ae9
movq 0x18(%rdx), %rax
cmpb $0x71, (%rax)
jne 0x49ae9
movq 0x10(%rdx), %rax
movq 0x8(%rax), %rdx
jmp 0x49b3d
movq %rcx, %r13
addq -0xb8(%rbp), %rbx
movq (%r14), %rdi
movq -0x40(%rbp), %rsi
callq 0x3d962
testq %rax, %rax
je 0x49b28
movq 0x8(%rbx), %rsi
movq 0x8(%rax), %rcx
movslq (%rax), %rdx
shlq $0x5, %rdx
movq %rsi, -0x18(%rcx,%rdx)
movq 0x10(%rbx), %rsi
movq %rsi, -0x10(%rcx,%rdx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq %rax, -0x40(%rbp)
movq $0x0, (%rbx)
movq %r13, %rcx
jmp 0x49fe3
xorl %edx, %edx
movb (%r12), %al
testb %al, %al
je 0x49fb7
movq %rcx, -0xd8(%rbp)
leaq 0x1(%rdx), %rcx
movq %rcx, -0xe0(%rbp)
movq $0x0, -0x58(%rbp)
xorl %r10d, %r10d
movl $0x0, -0x68(%rbp)
movq -0xc0(%rbp), %r11
movq %rdx, -0x90(%rbp)
movq 0x18(%r11), %rsi
movq 0x20(%r11), %rcx
movq %rcx, -0x60(%rbp)
movq %rsi, -0x48(%rbp)
testq %rsi, %rsi
jne 0x49b9b
movq -0x60(%rbp), %rcx
movq (%rcx), %rcx
movq %rcx, -0x48(%rbp)
movq -0x38(%rbp), %rcx
cmpb $0x0, 0x50(%rcx)
jne 0x49faa
movq 0x28(%r11), %rcx
testq %rcx, %rcx
je 0x49bb8
testb $0x2, 0xb(%rcx)
jne 0x49bf2
testq %rdx, %rdx
je 0x49c1d
movb (%rdx), %sil
testb %sil, %sil
je 0x49c06
movq -0xe0(%rbp), %r9
movq -0x48(%rbp), %rcx
movzbl %sil, %esi
movb (%rsi,%r15), %dil
movzbl (%rcx), %r8d
cmpb (%r8,%r15), %dil
jne 0x49c0c
incq %rcx
movb (%r9), %sil
incq %r9
testb %sil, %sil
jne 0x49bd0
jmp 0x49c0a
movq %rcx, -0x50(%rbp)
movq $0x0, -0x88(%rbp)
jmp 0x49c89
movq -0x48(%rbp), %rcx
xorl %esi, %esi
movb (%rsi,%r15), %sil
movzbl (%rcx), %ecx
cmpb (%rcx,%r15), %sil
jne 0x49f92
movq -0x60(%rbp), %rcx
movq 0x68(%rcx), %r9
testq %r9, %r9
je 0x49c56
movq -0x38(%rbp), %rcx
movl 0x28(%rcx), %edi
movq 0x20(%rcx), %rcx
testl %edi, %edi
jle 0x49c6e
leaq 0x18(%rcx), %r8
xorl %esi, %esi
cmpq %r9, (%r8)
je 0x49c52
incq %rsi
addq $0x20, %r8
cmpq %rsi, %rdi
jne 0x49c3f
movl %edi, %esi
testl %esi, %esi
jns 0x49c70
movq $0x0, -0x50(%rbp)
leaq 0x314e5(%rip), %rcx     # 0x7b14a
movq %rcx, -0x88(%rbp)
jmp 0x49c89
xorl %esi, %esi
movl %esi, %esi
shlq $0x5, %rsi
movq (%rcx,%rsi), %rcx
movq %rcx, -0x88(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x60(%rbp), %rcx
movzwl 0x42(%rcx), %r14d
testw %r14w, %r14w
jle 0x49f8e
movq %r11, -0x70(%rbp)
testq %rdx, %rdx
setne %al
sete %cl
cmpq $0x0, -0x50(%rbp)
setne %dl
andb %al, %dl
movb %dl, -0xb0(%rbp)
movq %r10, -0xe8(%rbp)
testq %r10, %r10
setne %al
andb %cl, %al
movb %al, -0xa8(%rbp)
xorl %r13d, %r13d
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rbx
leaq (,%r13,2), %r12
addq %r13, %r12
shlq $0x4, %r12
movq (%rbx,%r12), %r15
cmpb $0x0, -0xb0(%rbp)
je 0x49d24
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %r13, %rcx
shlq $0x5, %rcx
movq 0x10(%rax,%rcx), %rdi
xorl %esi, %esi
movq -0x90(%rbp), %rdx
xorl %ecx, %ecx
callq 0x4804c
testl %eax, %eax
je 0x49e65
testb $0x2, 0x2a(%rbx,%r12)
jne 0x49e65
cmpb $0x0, -0xa8(%rbp)
movq -0x98(%rbp), %r12
je 0x49d8a
movq -0x70(%rbp), %rax
testb $0x4, 0x38(%rax)
je 0x49d6b
xorl %ebx, %ebx
movq 0x28(%r12,%rbx), %rdi
movq %r15, %rsi
callq 0x4a9c5
testl %eax, %eax
jns 0x49f54
addq $0x68, %rbx
cmpq %rbx, -0x58(%rbp)
jne 0x49d4c
movq -0x70(%rbp), %rax
movq 0x48(%rax), %rdi
movq %r15, %rsi
callq 0x4a796
movl $0x1, -0x68(%rbp)
testl %eax, %eax
jns 0x49f5b
movq -0x38(%rbp), %r14
movq %r14, %rdi
movl $0x1a, %esi
movq %r15, %rdx
callq 0x3db22
movq %rax, %rbx
cmpl $0x20, -0x78(%rbp)
je 0x49db2
cmpb $0x2, (%r12)
jb 0x49e71
movq %r14, %rdi
movl $0x1a, %esi
movq -0x48(%rbp), %rdx
callq 0x3db22
movq -0x30(%rbp), %r14
movq %r14, %rdi
movl $0x76, %esi
movq %rax, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x3a637
movq %rax, %rbx
movq -0x88(%rbp), %rcx
testq %rcx, %rcx
je 0x49e3e
movq %rcx, -0xd0(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x49df8
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, -0xc8(%rbp)
movq -0x38(%rbp), %rdi
movl $0x1a, %esi
leaq -0xd0(%rbp), %rdx
xorl %ecx, %ecx
callq 0x4aaef
movq %r14, %rdi
movl $0x76, %esi
movq %rax, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x3a637
movq %rax, %rbx
cmpl $0x20, -0x78(%rbp)
jne 0x49e71
movq -0x38(%rbp), %rdi
leaq 0x30bbf(%rip), %rsi     # 0x7aa0e
movq -0x48(%rbp), %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x11900
movq %rax, %r15
movq %rax, %r14
jmp 0x49e74
movq -0x98(%rbp), %r12
jmp 0x49f5b
xorl %r14d, %r14d
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x40(%rbp), %rsi
movq %rbx, %rdx
callq 0x3d962
movq %rax, -0x40(%rbp)
movq %r15, -0xd0(%rbp)
testq %r15, %r15
je 0x49eb1
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r15, %rcx
incl %eax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x49e9f
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
jmp 0x49eb3
xorl %eax, %eax
movl %eax, -0xc8(%rbp)
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rbx
movq %rbx, %rsi
leaq -0xd0(%rbp), %rdx
xorl %ecx, %ecx
callq 0x3da1c
testq %rbx, %rbx
je 0x49f3f
movq -0x80(%rbp), %rax
testb $0x2, 0xb(%rax)
je 0x49f3f
movq -0x40(%rbp), %rax
movslq (%rax), %rbx
shlq $0x5, %rbx
addq 0x8(%rax), %rbx
movq -0x50(%rbp), %rax
testq %rax, %rax
je 0x49f17
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %r13, %rcx
shlq $0x5, %rcx
movq 0x10(%rax,%rcx), %rsi
movq -0x38(%rbp), %rdi
callq 0x101fc
jmp 0x49f37
movq -0x38(%rbp), %rdi
leaq 0x310d0(%rip), %rsi     # 0x7aff2
movq -0x88(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x11900
movq %rax, -0x10(%rbx)
orb $0x2, -0x7(%rbx)
movq -0x38(%rbp), %rdi
movq %r14, %rsi
callq 0x9ca4
movq -0x60(%rbp), %rax
movzwl 0x42(%rax), %r14d
movl $0x1, -0x68(%rbp)
incq %r13
movswq %r14w, %rax
cmpq %rax, %r13
jl 0x49cd1
movb (%r12), %al
movq -0x30(%rbp), %r14
leaq 0x2c136(%rip), %r15     # 0x760b0
movq -0x90(%rbp), %rdx
movq -0xe8(%rbp), %r10
movq -0x70(%rbp), %r11
jmp 0x49f92
movq -0x30(%rbp), %r14
incq %r10
addq $0x68, %r11
movzbl %al, %ecx
addq $0x68, -0x58(%rbp)
cmpq %rcx, %r10
jb 0x49b7b
cmpl $0x0, -0x68(%rbp)
movq -0xd8(%rbp), %rcx
jne 0x49fe3
movq %rcx, %rbx
movq %r14, %rdi
testq %rdx, %rdx
je 0x49fd2
leaq 0x31183(%rip), %rsi     # 0x7b14c
xorl %eax, %eax
callq 0x11842
jmp 0x49fe0
leaq 0x31185(%rip), %rsi     # 0x7b15e
xorl %eax, %eax
callq 0x11842
movq %rbx, %rcx
incq %rcx
movq -0xa0(%rbp), %rax
movslq (%rax), %rax
cmpq %rax, %rcx
jl 0x49ab7
movq -0x38(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x3484e
movq -0x80(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
xorl %ebx, %ebx
testq %rcx, %rcx
je 0x49a86
movl (%rcx), %eax
movq -0x38(%rbp), %rcx
cmpl 0x70(%rcx), %eax
jle 0x49a86
leaq 0x3113d(%rip), %rsi     # 0x7b172
xorl %ebx, %ebx
movq %r14, %rdi
xorl %eax, %eax
callq 0x11842
jmp 0x49a86
leaq 0x3117a(%rip), %rsi     # 0x7b1c7
movq %r14, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x11842
jmp 0x49a81
leaq 0x31194(%rip), %rsi     # 0x7b1f9
movq %r14, %rdi
xorl %eax, %eax
callq 0x11842
jmp 0x49a81