// File: /workspace/github_c_makefile_star2_O1/shifengbin[P]bishe/Output/../Persistence/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_strlike("sqlite_%", pTab->zName, 0)==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);
  sqlite3VdbeLoadString(v, regTabname, pTab->zName);

  for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){
    int nCol;                     /* Number of columns in pIdx. "N" */
    int addrRewind;               /* Address of "OP_Rewind iIdxCur" */
    int addrNextRow;              /* Address of "next_row:" */
    const char *zIdxName;         /* Name of the index */
    int nColTest;                 /* Number of columns to test for changes */

    if( pOnlyIdx && pOnlyIdx!=pIdx ) continue;
    if( pIdx->pPartIdxWhere==0 ) needTableCnt = 0;
    if( !HasRowid(pTab) && IsPrimaryKeyIndex(pIdx) ){
      nCol = pIdx->nKeyCol;
      zIdxName = pTab->zName;
      nColTest = nCol - 1;
    }else{
      nCol = pIdx->nColumn;
      zIdxName = pIdx->zName;
      nColTest = pIdx->uniqNotNull ? pIdx->nKeyCol-1 : nCol-1;
    }

    /* Populate the register containing the index name. */
    sqlite3VdbeLoadString(v, regIdxname, zIdxName);
    VdbeComment((v, "Analysis for %s.%s", pTab->zName, zIdxName));

    /*
    ** 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)
    **  ...
    **
    **  endDistinctTest:
    **   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+nColTest);

    /* 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
    **        (or for a WITHOUT ROWID table, the number of PK columns),
    **    (2) the number of columns in the key without the rowid/pk
    **    (3) the number of rows in the index,
    **
    **
    ** The third argument is only used for STAT3 and STAT4
    */
#ifdef SQLITE_ENABLE_STAT3_OR_STAT4
    sqlite3VdbeAddOp2(v, OP_Count, iIdxCur, regStat4+3);
#endif
    sqlite3VdbeAddOp2(v, OP_Integer, nCol, regStat4+1);
    sqlite3VdbeAddOp2(v, OP_Integer, pIdx->nKeyCol, regStat4+2);
    sqlite3VdbeAddOp3(v, OP_Function0, 0, regStat4+1, regStat4);
    sqlite3VdbeChangeP4(v, -1, (char*)&statInitFuncdef, P4_FUNCDEF);
    sqlite3VdbeChangeP5(v, 2+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);
    VdbeCoverage(v);
    sqlite3VdbeAddOp2(v, OP_Integer, 0, regChng);
    addrNextRow = sqlite3VdbeCurrentAddr(v);

    if( nColTest>0 ){
      int endDistinctTest = sqlite3VdbeMakeLabel(v);
      int *aGotoChng;               /* Array of jump instruction addresses */
      aGotoChng = sqlite3DbMallocRaw(db, sizeof(int)*nColTest);
      if( aGotoChng==0 ) continue;

      /*
      **  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 endDistinctTest
      */
      sqlite3VdbeAddOp0(v, OP_Goto);
      addrNextRow = sqlite3VdbeCurrentAddr(v);
      if( nColTest==1 && pIdx->nKeyCol==1 && IsUniqueIndex(pIdx) ){
        /* For a single-column UNIQUE index, once we have found a non-NULL
        ** row, we know that all the rest will be distinct, so skip 
        ** subsequent distinctness tests. */
        sqlite3VdbeAddOp2(v, OP_NotNull, regPrev, endDistinctTest);
        VdbeCoverage(v);
      }
      for(i=0; i<nColTest; 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);
        VdbeCoverage(v);
      }
      sqlite3VdbeAddOp2(v, OP_Integer, nColTest, regChng);
      sqlite3VdbeGoto(v, endDistinctTest);
  
  
      /*
      **  chng_addr_0:
      **   regPrev(0) = idx(0)
      **  chng_addr_1:
      **   regPrev(1) = idx(1)
      **  ...
      */
      sqlite3VdbeJumpHere(v, addrNextRow-1);
      for(i=0; i<nColTest; i++){
        sqlite3VdbeJumpHere(v, aGotoChng[i]);
        sqlite3VdbeAddOp3(v, OP_Column, iIdxCur, i, regPrev+i);
      }
      sqlite3VdbeResolveLabel(v, endDistinctTest);
      sqlite3DbFree(db, aGotoChng);
    }
  
    /*
    **  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;
    */
#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]);
        assert( k>=0 && k<pTab->nCol );
        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_Function0, 1, regStat4, regTemp);
    sqlite3VdbeChangeP4(v, -1, (char*)&statPushFuncdef, P4_FUNCDEF);
    sqlite3VdbeChangeP5(v, 2+IsStat34);
    sqlite3VdbeAddOp2(v, OP_Next, iIdxCur, addrNextRow); VdbeCoverage(v);

    /* Add the entry to the stat1 table. */
    callStatGet(v, regStat4, STAT_GET_STAT1, regStat1);
    assert( "BBB"[0]==SQLITE_AFF_TEXT );
    sqlite3VdbeAddOp4(v, OP_MakeRecord, regTabname, 3, regTemp, "BBB", 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);

      addrNext = sqlite3VdbeCurrentAddr(v);
      callStatGet(v, regStat4, STAT_GET_ROWID, regSampleRowid);
      addrIsNull = sqlite3VdbeAddOp1(v, OP_IsNull, regSampleRowid);
      VdbeCoverage(v);
      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);
      /* We know that the regSampleRowid row exists because it was read by
      ** the previous loop.  Thus the not-found jump of seekOp will never
      ** be taken */
      VdbeCoverageNeverTaken(v);
#ifdef SQLITE_ENABLE_STAT3
      sqlite3ExprCodeLoadIndexColumn(pParse, pIdx, iTabCur, 0, regSample);
#else
      for(i=0; i<nCol; i++){
        sqlite3ExprCodeLoadIndexColumn(pParse, pIdx, iTabCur, i, regCol+i);
      }
      sqlite3VdbeAddOp3(v, OP_MakeRecord, regCol, nCol, regSample);
#endif
      sqlite3VdbeAddOp3(v, OP_MakeRecord, regTabname, 6, regTemp);
      sqlite3VdbeAddOp2(v, OP_NewRowid, iStatCur+1, regNewRowid);
      sqlite3VdbeAddOp3(v, OP_Insert, iStatCur+1, regTemp, regNewRowid);
      sqlite3VdbeAddOp2(v, OP_Goto, 1, addrNext); /* P1==1 for end-of-loop */
      sqlite3VdbeJumpHere(v, addrIsNull);
    }
#endif /* SQLITE_ENABLE_STAT3_OR_STAT4 */

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


  /* 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); VdbeCoverage(v);
    sqlite3VdbeAddOp2(v, OP_Null, 0, regIdxname);
    assert( "BBB"[0]==SQLITE_AFF_TEXT );
    sqlite3VdbeAddOp4(v, OP_MakeRecord, regTabname, 3, regTemp, "BBB", 0);
    sqlite3VdbeAddOp2(v, OP_NewRowid, iStatCur, regNewRowid);
    sqlite3VdbeAddOp3(v, OP_Insert, iStatCur, regTemp, regNewRowid);
    sqlite3VdbeChangeP5(v, OPFLAG_APPEND);
    sqlite3VdbeJumpHere(v, jZeroRows);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %r9d, %r15d
movl %r8d, %r12d
movl %ecx, %r13d
movq %rdx, -0x70(%rbp)
movq %rsi, %rbx
movq (%rdi), %rax
movq %rax, -0x68(%rbp)
leal 0x7(%r12), %edx
movl 0x54(%rdi), %eax
cmpl %edx, %eax
movq %rdx, -0xa8(%rbp)
cmovlel %edx, %eax
movl %eax, 0x54(%rdi)
movq %rdi, -0x78(%rbp)
callq 0x507bf
movq %rbx, %rsi
movq %rax, %rbx
testq %rax, %rax
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x729d4
cmpl $0x0, 0x38(%rsi)
je 0x729d4
movq (%rsi), %r14
leaq 0xe75e(%rip), %rdi      # 0x808a4
leaq 0x82ef(%rip), %rdx      # 0x7a43c
movq %rsi, -0x38(%rbp)
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x155bd
movq -0x38(%rbp), %rcx
testl %eax, %eax
jne 0x729d4
movq 0x68(%rcx), %rax
testq %rax, %rax
je 0x7219a
movq -0x68(%rbp), %rsi
movl 0x28(%rsi), %ecx
testl %ecx, %ecx
jle 0x721a5
movq 0x20(%rsi), %rdx
addq $0x18, %rdx
xorl %edi, %edi
cmpq %rax, (%rdx)
je 0x721a7
incq %rdi
addq $0x20, %rdx
cmpq %rdi, %rcx
jne 0x72185
movl %ecx, %edi
jmp 0x721a7
movl $0xfff0bdc0, %edi       # imm = 0xFFF0BDC0
movq -0x68(%rbp), %rsi
jmp 0x721a7
xorl %edi, %edi
movq %rdi, -0x90(%rbp)
movq 0x20(%rsi), %rax
movslq %edi, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %r8
movq -0x78(%rbp), %rdi
movl $0x1c, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x5605b
testl %eax, %eax
movq -0x38(%rbp), %rax
jne 0x729d4
leal 0x3(%r12), %ecx
movl %ecx, -0x2c(%rbp)
leal 0x4(%r12), %ecx
movl %ecx, -0x40(%rbp)
leal 0x5(%r12), %ecx
movl %ecx, -0x58(%rbp)
leal 0x6(%r12), %ecx
movl %ecx, -0x54(%rbp)
movl 0x38(%rax), %edx
movq (%rax), %r8
movq -0x78(%rbp), %r14
movq %r14, %rdi
movq -0x90(%rbp), %rsi
xorl %ecx, %ecx
callq 0x50be4
leal 0x2(%r15), %eax
movl 0x50(%r14), %ecx
cmpl %eax, %ecx
cmovgl %ecx, %eax
movl %eax, 0x50(%r14)
movq %r14, %rdi
movl %r15d, %esi
movq -0x90(%rbp), %rdx
movq -0x38(%rbp), %rcx
movl $0x37, %r8d
callq 0x50ae2
movq -0x38(%rbp), %rax
movq (%rax), %r14
movq %rbx, %rdi
movl $0x61, %esi
xorl %edx, %edx
movl -0x40(%rbp), %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl %eax, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x14ab9
movq -0x38(%rbp), %rsi
movq 0x10(%rsi), %r14
testq %r14, %r14
je 0x728c2
leal 0x1(%r12), %eax
movl %eax, -0x5c(%rbp)
leal 0x2(%r12), %eax
movl %eax, -0x48(%rbp)
leal 0x1(%r15), %eax
movl %eax, -0x30(%rbp)
movl -0xa8(%rbp), %eax
movq %rax, -0xb8(%rbp)
movb $0x1, %dil
movq -0x70(%rbp), %rdx
movq %r12, -0x88(%rbp)
movl %r13d, -0x44(%rbp)
movq %r15, -0x98(%rbp)
testq %rdx, %rdx
setne %al
cmpq %rdx, %r14
setne %cl
testb %cl, %al
jne 0x728ad
cmpq $0x0, 0x48(%r14)
movzbl %dil, %edi
movl $0x0, %eax
cmovel %eax, %edi
testb $0x20, 0x46(%rsi)
movl %edi, -0x60(%rbp)
je 0x72302
movb 0x63(%r14), %al
andb $0x3, %al
cmpb $0x2, %al
jne 0x72302
movzwl 0x5e(%r14), %eax
movq (%rsi), %r15
movl %eax, -0x50(%rbp)
jmp 0x72314
movzwl 0x60(%r14), %eax
movq (%r14), %r15
testb $0x8, 0x63(%r14)
movl %eax, -0x50(%rbp)
jne 0x72319
movl %eax, %r13d
jmp 0x7231e
movzwl 0x5e(%r14), %r13d
movq %rbx, %rdi
movl $0x61, %esi
xorl %edx, %edx
movl -0x58(%rbp), %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl %eax, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x14ab9
movq -0x78(%rbp), %r15
movl 0x54(%r15), %eax
movq -0xa8(%rbp), %rcx
addl %r13d, %ecx
decl %ecx
cmpl %ecx, %eax
cmovgl %eax, %ecx
movl %ecx, 0x54(%r15)
movl 0x58(%r14), %ecx
movq %rbx, %rdi
movl $0x37, %esi
movl -0x30(%rbp), %r12d
movl %r12d, %edx
movq -0x90(%rbp), %r8
callq 0x3fa9e
movq %r14, -0x80(%rbp)
movq 0x10(%r15), %r14
movq %r15, %rdi
movq -0x80(%rbp), %rsi
callq 0x50ceb
movq %r14, %rdi
movq -0x80(%rbp), %r14
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %rax, %rdx
movl $0xfffffffa, %ecx       # imm = 0xFFFFFFFA
callq 0x14ab9
movq %rbx, %rdi
movl $0x17, %esi
movl -0x50(%rbp), %edx
movl -0x48(%rbp), %r15d
movl %r15d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movzwl 0x5e(%r14), %edx
movq %rbx, %rdi
movl $0x17, %esi
movl -0x2c(%rbp), %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0x24, %esi
xorl %edx, %edx
movl %r15d, %ecx
movl -0x5c(%rbp), %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
leaq 0x2075e(%rip), %rdx     # 0x92b60
movl $0xfffffffb, %ecx       # imm = 0xFFFFFFFB
callq 0x14ab9
movq (%rbx), %rax
cmpb $0x0, 0x51(%rax)
leaq 0x230ce(%rip), %rax     # 0x954e8
jne 0x72430
movslq 0x3c(%rbx), %rax
movq 0x8(%rbx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movb $0x2, 0x3(%rax)
movq %rbx, %rdi
movl $0x6e, %esi
movl %r12d, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movl %eax, -0xac(%rbp)
movq %rbx, %rdi
movl $0x17, %esi
xorl %edx, %edx
movl %r15d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movl 0x3c(%rbx), %eax
movq %rax, -0xa0(%rbp)
cmpl $0x2, %r13d
movq -0x98(%rbp), %r15
jb 0x7270b
decl %r13d
movq %rbx, %rdi
callq 0x528c8
movl %eax, -0x3c(%rbp)
movl %r13d, %esi
shlq $0x2, %rsi
movq -0x68(%rbp), %rdi
callq 0x144ee
testq %rax, %rax
movq -0x88(%rbp), %r12
je 0x726f6
movq %rax, -0x50(%rbp)
movq %rbx, %rdi
movl $0xe, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movl 0x3c(%rbx), %eax
movq %rax, -0xa0(%rbp)
cmpl $0x1, %r13d
movq %r13, %r15
jne 0x72501
cmpw $0x1, 0x5e(%r14)
jne 0x72501
cmpb $0x0, 0x62(%r14)
je 0x72501
movq %rbx, %rdi
movl $0x4d, %esi
movq -0xa8(%rbp), %rdx
movl -0x3c(%rbp), %ecx
xorl %r8d, %r8d
callq 0x3fa9e
cmpl $0x2, %r15d
movl $0x1, %r13d
movq %r15, -0xc0(%rbp)
cmovgel %r15d, %r13d
xorl %r15d, %r15d
movl -0x30(%rbp), %r12d
movq 0x40(%r14), %rax
movq (%rax,%r15,8), %rsi
movq -0x78(%rbp), %rdi
callq 0x50e39
movq %rax, %r14
movq %rbx, %rdi
movl $0x17, %esi
movl %r15d, %edx
movl -0x48(%rbp), %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0x30, %esi
movl %r12d, %edx
movl %r15d, %ecx
movl -0x2c(%rbp), %r12d
movl %r12d, %r8d
callq 0x3fa9e
movq -0xb8(%rbp), %rax
leal (%rax,%r15), %r8d
movq %rbx, %rdi
movl $0x4e, %esi
movl %r12d, %edx
xorl %ecx, %ecx
callq 0x3fa9e
movl %eax, %r12d
movq %rbx, %rdi
movl %eax, %esi
movq %r14, %rdx
movl $0xfffffffc, %ecx       # imm = 0xFFFFFFFC
callq 0x14ab9
movq -0x50(%rbp), %rax
movl %r12d, (%rax,%r15,4)
movq (%rbx), %rax
cmpb $0x0, 0x51(%rax)
leaq 0x22f3f(%rip), %rax     # 0x954e8
jne 0x725bf
movslq 0x3c(%rbx), %rax
movq 0x8(%rbx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movb $-0x80, 0x3(%rax)
incq %r15
cmpq %r15, %r13
movq -0x80(%rbp), %r14
movl -0x30(%rbp), %r12d
jne 0x7251d
movq %rbx, %rdi
movl $0x17, %esi
movq -0xc0(%rbp), %rdx
movl -0x48(%rbp), %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0xe, %esi
xorl %edx, %edx
movl -0x3c(%rbp), %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movl 0x3c(%rbx), %eax
leal -0x1(%rax), %ecx
movq 0x30(%rbx), %rdx
movl %ecx, 0x68(%rdx)
movq (%rbx), %rdx
cmpb $0x0, 0x51(%rdx)
leaq 0x22ec7(%rip), %rdi     # 0x954e8
movq %rdi, %rdx
jne 0x72644
movq -0xa0(%rbp), %rsi
leal -0x1(%rsi), %edx
testl %esi, %esi
cmovlel %ecx, %edx
movslq %edx, %rcx
leaq (%rcx,%rcx,2), %rdx
shlq $0x3, %rdx
addq 0x8(%rbx), %rdx
movl %eax, 0x8(%rdx)
xorl %r15d, %r15d
movq -0x88(%rbp), %r12
movq -0x50(%rbp), %rax
movl (%rax,%r15,4), %ecx
movl 0x3c(%rbx), %eax
leal -0x1(%rax), %edx
movq 0x30(%rbx), %rsi
movl %edx, 0x68(%rsi)
movq (%rbx), %rsi
cmpb $0x0, 0x51(%rsi)
movq %rdi, %rsi
jne 0x72686
testl %ecx, %ecx
cmovnsl %ecx, %edx
movslq %edx, %rcx
leaq (%rcx,%rcx,2), %rsi
shlq $0x3, %rsi
addq 0x8(%rbx), %rsi
movl %eax, 0x8(%rsi)
movq -0xb8(%rbp), %rax
leal (%rax,%r15), %r8d
movq %rbx, %rdi
movl $0x30, %esi
movl -0x30(%rbp), %edx
movl %r15d, %ecx
callq 0x3fa9e
incq %r15
cmpq %r15, %r13
leaq 0x22e34(%rip), %rdi     # 0x954e8
jne 0x72651
movq 0x30(%rbx), %rax
movq 0x80(%rax), %rcx
testq %rcx, %rcx
je 0x726d4
movl -0x3c(%rbp), %esi
notl %esi
movl 0x3c(%rbx), %edx
movslq %esi, %rsi
movl %edx, (%rcx,%rsi,4)
movl 0x3c(%rbx), %ecx
decl %ecx
movl %ecx, 0x68(%rax)
movq -0x68(%rbp), %rdi
movq -0x50(%rbp), %r15
movq %r15, %rsi
callq 0xb6df
movq %r15, %rax
movq -0x98(%rbp), %r15
testq %rax, %rax
jne 0x72712
movq -0x70(%rbp), %rdx
movq -0x38(%rbp), %rsi
movl -0x60(%rbp), %edi
jmp 0x728a9
movq -0x88(%rbp), %r12
movq %rbx, %rdi
movl $0x24, %esi
movl $0x1, %edx
movl -0x5c(%rbp), %r14d
movl %r14d, %ecx
movl -0x2c(%rbp), %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
leaq 0x2046a(%rip), %rdx     # 0x92ba8
movl $0xfffffffb, %ecx       # imm = 0xFFFFFFFB
callq 0x14ab9
movq (%rbx), %rax
cmpb $0x0, 0x51(%rax)
leaq 0x22d92(%rip), %r13     # 0x954e8
movq %r13, %rax
jne 0x7276f
movslq 0x3c(%rbx), %rax
movq 0x8(%rbx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movb $0x2, 0x3(%rax)
movq %rbx, %rdi
movl $0x8, %esi
movl -0x30(%rbp), %edx
movq -0xa0(%rbp), %rcx
xorl %r8d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0x24, %esi
xorl %edx, %edx
movl %r14d, %ecx
movl -0x54(%rbp), %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
leaq 0x2043e(%rip), %rdx     # 0x92bf0
movl $0xfffffffb, %ecx       # imm = 0xFFFFFFFB
callq 0x14ab9
movq (%rbx), %rax
cmpb $0x0, 0x51(%rax)
movq %r13, %rax
jne 0x727dc
movslq 0x3c(%rbx), %rax
movq 0x8(%rbx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movb $0x1, 0x3(%rax)
movq %rbx, %rdi
movl $0x32, %esi
movl -0x40(%rbp), %edx
movl $0x3, %ecx
movl -0x2c(%rbp), %r14d
movl %r14d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl %eax, %esi
leaq 0xe0a5(%rip), %rdx      # 0x808ad
xorl %ecx, %ecx
callq 0x14ab9
movq %rbx, %rdi
movl $0x54, %esi
movl -0x44(%rbp), %r15d
movl %r15d, %edx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0x5f, %esi
movl %r15d, %edx
movl %r14d, %ecx
movl %r12d, %r8d
callq 0x3fa9e
movq (%rbx), %rax
movb 0x51(%rax), %cl
movq %r13, %rax
testb %cl, %cl
jne 0x72860
movslq 0x3c(%rbx), %rax
movq 0x8(%rbx), %rdx
leaq (%rax,%rax,2), %rax
leaq (%rdx,%rax,8), %rax
addq $-0x18, %rax
movb $0x8, 0x3(%rax)
movl 0x3c(%rbx), %eax
leal -0x1(%rax), %edx
movq 0x30(%rbx), %rsi
movl %edx, 0x68(%rsi)
testb %cl, %cl
movq -0x80(%rbp), %r14
movl -0x60(%rbp), %edi
jne 0x72896
movl -0xac(%rbp), %ecx
testl %ecx, %ecx
cmovnsl %ecx, %edx
movslq %edx, %rcx
leaq (%rcx,%rcx,2), %r13
shlq $0x3, %r13
addq 0x8(%rbx), %r13
movl %eax, 0x8(%r13)
movq -0x70(%rbp), %rdx
movq -0x38(%rbp), %rsi
movq -0x98(%rbp), %r15
movl -0x44(%rbp), %r13d
movq 0x28(%r14), %r14
testq %r14, %r14
jne 0x722bd
testb %dil, %dil
setne %al
jmp 0x728c8
movb $0x1, %al
movq -0x70(%rbp), %rdx
testq %rdx, %rdx
jne 0x729d4
testb %al, %al
je 0x729d4
movq %rbx, %rdi
movl $0x33, %esi
movl %r15d, %edx
movl -0x54(%rbp), %r14d
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0x2f, %esi
movl %r14d, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movl %eax, %r14d
movq %rbx, %rdi
movl $0x1a, %esi
xorl %edx, %edx
movl -0x58(%rbp), %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0x32, %esi
movl -0x40(%rbp), %edx
movl $0x3, %ecx
movl %r13d, %r15d
movl -0x2c(%rbp), %r13d
movl %r13d, %r8d
callq 0x3fa9e
leaq 0xdf67(%rip), %rdx      # 0x808ad
movq %rbx, %rdi
movl %eax, %esi
xorl %ecx, %ecx
callq 0x14ab9
movq %rbx, %rdi
movl $0x54, %esi
movl %r15d, %edx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x3fa9e
movq %rbx, %rdi
movl $0x5f, %esi
movl %r15d, %edx
movl %r13d, %ecx
movl %r12d, %r8d
callq 0x3fa9e
movq (%rbx), %rax
movb 0x51(%rax), %dl
leaq 0x22b5d(%rip), %rax     # 0x954e8
movq %rax, %rcx
testb %dl, %dl
jne 0x729a6
movslq 0x3c(%rbx), %rcx
movq 0x8(%rbx), %rsi
leaq (%rcx,%rcx,2), %rcx
leaq (%rsi,%rcx,8), %rcx
addq $-0x18, %rcx
movb $0x8, 0x3(%rcx)
movl 0x3c(%rbx), %ecx
leal -0x1(%rcx), %esi
movq 0x30(%rbx), %rdi
movl %esi, 0x68(%rdi)
testb %dl, %dl
jne 0x729d1
testl %r14d, %r14d
cmovnsl %r14d, %esi
movslq %esi, %rax
leaq (%rax,%rax,2), %rax
shlq $0x3, %rax
addq 0x8(%rbx), %rax
movl %ecx, 0x8(%rax)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq