// File: /workspace/github_c_makefile_star2_O2/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
movl %ecx, -0x68(%rbp)
movq %rsi, -0xa0(%rbp)
movq %rdx, %rax
movq %r8, -0x70(%rbp)
orq %r8, %rax
je 0x3debf
movq %rdi, %r12
movq 0x220(%rdi), %rcx
testq %rcx, %rcx
je 0x3debf
movq %rdx, -0x90(%rbp)
movq (%r12), %rdx
cmpb $0x0, 0xa1(%rdx)
je 0x3d92c
movl 0x9c(%rdx), %eax
movl %eax, 0x38(%rcx)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
testb $0x20, -0x68(%rbp)
movq %r12, -0x60(%rbp)
jne 0x3d9fe
movq -0x38(%rbp), %r13
movq 0x68(%r13), %rsi
movq -0x30(%rbp), %rdi
callq 0x136fb
movl %eax, %r15d
movq 0x30(%r13), %r8
testq %r8, %r8
je 0x3d96f
pushq $0x4
popq %rdx
movq %r12, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x4e9e3
movswl 0x3e(%r13), %eax
movq 0x8(%r13), %rcx
addq $0x2a, %rcx
xorl %edi, %edi
movq -0x90(%rbp), %rbx
testl %eax, %eax
jle 0x3d996
movzbl (%rcx), %edx
addl %edx, %edi
decl %eax
addq $0x30, %rcx
jmp 0x3d985
movzwl 0x3c(%r13), %eax
shrl $0xf, %eax
addl %eax, %edi
shll $0x2, %edi
callq 0x364ed
movw %ax, 0x44(%r13)
leaq 0x10(%r13), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x3d9c7
movq %r14, %rdi
callq 0x4ea80
addq $0x28, %r14
jmp 0x3d9b1
movq -0x30(%rbp), %rax
cmpb $0x0, 0xa1(%rax)
je 0x3da2f
movq (%r13), %rsi
movq 0x68(%r13), %rdi
addq $0x8, %rdi
movq %r13, %rdx
callq 0x36548
testq %rax, %rax
je 0x3dc77
movq -0x30(%rbp), %rax
movb $0x1, 0x51(%rax)
jmp 0x3debf
movq -0x38(%rbp), %rbx
movzbl 0x46(%rbx), %eax
testb $0x8, %al
jne 0x3dc58
testb $0x4, %al
jne 0x3dcbf
movq (%rbx), %rdx
leaq 0x30208(%rip), %rsi     # 0x6dc28
movq %r12, %rdi
xorl %eax, %eax
callq 0x1357a
jmp 0x3d942
movq %r12, %rdi
callq 0x49f90
testq %rax, %rax
je 0x3debf
movl %r15d, -0x48(%rbp)
pushq $0x3e
popq %rsi
movq %rax, %rdi
xorl %edx, %edx
movq %rax, %r15
callq 0x4b9b3
cmpq $0x0, 0x18(%r13)
leaq 0x301e8(%rip), %rax     # 0x6dc48
leaq 0x301e7(%rip), %rdx     # 0x6dc4e
cmoveq %rax, %rdx
leaq 0x30c3f(%rip), %rax     # 0x6e6b1
leaq 0x322db(%rip), %rcx     # 0x6fd54
cmoveq %rax, %rcx
movq %rcx, -0x98(%rbp)
movq -0x70(%rbp), %r14
testq %r14, %r14
movq %r15, -0x58(%rbp)
je 0x3dd9c
movl 0x54(%r12), %eax
leal 0x1(%rax), %r13d
movq %rax, -0x40(%rbp)
addl $0x3, %eax
movl %eax, -0x50(%rbp)
movl %eax, 0x54(%r12)
movq 0x1c0(%r12), %rax
testq %rax, %rax
cmoveq %r12, %rax
movb $0x1, 0x21(%rax)
movl 0x1a4(%r12), %ecx
pushq $0x38
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rdi
movl -0x48(%rbp), %r8d
callq 0x385b6
pushq $0x10
popq %rsi
movq %r15, %rdi
callq 0x13770
movl $0x2, 0x50(%r12)
movl 0x3c(%r15), %ebx
leal 0x1(%rbx), %r8d
pushq $0x11
popq %rsi
movq %r15, %rdi
movl %r13d, %edx
xorl %ecx, %ecx
callq 0x385b6
leaq -0x88(%rbp), %rdx
movw $0xd, (%rdx)
movl %r13d, 0x4(%rdx)
andq $0x0, 0x8(%rdx)
movq %r12, %rdi
movq %r14, %rsi
callq 0x3fba5
pushq $0x12
popq %rsi
movq %r15, %rdi
movl %r13d, %edx
callq 0x4b9b3
movq %r15, %rdi
movl %ebx, %esi
callq 0x4a022
cmpl $0x0, 0x4c(%r12)
jne 0x3debf
movq %r12, %rdi
movq %r14, %rsi
callq 0x4ead7
testq %rax, %rax
je 0x3debf
movzwl 0x3e(%rax), %ecx
movq -0x38(%rbp), %r13
movw %cx, 0x3e(%r13)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%r13)
andw $0x0, 0x3e(%rax)
movq -0x40(%rbp), %r15
addl $0x2, %r15d
andq $0x0, 0x8(%rax)
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0xb647
movl -0x84(%rbp), %edx
pushq $0x14
popq %rsi
movq -0x58(%rbp), %r14
movq %r14, %rdi
callq 0x4b9b3
movl %eax, -0x40(%rbp)
movl -0x80(%rbp), %edx
movl -0x7c(%rbp), %ecx
pushq $0x32
popq %rsi
movq %r14, %rdi
movl %r15d, %r8d
callq 0x385b6
xorl %ebx, %ebx
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x4eb90
pushq $0x54
popq %rsi
pushq $0x1
popq %rdx
movq %r14, %rdi
movl -0x50(%rbp), %r12d
movl %r12d, %ecx
callq 0x4a1ab
pushq $0x5f
popq %rsi
movq %r14, %rdi
pushq $0x1
popq %rdx
movl %r15d, %ecx
movl %r12d, %r8d
callq 0x385b6
movq %r14, %rdi
movl -0x40(%rbp), %r15d
movl %r15d, %esi
callq 0x4a0cb
movq %r14, %rdi
movl %r15d, %esi
callq 0x4a022
pushq $0x3e
popq %rsi
movq %r14, %rdi
pushq $0x1
popq %rdx
callq 0x4b9b3
movq 0x8(%r13), %r15
movswl 0x3e(%r13), %r14d
testl %r14d, %r14d
movl $0x0, %eax
cmovgl %r14d, %eax
imulq $0x30, %rax, %r13
xorl %r12d, %r12d
cmpl %ebx, %r13d
je 0x3e113
movq (%r15,%rbx), %rdi
callq 0x529a1
addl %eax, %r12d
addl $0x5, %r12d
addq $0x30, %rbx
jmp 0x3dc39
leaq 0x2ff97(%rip), %rsi     # 0x6dbf6
movq %r12, %rdi
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1357a
andq $0x0, 0x220(%r12)
movq -0x30(%rbp), %rax
orb $0x2, 0x2c(%rax)
cmpq $0x0, 0x18(%r13)
jne 0x3debf
movq 0x238(%r12), %rdi
movq -0xa0(%rbp), %rax
cmpq $0x0, (%rax)
cmovneq %rax, %rbx
movl (%rbx), %esi
subl %edi, %esi
callq 0x3914d
addl $0xd, %eax
movl %eax, 0x48(%r13)
jmp 0x3debf
orb $0x60, %al
movb %al, 0x46(%rbx)
movq 0x10(%r12), %r15
movl 0x1d0(%r12), %esi
testl %esi, %esi
movq -0x30(%rbp), %r13
je 0x3dce4
movq %r15, %rdi
callq 0x386ca
movb $0x7a, (%rax)
movswq 0x3c(%rbx), %rax
testq %rax, %rax
js 0x3dece
movq 0x8(%rbx), %rcx
imulq $0x30, %rax, %rax
movq (%rcx,%rax), %rdi
leaq -0x88(%rbp), %r14
movq %rdi, (%r14)
callq 0xb080
movl %eax, 0x8(%r14)
pushq $0x1b
popq %rsi
movq %r13, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x4ee54
movq %r12, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x43125
testq %rax, %rax
je 0x3d942
movb 0x1ec(%r12), %cl
movq 0x8(%rax), %rdx
movb %cl, 0x18(%rdx)
movzbl 0x47(%rbx), %r9d
subq $0x20, %rsp
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
andl $0x0, 0x18(%rsp)
andl $0x0, 0x10(%rsp)
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rax, %r8
callq 0x3e673
addq $0x20, %rsp
testq %rax, %rax
je 0x3d942
movb 0x63(%rax), %cl
andb $-0x4, %cl
orb $0x2, %cl
movb %cl, 0x63(%rax)
orw $-0x1, 0x3c(%rbx)
movzwl 0x5e(%rax), %r13d
movq %rax, %rbx
jmp 0x3df48
leaq 0x248(%r12), %rax
cmpb $0x0, -0x68(%rbp)
cmoveq %rbx, %rax
movq (%rax), %rsi
movq 0x238(%r12), %r8
movl %esi, %ecx
subl %r8d, %ecx
cmpb $0x3b, (%rsi)
je 0x3ddc4
addl 0x8(%rax), %ecx
leaq 0x2fe88(%rip), %rsi     # 0x6dc53
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x13638
movq %rax, %r14
movq 0x20(%rbx), %rax
movl -0x48(%rbp), %r15d
movslq %r15d, %rbx
shlq $0x5, %rbx
cmpl $0x1, %r15d
leaq 0x2eedf(%rip), %rdx     # 0x6ccd5
leaq 0x2eeeb(%rip), %rcx     # 0x6cce8
cmoveq %rdx, %rcx
movq (%rax,%rbx), %rdx
movq (%r13), %r9
movl 0x1a0(%r12), %r10d
movl 0x1a4(%r12), %r11d
leaq 0x2fe42(%rip), %rsi     # 0x6dc62
movq %r12, %rdi
movq -0x98(%rbp), %r8
xorl %eax, %eax
pushq %r10
pushq %r14
pushq %r11
pushq %r9
callq 0x4ec67
addq $0x20, %rsp
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0xb856
movq %r12, %rdi
movl %r15d, %esi
movq -0x30(%rbp), %r14
callq 0x4ed92
testb $0x8, 0x46(%r13)
je 0x3de86
movq 0x20(%r14), %rax
movq 0x18(%rax,%rbx), %rcx
cmpq $0x0, 0x68(%rcx)
jne 0x3de86
addq %rbx, %rax
movq (%rax), %rdx
leaq 0x2fe3d(%rip), %rsi     # 0x6dcb9
movq %r12, %rdi
xorl %eax, %eax
callq 0x4ec67
movq (%r13), %rdx
leaq 0x2fe52(%rip), %rsi     # 0x6dce3
movq %r14, %rdi
xorl %eax, %eax
callq 0x13638
movq -0x58(%rbp), %rdi
movl -0x48(%rbp), %esi
movq %rax, %rdx
callq 0x4edfe
cmpb $0x0, 0xa1(%r14)
movq -0x90(%rbp), %rbx
jne 0x3d9d4
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x363b8
movq %rax, %rbx
testq %r15, %r15
je 0x3deec
movl 0x58(%rbx), %esi
movq %r15, %rdi
callq 0x386ca
movb $0xe, (%rax)
movq %rbx, -0x48(%rbp)
pushq $0x1
popq %r13
pushq $0x1
popq %rbx
movq -0x48(%rbp), %r12
movzwl 0x5e(%r12), %eax
cmpq %rax, %rbx
jae 0x3df3b
movq 0x8(%r12), %r15
movzwl (%r15,%rbx,2), %r14d
movswl %r14w, %edx
movq %r15, %rdi
movl %r13d, %esi
callq 0x4ef60
testl %eax, %eax
je 0x3df2b
decw 0x60(%r12)
jmp 0x3df36
movslq %r13d, %rax
incl %r13d
movw %r14w, (%r15,%rax,2)
incq %rbx
jmp 0x3defb
movw %r13w, 0x5e(%r12)
movq %r12, %rbx
movq -0x60(%rbp), %r12
orb $0x20, 0x63(%rbx)
movzwl %r13w, %edi
movq -0x30(%rbp), %rax
cmpb $0x0, 0xa3(%rax)
movl %edi, %eax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rsi
jne 0x3df8e
xorl %eax, %eax
cmpq %rax, -0x40(%rbp)
je 0x3df8a
movq 0x8(%rsi), %rcx
movq 0x8(%rbx), %rdx
movswq (%rdx,%rax,2), %rdx
imulq $0x30, %rdx, %rdx
movb $0x2, 0x28(%rcx,%rdx)
incq %rax
jmp 0x3df69
orb $0x8, 0x63(%rbx)
movl %edi, -0x58(%rbp)
movl 0x38(%rsi), %eax
movl %eax, 0x58(%rbx)
leaq 0x10(%rsi), %r13
movq %rbx, -0x48(%rbp)
movq (%r13), %r13
testq %r13, %r13
je 0x3e095
movb 0x63(%r13), %al
andb $0x3, %al
cmpb $0x2, %al
je 0x3e088
movzwl 0x5e(%r13), %eax
movw %ax, -0x50(%rbp)
movzwl %ax, %r15d
xorl %r14d, %r14d
xorl %r12d, %r12d
cmpq %r14, -0x40(%rbp)
je 0x3dff3
movq 0x8(%r13), %rdi
movq 0x8(%rbx), %rax
movswl (%rax,%r14,2), %edx
movl %r15d, %esi
callq 0x4ef60
xorl $0x1, %eax
addl %eax, %r12d
incq %r14
jmp 0x3dfcd
testl %r12d, %r12d
je 0x3e07f
addl %r15d, %r12d
movq -0x30(%rbp), %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0x4ef80
testl %eax, %eax
movq -0x60(%rbp), %r12
jne 0x3d942
movzwl 0x5e(%r13), %eax
movq %rax, -0x50(%rbp)
xorl %r14d, %r14d
movq -0x48(%rbp), %rbx
cmpq %r14, -0x40(%rbp)
je 0x3e088
movq 0x8(%r13), %r15
movzwl 0x5e(%r13), %esi
movq 0x8(%rbx), %rax
movq %rbx, %r12
movzwl (%rax,%r14,2), %ebx
movswl %bx, %edx
movq %r15, %rdi
callq 0x4ef60
testl %eax, %eax
jne 0x3e077
movq -0x50(%rbp), %rdx
movslq %edx, %rdx
movw %bx, (%r15,%rdx,2)
movq 0x40(%r12), %rax
movq (%rax,%r14,8), %rax
movq 0x40(%r13), %rcx
movq %rax, (%rcx,%rdx,8)
incl %edx
movq %rdx, -0x50(%rbp)
movq %r12, %rbx
incq %r14
jmp 0x3e02a
movzwl -0x50(%rbp), %eax
movw %ax, 0x60(%r13)
addq $0x28, %r13
movq -0x60(%rbp), %r12
jmp 0x3df9f
movq -0x38(%rbp), %rax
movzwl 0x3e(%rax), %eax
movswl %ax, %edx
cmpl %edx, -0x58(%rbp)
jge 0x3e10a
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x4ef80
testl %eax, %eax
jne 0x3d942
xorl %r13d, %r13d
movq -0x48(%rbp), %r14
movq -0x38(%rbp), %rax
movswl 0x3e(%rax), %eax
cmpl %eax, %r13d
jge 0x3d942
movq 0x8(%r14), %r15
movq %r15, %rdi
movl -0x58(%rbp), %ebx
movl %ebx, %esi
movl %r13d, %edx
callq 0x4ef60
testl %eax, %eax
jne 0x3e105
movslq %ebx, %rax
movw %r13w, (%r15,%rax,2)
movq 0x40(%r14), %rcx
leaq 0x2b664(%rip), %rdx     # 0x69760
movq %rdx, (%rcx,%rax,8)
incl %ebx
movl %ebx, -0x58(%rbp)
incl %r13d
jmp 0x3e0c0
movw %ax, 0x60(%rbx)
jmp 0x3d942
movq -0x38(%rbp), %r13
movq (%r13), %rdi
callq 0x529a1
movl %eax, %r15d
addl %r12d, %r15d
cmpl $0x32, %r15d
leaq 0x301f6(%rip), %rax     # 0x6e327
leaq 0x301f1(%rip), %rcx     # 0x6e329
cmovlq %rax, %rcx
movq %rcx, -0x68(%rbp)
leaq 0x301e8(%rip), %rax     # 0x6e32f
leaq 0x301e0(%rip), %rbx     # 0x6e32e
cmovlq %rax, %rbx
imull $0x6, %r14d, %eax
leal (%rax,%r15), %r12d
addl $0x23, %r12d
movslq %r12d, %rdi
callq 0xc13f
movq %rax, %r14
testq %rax, %rax
je 0x3e2a0
movq %rbx, -0x70(%rbp)
cmpl $0x32, %r15d
leaq 0x30f10(%rip), %rax     # 0x6f091
movq %r13, %rbx
leaq 0x3019f(%rip), %r13     # 0x6e32a
cmovlq %rax, %r13
leaq 0x3019b(%rip), %rdx     # 0x6e331
movl %r12d, -0x50(%rbp)
movl %r12d, %edi
movq %r14, %rsi
xorl %eax, %eax
callq 0xa400
movq %r14, %rdi
callq 0xb080
leaq -0x88(%rbp), %r15
movl %eax, (%r15)
movq (%rbx), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x529c3
movslq (%r15), %rax
leal 0x1(%rax), %r12d
movb $0x28, (%r14,%rax)
movq 0x8(%rbx), %rbx
xorl %ecx, %ecx
movq -0x38(%rbp), %rax
movswl 0x3e(%rax), %eax
movl -0x50(%rbp), %edi
subl %r12d, %edi
movslq %r12d, %r15
addq %r14, %r15
cmpl %eax, %ecx
jge 0x3e27a
movq %r15, %rsi
movq %r13, %rdx
xorl %eax, %eax
movl %ecx, -0x40(%rbp)
callq 0xa400
movq %r15, %rdi
callq 0xb080
addl %r12d, %eax
movl %eax, -0x88(%rbp)
movq (%rbx), %rdx
movq %r14, %rdi
leaq -0x88(%rbp), %rsi
callq 0x529c3
movsbq 0x29(%rbx), %rax
leaq 0x4432c(%rip), %rcx     # 0x82560
movq -0x208(%rcx,%rax,8), %r15
movq %r15, %rdi
callq 0xb080
movl %eax, %r12d
movslq -0x88(%rbp), %r13
movq %r13, %rdi
addq %r14, %rdi
movl %eax, %edx
movq %r15, %rsi
callq 0xa3b0
movl -0x40(%rbp), %ecx
addl %r13d, %r12d
movl %r12d, -0x88(%rbp)
incl %ecx
addq $0x30, %rbx
movq -0x68(%rbp), %r13
jmp 0x3e1d9
leaq 0x2e102(%rip), %rdx     # 0x6c383
movq %r15, %rsi
movq -0x70(%rbp), %rcx
xorl %eax, %eax
callq 0xa400
movq -0x38(%rbp), %r13
movq -0x60(%rbp), %r12
movq -0x30(%rbp), %rbx
jmp 0x3dddc
movq -0x30(%rbp), %rbx
movb $0x1, 0x51(%rbx)
movq -0x60(%rbp), %r12
jmp 0x3dddc