// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: constructAutomaticIndex
static void constructAutomaticIndex(
  Parse *pParse,              /* The parsing context */
  WhereClause *pWC,           /* The WHERE clause */
  struct SrcList_item *pSrc,  /* The FROM clause term to get the next index */
  Bitmask notReady,           /* Mask of cursors that are not available */
  WhereLevel *pLevel          /* Write new index here */
){
  int nKeyCol;                /* Number of columns in the constructed index */
  WhereTerm *pTerm;           /* A single term of the WHERE clause */
  WhereTerm *pWCEnd;          /* End of pWC->a[] */
  Index *pIdx;                /* Object describing the transient index */
  Vdbe *v;                    /* Prepared statement under construction */
  int addrInit;               /* Address of the initialization bypass jump */
  Table *pTable;              /* The table being indexed */
  int addrTop;                /* Top of the index fill loop */
  int regRecord;              /* Register holding an index record */
  int n;                      /* Column counter */
  int i;                      /* Loop counter */
  int mxBitCol;               /* Maximum column in pSrc->colUsed */
  CollSeq *pColl;             /* Collating sequence to on a column */
  WhereLoop *pLoop;           /* The Loop object */
  char *zNotUsed;             /* Extra space on the end of pIdx */
  Bitmask idxCols;            /* Bitmap of columns used for indexing */
  Bitmask extraCols;          /* Bitmap of additional columns */
  u8 sentWarning = 0;         /* True if a warnning has been issued */
  Expr *pPartial = 0;         /* Partial Index Expression */
  int iContinue = 0;          /* Jump here to skip excluded rows */
  struct SrcList_item *pTabItem;  /* FROM clause term being indexed */
  int addrCounter = 0;        /* Address where integer counter is initialized */
  int regBase;                /* Array of registers where record is assembled */

  /* Generate code to skip over the creation and initialization of the
  ** transient index on 2nd and subsequent iterations of the loop. */
  v = pParse->pVdbe;
  assert( v!=0 );
  addrInit = sqlite3VdbeAddOp0(v, OP_Once); VdbeCoverage(v);

  /* Count the number of columns that will be added to the index
  ** and used to match WHERE clause constraints */
  nKeyCol = 0;
  pTable = pSrc->pTab;
  pWCEnd = &pWC->a[pWC->nTerm];
  pLoop = pLevel->pWLoop;
  idxCols = 0;
  for(pTerm=pWC->a; pTerm<pWCEnd; pTerm++){
    Expr *pExpr = pTerm->pExpr;
    assert( !ExprHasProperty(pExpr, EP_FromJoin)    /* prereq always non-zero */
         || pExpr->iRightJoinTable!=pSrc->iCursor   /*   for the right-hand   */
         || pLoop->prereq!=0 );                     /*   table of a LEFT JOIN */
    if( pLoop->prereq==0
     && (pTerm->wtFlags & TERM_VIRTUAL)==0
     && !ExprHasProperty(pExpr, EP_FromJoin)
     && sqlite3ExprIsTableConstant(pExpr, pSrc->iCursor) ){
      pPartial = sqlite3ExprAnd(pParse, pPartial,
                                sqlite3ExprDup(pParse->db, pExpr, 0));
    }
    if( termCanDriveIndex(pTerm, pSrc, notReady) ){
      int iCol = pTerm->u.leftColumn;
      Bitmask cMask = iCol>=BMS ? MASKBIT(BMS-1) : MASKBIT(iCol);
      testcase( iCol==BMS );
      testcase( iCol==BMS-1 );
      if( !sentWarning ){
        sqlite3_log(SQLITE_WARNING_AUTOINDEX,
            "automatic index on %s(%s)", pTable->zName,
            pTable->aCol[iCol].zName);
        sentWarning = 1;
      }
      if( (idxCols & cMask)==0 ){
        if( whereLoopResize(pParse->db, pLoop, nKeyCol+1) ){
          goto end_auto_index_create;
        }
        pLoop->aLTerm[nKeyCol++] = pTerm;
        idxCols |= cMask;
      }
    }
  }
  assert( nKeyCol>0 );
  pLoop->u.btree.nEq = pLoop->nLTerm = nKeyCol;
  pLoop->wsFlags = WHERE_COLUMN_EQ | WHERE_IDX_ONLY | WHERE_INDEXED
                     | WHERE_AUTO_INDEX;

  /* Count the number of additional columns needed to create a
  ** covering index.  A "covering index" is an index that contains all
  ** columns that are needed by the query.  With a covering index, the
  ** original table never needs to be accessed.  Automatic indices must
  ** be a covering index because the index will not be updated if the
  ** original table changes and the index and table cannot both be used
  ** if they go out of sync.
  */
  extraCols = pSrc->colUsed & (~idxCols | MASKBIT(BMS-1));
  mxBitCol = MIN(BMS-1,pTable->nCol);
  testcase( pTable->nCol==BMS-1 );
  testcase( pTable->nCol==BMS-2 );
  for(i=0; i<mxBitCol; i++){
    if( extraCols & MASKBIT(i) ) nKeyCol++;
  }
  if( pSrc->colUsed & MASKBIT(BMS-1) ){
    nKeyCol += pTable->nCol - BMS + 1;
  }

  /* Construct the Index object to describe this index */
  pIdx = sqlite3AllocateIndexObject(pParse->db, nKeyCol+1, 0, &zNotUsed);
  if( pIdx==0 ) goto end_auto_index_create;
  pLoop->u.btree.pIndex = pIdx;
  pIdx->zName = "auto-index";
  pIdx->pTable = pTable;
  n = 0;
  idxCols = 0;
  for(pTerm=pWC->a; pTerm<pWCEnd; pTerm++){
    if( termCanDriveIndex(pTerm, pSrc, notReady) ){
      int iCol = pTerm->u.leftColumn;
      Bitmask cMask = iCol>=BMS ? MASKBIT(BMS-1) : MASKBIT(iCol);
      testcase( iCol==BMS-1 );
      testcase( iCol==BMS );
      if( (idxCols & cMask)==0 ){
        Expr *pX = pTerm->pExpr;
        idxCols |= cMask;
        pIdx->aiColumn[n] = pTerm->u.leftColumn;
        pColl = sqlite3ExprCompareCollSeq(pParse, pX);
        assert( pColl!=0 || pParse->nErr>0 ); /* TH3 collate01.800 */
        pIdx->azColl[n] = pColl ? pColl->zName : sqlite3StrBINARY;
        n++;
      }
    }
  }
  assert( (u32)n==pLoop->u.btree.nEq );

  /* Add additional columns needed to make the automatic index into
  ** a covering index */
  for(i=0; i<mxBitCol; i++){
    if( extraCols & MASKBIT(i) ){
      pIdx->aiColumn[n] = i;
      pIdx->azColl[n] = sqlite3StrBINARY;
      n++;
    }
  }
  if( pSrc->colUsed & MASKBIT(BMS-1) ){
    for(i=BMS-1; i<pTable->nCol; i++){
      pIdx->aiColumn[n] = i;
      pIdx->azColl[n] = sqlite3StrBINARY;
      n++;
    }
  }
  assert( n==nKeyCol );
  pIdx->aiColumn[n] = XN_ROWID;
  pIdx->azColl[n] = sqlite3StrBINARY;

  /* Create the automatic index */
  assert( pLevel->iIdxCur>=0 );
  pLevel->iIdxCur = pParse->nTab++;
  sqlite3VdbeAddOp2(v, OP_OpenAutoindex, pLevel->iIdxCur, nKeyCol+1);
  sqlite3VdbeSetP4KeyInfo(pParse, pIdx);
  VdbeComment((v, "for %s", pTable->zName));

  /* Fill the automatic index with content */
  pTabItem = &pWC->pWInfo->pTabList->a[pLevel->iFrom];
  if( pTabItem->fg.viaCoroutine ){
    int regYield = pTabItem->regReturn;
    addrCounter = sqlite3VdbeAddOp2(v, OP_Integer, 0, 0);
    sqlite3VdbeAddOp3(v, OP_InitCoroutine, regYield, 0, pTabItem->addrFillSub);
    addrTop =  sqlite3VdbeAddOp1(v, OP_Yield, regYield);
    VdbeCoverage(v);
    VdbeComment((v, "next row of %s", pTabItem->pTab->zName));
  }else{
    addrTop = sqlite3VdbeAddOp1(v, OP_Rewind, pLevel->iTabCur); VdbeCoverage(v);
  }
  if( pPartial ){
    iContinue = sqlite3VdbeMakeLabel(pParse);
    sqlite3ExprIfFalse(pParse, pPartial, iContinue, SQLITE_JUMPIFNULL);
    pLoop->wsFlags |= WHERE_PARTIALIDX;
  }
  regRecord = sqlite3GetTempReg(pParse);
  regBase = sqlite3GenerateIndexKey(
      pParse, pIdx, pLevel->iTabCur, regRecord, 0, 0, 0, 0
  );
  sqlite3VdbeAddOp2(v, OP_IdxInsert, pLevel->iIdxCur, regRecord);
  sqlite3VdbeChangeP5(v, OPFLAG_USESEEKRESULT);
  if( pPartial ) sqlite3VdbeResolveLabel(v, iContinue);
  if( pTabItem->fg.viaCoroutine ){
    sqlite3VdbeChangeP2(v, addrCounter, regBase+n);
    testcase( pParse->db->mallocFailed );
    assert( pLevel->iIdxCur>0 );
    translateColumnToCopy(pParse, addrTop, pLevel->iTabCur,
                          pTabItem->regResult, pLevel->iIdxCur);
    sqlite3VdbeGoto(v, addrTop);
    pTabItem->fg.viaCoroutine = 0;
  }else{
    sqlite3VdbeAddOp2(v, OP_Next, pLevel->iTabCur, addrTop+1); VdbeCoverage(v);
    sqlite3VdbeChangeP5(v, SQLITE_STMTSTATUS_AUTOINDEX);
  }
  sqlite3VdbeJumpHere(v, addrTop);
  sqlite3ReleaseTempReg(pParse, regRecord);

  /* Jump here when skipping the initialization */
  sqlite3VdbeJumpHere(v, addrInit);

end_auto_index_create:
  sqlite3ExprDelete(pParse->db, pPartial);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movb $0x0, -0xa1(%rbp)
movq $0x0, -0xb0(%rbp)
movl $0x0, -0xb4(%rbp)
movl $0x0, -0xc4(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
movl $0x11, %esi
callq 0x429a40
movl %eax, -0x54(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x14(%rcx), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x88(%rbp)
movq $0x0, -0x98(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x44a245
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xd0(%rbp)
movq -0x88(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x44a118
movq -0x38(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x44a118
movq -0xd0(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x44a118
movq -0xd0(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x40(%rax), %esi
callq 0x4487f0
cmpl $0x0, %eax
je 0x44a118
movq -0x8(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0xd0(%rbp), %rsi
xorl %edx, %edx
callq 0x42dee0
movq -0x110(%rbp), %rdi
movq -0x108(%rbp), %rsi
movq %rax, %rdx
callq 0x4229d0
movq %rax, -0xb0(%rbp)
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x453920
cmpl $0x0, %eax
je 0x44a232
movq -0x38(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0xd4(%rbp)
cmpl $0x40, -0xd4(%rbp)
jl 0x44a15b
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, -0x118(%rbp)
jmp 0x44a172
movl -0xd4(%rbp), %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0xe0(%rbp)
cmpb $0x0, -0xa1(%rbp)
jne 0x44a1c3
movq -0x60(%rbp), %rax
movq (%rax), %rdx
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0xd4(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movl $0x11c, %edi            # imm = 0x11C
leaq 0x163c7d(%rip), %rsi    # 0x5ade32
movb $0x0, %al
callq 0x3c3970
movb $0x1, -0xa1(%rbp)
movq -0x98(%rbp), %rax
andq -0xe0(%rbp), %rax
cmpq $0x0, %rax
jne 0x44a230
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x88(%rbp), %rsi
movl -0x2c(%rbp), %edx
addl $0x1, %edx
callq 0x4527a0
cmpl $0x0, %eax
je 0x44a1fa
jmp 0x44a874
movq -0x38(%rbp), %rdx
movq -0x88(%rbp), %rax
movq 0x38(%rax), %rax
movl -0x2c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x2c(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movq -0xe0(%rbp), %rax
orq -0x98(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0x44a232
jmp 0x44a234
movq -0x38(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x38(%rbp)
jmp 0x44a066
movl -0x2c(%rbp), %eax
movw %ax, %cx
movq -0x88(%rbp), %rax
movw %cx, 0x2c(%rax)
movq -0x88(%rbp), %rax
movw %cx, 0x18(%rax)
movq -0x88(%rbp), %rax
movl $0x4241, 0x28(%rax)     # imm = 0x4241
movq -0x18(%rbp), %rax
movq 0x58(%rax), %rax
movq -0x98(%rbp), %rcx
xorq $-0x1, %rcx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
orq %rdx, %rcx
andq %rcx, %rax
movq %rax, -0xa0(%rbp)
movq -0x60(%rbp), %rax
movswl 0x46(%rax), %ecx
movl $0x3f, %eax
cmpl %ecx, %eax
jge 0x44a2b7
movl $0x3f, %eax
movl %eax, -0x11c(%rbp)
jmp 0x44a2c5
movq -0x60(%rbp), %rax
movswl 0x46(%rax), %eax
movl %eax, -0x11c(%rbp)
movl -0x11c(%rbp), %eax
movl %eax, -0x74(%rbp)
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x44a311
movq -0xa0(%rbp), %rax
movl -0x70(%rbp), %ecx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
je 0x44a304
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x44a306
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x44a2d5
movq -0x18(%rbp), %rcx
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
andq 0x58(%rcx), %rax
cmpq $0x0, %rax
je 0x44a33d
movq -0x60(%rbp), %rax
movswl 0x46(%rax), %eax
subl $0x40, %eax
addl $0x1, %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movl -0x2c(%rbp), %eax
addl $0x1, %eax
xorl %edx, %edx
leaq -0x90(%rbp), %rcx
movswl %ax, %esi
callq 0x43d0f0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x44a36b
jmp 0x44a874
movq -0x48(%rbp), %rcx
movq -0x88(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x48(%rbp), %rax
leaq 0x163ac7(%rip), %rcx    # 0x5ade4c
movq %rcx, (%rax)
movq -0x60(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x18(%rax)
movl $0x0, -0x6c(%rbp)
movq $0x0, -0x98(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x44a4ed
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x453920
cmpl $0x0, %eax
je 0x44a4da
movq -0x38(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0xe4(%rbp)
cmpl $0x40, -0xe4(%rbp)
jl 0x44a403
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, -0x128(%rbp)
jmp 0x44a41a
movl -0xe4(%rbp), %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x98(%rbp), %rax
andq -0xf0(%rbp), %rax
cmpq $0x0, %rax
jne 0x44a4d8
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xf8(%rbp)
movq -0xf0(%rbp), %rax
orq -0x98(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x38(%rbp), %rax
movl 0x28(%rax), %eax
movw %ax, %dx
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x6c(%rbp), %rcx
movw %dx, (%rax,%rcx,2)
movq -0x8(%rbp), %rdi
movq -0xf8(%rbp), %rsi
callq 0x3cf220
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
je 0x44a4a8
movq -0x80(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x130(%rbp)
jmp 0x44a4b8
leaq 0x15c826(%rip), %rax    # 0x5a6cd5
movq %rax, -0x130(%rbp)
jmp 0x44a4b8
movq -0x130(%rbp), %rdx
movq -0x48(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x6c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x44a4da
jmp 0x44a4dc
movq -0x38(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x38(%rbp)
jmp 0x44a3b2
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x44a55d
movq -0xa0(%rbp), %rax
movl -0x70(%rbp), %ecx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
je 0x44a550
movl -0x70(%rbp), %eax
movw %ax, %dx
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x6c(%rbp), %rcx
movw %dx, (%rax,%rcx,2)
movq -0x48(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x6c(%rbp), %rcx
leaq 0x15c792(%rip), %rdx    # 0x5a6cd5
movq %rdx, (%rax,%rcx,8)
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x44a552
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x44a4f4
movq -0x18(%rbp), %rcx
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
andq 0x58(%rcx), %rax
cmpq $0x0, %rax
je 0x44a5ce
movl $0x3f, -0x70(%rbp)
movl -0x70(%rbp), %eax
movq -0x60(%rbp), %rcx
movswl 0x46(%rcx), %ecx
cmpl %ecx, %eax
jge 0x44a5cc
movl -0x70(%rbp), %eax
movw %ax, %dx
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x6c(%rbp), %rcx
movw %dx, (%rax,%rcx,2)
movq -0x48(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x6c(%rbp), %rcx
leaq 0x15c721(%rip), %rdx    # 0x5a6cd5
movq %rdx, (%rax,%rcx,8)
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x44a57c
jmp 0x44a5ce
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x6c(%rbp), %rcx
movw $0xffff, (%rax,%rcx,2)  # imm = 0xFFFF
movq -0x48(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x6c(%rbp), %rcx
leaq 0x15c6e2(%rip), %rdx    # 0x5a6cd5
movq %rdx, (%rax,%rcx,8)
movq -0x8(%rbp), %rax
movl 0x34(%rax), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x34(%rax)
movq -0x28(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x50(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x8(%rax), %edx
movl -0x2c(%rbp), %ecx
addl $0x1, %ecx
movl $0x63, %esi
callq 0x410100
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x42a150
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
addq $0x8, %rax
movq -0x28(%rbp), %rcx
movzbl 0x34(%rcx), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movb 0x3d(%rax), %al
shrb $0x4, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x44a6d3
movq -0xc0(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0xfc(%rbp)
movq -0x50(%rbp), %rdi
movl $0x45, %esi
xorl %ecx, %ecx
movl %ecx, %edx
callq 0x410100
movl %eax, -0xc4(%rbp)
movq -0x50(%rbp), %rdi
movl -0xfc(%rbp), %edx
movq -0xc0(%rbp), %rax
movl 0x30(%rax), %r8d
movl $0xd, %esi
xorl %ecx, %ecx
callq 0x410130
movq -0x50(%rbp), %rdi
movl -0xfc(%rbp), %edx
movl $0xe, %esi
callq 0x42ba70
movl %eax, -0x64(%rbp)
jmp 0x44a6eb
movq -0x50(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %edx
movl $0x25, %esi
callq 0x42ba70
movl %eax, -0x64(%rbp)
cmpq $0x0, -0xb0(%rbp)
je 0x44a732
movq -0x8(%rbp), %rdi
callq 0x42d540
movl %eax, -0xb4(%rbp)
movq -0x8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movl -0xb4(%rbp), %edx
movl $0x10, %ecx
callq 0x42e060
movq -0x88(%rbp), %rax
movl 0x28(%rax), %ecx
orl $0x20000, %ecx          # imm = 0x20000
movl %ecx, 0x28(%rax)
movq -0x8(%rbp), %rdi
callq 0x42f190
movl %eax, -0x68(%rbp)
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %edx
movl -0x68(%rbp), %ecx
xorl %r8d, %r8d
xorl %eax, %eax
movl %eax, %r9d
movq $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x43d9d0
movl %eax, -0xc8(%rbp)
movq -0x50(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x8(%rax), %edx
movl -0x68(%rbp), %ecx
movl $0x82, %esi
callq 0x410100
movq -0x50(%rbp), %rdi
movl $0x10, %esi
callq 0x3cb9f0
cmpq $0x0, -0xb0(%rbp)
je 0x44a7b2
movq -0x50(%rbp), %rdi
movl -0xb4(%rbp), %esi
callq 0x42dc90
movq -0xc0(%rbp), %rax
movb 0x3d(%rax), %al
shrb $0x4, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x44a827
movq -0x50(%rbp), %rdi
movl -0xc4(%rbp), %esi
movl -0xc8(%rbp), %edx
addl -0x6c(%rbp), %edx
callq 0x429de0
movq -0x8(%rbp), %rdi
movl -0x64(%rbp), %esi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %edx
movq -0xc0(%rbp), %rax
movl 0x38(%rax), %ecx
movq -0x28(%rbp), %rax
movl 0x8(%rax), %r8d
callq 0x455bd0
movq -0x50(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x429db0
movq -0xc0(%rbp), %rax
movb 0x3d(%rax), %cl
andb $-0x11, %cl
orb $0x0, %cl
movb %cl, 0x3d(%rax)
jmp 0x44a850
movq -0x50(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %edx
movl -0x64(%rbp), %ecx
addl $0x1, %ecx
movl $0x5, %esi
callq 0x410100
movq -0x50(%rbp), %rdi
movl $0x3, %esi
callq 0x3cb9f0
movq -0x50(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x429a70
movq -0x8(%rbp), %rdi
movl -0x68(%rbp), %esi
callq 0x42e560
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %esi
callq 0x429a70
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0xb0(%rbp), %rsi
callq 0x40c670
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq