// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/sqlite-3.33.0/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 regStat = iMem++;        /* Register to hold StatAccum object */
  int regChng = iMem++;        /* Index of changed index field */
  int regRowid = iMem++;       /* Rowid argument passed to stat_push() */
  int regTemp = iMem++;        /* Temporary use register */
  int regTemp2 = iMem++;       /* Second 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) */
#ifdef SQLITE_ENABLE_PREUPDATE_HOOK
  Table *pStat1 = 0;
#endif

  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 ){
    /* 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].zDbSName ) ){
    return;
  }
#endif

#ifdef SQLITE_ENABLE_PREUPDATE_HOOK
  if( db->xPreUpdateCallback ){
    pStat1 = (Table*)sqlite3DbMallocZero(db, sizeof(Table) + 13);
    if( pStat1==0 ) return;
    pStat1->zName = (char*)&pStat1[1];
    memcpy(pStat1->zName, "sqlite_stat1", 13);
    pStat1->nCol = 3;
    pStat1->iPKey = -1;
    sqlite3VdbeAddOp4(pParse->pVdbe, OP_Noop, 0, 0, 0,(char*)pStat1,P4_DYNBLOB);
  }
#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) estimated number of rows in the index,
    */
    sqlite3VdbeAddOp2(v, OP_Integer, nCol, regStat+1);
    assert( regRowid==regStat+2 );
    sqlite3VdbeAddOp2(v, OP_Integer, pIdx->nKeyCol, regRowid);
#ifdef SQLITE_ENABLE_STAT4
    if( OptimizationEnabled(db, SQLITE_Stat4) ){
      sqlite3VdbeAddOp2(v, OP_Count, iIdxCur, regTemp);
      addrRewind = sqlite3VdbeAddOp1(v, OP_Rewind, iIdxCur);
      VdbeCoverage(v);
    }else
#endif
    {
      addrRewind = sqlite3VdbeAddOp1(v, OP_Rewind, iIdxCur);
      VdbeCoverage(v);
      sqlite3VdbeAddOp3(v, OP_Count, iIdxCur, regTemp, 1);
    }
    assert( regTemp2==regStat+4 );
    sqlite3VdbeAddOp2(v, OP_Integer, db->nAnalysisLimit, regTemp2);
    sqlite3VdbeAddFunctionCall(pParse, 0, regStat+1, regStat, 4,
                               &statInitFuncdef, 0);

    /* Implementation of the following:
    **
    **   Rewind csr
    **   if eof(csr) goto end_of_scan;
    **   regChng = 0
    **   goto next_push_0;
    **
    */
    sqlite3VdbeAddOp2(v, OP_Integer, 0, regChng);
    addrNextRow = sqlite3VdbeCurrentAddr(v);

    if( nColTest>0 ){
      int endDistinctTest = sqlite3VdbeMakeLabel(pParse);
      int *aGotoChng;               /* Array of jump instruction addresses */
      aGotoChng = sqlite3DbMallocRawNN(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);
        analyzeVdbeCommentIndexWithColumnName(v,pIdx,i);
        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);
        analyzeVdbeCommentIndexWithColumnName(v,pIdx,i);
      }
      sqlite3VdbeResolveLabel(v, endDistinctTest);
      sqlite3DbFree(db, aGotoChng);
    }

    /*
    **  chng_addr_N:
    **   regRowid = idx(rowid)            // STAT4 only
    **   stat_push(P, regChng, regRowid)  // 3rd parameter STAT4 only
    **   Next csr
    **   if !eof(csr) goto next_row;
    */
#ifdef SQLITE_ENABLE_STAT4
    if( OptimizationEnabled(db, SQLITE_Stat4) ){
      assert( regRowid==(regStat+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 = sqlite3TableColumnToIndex(pIdx, pPk->aiColumn[j]);
          assert( k>=0 && k<pIdx->nColumn );
          sqlite3VdbeAddOp3(v, OP_Column, iIdxCur, k, regKey+j);
          analyzeVdbeCommentIndexWithColumnName(v,pIdx,k);
        }
        sqlite3VdbeAddOp3(v, OP_MakeRecord, regKey, pPk->nKeyCol, regRowid);
        sqlite3ReleaseTempRange(pParse, regKey, pPk->nKeyCol);
      }
    }
#endif
    assert( regChng==(regStat+1) );
    {
      sqlite3VdbeAddFunctionCall(pParse, 1, regStat, regTemp, 2+IsStat4,
                                 &statPushFuncdef, 0);
      if( db->nAnalysisLimit ){
        int j1, j2, j3;
        j1 = sqlite3VdbeAddOp1(v, OP_IsNull, regTemp); VdbeCoverage(v);
        j2 = sqlite3VdbeAddOp1(v, OP_If, regTemp); VdbeCoverage(v);
        j3 = sqlite3VdbeAddOp4Int(v, OP_SeekGT, iIdxCur, 0, regPrev, 1);
        VdbeCoverage(v);
        sqlite3VdbeJumpHere(v, j1);
        sqlite3VdbeAddOp2(v, OP_Next, iIdxCur, addrNextRow); VdbeCoverage(v);
        sqlite3VdbeJumpHere(v, j2);
        sqlite3VdbeJumpHere(v, j3);
      }else{
        sqlite3VdbeAddOp2(v, OP_Next, iIdxCur, addrNextRow); VdbeCoverage(v);
      }
    }

    /* Add the entry to the stat1 table. */
    callStatGet(pParse, regStat, 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);
#ifdef SQLITE_ENABLE_PREUPDATE_HOOK
    sqlite3VdbeChangeP4(v, -1, (char*)pStat1, P4_TABLE);
#endif
    sqlite3VdbeChangeP5(v, OPFLAG_APPEND);

    /* Add the entries to the stat4 table. */
#ifdef SQLITE_ENABLE_STAT4
    if( OptimizationEnabled(db, SQLITE_Stat4) && db->nAnalysisLimit==0 ){
      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(pParse, regStat, STAT_GET_ROWID, regSampleRowid);
      addrIsNull = sqlite3VdbeAddOp1(v, OP_IsNull, regSampleRowid);
      VdbeCoverage(v);
      callStatGet(pParse, regStat, STAT_GET_NEQ, regEq);
      callStatGet(pParse, regStat, STAT_GET_NLT, regLt);
      callStatGet(pParse, regStat, STAT_GET_NDLT, regDLt);
      sqlite3VdbeAddOp4Int(v, seekOp, iTabCur, addrNext, regSampleRowid, 0);
      VdbeCoverage(v);
      for(i=0; i<nCol; i++){
        sqlite3ExprCodeLoadIndexColumn(pParse, pIdx, iTabCur, i, regCol+i);
      }
      sqlite3VdbeAddOp3(v, OP_MakeRecord, regCol, nCol, regSample);
      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_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);
#ifdef SQLITE_ENABLE_PREUPDATE_HOOK
    sqlite3VdbeChangeP4(v, -1, (char*)pStat1, P4_TABLE);
#endif
    sqlite3VdbeJumpHere(v, jZeroRows);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movl %r9d, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movl $0xffffffff, -0x50(%rbp) # imm = 0xFFFFFFFF
movb $0x1, -0x55(%rbp)
movl -0x20(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x20(%rbp)
movl %eax, -0x5c(%rbp)
movl -0x20(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x20(%rbp)
movl %eax, -0x60(%rbp)
movl -0x20(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x20(%rbp)
movl %eax, -0x64(%rbp)
movl -0x20(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x20(%rbp)
movl %eax, -0x68(%rbp)
movl -0x20(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x20(%rbp)
movl %eax, -0x6c(%rbp)
movl -0x20(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x20(%rbp)
movl %eax, -0x70(%rbp)
movl -0x20(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x20(%rbp)
movl %eax, -0x74(%rbp)
movl -0x20(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x20(%rbp)
movl %eax, -0x78(%rbp)
movl -0x20(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x20(%rbp)
movl %eax, -0x7c(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x80(%rbp)
movq -0x8(%rbp), %rax
movl 0x38(%rax), %eax
cmpl -0x20(%rbp), %eax
jle 0x464be7
movq -0x8(%rbp), %rax
movl 0x38(%rax), %eax
movl %eax, -0xc0(%rbp)
jmp 0x464bf0
movl -0x20(%rbp), %eax
movl %eax, -0xc0(%rbp)
movl -0xc0(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x38(%rax)
movq -0x8(%rbp), %rdi
callq 0x4299d0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x464c18
cmpq $0x0, -0x10(%rbp)
jne 0x464c1d
jmp 0x4653a0
movq -0x10(%rbp), %rax
cmpl $0x0, 0x38(%rax)
jne 0x464c2c
jmp 0x4653a0
movq -0x10(%rbp), %rax
movq (%rax), %rsi
leaq 0x149e2f(%rip), %rdi    # 0x5aea69
movl $0x5c, %edx
callq 0x3ccf10
cmpl $0x0, %eax
jne 0x464c4e
jmp 0x4653a0
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rsi
callq 0x3cb770
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x54(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %r8
movl $0x1c, %esi
xorl %eax, %eax
movl %eax, %ecx
callq 0x4338b0
cmpl $0x0, %eax
je 0x464c9b
jmp 0x4653a0
movq -0x8(%rbp), %rdi
movl -0x54(%rbp), %esi
movq -0x10(%rbp), %rax
movl 0x38(%rax), %edx
movq -0x10(%rbp), %rax
movq (%rax), %r8
xorl %ecx, %ecx
callq 0x429f80
movl -0x24(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x24(%rbp)
movl %eax, -0x40(%rbp)
movl -0x24(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x24(%rbp)
movl %eax, -0x3c(%rbp)
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
cmpl -0x24(%rbp), %eax
jle 0x464cee
movq -0x8(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0xc4(%rbp)
jmp 0x464cf7
movl -0x24(%rbp), %eax
movl %eax, -0xc4(%rbp)
movl -0xc4(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rdi
movl -0x40(%rbp), %esi
movl -0x54(%rbp), %edx
movq -0x10(%rbp), %rcx
movl $0x60, %r8d
callq 0x429e70
movq -0x48(%rbp), %rdi
movl -0x74(%rbp), %esi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
callq 0x429f40
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x4652dd
cmpq $0x0, -0x18(%rbp)
je 0x464d5d
movq -0x18(%rbp), %rax
cmpq -0x38(%rbp), %rax
je 0x464d5d
jmp 0x4652cc
movq -0x38(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x464d6c
movb $0x0, -0x55(%rbp)
movq -0x10(%rbp), %rax
movl 0x40(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x464dbe
movq -0x38(%rbp), %rax
movw 0x63(%rax), %ax
andw $0x3, %ax
movzwl %ax, %eax
cmpl $0x2, %eax
jne 0x464dbe
movq -0x38(%rbp), %rax
movzwl 0x5e(%rax), %eax
movl %eax, -0x84(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x98(%rbp)
movl -0x84(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x464e20
movq -0x38(%rbp), %rax
movzwl 0x60(%rax), %eax
movl %eax, -0x84(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x98(%rbp)
movq -0x38(%rbp), %rax
movw 0x63(%rax), %ax
shrw $0x3, %ax
andw $0x1, %ax
movzwl %ax, %eax
cmpl $0x0, %eax
je 0x464e05
movq -0x38(%rbp), %rax
movzwl 0x5e(%rax), %eax
subl $0x1, %eax
movl %eax, -0xc8(%rbp)
jmp 0x464e14
movl -0x84(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xc8(%rbp)
movl -0xc8(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0x48(%rbp), %rdi
movl -0x78(%rbp), %esi
movq -0x98(%rbp), %rdx
callq 0x429f40
movq -0x8(%rbp), %rax
movl 0x38(%rax), %eax
movl -0x80(%rbp), %ecx
addl -0x9c(%rbp), %ecx
cmpl %ecx, %eax
jle 0x464e56
movq -0x8(%rbp), %rax
movl 0x38(%rax), %eax
movl %eax, -0xcc(%rbp)
jmp 0x464e65
movl -0x80(%rbp), %eax
addl -0x9c(%rbp), %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x38(%rax)
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movq -0x38(%rbp), %rax
movl 0x58(%rax), %ecx
movl -0x54(%rbp), %r8d
movl $0x60, %esi
callq 0x410130
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x42a150
movq -0x48(%rbp), %rdi
movl -0x84(%rbp), %edx
movl -0x60(%rbp), %ecx
addl $0x1, %ecx
movl $0x45, %esi
callq 0x410100
movq -0x48(%rbp), %rdi
movq -0x38(%rbp), %rax
movzwl 0x5e(%rax), %edx
movl -0x68(%rbp), %ecx
movl $0x45, %esi
callq 0x410100
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movl $0x25, %esi
callq 0x42ba70
movl %eax, -0x88(%rbp)
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movl -0x6c(%rbp), %ecx
movl $0x5c, %esi
movl $0x1, %r8d
callq 0x410130
movq -0x48(%rbp), %rdi
movq -0x30(%rbp), %rax
movl 0x2b0(%rax), %edx
movl -0x70(%rbp), %ecx
movl $0x45, %esi
callq 0x410100
movq -0x8(%rbp), %rdi
movl -0x60(%rbp), %edx
addl $0x1, %edx
movl -0x60(%rbp), %ecx
xorl %esi, %esi
movl $0x4, %r8d
leaq 0x1d60ea(%rip), %r9     # 0x63b020
movl $0x0, (%rsp)
callq 0x42cfa0
movq -0x48(%rbp), %rdi
movl -0x64(%rbp), %ecx
movl $0x45, %esi
xorl %edx, %edx
callq 0x410100
movq -0x48(%rbp), %rdi
callq 0x430ae0
movl %eax, -0x8c(%rbp)
cmpl $0x0, -0x9c(%rbp)
jle 0x46515f
movq -0x8(%rbp), %rdi
callq 0x42d540
movl %eax, -0xa0(%rbp)
movq -0x30(%rbp), %rdi
movslq -0x9c(%rbp), %rsi
shlq $0x2, %rsi
callq 0x3d62a0
movq %rax, -0xa8(%rbp)
cmpq $0x0, -0xa8(%rbp)
jne 0x464faa
jmp 0x4652cc
movq -0x48(%rbp), %rdi
movl $0xb, %esi
callq 0x429a40
movq -0x48(%rbp), %rdi
callq 0x430ae0
movl %eax, -0x8c(%rbp)
cmpl $0x1, -0x9c(%rbp)
jne 0x465001
movq -0x38(%rbp), %rax
movzwl 0x5e(%rax), %eax
cmpl $0x1, %eax
jne 0x465001
movq -0x38(%rbp), %rax
movzbl 0x62(%rax), %eax
cmpl $0x0, %eax
je 0x465001
movq -0x48(%rbp), %rdi
movl -0x80(%rbp), %edx
movl -0xa0(%rbp), %ecx
movl $0x33, %esi
callq 0x410100
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x9c(%rbp), %eax
jge 0x4650b8
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x42a470
movq %rax, -0xb0(%rbp)
movq -0x48(%rbp), %rdi
movl -0x4c(%rbp), %edx
movl -0x64(%rbp), %ecx
movl $0x45, %esi
callq 0x410100
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movl -0x4c(%rbp), %ecx
movl -0x6c(%rbp), %r8d
movl $0x59, %esi
callq 0x410130
movq -0x48(%rbp), %rdi
movl -0x6c(%rbp), %edx
movl -0x80(%rbp), %r8d
addl -0x4c(%rbp), %r8d
movq -0xb0(%rbp), %r9
movl $0x34, %esi
xorl %ecx, %ecx
movl $0xfffffffe, (%rsp)     # imm = 0xFFFFFFFE
callq 0x429aa0
movl %eax, %edx
movq -0xa8(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x48(%rbp), %rdi
movl $0x80, %esi
callq 0x3cb9f0
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x465008
movq -0x48(%rbp), %rdi
movl -0x9c(%rbp), %edx
movl -0x64(%rbp), %ecx
movl $0x45, %esi
callq 0x410100
movq -0x48(%rbp), %rdi
movl -0xa0(%rbp), %esi
callq 0x429db0
movq -0x48(%rbp), %rdi
movl -0x8c(%rbp), %esi
subl $0x1, %esi
callq 0x429a70
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x9c(%rbp), %eax
jge 0x465140
movq -0x48(%rbp), %rdi
movq -0xa8(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq 0x429a70
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movl -0x4c(%rbp), %ecx
movl -0x80(%rbp), %r8d
addl -0x4c(%rbp), %r8d
movl $0x59, %esi
callq 0x410130
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x4650f7
movq -0x48(%rbp), %rdi
movl -0xa0(%rbp), %esi
callq 0x42dc90
movq -0x30(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x3c00a0
movq -0x8(%rbp), %rdi
movl -0x60(%rbp), %edx
movl -0x6c(%rbp), %ecx
movl $0x1, %esi
movl $0x2, %r8d
leaq 0x1d5eed(%rip), %r9     # 0x63b068
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x42cfa0
movq -0x30(%rbp), %rax
cmpl $0x0, 0x2b0(%rax)
je 0x465231
movq -0x48(%rbp), %rdi
movl -0x6c(%rbp), %edx
movl $0x32, %esi
callq 0x42ba70
movl %eax, -0xb4(%rbp)
movq -0x48(%rbp), %rdi
movl -0x6c(%rbp), %edx
movl $0x12, %esi
callq 0x42ba70
movl %eax, -0xb8(%rbp)
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movl -0x80(%rbp), %r8d
movl $0x19, %esi
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x3cb970
movl %eax, -0xbc(%rbp)
movq -0x48(%rbp), %rdi
movl -0xb4(%rbp), %esi
callq 0x429a70
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movl -0x8c(%rbp), %ecx
movl $0x5, %esi
callq 0x410100
movq -0x48(%rbp), %rdi
movl -0xb8(%rbp), %esi
callq 0x429a70
movq -0x48(%rbp), %rdi
movl -0xbc(%rbp), %esi
callq 0x429a70
jmp 0x465248
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movl -0x8c(%rbp), %ecx
movl $0x5, %esi
callq 0x410100
movq -0x8(%rbp), %rdi
movl -0x60(%rbp), %esi
movl -0x7c(%rbp), %ecx
xorl %edx, %edx
callq 0x4653f0
movq -0x48(%rbp), %rdi
movl -0x74(%rbp), %edx
movl -0x6c(%rbp), %r8d
movl $0x5b, %esi
movl $0x3, %ecx
leaq 0x1497fe(%rip), %r9     # 0x5aea73
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x429aa0
movq -0x48(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x5c(%rbp), %ecx
movl $0x78, %esi
callq 0x410100
movq -0x48(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x6c(%rbp), %ecx
movl -0x5c(%rbp), %r8d
movl $0x79, %esi
callq 0x410130
movq -0x48(%rbp), %rdi
movl $0x8, %esi
callq 0x3cb9f0
movq -0x48(%rbp), %rdi
movl -0x88(%rbp), %esi
callq 0x429a70
movq -0x38(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x464d3c
cmpq $0x0, -0x18(%rbp)
jne 0x4653a0
movzbl -0x55(%rbp), %eax
cmpl $0x0, %eax
je 0x4653a0
movq -0x48(%rbp), %rdi
movl -0x40(%rbp), %edx
movl -0x7c(%rbp), %ecx
movl $0x5c, %esi
callq 0x410100
movq -0x48(%rbp), %rdi
movl -0x7c(%rbp), %edx
movl $0x14, %esi
callq 0x42ba70
movl %eax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
movl -0x78(%rbp), %ecx
movl $0x48, %esi
xorl %edx, %edx
callq 0x410100
movq -0x48(%rbp), %rdi
movl -0x74(%rbp), %edx
movl -0x6c(%rbp), %r8d
movl $0x5b, %esi
movl $0x3, %ecx
leaq 0x149727(%rip), %r9     # 0x5aea73
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x429aa0
movq -0x48(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x5c(%rbp), %ecx
movl $0x78, %esi
callq 0x410100
movq -0x48(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x6c(%rbp), %ecx
movl -0x5c(%rbp), %r8d
movl $0x79, %esi
callq 0x410130
movq -0x48(%rbp), %rdi
movl $0x8, %esi
callq 0x3cb9f0
movq -0x48(%rbp), %rdi
movl -0x50(%rbp), %esi
callq 0x429a70
addq $0xe0, %rsp
popq %rbp
retq
nopl (%rax)