// File: /workspace/github_c_makefile_star2_O1/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 %rdi, %r8
movq 0x10(%rdi), %rdi
movq (%rdi), %rdx
movzwl 0xa(%rsi), %eax
movl %eax, %ecx
orl $0x10, %ecx
movw %cx, 0xa(%rsi)
cmpb $0x0, 0x50(%rdx)
je 0x49326
movl $0x2, %ebx
jmp 0x49ee4
movq 0x28(%rsi), %r14
testq %r14, %r14
setne %cl
testb $0x10, %al
sete %al
andb %cl, %al
movl $0x1, %ebx
cmpb $0x1, %al
jne 0x49ee4
movq %r8, -0x70(%rbp)
movq %rdx, -0x50(%rbp)
movq %rsi, -0xb8(%rbp)
movq (%rsi), %rax
movq %rax, -0xb0(%rbp)
movq %rdi, -0x30(%rbp)
movq %r14, %rsi
callq 0x49ef8
leaq 0x8(%r14), %rax
movq %rax, -0xd0(%rbp)
cmpb $0x0, (%r14)
movq %r14, -0x40(%rbp)
je 0x49557
xorl %r12d, %r12d
movq -0xd0(%rbp), %r13
cmpq $0x0, 0x20(%r13)
je 0x493a0
movl $0x1, %ebx
xorl %r15d, %r15d
jmp 0x4953a
cmpq $0x0, 0x10(%r13)
je 0x4940b
xorl %r15d, %r15d
movq -0x30(%rbp), %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x4a2cc
movq %rax, 0x20(%r13)
testq %rax, %rax
je 0x494db
movq %rax, %r14
movzwl 0x44(%rax), %eax
cmpw $-0x1, %ax
je 0x494bb
incl %eax
movw %ax, 0x44(%r14)
cmpq $0x0, 0x18(%r14)
jne 0x493ef
testb $0x10, 0x46(%r14)
je 0x4951c
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x4a326
testl %eax, %eax
je 0x494fd
xorl %r15d, %r15d
jmp 0x494db
movq 0x28(%r13), %r14
movq -0x70(%rbp), %rdi
movq %r14, %rsi
callq 0x47c6e
movq -0x50(%rbp), %rdi
movl $0x78, %esi
callq 0x115e9
movq %rax, %r15
testq %rax, %rax
je 0x494e6
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%r15)
movups %xmm0, 0x50(%r15)
movups %xmm0, 0x40(%r15)
movups %xmm0, 0x30(%r15)
movups %xmm0, 0x20(%r15)
movups %xmm0, 0x10(%r15)
movups %xmm0, (%r15)
movq $0x0, 0x70(%r15)
movq %r15, 0x20(%r13)
movw $0x1, 0x44(%r15)
movq -0x50(%rbp), %rdi
leaq 0x31c97(%rip), %rsi     # 0x7b10f
movq %r15, %rdx
xorl %eax, %eax
callq 0x117e2
movq %rax, (%r15)
movq %r14, %rax
movq 0x50(%r14), %r14
testq %r14, %r14
jne 0x49485
movq (%rax), %rsi
leaq 0x42(%r15), %rdx
leaq 0x8(%r15), %rcx
movq -0x30(%rbp), %rdi
callq 0x49f5b
movw $0xffff, 0x40(%r15)     # imm = 0xFFFF
movl $0xf4240, 0x38(%r15)    # imm = 0xF4240
orb $0x2, 0x46(%r15)
jmp 0x494ef
movq (%r14), %rdx
xorl %r15d, %r15d
movq -0x30(%rbp), %rdi
leaq 0x31c57(%rip), %rsi     # 0x7b123
xorl %eax, %eax
callq 0x11724
movq $0x0, 0x20(%r13)
movl $0x2, %ebx
movq -0x40(%rbp), %r14
jmp 0x4953a
movq %r15, 0x20(%r13)
movl $0x2, %ebx
testq %r15, %r15
movq -0x40(%rbp), %r14
jne 0x49520
jmp 0x49398
movq 0x18(%r14), %rsi
movq -0x50(%rbp), %rdi
xorl %edx, %edx
callq 0x4841f
movq %rax, 0x28(%r13)
movq -0x70(%rbp), %rdi
movq %rax, %rsi
callq 0x47c6e
movq -0x40(%rbp), %r14
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x4a534
testl %eax, %eax
sete %r15b
movl $0x2, %eax
cmovnel %eax, %ebx
testb %r15b, %r15b
je 0x49ee4
incl %r12d
addq $0x68, %r13
movzbl (%r14), %eax
cmpl %eax, %r12d
jb 0x4938c
movq -0x50(%rbp), %r12
cmpb $0x0, 0x50(%r12)
jne 0x4931c
movq -0xb8(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x70(%rbp)
cmpb $0x2, (%rax)
movq -0x30(%rbp), %r15
jb 0x498c8
movq -0x70(%rbp), %rcx
leaq 0x8(%rcx), %rbx
leaq 0x70(%rcx), %r13
movq -0xb8(%rbp), %rax
addq $0x30, %rax
movq %rax, -0x48(%rbp)
leaq 0x28(%rcx), %rax
movq %rax, -0xa8(%rbp)
xorl %edx, %edx
movq 0x20(%r13), %rsi
cmpq $0x0, 0x20(%rbx)
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
movl $0x4, %eax
jne 0x497da
movzbl 0x38(%r13), %eax
movl %eax, %edi
andl $0x20, %edi
movl %edi, %ecx
shrl $0x5, %ecx
movq %rcx, -0x38(%rbp)
testb $0x4, %al
movq %rdx, -0x60(%rbp)
movq %rsi, -0x68(%rbp)
jne 0x49642
movl %edi, -0x98(%rbp)
movq %r13, -0x88(%rbp)
movq %rbx, -0x90(%rbp)
movq -0x88(%rbp), %r13
movq 0x40(%r13), %rdi
testq %rdi, %rdi
movq -0x30(%rbp), %r15
movq -0x50(%rbp), %r12
movq -0x90(%rbp), %rbx
je 0x496ad
cmpq $0x0, 0x48(%r13)
je 0x49675
movq %r15, %rdi
leaq 0x31bc8(%rip), %rsi     # 0x7b1f9
xorl %eax, %eax
callq 0x11724
movl $0x1, %eax
jmp 0x497d6
cmpq $0x0, 0x40(%r13)
jne 0x49654
cmpq $0x0, 0x48(%r13)
je 0x49805
movq %r15, %rdi
leaq 0x31b69(%rip), %rsi     # 0x7b1c7
xorl %edx, %edx
xorl %eax, %eax
callq 0x11724
movq -0x60(%rbp), %rdx
movl $0x1, %eax
jmp 0x497da
cmpl $0x0, -0x98(%rbp)
je 0x49687
movl 0x3c(%r13), %esi
callq 0x4a70c
movq (%r15), %rdi
movq -0x48(%rbp), %rax
movq (%rax), %rsi
movq 0x40(%r13), %rdx
callq 0x4a740
movq -0x48(%rbp), %rcx
movq %rax, (%rcx)
movq $0x0, 0x40(%r13)
movq -0x68(%rbp), %rsi
movq 0x48(%r13), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x497d6
cmpl $0x0, 0x8(%rcx)
movq -0x60(%rbp), %rdx
jle 0x497da
leal 0x1(%rdx), %eax
movl %eax, -0xc0(%rbp)
leaq 0x1(%rdx), %r12
xorl %r14d, %r14d
movq %rcx, -0x98(%rbp)
movq (%rcx), %rax
movq %r14, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %r13
movq %rsi, %rdi
movq %r13, %rsi
callq 0x4a81f
testl %eax, %eax
js 0x497a3
movl %eax, -0xa0(%rbp)
movq -0xa8(%rbp), %r15
xorl %ebx, %ebx
movq (%r15), %rdi
movq %r13, %rsi
callq 0x4a81f
testl %eax, %eax
jns 0x49734
incq %rbx
addq $0x68, %r15
cmpq %rbx, %r12
jne 0x49711
movl -0x78(%rbp), %ecx
movl -0x58(%rbp), %edx
jmp 0x49738
movl %ebx, %edx
movl %eax, %ecx
testl %eax, %eax
movl %ecx, -0x78(%rbp)
movl %edx, -0x58(%rbp)
js 0x497a3
movq -0x30(%rbp), %r15
movq %r15, %rdi
movq -0x70(%rbp), %rsi
movl -0xc0(%rbp), %r8d
movl -0xa0(%rbp), %r9d
pushq -0x48(%rbp)
pushq -0x38(%rbp)
callq 0x4a677
addq $0x10, %rsp
incq %r14
movq -0x98(%rbp), %rcx
movslq 0x8(%rcx), %rax
cmpq %rax, %r14
movq -0x68(%rbp), %rsi
jl 0x496e1
movq -0x50(%rbp), %r12
movq -0x40(%rbp), %r14
movq -0x90(%rbp), %rbx
movq -0x88(%rbp), %r13
movq -0x60(%rbp), %rdx
xorl %eax, %eax
jmp 0x497da
movq -0x50(%rbp), %r12
movq -0x40(%rbp), %r14
movq -0x30(%rbp), %r15
movq %r15, %rdi
leaq 0x31a77(%rip), %rsi     # 0x7b230
movq %r13, %rdx
xorl %eax, %eax
callq 0x11724
movl $0x1, %eax
movq -0x90(%rbp), %rbx
movq -0x88(%rbp), %r13
movq -0x60(%rbp), %rdx
testb $0x3, %al
jne 0x4931c
incq %rdx
addq $0x68, %r13
addq $0x68, %rbx
movq -0x70(%rbp), %rax
movzbl (%rax), %eax
decq %rax
cmpq %rax, %rdx
jl 0x495ab
jmp 0x498c8
movq %r13, -0x88(%rbp)
movq %rbx, -0x90(%rbp)
cmpw $0x0, 0x42(%rsi)
movl %edi, -0x98(%rbp)
jle 0x495fd
leal 0x1(%rdx), %eax
movl %eax, -0xa0(%rbp)
leaq 0x1(%rdx), %r12
xorl %r13d, %r13d
movq 0x8(%rsi), %rax
leaq (,%r13,2), %rcx
addq %r13, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %r15
movq -0xa8(%rbp), %rbx
xorl %r14d, %r14d
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x4a81f
testl %eax, %eax
jns 0x49872
incq %r14
addq $0x68, %rbx
cmpq %r14, %r12
jne 0x49855
jmp 0x4987c
movl %r14d, -0xc8(%rbp)
movl %eax, -0x7c(%rbp)
testl %eax, %eax
movq -0x40(%rbp), %r14
js 0x498ae
movq -0x30(%rbp), %rdi
movq -0x70(%rbp), %rsi
movl -0xc8(%rbp), %edx
movl -0x7c(%rbp), %ecx
movl -0xa0(%rbp), %r8d
movl %r13d, %r9d
pushq -0x48(%rbp)
pushq -0x38(%rbp)
callq 0x4a677
addq $0x10, %rsp
incq %r13
movq -0x68(%rbp), %rsi
movswq 0x42(%rsi), %rax
cmpq %rax, %r13
jl 0x49834
jmp 0x495fd
movq -0xb0(%rbp), %rax
movslq (%rax), %rax
testq %rax, %rax
setg %cl
jle 0x49eb7
movq -0xb0(%rbp), %rdx
movq 0x8(%rdx), %rdx
movq %rax, %rsi
negq %rsi
movl $0x1, %edi
movq (%rdx), %r8
movzbl (%r8), %r9d
cmpl $0x76, %r9d
je 0x49909
cmpl $0x71, %r9d
jne 0x49913
jmp 0x49932
movq 0x18(%r8), %r8
cmpb $0x71, (%r8)
je 0x49932
cmpq %rax, %rdi
setb %cl
addq $0x20, %rdx
leaq (%rsi,%rdi), %r8
incq %r8
incq %rdi
cmpq $0x1, %r8
jne 0x498f4
jmp 0x49eb7
testb $0x1, %cl
je 0x49eb7
movq -0xb0(%rbp), %rax
cmpl $0x0, (%rax)
jle 0x49e92
movq 0x8(%rax), %r13
movq (%r15), %rax
movl 0x2c(%rax), %eax
andl $0x60, %eax
movl %eax, -0x60(%rbp)
xorl %ebx, %ebx
movq $0x0, -0x38(%rbp)
movq %r13, -0xe8(%rbp)
movq %rbx, -0x90(%rbp)
shlq $0x5, %rbx
movq (%r13,%rbx), %rdx
movzbl (%rdx), %eax
cmpl $0x71, %eax
je 0x499ec
cmpl $0x76, %eax
jne 0x499a4
movq 0x18(%rdx), %rcx
cmpb $0x71, (%rcx)
jne 0x499a4
cmpb $0x76, %al
jne 0x499ec
movq 0x10(%rdx), %rax
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x499f4
addq %r13, %rbx
movq %r15, %rdi
movq -0x38(%rbp), %rsi
callq 0x3d42f
testq %rax, %rax
je 0x499dc
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, -0x38(%rbp)
movq $0x0, (%rbx)
jmp 0x49e73
movq $0x0, -0x48(%rbp)
cmpb $0x0, (%r14)
je 0x49e43
movq -0x48(%rbp), %rax
incq %rax
movq %rax, -0x88(%rbp)
xorl %r10d, %r10d
movq $-0x68, %r13
movl $0x0, -0x58(%rbp)
movq -0xd0(%rbp), %r11
movq 0x18(%r11), %rax
movq 0x20(%r11), %rdi
movq %rax, -0x78(%rbp)
testq %rax, %rax
jne 0x49a3c
movq (%rdi), %rax
movq %rax, -0x78(%rbp)
movb 0x50(%r12), %al
movb %al, -0x98(%rbp)
testb %al, %al
movq %r10, -0xc8(%rbp)
movq %r11, -0xa8(%rbp)
jne 0x49dfc
movq 0x28(%r11), %rcx
testq %rcx, %rcx
movq %rdi, -0x68(%rbp)
je 0x49a70
testb $0x2, 0xb(%rcx)
jne 0x49ab0
movq -0x48(%rbp), %r9
testq %r9, %r9
leaq 0x2c5e2(%rip), %r8      # 0x76060
je 0x49ad4
movb (%r9), %al
testb %al, %al
je 0x49ab8
movq -0x88(%rbp), %rdx
movq -0x78(%rbp), %rcx
movzbl %al, %esi
movb (%rsi,%r8), %sil
movzbl (%rcx), %edi
cmpb (%rdi,%r8), %sil
jne 0x49abc
incq %rcx
movb (%rdx), %al
incq %rdx
testb %al, %al
jne 0x49a92
jmp 0x49abc
xorl %eax, %eax
movq -0x48(%rbp), %r9
jmp 0x49b2f
movq -0x78(%rbp), %rcx
movzbl %al, %eax
movb (%rax,%r8), %al
movzbl (%rcx), %ecx
cmpb (%rcx,%r8), %al
movq -0x68(%rbp), %rdi
jne 0x49dfc
movq 0x68(%rdi), %rcx
testq %rcx, %rcx
je 0x49b06
movl 0x28(%r12), %edx
testl %edx, %edx
jle 0x49b0d
movq 0x20(%r12), %rsi
addq $0x18, %rsi
xorl %eax, %eax
cmpq %rcx, (%rsi)
je 0x49b0f
incq %rax
addq $0x20, %rsi
cmpq %rax, %rdx
jne 0x49af1
movl %edx, %eax
jmp 0x49b0f
movl $0xfff0bdc0, %eax       # imm = 0xFFF0BDC0
jmp 0x49b0f
xorl %eax, %eax
testl %eax, %eax
js 0x49b26
movq 0x20(%r12), %rcx
movl %eax, %eax
shlq $0x5, %rax
movq (%rcx,%rax), %rax
xorl %ecx, %ecx
jmp 0x49b2f
xorl %ecx, %ecx
leaq 0x3161b(%rip), %rax     # 0x7b14a
cmpw $0x0, 0x42(%rdi)
jle 0x49dfc
movq %rax, -0xc0(%rbp)
testq %r9, %r9
sete %al
movq %rcx, %rdx
setne %cl
movq %rdx, -0xa0(%rbp)
testq %rdx, %rdx
setne %dl
andb %cl, %dl
movb %dl, -0x70(%rbp)
testq %r10, %r10
setne %cl
andb %al, %cl
movb %cl, -0x7c(%rbp)
xorl %r14d, %r14d
movq 0x8(%rdi), %r15
leaq (%r14,%r14,2), %r12
shlq $0x4, %r12
movq (%r15,%r12), %rbx
cmpb $0x0, -0x70(%rbp)
je 0x49bb6
movq -0xa0(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %r14, %rcx
shlq $0x5, %rcx
movq 0x10(%rax,%rcx), %rdi
xorl %esi, %esi
movq -0x48(%rbp), %rdx
xorl %ecx, %ecx
callq 0x47d9e
movq -0x68(%rbp), %rdi
testl %eax, %eax
je 0x49cf6
testb $0x2, 0x2a(%r15,%r12)
jne 0x49cf6
cmpb $0x0, -0x7c(%rbp)
movq -0x50(%rbp), %r12
je 0x49c20
movq -0xa8(%rbp), %rax
testb $0x4, 0x38(%rax)
je 0x49c05
xorl %r15d, %r15d
movq -0x40(%rbp), %rax
movq 0x28(%rax,%r15), %rdi
movq %rbx, %rsi
callq 0x4a81f
testl %eax, %eax
jns 0x49bfd
leaq 0x68(%r15), %rcx
cmpq %r15, %r13
movq %rcx, %r15
jne 0x49bdc
testl %eax, %eax
jns 0x49de0
movq -0xa8(%rbp), %rax
movq 0x48(%rax), %rdi
movq %rbx, %rsi
callq 0x4a5f0
testl %eax, %eax
jns 0x49de0
movq %r12, %rdi
movl $0x1a, %esi
movq %rbx, %rdx
callq 0x3d5ef
movq %rax, %r15
cmpl $0x20, -0x60(%rbp)
je 0x49c46
movq -0x40(%rbp), %rax
cmpb $0x2, (%rax)
jb 0x49cff
movq %r12, %rdi
movl $0x1a, %esi
movq -0x78(%rbp), %rdx
callq 0x3d5ef
movq -0x30(%rbp), %rdi
movl $0x76, %esi
movq %rax, %rdx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x39f77
movq %rax, %r15
movq -0xc0(%rbp), %rcx
testq %rcx, %rcx
je 0x49ccf
movq %rcx, -0xe0(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x49c89
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, -0xd8(%rbp)
movq %r12, %rdi
movl $0x1a, %esi
leaq -0xe0(%rbp), %rdx
xorl %ecx, %ecx
callq 0x4a949
movq -0x30(%rbp), %rdi
movl $0x76, %esi
movq %rax, %rdx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x39f77
movq %rax, %r15
cmpl $0x20, -0x60(%rbp)
jne 0x49cff
movq %r12, %rdi
leaq 0x30d2f(%rip), %rsi     # 0x7aa0e
movq -0x78(%rbp), %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x117e2
movq %rax, %rbx
movq %rax, -0x58(%rbp)
jmp 0x49d07
movq -0x50(%rbp), %r12
jmp 0x49deb
movq $0x0, -0x58(%rbp)
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdi
movq %r15, %rdx
callq 0x3d42f
movq %rax, -0x38(%rbp)
movq %rbx, -0xe0(%rbp)
testq %rbx, %rbx
je 0x49d41
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rbx, %rcx
incl %eax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x49d2f
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
jmp 0x49d43
xorl %eax, %eax
movl %eax, -0xd8(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %r15
movq %r15, %rsi
leaq -0xe0(%rbp), %rdx
xorl %ecx, %ecx
callq 0x3d4e5
testq %r15, %r15
je 0x49dd4
movq -0xb8(%rbp), %rax
testb $0x2, 0xb(%rax)
je 0x49dd4
movq -0x38(%rbp), %rax
movslq (%rax), %r15
shlq $0x5, %r15
addq 0x8(%rax), %r15
movq -0xa0(%rbp), %rax
testq %rax, %rax
je 0x49dac
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %r14, %rcx
shlq $0x5, %rcx
movq 0x10(%rax,%rcx), %rsi
movq %r12, %rdi
callq 0x1010d
jmp 0x49dcb
movq %r12, %rdi
leaq 0x3123c(%rip), %rsi     # 0x7aff2
movq -0xc0(%rbp), %rdx
movq -0x78(%rbp), %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0x117e2
movq %rax, -0x10(%r15)
orb $0x2, -0x7(%r15)
movq %r12, %rdi
movq -0x58(%rbp), %rsi
callq 0x9c3a
movl $0x1, -0x58(%rbp)
movq -0x68(%rbp), %rdi
incq %r14
movswq 0x42(%rdi), %rax
cmpq %rax, %r14
jl 0x49b6d
cmpb $0x0, -0x98(%rbp)
movq -0x40(%rbp), %r14
movq -0xc8(%rbp), %r10
movq -0xa8(%rbp), %r11
jne 0x49e2f
incq %r10
addq $0x68, %r11
movzbl (%r14), %eax
addq $0x68, %r13
cmpq %rax, %r10
jb 0x49a24
cmpl $0x0, -0x58(%rbp)
sete %al
movq -0x30(%rbp), %r15
movq -0xe8(%rbp), %r13
jmp 0x49e45
movb $0x1, %al
testb %al, %al
je 0x49e73
movq -0x48(%rbp), %rdx
movq %r15, %rdi
testq %rdx, %rdx
je 0x49e65
leaq 0x312f0(%rip), %rsi     # 0x7b14c
xorl %eax, %eax
callq 0x11724
jmp 0x49e73
leaq 0x312f2(%rip), %rsi     # 0x7b15e
xorl %eax, %eax
callq 0x11724
movq -0x90(%rbp), %rbx
incq %rbx
movq -0xb0(%rbp), %rax
movslq (%rax), %rax
cmpq %rax, %rbx
jl 0x4996c
jmp 0x49e9a
movq $0x0, -0x38(%rbp)
movq %r12, %rdi
movq -0xb0(%rbp), %rsi
callq 0x3410b
movq -0xb8(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
movq -0xb8(%rbp), %rax
movq (%rax), %rax
xorl %ebx, %ebx
testq %rax, %rax
je 0x49ee4
movl (%rax), %eax
cmpl 0x70(%r12), %eax
jle 0x49ee4
leaq 0x3129a(%rip), %rsi     # 0x7b172
xorl %ebx, %ebx
movq %r15, %rdi
xorl %eax, %eax
callq 0x11724
movl %ebx, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq