// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0xc0, %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, -0x78(%rbp)
movq -0x8(%rbp), %rax
movl 0x58(%rax), %eax
cmpl -0x20(%rbp), %eax
jle 0x8bb5b
movq -0x8(%rbp), %rax
movl 0x58(%rax), %eax
movl %eax, -0xac(%rbp)
jmp 0x8bb64
movl -0x20(%rbp), %eax
movl %eax, -0xac(%rbp)
movl -0xac(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x58(%rax)
movq -0x8(%rbp), %rdi
callq 0x638c0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x8bb8c
cmpq $0x0, -0x10(%rbp)
jne 0x8bb91
jmp 0x8c1b0
movq -0x10(%rbp), %rax
cmpl $0x0, 0x3c(%rax)
jne 0x8bba0
jmp 0x8c1b0
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0xec88(%rip), %rsi      # 0x9a836
movl $0x7, %edx
callq 0xbbe0
cmpl $0x0, %eax
jne 0x8bbc2
jmp 0x8c1b0
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rsi
callq 0x16b60
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 0x6a8a0
cmpl $0x0, %eax
je 0x8bc0f
jmp 0x8c1b0
movq -0x8(%rbp), %rdi
movl -0x54(%rbp), %esi
movq -0x10(%rbp), %rax
movl 0x3c(%rax), %edx
movq -0x10(%rbp), %rax
movq (%rax), %r8
xorl %ecx, %ecx
callq 0x63f00
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 0x54(%rax), %eax
cmpl -0x24(%rbp), %eax
jle 0x8bc62
movq -0x8(%rbp), %rax
movl 0x54(%rax), %eax
movl %eax, -0xb0(%rbp)
jmp 0x8bc6b
movl -0x24(%rbp), %eax
movl %eax, -0xb0(%rbp)
movl -0xb0(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x54(%rax)
movq -0x8(%rbp), %rdi
movl -0x40(%rbp), %esi
movl -0x54(%rbp), %edx
movq -0x10(%rbp), %rcx
movl $0x32, %r8d
callq 0x63dd0
movq -0x48(%rbp), %rdi
movl -0x6c(%rbp), %ecx
movq -0x10(%rbp), %rax
movq (%rax), %r9
movl $0x5f, %esi
xorl %r8d, %r8d
movl %r8d, %edx
movl $0x0, (%rsp)
callq 0x63a70
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x8c0ed
cmpq $0x0, -0x18(%rbp)
je 0x8bce3
movq -0x18(%rbp), %rax
cmpq -0x38(%rbp), %rax
je 0x8bce3
jmp 0x8c0dc
movq -0x38(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x8bcf2
movb $0x0, -0x55(%rbp)
movq -0x38(%rbp), %rax
movzwl 0x5e(%rax), %eax
movl %eax, -0x7c(%rbp)
movq -0x30(%rbp), %rdi
movl -0x7c(%rbp), %eax
addl $0x1, %eax
cltq
shlq $0x2, %rax
movl %eax, %esi
callq 0x16700
movq %rax, -0x88(%rbp)
cmpq $0x0, -0x88(%rbp)
jne 0x8bd2a
jmp 0x8c0dc
movq -0x38(%rbp), %rax
movb 0x63(%rax), %al
andb $0x3, %al
movzbl %al, %eax
cmpl $0x2, %eax
jne 0x8bd5b
movq -0x10(%rbp), %rax
movzbl 0x48(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x8bd5b
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xa0(%rbp)
jmp 0x8bd69
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x48(%rbp), %rdi
movl -0x70(%rbp), %ecx
movq -0xa0(%rbp), %r9
movl $0x5f, %esi
xorl %r8d, %r8d
movl %r8d, %edx
movl $0x0, (%rsp)
callq 0x63a70
movq -0x8(%rbp), %rax
movl 0x58(%rax), %eax
movl -0x78(%rbp), %ecx
addl -0x7c(%rbp), %ecx
cmpl %ecx, %eax
jle 0x8bdae
movq -0x8(%rbp), %rax
movl 0x58(%rax), %eax
movl %eax, -0xb4(%rbp)
jmp 0x8bdba
movl -0x78(%rbp), %eax
addl -0x7c(%rbp), %eax
movl %eax, -0xb4(%rbp)
movl -0xb4(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x58(%rax)
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movq -0x38(%rbp), %rax
movl 0x58(%rax), %ecx
movl -0x54(%rbp), %r8d
movl $0x32, %esi
callq 0x639b0
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x64100
movq -0x48(%rbp), %rdi
movl -0x7c(%rbp), %edx
addl $0x1, %edx
movl -0x60(%rbp), %ecx
addl $0x1, %ecx
movl $0x17, %esi
callq 0x63980
movq -0x48(%rbp), %rdi
movl -0x60(%rbp), %ecx
addl $0x1, %ecx
movl -0x60(%rbp), %r8d
movl $0x1, %esi
xorl %edx, %edx
callq 0x639b0
movq -0x48(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
leaq 0x25c5c(%rip), %rdx     # 0xb1a90
movl $0xfffffffb, %ecx       # imm = 0xFFFFFFFB
callq 0x16e40
movq -0x48(%rbp), %rdi
movl $0x1, %esi
callq 0x63ec0
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movl $0x67, %esi
callq 0x66020
movl %eax, -0x8c(%rbp)
movq -0x48(%rbp), %rdi
movl -0x64(%rbp), %ecx
movl $0x17, %esi
xorl %edx, %edx
callq 0x63980
movq -0x48(%rbp), %rdi
movl $0x10, %esi
callq 0x63920
movl %eax, -0x90(%rbp)
movq -0x48(%rbp), %rdi
callq 0x63ea0
movl %eax, -0x94(%rbp)
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x7c(%rbp), %eax
jge 0x8bf4d
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x643a0
movq %rax, -0xa8(%rbp)
movq -0x48(%rbp), %rdi
movl -0x4c(%rbp), %edx
movl -0x64(%rbp), %ecx
movl $0x17, %esi
callq 0x63980
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movl -0x4c(%rbp), %ecx
movl -0x68(%rbp), %r8d
movl $0x2b, %esi
callq 0x639b0
movq -0x48(%rbp), %rdi
movl -0x68(%rbp), %edx
movl -0x78(%rbp), %r8d
addl -0x4c(%rbp), %r8d
movq -0xa8(%rbp), %r9
movl $0x4c, %esi
xorl %ecx, %ecx
movl $0xfffffffc, (%rsp)     # imm = 0xFFFFFFFC
callq 0x63a70
movl %eax, %edx
movq -0x88(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x48(%rbp), %rdi
movl $0x80, %esi
callq 0x63ec0
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x8bea0
movq -0x48(%rbp), %rdi
movl -0x7c(%rbp), %edx
movl -0x64(%rbp), %ecx
movl $0x17, %esi
callq 0x63980
movq -0x48(%rbp), %rdi
movl $0x10, %esi
callq 0x63920
movl %eax, %edx
movq -0x88(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x48(%rbp), %rdi
movl -0x90(%rbp), %esi
callq 0x63950
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x7c(%rbp), %eax
jge 0x8bfdb
movq -0x48(%rbp), %rdi
movq -0x88(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq 0x63950
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movl -0x4c(%rbp), %ecx
movl -0x78(%rbp), %r8d
addl -0x4c(%rbp), %r8d
movl $0x2b, %esi
callq 0x639b0
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x8bf95
movq -0x48(%rbp), %rdi
movq -0x88(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq 0x63950
movq -0x48(%rbp), %rdi
movl -0x60(%rbp), %ecx
movl -0x68(%rbp), %r8d
movl $0x1, %edx
movl %edx, %esi
callq 0x639b0
movq -0x48(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
leaq 0x25abf(%rip), %rdx     # 0xb1ad8
movl $0xfffffffb, %ecx       # imm = 0xFFFFFFFB
callq 0x16e40
movq -0x48(%rbp), %rdi
movl $0x2, %esi
callq 0x63ec0
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movl -0x94(%rbp), %ecx
movl $0x9, %esi
callq 0x63980
movq -0x48(%rbp), %rdi
movl -0x60(%rbp), %esi
movl -0x74(%rbp), %ecx
xorl %edx, %edx
callq 0x8c200
movq -0x48(%rbp), %rdi
movl -0x6c(%rbp), %edx
movl -0x68(%rbp), %r8d
movl $0x2d, %esi
movl $0x3, %ecx
leaq 0x1020d(%rip), %r9      # 0x9c282
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x63a70
movq -0x48(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x5c(%rbp), %ecx
movl $0x43, %esi
callq 0x63980
movq -0x48(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x68(%rbp), %ecx
movl -0x5c(%rbp), %r8d
movl $0x44, %esi
callq 0x639b0
movq -0x48(%rbp), %rdi
movl $0x8, %esi
callq 0x63ec0
movq -0x48(%rbp), %rdi
movl -0x8c(%rbp), %esi
callq 0x63950
movq -0x30(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0xc760
movq -0x38(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x8bcc2
cmpq $0x0, -0x18(%rbp)
jne 0x8c1b0
movzbl -0x55(%rbp), %eax
cmpl $0x0, %eax
je 0x8c1b0
movq -0x48(%rbp), %rdi
movl -0x40(%rbp), %edx
movl -0x74(%rbp), %ecx
movl $0x2e, %esi
callq 0x63980
movq -0x48(%rbp), %rdi
movl -0x74(%rbp), %edx
movl $0x2a, %esi
callq 0x66020
movl %eax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
movl -0x70(%rbp), %ecx
movl $0x1a, %esi
xorl %edx, %edx
callq 0x63980
movq -0x48(%rbp), %rdi
movl -0x6c(%rbp), %edx
movl -0x68(%rbp), %r8d
movl $0x2d, %esi
movl $0x3, %ecx
leaq 0x10126(%rip), %r9      # 0x9c282
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x63a70
movq -0x48(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x5c(%rbp), %ecx
movl $0x43, %esi
callq 0x63980
movq -0x48(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x68(%rbp), %ecx
movl -0x5c(%rbp), %r8d
movl $0x44, %esi
callq 0x639b0
movq -0x48(%rbp), %rdi
movl $0x8, %esi
callq 0x63ec0
movq -0x48(%rbp), %rdi
movl -0x50(%rbp), %esi
callq 0x63950
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax)