// File: /workspace/github_c_makefile_star2_O1/shifengbin[P]bishe/Output/../Persistence/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;

  assert( !db->init.busy || !pSelect );

  /* If the db->init.busy is 1 it means we are reading the SQL off the
  ** "sqlite_master" or "sqlite_temp_master" 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( db->init.busy ){
    p->tnum = db->init.newTnum;
  }

  /* 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);
    }else{
      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);
  }
#endif /* !defined(SQLITE_OMIT_CHECK) */

  /* 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 SQLITE_MASTER 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);
      sqlite3SelectDestInit(&dest, SRT_Coroutine, regYield);
      sqlite3Select(pParse, pSelect, &dest);
      sqlite3VdbeAddOp1(v, OP_EndCoroutine, regYield);
      sqlite3VdbeJumpHere(v, addrTop - 1);
      if( pParse->nErr ) return;
      pSelTab = sqlite3ResultSetOfSelect(pParse, pSelect);
      if( pSelTab==0 ) return;
      assert( p->aCol==0 );
      p->nCol = pSelTab->nCol;
      p->aCol = pSelTab->aCol;
      pSelTab->nCol = 0;
      pSelTab->aCol = 0;
      sqlite3DeleteTable(db, pSelTab);
      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 
    ** SQLITE_MASTER table.  We just need to update that slot with all
    ** the information we've collected.
    */
    sqlite3NestedParse(pParse,
      "UPDATE %Q.%s "
         "SET type='%s', name=%Q, tbl_name=%Q, rootpage=#%d, sql=%Q "
       "WHERE rowid=#%d",
      db->aDb[iDb].zName, SCHEMA_TABLE(iDb),
      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 ){
      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->zName
        );
      }
    }
#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() */
      db->mallocFailed = 1;
      return;
    }
    pParse->pNewTable = 0;
    db->flags |= SQLITE_InternChanges;

#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
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %rax
orq %r8, %rax
je 0x436c5
movq 0x220(%rdi), %rbx
testq %rbx, %rbx
je 0x436c5
movq %rdx, %r15
movl %ecx, -0x38(%rbp)
movq %r8, -0x68(%rbp)
movq %rsi, -0x78(%rbp)
movq %rdi, -0x48(%rbp)
movq (%rdi), %rcx
cmpb $0x0, 0xa1(%rcx)
je 0x43296
movl 0x9c(%rcx), %eax
movl %eax, 0x38(%rbx)
movq %rcx, -0x30(%rbp)
testb $0x20, -0x38(%rbp)
jne 0x432d9
movq 0x68(%rbx), %rax
testq %rax, %rax
je 0x43303
movq -0x30(%rbp), %rdx
movl 0x28(%rdx), %ecx
testl %ecx, %ecx
jle 0x4332b
movq 0x20(%rdx), %rdx
addq $0x18, %rdx
xorl %r13d, %r13d
movq -0x48(%rbp), %r12
cmpq %rax, (%rdx)
je 0x43332
incq %r13
addq $0x20, %rdx
cmpq %r13, %rcx
jne 0x432c3
movl %ecx, %r13d
jmp 0x43332
movzbl 0x46(%rbx), %eax
testb $0x8, %al
jne 0x4330b
testb $0x4, %al
movq -0x48(%rbp), %r14
jne 0x436d4
movq (%rbx), %rdx
leaq 0x3b931(%rip), %rsi     # 0x7ec28
movq %r14, %rdi
xorl %eax, %eax
callq 0x14804
jmp 0x432a0
movl $0xfff0bdc0, %r13d      # imm = 0xFFF0BDC0
jmp 0x4332e
leaq 0x3b8e4(%rip), %rsi     # 0x7ebf6
movq -0x48(%rbp), %rdi
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x14804
xorl %r13d, %r13d
movq -0x48(%rbp), %r12
movq 0x30(%rbx), %r8
testq %r8, %r8
je 0x4334d
movq %r12, %rdi
movq %rbx, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
callq 0x56372
movswl 0x3e(%rbx), %eax
testl %eax, %eax
jle 0x43373
movq 0x8(%rbx), %rdx
incl %eax
addq $0x2a, %rdx
xorl %ecx, %ecx
movzbl (%rdx), %esi
addl %esi, %ecx
decl %eax
addq $0x30, %rdx
cmpl $0x1, %eax
jg 0x43361
jmp 0x43375
xorl %ecx, %ecx
movzwl 0x3c(%rbx), %edi
shrl $0xf, %edi
addl %ecx, %edi
shll $0x2, %edi
callq 0x3d559
movw %ax, 0x44(%rbx)
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0x433a1
movq %r14, %rdi
callq 0x56416
movq 0x28(%r14), %r14
jmp 0x4338e
movq -0x30(%rbp), %rax
cmpb $0x0, 0xa1(%rax)
movq -0x78(%rbp), %r14
je 0x433e8
cmpb $0x0, 0xa1(%rax)
je 0x436c5
movq (%rbx), %rsi
movq 0x68(%rbx), %rdi
addq $0x8, %rdi
movq %rbx, %rdx
callq 0x3d5df
testq %rax, %rax
je 0x4368a
movq -0x30(%rbp), %rax
movb $0x1, 0x51(%rax)
jmp 0x436c5
movq %r12, %rdi
callq 0x507bf
testq %rax, %rax
movq -0x68(%rbp), %r14
je 0x436c5
movq %rax, %rdi
movl $0x3e, %esi
xorl %edx, %edx
movq %rax, %r12
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
cmpq $0x0, 0x18(%rbx)
leaq 0x3b828(%rip), %rax     # 0x7ec48
leaq 0x3b827(%rip), %rdx     # 0x7ec4e
cmoveq %rax, %rdx
leaq 0x3c27f(%rip), %rax     # 0x7f6b1
leaq 0x3d91b(%rip), %rdi     # 0x80d54
cmoveq %rax, %rdi
testq %r14, %r14
movq %r12, -0x40(%rbp)
movq %r15, -0x50(%rbp)
movq %rdi, -0x60(%rbp)
je 0x43701
movq -0x48(%rbp), %r15
movl 0x54(%r15), %eax
leal 0x1(%rax), %ecx
movl %ecx, -0x38(%rbp)
movq %rax, -0x58(%rbp)
addl $0x3, %eax
movl %eax, -0x6c(%rbp)
movl %eax, 0x54(%r15)
movq 0x1c0(%r15), %rax
testq %rax, %rax
cmoveq %r15, %rax
movb $0x1, 0x21(%rax)
movl 0x1a4(%r15), %ecx
movq %r12, %rdi
movl $0x38, %esi
movl $0x1, %edx
movl %r13d, %r8d
callq 0x3fa9e
movq (%r12), %rax
leaq 0x52041(%rip), %rcx     # 0x954e8
cmpb $0x0, 0x51(%rax)
movq %rcx, %rax
movq %r12, %rdi
jne 0x434cf
movslq 0x3c(%rdi), %rax
movq -0x40(%rbp), %rcx
movq 0x8(%rcx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movq -0x40(%rbp), %rdi
movb $0x10, 0x3(%rax)
movl $0x2, 0x50(%r15)
movl 0x3c(%rdi), %eax
movq %rax, -0x80(%rbp)
leal 0x1(%rax), %r8d
movl $0x11, %esi
movl -0x38(%rbp), %r12d
movl %r12d, %edx
movq %rdi, %r14
xorl %ecx, %ecx
callq 0x3fa9e
leaq -0x98(%rbp), %rdx
movw $0xd, (%rdx)
movl %r12d, 0x4(%rdx)
movq $0x0, 0x8(%rdx)
movq %r15, %rdi
movq -0x68(%rbp), %rsi
callq 0x45a6e
movq %r14, %rdi
movl $0x12, %esi
movl %r12d, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movl 0x3c(%r14), %eax
leal -0x1(%rax), %ecx
movq 0x30(%r14), %rdx
movl %ecx, 0x68(%rdx)
movq (%r14), %rdx
cmpb $0x0, 0x51(%rdx)
leaq 0x51f97(%rip), %rdx     # 0x954e8
jne 0x4356f
movq -0x80(%rbp), %rdx
testl %edx, %edx
cmovnsl %edx, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rdx
shlq $0x3, %rdx
movq -0x40(%rbp), %rcx
addq 0x8(%rcx), %rdx
movl %eax, 0x8(%rdx)
movq -0x48(%rbp), %r12
cmpl $0x0, 0x4c(%r12)
jne 0x436c5
movq %r12, %rdi
movq -0x68(%rbp), %rsi
callq 0x56476
testq %rax, %rax
je 0x436c5
movq -0x58(%rbp), %r14
addl $0x2, %r14d
movq %r14, -0x58(%rbp)
movzwl 0x3e(%rax), %ecx
movw %cx, 0x3e(%rbx)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movw $0x0, 0x3e(%rax)
movq $0x0, 0x8(%rax)
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0xb4be
movl -0x94(%rbp), %edx
movq -0x40(%rbp), %r15
movq %r15, %rdi
movl $0x14, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movl %eax, -0x38(%rbp)
movl -0x90(%rbp), %edx
movl -0x8c(%rbp), %ecx
movq %r15, %rdi
movl $0x32, %esi
movl %r14d, %r8d
callq 0x3fa9e
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x56560
movq %r15, %rdi
movl $0x54, %esi
movl $0x1, %edx
movl -0x6c(%rbp), %r14d
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %r15, %rdi
movl $0x5f, %esi
movl $0x1, %edx
movq -0x58(%rbp), %rcx
movl %r14d, %r8d
movl -0x38(%rbp), %r14d
callq 0x3fa9e
movq %r15, %rdi
movl $0xe, %esi
xorl %edx, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movl 0x3c(%r15), %eax
leal -0x1(%rax), %ecx
movq 0x30(%r15), %rdx
movl %ecx, 0x68(%rdx)
movq (%r15), %rdx
cmpb $0x0, 0x51(%rdx)
je 0x43af0
leaq 0x51e63(%rip), %rcx     # 0x954e8
jmp 0x43b06
movq $0x0, 0x220(%r12)
movq -0x30(%rbp), %rax
orb $0x2, 0x2c(%rax)
cmpq $0x0, 0x18(%rbx)
jne 0x436c5
movq 0x238(%r12), %rdi
cmpq $0x0, (%r14)
cmovneq %r14, %r15
movl (%r15), %esi
subl %edi, %esi
callq 0x40794
addl $0xd, %eax
movl %eax, 0x48(%rbx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
orb $0x60, %al
movb %al, 0x46(%rbx)
movq 0x10(%r14), %rax
movl 0x1d0(%r14), %ecx
testl %ecx, %ecx
je 0x43759
jns 0x436ef
movl 0x3c(%rax), %ecx
decl %ecx
movq (%rax), %rdx
cmpb $0x0, 0x51(%rdx)
je 0x43747
leaq 0x51de9(%rip), %rcx     # 0x954e8
jmp 0x43756
movq -0x48(%rbp), %r12
leaq 0x248(%r12), %rax
cmpb $0x0, -0x38(%rbp)
cmoveq %r15, %rax
movq (%rax), %rsi
movq 0x238(%r12), %r8
movl %esi, %ecx
subl %r8d, %ecx
cmpb $0x3b, (%rsi)
je 0x4372d
addl 0x8(%rax), %ecx
leaq 0x3b51f(%rip), %rsi     # 0x7ec53
movq -0x30(%rbp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x148c2
jmp 0x43b2f
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rcx
addq 0x8(%rax), %rcx
movb $0x7a, (%rcx)
movswq 0x3c(%rbx), %rcx
testq %rcx, %rcx
js 0x4378b
movq 0x8(%rbx), %rax
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rdi
movq %rdi, -0x98(%rbp)
testq %rdi, %rdi
je 0x437d5
callq 0xa190
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
jmp 0x437d7
movq 0x10(%rbx), %r13
testq %r13, %r13
je 0x437a6
movb 0x63(%r13), %cl
andb $0x3, %cl
cmpb $0x2, %cl
je 0x437a6
movq 0x28(%r13), %r13
jmp 0x4378f
testq %rax, %rax
je 0x4387f
movl 0x58(%r13), %ecx
testl %ecx, %ecx
jns 0x437bc
movl 0x3c(%rax), %ecx
decl %ecx
movq (%rax), %rdx
cmpb $0x0, 0x51(%rdx)
je 0x4386d
leaq 0x51d18(%rip), %rcx     # 0x954e8
jmp 0x4387c
xorl %eax, %eax
leaq -0x98(%rbp), %rdx
movl %eax, 0x8(%rdx)
xorl %r13d, %r13d
movq -0x30(%rbp), %rdi
movl $0x1b, %esi
xorl %ecx, %ecx
callq 0x56afe
movq %r14, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x475f8
testq %rax, %rax
je 0x43861
movb 0x1ec(%r14), %cl
movq 0x8(%rax), %rdx
movb %cl, 0x18(%rdx)
movzbl 0x47(%rbx), %r9d
subq $0x20, %rsp
movl %r13d, 0x18(%rsp)
movl %r13d, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rax, %r8
callq 0x44268
addq $0x20, %rsp
testq %rax, %rax
je 0x43861
movb 0x63(%rax), %cl
andb $-0x4, %cl
orb $0x2, %cl
movb %cl, 0x63(%rax)
movw $0xffff, 0x3c(%rbx)     # imm = 0xFFFF
movb $0x1, %cl
movq %rax, %r13
jmp 0x43863
xorl %ecx, %ecx
testb %cl, %cl
je 0x432a0
jmp 0x438e2
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rcx
addq 0x8(%rax), %rcx
movb $0xe, (%rcx)
movw $0x1, %ax
cmpw $0x2, 0x5e(%r13)
jb 0x438dd
movq 0x8(%r13), %rcx
movl $0x1, %eax
movl $0x1, %edx
movzwl (%rcx,%rdx,2), %esi
movq %rcx, %rdi
movl %eax, %r9d
testl %r9d, %r9d
jle 0x438c7
movl %r9d, %r8d
leal -0x1(%r8), %r9d
leaq 0x2(%rdi), %r10
cmpw %si, (%rdi)
movq %r10, %rdi
jne 0x438a3
testl %r8d, %r8d
jle 0x438c7
decw 0x60(%r13)
jmp 0x438d0
movslq %eax, %rdi
incl %eax
movw %si, (%rcx,%rdi,2)
incq %rdx
movzwl 0x5e(%r13), %esi
cmpq %rsi, %rdx
jb 0x43899
movw %ax, 0x5e(%r13)
orb $0x20, 0x63(%r13)
movzwl 0x5e(%r13), %r12d
movq -0x30(%rbp), %rax
cmpb $0x0, 0xa3(%rax)
jne 0x43927
testq %r12, %r12
je 0x43922
movq 0x8(%rbx), %rax
movq 0x8(%r13), %rcx
xorl %edx, %edx
movswq (%rcx,%rdx,2), %rsi
leaq (%rsi,%rsi,2), %rsi
shlq $0x4, %rsi
movb $0x2, 0x28(%rax,%rsi)
incq %rdx
cmpq %rdx, %r12
jne 0x43908
orb $0x8, 0x63(%r13)
movl 0x38(%rbx), %eax
movl %eax, 0x58(%r13)
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0x43a69
movl %r12d, %r11d
movq %rbx, -0x40(%rbp)
movq %r15, -0x50(%rbp)
movq %r11, -0x60(%rbp)
movb 0x63(%r14), %al
andb $0x3, %al
movl $0xa, %ecx
cmpb $0x2, %al
je 0x43a4f
testl %r12d, %r12d
je 0x439ab
movq 0x8(%r14), %rax
movzwl 0x5e(%r14), %ebx
movq 0x8(%r13), %rdi
xorl %r8d, %r8d
xorl %edx, %edx
movzwl (%rdi,%r8,2), %r9d
movq %rax, %r11
movl %ebx, %esi
movl %esi, %r10d
testl %esi, %esi
jle 0x43996
leal -0x1(%r10), %esi
leaq 0x2(%r11), %r15
cmpw %r9w, (%r11)
movq %r15, %r11
jne 0x4397e
xorl %esi, %esi
testl %r10d, %r10d
setle %sil
addl %esi, %edx
incq %r8
cmpq %r12, %r8
jne 0x43974
jmp 0x439ad
xorl %edx, %edx
movzwl 0x5e(%r14), %eax
testl %edx, %edx
je 0x43a42
movzwl %ax, %eax
addl %eax, %edx
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x56c1c
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movq -0x40(%rbp), %rbx
movq -0x50(%rbp), %r15
jne 0x43a4f
testw %r12w, %r12w
movq -0x60(%rbp), %r11
je 0x43a4f
movzwl 0x5e(%r14), %eax
xorl %ecx, %ecx
movq 0x8(%r14), %rdx
movzwl 0x5e(%r14), %r9d
movq 0x8(%r13), %rsi
movzwl (%rsi,%rcx,2), %esi
movq %rdx, %rdi
testl %r9d, %r9d
jle 0x43a1e
movl %r9d, %r8d
leal -0x1(%r8), %r9d
leaq 0x2(%rdi), %r10
cmpw %si, (%rdi)
movq %r10, %rdi
jne 0x43a01
testl %r8d, %r8d
jg 0x43a36
cltq
movw %si, (%rdx,%rax,2)
movq 0x40(%r13), %rdx
movq (%rdx,%rcx,8), %rdx
movq 0x40(%r14), %rsi
movq %rdx, (%rsi,%rax,8)
incl %eax
incq %rcx
cmpq %r11, %rcx
jne 0x439ed
xorl %ecx, %ecx
jmp 0x43a4f
movw %ax, 0x60(%r14)
movq -0x40(%rbp), %rbx
movq -0x50(%rbp), %r15
cmpl $0xa, %ecx
je 0x43a5c
testl %ecx, %ecx
jne 0x432a0
movq 0x28(%r14), %r14
testq %r14, %r14
jne 0x4394a
movzwl 0x3e(%rbx), %eax
movswl %ax, %edx
cmpl %edx, %r12d
jge 0x43ae6
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x56c1c
testl %eax, %eax
jne 0x432a0
cmpw $0x0, 0x3e(%rbx)
jle 0x432a0
xorl %eax, %eax
leaq 0x36cc3(%rip), %rcx     # 0x7a760
movq 0x8(%r13), %rdx
movq %rdx, %rsi
movl %r12d, %r8d
testl %r8d, %r8d
jle 0x43ac4
movl %r8d, %edi
leal -0x1(%rdi), %r8d
movswl (%rsi), %r9d
addq $0x2, %rsi
cmpl %r9d, %eax
jne 0x43aa7
testl %edi, %edi
jg 0x43ad7
movslq %r12d, %r12
movw %ax, (%rdx,%r12,2)
movq 0x40(%r13), %rdx
movq %rcx, (%rdx,%r12,8)
incl %r12d
incl %eax
movswl 0x3e(%rbx), %edx
cmpl %edx, %eax
jl 0x43a9d
jmp 0x432a0
movw %ax, 0x60(%r13)
jmp 0x432a0
testl %r14d, %r14d
cmovnsl %r14d, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rcx
addq 0x8(%r15), %rcx
movl %eax, 0x8(%rcx)
movq %r15, %rdi
movl $0x3e, %esi
movl $0x1, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x56654
movq %rax, -0x38(%rbp)
movq 0x20(%r14), %rax
movslq %r13d, %r15
shlq $0x5, %r15
cmpl $0x1, %r13d
leaq 0x3a18c(%rip), %rdx     # 0x7dcd5
leaq 0x3a198(%rip), %rcx     # 0x7dce8
cmoveq %rdx, %rcx
movq (%rax,%r15), %rdx
movq (%rbx), %r9
movl 0x1a0(%r12), %r10d
movl 0x1a4(%r12), %r11d
leaq 0x3b0f0(%rip), %rsi     # 0x7ec62
movq %r12, %rdi
movq -0x60(%rbp), %r8
xorl %eax, %eax
pushq %r10
movq -0x38(%rbp), %r14
pushq %r14
pushq %r11
pushq %r9
callq 0x5688b
addq $0x20, %rsp
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %rdi, %r14
callq 0xb6df
movq %r12, %rdi
movl %r13d, %esi
callq 0x569b9
testb $0x8, 0x46(%rbx)
je 0x43bd7
movq 0x20(%r14), %rax
movq 0x18(%rax,%r15), %rcx
cmpq $0x0, 0x68(%rcx)
jne 0x43bd7
addq %r15, %rax
movq (%rax), %rdx
leaq 0x3b0ec(%rip), %rsi     # 0x7ecb9
movq %r12, %rdi
xorl %eax, %eax
callq 0x5688b
movq (%rbx), %rdx
leaq 0x3b102(%rip), %rsi     # 0x7ece3
movq %r14, %rdi
xorl %eax, %eax
callq 0x148c2
movq -0x40(%rbp), %rdi
movl %r13d, %esi
movq %rax, %rdx
callq 0x56a76
movq -0x50(%rbp), %r15
movq %r14, %rax
movq -0x78(%rbp), %r14
jmp 0x433b2