// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: lookupName
static int lookupName(
  Parse *pParse,       /* The parsing context */
  const char *zDb,     /* Name of the database containing table, or NULL */
  const char *zTab,    /* Name of table containing column, or NULL */
  const char *zCol,    /* Name of the column. */
  NameContext *pNC,    /* The name context used to resolve the name */
  Expr *pExpr          /* Make this EXPR node point to the selected column */
){
  int i, j;                         /* Loop counters */
  int cnt = 0;                      /* Number of matching column names */
  int cntTab = 0;                   /* Number of matching table names */
  int nSubquery = 0;                /* How many levels of subquery */
  sqlite3 *db = pParse->db;         /* The database connection */
  struct SrcList_item *pItem;       /* Use for looping over pSrcList items */
  struct SrcList_item *pMatch = 0;  /* The matching pSrcList item */
  NameContext *pTopNC = pNC;        /* First namecontext in the list */
  Schema *pSchema = 0;              /* Schema of the expression */
  int isTrigger = 0;                /* True if resolved to a trigger column */
  Table *pTab = 0;                  /* Table hold the row */
  Column *pCol;                     /* A column of pTab */

  assert( pNC );     /* the name context cannot be NULL. */
  assert( zCol );    /* The Z in X.Y.Z cannot be NULL */
  assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) );

  /* Initialize the node to no-match */
  pExpr->iTable = -1;
  pExpr->pTab = 0;
  ExprSetVVAProperty(pExpr, EP_NoReduce);

  /* Translate the schema name in zDb into a pointer to the corresponding
  ** schema.  If not found, pSchema will remain NULL and nothing will match
  ** resulting in an appropriate error message toward the end of this routine
  */
  if( zDb ){
    testcase( pNC->ncFlags & NC_PartIdx );
    testcase( pNC->ncFlags & NC_IsCheck );
    if( (pNC->ncFlags & (NC_PartIdx|NC_IsCheck))!=0 ){
      /* Silently ignore database qualifiers inside CHECK constraints and
      ** partial indices.  Do not raise errors because that might break
      ** legacy and because it does not hurt anything to just ignore the
      ** database name. */
      zDb = 0;
    }else{
      for(i=0; i<db->nDb; i++){
        assert( db->aDb[i].zName );
        if( sqlite3StrICmp(db->aDb[i].zName,zDb)==0 ){
          pSchema = db->aDb[i].pSchema;
          break;
        }
      }
    }
  }

  /* Start at the inner-most context and move outward until a match is found */
  while( pNC && cnt==0 ){
    ExprList *pEList;
    SrcList *pSrcList = pNC->pSrcList;

    if( pSrcList ){
      for(i=0, pItem=pSrcList->a; i<pSrcList->nSrc; i++, pItem++){
        pTab = pItem->pTab;
        assert( pTab!=0 && pTab->zName!=0 );
        assert( pTab->nCol>0 );
        if( pItem->pSelect && (pItem->pSelect->selFlags & SF_NestedFrom)!=0 ){
          int hit = 0;
          pEList = pItem->pSelect->pEList;
          for(j=0; j<pEList->nExpr; j++){
            if( sqlite3MatchSpanName(pEList->a[j].zSpan, zCol, zTab, zDb) ){
              cnt++;
              cntTab = 2;
              pMatch = pItem;
              pExpr->iColumn = j;
              hit = 1;
            }
          }
          if( hit || zTab==0 ) continue;
        }
        if( zDb && pTab->pSchema!=pSchema ){
          continue;
        }
        if( zTab ){
          const char *zTabName = pItem->zAlias ? pItem->zAlias : pTab->zName;
          assert( zTabName!=0 );
          if( sqlite3StrICmp(zTabName, zTab)!=0 ){
            continue;
          }
        }
        if( 0==(cntTab++) ){
          pMatch = pItem;
        }
        for(j=0, pCol=pTab->aCol; j<pTab->nCol; j++, pCol++){
          if( sqlite3StrICmp(pCol->zName, zCol)==0 ){
            /* If there has been exactly one prior match and this match
            ** is for the right-hand table of a NATURAL JOIN or is in a 
            ** USING clause, then skip this match.
            */
            if( cnt==1 ){
              if( pItem->fg.jointype & JT_NATURAL ) continue;
              if( nameInUsingClause(pItem->pUsing, zCol) ) continue;
            }
            cnt++;
            pMatch = pItem;
            /* Substitute the rowid (column -1) for the INTEGER PRIMARY KEY */
            pExpr->iColumn = j==pTab->iPKey ? -1 : (i16)j;
            break;
          }
        }
      }
      if( pMatch ){
        pExpr->iTable = pMatch->iCursor;
        pExpr->pTab = pMatch->pTab;
        /* RIGHT JOIN not (yet) supported */
        assert( (pMatch->fg.jointype & JT_RIGHT)==0 );
        if( (pMatch->fg.jointype & JT_LEFT)!=0 ){
          ExprSetProperty(pExpr, EP_CanBeNull);
        }
        pSchema = pExpr->pTab->pSchema;
      }
    } /* if( pSrcList ) */

#ifndef SQLITE_OMIT_TRIGGER
    /* If we have not already resolved the name, then maybe 
    ** it is a new.* or old.* trigger argument reference
    */
    if( zDb==0 && zTab!=0 && cntTab==0 && pParse->pTriggerTab!=0 ){
      int op = pParse->eTriggerOp;
      assert( op==TK_DELETE || op==TK_UPDATE || op==TK_INSERT );
      if( op!=TK_DELETE && sqlite3StrICmp("new",zTab) == 0 ){
        pExpr->iTable = 1;
        pTab = pParse->pTriggerTab;
      }else if( op!=TK_INSERT && sqlite3StrICmp("old",zTab)==0 ){
        pExpr->iTable = 0;
        pTab = pParse->pTriggerTab;
      }else{
        pTab = 0;
      }

      if( pTab ){ 
        int iCol;
        pSchema = pTab->pSchema;
        cntTab++;
        for(iCol=0, pCol=pTab->aCol; iCol<pTab->nCol; iCol++, pCol++){
          if( sqlite3StrICmp(pCol->zName, zCol)==0 ){
            if( iCol==pTab->iPKey ){
              iCol = -1;
            }
            break;
          }
        }
        if( iCol>=pTab->nCol && sqlite3IsRowid(zCol) && VisibleRowid(pTab) ){
          /* IMP: R-51414-32910 */
          iCol = -1;
        }
        if( iCol<pTab->nCol ){
          cnt++;
          if( iCol<0 ){
            pExpr->affinity = SQLITE_AFF_INTEGER;
          }else if( pExpr->iTable==0 ){
            testcase( iCol==31 );
            testcase( iCol==32 );
            pParse->oldmask |= (iCol>=32 ? 0xffffffff : (((u32)1)<<iCol));
          }else{
            testcase( iCol==31 );
            testcase( iCol==32 );
            pParse->newmask |= (iCol>=32 ? 0xffffffff : (((u32)1)<<iCol));
          }
          pExpr->iColumn = (i16)iCol;
          pExpr->pTab = pTab;
          isTrigger = 1;
        }
      }
    }
#endif /* !defined(SQLITE_OMIT_TRIGGER) */

    /*
    ** Perhaps the name is a reference to the ROWID
    */
    if( cnt==0
     && cntTab==1
     && pMatch
     && (pNC->ncFlags & NC_IdxExpr)==0
     && sqlite3IsRowid(zCol)
     && VisibleRowid(pMatch->pTab)
    ){
      cnt = 1;
      pExpr->iColumn = -1;
      pExpr->affinity = SQLITE_AFF_INTEGER;
    }

    /*
    ** If the input is of the form Z (not Y.Z or X.Y.Z) then the name Z
    ** might refer to an result-set alias.  This happens, for example, when
    ** we are resolving names in the WHERE clause of the following command:
    **
    **     SELECT a+b AS x FROM table WHERE x<10;
    **
    ** In cases like this, replace pExpr with a copy of the expression that
    ** forms the result set entry ("a+b" in the example) and return immediately.
    ** Note that the expression in the result set should have already been
    ** resolved by the time the WHERE clause is resolved.
    **
    ** The ability to use an output result-set column in the WHERE, GROUP BY,
    ** or HAVING clauses, or as part of a larger expression in the ORDER BY
    ** clause is not standard SQL.  This is a (goofy) SQLite extension, that
    ** is supported for backwards compatibility only. Hence, we issue a warning
    ** on sqlite3_log() whenever the capability is used.
    */
    if( (pEList = pNC->pEList)!=0
     && zTab==0
     && cnt==0
    ){
      for(j=0; j<pEList->nExpr; j++){
        char *zAs = pEList->a[j].zName;
        if( zAs!=0 && sqlite3StrICmp(zAs, zCol)==0 ){
          Expr *pOrig;
          assert( pExpr->pLeft==0 && pExpr->pRight==0 );
          assert( pExpr->x.pList==0 );
          assert( pExpr->x.pSelect==0 );
          pOrig = pEList->a[j].pExpr;
          if( (pNC->ncFlags&NC_AllowAgg)==0 && ExprHasProperty(pOrig, EP_Agg) ){
            sqlite3ErrorMsg(pParse, "misuse of aliased aggregate %s", zAs);
            return WRC_Abort;
          }
          resolveAlias(pParse, pEList, j, pExpr, "", nSubquery);
          cnt = 1;
          pMatch = 0;
          assert( zTab==0 && zDb==0 );
          goto lookupname_end;
        }
      } 
    }

    /* Advance to the next name context.  The loop will exit when either
    ** we have a match (cnt>0) or when we run out of name contexts.
    */
    if( cnt==0 ){
      pNC = pNC->pNext;
      nSubquery++;
    }
  }

  /*
  ** If X and Y are NULL (in other words if only the column name Z is
  ** supplied) and the value of Z is enclosed in double-quotes, then
  ** Z is a string literal if it doesn't match any column names.  In that
  ** case, we need to return right away and not make any changes to
  ** pExpr.
  **
  ** Because no reference was made to outer contexts, the pNC->nRef
  ** fields are not changed in any context.
  */
  if( cnt==0 && zTab==0 && ExprHasProperty(pExpr,EP_DblQuoted) ){
    pExpr->op = TK_STRING;
    pExpr->pTab = 0;
    return WRC_Prune;
  }

  /*
  ** cnt==0 means there was not match.  cnt>1 means there were two or
  ** more matches.  Either way, we have an error.
  */
  if( cnt!=1 ){
    const char *zErr;
    zErr = cnt==0 ? "no such column" : "ambiguous column name";
    if( zDb ){
      sqlite3ErrorMsg(pParse, "%s: %s.%s.%s", zErr, zDb, zTab, zCol);
    }else if( zTab ){
      sqlite3ErrorMsg(pParse, "%s: %s.%s", zErr, zTab, zCol);
    }else{
      sqlite3ErrorMsg(pParse, "%s: %s", zErr, zCol);
    }
    pParse->checkSchema = 1;
    pTopNC->nErr++;
  }

  /* If a column from a table in pSrcList is referenced, then record
  ** this fact in the pSrcList.a[].colUsed bitmask.  Column 0 causes
  ** bit 0 to be set.  Column 1 sets bit 1.  And so forth.  If the
  ** column number is greater than the number of bits in the bitmask
  ** then set the high-order bit of the bitmask.
  */
  if( pExpr->iColumn>=0 && pMatch!=0 ){
    int n = pExpr->iColumn;
    testcase( n==BMS-1 );
    if( n>=BMS ){
      n = BMS-1;
    }
    assert( pMatch->iCursor==pExpr->iTable );
    pMatch->colUsed |= ((Bitmask)1)<<n;
  }

  /* Clean up and return
  */
  sqlite3ExprDelete(db, pExpr->pLeft);
  pExpr->pLeft = 0;
  sqlite3ExprDelete(db, pExpr->pRight);
  pExpr->pRight = 0;
  pExpr->op = (isTrigger ? TK_TRIGGER : TK_COLUMN);
lookupname_end:
  if( cnt==1 ){
    assert( pNC!=0 );
    if( !ExprHasProperty(pExpr, EP_Alias) ){
      sqlite3AuthRead(pParse, pExpr, pSchema, pNC->pSrcList);
    }
    /* Increment the nRef value on all name contexts from TopNC up to
    ** the point where the name matched. */
    for(;;){
      assert( pTopNC!=0 );
      pTopNC->nRef++;
      if( pTopNC==pNC ) break;
      pTopNC = pTopNC->pNext;
    }
    return WRC_Prune;
  } else {
    return WRC_Abort;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r8, %r12
movq %rcx, -0x68(%rbp)
movq %rdx, -0x40(%rbp)
movq (%rdi), %rax
movl $0xffffffff, 0x2c(%r9)  # imm = 0xFFFFFFFF
movq $0x0, 0x40(%r9)
movq %rsi, -0x90(%rbp)
testq %rsi, %rsi
movq %r9, -0x50(%rbp)
movq %rdi, -0x70(%rbp)
movq %rax, -0xb8(%rbp)
je 0x564da
testb $0x14, 0x30(%r12)
je 0x56b31
movq $0x0, -0x90(%rbp)
movq $0x0, -0x78(%rbp)
jmp 0x564eb
movq $0x0, -0x78(%rbp)
testq %r12, %r12
je 0x56b7a
cmpq $0x0, -0x90(%rbp)
sete %al
cmpq $0x0, -0x40(%rbp)
setne %cl
andb %al, %cl
movb %cl, -0x41(%rbp)
xorl %edi, %edi
movq %r12, %rax
movl $0x0, -0x7c(%rbp)
xorl %r14d, %r14d
movl $0x0, -0x94(%rbp)
movq %r12, -0x60(%rbp)
movq %rax, -0x88(%rbp)
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x56796
movl (%rax), %ecx
movl %ecx, -0xa4(%rbp)
testl %ecx, %ecx
jle 0x5679f
movq %rax, %r12
addq $0x8, %r12
xorl %r15d, %r15d
xorl %eax, %eax
movl %edi, %r8d
movq %r12, %rcx
movl %eax, %r12d
movq 0x20(%rcx), %rbx
movq %rcx, -0x30(%rbp)
movq 0x28(%rcx), %rax
testq %rax, %rax
je 0x56574
testb $0x4, 0xb(%rax)
jne 0x56699
movl %r12d, %eax
movq -0x30(%rbp), %r12
cmpq $0x0, -0x90(%rbp)
movl %eax, -0x38(%rbp)
je 0x56595
movq -0x78(%rbp), %rax
cmpq %rax, 0x68(%rbx)
movl -0x38(%rbp), %eax
jne 0x565c5
cmpq $0x0, -0x40(%rbp)
je 0x565cd
movq %r14, %r13
movq %r8, %r14
movq 0x18(%r12), %rdi
testq %rdi, %rdi
jne 0x565af
movq (%rbx), %rdi
movq -0x40(%rbp), %rsi
callq 0xa400
testl %eax, %eax
movl -0x38(%rbp), %eax
movq %r14, %r8
movq %r13, %r14
je 0x565cd
movl %r8d, %edi
jmp 0x5677d
leal 0x1(%r8), %edi
testl %r8d, %r8d
cmoveq %r12, %r14
movswl 0x3e(%rbx), %ecx
movl %ecx, -0xa8(%rbp)
testl %ecx, %ecx
jle 0x5677d
movl %r15d, -0x80(%rbp)
movq %rdi, -0xb0(%rbp)
movq %r14, -0x58(%rbp)
movq %rbx, -0xa0(%rbp)
movq 0x8(%rbx), %r14
xorl %r12d, %r12d
movq (%r14), %rdi
movq -0x68(%rbp), %rsi
callq 0xa400
testl %eax, %eax
jne 0x56672
cmpl $0x1, -0x38(%rbp)
jne 0x56744
movq -0x30(%rbp), %rax
testb $0x4, 0x3c(%rax)
jne 0x56672
movq -0x30(%rbp), %rax
movq 0x50(%rax), %rax
testq %rax, %rax
je 0x56744
movslq 0x8(%rax), %rbx
testq %rbx, %rbx
jle 0x56744
movq (%rax), %r15
shlq $0x4, %rbx
xorl %r13d, %r13d
movq (%r15,%r13), %rdi
movq -0x68(%rbp), %rsi
callq 0xa400
testl %eax, %eax
je 0x56672
addq $0x10, %r13
cmpq %r13, %rbx
jne 0x56653
jmp 0x56744
incl %r12d
addq $0x30, %r14
cmpl -0xa8(%rbp), %r12d
jne 0x56607
movq -0x58(%rbp), %r14
movl -0x38(%rbp), %eax
movq -0xb0(%rbp), %rdi
movq -0x30(%rbp), %r12
jmp 0x56779
movq %r14, -0x58(%rbp)
movq (%rax), %rax
movslq (%rax), %r14
xorl %ecx, %ecx
testq %r14, %r14
jle 0x56724
xorl %r13d, %r13d
movq %r8, -0x38(%rbp)
movq %rbx, -0xa0(%rbp)
movl %r15d, -0x80(%rbp)
movq 0x8(%rax), %r15
addq $0x10, %r15
xorl %ebx, %ebx
movq (%r15), %rdi
movq -0x68(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x90(%rbp), %rcx
callq 0x56f26
testl %eax, %eax
je 0x56703
incl %r12d
movq -0x50(%rbp), %rax
movw %bx, 0x30(%rax)
movl $0x1, %r13d
movl $0x2, %eax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
incq %rbx
addq $0x20, %r15
cmpq %rbx, %r14
jne 0x566c6
testl %r13d, %r13d
setne %cl
movl -0x80(%rbp), %r15d
movq -0xa0(%rbp), %rbx
movq -0x38(%rbp), %r8
cmpq $0x0, -0x40(%rbp)
sete %al
orb %cl, %al
movl %r8d, %edi
movq -0x58(%rbp), %r14
movl %r12d, %eax
movq -0x30(%rbp), %r12
je 0x5657b
jmp 0x5677d
movl -0x38(%rbp), %ecx
incl %ecx
movq -0xa0(%rbp), %rax
movswl 0x3c(%rax), %eax
cmpl %eax, %r12d
movl $0xffff, %eax           # imm = 0xFFFF
cmovel %eax, %r12d
movl %ecx, %eax
movq -0x50(%rbp), %rcx
movw %r12w, 0x30(%rcx)
movq -0x30(%rbp), %r12
movq %r12, %r14
movq -0xb0(%rbp), %rdi
movl -0x80(%rbp), %r15d
incl %r15d
addq $0x70, %r12
movl %edi, %r8d
cmpl -0xa4(%rbp), %r15d
jne 0x56553
jmp 0x567a1
movl $0x0, -0x38(%rbp)
jmp 0x567e0
xorl %eax, %eax
movl %eax, -0x38(%rbp)
testq %r14, %r14
je 0x567d9
movl 0x44(%r14), %eax
movq -0x50(%rbp), %rcx
movl %eax, 0x2c(%rcx)
movq 0x20(%r14), %rax
movq %rax, 0x40(%rcx)
testb $0x8, 0x3c(%r14)
movq -0x60(%rbp), %r12
je 0x567cf
movq -0x50(%rbp), %rcx
orb $0x10, 0x6(%rcx)
movq 0x68(%rax), %rax
movq %rax, -0x78(%rbp)
jmp 0x567e0
xorl %r14d, %r14d
movq -0x60(%rbp), %r12
testl %edi, %edi
sete %al
andb -0x41(%rbp), %al
cmpb $0x1, %al
jne 0x569cc
movq -0x70(%rbp), %rax
movq 0x1c8(%rax), %r15
testq %r15, %r15
je 0x56864
movb 0x1e0(%rax), %al
cmpb $0x6d, %al
jne 0x5686b
movb $0x6f, %cl
xorl %eax, %eax
leaq 0x26649(%rip), %rdi     # 0x7ce5e
movzbl %cl, %ecx
leaq 0x21b41(%rip), %rsi     # 0x78360
movb (%rcx,%rsi), %cl
movq -0x40(%rbp), %rdx
movzbl (%rdx,%rax), %edx
movb (%rdx,%rsi), %dl
cmpb %dl, %cl
jne 0x56852
movb 0x1(%rax,%rdi), %cl
incq %rax
cmpq $0x3, %rax
jne 0x56815
movq -0x40(%rbp), %rax
movzbl 0x3(%rax), %eax
leaq 0x21b13(%rip), %rcx     # 0x78360
movb (%rax,%rcx), %dl
xorl %ecx, %ecx
xorl %edi, %edi
movb $0x1, %r12b
cmpb %dl, %cl
je 0x568c5
movq -0x60(%rbp), %r12
jmp 0x56a15
xorl %edi, %edi
jmp 0x56a8f
movb $0x6e, %dl
xorl %ecx, %ecx
movzbl %dl, %edx
leaq 0x21ae7(%rip), %rdi     # 0x78360
movb (%rdx,%rdi), %dl
movq -0x40(%rbp), %rsi
movzbl (%rsi,%rcx), %esi
movb (%rsi,%rdi), %sil
cmpb %sil, %dl
jne 0x568b6
leaq 0x265c6(%rip), %rdx     # 0x7ce5a
movb 0x1(%rcx,%rdx), %dl
incq %rcx
cmpq $0x3, %rcx
jne 0x5686f
movq -0x40(%rbp), %rcx
movzbl 0x3(%rcx), %ecx
leaq 0x21ab0(%rip), %rdx     # 0x78360
movb (%rcx,%rdx), %sil
xorl %edx, %edx
xorl %edi, %edi
cmpb %sil, %dl
jne 0x56912
movl $0x1, %edi
xorl %r12d, %r12d
movq -0x50(%rbp), %rax
movl %edi, 0x2c(%rax)
movq 0x68(%r15), %rax
movq %rax, -0x78(%rbp)
movswl 0x3e(%r15), %r13d
testl %r13d, %r13d
jle 0x5691f
movl %r12d, -0x30(%rbp)
movq %r14, %r12
movq 0x8(%r15), %r14
xorl %ebx, %ebx
movq (%r14), %rdi
movq -0x68(%rbp), %rsi
callq 0xa400
testl %eax, %eax
je 0x56923
incl %ebx
addq $0x30, %r14
cmpl %ebx, %r13d
jne 0x568eb
movl %r13d, %ebx
movq %r12, %r14
movl -0x30(%rbp), %r12d
jmp 0x5693e
cmpb $0x6c, %al
jne 0x5680a
jmp 0x56a15
xorl %ebx, %ebx
jmp 0x56939
movswl 0x3c(%r15), %eax
cmpl %ebx, %eax
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovel %eax, %ebx
movq %r12, %r14
movl -0x30(%rbp), %r12d
cmpl %r13d, %ebx
jl 0x5695c
movq -0x68(%rbp), %rdi
callq 0x1ac59
testl %eax, %eax
je 0x5695c
movb 0x46(%r15), %al
andb $0x40, %al
cmpb $0x1, %al
movl $0x0, %eax
sbbl %eax, %eax
orl %eax, %ebx
movl $0x1, %edi
cmpl %r13d, %ebx
jge 0x5698f
testl %ebx, %ebx
js 0x56995
movl $0x1, %eax
movl %ebx, %ecx
shll %cl, %eax
cmpl $0x20, %ebx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmovael %ecx, %eax
testb %r12b, %r12b
je 0x569a3
movq -0x70(%rbp), %rcx
orl %eax, 0x1d8(%rcx)
jmp 0x569ad
movq -0x60(%rbp), %r12
jmp 0x569cc
movq -0x50(%rbp), %rax
movb $0x44, 0x1(%rax)
movq -0x60(%rbp), %r12
jmp 0x569b5
movq -0x70(%rbp), %rcx
orl %eax, 0x1dc(%rcx)
movq -0x60(%rbp), %r12
movq -0x50(%rbp), %rax
incl -0x38(%rbp)
movw %bx, 0x30(%rax)
movq %r15, 0x40(%rax)
movl $0x1, -0x7c(%rbp)
movl $0x1, %edi
cmpl $0x0, -0x38(%rbp)
jne 0x56a15
cmpl $0x1, %edi
jne 0x56a15
testq %r14, %r14
je 0x56a15
movl $0x0, -0x38(%rbp)
movl $0x1, %edi
movq -0x88(%rbp), %rax
testb $0x20, 0x30(%rax)
jne 0x56a15
movq -0x68(%rbp), %rdi
callq 0x1ac59
testl %eax, %eax
je 0x56a10
movq 0x20(%r14), %rax
testb $0x40, 0x46(%rax)
je 0x56e33
movl $0x1, %edi
cmpq $0x0, -0x40(%rbp)
setne %cl
movq -0x88(%rbp), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
sete %dl
cmpl $0x0, -0x38(%rbp)
setne %sil
orb %cl, %sil
orb %dl, %sil
jne 0x56a8f
movslq (%rax), %rcx
testq %rcx, %rcx
jle 0x56a9b
movq %rcx, %r12
movq %r14, -0x58(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
leaq 0x8(%rax), %r15
xorl %ebx, %ebx
movq (%r15), %r14
testq %r14, %r14
je 0x56a79
movq %rdi, %r13
movq %r14, %rdi
movq -0x68(%rbp), %rsi
callq 0xa400
movq %r13, %rdi
testl %eax, %eax
je 0x56ae6
incq %rbx
addq $0x20, %r15
cmpq %rbx, %r12
jne 0x56a5b
movq -0x60(%rbp), %r12
movq -0x58(%rbp), %r14
jmp 0x56a9f
movl -0x38(%rbp), %eax
testl %eax, %eax
je 0x56a9f
jmp 0x56bbf
movq -0x60(%rbp), %r12
movq -0x88(%rbp), %rax
movq 0x20(%rax), %rax
incl -0x94(%rbp)
testq %rax, %rax
jne 0x56520
movq %rax, -0x88(%rbp)
cmpl $0x0, -0x7c(%rbp)
movl $0x98, %eax
movl $0x3e, %esi
cmovel %eax, %esi
cmpq $0x0, -0x40(%rbp)
sete %al
je 0x56c09
xorl %eax, %eax
jmp 0x56c13
movq -0x30(%rbp), %rsi
movq -0x88(%rbp), %rax
testb $0x1, 0x30(%rax)
movq -0x60(%rbp), %r12
jne 0x56b09
movq -0x8(%r15), %rax
testb $0x2, 0x4(%rax)
jne 0x56ba0
leaq 0x27591(%rip), %r8      # 0x7e0a1
movq -0x70(%rbp), %r14
movq %r14, %rdi
movl %ebx, %edx
movq -0x50(%rbp), %rbx
movq %rbx, %rcx
movl -0x94(%rbp), %r9d
callq 0x57092
jmp 0x56d35
movslq 0x28(%rax), %rbx
testq %rbx, %rbx
jle 0x564d0
movq -0x90(%rbp), %r13
movq 0x20(%rax), %r14
shlq $0x5, %rbx
movq $0x0, -0x78(%rbp)
xorl %r15d, %r15d
movq (%r14,%r15), %rdi
movq %r13, %rsi
callq 0xa400
testl %eax, %eax
je 0x56bee
addq $0x20, %r15
cmpq %r15, %rbx
jne 0x56b58
jmp 0x564e2
movb $-0x68, %sil
xorl %r14d, %r14d
cmpq $0x0, -0x40(%rbp)
je 0x56bfc
leaq 0x262f3(%rip), %rdx     # 0x7ce81
movq $0x0, -0x88(%rbp)
xorl %eax, %eax
jmp 0x56c3c
leaq 0x262bb(%rip), %rsi     # 0x7ce62
movq -0x70(%rbp), %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x14890
movl $0x2, %eax
jmp 0x56e21
movq %r14, -0x58(%rbp)
cmpl $0x0, -0x7c(%rbp)
movl %eax, %ecx
movl $0x98, %eax
movl $0x3e, %esi
cmovel %eax, %esi
cmpq $0x0, -0x40(%rbp)
sete %al
movb $0x1, %r14b
cmpl $0x1, %ecx
jne 0x56c31
movl %esi, -0x30(%rbp)
jmp 0x56cbb
movq 0x18(%r14,%r15), %rax
movq %rax, -0x78(%rbp)
jmp 0x564e2
movb $0x1, %al
movq $0x0, -0x88(%rbp)
movq -0x50(%rbp), %rcx
testb $0x40, 0x4(%rcx)
jne 0x56c1c
leaq 0x26267(%rip), %rdx     # 0x7ce81
jmp 0x56c3c
movb $0x61, (%rcx)
movq $0x0, 0x40(%rcx)
movl $0x1, %eax
jmp 0x56e21
leaq 0x26258(%rip), %rdx     # 0x7ce90
movq -0x58(%rbp), %r14
cmpq $0x0, -0x90(%rbp)
movq %r14, -0x58(%rbp)
movl %esi, -0x30(%rbp)
je 0x56c73
leaq 0x26252(%rip), %rsi     # 0x7cea6
movq -0x70(%rbp), %rbx
movq %rbx, %rdi
movq -0x90(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x68(%rbp), %r9
xorl %eax, %eax
callq 0x14890
jmp 0x56caf
testb %al, %al
je 0x56c92
leaq 0x25a9e(%rip), %rsi     # 0x7c71c
movq -0x70(%rbp), %rbx
movq %rbx, %rdi
movq -0x68(%rbp), %rcx
xorl %eax, %eax
callq 0x14890
jmp 0x56caf
leaq 0x25a79(%rip), %rsi     # 0x7c712
movq -0x70(%rbp), %rbx
movq %rbx, %rdi
movq -0x40(%rbp), %rcx
movq -0x68(%rbp), %r8
xorl %eax, %eax
callq 0x14890
movb $0x1, 0x1d(%rbx)
incl 0x2c(%r12)
xorl %r14d, %r14d
movq -0x50(%rbp), %rax
movzwl 0x30(%rax), %eax
testw %ax, %ax
js 0x56ceb
cmpq $0x0, -0x58(%rbp)
je 0x56ceb
cmpw $0x3f, %ax
movl $0x3f, %ecx
cmovbl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
movq -0x58(%rbp), %rcx
orq %rax, 0x58(%rcx)
movq -0x50(%rbp), %r13
movq 0x10(%r13), %rsi
movq -0xb8(%rbp), %rbx
movq %rbx, %rdi
callq 0x3c8fe
xorl %r15d, %r15d
movq %r15, 0x10(%r13)
movq 0x18(%r13), %rsi
movq %rbx, %rdi
callq 0x3c8fe
movq %r15, 0x18(%r13)
movl -0x30(%rbp), %eax
movb %al, (%r13)
movq %r13, %rbx
movl $0x2, %eax
testb %r14b, %r14b
movq -0x70(%rbp), %r14
je 0x56e21
testb $0x40, 0x6(%rbx)
movq -0x88(%rbp), %r15
jne 0x56e03
cmpq $0x0, -0x78(%rbp)
je 0x56e03
movq (%r14), %rcx
cmpq $0x0, 0x180(%rcx)
je 0x56e03
movq 0x8(%r15), %rax
movl 0x28(%rcx), %edx
testl %edx, %edx
jle 0x56d94
movq 0x20(%rcx), %rsi
addq $0x18, %rsi
xorl %ecx, %ecx
movq -0x78(%rbp), %rdi
cmpq %rdi, (%rsi)
je 0x56d8e
incq %rcx
addq $0x20, %rsi
cmpq %rcx, %rdx
jne 0x56d7b
movl %edx, %ecx
testl %ecx, %ecx
jns 0x56d96
jmp 0x56e03
xorl %ecx, %ecx
cmpb $0x3e, (%rbx)
jne 0x56de6
leaq 0x1c8(%r14), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x56e03
movswq 0x30(%rbx), %rdx
testw %dx, %dx
jns 0x56dc2
movswq 0x3c(%rax), %rdx
testq %rdx, %rdx
js 0x56e61
leaq (%rdx,%rdx,2), %rdx
shlq $0x4, %rdx
addq 0x8(%rax), %rdx
movq (%rdx), %rdx
movq (%rax), %rsi
movq %r14, %rdi
callq 0x571de
cmpl $0x2, %eax
jne 0x56e03
movb $0x65, (%rbx)
jmp 0x56e03
movslq (%rax), %rdx
testq %rdx, %rdx
jle 0x56e03
movl 0x2c(%rbx), %esi
addq $0x28, %rax
cmpl 0x24(%rax), %esi
je 0x56da2
addq $0x70, %rax
decq %rdx
jne 0x56df5
incl 0x28(%r12)
movl $0x1, %eax
cmpq %r12, %r15
je 0x56e21
movq 0x20(%r12), %r12
incl 0x28(%r12)
cmpq %r15, %r12
jne 0x56e12
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, -0x58(%rbp)
movq -0x50(%rbp), %rax
movw $0xffff, 0x30(%rax)     # imm = 0xFFFF
movb $0x44, 0x1(%rax)
cmpl $0x0, -0x7c(%rbp)
movl $0x98, %eax
movl $0x3e, %ecx
cmovel %eax, %ecx
movl %ecx, -0x30(%rbp)
movb $0x1, %r14b
jmp 0x56cbb
leaq 0x2604b(%rip), %rdx     # 0x7ceb3
jmp 0x56dd1