// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/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;
  u32 elistFlags = 0;

  p->selFlags |= SF_Expanded;
  if( db->mallocFailed  ){
    return WRC_Abort;
  }
  assert( p->pSrc!=0 );
  if( (selFlags & SF_Expanded)!=0 ){
    return WRC_Prune;
  }
  if( pWalker->eCode ){
    /* Renumber selId because it has been copied from a view */
    p->selId = ++pParse->nSelect;
  }
  pTabList = p->pSrc;
  pEList = p->pEList;
  sqlite3WithPush(pParse, 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->pTab ) continue;
    assert( pFrom->fg.isRecursive==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;
      if( sqlite3ExpandSubquery(pParse, pFrom) ) return WRC_Abort;
#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->nTabRef>=0xffff ){
        sqlite3ErrorMsg(pParse, "too many references to \"%s\": max 65535",
           pTab->zName);
        pFrom->pTab = 0;
        return WRC_Abort;
      }
      pTab->nTabRef++;
      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;
        u8 eCodeOrig = pWalker->eCode;
        if( sqlite3ViewGetColumnNames(pParse, pTab) ) return WRC_Abort;
        assert( pFrom->pSelect==0 );
        if( pTab->pSelect && (db->flags & SQLITE_EnableView)==0 ){
          sqlite3ErrorMsg(pParse, "access to view \"%s\" prohibited",
            pTab->zName);
        }
#ifndef SQLITE_OMIT_VIRTUALTABLE
        if( IsVirtual(pTab)
         && pFrom->fg.fromDDL
         && ALWAYS(pTab->pVTable!=0)
         && pTab->pVTable->eVtabRisk > ((db->flags & SQLITE_TrustedSchema)!=0)
        ){
          sqlite3ErrorMsg(pParse, "unsafe use of virtual table \"%s\"",
                                  pTab->zName);
        }
#endif
        pFrom->pSelect = sqlite3SelectDup(db, pTab->pSelect, 0);
        nCol = pTab->nCol;
        pTab->nCol = -1;
        pWalker->eCode = 1;  /* Turn on Select.selId renumbering */
        sqlite3WalkSelect(pWalker, pFrom->pSelect);
        pWalker->eCode = eCodeOrig;
        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( pParse->nErr || 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;
    elistFlags |= pE->flags;
  }
  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;
      elistFlags |= pE->flags;
      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].zEName = a[k].zEName;
          pNew->a[pNew->nExpr-1].eEName = a[k].eEName;
          a[k].zEName = 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].zDbSName : "*";
          }
          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
             && sqlite3MatchEName(&pSub->pEList->a[j], 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, 1)
              ){
                /* 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);
              if( zSchemaName ){
                pLeft = sqlite3Expr(db, TK_ID, zSchemaName);
                pExpr = sqlite3PExpr(pParse, TK_DOT, pLeft, pExpr);
              }
              if( longNames ){
                zColname = sqlite3MPrintf(db, "%s.%s", zTabName, zName);
                zToFree = zColname;
              }
            }else{
              pExpr = pRight;
            }
            pNew = sqlite3ExprListAppend(pParse, pNew, pExpr);
            sqlite3TokenInit(&sColname, zColname);
            sqlite3ExprListSetName(pParse, pNew, &sColname, 0);
            if( pNew && (p->selFlags & SF_NestedFrom)!=0 && !IN_RENAME_OBJECT ){
              struct ExprList_item *pX = &pNew->a[pNew->nExpr-1];
              sqlite3DbFree(db, pX->zEName);
              if( pSub ){
                pX->zEName = sqlite3DbStrDup(db, pSub->pEList->a[j].zEName);
                testcase( pX->zEName==0 );
              }else{
                pX->zEName = sqlite3MPrintf(db, "%s.%s.%s",
                                           zSchemaName, zTabName, zColname);
                testcase( pX->zEName==0 );
              }
              pX->eEName = ENAME_TAB;
            }
            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( p->pEList ){
    if( p->pEList->nExpr>db->aLimit[SQLITE_LIMIT_COLUMN] ){
      sqlite3ErrorMsg(pParse, "too many columns in result set");
      return WRC_Abort;
    }
    if( (elistFlags & (EP_HasFunc|EP_Subquery))!=0 ){
      p->selFlags |= SF_ComplexResult;
    }
  }
  return WRC_Continue;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq (%rdi), %r14
movq (%r14), %rdx
movl 0x4(%rsi), %ecx
movl %ecx, %eax
orl $0x40, %eax
movl %eax, 0x4(%rsi)
cmpb $0x0, 0x61(%rdx)
je 0x2c775c
movl $0x2, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %eax
testb $0x40, %cl
jne 0x2c774a
movq %rdi, %r15
cmpw $0x0, 0x24(%rdi)
je 0x2c7783
movl 0x84(%r14), %eax
incl %eax
movl %eax, 0x84(%r14)
movl %eax, 0x10(%rsi)
movq %rdx, 0x20(%rsp)
movq 0x20(%rsi), %rax
movq %rax, 0x68(%rsp)
movq 0x28(%rsi), %rax
movq %rax, 0x48(%rsp)
movq %rsi, 0x50(%rsp)
movq 0x68(%rsi), %rax
testq %rax, %rax
je 0x2c77ba
movq 0x190(%r14), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x190(%r14)
movq %r14, %rdi
movq 0x48(%rsp), %rbx
movq %rbx, %rsi
callq 0x2c8465
leaq 0x8(%rbx), %rax
movq %rax, 0x80(%rsp)
movl (%rbx), %eax
testl %eax, %eax
movq %r14, 0x18(%rsp)
jle 0x2c7d49
leaq 0x109af4(%rip), %r13    # 0x3d12e0
xorl %r12d, %r12d
movq 0x80(%rsp), %rbp
movq %r15, 0x10(%rsp)
cmpq $0x0, 0x20(%rbp)
jne 0x2c7d39
movq (%r15), %r14
cmpl $0x0, 0x30(%r14)
jne 0x2c7745
cmpq $0x0, 0x8(%rbp)
je 0x2c794c
cmpq $0x0, 0x10(%rbp)
je 0x2c79d0
movq 0x18(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x2c84c3
movq %rax, 0x20(%rbp)
testq %rax, %rax
je 0x2c7745
movq %rax, %rbx
movl 0x3c(%rax), %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
jae 0x2c7de6
incl %eax
movl %eax, 0x3c(%rbx)
cmpl $0x0, 0x54(%rbx)
jne 0x2c787b
testb $0x4, 0x3d(%rbp)
jne 0x2c7e07
cmpq $0x0, 0x18(%rbx)
je 0x2c7d1a
movzbl 0x24(%r15), %r14d
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x2c8512
testl %eax, %eax
jne 0x2c7745
cmpq $0x0, 0x18(%rbx)
je 0x2c78bd
movq 0x20(%rsp), %rax
testb $-0x80, 0x33(%rax)
jne 0x2c78bd
movq (%rbx), %rdx
movq 0x18(%rsp), %rdi
leaq 0x11045b(%rip), %rsi    # 0x3d7d11
xorl %eax, %eax
callq 0x27b48d
movl %r14d, 0x8(%rsp)
cmpl $0x0, 0x54(%rbx)
je 0x2c7903
testb $0x40, 0x3d(%rbp)
je 0x2c7903
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x2c7903
movzbl 0x1d(%rax), %eax
movq 0x20(%rsp), %rcx
movl 0x30(%rcx), %ecx
shrl $0x7, %ecx
andl $0x1, %ecx
cmpl %eax, %ecx
jae 0x2c7903
movq (%rbx), %rdx
movq 0x18(%rsp), %rdi
leaq 0x110434(%rip), %rsi    # 0x3d7d30
xorl %eax, %eax
callq 0x27b48d
movq 0x18(%rbx), %rsi
movq 0x20(%rsp), %rdi
xorl %edx, %edx
callq 0x2c2b4a
movq %rax, 0x28(%rbp)
movzwl 0x46(%rbx), %r14d
movw $0xffff, 0x46(%rbx)     # imm = 0xFFFF
movq 0x10(%rsp), %r15
movw $0x1, 0x24(%r15)
movq %r15, %rdi
movq %rax, %rsi
callq 0x2c0b5b
movl 0x8(%rsp), %eax
movw %ax, 0x24(%r15)
movw %r14w, 0x46(%rbx)
jmp 0x2c7d1a
movq 0x190(%r14), %rbx
testq %rbx, %rbx
je 0x2c7820
movq 0x10(%rbp), %rdx
testq %rdx, %rdx
je 0x2c7820
movq (%r14), %rdi
movslq (%rbx), %rcx
testq %rcx, %rcx
jle 0x2c79c2
leaq 0x10(%rbx), %rsi
xorl %r11d, %r11d
movq %r11, %rax
shlq $0x5, %rax
leaq (%rsi,%rax), %r8
movq %r8, 0x8(%rsp)
movq (%rsi,%rax), %rax
xorl %r8d, %r8d
movzbl (%rdx,%r8), %r9d
movzbl (%rax,%r8), %r10d
cmpb %r10b, %r9b
jne 0x2c79ab
testq %r9, %r9
jne 0x2c79b5
jmp 0x2c7a2b
movb (%r9,%r13), %r9b
cmpb (%r10,%r13), %r9b
jne 0x2c79ba
incq %r8
jmp 0x2c7992
incq %r11
cmpq %rcx, %r11
jne 0x2c797b
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x2c796c
jmp 0x2c7820
movq 0x28(%rbp), %rsi
movq %r15, %rdi
callq 0x2c0b5b
testl %eax, %eax
jne 0x2c7745
movq 0x28(%rbp), %r14
movq 0x18(%rsp), %r15
movq (%r15), %rdi
movl $0x80, %esi
callq 0x279b27
movq %rax, 0x20(%rbp)
testq %rax, %rax
je 0x2c7745
movq %rax, %rbx
movl $0x1, 0x3c(%rax)
movq 0x18(%rbp), %rsi
movq (%r15), %rdi
testq %rsi, %rsi
je 0x2c7b5c
callq 0x279928
jmp 0x2c7b6e
movq 0x8(%rsp), %rcx
movq 0x18(%rcx), %rsi
testq %rsi, %rsi
jne 0x2c7e19
testb $0x4, 0x3d(%rbp)
jne 0x2c7e21
movq %r14, 0x40(%rsp)
movl $0x80, %esi
movq %rdi, %r15
callq 0x279b27
movq %rax, 0x20(%rbp)
testq %rax, %rax
je 0x2c7745
movq %rax, %r14
movq %rbx, 0x28(%rsp)
movl $0x1, 0x3c(%rax)
movq 0x8(%rsp), %rbx
movq (%rbx), %rsi
movq %r15, %rdi
callq 0x279928
movq %rax, (%r14)
movw $0xffff, 0x44(%r14)     # imm = 0xFFFF
movw $0xc8, 0x4a(%r14)
movq %r14, 0x60(%rsp)
orl $0x202, 0x40(%r14)      # imm = 0x202
movq 0x10(%rbx), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x2c2b4a
movq %rax, 0x28(%rbp)
cmpb $0x0, 0x61(%r15)
jne 0x2c7745
movb (%rax), %cl
andb $-0x2, %cl
movb %cl, 0x58(%rsp)
cmpb $-0x7c, %cl
jne 0x2c7bbe
movq %rax, %rbx
movq 0x28(%rax), %rax
movslq (%rax), %rcx
testq %rcx, %rcx
movq 0x60(%rsp), %r15
movq 0x40(%rsp), %r14
jle 0x2c7c0d
addq $0x8, %rax
xorl %edx, %edx
imulq $0x70, %rdx, %rsi
cmpq $0x0, 0x8(%rax,%rsi)
je 0x2c7b0e
incq %rdx
cmpq %rcx, %rdx
jne 0x2c7af5
jmp 0x2c7c0d
addq %rax, %rsi
movq 0x10(%rsi), %rdi
testq %rdi, %rdi
je 0x2c7b01
movq 0x8(%rsp), %r8
movq (%r8), %r8
xorl %r9d, %r9d
movzbl (%rdi,%r9), %r10d
movzbl (%r8,%r9), %r11d
cmpb %r11b, %r10b
jne 0x2c7b3b
testq %r10, %r10
jne 0x2c7b45
jmp 0x2c7b4a
movb (%r10,%r13), %r10b
cmpb (%r11,%r13), %r10b
jne 0x2c7b01
incq %r9
jmp 0x2c7b25
movq %r15, 0x20(%rsi)
orb $0x20, 0x3d(%rsi)
incl 0x3c(%r15)
orb $0x20, 0x5(%rbx)
jmp 0x2c7b01
movl 0x10(%r14), %edx
leaq 0x1102f0(%rip), %rsi    # 0x3d7e57
xorl %eax, %eax
callq 0x27b56a
movq 0x10(%rsp), %r15
movq %rax, (%rbx)
movq %r14, %rax
movq 0x50(%r14), %r14
testq %r14, %r14
jne 0x2c7b76
movq 0x20(%rax), %rsi
leaq 0x46(%rbx), %rdx
movq %rbx, %rcx
addq $0x8, %rcx
movq 0x18(%rsp), %r14
movq (%r14), %rdi
callq 0x2c8c0a
movw $0xffff, 0x44(%rbx)     # imm = 0xFFFF
movw $0xc8, 0x4a(%rbx)
orb $0x2, 0x40(%rbx)
cmpl $0x0, 0x30(%r14)
je 0x2c7d1a
jmp 0x2c7745
movq 0x60(%rsp), %r15
cmpl $0x2, 0x3c(%r15)
movq 0x28(%rsp), %rdx
movq 0x40(%rsp), %r14
ja 0x2c7e2a
movq %rax, %rbx
leaq 0x1101df(%rip), %rax    # 0x3d7dc1
movq 0x8(%rsp), %rcx
movq %rax, 0x18(%rcx)
movq 0x190(%r14), %rax
movq %rax, 0x38(%rsp)
movq %rdx, 0x190(%r14)
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x2c0b5b
jmp 0x2c7c68
cmpl $0x2, 0x3c(%r15)
movq 0x28(%rsp), %rdx
ja 0x2c7e2a
leaq 0x11019d(%rip), %rax    # 0x3d7dc1
movq 0x8(%rsp), %rcx
movq %rax, 0x18(%rcx)
movq 0x190(%r14), %rax
movq %rax, 0x38(%rsp)
movq %rdx, 0x190(%r14)
movq 0x50(%rbx), %rsi
movq %rsi, 0x70(%rsp)
movq 0x68(%rbx), %rax
movq %rax, 0x68(%rsi)
movq 0x10(%rsp), %rdi
callq 0x2c0b5b
movq 0x70(%rsp), %rax
movq $0x0, 0x68(%rax)
movq 0x28(%rsp), %rax
movq %rax, 0x190(%r14)
movq %rbx, %rcx
movq %rcx, %rax
movq 0x50(%rcx), %rcx
testq %rcx, %rcx
jne 0x2c7c77
movq 0x20(%rax), %rax
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rsi
testq %rsi, %rsi
je 0x2c7ca9
testq %rax, %rax
je 0x2c7cac
movl (%rax), %ecx
movl (%rsi), %r8d
cmpl %r8d, %ecx
je 0x2c7cac
jmp 0x2c8405
movq %rax, %rsi
leaq 0x46(%r15), %rdx
addq $0x8, %r15
movq (%r14), %rdi
movq %r15, %rcx
callq 0x2c8c0a
cmpb $-0x7c, 0x58(%rsp)
movq 0x10(%rsp), %r15
jne 0x2c7cf6
btl $0xd, 0x4(%rbx)
leaq 0x110127(%rip), %rax    # 0x3d7dfe
leaq 0x110142(%rip), %rcx    # 0x3d7e20
cmovaeq %rcx, %rax
movq 0x8(%rsp), %rcx
movq %rax, 0x18(%rcx)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2c0b5b
movq 0x8(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x38(%rsp), %rax
movq %rax, 0x190(%r14)
cmpq $0x0, 0x20(%rbp)
je 0x2c7820
movq 0x18(%rsp), %r14
movq %r14, %rdi
movq %rbp, %rsi
callq 0x2c87e8
testl %eax, %eax
jne 0x2c7745
movq 0x48(%rsp), %rax
movl (%rax), %eax
incl %r12d
addq $0x70, %rbp
cmpl %eax, %r12d
jl 0x2c77fc
cmpl $0x0, 0x30(%r14)
jne 0x2c7745
movq 0x20(%rsp), %r12
cmpb $0x0, 0x61(%r12)
jne 0x2c7745
movq %r14, %rdi
movq 0x50(%rsp), %r15
movq %r15, %rsi
callq 0x2c886b
testl %eax, %eax
jne 0x2c7745
movq 0x68(%rsp), %r13
movslq (%r13), %rax
testq %rax, %rax
jle 0x2c7e48
leaq 0x8(%r13), %rcx
movq %rcx, 0x78(%rsp)
shlq $0x3, %rax
leaq (%rax,%rax,2), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movl %edx, 0x30(%rsp)
movq 0x8(%r13,%rcx), %rdx
movzbl (%rdx), %esi
cmpl $0x8b, %esi
je 0x2c7dc5
cmpl $0xb1, %esi
jne 0x2c7dd2
jmp 0x2c7e53
movq 0x18(%rdx), %rsi
cmpb $-0x4f, (%rsi)
je 0x2c7e53
movl 0x30(%rsp), %esi
orl 0x4(%rdx), %esi
movl %esi, %edx
addq $0x18, %rcx
cmpq %rcx, %rax
jne 0x2c7da4
jmp 0x2c7e4a
movq (%rbx), %rdx
leaq 0x10fefa(%rip), %rsi    # 0x3d7cea
movq %r14, %rdi
xorl %eax, %eax
callq 0x27b48d
movq $0x0, 0x20(%rbp)
jmp 0x2c7745
movq 0x10(%rbp), %rdx
leaq 0x110051(%rip), %rsi    # 0x3d7e63
movq 0x18(%rsp), %rdi
jmp 0x2c7e3c
movq %r14, %rdi
movq %rax, %rdx
jmp 0x2c7e3c
leaq 0x11003b(%rip), %rsi    # 0x3d7e63
jmp 0x2c7e39
movq 0x8(%rsp), %rax
movq (%rax), %rdx
leaq 0x10ff5d(%rip), %rsi    # 0x3d7d96
movq %r14, %rdi
xorl %eax, %eax
callq 0x27b48d
jmp 0x2c7745
xorl %edx, %edx
movq 0x20(%r15), %rbp
jmp 0x2c83c1
movq (%r14), %rax
movq 0x30(%rax), %rax
andl $0x44, %eax
movq %rax, 0x58(%rsp)
xorl %eax, %eax
xorl %ebp, %ebp
movq %rax, 0xa8(%rsp)
leaq (%rax,%rax,2), %rax
movq 0x78(%rsp), %rcx
movq (%rcx,%rax,8), %rdx
movl 0x30(%rsp), %ecx
orl 0x4(%rdx), %ecx
movl %ecx, 0x30(%rsp)
movzbl (%rdx), %ecx
cmpl $0xb1, %ecx
je 0x2c7eff
cmpl $0x8b, %ecx
jne 0x2c7eac
movq 0x18(%rdx), %rcx
cmpb $-0x4f, (%rcx)
jne 0x2c7eac
movq 0x10(%rdx), %rax
movq 0x8(%rax), %rdx
jmp 0x2c7f01
movq 0x78(%rsp), %rcx
leaq (%rcx,%rax,8), %rbx
movq (%r14), %rdi
movq %rbp, %rsi
callq 0x2b1a3f
movq %rax, %rbp
testq %rax, %rax
je 0x2c7ef3
movq 0x8(%rbx), %rax
movslq (%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
movq %rax, -0x8(%rbp,%rcx,8)
movb 0x11(%rbx), %al
andb $0x3, %al
movb 0x1(%rbp,%rcx,8), %dl
andb $-0x4, %dl
orb %al, %dl
movb %dl, 0x1(%rbp,%rcx,8)
movq $0x0, 0x8(%rbx)
movq $0x0, (%rbx)
jmp 0x2c8393
xorl %edx, %edx
movq 0x48(%rsp), %rax
movl (%rax), %eax
testl %eax, %eax
jle 0x2c836d
movl $0x0, 0x34(%rsp)
xorl %r14d, %r14d
movq 0x80(%rsp), %rsi
movq %rdx, 0x40(%rsp)
movq 0x18(%rsi), %rcx
movq %rsi, 0x38(%rsp)
movq 0x20(%rsi), %r10
movq %rcx, 0x8(%rsp)
testq %rcx, %rcx
jne 0x2c7f47
movq (%r10), %rcx
movq %rcx, 0x8(%rsp)
cmpb $0x0, 0x61(%r12)
jne 0x2c8363
movq 0x38(%rsp), %rcx
movq 0x28(%rcx), %rcx
testq %rcx, %rcx
je 0x2c7f67
testb $0x8, 0x5(%rcx)
jne 0x2c7fdb
testq %rdx, %rdx
je 0x2c7fa2
xorl %ecx, %ecx
movzbl (%rdx,%rcx), %r8d
movq 0x8(%rsp), %rsi
movzbl (%rsi,%rcx), %esi
cmpb %sil, %r8b
jne 0x2c7f88
testq %r8, %r8
jne 0x2c7f9d
jmp 0x2c7fa2
leaq 0x109351(%rip), %rdi    # 0x3d12e0
movb (%r8,%rdi), %r8b
cmpb (%rsi,%rdi), %r8b
jne 0x2c8348
incq %rcx
jmp 0x2c7f6e
movq 0x70(%r10), %r9
testq %r9, %r9
movq %rbp, 0x10(%rsp)
je 0x2c7fe4
movq 0x20(%r12), %rcx
leaq 0x18(%rcx), %rdi
movq $-0x1, %rsi
incq %rsi
leaq 0x20(%rdi), %r8
cmpq %r9, (%rdi)
movq %r8, %rdi
jne 0x2c7fc0
movl %esi, %esi
shlq $0x5, %rsi
movq (%rcx,%rsi), %rsi
jmp 0x2c7feb
xorl %esi, %esi
movq %rbp, 0x10(%rsp)
jmp 0x2c7fed
leaq 0x1021df(%rip), %rsi    # 0x3ca1ca
xorl %ecx, %ecx
cmpw $0x0, 0x46(%r10)
jle 0x2c833e
movq %rsi, 0x88(%rsp)
testq %rdx, %rdx
setne %al
movq %rcx, %rsi
sete %cl
movq %rsi, 0x90(%rsp)
testq %rsi, %rsi
setne %sil
andb %al, %sil
movb %sil, 0x60(%rsp)
cmpl $0x0, 0x34(%rsp)
setne %al
andb %cl, %al
movb %al, 0x70(%rsp)
movl $0x8, %ebp
xorl %r13d, %r13d
xorl %r12d, %r12d
movq %r10, 0x28(%rsp)
movq 0x8(%r10), %rbx
movq (%rbx,%r13), %rcx
cmpb $0x0, 0x60(%rsp)
movq %rcx, %r15
je 0x2c8081
movq 0x90(%rsp), %rax
movq 0x20(%rax), %rdi
addq %rbp, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x2c6a2e
movq %r15, %rcx
movq 0x28(%rsp), %r10
movq 0x40(%rsp), %rdx
testl %eax, %eax
je 0x2c830d
movq 0x50(%rsp), %rax
testb $0x2, 0x6(%rax)
jne 0x2c8098
testb $0x2, 0x1c(%rbx,%r13)
jne 0x2c830d
cmpb $0x0, 0x70(%rsp)
je 0x2c80f9
movq 0x38(%rsp), %rax
testb $0x4, 0x3c(%rax)
je 0x2c80dc
movl $0x1, %r14d
movq 0x48(%rsp), %rdi
movl 0x34(%rsp), %esi
movq %rcx, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0x2c8b16
movq %r15, %rcx
testl %eax, %eax
movq 0x38(%rsp), %rax
jne 0x2c8303
movq 0x50(%rax), %rdi
movq %rcx, %rsi
callq 0x2c8ba9
movq %r15, %rcx
movl $0x1, %r14d
testl %eax, %eax
jns 0x2c8303
movq 0x20(%rsp), %rdi
movl $0x3b, %esi
movq %rcx, %rdx
callq 0x2b1be4
movq %rax, %r14
cmpl $0x4, 0x58(%rsp)
je 0x2c8123
movq 0x48(%rsp), %rax
cmpl $0x2, (%rax)
jl 0x2c81d4
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
movl $0x3b, %esi
movq 0x8(%rsp), %rdx
callq 0x2b1be4
movq 0x18(%rsp), %rdi
movl $0x8b, %esi
movq %rax, %rdx
movq %r14, %rcx
callq 0x2ad3b5
movq %rax, %r14
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2c81a7
movq %rdi, 0x98(%rsp)
callq 0x172f0
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, 0xa0(%rsp)
movq %rbx, %rdi
movl $0x3b, %esi
leaq 0x98(%rsp), %rdx
xorl %ecx, %ecx
callq 0x2b1c27
movq 0x18(%rsp), %rdi
movl $0x8b, %esi
movq %rax, %rdx
movq %r14, %rcx
callq 0x2ad3b5
movq %rax, %r14
movq %r15, %rbx
cmpl $0x4, 0x58(%rsp)
jne 0x2c81d7
movq 0x20(%rsp), %rdi
leaq 0x8c928(%rip), %rsi     # 0x354ae5
movq 0x8(%rsp), %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x27b56a
movq %rax, %rbx
movq %rax, %r15
jmp 0x2c81da
movq %r15, %rbx
xorl %r15d, %r15d
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rsi
movq %r14, %rdx
callq 0x2b1a3f
movq %rax, 0x10(%rsp)
movq %rbx, 0x98(%rsp)
testq %rbx, %rbx
movq %rbx, 0xb0(%rsp)
je 0x2c8218
movq %rbx, %rdi
callq 0x172f0
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
jmp 0x2c821a
xorl %eax, %eax
movl %eax, 0xa0(%rsp)
movq 0x18(%rsp), %r14
movq %r14, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rsi
leaq 0x98(%rsp), %rdx
xorl %ecx, %ecx
callq 0x2b1ae1
testq %rbx, %rbx
je 0x2c82eb
movq 0x50(%rsp), %rax
testb $0x8, 0x5(%rax)
je 0x2c82eb
cmpb $0x1, 0x11c(%r14)
ja 0x2c82eb
movq 0x10(%rsp), %rcx
movslq (%rcx), %rax
leaq (%rax,%rax,2), %r14
movq -0x8(%rcx,%r14,8), %rsi
testq %rsi, %rsi
je 0x2c8286
movq 0x20(%rsp), %rdi
callq 0x282904
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0x2c82a8
movq 0x20(%rax), %rax
movq 0x8(%rax,%rbp), %rsi
movq 0x20(%rsp), %rdi
callq 0x279928
jmp 0x2c82d0
movq 0x20(%rsp), %rdi
leaq 0x10f8fa(%rip), %rsi    # 0x3d7bae
movq 0x88(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0xb0(%rsp), %r8
xorl %eax, %eax
callq 0x27b56a
movq 0x10(%rsp), %rcx
leaq (%rcx,%r14,8), %rcx
addq $-0x10, %rcx
movq %rax, 0x8(%rcx)
movb 0x11(%rcx), %al
andb $-0x4, %al
orb $0x2, %al
movb %al, 0x11(%rcx)
movl $0x1, %r14d
testq %r15, %r15
je 0x2c8303
movq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x282904
movq 0x40(%rsp), %rdx
movq 0x28(%rsp), %r10
incq %r12
movswq 0x46(%r10), %rax
addq $0x18, %rbp
addq $0x20, %r13
cmpq %rax, %r12
jl 0x2c8042
movq 0x10(%rsp), %rbp
movq 0x48(%rsp), %rax
movl (%rax), %eax
movq 0x50(%rsp), %r15
movq 0x20(%rsp), %r12
jmp 0x2c8343
movq 0x50(%rsp), %r15
movq 0x68(%rsp), %r13
movl 0x34(%rsp), %ecx
incl %ecx
movq 0x38(%rsp), %rsi
addq $0x70, %rsi
movl %ecx, 0x34(%rsp)
cmpl %eax, %ecx
jl 0x2c7f28
testl %r14d, %r14d
movq 0x18(%rsp), %r14
jne 0x2c8393
movq %r14, %rdi
testq %rdx, %rdx
je 0x2c8385
leaq 0x10f9d5(%rip), %rsi    # 0x3d7d51
xorl %eax, %eax
callq 0x27b48d
jmp 0x2c8393
leaq 0x10f9d7(%rip), %rsi    # 0x3d7d63
xorl %eax, %eax
callq 0x27b48d
movq 0xa8(%rsp), %rcx
incq %rcx
movslq (%r13), %rax
cmpq %rax, %rcx
movq %rcx, %rax
jl 0x2c7e66
movq %r12, %rdi
movq %r13, %rsi
callq 0x2a65a3
movq %rbp, 0x20(%r15)
movl 0x30(%rsp), %edx
xorl %eax, %eax
testq %rbp, %rbp
je 0x2c774a
movl (%rbp), %ecx
cmpl 0x84(%r12), %ecx
jle 0x2c83ef
leaq 0x10f997(%rip), %rsi    # 0x3d7d77
movq %r14, %rdi
xorl %eax, %eax
callq 0x27b48d
jmp 0x2c7745
testl $0x200004, %edx         # imm = 0x200004
je 0x2c774a
orb $0x4, 0x6(%r15)
jmp 0x2c774a
movq 0x8(%rsp), %rax
movq (%rax), %rdx
leaq 0x10f9c4(%rip), %rsi    # 0x3d7dd8
movq %r14, %rdi
xorl %eax, %eax
callq 0x27b48d
movq 0x38(%rsp), %rax
movq %rax, 0x190(%r14)
jmp 0x2c7745