// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3EndTable
SQLITE_PRIVATE void sqlite3EndTable(
  Parse *pParse,          /* Parse context */
  Token *pCons,           /* The ',' token after the last column defn. */
  Token *pEnd,            /* The ')' before options in the CREATE TABLE */
  u8 tabOpts,             /* Extra table options. Usually 0. */
  Select *pSelect         /* Select from a "CREATE ... AS SELECT" */
){
  Table *p;                 /* The new table */
  sqlite3 *db = pParse->db; /* The database connection */
  int iDb;                  /* Database in which the table lives */
  Index *pIdx;              /* An implied index of the table */

  if( pEnd==0 && pSelect==0 ){
    return;
  }
  assert( !db->mallocFailed );
  p = pParse->pNewTable;
  if( p==0 ) return;

  if( pSelect==0 && sqlite3ShadowTableName(db, p->zName) ){
    p->tabFlags |= TF_Shadow;
  }

  /* If the db->init.busy is 1 it means we are reading the SQL off the
  ** "sqlite_schema" or "sqlite_temp_schema" table on the disk.
  ** So do not write to the disk again.  Extract the root page number
  ** for the table from the db->init.newTnum field.  (The page number
  ** should have been put there by the sqliteOpenCb routine.)
  **
  ** If the root page number is 1, that means this is the sqlite_schema
  ** table itself.  So mark it read-only.
  */
  if( db->init.busy ){
    if( pSelect ){
      sqlite3ErrorMsg(pParse, "");
      return;
    }
    p->tnum = db->init.newTnum;
    if( p->tnum==1 ) p->tabFlags |= TF_Readonly;
  }

  assert( (p->tabFlags & TF_HasPrimaryKey)==0
       || p->iPKey>=0 || sqlite3PrimaryKeyIndex(p)!=0 );
  assert( (p->tabFlags & TF_HasPrimaryKey)!=0
       || (p->iPKey<0 && sqlite3PrimaryKeyIndex(p)==0) );

  /* Special processing for WITHOUT ROWID Tables */
  if( tabOpts & TF_WithoutRowid ){
    if( (p->tabFlags & TF_Autoincrement) ){
      sqlite3ErrorMsg(pParse,
          "AUTOINCREMENT not allowed on WITHOUT ROWID tables");
      return;
    }
    if( (p->tabFlags & TF_HasPrimaryKey)==0 ){
      sqlite3ErrorMsg(pParse, "PRIMARY KEY missing on table %s", p->zName);
      return;
    }
    p->tabFlags |= TF_WithoutRowid | TF_NoVisibleRowid;
    convertToWithoutRowidTable(pParse, p);
  }
  iDb = sqlite3SchemaToIndex(db, p->pSchema);

#ifndef SQLITE_OMIT_CHECK
  /* Resolve names in all CHECK constraint expressions.
  */
  if( p->pCheck ){
    sqlite3ResolveSelfReference(pParse, p, NC_IsCheck, 0, p->pCheck);
    if( pParse->nErr ){
      /* If errors are seen, delete the CHECK constraints now, else they might
      ** actually be used if PRAGMA writable_schema=ON is set. */
      sqlite3ExprListDelete(db, p->pCheck);
      p->pCheck = 0;
    }else{
      markExprListImmutable(p->pCheck);
    }
  }
#endif /* !defined(SQLITE_OMIT_CHECK) */
#ifndef SQLITE_OMIT_GENERATED_COLUMNS
  if( p->tabFlags & TF_HasGenerated ){
    int ii, nNG = 0;
    testcase( p->tabFlags & TF_HasVirtual );
    testcase( p->tabFlags & TF_HasStored );
    for(ii=0; ii<p->nCol; ii++){
      u32 colFlags = p->aCol[ii].colFlags;
      if( (colFlags & COLFLAG_GENERATED)!=0 ){
        Expr *pX = p->aCol[ii].pDflt;
        testcase( colFlags & COLFLAG_VIRTUAL );
        testcase( colFlags & COLFLAG_STORED );
        if( sqlite3ResolveSelfReference(pParse, p, NC_GenCol, pX, 0) ){
          /* If there are errors in resolving the expression, change the
          ** expression to a NULL.  This prevents code generators that operate
          ** on the expression from inserting extra parts into the expression
          ** tree that have been allocated from lookaside memory, which is
          ** illegal in a schema and will lead to errors or heap corruption
          ** when the database connection closes. */
          sqlite3ExprDelete(db, pX);
          p->aCol[ii].pDflt = sqlite3ExprAlloc(db, TK_NULL, 0, 0);
        }
      }else{
        nNG++;
      }
    }
    if( nNG==0 ){
      sqlite3ErrorMsg(pParse, "must have at least one non-generated column");
      return;
    }
  }
#endif

  /* Estimate the average row size for the table and for all implied indices */
  estimateTableWidth(p);
  for(pIdx=p->pIndex; pIdx; pIdx=pIdx->pNext){
    estimateIndexWidth(pIdx);
  }

  /* If not initializing, then create a record for the new table
  ** in the schema table of the database.
  **
  ** If this is a TEMPORARY table, write the entry into the auxiliary
  ** file instead of into the main database file.
  */
  if( !db->init.busy ){
    int n;
    Vdbe *v;
    char *zType;    /* "view" or "table" */
    char *zType2;   /* "VIEW" or "TABLE" */
    char *zStmt;    /* Text of the CREATE TABLE or CREATE VIEW statement */

    v = sqlite3GetVdbe(pParse);
    if( NEVER(v==0) ) return;

    sqlite3VdbeAddOp1(v, OP_Close, 0);

    /*
    ** Initialize zType for the new view or table.
    */
    if( p->pSelect==0 ){
      /* A regular table */
      zType = "table";
      zType2 = "TABLE";
#ifndef SQLITE_OMIT_VIEW
    }else{
      /* A view */
      zType = "view";
      zType2 = "VIEW";
#endif
    }

    /* If this is a CREATE TABLE xx AS SELECT ..., execute the SELECT
    ** statement to populate the new table. The root-page number for the
    ** new table is in register pParse->regRoot.
    **
    ** Once the SELECT has been coded by sqlite3Select(), it is in a
    ** suitable state to query for the column names and types to be used
    ** by the new table.
    **
    ** A shared-cache write-lock is not required to write to the new table,
    ** as a schema-lock must have already been obtained to create it. Since
    ** a schema-lock excludes all other database users, the write-lock would
    ** be redundant.
    */
    if( pSelect ){
      SelectDest dest;    /* Where the SELECT should store results */
      int regYield;       /* Register holding co-routine entry-point */
      int addrTop;        /* Top of the co-routine */
      int regRec;         /* A record to be insert into the new table */
      int regRowid;       /* Rowid of the next row to insert */
      int addrInsLoop;    /* Top of the loop for inserting rows */
      Table *pSelTab;     /* A table that describes the SELECT results */

      regYield = ++pParse->nMem;
      regRec = ++pParse->nMem;
      regRowid = ++pParse->nMem;
      assert(pParse->nTab==1);
      sqlite3MayAbort(pParse);
      sqlite3VdbeAddOp3(v, OP_OpenWrite, 1, pParse->regRoot, iDb);
      sqlite3VdbeChangeP5(v, OPFLAG_P2ISREG);
      pParse->nTab = 2;
      addrTop = sqlite3VdbeCurrentAddr(v) + 1;
      sqlite3VdbeAddOp3(v, OP_InitCoroutine, regYield, 0, addrTop);
      if( pParse->nErr ) return;
      pSelTab = sqlite3ResultSetOfSelect(pParse, pSelect, SQLITE_AFF_BLOB);
      if( pSelTab==0 ) return;
      assert( p->aCol==0 );
      p->nCol = p->nNVCol = pSelTab->nCol;
      p->aCol = pSelTab->aCol;
      pSelTab->nCol = 0;
      pSelTab->aCol = 0;
      sqlite3DeleteTable(db, pSelTab);
      sqlite3SelectDestInit(&dest, SRT_Coroutine, regYield);
      sqlite3Select(pParse, pSelect, &dest);
      if( pParse->nErr ) return;
      sqlite3VdbeEndCoroutine(v, regYield);
      sqlite3VdbeJumpHere(v, addrTop - 1);
      addrInsLoop = sqlite3VdbeAddOp1(v, OP_Yield, dest.iSDParm);
      VdbeCoverage(v);
      sqlite3VdbeAddOp3(v, OP_MakeRecord, dest.iSdst, dest.nSdst, regRec);
      sqlite3TableAffinity(v, p, 0);
      sqlite3VdbeAddOp2(v, OP_NewRowid, 1, regRowid);
      sqlite3VdbeAddOp3(v, OP_Insert, 1, regRec, regRowid);
      sqlite3VdbeGoto(v, addrInsLoop);
      sqlite3VdbeJumpHere(v, addrInsLoop);
      sqlite3VdbeAddOp1(v, OP_Close, 1);
    }

    /* Compute the complete text of the CREATE statement */
    if( pSelect ){
      zStmt = createTableStmt(db, p);
    }else{
      Token *pEnd2 = tabOpts ? &pParse->sLastToken : pEnd;
      n = (int)(pEnd2->z - pParse->sNameToken.z);
      if( pEnd2->z[0]!=';' ) n += pEnd2->n;
      zStmt = sqlite3MPrintf(db,
          "CREATE %s %.*s", zType2, n, pParse->sNameToken.z
      );
    }

    /* A slot for the record has already been allocated in the
    ** schema table.  We just need to update that slot with all
    ** the information we've collected.
    */
    sqlite3NestedParse(pParse,
      "UPDATE %Q." DFLT_SCHEMA_TABLE
      " SET type='%s', name=%Q, tbl_name=%Q, rootpage=#%d, sql=%Q"
      " WHERE rowid=#%d",
      db->aDb[iDb].zDbSName,
      zType,
      p->zName,
      p->zName,
      pParse->regRoot,
      zStmt,
      pParse->regRowid
    );
    sqlite3DbFree(db, zStmt);
    sqlite3ChangeCookie(pParse, iDb);

#ifndef SQLITE_OMIT_AUTOINCREMENT
    /* Check to see if we need to create an sqlite_sequence table for
    ** keeping track of autoincrement keys.
    */
    if( (p->tabFlags & TF_Autoincrement)!=0 ){
      Db *pDb = &db->aDb[iDb];
      assert( sqlite3SchemaMutexHeld(db, iDb, 0) );
      if( pDb->pSchema->pSeqTab==0 ){
        sqlite3NestedParse(pParse,
          "CREATE TABLE %Q.sqlite_sequence(name,seq)",
          pDb->zDbSName
        );
      }
    }
#endif

    /* Reparse everything to update our internal data structures */
    sqlite3VdbeAddParseSchemaOp(v, iDb,
           sqlite3MPrintf(db, "tbl_name='%q' AND type!='trigger'", p->zName));
  }

  /* Add the table to the in-memory representation of the database.
  */
  if( db->init.busy ){
    Table *pOld;
    Schema *pSchema = p->pSchema;
    assert( sqlite3SchemaMutexHeld(db, iDb, 0) );
    pOld = sqlite3HashInsert(&pSchema->tblHash, p->zName, p);
    if( pOld ){
      assert( p==pOld );  /* Malloc must have failed inside HashInsert() */
      sqlite3OomFault(db);
      return;
    }
    pParse->pNewTable = 0;
    db->mDbFlags |= DBFLAG_SchemaChange;

#ifndef SQLITE_OMIT_ALTERTABLE
    if( !p->pSelect ){
      const char *zName = (const char *)pParse->sNameToken.z;
      int nName;
      assert( !pSelect && pCons && pEnd );
      if( pCons->z==0 ){
        pCons = pEnd;
      }
      nName = (int)((const char *)pCons->z - zName);
      p->addColOffset = 13 + sqlite3Utf8CharLen(zName, nName);
    }
#endif
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %ecx, 0x68(%rsp)
movq %rdx, %rax
movq %r8, 0x40(%rsp)
orq %r8, %rax
je 0x254281
movq %rdi, %r13
movq 0x148(%rdi), %rbx
testq %rbx, %rbx
je 0x254281
movq %rdx, %r14
movq %rsi, %r15
movq (%r13), %r12
cmpq $0x0, 0x40(%rsp)
movq %r12, 0x48(%rsp)
je 0x253c41
cmpb $0x0, 0xb5(%r12)
je 0x253c8c
leaq 0x116934(%rip), %rsi    # 0x36a570
jmp 0x2540c8
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x26a8b4
testl %eax, %eax
je 0x253c54
orb $0x10, 0x41(%rbx)
leaq 0xb5(%r12), %rax
movq %rax, 0x50(%rsp)
cmpb $0x0, 0xb5(%r12)
movq %r14, 0x58(%rsp)
movq %r15, 0x60(%rsp)
je 0x253ca3
movl 0xb0(%r12), %eax
movl %eax, 0x38(%rbx)
cmpl $0x1, %eax
jne 0x253ca3
orb $0x1, 0x40(%rbx)
jmp 0x253ca3
movq %r15, 0x60(%rsp)
movq %r14, 0x58(%rsp)
leaq 0xb5(%r12), %rax
movq %rax, 0x50(%rsp)
cmpb $0x0, 0x68(%rsp)
movq %rbx, 0x28(%rsp)
js 0x253da1
movq 0x70(%rbx), %rsi
movq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x226e9e
movl %eax, 0x30(%rsp)
movq 0x30(%rbx), %r8
testq %r8, %r8
je 0x253cf9
pushq $0x4
popq %rdx
movq %r13, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x26a995
cmpl $0x0, 0x30(%r13)
je 0x253cf9
movq 0x30(%rbx), %rsi
movq %r14, %rdi
callq 0x24b63f
andq $0x0, 0x30(%rbx)
testb $0x60, 0x40(%rbx)
je 0x253dd9
movq %r13, 0x38(%rsp)
xorl %r14d, %r14d
pushq $0x8
popq %r12
xorl %r13d, %r13d
movq 0x48(%rsp), %r15
movswq 0x46(%rbx), %rax
cmpq %rax, %r14
jge 0x253d81
movq 0x8(%rbx), %rax
testb $0x60, 0x14(%rax,%r12)
je 0x253d75
movq %rbx, %rbp
movq (%rax,%r12), %rbx
movq 0x38(%rsp), %rdi
movq %rbp, %rsi
pushq $0x8
popq %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x26a995
testl %eax, %eax
je 0x253d70
movq %r15, %rdi
movq %rbx, %rsi
callq 0x24b639
movq %r15, %rdi
pushq $0x77
popq %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x25bdcc
movq 0x8(%rbp), %rcx
movq %rax, (%rcx,%r12)
movq %rbp, %rbx
jmp 0x253d78
incl %r13d
incq %r14
addq $0x20, %r12
jmp 0x253d17
testl %r13d, %r13d
movq 0x38(%rsp), %r13
jne 0x253ddd
leaq 0x123ee5(%rip), %rsi    # 0x377c77
movq %r13, %rdi
xorl %eax, %eax
callq 0x226dce
jmp 0x254281
movl 0x40(%rbx), %eax
testb $0x8, %al
jne 0x2540c1
testb $0x4, %al
jne 0x254124
movq (%rbx), %rdx
leaq 0x123e99(%rip), %rsi    # 0x377c57
movq %r13, %rdi
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x226dce
movzwl 0x46(%rbx), %eax
cwtl
movq 0x8(%rbx), %rcx
addq $0x1a, %rcx
xorl %edi, %edi
movq 0x58(%rsp), %r12
movq 0x60(%rsp), %r14
testl %eax, %eax
jle 0x253e03
movzbl (%rcx), %edx
addl %edx, %edi
decl %eax
addq $0x20, %rcx
jmp 0x253df2
movzwl 0x44(%rbx), %eax
shrl $0xf, %eax
addl %eax, %edi
shll $0x2, %edi
callq 0x243f7b
movw %ax, 0x4c(%rbx)
addq $0x10, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x253e32
movq %rbx, %rdi
callq 0x26aa6a
addq $0x28, %rbx
jmp 0x253e1c
movq 0x50(%rsp), %rax
cmpb $0x0, (%rax)
movq 0x28(%rsp), %rbx
je 0x253e6c
movq (%rbx), %rsi
movq 0x70(%rbx), %rdi
addq $0x8, %rdi
movq %rbx, %rdx
callq 0x24a8f4
testq %rax, %rax
je 0x2540e3
movq 0x48(%rsp), %rdi
callq 0x224bb1
jmp 0x254281
movq %r13, %rdi
callq 0x2645be
testq %rax, %rax
je 0x254281
pushq $0x74
popq %rsi
movq %rax, %rdi
movq %rax, %rbp
xorl %edx, %edx
callq 0x265d5c
cmpq $0x0, 0x18(%rbx)
leaq 0x114090(%rip), %rax    # 0x367f29
leaq 0x123e03(%rip), %rdx    # 0x377ca3
cmoveq %rax, %rdx
leaq 0x114f7f(%rip), %rax    # 0x368e2a
leaq 0x1253fc(%rip), %rcx    # 0x3792ae
cmoveq %rax, %rcx
movq %rcx, 0x78(%rsp)
cmpq $0x0, 0x40(%rsp)
movq %r14, 0x60(%rsp)
movq %rbp, 0x50(%rsp)
je 0x25417a
movq %r12, 0x58(%rsp)
movl 0x38(%r13), %r15d
leal 0x1(%r15), %r14d
leal 0x3(%r15), %eax
movl %eax, 0x38(%rsp)
movl %eax, 0x38(%r13)
movq 0xa0(%r13), %rax
testq %rax, %rax
cmoveq %r13, %rax
movb $0x1, 0x21(%rax)
movl 0x7c(%r13), %ecx
pushq $0x61
popq %rsi
pushq $0x1
popq %rdx
movq %rbp, %rdi
movl 0x30(%rsp), %r8d
callq 0x24d51f
movslq 0x90(%rbp), %r12
testq %r12, %r12
jle 0x253f31
movq 0x88(%rbp), %rax
imulq $0x18, %r12, %rcx
movw $0x10, -0x16(%rax,%rcx)
movl $0x2, 0x34(%r13)
leal 0x1(%r12), %r8d
pushq $0xd
popq %rsi
movq %rbp, %rdi
movl %r14d, %edx
xorl %ecx, %ecx
callq 0x24d51f
cmpl $0x0, 0x30(%r13)
jne 0x254281
pushq $0x41
popq %rdx
movq %r13, %rdi
movq 0x40(%rsp), %rsi
callq 0x26aab7
testq %rax, %rax
je 0x254281
movzwl 0x46(%rax), %ecx
movw %cx, 0x48(%rbx)
movw %cx, 0x46(%rbx)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
andw $0x0, 0x46(%rax)
andq $0x0, 0x8(%rax)
movq 0x48(%rsp), %rdi
movq %rax, %rsi
callq 0x21f182
leaq 0x80(%rsp), %rdx
movb $0xd, (%rdx)
movl %r14d, 0x4(%rdx)
andl $0x0, 0x8(%rdx)
andq $0x0, 0x18(%rdx)
andq $0x0, 0xc(%rdx)
movq %r13, %rdi
movq 0x40(%rsp), %rsi
callq 0x2565ce
cmpl $0x0, 0x30(%r13)
jne 0x254281
addl $0x2, %r15d
movq 0x50(%rsp), %rbp
movq %rbp, %rdi
movl %r14d, %esi
callq 0x26ab7d
movq %rbp, %rdi
movl %r12d, %esi
callq 0x2645f8
movl 0x84(%rsp), %edx
pushq $0xe
popq %rsi
movq %rbp, %rdi
callq 0x265d5c
movl %eax, 0x40(%rsp)
movl 0x8c(%rsp), %edx
movl 0x90(%rsp), %ecx
pushq $0x5b
popq %rsi
movq %rbp, %rdi
movl %r15d, %r8d
callq 0x24d51f
xorl %r14d, %r14d
movq %rbp, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x26ab99
pushq $0x78
popq %rsi
movq %rbx, %r12
pushq $0x1
popq %rdx
movq %rbp, %rdi
movl 0x38(%rsp), %ebx
movl %ebx, %ecx
callq 0x24d51a
pushq $0x79
popq %rsi
movq %rbp, %rdi
pushq $0x1
popq %rdx
movl %r15d, %ecx
movl %ebx, %r8d
callq 0x24d51f
movq %rbp, %rdi
movl 0x40(%rsp), %ebx
movl %ebx, %esi
callq 0x264680
movq %rbp, %rdi
movl %ebx, %esi
callq 0x2645f8
pushq $0x74
popq %rsi
movq %rbp, %rdi
pushq $0x1
popq %rdx
callq 0x265d5c
movq 0x8(%r12), %rbx
movswl 0x46(%r12), %ebp
testl %ebp, %ebp
movl $0x0, %r12d
cmovgl %ebp, %r12d
shlq $0x5, %r12
xorl %r15d, %r15d
cmpl %r14d, %r12d
je 0x25462d
movq (%rbx,%r14), %rdi
callq 0x26f479
addl %eax, %r15d
addl $0x5, %r15d
addq $0x20, %r14
jmp 0x2540a2
leaq 0x123b5d(%rip), %rsi    # 0x377c25
movq %r13, %rdi
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x226dce
andq $0x0, 0x148(%r13)
movq 0x48(%rsp), %rax
orb $0x1, 0x2c(%rax)
cmpq $0x0, 0x18(%rbx)
jne 0x254281
movq 0xf8(%r13), %rdi
cmpq $0x0, (%r14)
cmovneq %r14, %r12
movl (%r12), %esi
subl %edi, %esi
callq 0x24e3fa
addl $0xd, %eax
movl %eax, 0x50(%rbx)
jmp 0x254281
movl %eax, %ecx
orl $0x280, %ecx            # imm = 0x280
movl %ecx, 0x40(%rbx)
movq (%r13), %rcx
movq 0x10(%r13), %r14
movq %rcx, 0x30(%rsp)
testb $0x2, 0xb6(%rcx)
jne 0x25429b
movzwl 0x46(%rbx), %edx
xorl %ecx, %ecx
testw %dx, %dx
cmovlel %ecx, %edx
movzwl %dx, %edx
shll $0x5, %edx
cmpq %rcx, %rdx
je 0x254293
movq 0x8(%rbx), %rsi
testb $0x1, 0x1c(%rsi,%rcx)
je 0x254174
movb $0x2, 0x18(%rsi,%rcx)
addq $0x20, %rcx
jmp 0x25415b
leaq 0x108(%r13), %rax
cmpb $0x0, 0x68(%rsp)
cmoveq %r12, %rax
movq (%rax), %rsi
movq 0xf8(%r13), %r8
movl %esi, %ecx
subl %r8d, %ecx
cmpb $0x3b, (%rsi)
je 0x2541a1
addl 0x8(%rax), %ecx
leaq 0x123b00(%rip), %rsi    # 0x377ca8
movq 0x48(%rsp), %rbp
movq %rbp, %rdi
xorl %eax, %eax
callq 0x226ec3
movq %rax, %r15
movq 0x20(%rbp), %rax
movslq 0x30(%rsp), %rbx
shlq $0x5, %rbx
movq (%rax,%rbx), %rdx
movq 0x28(%rsp), %r14
movq (%r14), %r8
movl 0x78(%r13), %eax
movl 0x7c(%r13), %ecx
movl %eax, 0x10(%rsp)
movq %r15, 0x8(%rsp)
movl %ecx, (%rsp)
leaq 0x123ac9(%rip), %rsi    # 0x377cb7
movq %r13, %rdi
movq 0x78(%rsp), %rcx
movq %r8, %r9
xorl %eax, %eax
callq 0x26ac90
movq %rbp, %rdi
movq %r15, %rsi
callq 0x21f26b
movq %r13, %rdi
movl 0x30(%rsp), %esi
callq 0x26add3
testb $0x8, 0x40(%r14)
je 0x254245
movq 0x20(%rbp), %rax
movq 0x18(%rax,%rbx), %rcx
cmpq $0x0, 0x68(%rcx)
jne 0x254245
addq %rbx, %rax
movq (%rax), %rdx
leaq 0x123ade(%rip), %rsi    # 0x377d19
movq %r13, %rdi
xorl %eax, %eax
callq 0x26ac90
movq 0x28(%rsp), %rbx
movq (%rbx), %rdx
leaq 0x123aef(%rip), %rsi    # 0x377d43
movq %rbp, %rdi
xorl %eax, %eax
callq 0x226ec3
movq 0x50(%rsp), %rdi
movl 0x30(%rsp), %esi
movq %rax, %rdx
callq 0x26adfe
cmpb $0x0, 0xb5(%rbp)
movq 0x60(%rsp), %r14
jne 0x253e41
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
orl $0xa80, %eax            # imm = 0xA80
movl %eax, 0x40(%rbx)
movl 0xc0(%r13), %esi
testl %esi, %esi
je 0x2542b5
movq %r14, %rdi
callq 0x26468f
movl $0x2, 0xc(%rax)
movswq 0x44(%rbx), %rax
testq %rax, %rax
js 0x254392
movq 0x8(%rbx), %rcx
shlq $0x5, %rax
movq (%rcx,%rax), %rdi
leaq 0x80(%rsp), %rbx
movq %rdi, (%rbx)
callq 0x2211ac
movl %eax, 0x8(%rbx)
pushq $0x3b
popq %rsi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
movq 0x28(%rsp), %rbx
xorl %ecx, %ecx
callq 0x25bdcc
movq %r13, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x25bc95
testq %rax, %rax
je 0x253cb3
movq %rax, %r15
cmpb $0x2, 0x11c(%r13)
jb 0x25432c
leaq 0x44(%rbx), %rdx
movq 0x8(%r15), %rsi
movq %r13, %rdi
callq 0x26ae3e
movb 0x11a(%r13), %al
movb %al, 0x18(%r15)
orw $-0x1, 0x44(%rbx)
movzbl 0x4e(%rbx), %r9d
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
andl $0x0, 0x18(%rsp)
andl $0x0, 0x10(%rsp)
movl $0x2, 0x20(%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r15, %r8
callq 0x254d30
movq 0x30(%rsp), %rax
cmpb $0x0, 0x61(%rax)
jne 0x253cb3
cmpl $0x0, 0x30(%r13)
jne 0x253cb3
movq %rbx, %rdi
callq 0x2293af
movq %rax, %r12
jmp 0x254402
movq %rbx, %rdi
callq 0x2293af
movq %rax, %r12
pushq $0x1
popq %rbp
pushq $0x1
popq %r15
movzwl 0x5e(%r12), %eax
cmpq %rax, %r15
jae 0x2543fc
movq %r12, %rdi
movl %ebp, %esi
movq %r12, %rdx
movl %r15d, %ecx
callq 0x26ae5c
testl %eax, %eax
je 0x2543cb
decw 0x60(%r12)
jmp 0x2543f7
movq 0x40(%r12), %rax
movq (%rax,%r15,8), %rcx
movslq %ebp, %rdx
movq %rcx, (%rax,%rdx,8)
movq 0x38(%r12), %rax
movb (%rax,%r15), %cl
movb %cl, (%rax,%rdx)
movq 0x8(%r12), %rax
movzwl (%rax,%r15,2), %ecx
incl %ebp
movw %cx, (%rax,%rdx,2)
incq %r15
jmp 0x2543a4
movw %bp, 0x5e(%r12)
movzwl 0x63(%r12), %eax
movl %eax, %ecx
orl $0x20, %ecx
movw %cx, 0x63(%r12)
movq 0x30(%rsp), %rcx
testb $0x2, 0xb6(%rcx)
jne 0x25442a
orl $0x28, %eax
movw %ax, 0x63(%r12)
movq %r13, 0x38(%rsp)
movzwl 0x5e(%r12), %r15d
movw %r15w, 0x60(%r12)
testq %r14, %r14
je 0x254454
movl 0x58(%r12), %esi
testl %esi, %esi
je 0x254454
movq %r14, %rdi
callq 0x26468f
movb $0xb, (%rax)
movl 0x38(%rbx), %eax
movl %eax, 0x58(%r12)
leaq 0x10(%rbx), %rbp
movl %r15d, %r14d
movq (%rbp), %rbp
testq %rbp, %rbp
je 0x25454c
movzwl 0x63(%rbp), %eax
andl $0x3, %eax
cmpw $0x2, %ax
je 0x25453e
xorl %ebx, %ebx
xorl %r13d, %r13d
cmpl %ebx, %r15d
je 0x2544a6
movzwl 0x5e(%rbp), %esi
movq %rbp, %rdi
movq %r12, %rdx
movl %ebx, %ecx
callq 0x26ae5c
xorl $0x1, %eax
addl %eax, %r13d
incl %ebx
jmp 0x254486
movzwl 0x5e(%rbp), %eax
testl %r13d, %r13d
je 0x25453a
movzwl %ax, %eax
addl %eax, %r13d
movq 0x30(%rsp), %rdi
movq %rbp, %rsi
movl %r13d, %edx
callq 0x26aecb
testl %eax, %eax
movq 0x38(%rsp), %r13
movq 0x28(%rsp), %rbx
jne 0x253cb3
movzwl 0x5e(%rbp), %ebx
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x25453e
movzwl 0x5e(%rbp), %esi
movq %rbp, %rdi
movq %r12, %rdx
movl %r13d, %ecx
callq 0x26ae5c
testl %eax, %eax
jne 0x254535
movq 0x8(%r12), %rax
movzwl (%rax,%r13,2), %eax
movq 0x8(%rbp), %rcx
movslq %ebx, %rdx
movw %ax, (%rcx,%rdx,2)
movq 0x40(%r12), %rax
movq (%rax,%r13,8), %rax
movq 0x40(%rbp), %rcx
movq %rax, (%rcx,%rdx,8)
movq 0x38(%r12), %rax
cmpb $0x0, (%rax,%r13)
je 0x254533
orb $0x2, 0x64(%rbp)
incl %ebx
incq %r13
jmp 0x2544e2
movw %ax, 0x60(%rbp)
addq $0x28, %rbp
movq 0x28(%rsp), %rbx
jmp 0x254463
movzwl 0x46(%rbx), %eax
xorl %ebp, %ebp
testw %ax, %ax
cmovlel %ebp, %eax
movzwl %ax, %ebx
pushq $0x1c
popq %r14
xorl %r13d, %r13d
cmpq %rbp, %rbx
je 0x254598
movq 0x8(%r12), %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x26af5e
testl %eax, %eax
jne 0x25458f
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
movb (%rax,%r14), %al
andb $0x20, %al
cmpb $0x1, %al
adcl $0x0, %r13d
incq %rbp
addq $0x20, %r14
jmp 0x254562
addl %r15d, %r13d
movq 0x30(%rsp), %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x26aecb
testl %eax, %eax
movq 0x38(%rsp), %r13
movq 0x28(%rsp), %rbx
jne 0x253cb3
pushq $0x1c
popq %r14
xorl %ebp, %ebp
leaq 0x11d9a6(%rip), %r13    # 0x371f70
movswq 0x46(%rbx), %rax
cmpq %rax, %rbp
jge 0x25461b
movq 0x8(%r12), %rbx
movq %rbx, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x26af5e
testl %eax, %eax
jne 0x25460d
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
testb $0x20, (%rax,%r14)
jne 0x25460d
movslq %r15d, %rax
movw %bp, (%rbx,%rax,2)
movq 0x40(%r12), %rcx
movq %r13, (%rcx,%rax,8)
incl %r15d
incq %rbp
addq $0x20, %r14
movq 0x28(%rsp), %rbx
jmp 0x2545ca
movq %r12, %rdi
callq 0x26af76
movq 0x38(%rsp), %r13
jmp 0x253cb3
movq 0x28(%rsp), %rax
movq (%rax), %rdi
callq 0x26f479
movl %eax, %ebx
addl %r15d, %ebx
cmpl $0x32, %ebx
leaq 0xecde2(%rip), %rax     # 0x34142b
leaq 0x123eaa(%rip), %rcx    # 0x3784fa
cmovlq %rax, %rcx
movq %rcx, 0x68(%rsp)
leaq 0x123ea0(%rip), %rax    # 0x378500
leaq 0x123e98(%rip), %r14    # 0x3784ff
cmovlq %rax, %r14
imull $0x6, %ebp, %eax
leal (%rax,%rbx), %r12d
addl $0x23, %r12d
movslq %r12d, %rdi
callq 0x21f6df
movq %rax, %r15
testq %rax, %rax
je 0x2547c9
movq %r14, 0x70(%rsp)
movq %r13, 0x38(%rsp)
cmpl $0x32, %ebx
leaq 0x115ed2(%rip), %rax    # 0x36a570
leaq 0x123e56(%rip), %rbp    # 0x3784fb
cmovlq %rax, %rbp
leaq 0x123e52(%rip), %rdx    # 0x378502
movl %r12d, 0x40(%rsp)
movl %r12d, %edi
movq %r15, %rsi
xorl %eax, %eax
callq 0x221418
movq %r15, %rdi
callq 0x2211ac
leaq 0x80(%rsp), %r14
movl %eax, (%r14)
movq 0x28(%rsp), %rbx
movq (%rbx), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x26f496
movslq (%r14), %rax
leal 0x1(%rax), %r12d
movb $0x28, (%r15,%rax)
movq 0x8(%rbx), %r14
xorl %r13d, %r13d
movswl 0x46(%rbx), %eax
movl 0x40(%rsp), %edi
subl %r12d, %edi
movslq %r12d, %rbx
addq %r15, %rbx
cmpl %eax, %r13d
jge 0x25479f
movq %rbx, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x221418
movq %rbx, %rdi
callq 0x2211ac
addl %r12d, %eax
movl %eax, 0x80(%rsp)
movq (%r14), %rdx
movq %r15, %rdi
leaq 0x80(%rsp), %rsi
callq 0x26f496
movsbq 0x19(%r14), %rax
leaq 0x1e259d(%rip), %rcx    # 0x436cf0
movq -0x208(%rcx,%rax,8), %rbx
movq %rbx, %rdi
callq 0x2211ac
movl %eax, %r12d
movslq 0x80(%rsp), %rbp
movq %rbp, %rdi
addq %r15, %rdi
movl %eax, %edx
movq %rbx, %rsi
callq 0x17630
addl %ebp, %r12d
movl %r12d, 0x80(%rsp)
incl %r13d
addq $0x20, %r14
movq 0x68(%rsp), %rbp
movq 0x28(%rsp), %rbx
jmp 0x2546fb
leaq 0x114703(%rip), %rdx    # 0x368ea9
movq %rbx, %rsi
movq 0x70(%rsp), %rcx
xorl %eax, %eax
callq 0x221418
movq 0x38(%rsp), %r13
movq 0x58(%rsp), %r12
movq 0x48(%rsp), %rbp
jmp 0x2541ba
movq 0x48(%rsp), %rbp
movq %rbp, %rdi
callq 0x224bb1
movq 0x58(%rsp), %r12
jmp 0x2541ba