// File: /workspace/github_c_makefile_star2_O0/barabo[P]advanced-shell-history/src/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 */
){
  sqlite3 *db = pParse->db;    /* Database handle */
  Index *pIdx;                 /* An index to being analyzed */
  int iIdxCur;                 /* Cursor open on index being analyzed */
  Vdbe *v;                     /* The virtual machine being built up */
  int i;                       /* Loop counter */
  int topOfLoop;               /* The top of the loop */
  int endOfLoop;               /* The end of the loop */
  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 regTabname = iMem++;     /* Register containing table name */
  int regIdxname = iMem++;     /* Register containing index name */
  int regStat1 = iMem++;       /* The stat column of sqlite_stat1 */
#ifdef SQLITE_ENABLE_STAT3
  int regNumEq = regStat1;     /* Number of instances.  Same as regStat1 */
  int regNumLt = iMem++;       /* Number of keys less than regSample */
  int regNumDLt = iMem++;      /* Number of distinct keys less than regSample */
  int regSample = iMem++;      /* The next sample value */
  int regRowid = regSample;    /* Rowid of a sample */
  int regAccum = iMem++;       /* Register to hold Stat3Accum object */
  int regLoop = iMem++;        /* Loop counter */
  int regCount = iMem++;       /* Number of rows in the table or index */
  int regTemp1 = iMem++;       /* Intermediate register */
  int regTemp2 = iMem++;       /* Intermediate register */
  int once = 1;                /* One-time initialization */
  int shortJump = 0;           /* Instruction address */
  int iTabCur = pParse->nTab++; /* Table cursor */
#endif
  int regCol = iMem++;         /* Content of a column in analyzed table */
  int regRec = iMem++;         /* Register holding completed record */
  int regTemp = iMem++;        /* Temporary use register */
  int regNewRowid = iMem++;    /* Rowid for the inserted record */


  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. */
  sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);

  iIdxCur = pParse->nTab++;
  sqlite3VdbeAddOp4(v, OP_String8, 0, regTabname, 0, pTab->zName, 0);
  for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){
    int nCol;
    KeyInfo *pKey;
    int addrIfNot = 0;           /* address of OP_IfNot */
    int *aChngAddr;              /* Array of jump instruction addresses */

    if( pOnlyIdx && pOnlyIdx!=pIdx ) continue;
    if( pIdx->pPartIdxWhere==0 ) needTableCnt = 0;
    VdbeNoopComment((v, "Begin analysis of %s", pIdx->zName));
    nCol = pIdx->nColumn;
    aChngAddr = sqlite3DbMallocRaw(db, sizeof(int)*nCol);
    if( aChngAddr==0 ) continue;
    pKey = sqlite3IndexKeyinfo(pParse, pIdx);
    if( iMem+1+(nCol*2)>pParse->nMem ){
      pParse->nMem = iMem+1+(nCol*2);
    }

    /* Open a cursor to the index to be analyzed. */
    assert( iDb==sqlite3SchemaToIndex(db, pIdx->pSchema) );
    sqlite3VdbeAddOp4(v, OP_OpenRead, iIdxCur, pIdx->tnum, iDb,
        (char *)pKey, P4_KEYINFO_HANDOFF);
    VdbeComment((v, "%s", pIdx->zName));

    /* Populate the register containing the index name. */
    sqlite3VdbeAddOp4(v, OP_String8, 0, regIdxname, 0, pIdx->zName, 0);

#ifdef SQLITE_ENABLE_STAT3
    if( once ){
      once = 0;
      sqlite3OpenTable(pParse, iTabCur, iDb, pTab, OP_OpenRead);
    }
    sqlite3VdbeAddOp2(v, OP_Count, iIdxCur, regCount);
    sqlite3VdbeAddOp2(v, OP_Integer, SQLITE_STAT3_SAMPLES, regTemp1);
    sqlite3VdbeAddOp2(v, OP_Integer, 0, regNumEq);
    sqlite3VdbeAddOp2(v, OP_Integer, 0, regNumLt);
    sqlite3VdbeAddOp2(v, OP_Integer, -1, regNumDLt);
    sqlite3VdbeAddOp3(v, OP_Null, 0, regSample, regAccum);
    sqlite3VdbeAddOp4(v, OP_Function, 1, regCount, regAccum,
                      (char*)&stat3InitFuncdef, P4_FUNCDEF);
    sqlite3VdbeChangeP5(v, 2);
#endif /* SQLITE_ENABLE_STAT3 */

    /* The block of memory cells initialized here is used as follows.
    **
    **    iMem:                
    **        The total number of rows in the table.
    **
    **    iMem+1 .. iMem+nCol: 
    **        Number of distinct entries in index considering the 
    **        left-most N columns only, where N is between 1 and nCol, 
    **        inclusive.
    **
    **    iMem+nCol+1 .. Mem+2*nCol:  
    **        Previous value of indexed columns, from left to right.
    **
    ** Cells iMem through iMem+nCol are initialized to 0. The others are 
    ** initialized to contain an SQL NULL.
    */
    for(i=0; i<=nCol; i++){
      sqlite3VdbeAddOp2(v, OP_Integer, 0, iMem+i);
    }
    for(i=0; i<nCol; i++){
      sqlite3VdbeAddOp2(v, OP_Null, 0, iMem+nCol+i+1);
    }

    /* Start the analysis loop. This loop runs through all the entries in
    ** the index b-tree.  */
    endOfLoop = sqlite3VdbeMakeLabel(v);
    sqlite3VdbeAddOp2(v, OP_Rewind, iIdxCur, endOfLoop);
    topOfLoop = sqlite3VdbeCurrentAddr(v);
    sqlite3VdbeAddOp2(v, OP_AddImm, iMem, 1);  /* Increment row counter */

    for(i=0; i<nCol; i++){
      CollSeq *pColl;
      sqlite3VdbeAddOp3(v, OP_Column, iIdxCur, i, regCol);
      if( i==0 ){
        /* Always record the very first row */
        addrIfNot = sqlite3VdbeAddOp1(v, OP_IfNot, iMem+1);
      }
      assert( pIdx->azColl!=0 );
      assert( pIdx->azColl[i]!=0 );
      pColl = sqlite3LocateCollSeq(pParse, pIdx->azColl[i]);
      aChngAddr[i] = sqlite3VdbeAddOp4(v, OP_Ne, regCol, 0, iMem+nCol+i+1,
                                      (char*)pColl, P4_COLLSEQ);
      sqlite3VdbeChangeP5(v, SQLITE_NULLEQ);
      VdbeComment((v, "jump if column %d changed", i));
#ifdef SQLITE_ENABLE_STAT3
      if( i==0 ){
        sqlite3VdbeAddOp2(v, OP_AddImm, regNumEq, 1);
        VdbeComment((v, "incr repeat count"));
      }
#endif
    }
    sqlite3VdbeAddOp2(v, OP_Goto, 0, endOfLoop);
    for(i=0; i<nCol; i++){
      sqlite3VdbeJumpHere(v, aChngAddr[i]);  /* Set jump dest for the OP_Ne */
      if( i==0 ){
        sqlite3VdbeJumpHere(v, addrIfNot);   /* Jump dest for OP_IfNot */
#ifdef SQLITE_ENABLE_STAT3
        sqlite3VdbeAddOp4(v, OP_Function, 1, regNumEq, regTemp2,
                          (char*)&stat3PushFuncdef, P4_FUNCDEF);
        sqlite3VdbeChangeP5(v, 5);
        sqlite3VdbeAddOp3(v, OP_Column, iIdxCur, pIdx->nColumn, regRowid);
        sqlite3VdbeAddOp3(v, OP_Add, regNumEq, regNumLt, regNumLt);
        sqlite3VdbeAddOp2(v, OP_AddImm, regNumDLt, 1);
        sqlite3VdbeAddOp2(v, OP_Integer, 1, regNumEq);
#endif        
      }
      sqlite3VdbeAddOp2(v, OP_AddImm, iMem+i+1, 1);
      sqlite3VdbeAddOp3(v, OP_Column, iIdxCur, i, iMem+nCol+i+1);
    }
    sqlite3DbFree(db, aChngAddr);

    /* Always jump here after updating the iMem+1...iMem+1+nCol counters */
    sqlite3VdbeResolveLabel(v, endOfLoop);

    sqlite3VdbeAddOp2(v, OP_Next, iIdxCur, topOfLoop);
    sqlite3VdbeAddOp1(v, OP_Close, iIdxCur);
#ifdef SQLITE_ENABLE_STAT3
    sqlite3VdbeAddOp4(v, OP_Function, 1, regNumEq, regTemp2,
                      (char*)&stat3PushFuncdef, P4_FUNCDEF);
    sqlite3VdbeChangeP5(v, 5);
    sqlite3VdbeAddOp2(v, OP_Integer, -1, regLoop);
    shortJump = 
    sqlite3VdbeAddOp2(v, OP_AddImm, regLoop, 1);
    sqlite3VdbeAddOp4(v, OP_Function, 1, regAccum, regTemp1,
                      (char*)&stat3GetFuncdef, P4_FUNCDEF);
    sqlite3VdbeChangeP5(v, 2);
    sqlite3VdbeAddOp1(v, OP_IsNull, regTemp1);
    sqlite3VdbeAddOp3(v, OP_NotExists, iTabCur, shortJump, regTemp1);
    sqlite3VdbeAddOp3(v, OP_Column, iTabCur, pIdx->aiColumn[0], regSample);
    sqlite3ColumnDefault(v, pTab, pIdx->aiColumn[0], regSample);
    sqlite3VdbeAddOp4(v, OP_Function, 1, regAccum, regNumEq,
                      (char*)&stat3GetFuncdef, P4_FUNCDEF);
    sqlite3VdbeChangeP5(v, 3);
    sqlite3VdbeAddOp4(v, OP_Function, 1, regAccum, regNumLt,
                      (char*)&stat3GetFuncdef, P4_FUNCDEF);
    sqlite3VdbeChangeP5(v, 4);
    sqlite3VdbeAddOp4(v, OP_Function, 1, regAccum, regNumDLt,
                      (char*)&stat3GetFuncdef, P4_FUNCDEF);
    sqlite3VdbeChangeP5(v, 5);
    sqlite3VdbeAddOp4(v, OP_MakeRecord, regTabname, 6, regRec, "bbbbbb", 0);
    sqlite3VdbeAddOp2(v, OP_NewRowid, iStatCur+1, regNewRowid);
    sqlite3VdbeAddOp3(v, OP_Insert, iStatCur+1, regRec, regNewRowid);
    sqlite3VdbeAddOp2(v, OP_Goto, 0, shortJump);
    sqlite3VdbeJumpHere(v, shortJump+2);
#endif        

    /* Store the results in sqlite_stat1.
    **
    ** The result is a single row of the sqlite_stat1 table.  The first
    ** two columns are the names of the table and index.  The third column
    ** is a string composed of a list of integer statistics about the
    ** index.  The first integer in the list is the total number of entries
    ** in the index.  There is one additional integer in the list for each
    ** column of the table.  This additional integer is a guess of how many
    ** rows of the table the index will select.  If D is the count of distinct
    ** values and K is the total number of rows, then the integer is computed
    ** as:
    **
    **        I = (K+D-1)/D
    **
    ** If K==0 then no entry is made into the sqlite_stat1 table.  
    ** If K>0 then it is always the case the D>0 so division by zero
    ** is never possible.
    */
    sqlite3VdbeAddOp2(v, OP_SCopy, iMem, regStat1);
    jZeroRows = sqlite3VdbeAddOp1(v, OP_IfNot, iMem);
    for(i=0; i<nCol; i++){
      sqlite3VdbeAddOp4(v, OP_String8, 0, regTemp, 0, " ", 0);
      sqlite3VdbeAddOp3(v, OP_Concat, regTemp, regStat1, regStat1);
      sqlite3VdbeAddOp3(v, OP_Add, iMem, iMem+i+1, regTemp);
      sqlite3VdbeAddOp2(v, OP_AddImm, regTemp, -1);
      sqlite3VdbeAddOp3(v, OP_Divide, iMem+i+1, regTemp, regTemp);
      sqlite3VdbeAddOp1(v, OP_ToInt, regTemp);
      sqlite3VdbeAddOp3(v, OP_Concat, regTemp, regStat1, regStat1);
    }
    if( pIdx->pPartIdxWhere!=0 ) sqlite3VdbeJumpHere(v, jZeroRows);
    sqlite3VdbeAddOp4(v, OP_MakeRecord, regTabname, 3, regRec, "aaa", 0);
    sqlite3VdbeAddOp2(v, OP_NewRowid, iStatCur, regNewRowid);
    sqlite3VdbeAddOp3(v, OP_Insert, iStatCur, regRec, regNewRowid);
    sqlite3VdbeChangeP5(v, OPFLAG_APPEND);
    if( pIdx->pPartIdxWhere==0 ) sqlite3VdbeJumpHere(v, jZeroRows);
  }

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%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)
movq -0x8(%rbp), %rdi
callq 0x5e000
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x84261
cmpq $0x0, -0x10(%rbp)
jne 0x84266
jmp 0x8492e
movq -0x10(%rbp), %rax
cmpl $0x0, 0x3c(%rax)
jne 0x84275
jmp 0x8492e
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x2b665(%rip), %rsi     # 0xaf8e8
movl $0x7, %edx
callq 0x9210
cmpl $0x0, %eax
jne 0x84297
jmp 0x8492e
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x68(%rax), %rsi
callq 0x13940
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x28(%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 0x5e720
cmpl $0x0, %eax
je 0x842e4
jmp 0x8492e
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 0x5e580
movq -0x8(%rbp), %rcx
movl 0x54(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x54(%rcx)
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
movl -0x5c(%rbp), %ecx
movq -0x10(%rbp), %rax
movq (%rax), %r9
movl $0x5e, %esi
xorl %r8d, %r8d
movl %r8d, %edx
movl $0x0, (%rsp)
callq 0x5e1b0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x84828
movl $0x0, -0x84(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x8436e
movq -0x18(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x8436e
jmp 0x84817
movq -0x30(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x8437d
movb $0x0, -0x55(%rbp)
movq -0x30(%rbp), %rax
movzwl 0x54(%rax), %eax
movl %eax, -0x78(%rbp)
movq -0x28(%rbp), %rdi
movslq -0x78(%rbp), %rax
shlq $0x2, %rax
movl %eax, %esi
callq 0x134e0
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
jne 0x843b1
jmp 0x84817
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x67540
movq %rax, -0x80(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl -0x78(%rbp), %ecx
shll %ecx
addl %ecx, %eax
movq -0x8(%rbp), %rcx
cmpl 0x58(%rcx), %eax
jle 0x843ec
movl -0x20(%rbp), %ecx
addl $0x1, %ecx
movl -0x78(%rbp), %eax
shll %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x58(%rax)
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %edx
movq -0x30(%rbp), %rax
movl 0x50(%rax), %ecx
movl -0x54(%rbp), %r8d
movq -0x80(%rbp), %r9
movl $0x30, %esi
movl $0xfffffff0, (%rsp)     # imm = 0xFFFFFFF0
callq 0x5e1b0
movq -0x40(%rbp), %rdi
movl -0x60(%rbp), %ecx
movq -0x30(%rbp), %rax
movq (%rax), %r9
movl $0x5e, %esi
xorl %r8d, %r8d
movl %r8d, %edx
movl $0x0, (%rsp)
callq 0x5e1b0
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x78(%rbp), %eax
jg 0x84468
movq -0x40(%rbp), %rdi
movl -0x20(%rbp), %ecx
addl -0x44(%rbp), %ecx
movl $0x15, %esi
xorl %edx, %edx
callq 0x5e0c0
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x8443f
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x78(%rbp), %eax
jge 0x8449e
movq -0x40(%rbp), %rdi
movl -0x20(%rbp), %ecx
addl -0x78(%rbp), %ecx
addl -0x44(%rbp), %ecx
addl $0x1, %ecx
movl $0x18, %esi
xorl %edx, %edx
callq 0x5e0c0
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x8446f
movq -0x40(%rbp), %rdi
callq 0x67890
movl %eax, -0x4c(%rbp)
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %edx
movl -0x4c(%rbp), %ecx
movl $0x65, %esi
callq 0x5e0c0
movq -0x40(%rbp), %rdi
callq 0x5e520
movl %eax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movl -0x20(%rbp), %edx
movl $0x20, %esi
movl $0x1, %ecx
callq 0x5e0c0
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x78(%rbp), %eax
jge 0x845a8
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %edx
movl -0x44(%rbp), %ecx
movl -0x68(%rbp), %r8d
movl $0x29, %esi
callq 0x5e0f0
cmpl $0x0, -0x44(%rbp)
jne 0x8452b
movq -0x40(%rbp), %rdi
movl -0x20(%rbp), %edx
addl $0x1, %edx
movl $0x28, %esi
callq 0x5ecf0
movl %eax, -0x84(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x66f20
movq %rax, -0x98(%rbp)
movq -0x40(%rbp), %rdi
movl -0x68(%rbp), %edx
movl -0x20(%rbp), %r8d
addl -0x78(%rbp), %r8d
addl -0x44(%rbp), %r8d
addl $0x1, %r8d
movq -0x98(%rbp), %r9
movl $0x4b, %esi
xorl %ecx, %ecx
movl $0xfffffffc, (%rsp)     # imm = 0xFFFFFFFC
callq 0x5e1b0
movl %eax, %edx
movq -0x90(%rbp), %rax
movslq -0x44(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x40(%rbp), %rdi
movl $0x80, %esi
callq 0x5e540
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x844e7
movq -0x40(%rbp), %rdi
movl -0x4c(%rbp), %ecx
movl $0xe, %esi
xorl %edx, %edx
callq 0x5e0c0
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x78(%rbp), %eax
jge 0x84641
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rax
movslq -0x44(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq 0x5e090
cmpl $0x0, -0x44(%rbp)
jne 0x845f6
movq -0x40(%rbp), %rdi
movl -0x84(%rbp), %esi
callq 0x5e090
movq -0x40(%rbp), %rdi
movl -0x20(%rbp), %edx
addl -0x44(%rbp), %edx
addl $0x1, %edx
movl $0x20, %esi
movl $0x1, %ecx
callq 0x5e0c0
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %edx
movl -0x44(%rbp), %ecx
movl -0x20(%rbp), %r8d
addl -0x78(%rbp), %r8d
addl -0x44(%rbp), %r8d
addl $0x1, %r8d
movl $0x29, %esi
callq 0x5e0f0
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x845c2
movq -0x28(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq 0x9cd0
movq -0x40(%rbp), %rdi
movl -0x4c(%rbp), %esi
callq 0x677f0
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %edx
movl -0x48(%rbp), %ecx
movl $0x7, %esi
callq 0x5e0c0
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %edx
movl $0x36, %esi
callq 0x5ecf0
movq -0x40(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0x64(%rbp), %ecx
movl $0x1d, %esi
callq 0x5e0c0
movq -0x40(%rbp), %rdi
movl -0x20(%rbp), %edx
movl $0x28, %esi
callq 0x5ecf0
movl %eax, -0x50(%rbp)
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x78(%rbp), %eax
jge 0x84783
movq -0x40(%rbp), %rdi
movl -0x70(%rbp), %ecx
movl $0x5e, %esi
xorl %r8d, %r8d
leaq 0x2b77b(%rip), %r9      # 0xafe4e
movl %r8d, %edx
movl $0x0, (%rsp)
callq 0x5e1b0
movq -0x40(%rbp), %rdi
movl -0x70(%rbp), %edx
movl -0x64(%rbp), %ecx
movl -0x64(%rbp), %r8d
movl $0x5b, %esi
callq 0x5e0f0
movq -0x40(%rbp), %rdi
movl -0x20(%rbp), %edx
movl -0x20(%rbp), %ecx
addl -0x44(%rbp), %ecx
addl $0x1, %ecx
movl -0x70(%rbp), %r8d
movl $0x56, %esi
callq 0x5e0f0
movq -0x40(%rbp), %rdi
movl -0x70(%rbp), %edx
movl $0x20, %esi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x5e0c0
movq -0x40(%rbp), %rdi
movl -0x20(%rbp), %edx
addl -0x44(%rbp), %edx
addl $0x1, %edx
movl -0x70(%rbp), %ecx
movl -0x70(%rbp), %r8d
movl $0x59, %esi
callq 0x5e0f0
movq -0x40(%rbp), %rdi
movl -0x70(%rbp), %edx
movl $0x90, %esi
callq 0x5ecf0
movq -0x40(%rbp), %rdi
movl -0x70(%rbp), %edx
movl -0x64(%rbp), %ecx
movl -0x64(%rbp), %r8d
movl $0x5b, %esi
callq 0x5e0f0
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x846b1
movq -0x30(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x8479a
movq -0x40(%rbp), %rdi
movl -0x50(%rbp), %esi
callq 0x5e090
movq -0x40(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl -0x6c(%rbp), %r8d
movl $0x2b, %esi
movl $0x3, %ecx
leaq 0x2cbba(%rip), %r9      # 0xb1370
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x5e1b0
movq -0x40(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x74(%rbp), %ecx
movl $0x41, %esi
callq 0x5e0c0
movq -0x40(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x6c(%rbp), %ecx
movl -0x74(%rbp), %r8d
movl $0x42, %esi
callq 0x5e0f0
movq -0x40(%rbp), %rdi
movl $0x8, %esi
callq 0x5e540
movq -0x30(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x84815
movq -0x40(%rbp), %rdi
movl -0x50(%rbp), %esi
callq 0x5e090
jmp 0x84817
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x84343
cmpq $0x0, -0x18(%rbp)
jne 0x84918
movzbl -0x55(%rbp), %eax
cmpl $0x0, %eax
je 0x84918
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %edx
movq -0x10(%rbp), %rax
movl 0x3c(%rax), %ecx
movl -0x54(%rbp), %r8d
movl $0x30, %esi
callq 0x5e0f0
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %edx
movl -0x64(%rbp), %ecx
movl $0x2c, %esi
callq 0x5e0c0
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %edx
movl $0x36, %esi
callq 0x5ecf0
movq -0x40(%rbp), %rdi
movl -0x64(%rbp), %edx
movl $0x28, %esi
callq 0x5ecf0
movl %eax, -0x50(%rbp)
movq -0x40(%rbp), %rdi
movl -0x60(%rbp), %ecx
movl $0x18, %esi
xorl %edx, %edx
callq 0x5e0c0
movq -0x40(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl -0x6c(%rbp), %r8d
movl $0x2b, %esi
movl $0x3, %ecx
leaq 0x2caac(%rip), %r9      # 0xb1370
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x5e1b0
movq -0x40(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x74(%rbp), %ecx
movl $0x41, %esi
callq 0x5e0c0
movq -0x40(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl -0x6c(%rbp), %ecx
movl -0x74(%rbp), %r8d
movl $0x42, %esi
callq 0x5e0f0
movq -0x40(%rbp), %rdi
movl $0x8, %esi
callq 0x5e540
movq -0x40(%rbp), %rdi
movl -0x50(%rbp), %esi
callq 0x5e090
movq -0x8(%rbp), %rax
movl 0x58(%rax), %eax
cmpl -0x6c(%rbp), %eax
jge 0x8492e
movl -0x6c(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x58(%rax)
addq $0xa0, %rsp
popq %rbp
retq
nopw (%rax,%rax)