// File: /workspace/github_c_makefile_star2_O3/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 $0x68, %rsp
movl %ecx, -0x38(%rbp)
movq %rdx, %rax
movq %r8, -0x40(%rbp)
orq %r8, %rax
je 0x42bbb
movq %rdi, %r15
movq 0x220(%rdi), %rbx
testq %rbx, %rbx
je 0x42bbb
movq %rsi, -0x60(%rbp)
movq %rdx, -0x68(%rbp)
movq (%r15), %rcx
cmpb $0x0, 0xa1(%rcx)
je 0x42292
movl 0x9c(%rcx), %eax
movl %eax, 0x38(%rbx)
movq %rcx, -0x30(%rbp)
testb $0x20, -0x38(%rbp)
jne 0x422d1
movq 0x68(%rbx), %rax
testq %rax, %rax
je 0x422f7
movq -0x30(%rbp), %rdx
movl 0x28(%rdx), %ecx
testl %ecx, %ecx
jle 0x4231e
movq 0x20(%rdx), %rdx
addq $0x18, %rdx
xorl %r13d, %r13d
cmpq %rax, (%rdx)
je 0x42321
incq %r13
addq $0x20, %rdx
cmpq %r13, %rcx
jne 0x422bb
movl %ecx, %r13d
jmp 0x42321
movzbl 0x46(%rbx), %eax
testb $0x8, %al
jne 0x422ff
testb $0x4, %al
jne 0x42695
movq (%rbx), %rdx
leaq 0x3a94d(%rip), %rsi     # 0x7cc38
movq %r15, %rdi
xorl %eax, %eax
callq 0x14890
jmp 0x4229c
movl $0xfff0bdc0, %r13d      # imm = 0xFFF0BDC0
jmp 0x42321
leaq 0x3a900(%rip), %rsi     # 0x7cc06
movq %r15, %rdi
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x14890
xorl %r13d, %r13d
movq 0x30(%rbx), %r8
testq %r8, %r8
je 0x4233c
movq %r15, %rdi
movq %rbx, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
callq 0x55120
movswl 0x3e(%rbx), %eax
testl %eax, %eax
movq -0x60(%rbp), %r12
jle 0x42366
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
ja 0x42354
jmp 0x42368
xorl %ecx, %ecx
movzwl 0x3c(%rbx), %edi
shrl $0xf, %edi
addl %ecx, %edi
shll $0x2, %edi
callq 0x3c565
movw %ax, 0x44(%rbx)
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0x42394
movq %r14, %rdi
callq 0x551c1
movq 0x28(%r14), %r14
jmp 0x42381
movq -0x30(%rbp), %rax
cmpb $0x0, 0xa1(%rax)
movq -0x68(%rbp), %r14
je 0x423ce
movq (%rbx), %rsi
movq 0x68(%rbx), %rdi
addq $0x8, %rdi
movq %rbx, %rdx
callq 0x3c5eb
testq %rax, %rax
je 0x42652
movq -0x30(%rbp), %rax
movb $0x1, 0x51(%rax)
jmp 0x42bbb
movq %r15, %rdi
callq 0x4f63b
testq %rax, %rax
je 0x42bbb
movq %rax, %r12
movq %rax, %rdi
movl $0x3e, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
cmpq $0x0, 0x18(%rbx)
leaq 0x3a856(%rip), %rax     # 0x7cc58
leaq 0x3a855(%rip), %rdx     # 0x7cc5e
cmoveq %rax, %rdx
leaq 0x3b2ad(%rip), %rax     # 0x7d6c1
leaq 0x3c949(%rip), %rdi     # 0x7ed64
cmoveq %rax, %rdi
cmpq $0x0, -0x40(%rbp)
movq %r12, -0x48(%rbp)
movq %rdi, -0x78(%rbp)
je 0x426c6
movl 0x54(%r15), %eax
leal 0x1(%rax), %r14d
movq %rax, -0x38(%rbp)
addl $0x3, %eax
movl %eax, -0x4c(%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 0x3ea9f
movq (%r12), %rax
cmpb $0x0, 0x51(%rax)
movslq 0x3c(%r12), %rdx
leaq 0x5106e(%rip), %rax     # 0x934f8
jne 0x4249d
movq 0x8(%r12), %rax
leaq (%rdx,%rdx,2), %rcx
leaq (%rax,%rcx,8), %rax
addq $-0x18, %rax
movb $0x10, 0x3(%rax)
movl $0x2, 0x50(%r15)
movq %rdx, -0x70(%rbp)
leal 0x1(%rdx), %r8d
movq %r12, %rdi
movl $0x11, %esi
movl %r14d, %edx
xorl %ecx, %ecx
callq 0x3ea9f
leaq -0x90(%rbp), %rdx
movw $0xd, (%rdx)
movl %r14d, 0x4(%rdx)
movq $0x0, 0x8(%rdx)
movq %r15, %rdi
movq -0x40(%rbp), %rsi
callq 0x44acb
movq %r12, %rdi
movl $0x12, %esi
movl %r14d, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movl 0x3c(%r12), %eax
leal -0x1(%rax), %ecx
movq 0x30(%r12), %rdx
movl %ecx, 0x68(%rdx)
movq (%r12), %rdx
cmpb $0x0, 0x51(%rdx)
leaq 0x50fdd(%rip), %rdx     # 0x934f8
jne 0x42539
movq -0x70(%rbp), %rdx
testl %edx, %edx
cmovnsl %edx, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rdx
shlq $0x3, %rdx
movq -0x48(%rbp), %rcx
addq 0x8(%rcx), %rdx
movl %eax, 0x8(%rdx)
cmpl $0x0, 0x4c(%r15)
jne 0x42bbb
movq %r15, %rdi
movq -0x40(%rbp), %rsi
callq 0x55221
testq %rax, %rax
je 0x42bbb
movq -0x38(%rbp), %r14
addl $0x2, %r14d
movq %r14, -0x38(%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 0xb52a
movl -0x8c(%rbp), %edx
movq -0x48(%rbp), %r12
movq %r12, %rdi
movl $0x14, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movl %eax, -0x40(%rbp)
movl -0x88(%rbp), %edx
movl -0x84(%rbp), %ecx
movq %r12, %rdi
movl $0x32, %esi
movl %r14d, %r8d
callq 0x3ea9f
movq %r12, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x55309
movq %r12, %rdi
movl $0x54, %esi
movl $0x1, %edx
movl -0x4c(%rbp), %r14d
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq %r12, %rdi
movl $0x5f, %esi
movl $0x1, %edx
movq -0x38(%rbp), %rcx
movl %r14d, %r8d
movl -0x40(%rbp), %r14d
callq 0x3ea9f
movq %r12, %rdi
movl $0xe, %esi
xorl %edx, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movl 0x3c(%r12), %eax
leal -0x1(%rax), %ecx
movq 0x30(%r12), %rdx
movl %ecx, 0x68(%rdx)
movq (%r12), %rdx
cmpb $0x0, 0x51(%rdx)
je 0x42a94
leaq 0x50eab(%rip), %rcx     # 0x934f8
jmp 0x42aab
movq $0x0, 0x220(%r15)
movq -0x30(%rbp), %rax
orb $0x2, 0x2c(%rax)
cmpq $0x0, 0x18(%rbx)
jne 0x42bbb
movq 0x238(%r15), %rdi
cmpq $0x0, (%r12)
cmovneq %r12, %r14
movl (%r14), %esi
subl %edi, %esi
callq 0x3f75c
addl $0xd, %eax
movl %eax, 0x48(%rbx)
jmp 0x42bbb
orb $0x60, %al
movb %al, 0x46(%rbx)
movq 0x10(%r15), %rax
movl 0x1d0(%r15), %ecx
testl %ecx, %ecx
movq -0x30(%rbp), %r12
je 0x42718
jns 0x426b4
movl 0x3c(%rax), %ecx
decl %ecx
movq (%rax), %rdx
cmpb $0x0, 0x51(%rdx)
je 0x42706
leaq 0x50e34(%rip), %rcx     # 0x934f8
jmp 0x42715
leaq 0x248(%r15), %rax
cmpb $0x0, -0x38(%rbp)
cmoveq %r14, %rax
movq (%rax), %rsi
movq 0x238(%r15), %r8
movl %esi, %ecx
subl %r8d, %ecx
cmpb $0x3b, (%rsi)
je 0x426ec
addl 0x8(%rax), %ecx
leaq 0x3a570(%rip), %rsi     # 0x7cc63
movq -0x30(%rbp), %r12
movq %r12, %rdi
xorl %eax, %eax
callq 0x1494e
jmp 0x42ad4
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 0x4274a
movq 0x8(%rbx), %rax
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rdi
movq %rdi, -0x90(%rbp)
testq %rdi, %rdi
je 0x42797
callq 0xa190
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
jmp 0x42799
movq 0x10(%rbx), %r13
testq %r13, %r13
je 0x42765
movb 0x63(%r13), %cl
andb $0x3, %cl
cmpb $0x2, %cl
je 0x42768
movq 0x28(%r13), %r13
jmp 0x4274e
xorl %r13d, %r13d
testq %rax, %rax
je 0x4283e
movl 0x58(%r13), %ecx
testl %ecx, %ecx
jns 0x4277e
movl 0x3c(%rax), %ecx
decl %ecx
movq (%rax), %rdx
cmpb $0x0, 0x51(%rdx)
je 0x4282c
leaq 0x50d66(%rip), %rcx     # 0x934f8
jmp 0x4283b
xorl %eax, %eax
leaq -0x90(%rbp), %rdx
movl %eax, 0x8(%rdx)
xorl %r14d, %r14d
movq %r12, %rdi
movl $0x1b, %esi
xorl %ecx, %ecx
callq 0x5589f
movq (%r15), %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x46675
testq %rax, %rax
je 0x4229c
movb 0x1ec(%r15), %cl
movq 0x8(%rax), %rdx
movb %cl, 0x18(%rdx)
movzbl 0x47(%rbx), %r9d
subq $0x20, %rsp
movl %r14d, 0x18(%rsp)
movl %r14d, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rax, %r8
callq 0x4323b
addq $0x20, %rsp
testq %rax, %rax
je 0x4229c
movq %rax, %r13
movb 0x63(%rax), %al
andb $-0x4, %al
orb $0x2, %al
movb %al, 0x63(%r13)
movw $0xffff, 0x3c(%rbx)     # imm = 0xFFFF
movzwl 0x5e(%r13), %eax
jmp 0x4289f
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rcx
addq 0x8(%rax), %rcx
movb $0xe, (%rcx)
movzwl 0x5e(%r13), %ecx
movw $0x1, %ax
cmpw $0x2, %cx
jb 0x4289a
movq 0x8(%r13), %rdx
movl $0x1, %eax
movl $0x1, %esi
movzwl (%rdx,%rsi,2), %edi
movq %rdx, %r8
movl %eax, %r9d
testl %r9d, %r9d
jle 0x42881
decl %r9d
leaq 0x2(%r8), %r10
cmpw %di, (%r8)
movq %r10, %r8
jne 0x42865
decw 0x60(%r13)
jmp 0x4288f
movslq %eax, %rcx
incl %eax
movw %di, (%rdx,%rcx,2)
movzwl 0x5e(%r13), %ecx
incq %rsi
movzwl %cx, %edi
cmpq %rdi, %rsi
jb 0x4285b
movw %ax, 0x5e(%r13)
movb 0x63(%r13), %cl
orb $0x20, %cl
movb %cl, 0x63(%r13)
movzwl %ax, %r10d
movq -0x30(%rbp), %rax
cmpb $0x0, 0xa3(%rax)
jne 0x428f2
testl %r10d, %r10d
je 0x428eb
movq 0x8(%rbx), %rax
movq 0x8(%r13), %rcx
movl %r10d, %edx
xorl %esi, %esi
movswq (%rcx,%rsi,2), %rdi
leaq (%rdi,%rdi,2), %rdi
shlq $0x4, %rdi
movb $0x2, 0x28(%rax,%rdi)
incq %rsi
cmpq %rsi, %rdx
jne 0x428cd
movb 0x63(%r13), %cl
orb $0x8, %cl
movb %cl, 0x63(%r13)
movl 0x38(%rbx), %eax
movl %eax, 0x58(%r13)
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0x42a08
movl %r10d, %r12d
movq %rbx, -0x58(%rbp)
movb 0x63(%r14), %al
andb $0x3, %al
cmpb $0x2, %al
je 0x429fb
movq %r15, %rbx
movq %r10, %r15
testl %r10d, %r10d
je 0x429e7
movq 0x8(%r14), %rax
movzwl 0x5e(%r14), %ecx
movq 0x8(%r13), %rsi
xorl %edi, %edi
xorl %edx, %edx
movzwl (%rsi,%rdi,2), %r8d
movq %rax, %r9
movl %ecx, %r10d
testl %r10d, %r10d
jle 0x4295d
decl %r10d
leaq 0x2(%r9), %r11
cmpw %r8w, (%r9)
movq %r11, %r9
jne 0x42946
jmp 0x4295f
incl %edx
incq %rdi
cmpq %r12, %rdi
jne 0x4293b
testl %edx, %edx
je 0x429e7
movzwl 0x5e(%r14), %eax
addl %eax, %edx
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x559c0
testl %eax, %eax
movq %r15, %r10
movq %rbx, %r15
movq -0x58(%rbp), %rbx
jne 0x4229c
testl %r10d, %r10d
je 0x429fb
movzwl 0x5e(%r14), %eax
xorl %ecx, %ecx
movq 0x8(%r14), %rdx
movzwl 0x5e(%r14), %edi
movq 0x8(%r13), %rsi
movzwl (%rsi,%rcx,2), %esi
movq %rdx, %r8
testl %edi, %edi
jle 0x429c5
decl %edi
leaq 0x2(%r8), %r9
cmpw %si, (%r8)
movq %r9, %r8
jne 0x429b0
jmp 0x429dd
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 %r12, %rcx
jne 0x4299c
jmp 0x429fb
movzwl 0x5e(%r14), %eax
movw %ax, 0x60(%r14)
movq %r15, %r10
movq %rbx, %r15
movq -0x58(%rbp), %rbx
movq 0x28(%r14), %r14
testq %r14, %r14
jne 0x4290d
movzwl 0x3e(%rbx), %eax
movswl %ax, %edx
cmpl %edx, %r10d
jge 0x42a8a
movq -0x30(%rbp), %rdi
movq %r13, %rsi
movq %r10, %r14
callq 0x559c0
testl %eax, %eax
jne 0x4229c
movzwl 0x3e(%rbx), %edx
testw %dx, %dx
jle 0x4229c
movq %r14, %r10
xorl %eax, %eax
leaq 0x35d6c(%rip), %rcx     # 0x787b0
movq 0x8(%r13), %rsi
movq %rsi, %rdi
movl %r10d, %r8d
testl %r8d, %r8d
jle 0x42a65
decl %r8d
movswl (%rdi), %r9d
addq $0x2, %rdi
cmpl %r9d, %eax
jne 0x42a4e
jmp 0x42a7c
movslq %r10d, %r10
movw %ax, (%rsi,%r10,2)
movq 0x40(%r13), %rdx
movq %rcx, (%rdx,%r10,8)
incl %r10d
movzwl 0x3e(%rbx), %edx
incl %eax
movswl %dx, %esi
cmpl %esi, %eax
jl 0x42a44
jmp 0x4229c
movw %ax, 0x60(%r13)
jmp 0x4229c
testl %r14d, %r14d
cmovnsl %r14d, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rcx
addq 0x8(%r12), %rcx
movl %eax, 0x8(%rcx)
movq %r12, %rdi
movl $0x3e, %esi
movl $0x1, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq -0x30(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x553fb
movq %rax, -0x38(%rbp)
movq 0x20(%r12), %rax
movslq %r13d, %rsi
shlq $0x5, %rsi
cmpl $0x1, %r13d
leaq 0x391f6(%rip), %rdx     # 0x7bce5
leaq 0x39202(%rip), %rcx     # 0x7bcf8
cmoveq %rdx, %rcx
movq %rsi, -0x40(%rbp)
movq (%rax,%rsi), %rdx
movq (%rbx), %r9
movl 0x1a0(%r15), %r10d
movl 0x1a4(%r15), %r11d
leaq 0x3a158(%rip), %rsi     # 0x7cc72
movq %r15, %rdi
movq -0x78(%rbp), %r8
xorl %eax, %eax
pushq %r10
movq -0x38(%rbp), %r14
pushq %r14
pushq %r11
pushq %r9
callq 0x5562c
addq $0x20, %rsp
movq %r12, %rdi
movq %r14, %rsi
callq 0xb752
movq %r15, %rdi
movl %r13d, %esi
callq 0x5575a
testb $0x8, 0x46(%rbx)
je 0x42b81
movq 0x20(%r12), %rax
movq -0x40(%rbp), %rcx
movq 0x18(%rax,%rcx), %rcx
cmpq $0x0, 0x68(%rcx)
jne 0x42b81
addq -0x40(%rbp), %rax
movq (%rax), %rdx
leaq 0x3a152(%rip), %rsi     # 0x7ccc9
movq %r15, %rdi
xorl %eax, %eax
callq 0x5562c
movq (%rbx), %rdx
leaq 0x3a168(%rip), %rsi     # 0x7ccf3
movq %r12, %rdi
xorl %eax, %eax
callq 0x1494e
movq -0x48(%rbp), %rdi
movl %r13d, %esi
movq %rax, %rdx
callq 0x55817
cmpb $0x0, 0xa1(%r12)
movq -0x68(%rbp), %r14
movq -0x60(%rbp), %r12
jne 0x423a5
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq