// File: /workspace/github_c_makefile_star2_O2/skeeto[P]flappy/sqlite3.c
// Function: analyzeOneTable
static void analyzeOneTable(
  Parse *pParse,   /* Parser context */
  Table *pTab,     /* Table whose indices are to be analyzed */
  Index *pOnlyIdx, /* If not NULL, only analyze this one index */
  int iStatCur,    /* Index of VdbeCursor that writes the sqlite_stat1 table */
  int iMem,        /* Available memory locations begin here */
  int iTab         /* Next available cursor */
){
  sqlite3 *db = pParse->db;    /* Database handle */
  Index *pIdx;                 /* An index to being analyzed */
  int iIdxCur;                 /* Cursor open on index being analyzed */
  int iTabCur;                 /* Table cursor */
  Vdbe *v;                     /* The virtual machine being built up */
  int i;                       /* Loop counter */
  int jZeroRows = -1;          /* Jump from here if number of rows is zero */
  int iDb;                     /* Index of database containing pTab */
  u8 needTableCnt = 1;         /* True to count the table */
  int regNewRowid = iMem++;    /* Rowid for the inserted record */
  int regStat4 = iMem++;       /* Register to hold Stat4Accum object */
  int regChng = iMem++;        /* Index of changed index field */
#ifdef SQLITE_ENABLE_STAT3_OR_STAT4
  int regRowid = iMem++;       /* Rowid argument passed to stat_push() */
#endif
  int regTemp = iMem++;        /* Temporary use register */
  int regTabname = iMem++;     /* Register containing table name */
  int regIdxname = iMem++;     /* Register containing index name */
  int regStat1 = iMem++;       /* Value for the stat column of sqlite_stat1 */
  int regPrev = iMem;          /* MUST BE LAST (see below) */

  pParse->nMem = MAX(pParse->nMem, iMem);
  v = sqlite3GetVdbe(pParse);
  if( v==0 || NEVER(pTab==0) ){
    return;
  }
  if( pTab->tnum==0 ){
    /* Do not gather statistics on views or virtual tables */
    return;
  }
  if( sqlite3_strnicmp(pTab->zName, "sqlite_", 7)==0 ){
    /* Do not gather statistics on system tables */
    return;
  }
  assert( sqlite3BtreeHoldsAllMutexes(db) );
  iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
  assert( iDb>=0 );
  assert( sqlite3SchemaMutexHeld(db, iDb, 0) );
#ifndef SQLITE_OMIT_AUTHORIZATION
  if( sqlite3AuthCheck(pParse, SQLITE_ANALYZE, pTab->zName, 0,
      db->aDb[iDb].zName ) ){
    return;
  }
#endif

  /* Establish a read-lock on the table at the shared-cache level. 
  ** Open a read-only cursor on the table. Also allocate a cursor number
  ** to use for scanning indexes (iIdxCur). No index cursor is opened at
  ** this time though.  */
  sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
  iTabCur = iTab++;
  iIdxCur = iTab++;
  pParse->nTab = MAX(pParse->nTab, iTab);
  sqlite3OpenTable(pParse, iTabCur, iDb, pTab, OP_OpenRead);
  sqlite3VdbeAddOp4(v, OP_String8, 0, regTabname, 0, pTab->zName, 0);

  for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){
    int nCol;                     /* Number of columns indexed by pIdx */
    int *aGotoChng;               /* Array of jump instruction addresses */
    int addrRewind;               /* Address of "OP_Rewind iIdxCur" */
    int addrGotoChng0;            /* Address of "Goto addr_chng_0" */
    int addrNextRow;              /* Address of "next_row:" */
    const char *zIdxName;         /* Name of the index */

    if( pOnlyIdx && pOnlyIdx!=pIdx ) continue;
    if( pIdx->pPartIdxWhere==0 ) needTableCnt = 0;
    VdbeNoopComment((v, "Begin analysis of %s", pIdx->zName));
    nCol = pIdx->nKeyCol;
    aGotoChng = sqlite3DbMallocRaw(db, sizeof(int)*(nCol+1));
    if( aGotoChng==0 ) continue;

    /* Populate the register containing the index name. */
    if( pIdx->autoIndex==2 && !HasRowid(pTab) ){
      zIdxName = pTab->zName;
    }else{
      zIdxName = pIdx->zName;
    }
    sqlite3VdbeAddOp4(v, OP_String8, 0, regIdxname, 0, zIdxName, 0);

    /*
    ** Pseudo-code for loop that calls stat_push():
    **
    **   Rewind csr
    **   if eof(csr) goto end_of_scan;
    **   regChng = 0
    **   goto chng_addr_0;
    **
    **  next_row:
    **   regChng = 0
    **   if( idx(0) != regPrev(0) ) goto chng_addr_0
    **   regChng = 1
    **   if( idx(1) != regPrev(1) ) goto chng_addr_1
    **   ...
    **   regChng = N
    **   goto chng_addr_N
    **
    **  chng_addr_0:
    **   regPrev(0) = idx(0)
    **  chng_addr_1:
    **   regPrev(1) = idx(1)
    **  ...
    **
    **  chng_addr_N:
    **   regRowid = idx(rowid)
    **   stat_push(P, regChng, regRowid)
    **   Next csr
    **   if !eof(csr) goto next_row;
    **
    **  end_of_scan:
    */

    /* Make sure there are enough memory cells allocated to accommodate 
    ** the regPrev array and a trailing rowid (the rowid slot is required
    ** when building a record to insert into the sample column of 
    ** the sqlite_stat4 table.  */
    pParse->nMem = MAX(pParse->nMem, regPrev+nCol);

    /* Open a read-only cursor on the index being analyzed. */
    assert( iDb==sqlite3SchemaToIndex(db, pIdx->pSchema) );
    sqlite3VdbeAddOp3(v, OP_OpenRead, iIdxCur, pIdx->tnum, iDb);
    sqlite3VdbeSetP4KeyInfo(pParse, pIdx);
    VdbeComment((v, "%s", pIdx->zName));

    /* Invoke the stat_init() function. The arguments are:
    ** 
    **    (1) the number of columns in the index including the rowid,
    **    (2) the number of rows in the index,
    **
    ** The second argument is only used for STAT3 and STAT4
    */
#ifdef SQLITE_ENABLE_STAT3_OR_STAT4
    sqlite3VdbeAddOp2(v, OP_Count, iIdxCur, regStat4+2);
#endif
    sqlite3VdbeAddOp2(v, OP_Integer, nCol+1, regStat4+1);
    sqlite3VdbeAddOp3(v, OP_Function, 0, regStat4+1, regStat4);
    sqlite3VdbeChangeP4(v, -1, (char*)&statInitFuncdef, P4_FUNCDEF);
    sqlite3VdbeChangeP5(v, 1+IsStat34);

    /* Implementation of the following:
    **
    **   Rewind csr
    **   if eof(csr) goto end_of_scan;
    **   regChng = 0
    **   goto next_push_0;
    **
    */
    addrRewind = sqlite3VdbeAddOp1(v, OP_Rewind, iIdxCur);
    sqlite3VdbeAddOp2(v, OP_Integer, 0, regChng);
    addrGotoChng0 = sqlite3VdbeAddOp0(v, OP_Goto);

    /*
    **  next_row:
    **   regChng = 0
    **   if( idx(0) != regPrev(0) ) goto chng_addr_0
    **   regChng = 1
    **   if( idx(1) != regPrev(1) ) goto chng_addr_1
    **   ...
    **   regChng = N
    **   goto chng_addr_N
    */
    addrNextRow = sqlite3VdbeCurrentAddr(v);
    for(i=0; i<nCol; i++){
      char *pColl = (char*)sqlite3LocateCollSeq(pParse, pIdx->azColl[i]);
      sqlite3VdbeAddOp2(v, OP_Integer, i, regChng);
      sqlite3VdbeAddOp3(v, OP_Column, iIdxCur, i, regTemp);
      aGotoChng[i] = 
      sqlite3VdbeAddOp4(v, OP_Ne, regTemp, 0, regPrev+i, pColl, P4_COLLSEQ);
      sqlite3VdbeChangeP5(v, SQLITE_NULLEQ);
    }
    sqlite3VdbeAddOp2(v, OP_Integer, nCol, regChng);
    aGotoChng[nCol] = sqlite3VdbeAddOp0(v, OP_Goto);

    /*
    **  chng_addr_0:
    **   regPrev(0) = idx(0)
    **  chng_addr_1:
    **   regPrev(1) = idx(1)
    **  ...
    */
    sqlite3VdbeJumpHere(v, addrGotoChng0);
    for(i=0; i<nCol; i++){
      sqlite3VdbeJumpHere(v, aGotoChng[i]);
      sqlite3VdbeAddOp3(v, OP_Column, iIdxCur, i, regPrev+i);
    }

    /*
    **  chng_addr_N:
    **   regRowid = idx(rowid)            // STAT34 only
    **   stat_push(P, regChng, regRowid)  // 3rd parameter STAT34 only
    **   Next csr
    **   if !eof(csr) goto next_row;
    */
    sqlite3VdbeJumpHere(v, aGotoChng[nCol]);
#ifdef SQLITE_ENABLE_STAT3_OR_STAT4
    assert( regRowid==(regStat4+2) );
    if( HasRowid(pTab) ){
      sqlite3VdbeAddOp2(v, OP_IdxRowid, iIdxCur, regRowid);
    }else{
      Index *pPk = sqlite3PrimaryKeyIndex(pIdx->pTable);
      int j, k, regKey;
      regKey = sqlite3GetTempRange(pParse, pPk->nKeyCol);
      for(j=0; j<pPk->nKeyCol; j++){
        k = sqlite3ColumnOfIndex(pIdx, pPk->aiColumn[j]);
        sqlite3VdbeAddOp3(v, OP_Column, iIdxCur, k, regKey+j);
        VdbeComment((v, "%s", pTab->aCol[pPk->aiColumn[j]].zName));
      }
      sqlite3VdbeAddOp3(v, OP_MakeRecord, regKey, pPk->nKeyCol, regRowid);
      sqlite3ReleaseTempRange(pParse, regKey, pPk->nKeyCol);
    }
#endif
    assert( regChng==(regStat4+1) );
    sqlite3VdbeAddOp3(v, OP_Function, 1, regStat4, regTemp);
    sqlite3VdbeChangeP4(v, -1, (char*)&statPushFuncdef, P4_FUNCDEF);
    sqlite3VdbeChangeP5(v, 2+IsStat34);
    sqlite3VdbeAddOp2(v, OP_Next, iIdxCur, addrNextRow);

    /* Add the entry to the stat1 table. */
    callStatGet(v, regStat4, STAT_GET_STAT1, regStat1);
    sqlite3VdbeAddOp4(v, OP_MakeRecord, regTabname, 3, regTemp, "aaa", 0);
    sqlite3VdbeAddOp2(v, OP_NewRowid, iStatCur, regNewRowid);
    sqlite3VdbeAddOp3(v, OP_Insert, iStatCur, regTemp, regNewRowid);
    sqlite3VdbeChangeP5(v, OPFLAG_APPEND);

    /* Add the entries to the stat3 or stat4 table. */
#ifdef SQLITE_ENABLE_STAT3_OR_STAT4
    {
      int regEq = regStat1;
      int regLt = regStat1+1;
      int regDLt = regStat1+2;
      int regSample = regStat1+3;
      int regCol = regStat1+4;
      int regSampleRowid = regCol + nCol;
      int addrNext;
      int addrIsNull;
      u8 seekOp = HasRowid(pTab) ? OP_NotExists : OP_NotFound;

      pParse->nMem = MAX(pParse->nMem, regCol+nCol+1);

      addrNext = sqlite3VdbeCurrentAddr(v);
      callStatGet(v, regStat4, STAT_GET_ROWID, regSampleRowid);
      addrIsNull = sqlite3VdbeAddOp1(v, OP_IsNull, regSampleRowid);
      callStatGet(v, regStat4, STAT_GET_NEQ, regEq);
      callStatGet(v, regStat4, STAT_GET_NLT, regLt);
      callStatGet(v, regStat4, STAT_GET_NDLT, regDLt);
      sqlite3VdbeAddOp4Int(v, seekOp, iTabCur, addrNext, regSampleRowid, 0);
#ifdef SQLITE_ENABLE_STAT3
      sqlite3ExprCodeGetColumnOfTable(v, pTab, iTabCur, 
                                      pIdx->aiColumn[0], regSample);
#else
      for(i=0; i<nCol; i++){
        i16 iCol = pIdx->aiColumn[i];
        sqlite3ExprCodeGetColumnOfTable(v, pTab, iTabCur, iCol, regCol+i);
      }
      sqlite3VdbeAddOp3(v, OP_MakeRecord, regCol, nCol+1, regSample);
#endif
      sqlite3VdbeAddOp4(v, OP_MakeRecord, regTabname, 6, regTemp, "bbbbbb", 0);
      sqlite3VdbeAddOp2(v, OP_NewRowid, iStatCur+1, regNewRowid);
      sqlite3VdbeAddOp3(v, OP_Insert, iStatCur+1, regTemp, regNewRowid);
      sqlite3VdbeAddOp2(v, OP_Goto, 0, addrNext);
      sqlite3VdbeJumpHere(v, addrIsNull);
    }
#endif /* SQLITE_ENABLE_STAT3_OR_STAT4 */

    /* End of analysis */
    sqlite3VdbeJumpHere(v, addrRewind);
    sqlite3DbFree(db, aGotoChng);
  }


  /* Create a single sqlite_stat1 entry containing NULL as the index
  ** name and the row count as the content.
  */
  if( pOnlyIdx==0 && needTableCnt ){
    VdbeComment((v, "%s", pTab->zName));
    sqlite3VdbeAddOp2(v, OP_Count, iTabCur, regStat1);
    jZeroRows = sqlite3VdbeAddOp1(v, OP_IfNot, regStat1);
    sqlite3VdbeAddOp2(v, OP_Null, 0, regIdxname);
    sqlite3VdbeAddOp4(v, OP_MakeRecord, regTabname, 3, regTemp, "aaa", 0);
    sqlite3VdbeAddOp2(v, OP_NewRowid, iStatCur, regNewRowid);
    sqlite3VdbeAddOp3(v, OP_Insert, iStatCur, regTemp, regNewRowid);
    sqlite3VdbeChangeP5(v, OPFLAG_APPEND);
    sqlite3VdbeJumpHere(v, jZeroRows);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %r9d, %r12d
movl %r8d, %r15d
movl %ecx, %ebp
movq %rdx, %r13
movq %rsi, %rbx
movq (%rdi), %rax
movq %rax, 0x58(%rsp)
leal 0x7(%r15), %ecx
movl 0x58(%rdi), %eax
cmpl %ecx, %eax
movq %rcx, 0x60(%rsp)
cmovlel %ecx, %eax
movl %eax, 0x58(%rdi)
movq %rdi, 0x50(%rsp)
callq 0x43f1b
movq %rax, %r14
testq %rax, %rax
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x5a201
movq %rbx, %rdx
cmpl $0x0, 0x3c(%rbx)
je 0x5a201
movq (%rdx), %rbx
movq %rdx, 0x28(%rsp)
leaq 0xab9b(%rip), %rsi      # 0x64d41
pushq $0x7
popq %rdx
movq %rbx, %rdi
callq 0x905e
testl %eax, %eax
je 0x5a201
movq 0x28(%rsp), %rax
movq 0x70(%rax), %rsi
movl %ebp, 0x40(%rsp)
movq %r12, %rbp
movq 0x58(%rsp), %r12
movq %r12, %rdi
callq 0x10cd8
movq 0x20(%r12), %rdx
movl %eax, 0x3c(%rsp)
movslq %eax, %rcx
shlq $0x5, %rcx
movq (%rdx,%rcx), %r8
pushq $0x1c
popq %rsi
movq 0x50(%rsp), %rdi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x4810e
movq 0x28(%rsp), %rcx
testl %eax, %eax
je 0x5a213
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leal 0x1(%r15), %eax
movl %eax, 0x20(%rsp)
leal 0x2(%r15), %eax
movl %eax, 0x14(%rsp)
leal 0x3(%r15), %eax
movl %eax, 0x10(%rsp)
leal 0x4(%r15), %eax
movl %eax, 0x18(%rsp)
leal 0x5(%r15), %eax
movl %eax, 0x38(%rsp)
leal 0x6(%r15), %eax
movl %eax, 0x34(%rsp)
movl 0x3c(%rcx), %edx
movq (%rcx), %r8
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
movl 0x3c(%rsp), %r12d
movl %r12d, %esi
xorl %ecx, %ecx
callq 0x4410c
leal 0x1(%rbp), %eax
movl %eax, 0x24(%rsp)
leal 0x2(%rbp), %eax
movl 0x54(%rbx), %ecx
cmpl %eax, %ecx
cmovgl %ecx, %eax
movl %eax, 0x54(%rbx)
pushq $0x32
popq %r8
movq %rbx, %rdi
movq %rbp, 0x78(%rsp)
movl %ebp, %esi
movl %r12d, %edx
movq 0x28(%rsp), %rcx
callq 0x44068
movq 0x28(%rsp), %rax
movq (%rax), %r9
andl $0x0, (%rsp)
pushq $0x5f
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
movl 0x18(%rsp), %ecx
movl 0x24(%rsp), %r12d
xorl %r8d, %r8d
callq 0x43fe6
movq 0x28(%rsp), %rax
leaq 0x10(%rax), %rbp
movl 0x60(%rsp), %eax
movq %rax, 0x90(%rsp)
movb $0x1, %dil
xorl %esi, %esi
movq %r15, 0x88(%rsp)
movq %r13, 0x80(%rsp)
movq (%rbp), %rbp
testq %rbp, %rbp
je 0x5a6de
testq %r13, %r13
setne %al
cmpq %r13, %rbp
setne %cl
testb %cl, %al
jne 0x5a6d5
cmpq $0x0, 0x48(%rbp)
movzbl %dil, %edi
cmovel %esi, %edi
movl %edi, 0x44(%rsp)
movzwl 0x5e(%rbp), %eax
movq %rax, 0x48(%rsp)
leal 0x4(,%rax,4), %esi
movq 0x58(%rsp), %rdi
callq 0x10a37
testq %rax, %rax
je 0x5a6cf
movq %rax, %rbx
movb 0x63(%rbp), %al
andb $0x3, %al
cmpb $0x2, %al
jne 0x5a34a
movq 0x28(%rsp), %rax
testb $0x20, 0x48(%rax)
jne 0x5a34d
movq %rbp, %rax
movq 0x48(%rsp), %r15
leal 0x1(%r15), %ecx
movl %ecx, 0x1c(%rsp)
movq (%rax), %r9
andl $0x0, (%rsp)
movq %r14, %rdi
pushq $0x5f
popq %rsi
xorl %edx, %edx
movl 0x38(%rsp), %ecx
xorl %r8d, %r8d
callq 0x43fe6
movq 0x50(%rsp), %r13
movl 0x58(%r13), %eax
movq 0x60(%rsp), %rcx
addl %r15d, %ecx
cmpl %ecx, %eax
cmovgl %eax, %ecx
movl %ecx, 0x58(%r13)
movl 0x58(%rbp), %ecx
movq %r14, %rdi
pushq $0x32
popq %rsi
movl %r12d, %edx
movl 0x3c(%rsp), %r8d
callq 0x43f69
movq %r13, %rdi
movq %rbp, 0x70(%rsp)
movq %rbp, %rsi
callq 0x441fe
movq %r14, %rdi
pushq $0x17
popq %rsi
movl 0x1c(%rsp), %edx
movl 0x14(%rsp), %ebp
movl %ebp, %ecx
callq 0x43f64
movq %r14, %rdi
pushq $0x1
popq %rsi
xorl %edx, %edx
movl %ebp, %ecx
movl 0x20(%rsp), %r8d
callq 0x43f69
movq %r14, %rdi
pushq $-0x1
popq %rsi
leaq 0x25695(%rip), %rdx     # 0x7fa80
pushq $-0x5
popq %rcx
callq 0x10de3
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x5a409
movslq 0x34(%r14), %rcx
imulq $0x18, %rcx, %rcx
movb $0x1, -0x15(%rax,%rcx)
movq %r14, %rdi
pushq $0x67
popq %rsi
movl %r12d, %edx
callq 0x457e7
movl %eax, 0x1c(%rsp)
movq %r14, %rdi
pushq $0x17
popq %rsi
xorl %edx, %edx
movl 0x14(%rsp), %ecx
callq 0x43f64
movq %r14, %rdi
pushq $0x10
popq %rsi
callq 0x43f5b
movl %eax, 0x68(%rsp)
movl 0x34(%r14), %eax
movl %eax, 0x6c(%rsp)
movl 0x48(%rsp), %r13d
xorl %r15d, %r15d
cmpq %r15, %r13
je 0x5a4e3
movq 0x70(%rsp), %rax
movq 0x40(%rax), %rax
movq (%rax,%r15,8), %rsi
movq 0x50(%rsp), %rdi
callq 0x4436b
movq %rax, %rbp
movq %r14, %rdi
pushq $0x17
popq %rsi
movl %r15d, %edx
movl 0x14(%rsp), %ecx
callq 0x43f64
movq %r14, %rdi
pushq $0x2b
popq %rsi
movl %r12d, %edx
movl %r15d, %ecx
movl 0x10(%rsp), %r12d
movl %r12d, %r8d
callq 0x43f69
movq 0x60(%rsp), %rax
leal (%rax,%r15), %r8d
movl $0xfffffffc, (%rsp)     # imm = 0xFFFFFFFC
movq %r14, %rdi
pushq $0x4c
popq %rsi
movl %r12d, %edx
xorl %ecx, %ecx
movq %rbp, %r9
callq 0x43fe6
movl %eax, (%rbx,%r15,4)
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x5a4d6
movslq 0x34(%r14), %rcx
imulq $0x18, %rcx, %rcx
movb $-0x80, -0x15(%rax,%rcx)
incq %r15
movl 0x24(%rsp), %r12d
jmp 0x5a44b
movq %r14, %rdi
pushq $0x17
popq %rsi
movq 0x48(%rsp), %r15
movl %r15d, %edx
movl 0x14(%rsp), %ecx
callq 0x43f64
movq %r14, %rdi
pushq $0x10
popq %rsi
callq 0x43f5b
movl %eax, (%rbx,%r15,4)
movl 0x68(%rsp), %edx
testl %edx, %edx
js 0x5a527
movl 0x34(%r14), %eax
cmpl %edx, %eax
jbe 0x5a527
movq 0x8(%r14), %rcx
movl %edx, %edx
imulq $0x18, %rdx, %rdx
movl %eax, 0x8(%rcx,%rdx)
xorl %r15d, %r15d
cmpq %r15, %r13
je 0x5a56e
movslq (%rbx,%r15,4), %rax
testq %rax, %rax
js 0x5a54c
movl 0x34(%r14), %ecx
cmpl %eax, %ecx
jbe 0x5a54c
movq 0x8(%r14), %rdx
imulq $0x18, %rax, %rax
movl %ecx, 0x8(%rdx,%rax)
movq 0x90(%rsp), %rax
leal (%rax,%r15), %r8d
movq %r14, %rdi
pushq $0x2b
popq %rsi
movl %r12d, %edx
movl %r15d, %ecx
callq 0x43f69
incq %r15
jmp 0x5a52a
movq 0x48(%rsp), %rax
movslq (%rbx,%rax,4), %rax
testq %rax, %rax
js 0x5a590
movl 0x34(%r14), %ecx
cmpl %eax, %ecx
jbe 0x5a590
movq 0x8(%r14), %rdx
imulq $0x18, %rax, %rax
movl %ecx, 0x8(%rdx,%rax)
movq %r14, %rdi
pushq $0x1
popq %rdx
movl %edx, %esi
movl 0x20(%rsp), %ecx
movl 0x10(%rsp), %r8d
callq 0x43f69
movq %r14, %rdi
pushq $-0x1
popq %rsi
leaq 0x25515(%rip), %rdx     # 0x7fac8
pushq $-0x5
popq %rcx
callq 0x10de3
movq 0x8(%r14), %rax
testq %rax, %rax
movq 0x88(%rsp), %r15
movl 0x40(%rsp), %ebp
movq 0x80(%rsp), %r13
je 0x5a5e5
movslq 0x34(%r14), %rcx
imulq $0x18, %rcx, %rcx
movb $0x2, -0x15(%rax,%rcx)
movq %r14, %rdi
pushq $0x9
popq %rsi
movl %r12d, %edx
movl 0x6c(%rsp), %ecx
callq 0x43f64
movq %r14, %rdi
pushq $0x1
popq %rsi
xorl %edx, %edx
movl 0x20(%rsp), %ecx
movl 0x34(%rsp), %r8d
callq 0x43f69
movq %r14, %rdi
pushq $-0x1
popq %rsi
leaq 0x254f6(%rip), %rdx     # 0x7fb10
pushq $-0x5
popq %rcx
callq 0x10de3
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x5a638
movslq 0x34(%r14), %rcx
imulq $0x18, %rcx, %rcx
movb $0x1, -0x15(%rax,%rcx)
andl $0x0, (%rsp)
movq %r14, %rdi
pushq $0x2d
popq %rsi
movl 0x18(%rsp), %edx
pushq $0x3
popq %rcx
movl 0x10(%rsp), %r12d
movl %r12d, %r8d
leaq 0xc13f(%rip), %r9       # 0x66797
callq 0x43fe6
movq %r14, %rdi
pushq $0x43
popq %rsi
movl %ebp, %edx
movl %r15d, %ecx
callq 0x43f64
movq %r14, %rdi
pushq $0x44
popq %rsi
movl %ebp, %edx
movl %r12d, %ecx
movl %r15d, %r8d
callq 0x43f69
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x5a696
movslq 0x34(%r14), %rcx
imulq $0x18, %rcx, %rcx
movb $0x8, -0x15(%rax,%rcx)
movl 0x1c(%rsp), %edx
testl %edx, %edx
js 0x5a6b0
movl 0x34(%r14), %ecx
cmpl %edx, %ecx
jbe 0x5a6b0
movl %edx, %edx
imulq $0x18, %rdx, %rdx
movl %ecx, 0x8(%rax,%rdx)
movq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0x9805
xorl %esi, %esi
movl 0x24(%rsp), %r12d
movl 0x44(%rsp), %edi
movq 0x70(%rsp), %rbp
jmp 0x5a6d5
xorl %esi, %esi
movl 0x44(%rsp), %edi
addq $0x28, %rbp
jmp 0x5a2df
testq %r13, %r13
movq 0x78(%rsp), %rdx
movl 0x40(%rsp), %ebp
jne 0x5a201
testb %dil, %dil
je 0x5a201
pushq $0x2e
popq %rsi
movq %r14, %rdi
movl 0x34(%rsp), %ebx
movl %ebx, %ecx
callq 0x43f64
pushq $0x2a
popq %rsi
movq %r14, %rdi
movl %ebx, %edx
callq 0x457e7
movl %eax, %ebx
pushq $0x1a
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
movl 0x38(%rsp), %ecx
callq 0x43f64
andl $0x0, (%rsp)
leaq 0xc062(%rip), %r9       # 0x66797
pushq $0x2d
popq %rsi
pushq $0x3
popq %rcx
movq %r14, %rdi
movl 0x18(%rsp), %edx
movl 0x10(%rsp), %r12d
movl %r12d, %r8d
callq 0x43fe6
pushq $0x43
popq %rsi
movq %r14, %rdi
movl %ebp, %edx
movl %r15d, %ecx
callq 0x43f64
pushq $0x44
popq %rsi
movq %r14, %rdi
movl %ebp, %edx
movl %r12d, %ecx
movl %r15d, %r8d
callq 0x43f69
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x5a788
movslq 0x34(%r14), %rcx
imulq $0x18, %rcx, %rcx
movb $0x8, -0x15(%rax,%rcx)
testl %ebx, %ebx
js 0x5a201
movl 0x34(%r14), %ecx
cmpl %ebx, %ecx
jbe 0x5a201
movl %ebx, %edx
imulq $0x18, %rdx, %rdx
movl %ecx, 0x8(%rax,%rdx)
jmp 0x5a201