// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3WhereBegin
SQLITE_PRIVATE WhereInfo *sqlite3WhereBegin(
  Parse *pParse,        /* The parser context */
  SrcList *pTabList,    /* FROM clause: A list of all tables to be scanned */
  Expr *pWhere,         /* The WHERE clause */
  ExprList *pOrderBy,   /* An ORDER BY clause, or NULL */
  ExprList *pResultSet, /* Result set of the query */
  u16 wctrlFlags,       /* One of the WHERE_* flags defined in sqliteInt.h */
  int iIdxCur           /* If WHERE_ONETABLE_ONLY is set, index cursor number */
){
  int nByteWInfo;            /* Num. bytes allocated for WhereInfo struct */
  int nTabList;              /* Number of elements in pTabList */
  WhereInfo *pWInfo;         /* Will become the return value of this function */
  Vdbe *v = pParse->pVdbe;   /* The virtual database engine */
  Bitmask notReady;          /* Cursors that are not yet positioned */
  WhereLoopBuilder sWLB;     /* The WhereLoop builder */
  WhereMaskSet *pMaskSet;    /* The expression mask set */
  WhereLevel *pLevel;        /* A single level in pWInfo->a[] */
  WhereLoop *pLoop;          /* Pointer to a single WhereLoop object */
  int ii;                    /* Loop counter */
  sqlite3 *db;               /* Database connection */
  int rc;                    /* Return code */


  /* Variable initialization */
  db = pParse->db;
  memset(&sWLB, 0, sizeof(sWLB));
  sWLB.pOrderBy = pOrderBy;

  /* Disable the DISTINCT optimization if SQLITE_DistinctOpt is set via
  ** sqlite3_test_ctrl(SQLITE_TESTCTRL_OPTIMIZATIONS,...) */
  if( OptimizationDisabled(db, SQLITE_DistinctOpt) ){
    wctrlFlags &= ~WHERE_WANT_DISTINCT;
  }

  /* The number of tables in the FROM clause is limited by the number of
  ** bits in a Bitmask 
  */
  testcase( pTabList->nSrc==BMS );
  if( pTabList->nSrc>BMS ){
    sqlite3ErrorMsg(pParse, "at most %d tables in a join", BMS);
    return 0;
  }

  /* This function normally generates a nested loop for all tables in 
  ** pTabList.  But if the WHERE_ONETABLE_ONLY flag is set, then we should
  ** only generate code for the first table in pTabList and assume that
  ** any cursors associated with subsequent tables are uninitialized.
  */
  nTabList = (wctrlFlags & WHERE_ONETABLE_ONLY) ? 1 : pTabList->nSrc;

  /* Allocate and initialize the WhereInfo structure that will become the
  ** return value. A single allocation is used to store the WhereInfo
  ** struct, the contents of WhereInfo.a[], the WhereClause structure
  ** and the WhereMaskSet structure. Since WhereClause contains an 8-byte
  ** field (type Bitmask) it must be aligned on an 8-byte boundary on
  ** some architectures. Hence the ROUND8() below.
  */
  nByteWInfo = ROUND8(sizeof(WhereInfo)+(nTabList-1)*sizeof(WhereLevel));
  pWInfo = sqlite3DbMallocZero(db, nByteWInfo + sizeof(WhereLoop));
  if( db->mallocFailed ){
    sqlite3DbFree(db, pWInfo);
    pWInfo = 0;
    goto whereBeginError;
  }
  pWInfo->nLevel = nTabList;
  pWInfo->pParse = pParse;
  pWInfo->pTabList = pTabList;
  pWInfo->pOrderBy = pOrderBy;
  pWInfo->pResultSet = pResultSet;
  pWInfo->iBreak = sqlite3VdbeMakeLabel(v);
  pWInfo->wctrlFlags = wctrlFlags;
  pWInfo->savedNQueryLoop = pParse->nQueryLoop;
  pMaskSet = &pWInfo->sMaskSet;
  sWLB.pWInfo = pWInfo;
  sWLB.pWC = &pWInfo->sWC;
  sWLB.pNew = (WhereLoop*)(((char*)pWInfo)+nByteWInfo);
  assert( EIGHT_BYTE_ALIGNMENT(sWLB.pNew) );
  whereLoopInit(sWLB.pNew);
#ifdef SQLITE_DEBUG
  sWLB.pNew->cId = '*';
#endif

  /* Split the WHERE clause into separate subexpressions where each
  ** subexpression is separated by an AND operator.
  */
  initMaskSet(pMaskSet);
  whereClauseInit(&pWInfo->sWC, pWInfo);
  sqlite3ExprCodeConstants(pParse, pWhere);
  whereSplit(&pWInfo->sWC, pWhere, TK_AND);
  sqlite3CodeVerifySchema(pParse, -1); /* Insert the cookie verifier Goto */
    
  /* Special case: a WHERE clause that is constant.  Evaluate the
  ** expression and either jump over all of the code or fall thru.
  */
  if( pWhere && (nTabList==0 || sqlite3ExprIsConstantNotJoin(pWhere)) ){
    sqlite3ExprIfFalse(pParse, pWhere, pWInfo->iBreak, SQLITE_JUMPIFNULL);
    pWhere = 0;
  }

  /* Special case: No FROM clause
  */
  if( nTabList==0 ){
    if( pOrderBy ) pWInfo->bOBSat = 1;
    if( wctrlFlags & WHERE_WANT_DISTINCT ){
      pWInfo->eDistinct = WHERE_DISTINCT_UNIQUE;
    }
  }

  /* Assign a bit from the bitmask to every term in the FROM clause.
  **
  ** When assigning bitmask values to FROM clause cursors, it must be
  ** the case that if X is the bitmask for the N-th FROM clause term then
  ** the bitmask for all FROM clause terms to the left of the N-th term
  ** is (X-1).   An expression from the ON clause of a LEFT JOIN can use
  ** its Expr.iRightJoinTable value to find the bitmask of the right table
  ** of the join.  Subtracting one from the right table bitmask gives a
  ** bitmask for all tables to the left of the join.  Knowing the bitmask
  ** for all tables to the left of a left join is important.  Ticket #3015.
  **
  ** Note that bitmasks are created for all pTabList->nSrc tables in
  ** pTabList, not just the first nTabList tables.  nTabList is normally
  ** equal to pTabList->nSrc but might be shortened to 1 if the
  ** WHERE_ONETABLE_ONLY flag is set.
  */
  for(ii=0; ii<pTabList->nSrc; ii++){
    createMask(pMaskSet, pTabList->a[ii].iCursor);
  }
#ifndef NDEBUG
  {
    Bitmask toTheLeft = 0;
    for(ii=0; ii<pTabList->nSrc; ii++){
      Bitmask m = getMask(pMaskSet, pTabList->a[ii].iCursor);
      assert( (m-1)==toTheLeft );
      toTheLeft |= m;
    }
  }
#endif

  /* Analyze all of the subexpressions.  Note that exprAnalyze() might
  ** add new virtual terms onto the end of the WHERE clause.  We do not
  ** want to analyze these virtual terms, so start analyzing at the end
  ** and work forward so that the added virtual terms are never processed.
  */
  exprAnalyzeAll(pTabList, &pWInfo->sWC);
  if( db->mallocFailed ){
    goto whereBeginError;
  }

  /* If the ORDER BY (or GROUP BY) clause contains references to general
  ** expressions, then we won't be able to satisfy it using indices, so
  ** go ahead and disable it now.
  */
  if( pOrderBy && (wctrlFlags & WHERE_WANT_DISTINCT)!=0 ){
    for(ii=0; ii<pOrderBy->nExpr; ii++){
      Expr *pExpr = sqlite3ExprSkipCollate(pOrderBy->a[ii].pExpr);
      if( pExpr->op!=TK_COLUMN ){
        pWInfo->pOrderBy = pOrderBy = 0;
        break;
      }else if( pExpr->iColumn<0 ){
        break;
      }
    }
  }

  if( wctrlFlags & WHERE_WANT_DISTINCT ){
    if( isDistinctRedundant(pParse, pTabList, &pWInfo->sWC, pResultSet) ){
      /* The DISTINCT marking is pointless.  Ignore it. */
      pWInfo->eDistinct = WHERE_DISTINCT_UNIQUE;
    }else if( pOrderBy==0 ){
      /* Try to ORDER BY the result set to make distinct processing easier */
      pWInfo->wctrlFlags |= WHERE_DISTINCTBY;
      pWInfo->pOrderBy = pResultSet;
    }
  }

  /* Construct the WhereLoop objects */
  WHERETRACE(0xffff,("*** Optimizer Start ***\n"));
  if( nTabList!=1 || whereShortCut(&sWLB)==0 ){
    rc = whereLoopAddAll(&sWLB);
    if( rc ) goto whereBeginError;
  
    /* Display all of the WhereLoop objects if wheretrace is enabled */
#ifdef WHERETRACE_ENABLED
    if( sqlite3WhereTrace ){
      WhereLoop *p;
      int i;
      static char zLabel[] = "0123456789abcdefghijklmnopqrstuvwyxz"
                                       "ABCDEFGHIJKLMNOPQRSTUVWYXZ";
      for(p=pWInfo->pLoops, i=0; p; p=p->pNextLoop, i++){
        p->cId = zLabel[i%sizeof(zLabel)];
        whereLoopPrint(p, pTabList);
      }
    }
#endif
  
    wherePathSolver(pWInfo, 0);
    if( db->mallocFailed ) goto whereBeginError;
    if( pWInfo->pOrderBy ){
       wherePathSolver(pWInfo, pWInfo->nRowOut+1);
       if( db->mallocFailed ) goto whereBeginError;
    }
  }
  if( pWInfo->pOrderBy==0 && (db->flags & SQLITE_ReverseOrder)!=0 ){
     pWInfo->revMask = (Bitmask)(-1);
  }
  if( pParse->nErr || NEVER(db->mallocFailed) ){
    goto whereBeginError;
  }
#ifdef WHERETRACE_ENABLED
  if( sqlite3WhereTrace ){
    int ii;
    sqlite3DebugPrintf("---- Solution nRow=%d", pWInfo->nRowOut);
    if( pWInfo->bOBSat ){
      sqlite3DebugPrintf(" ORDERBY=0x%llx", pWInfo->revMask);
    }
    switch( pWInfo->eDistinct ){
      case WHERE_DISTINCT_UNIQUE: {
        sqlite3DebugPrintf("  DISTINCT=unique");
        break;
      }
      case WHERE_DISTINCT_ORDERED: {
        sqlite3DebugPrintf("  DISTINCT=ordered");
        break;
      }
      case WHERE_DISTINCT_UNORDERED: {
        sqlite3DebugPrintf("  DISTINCT=unordered");
        break;
      }
    }
    sqlite3DebugPrintf("\n");
    for(ii=0; ii<pWInfo->nLevel; ii++){
      whereLoopPrint(pWInfo->a[ii].pWLoop, pTabList);
    }
  }
#endif
  /* Attempt to omit tables from the join that do not effect the result */
  if( pWInfo->nLevel>=2
   && pResultSet!=0
   && OptimizationEnabled(db, SQLITE_OmitNoopJoin)
  ){
    Bitmask tabUsed = exprListTableUsage(pMaskSet, pResultSet);
    if( sWLB.pOrderBy ) tabUsed |= exprListTableUsage(pMaskSet, sWLB.pOrderBy);
    while( pWInfo->nLevel>=2 ){
      WhereTerm *pTerm, *pEnd;
      pLoop = pWInfo->a[pWInfo->nLevel-1].pWLoop;
      if( (pWInfo->pTabList->a[pLoop->iTab].jointype & JT_LEFT)==0 ) break;
      if( (wctrlFlags & WHERE_WANT_DISTINCT)==0
       && (pLoop->wsFlags & WHERE_ONEROW)==0
      ){
        break;
      }
      if( (tabUsed & pLoop->maskSelf)!=0 ) break;
      pEnd = sWLB.pWC->a + sWLB.pWC->nTerm;
      for(pTerm=sWLB.pWC->a; pTerm<pEnd; pTerm++){
        if( (pTerm->prereqAll & pLoop->maskSelf)!=0
         && !ExprHasProperty(pTerm->pExpr, EP_FromJoin)
        ){
          break;
        }
      }
      if( pTerm<pEnd ) break;
      WHERETRACE(0xffff, ("-> drop loop %c not used\n", pLoop->cId));
      pWInfo->nLevel--;
      nTabList--;
    }
  }
  WHERETRACE(0xffff,("*** Optimizer Finished ***\n"));
  pWInfo->pParse->nQueryLoop += pWInfo->nRowOut;

  /* If the caller is an UPDATE or DELETE statement that is requesting
  ** to use a one-pass algorithm, determine if this is appropriate.
  ** The one-pass algorithm only works if the WHERE clause constraints
  ** the statement to update a single row.
  */
  assert( (wctrlFlags & WHERE_ONEPASS_DESIRED)==0 || pWInfo->nLevel==1 );
  if( (wctrlFlags & WHERE_ONEPASS_DESIRED)!=0 
   && (pWInfo->a[0].pWLoop->wsFlags & WHERE_ONEROW)!=0 ){
    pWInfo->okOnePass = 1;
    pWInfo->a[0].pWLoop->wsFlags &= ~WHERE_IDX_ONLY;
  }

  /* Open all tables in the pTabList and any indices selected for
  ** searching those tables.
  */
  notReady = ~(Bitmask)0;
  for(ii=0, pLevel=pWInfo->a; ii<nTabList; ii++, pLevel++){
    Table *pTab;     /* Table to open */
    int iDb;         /* Index of database containing table/index */
    struct SrcList_item *pTabItem;

    pTabItem = &pTabList->a[pLevel->iFrom];
    pTab = pTabItem->pTab;
    iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
    pLoop = pLevel->pWLoop;
    if( (pTab->tabFlags & TF_Ephemeral)!=0 || pTab->pSelect ){
      /* Do nothing */
    }else
#ifndef SQLITE_OMIT_VIRTUALTABLE
    if( (pLoop->wsFlags & WHERE_VIRTUALTABLE)!=0 ){
      const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
      int iCur = pTabItem->iCursor;
      sqlite3VdbeAddOp4(v, OP_VOpen, iCur, 0, 0, pVTab, P4_VTAB);
    }else if( IsVirtual(pTab) ){
      /* noop */
    }else
#endif
    if( (pLoop->wsFlags & WHERE_IDX_ONLY)==0
         && (wctrlFlags & WHERE_OMIT_OPEN_CLOSE)==0 ){
      int op = pWInfo->okOnePass ? OP_OpenWrite : OP_OpenRead;
      sqlite3OpenTable(pParse, pTabItem->iCursor, iDb, pTab, op);
      testcase( !pWInfo->okOnePass && pTab->nCol==BMS-1 );
      testcase( !pWInfo->okOnePass && pTab->nCol==BMS );
      if( !pWInfo->okOnePass && pTab->nCol<BMS ){
        Bitmask b = pTabItem->colUsed;
        int n = 0;
        for(; b; b=b>>1, n++){}
        sqlite3VdbeChangeP4(v, sqlite3VdbeCurrentAddr(v)-1, 
                            SQLITE_INT_TO_PTR(n), P4_INT32);
        assert( n<=pTab->nCol );
      }
    }else{
      sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
    }
    if( pLoop->wsFlags & WHERE_INDEXED ){
      Index *pIx = pLoop->u.btree.pIndex;
      KeyInfo *pKey = sqlite3IndexKeyinfo(pParse, pIx);
      /* FIXME:  As an optimization use pTabItem->iCursor if WHERE_IDX_ONLY */
      int iIndexCur = pLevel->iIdxCur = iIdxCur ? iIdxCur : pParse->nTab++;
      assert( pIx->pSchema==pTab->pSchema );
      assert( iIndexCur>=0 );
      sqlite3VdbeAddOp4(v, OP_OpenRead, iIndexCur, pIx->tnum, iDb,
                        (char*)pKey, P4_KEYINFO_HANDOFF);
      VdbeComment((v, "%s", pIx->zName));
    }
    sqlite3CodeVerifySchema(pParse, iDb);
    notReady &= ~getMask(&pWInfo->sMaskSet, pTabItem->iCursor);
  }
  pWInfo->iTop = sqlite3VdbeCurrentAddr(v);
  if( db->mallocFailed ) goto whereBeginError;

  /* Generate the code to do the search.  Each iteration of the for
  ** loop below generates code for a single nested loop of the VM
  ** program.
  */
  notReady = ~(Bitmask)0;
  for(ii=0; ii<nTabList; ii++){
    pLevel = &pWInfo->a[ii];
#ifndef SQLITE_OMIT_AUTOMATIC_INDEX
    if( (pLevel->pWLoop->wsFlags & WHERE_AUTO_INDEX)!=0 ){
      constructAutomaticIndex(pParse, &pWInfo->sWC,
                &pTabList->a[pLevel->iFrom], notReady, pLevel);
      if( db->mallocFailed ) goto whereBeginError;
    }
#endif
    explainOneScan(pParse, pTabList, pLevel, ii, pLevel->iFrom, wctrlFlags);
    pLevel->addrBody = sqlite3VdbeCurrentAddr(v);
    notReady = codeOneLoopStart(pWInfo, ii, notReady);
    pWInfo->iContinue = pLevel->addrCont;
  }

  /* Done. */
  return pWInfo;

  /* Jump here if malloc fails */
whereBeginError:
  if( pWInfo ){
    pParse->nQueryLoop = pWInfo->savedNQueryLoop;
    whereInfoFree(db, pWInfo);
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x428, %rsp            # imm = 0x428
movq %r8, -0xf0(%rbp)
movq %rcx, %rbx
movq 0x10(%rdi), %r8
movq (%rdi), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, -0x160(%rbp)
movaps %xmm0, -0x170(%rbp)
movq $0x0, -0x150(%rbp)
movq %rbx, -0x160(%rbp)
movl %r9d, %r12d
andl $0x7bff, %r12d          # imm = 0x7BFF
testb $0x20, 0x4c(%rcx)
cmovel %r9d, %r12d
movzbl (%rsi), %eax
cmpl $0x41, %eax
jb 0x51ea7
leaq 0x29c07(%rip), %rsi     # 0x7ba9a
xorl %r14d, %r14d
movl $0x40, %edx
xorl %eax, %eax
callq 0x11724
jmp 0x52198
movq %rdx, -0x38(%rbp)
movq %r8, -0x110(%rbp)
movq %rsi, -0x118(%rbp)
movq %rdi, -0x80(%rbp)
movzwl %r12w, %edx
movl %edx, -0x84(%rbp)
testb $0x40, %dl
movl $0x1, %edx
cmovel %eax, %edx
movq %rdx, -0x70(%rbp)
leal (%rdx,%rdx,8), %eax
leal 0x33f(,%rax,8), %r13d
andl $0x7ff8, %r13d          # imm = 0x7FF8
leal 0x60(%r13), %r15d
movq %rcx, -0xd0(%rbp)
movq %rcx, %rdi
movl %r15d, %esi
callq 0x115e9
movq %rax, %r14
testq %rax, %rax
je 0x51f13
movl %r15d, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x8200
movq %r14, -0x30(%rbp)
movq -0xd0(%rbp), %rdi
cmpb $0x0, 0x50(%rdi)
je 0x51f39
movq -0x30(%rbp), %rsi
callq 0x9c3a
xorl %r14d, %r14d
movq -0x80(%rbp), %r15
jmp 0x52176
movq -0x30(%rbp), %r14
movq -0x70(%rbp), %rax
movb %al, 0x38(%r14)
movq -0x80(%rbp), %r15
movq %r15, (%r14)
movq -0x118(%rbp), %rax
movq %rax, 0x8(%r14)
movq %rbx, 0x10(%r14)
movq -0xf0(%rbp), %rax
movq %rax, 0x18(%r14)
movq -0x110(%rbp), %rdi
callq 0x4c4bf
movl %eax, 0x44(%r14)
movw %r12w, 0x32(%r14)
movl 0x1e8(%r15), %eax
movl %eax, 0x48(%r14)
movq %r14, -0x170(%rbp)
leaq 0x150(%r14), %rax
movq %rax, -0xc8(%rbp)
movq %rax, -0x168(%rbp)
leaq (%r14,%r13), %rax
movq %rax, -0xb8(%rbp)
movq %rax, -0x158(%rbp)
leaq 0x40(%r14,%r13), %rax
movq %rax, -0x48(%rbp)
movq %rax, 0x30(%r14,%r13)
movabsq $0x4000000000000, %rax  # imm = 0x4000000000000
movq %rax, 0x28(%r14,%r13)
movl $0x0, 0x4c(%r14)
movq %r14, 0x150(%r14)
movq $0x0, 0x158(%r14)
movabsq $0x800000000, %rax      # imm = 0x800000000
movq %rax, 0x164(%r14)
leaq 0x178(%r14), %rax
movq %rax, 0x170(%r14)
cmpl $0x0, 0x16c(%r15)
movq -0x38(%rbp), %r12
jne 0x52050
movq (%r15), %rax
testb $0x8, 0x4c(%rax)
jne 0x52050
xorps %xmm0, %xmm0
leaq -0x440(%rbp), %rdi
movaps %xmm0, (%rdi)
movaps %xmm0, 0x10(%rdi)
movq $0x0, 0x20(%rdi)
leaq 0x59d9(%rip), %rax      # 0x57a1a
movq %rax, (%rdi)
movq %r15, 0x10(%rdi)
movq %r12, %rsi
callq 0x470d7
movq -0xc8(%rbp), %rdi
movq %r12, %rsi
movl $0x45, %edx
callq 0x56a09
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x45ff7
testq %r12, %r12
movq -0x70(%rbp), %r14
je 0x520e4
testl %r14d, %r14d
je 0x520cd
xorps %xmm0, %xmm0
leaq -0x440(%rbp), %r15
movaps %xmm0, (%r15)
movaps %xmm0, 0x10(%r15)
movq $0x0, 0x20(%r15)
movl $0x3, 0x20(%r15)
leaq -0x6611(%rip), %rax     # 0x4ba98
movq %rax, (%r15)
leaq -0x65d9(%rip), %rax     # 0x4bada
movq %rax, 0x8(%r15)
movq %r15, %rdi
movq %r12, %rsi
callq 0x470d7
cmpl $0x0, 0x20(%r15)
movq -0x80(%rbp), %r15
je 0x520e4
movq -0x30(%rbp), %rax
movl 0x44(%rax), %edx
movq %r15, %rdi
movq %r12, %rsi
movl $0x8, %ecx
callq 0x4c50a
testl %r14d, %r14d
movq -0x30(%rbp), %r8
movq -0x118(%rbp), %r9
jne 0x5210d
testq %rbx, %rbx
je 0x520fe
movb $0x1, 0x34(%r8)
btl $0xa, -0x84(%rbp)
jae 0x5210d
movb $0x1, 0x37(%r8)
movzbl (%r9), %eax
testq %rax, %rax
je 0x5213a
imulq $0x68, %rax, %rax
xorl %ecx, %ecx
movl 0x44(%r9,%rcx), %edx
movslq 0x4c(%r8), %rsi
leal 0x1(%rsi), %edi
movl %edi, 0x4c(%r8)
movl %edx, 0x50(%r8,%rsi,4)
addq $0x68, %rcx
cmpq %rcx, %rax
jne 0x5211c
movl 0x164(%r8), %r14d
testl %r14d, %r14d
movq -0xc8(%rbp), %r12
jle 0x52165
incl %r14d
leal -0x2(%r14), %esi
movq %r12, %rdi
callq 0x57c9f
decl %r14d
cmpl $0x1, %r14d
jg 0x52150
movq -0xd0(%rbp), %rax
cmpb $0x0, 0x50(%rax)
je 0x521ad
movq -0x30(%rbp), %r14
testq %r14, %r14
je 0x52195
movl 0x48(%r14), %eax
movl %eax, 0x1e8(%r15)
movq -0xd0(%rbp), %rdi
movq %r14, %rsi
callq 0x579c0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x428, %rsp            # imm = 0x428
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %rbx, %rbx
je 0x52228
btl $0xa, -0x84(%rbp)
movq -0x30(%rbp), %rsi
movq -0x70(%rbp), %rdi
jae 0x52224
cmpl $0x0, (%rbx)
jle 0x52224
xorl %eax, %eax
movq 0x8(%rbx), %rcx
movq %rax, %rdx
shlq $0x5, %rdx
movq (%rcx,%rdx), %rcx
testq %rcx, %rcx
je 0x521f2
movzbl (%rcx), %edx
cmpl $0x5c, %edx
je 0x521ec
cmpl $0x18, %edx
jne 0x521f2
movq 0x10(%rcx), %rcx
jmp 0x521da
cmpb $-0x68, (%rcx)
jne 0x52201
cmpw $0x0, 0x30(%rcx)
setns %cl
jmp 0x5220d
movq $0x0, 0x10(%rsi)
xorl %ecx, %ecx
xorl %ebx, %ebx
testb %cl, %cl
je 0x5221c
incq %rax
movslq (%rbx), %rcx
cmpq %rcx, %rax
jl 0x521cb
testq %rbx, %rbx
sete %al
jmp 0x52232
xorl %eax, %eax
jmp 0x52232
movb $0x1, %al
movq -0x30(%rbp), %rsi
movq -0x70(%rbp), %rdi
btl $0xa, -0x84(%rbp)
jae 0x524b5
movl %eax, -0x60(%rbp)
movq -0x118(%rbp), %rax
cmpb $0x1, (%rax)
movq -0xc8(%rbp), %rbx
movq -0xf0(%rbp), %rcx
jne 0x5248a
movq -0x118(%rbp), %rax
movl 0x44(%rax), %edx
movl %edx, -0x38(%rbp)
movq 0x28(%rax), %rax
movq %rax, -0x100(%rbp)
movslq (%rcx), %rax
testq %rax, %rax
jle 0x522ca
movq 0x8(%rcx), %rcx
xorl %edx, %edx
movq %rdx, %rsi
shlq $0x5, %rsi
movq (%rcx,%rsi), %rsi
testq %rsi, %rsi
je 0x522aa
movzbl (%rsi), %edi
cmpl $0x5c, %edi
je 0x522a4
cmpl $0x18, %edi
jne 0x522aa
movq 0x10(%rsi), %rsi
jmp 0x52292
cmpb $-0x68, (%rsi)
jne 0x522c2
movl -0x38(%rbp), %edi
cmpl %edi, 0x2c(%rsi)
jne 0x522c2
cmpw $0x0, 0x30(%rsi)
js 0x524a9
incq %rdx
cmpq %rax, %rdx
jne 0x52287
movq -0x100(%rbp), %rax
movq 0x10(%rax), %r14
testq %r14, %r14
je 0x5248a
cmpb $0x0, 0x56(%r14)
je 0x52481
cmpw $0x0, 0x54(%r14)
je 0x52474
xorl %r12d, %r12d
movq 0x8(%r14), %rax
movl (%rax,%r12,4), %edx
movq %rbx, %rdi
movl -0x38(%rbp), %esi
movq $-0x1, %rcx
movl $0x2, %r8d
movq %r14, %r9
callq 0x5910c
movq -0xf0(%rbp), %rdi
testq %rax, %rax
jne 0x52459
movl $0x8, %r15d
cmpl $0x0, (%rdi)
jle 0x52453
movq 0x40(%r14), %rax
movq (%rax,%r12,8), %rax
movq %rax, -0x40(%rbp)
xorl %ebx, %ebx
movq 0x8(%rdi), %rax
movq %rbx, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq %rsi, %rax
testq %rsi, %rsi
je 0x52378
movq %rsi, %rax
movzbl (%rax), %ecx
cmpl $0x5c, %ecx
je 0x5236f
cmpl $0x18, %ecx
jne 0x52378
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x52362
movb $0x1, %r13b
cmpb $-0x68, (%rax)
jne 0x523fa
movswl 0x30(%rax), %ecx
movq 0x8(%r14), %rdx
cmpl %ecx, (%rdx,%r12,4)
jne 0x523fa
movl -0x38(%rbp), %ecx
cmpl %ecx, 0x2c(%rax)
jne 0x523fa
movq -0x80(%rbp), %rdi
callq 0x4b095
leaq 0x23cba(%rip), %r8      # 0x76060
testq %rax, %rax
je 0x523f3
movq (%rax), %rdx
movb (%rdx), %al
testb %al, %al
je 0x523d9
incq %rdx
movq -0x40(%rbp), %rcx
movzbl %al, %esi
movb (%rsi,%r8), %sil
movzbl (%rcx), %edi
cmpb (%rdi,%r8), %sil
jne 0x523dd
incq %rcx
movb (%rdx), %al
incq %rdx
testb %al, %al
jne 0x523bb
jmp 0x523dd
movq -0x40(%rbp), %rcx
movzbl %al, %eax
movb (%rax,%r8), %al
movzbl (%rcx), %ecx
cmpb (%rcx,%r8), %al
jne 0x523f3
xorl %r13d, %r13d
movl %ebx, -0x50(%rbp)
movq -0xf0(%rbp), %rdi
testb %r13b, %r13b
je 0x52415
incq %rbx
movslq (%rdi), %rax
cmpq %rax, %rbx
jl 0x52348
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x52418
movl -0x50(%rbp), %eax
testl %eax, %eax
movq -0xc8(%rbp), %rbx
js 0x52453
movq -0x100(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%r14), %rcx
movslq (%rcx,%r12,4), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
xorl %r15d, %r15d
cmpb $0x0, 0x28(%rax,%rcx)
sete %r15b
setne %al
shll $0x3, %r15d
jmp 0x52455
xorl %eax, %eax
testb %al, %al
je 0x5245c
xorl %r15d, %r15d
testl %r15d, %r15d
jne 0x52477
incq %r12
movzwl 0x54(%r14), %eax
cmpq %rax, %r12
jb 0x522f8
jmp 0x52477
xorl %r12d, %r12d
movzwl 0x54(%r14), %eax
cmpl %eax, %r12d
je 0x524a9
movq 0x28(%r14), %r14
jmp 0x522d5
cmpb $0x0, -0x60(%rbp)
movq -0x30(%rbp), %rsi
movq -0x70(%rbp), %rdi
je 0x524b5
orb $0x2, 0x33(%rsi)
movq -0xf0(%rbp), %rax
movq %rax, 0x10(%rsi)
jmp 0x524b5
movq -0x30(%rbp), %rsi
movb $0x1, 0x37(%rsi)
movq -0x70(%rbp), %rdi
leaq 0x4c(%rsi), %rax
movq %rax, -0x90(%rbp)
cmpl $0x1, %edi
movq -0xb8(%rbp), %rdi
jne 0x524ec
testb $0x20, 0x32(%rsi)
jne 0x524ec
movq 0x8(%rsi), %r15
movq 0x28(%r15), %r14
testb $0x10, 0x46(%r14)
jne 0x524ec
cmpq $0x0, 0x60(%r15)
je 0x52af9
movq (%rsi), %rax
movq 0x8(%rsi), %r8
movq (%rax), %rax
movq %rax, -0x108(%rbp)
movzbl 0x38(%rsi), %ecx
movq -0x48(%rbp), %rax
movq %rax, 0x30(%rdi)
movabsq $0x4000000000000, %rax  # imm = 0x4000000000000
movq %rax, 0x28(%rdi)
movl %ecx, -0x11c(%rbp)
testl %ecx, %ecx
movq -0x80(%rbp), %r15
movq %rsi, %r14
movq -0x90(%rbp), %rbx
je 0x52a89
addq $0x8, %r8
leaq -0x1a8(%rbp), %r12
leaq -0x170(%rbp), %r13
movq (%r13), %rax
movq %rax, -0xa0(%rbp)
movq 0x8(%r13), %rax
movq %rax, -0x78(%rbp)
movq 0x18(%r13), %rax
movq %rax, -0x60(%rbp)
addq $0x18, %rax
movq %rax, -0xc0(%rbp)
movq $0x0, -0xb0(%rbp)
xorl %eax, %eax
xorl %r9d, %r9d
xorl %ecx, %ecx
movl %ecx, -0xa8(%rbp)
movb %cl, 0x10(%rdi)
movslq (%rbx), %rdx
testq %rdx, %rdx
jle 0x525a3
movl 0x3c(%r8), %esi
xorl %ecx, %ecx
cmpl %esi, 0x50(%r14,%rcx,4)
je 0x525a7
incq %rcx
cmpq %rcx, %rdx
jne 0x52594
xorl %edx, %edx
jmp 0x525af
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, 0x8(%rdi)
movb 0x38(%r8), %cl
movb %cl, -0xd8(%rbp)
orb %cl, %al
testb $0xa, %al
movq -0xb0(%rbp), %rsi
movq %r9, -0xe0(%rbp)
cmovneq %r9, %rsi
movq %r8, -0x98(%rbp)
movq 0x20(%r8), %rax
testb $0x10, 0x46(%rax)
movq %rsi, -0xb0(%rbp)
movq %r13, %rdi
jne 0x525f5
callq 0x59b88
jmp 0x525fa
callq 0x59477
testl %eax, %eax
movq -0xb8(%rbp), %rdi
movq -0x98(%rbp), %r8
movq -0xe0(%rbp), %r9
movl -0xa8(%rbp), %ecx
jne 0x52ae5
movq -0xa0(%rbp), %rax
testb $-0x80, 0x32(%rax)
jne 0x52a60
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rdx
movslq 0x14(%rax), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x190(%rbp)
movaps %xmm0, -0x1a0(%rbp)
movaps %xmm0, -0x1b0(%rbp)
movq $0x0, -0x180(%rbp)
testq %rax, %rax
jle 0x52a60
imulq $0x38, %rax, %rax
addq %rdx, %rax
movq %rax, -0x140(%rbp)
xorl %esi, %esi
testb $0x1, 0x19(%rdx)
movq %rdx, -0xe8(%rbp)
je 0x52a12
movq 0x10(%rdx), %rax
movq -0x60(%rbp), %rcx
movq 0x8(%rcx), %rcx
testq %rcx, 0x1e8(%rax)
je 0x52a12
movq 0x20(%rax), %r14
movslq 0x14(%rax), %rax
movq -0x60(%rbp), %rcx
movzbl 0x10(%rcx), %ecx
imulq $0x68, %rcx, %rcx
movq -0xa0(%rbp), %rdx
movq 0x8(%rdx), %rdx
movl 0x44(%rdx,%rcx), %esi
movl %esi, -0x128(%rbp)
movaps -0x170(%rbp), %xmm0
movaps -0x160(%rbp), %xmm1
movaps %xmm1, -0x1d0(%rbp)
movaps %xmm0, -0x1e0(%rbp)
movq $0x0, -0x1d0(%rbp)
leaq -0x218(%rbp), %rsi
movq %rsi, -0x1c0(%rbp)
testq %rax, %rax
jle 0x5296a
imulq $0x38, %rax, %r15
addq %r14, %r15
leaq (%rdx,%rcx), %rax
addq $0x8, %rax
movq %rax, -0x68(%rbp)
xorl %esi, %esi
movl $0x1, -0x58(%rbp)
movq -0xb0(%rbp), %rbx
movq %r15, -0x138(%rbp)
testb $0x2, 0x19(%r14)
jne 0x5277e
movl -0x128(%rbp), %eax
cmpl %eax, 0xc(%r14)
jne 0x5295b
movq -0x78(%rbp), %rcx
movq (%rcx), %rax
movq %rax, -0x440(%rbp)
movq %rcx, -0x438(%rbp)
movb $0x45, -0x430(%rbp)
movl $0x1, -0x42c(%rbp)
movq %r14, -0x420(%rbp)
leaq -0x440(%rbp), %rax
jmp 0x52782
movq 0x10(%r14), %rax
movq %rax, -0x1d8(%rbp)
movw $0x0, -0x218(%rbp)
movq -0x68(%rbp), %rax
movq 0x20(%rax), %rax
testb $0x10, 0x46(%rax)
jne 0x527b3
leaq -0x1e0(%rbp), %rdi
movq %rbx, %rsi
callq 0x59b88
movl %eax, %esi
jmp 0x527e3
leaq -0x1e0(%rbp), %rdi
callq 0x59477
movl %eax, %esi
movzwl -0x218(%rbp), %eax
testq %rax, %rax
je 0x527e3
shll $0x4, %eax
xorl %ecx, %ecx
orq %rbx, -0x210(%rbp,%rcx)
addq $0x10, %rcx
cmpq %rcx, %rax
jne 0x527d2
movzwl -0x218(%rbp), %edx
testq %rdx, %rdx
je 0x5296e
movl %esi, -0xf8(%rbp)
cmpl $0x0, -0x58(%rbp)
jne 0x52923
movq %r12, %r13
movzwl -0x1b0(%rbp), %r12d
movl %r12d, %edx
shll $0x4, %edx
leaq -0x248(%rbp), %rdi
movq %r13, %rsi
callq 0x82f0
movl $0x0, -0x58(%rbp)
movw $0x0, -0x1b0(%rbp)
movq %r12, -0x100(%rbp)
testl %r12d, %r12d
je 0x5294b
movq %r14, -0x130(%rbp)
movq $0x0, -0x48(%rbp)
cmpw $0x0, -0x218(%rbp)
leaq -0x1b0(%rbp), %r14
je 0x528e0
movq -0x48(%rbp), %rax
shlq $0x4, %rax
leaq -0x248(%rbp), %rcx
movq (%rcx,%rax), %rdx
movq %rdx, -0x38(%rbp)
movzwl 0x8(%rcx,%rax), %edx
movl %edx, -0x40(%rbp)
movzwl 0xa(%rcx,%rax), %eax
movl %eax, -0x50(%rbp)
leaq -0x206(%rbp), %r12
xorl %r15d, %r15d
movq -0xa(%r12), %rbx
orq -0x38(%rbp), %rbx
movzwl -0x2(%r12), %esi
movl -0x40(%rbp), %edi
callq 0x5a551
movl %eax, %r13d
movzwl (%r12), %esi
movl -0x50(%rbp), %edi
callq 0x5a551
movzwl %r13w, %edx
movzwl %ax, %ecx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5a3ce
incq %r15
movzwl -0x218(%rbp), %eax
addq $0x10, %r12
cmpq %rax, %r15
jb 0x52894
movq -0x48(%rbp), %rcx
incq %rcx
movq %rcx, -0x48(%rbp)
cmpq -0x100(%rbp), %rcx
jne 0x52852
leaq -0x1a8(%rbp), %r12
leaq -0x170(%rbp), %r13
movq -0xb0(%rbp), %rbx
movl -0xf8(%rbp), %esi
movq -0x130(%rbp), %r14
movq -0x138(%rbp), %r15
jmp 0x5295b
movw %dx, -0x1b0(%rbp)
shll $0x4, %edx
movq %r12, %rdi
leaq -0x210(%rbp), %rsi
callq 0x82f0
movl $0x0, -0x58(%rbp)
movl -0xf8(%rbp), %esi
jmp 0x5295b
movl -0xf8(%rbp), %esi
movq %r13, %r12
leaq -0x170(%rbp), %r13
addq $0x38, %r14
cmpq %r15, %r14
jb 0x52731
jmp 0x52977
xorl %esi, %esi
jmp 0x52977
movw $0x0, -0x1b0(%rbp)
movq -0x60(%rbp), %rcx
movw $0x1, 0x2c(%rcx)
movq 0x30(%rcx), %rax
movq -0xe8(%rbp), %rdx
movq %rdx, (%rax)
movl $0x2000, 0x28(%rcx)     # imm = 0x2000
movw $0x0, 0x12(%rcx)
movb $0x0, 0x11(%rcx)
movq -0xc0(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movzwl -0x1b0(%rbp), %eax
testl %esi, %esi
sete %cl
testw %ax, %ax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x52a12
movzwl %ax, %ebx
movl $0x1, %r15d
leaq -0x19e(%rbp), %r14
movl -0x2(%r14), %eax
addl $0x12, %eax
movq -0x60(%rbp), %rsi
movw %ax, 0x14(%rsi)
movzwl (%r14), %eax
movw %ax, 0x16(%rsi)
movq -0xa(%r14), %rax
movq %rax, (%rsi)
movq %r13, %rdi
callq 0x5a153
movl %eax, %esi
testl %eax, %eax
jne 0x52a12
leaq 0x1(%r15), %rax
addq $0x10, %r14
cmpq %rbx, %r15
movq %rax, %r15
jb 0x529d6
movq -0xe8(%rbp), %rdx
addq $0x38, %rdx
cmpq -0x140(%rbp), %rdx
jae 0x52a2e
testl %esi, %esi
je 0x52674
testl %esi, %esi
movq -0x80(%rbp), %r15
movq -0x30(%rbp), %r14
movq -0x90(%rbp), %rbx
movq -0xb8(%rbp), %rdi
movq -0x98(%rbp), %r8
movq -0xe0(%rbp), %r9
movl -0xa8(%rbp), %ecx
jne 0x52ae5
movq -0x108(%rbp), %rax
cmpb $0x0, 0x50(%rax)
jne 0x52a89
orq 0x8(%rdi), %r9
incl %ecx
addq $0x68, %r8
movb -0xd8(%rbp), %al
cmpl -0x11c(%rbp), %ecx
jb 0x5257d
movq %rdi, %rsi
movq -0x108(%rbp), %rdi
callq 0x5a07e
movq %r14, %rdi
xorl %esi, %esi
callq 0x56a62
movq -0xd0(%rbp), %rax
cmpb $0x0, 0x50(%rax)
jne 0x52176
cmpq $0x0, 0x10(%r14)
je 0x52c7b
movl 0x30(%r14), %eax
incl %eax
movzwl %ax, %esi
movq %r14, %rdi
callq 0x56a62
movq -0xd0(%rbp), %rax
cmpb $0x0, 0x50(%rax)
jne 0x52176
jmp 0x52c7b
movq %rdi, %rsi
movq -0x108(%rbp), %rdi
callq 0x5a07e
jmp 0x52176
movl 0x44(%r15), %ebx
movl $0x0, 0x28(%rdi)
movq %rdi, %r12
movq -0xc8(%rbp), %rdi
movl %ebx, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movl $0x2, %r8d
xorl %r9d, %r9d
callq 0x5910c
testq %rax, %rax
je 0x52b5c
movl $0x1101, 0x28(%r12)     # imm = 0x1101
movq 0x30(%r12), %rcx
movq %rax, (%rcx)
movw $0x1, 0x2c(%r12)
movl $0x1, 0x18(%r12)
movw $0x21, %ax
movq %r12, %rdi
movw %ax, 0x14(%rdi)
jmp 0x52bf3
movq 0x10(%r14), %r14
testq %r14, %r14
movq %r12, %rdi
je 0x52bf3
cmpb $0x0, 0x56(%r14)
je 0x52be6
cmpq $0x0, 0x48(%r14)
jne 0x52be6
movzwl 0x54(%r14), %eax
cmpw $0x4, %ax
ja 0x52be6
xorl %r12d, %r12d
testw %ax, %ax
je 0x52bd8
movq 0x8(%r14), %rax
movl (%rax,%r12,4), %edx
movq -0xc8(%rbp), %rdi
movl %ebx, %esi
xorl %ecx, %ecx
movl $0x2, %r8d
movq %r14, %r9
callq 0x5910c
testq %rax, %rax
je 0x52bd1
movq -0xb8(%rbp), %rdi
movq 0x30(%rdi), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
movzwl 0x54(%r14), %eax
cmpq %rax, %r12
jb 0x52b8d
jmp 0x52bd8
movq -0xb8(%rbp), %rdi
movzwl 0x54(%r14), %edx
cmpl %edx, %r12d
je 0x54536
movq 0x28(%r14), %r14
testq %r14, %r14
jne 0x52b6c
cmpl $0x0, 0x28(%rdi)
movq -0x30(%rbp), %rsi
je 0x524ec
movw $0x1, 0x16(%rdi)
movq %rdi, 0x378(%rsi)
movslq 0x4c(%rsi), %rdx
testq %rdx, %rdx
movq %rsi, %r14
jle 0x52c33
xorl %eax, %eax
xorl %ecx, %ecx
movq -0x80(%rbp), %r15
cmpl %ebx, 0x50(%r14,%rcx,4)
je 0x52c3b
incq %rcx
cmpq %rcx, %rdx
jne 0x52c22
jmp 0x52c43
xorl %eax, %eax
movq -0x80(%rbp), %r15
jmp 0x52c43
movl $0x1, %eax
shlq %cl, %rax
movq %rax, 0x8(%rdi)
movl %ebx, 0x33c(%r14)
movw $0x1, 0x30(%r14)
cmpq $0x0, 0x10(%r14)
movq -0xd0(%rbp), %rax
je 0x52c68
movb $0x1, 0x34(%r14)
testb $0x4, 0x33(%r14)
movq -0x90(%rbp), %rbx
je 0x52c7b
movb $0x1, 0x37(%r14)
cmpq $0x0, 0x10(%r14)
jne 0x52c90
testb $0x2, 0x2e(%rax)
je 0x52c90
movq $-0x1, 0x28(%r14)
cmpl $0x0, 0x50(%r15)
movq -0xf0(%rbp), %rsi
jne 0x52176
cmpb $0x0, 0x50(%rax)
jne 0x52176
testq %rsi, %rsi
je 0x52d8d
cmpb $0x2, 0x38(%r14)
jb 0x52d8d
testb $0x4, 0x4d(%rax)
jne 0x52d8d
movq %rbx, %rdi
callq 0x56fda
movq %rbx, %rdi
movq %rax, %rbx
movq -0x160(%rbp), %rsi
testq %rsi, %rsi
je 0x52cec
callq 0x56fda
orq %rax, %rbx
movb 0x38(%r14), %al
leaq 0x338(%r14), %rcx
movq -0x168(%rbp), %rdx
cmpb $0x2, %al
jb 0x52d8d
movzbl %al, %esi
decl %esi
leaq (%rsi,%rsi,8), %rsi
movq 0x40(%rcx,%rsi,8), %rsi
movq 0x8(%r14), %rdi
movzbl 0x10(%rsi), %r8d
imulq $0x68, %r8, %r8
testb $0x8, 0x40(%rdi,%r8)
je 0x52d42
btl $0xa, -0x84(%rbp)
jb 0x52d39
testb $0x10, 0x29(%rsi)
je 0x52d42
movq 0x8(%rsi), %rsi
testq %rbx, %rsi
je 0x52d4b
xorl %esi, %esi
testb %sil, %sil
jne 0x52cfe
jmp 0x52d8d
movslq 0x14(%rdx), %r8
testq %r8, %r8
jle 0x52d78
movq 0x20(%rdx), %rdi
imulq $0x38, %r8, %r8
addq %rdi, %r8
testq %rsi, 0x30(%rdi)
je 0x52d6f
movq (%rdi), %r9
testb $0x1, 0x2(%r9)
je 0x52d42
addq $0x38, %rdi
cmpq %r8, %rdi
jb 0x52d5f
decb %al
movb %al, 0x38(%r14)
movq -0x70(%rbp), %rsi
decl %esi
movq %rsi, -0x70(%rbp)
movb $0x1, %sil
jmp 0x52d44
movzwl 0x30(%r14), %eax
movq (%r14), %rcx
addl %eax, 0x1e8(%rcx)
testb $0x4, -0x84(%rbp)
je 0x52dbf
movq 0x378(%r14), %rax
movl 0x28(%rax), %ecx
btl $0xc, %ecx
jae 0x52dbf
movb $0x1, 0x35(%r14)
andl $-0x41, %ecx
movl %ecx, 0x28(%rax)
leaq 0x338(%r14), %rax
movq %rax, -0x138(%rbp)
cmpl $0x0, -0x70(%rbp)
movq -0xd0(%rbp), %rdx
movq -0xc8(%rbp), %rsi
jle 0x52fec
movq -0x118(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x38(%rbp)
movl -0x84(%rbp), %eax
andl $0x10, %eax
movl %eax, -0x40(%rbp)
xorl %r12d, %r12d
movq -0x138(%rbp), %r13
movzbl 0x20(%r13), %eax
imulq $0x68, %rax, %rsi
movq -0x38(%rbp), %rax
movq 0x20(%rax,%rsi), %r14
movq 0x68(%r14), %rax
testq %rax, %rax
je 0x52e52
movl 0x28(%rdx), %ecx
testl %ecx, %ecx
jle 0x52e59
movq 0x20(%rdx), %rdx
addq $0x18, %rdx
xorl %ebx, %ebx
cmpq %rax, (%rdx)
je 0x52e49
incq %rbx
addq $0x20, %rdx
cmpq %rbx, %rcx
jne 0x52e36
movl %ecx, %ebx
movq -0xd0(%rbp), %rdx
jmp 0x52e5b
movl $0xfff0bdc0, %ebx       # imm = 0xFFF0BDC0
jmp 0x52e5b
xorl %ebx, %ebx
movq 0x40(%r13), %r15
movzbl 0x46(%r14), %eax
testb $0x2, %al
jne 0x52ee6
cmpq $0x0, 0x18(%r14)
jne 0x52ee6
addq -0x38(%rbp), %rsi
movl 0x28(%r15), %ecx
btl $0xa, %ecx
jb 0x52ea3
testb $0x10, %al
jne 0x52ee6
andl $0x40, %ecx
orl -0x40(%rbp), %ecx
je 0x52f76
movl 0x3c(%r14), %edx
movq (%r14), %r8
movq -0x80(%rbp), %rdi
movl %ebx, %esi
xorl %ecx, %ecx
callq 0x45c9b
jmp 0x52ee6
movq 0x58(%r14), %r14
testq %r14, %r14
je 0x52eb7
cmpq %rdx, (%r14)
je 0x52eb7
movq 0x28(%r14), %r14
jmp 0x52ea7
movl 0x3c(%rsi), %edx
movq -0x110(%rbp), %rdi
movl $0x89, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45b9e
movq -0x110(%rbp), %rdi
movl %eax, %esi
movq %r14, %rdx
movl $0xfffffff6, %ecx       # imm = 0xFFFFFFF6
callq 0x11975
testb $0x2, 0x29(%r15)
je 0x52f47
movq 0x20(%r15), %r15
movq -0x80(%rbp), %rdi
movq %r15, %rsi
callq 0x4c1d4
movq %rax, %r14
movl 0x10(%rbp), %eax
movl %eax, %edx
testl %eax, %eax
jne 0x52f16
movq -0x80(%rbp), %rcx
movl 0x54(%rcx), %edx
leal 0x1(%rdx), %eax
movl %eax, 0x54(%rcx)
movl %edx, 0x8(%r13)
movl 0x50(%r15), %ecx
movq -0x110(%rbp), %r15
movq %r15, %rdi
movl $0x30, %esi
movl %ebx, %r8d
callq 0x45b9e
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
movl $0xfffffff0, %ecx       # imm = 0xFFFFFFF0
callq 0x11975
movq -0x80(%rbp), %r15
movq %r15, %rdi
movl %ebx, %esi
callq 0x45ff7
incl %r12d
addq $0x48, %r13
cmpl -0x70(%rbp), %r12d
movq -0xd0(%rbp), %rdx
movq -0xc8(%rbp), %rsi
jne 0x52e0a
jmp 0x52fec
movq -0x30(%rbp), %rax
cmpb $0x1, 0x35(%rax)
movl $0x31, %r8d
sbbl $0x0, %r8d
movq %rsi, -0x50(%rbp)
movq -0x50(%rbp), %rax
movl 0x3c(%rax), %esi
movq -0x80(%rbp), %rdi
movl %ebx, %edx
movq %r14, %rcx
callq 0x45c23
movq -0x50(%rbp), %rax
movq -0x30(%rbp), %rcx
cmpb $0x0, 0x35(%rcx)
jne 0x52ee6
cmpw $0x3f, 0x42(%r14)
jg 0x52ee6
movq 0x50(%rax), %rax
bsrq %rax, %rdx
xorq $-0x40, %rdx
addq $0x41, %rdx
testq %rax, %rax
cmoveq %rax, %rdx
movq -0x110(%rbp), %rdi
movl 0x34(%rdi), %esi
decl %esi
movl $0xfffffff2, %ecx       # imm = 0xFFFFFFF2
jmp 0x52ee1
movq -0x110(%rbp), %rdi
movl 0x34(%rdi), %eax
movq -0x30(%rbp), %r14
movl %eax, 0x3c(%r14)
cmpb $0x0, 0x50(%rdx)
jne 0x52176
movq -0x70(%rbp), %rcx
testl %ecx, %ecx
jle 0x52198
movq -0x118(%rbp), %rax
addq $0x8, %rax
movq %rax, -0xf0(%rbp)
movl %ecx, %eax
movq %rax, -0x140(%rbp)
movq %r14, %rbx
addq $0x3a0, %rbx            # imm = 0x3A0
movq $-0x1, -0xf8(%rbp)
xorl %ecx, %ecx
xorl %r13d, %r13d
movl %r13d, -0x130(%rbp)
leaq (%rcx,%rcx,8), %r14
movq -0x138(%rbp), %r12
leaq (%r12,%r14,8), %r13
movq 0x40(%r13), %rax
testb $0x40, 0x29(%rax)
movq %r13, -0x40(%rbp)
je 0x530ab
movzbl 0x20(%r13), %eax
imulq $0x68, %rax, %rdx
addq -0xf0(%rbp), %rdx
movq %r15, %rdi
movq %rcx, %r13
movq -0xf8(%rbp), %rcx
movq -0x40(%rbp), %r8
callq 0x57035
movq %r13, %rcx
movq -0x40(%rbp), %r13
movq -0xd0(%rbp), %rax
cmpb $0x0, 0x50(%rax)
jne 0x52172
movq %rbx, -0x128(%rbp)
movzbl 0x20(%r13), %r8d
movq %r15, %rdi
movq -0x118(%rbp), %rsi
movq %r13, %rdx
movq %rcx, %rbx
movl -0x84(%rbp), %r9d
callq 0x57552
movq -0x110(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, 0x1c(%r13)
movq -0x30(%rbp), %rax
movq 0x28(%rax), %r13
movq %rbx, -0xe8(%rbp)
movl %ebx, %ecx
shrq %cl, %r13
movq 0x40(%r12,%r14,8), %rcx
movq %rcx, -0x60(%rbp)
testb $0x40, 0x28(%rcx)
jne 0x5310d
movl $0x0, -0x50(%rbp)
jmp 0x53117
testb $0x20, 0x32(%rax)
sete %cl
movl %ecx, -0x50(%rbp)
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq (%rcx), %rdx
movq %rdx, -0xb0(%rbp)
movq %rcx, -0x38(%rbp)
movq 0x10(%rcx), %rbx
movzbl 0x20(%r12,%r14,8), %ecx
imulq $0x68, %rcx, %rcx
leaq (%rax,%rcx), %r14
addq $0x8, %r14
movl 0x3c(%r14), %eax
movl %eax, -0x48(%rbp)
movq %rbx, %rdi
callq 0x4c4bf
movl %eax, %r12d
movq -0x40(%rbp), %r15
movl %eax, 0x10(%r15)
movl %eax, 0xc(%r15)
movq %rbx, -0x58(%rbp)
movq %rbx, %rdi
callq 0x4c4bf
movl %eax, -0x100(%rbp)
movl %eax, 0x14(%r15)
cmpb $0x0, 0x20(%r15)
je 0x531a9
testb $0x8, 0x38(%r14)
je 0x531a9
movq -0x38(%rbp), %rax
movl 0x58(%rax), %ecx
incl %ecx
movl %ecx, 0x58(%rax)
movq -0x40(%rbp), %rax
movl %ecx, (%rax)
movq -0x58(%rbp), %rdi
movl $0x15, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x45b9e
testb $0x4, 0x39(%r14)
movq -0x60(%rbp), %r15
jne 0x53221
movl %r13d, %eax
andl $0x1, %eax
movq %rax, -0x68(%rbp)
movl 0x28(%r15), %eax
btl $0xa, %eax
jb 0x53285
btl $0x8, %eax
setae %cl
testb $0x5, %al
sete %dl
orb %cl, %dl
movq -0x38(%rbp), %rdi
movl -0x48(%rbp), %edx
je 0x532aa
movl %eax, %ecx
notl %ecx
testl $0x102, %ecx            # imm = 0x102
jne 0x5373b
movl $0x0, %ecx
movl $0x0, %edx
testb $0x20, %al
je 0x53211
movq 0x30(%r15), %rcx
movq (%rcx), %rcx
movl $0x1, %edx
testb $0x10, %al
jne 0x53842
xorl %r14d, %r14d
jmp 0x5384a
movl 0x30(%r14), %edx
movl 0x34(%r14), %ebx
decl %edx
movq -0x58(%rbp), %r15
movq %r15, %rdi
movl $0x15, %esi
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x45b9e
movq %r15, %rdi
movl $0x11, %esi
movl %ebx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45b9e
movq -0x40(%rbp), %r14
movl %eax, 0x28(%r14)
incl %ebx
movq %r15, %rdi
movl $0x27, %esi
movl %ebx, %edx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x45b9e
xorl %r8d, %r8d
movb $0xe, 0x21(%r14)
movq -0x30(%rbp), %r14
jmp 0x53453
movzwl 0x2c(%r15), %r12d
movq -0x38(%rbp), %rdx
incl 0x6c(%rdx)
leal 0x2(%r12), %esi
movl 0x48(%rdx), %eax
subl %esi, %eax
jge 0x532c6
movl 0x58(%rdx), %eax
leal 0x1(%rax), %edi
addl %esi, %eax
movl %eax, 0x58(%rdx)
jmp 0x532d2
movb 0x1f(%rdi), %al
testb %al, %al
je 0x537a1
decb %al
movb %al, 0x1f(%rdi)
movzbl %al, %eax
movl 0x28(%rdi,%rax,4), %eax
jmp 0x537a9
movl 0x4c(%rdx), %edi
leal (%rdi,%rsi), %ecx
movl %ecx, 0x4c(%rdx)
movl %eax, 0x48(%rdx)
movq -0x40(%rbp), %rax
movq %rsi, -0xa0(%rbp)
movl 0xc(%rax), %eax
movl %eax, -0x50(%rbp)
testl %r12d, %r12d
movq %rdi, -0x78(%rbp)
je 0x5334a
leal 0x2(%rdi), %r14d
movl %r12d, %r13d
xorl %ebx, %ebx
movq 0x30(%r15), %rax
movq (%rax,%rbx,8), %rsi
testq %rsi, %rsi
je 0x53342
leaq (%r14,%rbx), %r9
testb $0x1, 0x18(%rsi)
jne 0x53321
movq (%rsi), %rax
movq 0x18(%rax), %rsi
movq -0x38(%rbp), %rdi
movl %r9d, %edx
callq 0x4e4ba
jmp 0x53342
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %r15
movq %r15, %rdx
movl %ebx, %ecx
movq -0x68(%rbp), %r8
callq 0x5b250
movl 0x10(%r15), %eax
movl %eax, -0x50(%rbp)
movq -0x60(%rbp), %r15
incq %rbx
cmpq %rbx, %r13
jne 0x532f5
movl 0x18(%r15), %edx
movq -0x58(%rbp), %r15
movq %r15, %rdi
movl $0x15, %esi
movq -0x78(%rbp), %r13
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x45b9e
leal 0x1(%r13), %ecx
movq %r15, %rdi
movl $0x15, %esi
movl %r12d, %edx
xorl %r8d, %r8d
callq 0x45b9e
movq -0x60(%rbp), %rax
movq 0x20(%rax), %rbx
xorl %eax, %eax
movq -0x60(%rbp), %rcx
cmpb $0x0, 0x1c(%rcx)
sete %al
leal -0xb(%rax,%rax,8), %r14d
movq %r15, %rdi
movl $0xc, %esi
movl -0x48(%rbp), %edx
movl -0x50(%rbp), %ecx
movl %r13d, %r8d
callq 0x45b9e
movq %r15, %rdi
movq -0x60(%rbp), %r15
movl %eax, %esi
movq %rbx, %rdx
movl %r14d, %ecx
callq 0x11975
movb $0x0, 0x1c(%r15)
testl %r12d, %r12d
movq -0x30(%rbp), %r14
movq -0x40(%rbp), %r13
movq -0x38(%rbp), %rdi
je 0x5340f
cmpl $0x10, %r12d
movl $0x10, %eax
cmovael %eax, %r12d
xorl %ebx, %ebx
movzwl 0x1e(%r15), %eax
btl %ebx, %eax
jae 0x53407
movq 0x30(%r15), %rax
movq (%rax,%rbx,8), %rsi
movq %r13, %rdi
callq 0x5b41f
movq -0x38(%rbp), %rdi
incq %rbx
cmpq %rbx, %r12
jne 0x533e9
movb $-0x75, 0x21(%r13)
movl -0x48(%rbp), %eax
movl %eax, 0x24(%r13)
movq -0x58(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, 0x28(%r13)
movq -0x78(%rbp), %r15
movl %r15d, %esi
movq -0xa0(%rbp), %rbx
movl %ebx, %edx
callq 0x4e50d
movq -0x38(%rbp), %rdi
cmpl %ebx, 0x48(%rdi)
jge 0x5344b
movl %ebx, 0x48(%rdi)
movl %r15d, 0x4c(%rdi)
callq 0x4cc3a
xorl %r8d, %r8d
movq -0x90(%rbp), %rbx
movl -0x48(%rbp), %r13d
movslq (%rbx), %rax
movq $-0x1, %r12
testq %rax, %rax
jle 0x53484
xorl %ecx, %ecx
movq -0x40(%rbp), %r15
cmpl %r13d, 0x50(%r14,%rcx,4)
je 0x5348a
incq %rcx
cmpq %rcx, %rax
jne 0x53473
jmp 0x53494
movq -0x40(%rbp), %r15
jmp 0x53494
movq $-0x2, %r12
rolq %cl, %r12
andq -0xf8(%rbp), %r12
movl 0x164(%r14), %ebx
testl %ebx, %ebx
movl %r8d, -0x50(%rbp)
jle 0x53505
movq -0x30(%rbp), %rax
movq 0x170(%rax), %r14
incl %ebx
testb $0x6, 0x1a(%r14)
jne 0x534fa
testq %r12, 0x30(%r14)
je 0x534ce
movq -0x30(%rbp), %rax
movb $0x1, 0x36(%rax)
jmp 0x534fa
movq (%r14), %rsi
cmpl $0x0, (%r15)
je 0x534dd
testb $0x1, 0x2(%rsi)
je 0x534fa
movq -0x38(%rbp), %rdi
movl -0x100(%rbp), %edx
movl $0x8, %ecx
callq 0x4c50a
movl -0x50(%rbp), %r8d
orb $0x4, 0x1a(%r14)
addq $0x38, %r14
decl %ebx
cmpl $0x1, %ebx
jg 0x534b7
movq -0x30(%rbp), %rax
movl 0x164(%rax), %r13d
testl %r13d, %r13d
movl -0x48(%rbp), %ecx
jle 0x5360a
movq -0x30(%rbp), %rax
movq 0x170(%rax), %r14
incl %r13d
addq $0x1a, %r14
testb $0x6, (%r14)
jne 0x5354c
cmpw $0x402, -0x2(%r14)      # imm = 0x402
jne 0x5354c
cmpl %ecx, -0xe(%r14)
jne 0x5354c
movq -0x40(%rbp), %rax
cmpl $0x0, (%rax)
je 0x5355e
decl %r13d
addq $0x38, %r14
cmpl $0x1, %r13d
jg 0x5352e
jmp 0x5360a
movq -0x1a(%r14), %rax
movq %rax, -0x60(%rbp)
movl -0xa(%r14), %edx
movq -0xc8(%rbp), %rdi
movl -0x48(%rbp), %esi
movq -0xf8(%rbp), %rcx
movl $0x3, %r8d
xorl %r9d, %r9d
callq 0x5910c
movl -0x50(%rbp), %r8d
movl -0x48(%rbp), %ecx
testq %rax, %rax
je 0x5354c
movq %rax, %r15
testb $0x4, 0x1a(%rax)
jne 0x5354c
movq -0xb0(%rbp), %rdi
movl $0x48, %esi
callq 0x115e9
movl -0x50(%rbp), %r8d
movl -0x48(%rbp), %ecx
testq %rax, %rax
je 0x5354c
movq %rax, %rbx
movq (%r15), %rsi
movl $0x9, %ecx
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq -0x60(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rbx)
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
movl -0x100(%rbp), %edx
movl $0x8, %ecx
callq 0x4c50a
movq -0xb0(%rbp), %rdi
movq %rbx, %rsi
callq 0x9c3a
movl -0x50(%rbp), %r8d
movl -0x48(%rbp), %ecx
jmp 0x5354c
movq -0x40(%rbp), %rax
movl (%rax), %ecx
testl %ecx, %ecx
movq -0x80(%rbp), %r15
movl -0x130(%rbp), %r13d
je 0x536aa
movq -0x58(%rbp), %rdi
movl 0x34(%rdi), %eax
movq -0x40(%rbp), %rdx
movl %eax, 0x18(%rdx)
movl $0x15, %esi
movl $0x1, %edx
xorl %r8d, %r8d
callq 0x45b9e
movq -0x38(%rbp), %rdi
callq 0x5526f
movl -0x50(%rbp), %r8d
movq -0x30(%rbp), %rax
cmpl $0x0, 0x164(%rax)
jle 0x536aa
movq -0x30(%rbp), %rax
movq 0x170(%rax), %rbx
xorl %r14d, %r14d
testb $0x6, 0x1a(%rbx)
jne 0x53696
testq %r12, 0x30(%rbx)
jne 0x53696
movq (%rbx), %rsi
movq -0x38(%rbp), %rdi
movl -0x100(%rbp), %edx
movl $0x8, %ecx
callq 0x4c50a
movl -0x50(%rbp), %r8d
orb $0x4, 0x1a(%rbx)
incl %r14d
addq $0x38, %rbx
movq -0x30(%rbp), %rax
cmpl 0x164(%rax), %r14d
jl 0x5366b
testl %r8d, %r8d
movq -0xc8(%rbp), %rsi
je 0x536f4
movq -0x38(%rbp), %rdx
movzbl 0x1f(%rdx), %eax
cmpq $0x7, %rax
movq -0x30(%rbp), %r14
movq -0x128(%rbp), %rbx
ja 0x53706
xorl %ecx, %ecx
cmpl %r8d, 0x84(%rdx,%rcx)
je 0x53701
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x536d1
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rdx)
movl %r8d, 0x28(%rdx,%rax,4)
jmp 0x53706
movq -0x30(%rbp), %r14
movq -0x128(%rbp), %rbx
jmp 0x53706
movb $0x1, 0x7c(%rdx,%rcx)
movq -0xe8(%rbp), %rcx
movq -0x40(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, 0x40(%r14)
incq %rcx
decl %r13d
addq $0x48, %rbx
movq %r12, -0xf8(%rbp)
cmpq -0x140(%rbp), %rcx
jne 0x53049
jmp 0x52198
btl $0x9, %eax
jb 0x53909
btl $0xd, %eax
jb 0x5397e
andl $0x1, %r13d
leaq 0x2513f(%rip), %rax     # 0x78899
movb (%r13,%rax), %al
movq -0x40(%rbp), %rbx
movb %al, 0x21(%rbx)
movl %edx, 0x24(%rbx)
leaq 0x2512b(%rip), %rax     # 0x7889b
movzbl (%r13,%rax), %esi
movq -0x58(%rbp), %rdi
movl -0x48(%rbp), %edx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x45b9e
xorl %r8d, %r8d
movl -0x48(%rbp), %r13d
incl %eax
movl %eax, 0x28(%rbx)
movb $0x1, 0x22(%rbx)
movq -0x30(%rbp), %r14
jmp 0x53836
movl 0x58(%rdi), %eax
incl %eax
movl %eax, 0x58(%rdi)
movq -0x30(%rbp), %r14
movq -0x40(%rbp), %r12
movl %eax, -0x50(%rbp)
movq 0x30(%r15), %rax
movq (%rax), %rsi
movq %r12, %rdx
xorl %ecx, %ecx
movq -0x68(%rbp), %r8
movl -0x50(%rbp), %r9d
callq 0x5b250
movl %eax, %ebx
movl 0x10(%r12), %r15d
movq -0x58(%rbp), %r13
movq %r13, %rdi
movl $0x21, %esi
movl %eax, %edx
movl %r15d, %ecx
xorl %r8d, %r8d
callq 0x45b9e
movq %r13, %rdi
movl $0x3f, %esi
movl -0x48(%rbp), %r13d
movl %r13d, %edx
movl %r15d, %ecx
movl %ebx, %r8d
callq 0x45b9e
movq -0x38(%rbp), %r15
movq %r15, %rdi
movl %ebx, %esi
movl $0x1, %edx
callq 0x4e50d
movq %r15, %rdi
movl %r13d, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %ebx, %ecx
callq 0x4edc9
movl -0x50(%rbp), %r8d
movb $-0x6b, 0x21(%r12)
movq -0x90(%rbp), %rbx
jmp 0x5345e
movq 0x30(%r15), %rax
movq (%rax,%rdx,8), %r14
cmpl $0x0, -0x68(%rbp)
movq %rcx, %r13
cmoveq %r14, %r13
cmoveq %rcx, %r14
testq %r14, %r14
je 0x53953
movq %r13, -0x50(%rbp)
movq (%r14), %r13
movq 0x18(%r13), %rsi
leaq -0x440(%rbp), %rdx
movq %rdi, %r15
callq 0x4cc93
movl %eax, %ebx
movzbl (%r13), %eax
leaq 0x259e2(%rip), %rcx     # 0x7926c
movzbl -0x4d(%rax,%rcx), %esi
movq -0x58(%rbp), %rdi
movl -0x48(%rbp), %edx
movl %r12d, %ecx
movl %ebx, %r8d
callq 0x45b9e
movq %r15, %rdi
movl %ebx, %esi
movl $0x1, %edx
callq 0x4e50d
movl -0x440(%rbp), %eax
testl %eax, %eax
movq -0x90(%rbp), %rbx
movq -0x40(%rbp), %rdi
je 0x53ffc
movq -0x38(%rbp), %rcx
movzbl 0x1f(%rcx), %ecx
cmpq $0x7, %rcx
ja 0x53ffc
xorl %edx, %edx
movq -0x38(%rbp), %rsi
cmpl %eax, 0x84(%rsi,%rdx)
je 0x53ff7
addq $0x18, %rdx
cmpl $0xf0, %edx
jne 0x538e1
leal 0x1(%rcx), %edx
movb %dl, 0x1f(%rsi)
movl %eax, 0x28(%rsi,%rcx,4)
jmp 0x53ffc
movl 0x18(%r15), %ebx
movq 0x20(%r15), %r12
xorl %ecx, %ecx
movb $0x1, %r8b
movq -0x30(%rbp), %rdx
testb $0x1, 0x32(%rdx)
je 0x53937
cmpb $0x0, 0x34(%rdx)
je 0x53937
movzwl 0x54(%r12), %edx
xorl %ecx, %ecx
cmpl %edx, %ebx
setge %r8b
setl %cl
movslq %ebx, %rsi
testb $0x20, %al
movq %rsi, -0xd8(%rbp)
jne 0x53a87
xorl %r14d, %r14d
movl %ebx, %edx
jmp 0x53a97
xorl %eax, %eax
cmpl $0x0, -0x68(%rbp)
sete %al
leal 0x62(%rax,%rax,2), %esi
movq -0x58(%rbp), %rdi
movl -0x48(%rbp), %edx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x45b9e
movq -0x90(%rbp), %rbx
jmp 0x54008
movl 0x54(%rdi), %eax
movl 0x58(%rdi), %r12d
movq %rax, -0xa0(%rbp)
incl %eax
movl %eax, 0x54(%rdi)
incl %r12d
movl %r12d, 0x58(%rdi)
movq %r15, %rbx
movq -0x58(%rbp), %r15
movq %r15, %rdi
callq 0x4c4bf
movl %eax, -0x98(%rbp)
movq 0x30(%rbx), %rax
movq (%rax), %rax
movq %rax, -0x70(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x40(%rbp), %rax
movb $0x10, 0x21(%rax)
movl %r12d, -0xe0(%rbp)
movl %r12d, 0x24(%rax)
movq -0x30(%rbp), %rax
movzbl 0x38(%rax), %ebx
cmpl $0x2, %ebx
jb 0x53ed6
movl %ebx, %r15d
subl -0xe8(%rbp), %r15d
imull $0x68, %r15d, %esi
addl $0x8, %esi
movq -0xb0(%rbp), %rdi
callq 0x115e9
movq %rax, -0xa8(%rbp)
testq %rax, %rax
je 0x54234
movq -0xa8(%rbp), %rax
movb %r15b, 0x1(%rax)
movb %r15b, (%rax)
leaq 0x8(%rax), %rdi
movl $0xd, %ecx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
cmpl $0x2, %r15d
jl 0x53a7e
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdx
addq $0x8, %rdx
addl -0x130(%rbp), %ebx
movq -0xa8(%rbp), %rax
addq $0x70, %rax
decq %rbx
movq -0x128(%rbp), %r8
movzbl (%r8), %ecx
imulq $0x68, %rcx, %rsi
addq %rdx, %rsi
movl $0xd, %ecx
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
addq $0x68, %rax
addq $0x48, %r8
decq %rbx
jne 0x53a5b
movq -0x58(%rbp), %r15
jmp 0x53ee5
movq 0x30(%r15), %rcx
leal 0x1(%rbx), %edx
movq (%rcx,%rsi,8), %r14
movl $0x1, %ecx
testb $0x10, %al
movb %r8b, -0x11c(%rbp)
jne 0x53aa7
xorl %r15d, %r15d
jmp 0x53ab7
movq 0x30(%r15), %rax
movslq %edx, %rcx
movq (%rax,%rcx,8), %r15
movl $0x1, %ecx
movq -0x40(%rbp), %rsi
movl 0x8(%rsi), %eax
movl %eax, -0x78(%rbp)
movq -0x68(%rbp), %rdx
leaq -0x440(%rbp), %r8
callq 0x5b463
movq %rax, -0xa0(%rbp)
movq -0x440(%rbp), %rsi
movq -0xb0(%rbp), %rdi
movq %rsi, -0xc0(%rbp)
callq 0x1010d
movq %rax, -0xb8(%rbp)
movzwl 0x54(%r12), %eax
cmpl %eax, %ebx
jge 0x53b1e
movq 0x38(%r12), %rcx
movq -0xd8(%rbp), %rdx
cmpb $0x0, (%rcx,%rdx)
setne %cl
xorb %r13b, %cl
testb $0x1, %cl
jne 0x53b28
cmpl $0x0, -0x68(%rbp)
je 0x53b2d
cmpl %eax, %ebx
jne 0x53b2d
movq %r14, %r12
jmp 0x53b33
movq %r15, %r12
movq %r14, %r15
movq -0x40(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0xe0(%rbp)
movl $0x1, %eax
movl $0x1, %ecx
testq %r15, %r15
movq -0x38(%rbp), %rdi
movq -0xc0(%rbp), %r14
je 0x53b64
xorl %ecx, %ecx
testb $0x28, 0x18(%r15)
setne %cl
testq %r12, %r12
je 0x53b74
xorl %eax, %eax
testb $0x28, 0x18(%r12)
setne %al
movq %rcx, -0x98(%rbp)
movl %eax, -0x144(%rbp)
testq %r15, %r15
setne %al
testl %ebx, %ebx
setg %cl
orb %al, %cl
movb %cl, -0x70(%rbp)
testq %r15, %r15
movq %r12, -0xa8(%rbp)
movq %r15, -0x108(%rbp)
je 0x53c29
movq (%r15), %rax
movq 0x18(%rax), %r12
movq -0xa0(%rbp), %rax
leal (%rax,%rbx), %r13d
movq %r12, %rsi
movl %r13d, %edx
callq 0x4e4ba
movq -0x58(%rbp), %rdi
movq %r12, %rsi
movl %r13d, %edx
movl -0xe0(%rbp), %ecx
callq 0x5b64c
testq %r14, %r14
je 0x53c19
movq -0xd8(%rbp), %r13
movsbl (%r14,%r13), %esi
movq %r12, %rdi
callq 0x4eee9
cmpb $0x62, %al
jne 0x53bfc
movb $0x62, (%r14,%r13)
movsbl (%r14,%r13), %esi
movq %r12, %rdi
callq 0x5b6a0
testl %eax, %eax
je 0x53c19
movq -0xd8(%rbp), %rax
movb $0x62, (%r14,%rax)
leal 0x1(%rbx), %r13d
movq -0xa8(%rbp), %r12
movq %rbx, %r14
jmp 0x53c69
movl %ebx, %r13d
cmpb $0x0, -0x11c(%rbp)
movq %rbx, %r14
jne 0x53c69
movq -0xa0(%rbp), %rax
leal (%rax,%r14), %ecx
movq $0x0, -0x98(%rbp)
movq -0x58(%rbp), %rdi
movl $0x18, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x45b9e
leal 0x1(%r14), %r13d
movb $0x1, -0x70(%rbp)
movq -0x38(%rbp), %rdi
movq -0xa0(%rbp), %rbx
movl %ebx, %esi
movl %r13d, %edx
movq -0xc0(%rbp), %rcx
callq 0x5b741
movzbl -0x70(%rbp), %eax
shll $0x2, %eax
movq -0x98(%rbp), %rcx
leal (%rax,%rcx,2), %eax
addl -0x68(%rbp), %eax
leaq 0x256c0(%rip), %rcx     # 0x79360
movzbl (%rax,%rcx), %esi
movq -0x58(%rbp), %r15
movq %r15, %rdi
movl -0x78(%rbp), %edx
movl -0xe0(%rbp), %ecx
movl %ebx, %r8d
movl %r13d, %r9d
callq 0x4f3ff
movq %r14, -0x98(%rbp)
movl %r14d, %r13d
testq %r12, %r12
movq -0x30(%rbp), %r14
je 0x53d9a
movq (%r12), %rax
movq %r15, %rbx
movq 0x18(%rax), %r12
movq -0xa0(%rbp), %rax
movl %eax, %r13d
addl -0x98(%rbp), %r13d
movq -0x38(%rbp), %r15
movq %r15, %rdi
movl %r13d, %esi
movl $0x1, %edx
callq 0x4e50d
movq %r15, %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x4e4ba
movq %rbx, %rdi
movq %r12, %rsi
movl %r13d, %edx
movl -0xe0(%rbp), %ecx
callq 0x5b64c
movq -0xb8(%rbp), %r15
testq %r15, %r15
je 0x53d6e
movq -0xd8(%rbp), %rbx
movsbl (%r15,%rbx), %esi
movq %r12, %rdi
callq 0x4eee9
cmpb $0x62, %al
jne 0x53d51
movb $0x62, (%r15,%rbx)
movsbl (%r15,%rbx), %esi
movq %r12, %rdi
callq 0x5b6a0
testl %eax, %eax
je 0x53d6e
movq -0xd8(%rbp), %rax
movb $0x62, (%r15,%rax)
movq -0x98(%rbp), %rax
leal 0x1(%rax), %r13d
movq -0x38(%rbp), %rdi
movq -0xa0(%rbp), %rsi
movl %r13d, %edx
movq %r15, %rcx
callq 0x5b741
movq -0x58(%rbp), %r15
movq -0xa8(%rbp), %r12
movq -0xb0(%rbp), %rbx
movq %rbx, %rdi
movq -0xc0(%rbp), %rsi
callq 0x9c3a
movq %rbx, %rdi
movq -0xb8(%rbp), %rsi
callq 0x9c3a
movl 0x34(%r15), %eax
movq -0x40(%rbp), %rcx
movl %eax, 0x28(%rcx)
testq %r12, %r12
movq -0x98(%rbp), %rax
jne 0x53dda
testl %eax, %eax
je 0x53e24
leaq 0x24ab5(%rip), %rax     # 0x78896
movq -0x68(%rbp), %rcx
movzbl 0x1(%rcx,%rax), %esi
movq %r15, %rdi
movl -0x78(%rbp), %edx
movl -0xe0(%rbp), %ecx
movq -0xa0(%rbp), %r8
movl %r13d, %r9d
callq 0x4f3ff
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x53e24
movl -0x144(%rbp), %ecx
cmpl -0x68(%rbp), %ecx
movslq 0x34(%r15), %rcx
leaq (%rcx,%rcx,2), %rcx
setne -0x15(%rax,%rcx,8)
movq -0x38(%rbp), %rdx
movb 0x1f(%rdx), %al
testb %al, %al
je 0x53e3e
decb %al
movb %al, 0x1f(%rdx)
movzbl %al, %eax
movl 0x28(%rdx,%rax,4), %r12d
jmp 0x53e49
movl 0x58(%rdx), %r12d
incl %r12d
movl %r12d, 0x58(%rdx)
movq -0x40(%rbp), %r13
movq -0x60(%rbp), %r15
testb $0x30, 0x28(%r15)
je 0x53e93
movq -0x58(%rbp), %rbx
movq %rbx, %rdi
movl $0x29, %esi
movl -0x78(%rbp), %edx
movq -0x98(%rbp), %rcx
movl %r12d, %r8d
callq 0x45b9e
movq %rbx, %rdi
movl $0x49, %esi
movl %r12d, %edx
movl -0x100(%rbp), %ecx
xorl %r8d, %r8d
callq 0x45b9e
movq -0x38(%rbp), %rdx
testl %r12d, %r12d
je 0x5414e
movzbl 0x1f(%rdx), %eax
cmpq $0x7, %rax
ja 0x5414e
xorl %ecx, %ecx
cmpl %r12d, 0x84(%rdx,%rcx)
je 0x54149
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x53eac
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rdx)
movl %r12d, 0x28(%rdx,%rax,4)
jmp 0x5414e
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xa8(%rbp)
movl $0x0, -0xd8(%rbp)
movq -0x30(%rbp), %rax
testb $0x8, 0x32(%rax)
movl $0x0, %eax
movq %rax, -0xb8(%rbp)
jne 0x53f34
movq -0x38(%rbp), %rax
movl 0x58(%rax), %edx
leal 0x1(%rdx), %ecx
addl $0x2, %edx
movq %rdx, -0xb8(%rbp)
movl %edx, 0x58(%rax)
movq %r15, %rdi
movl $0x18, %esi
xorl %edx, %edx
movl %ecx, -0xd8(%rbp)
xorl %r8d, %r8d
callq 0x45b9e
movq %r15, %rdi
movl $0x15, %esi
xorl %edx, %edx
movl -0xe0(%rbp), %ecx
xorl %r8d, %r8d
callq 0x45b9e
movl %eax, -0x108(%rbp)
movq -0x30(%rbp), %rax
cmpl $0x2, 0x164(%rax)
jl 0x54287
movq -0x30(%rbp), %rax
cmpl $0x0, 0x164(%rax)
jle 0x54264
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %ebx, %ebx
movq -0x30(%rbp), %rcx
movq -0x70(%rbp), %rdx
movq 0x170(%rcx), %rax
leaq (%rax,%r15), %rcx
cmpq %rdx, %rcx
je 0x53fdb
movq (%rax,%r15), %rsi
testb $0x1, 0x2(%rsi)
jne 0x53fdb
testb $0x10, 0x1a(%rax,%r15)
jne 0x53fdb
movzwl 0x18(%rax,%r15), %eax
testl $0xfff, %eax            # imm = 0xFFF
je 0x53fdb
movq -0xb0(%rbp), %r13
movq %r13, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
movq %r13, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x4a740
movq -0x70(%rbp), %rdx
movq %rax, %rbx
incq %r12
movq -0x30(%rbp), %rcx
movslq 0x164(%rcx), %rax
addq $0x38, %r15
cmpq %rax, %r12
jl 0x53f84
jmp 0x54266
movb $0x1, 0x7c(%rsi,%rdx)
movq %r14, %rsi
callq 0x5b41f
movq -0x50(%rbp), %r13
xorl %r8d, %r8d
testq %r13, %r13
movq -0x30(%rbp), %r14
movq -0x38(%rbp), %rdi
je 0x5404d
movq (%r13), %rbx
movl 0x58(%rdi), %edx
incl %edx
movl %edx, 0x58(%rdi)
movq 0x18(%rbx), %rsi
movl %edx, -0x60(%rbp)
callq 0x4e4ba
movzbl (%rbx), %eax
orl $0x2, %eax
cmpl $0x4f, %eax
jne 0x5405f
xorl %eax, %eax
cmpl $0x0, -0x68(%rbp)
sete %al
leal 0x4e(,%rax,2), %eax
jmp 0x5406a
movl $0x95, %esi
movl $0x0, -0x60(%rbp)
movq -0x40(%rbp), %r15
jmp 0x54089
movq -0x68(%rbp), %rax
leal 0x4d(,%rax,2), %eax
movl %eax, -0x50(%rbp)
movq -0x90(%rbp), %rbx
movq -0x40(%rbp), %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0x5b41f
xorl %r8d, %r8d
movl -0x50(%rbp), %esi
movq -0x58(%rbp), %rax
movl 0x34(%rax), %eax
movq -0x68(%rbp), %rcx
xorb $0x7, %cl
movb %cl, 0x21(%r15)
movl -0x48(%rbp), %r13d
movl %r13d, 0x24(%r15)
movl %eax, 0x28(%r15)
cmpl $0x95, %esi
je 0x5345e
movq -0x38(%rbp), %r15
movb 0x1f(%r15), %al
testb %al, %al
movl %esi, -0x50(%rbp)
je 0x540d2
decb %al
movb %al, 0x1f(%r15)
movzbl %al, %eax
movl 0x28(%r15,%rax,4), %r13d
jmp 0x540dd
movl 0x58(%r15), %r13d
incl %r13d
movl %r13d, 0x58(%r15)
movq -0x58(%rbp), %rdi
movl $0x60, %esi
movl -0x48(%rbp), %r15d
movl %r15d, %edx
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x45b9e
movq -0x38(%rbp), %rdi
movl %r15d, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r13d, %ecx
callq 0x4edc9
movq -0x58(%rbp), %rdi
movl -0x50(%rbp), %esi
movl -0x60(%rbp), %edx
movl %r12d, %ecx
movq %rdi, %r15
movl %r13d, %r12d
movl %r13d, %r8d
callq 0x45b9e
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x5413d
movslq 0x34(%r15), %rcx
leaq (%rcx,%rcx,2), %rcx
movb $0x6b, -0x15(%rax,%rcx,8)
movl -0x48(%rbp), %r13d
movl %r12d, %r8d
jmp 0x5345e
movb $0x1, 0x7c(%rdx,%rcx)
movq %r13, %rdi
movq -0x108(%rbp), %rsi
callq 0x5b41f
movq %r13, %rdi
movq -0xa8(%rbp), %rsi
callq 0x5b41f
xorl %r8d, %r8d
cmpb $0x0, -0x50(%rbp)
movq -0x90(%rbp), %rbx
movq -0x58(%rbp), %r13
jne 0x541f1
movq -0x38(%rbp), %r15
movb 0x1f(%r15), %al
testb %al, %al
je 0x5419c
decb %al
movb %al, 0x1f(%r15)
movzbl %al, %eax
movl 0x28(%r15,%rax,4), %r12d
jmp 0x541a7
movl 0x58(%r15), %r12d
incl %r12d
movl %r12d, 0x58(%r15)
movq %r13, %rdi
movl $0x69, %esi
movl -0x78(%rbp), %edx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x45b9e
movq %r15, %rdi
movl -0x48(%rbp), %r15d
movl %r15d, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r12d, %ecx
callq 0x4edc9
movq %r13, %rdi
movl $0x3b, %esi
movl %r15d, %edx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x45b9e
movl %r12d, %r8d
movq -0x60(%rbp), %r15
movl 0x28(%r15), %eax
btl $0xc, %eax
movl -0x48(%rbp), %r13d
jb 0x5420f
cmpl $0x0, -0x68(%rbp)
movq -0x40(%rbp), %rsi
je 0x54219
movb $0x6, 0x21(%rsi)
jmp 0x5421d
movq -0x40(%rbp), %rsi
movb $-0x6b, 0x21(%rsi)
jmp 0x5421d
movb $0x7, 0x21(%rsi)
movl -0x78(%rbp), %ecx
movl %ecx, 0x24(%rsi)
testb $0xf, %al
jne 0x5345e
movb $0x1, 0x22(%rsi)
jmp 0x5345e
movq -0xf8(%rbp), %r12
movq -0x80(%rbp), %r15
movq -0x30(%rbp), %r14
movq -0xc8(%rbp), %rsi
movq -0x128(%rbp), %rbx
movq -0xe8(%rbp), %rcx
movl -0x130(%rbp), %r13d
jmp 0x5370d
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x54287
movq -0x38(%rbp), %rdi
movl $0x45, %esi
xorl %edx, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x39f77
movq %rax, -0x78(%rbp)
jmp 0x5428f
movq $0x0, -0x78(%rbp)
movq -0x68(%rbp), %rbx
cmpl $0x0, 0x14(%rbx)
jle 0x5444d
xorl %r12d, %r12d
xorl %r15d, %r15d
movl $0x0, -0x50(%rbp)
movq $0x0, -0xc0(%rbp)
movq -0x38(%rbp), %rdi
movl -0x48(%rbp), %ecx
movq -0xa8(%rbp), %r13
movq 0x20(%rbx), %rax
cmpl %ecx, 0xc(%rax,%r12)
je 0x542da
testb $0x2, 0x19(%rax,%r12)
je 0x54430
movq (%rax,%r12), %rdx
movq -0x78(%rbp), %rax
testq %rax, %rax
je 0x542f4
testb $0x1, 0x2(%rdx)
jne 0x542f4
movq %rdx, 0x10(%rax)
movq %rax, %rdx
movq -0xa0(%rbp), %rax
movl %eax, (%rsp)
movq %r13, %rsi
xorl %ecx, %ecx
movq %rdi, %rbx
xorl %r8d, %r8d
movl $0xf0, %r9d
callq 0x51e2a
testq %rax, %rax
je 0x5440d
movq %rax, -0x60(%rbp)
leaq 0x338(%rax), %rdx
movq -0x40(%rbp), %rax
movzbl 0x20(%rax), %r8d
movq %rbx, %rdi
movq %r13, %rsi
movq -0xe8(%rbp), %rcx
xorl %r9d, %r9d
callq 0x57552
movq -0x30(%rbp), %rax
testb $0x8, 0x32(%rax)
movq -0x68(%rbp), %rbx
jne 0x543ae
movl 0x14(%rbx), %eax
decl %eax
cmpq %rax, %r15
movl %r15d, %r13d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovel %eax, %r13d
movq 0x20(%r14), %rsi
movq -0x38(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl -0x48(%rbp), %ecx
movq -0xb8(%rbp), %r8
xorl %r9d, %r9d
callq 0x4e1ad
movq -0x58(%rbp), %rdi
movl 0x34(%rdi), %ecx
addl $0x2, %ecx
movl $0x78, %esi
movl -0xd8(%rbp), %edx
movl %eax, %r8d
movl %r13d, %r9d
movq -0xa8(%rbp), %r13
callq 0x4f3ff
movq -0x58(%rbp), %rdi
movl $0xf, %esi
movl -0xe0(%rbp), %edx
movl -0x98(%rbp), %ecx
xorl %r8d, %r8d
callq 0x45b9e
movq -0x60(%rbp), %rdi
cmpb $0x0, 0x36(%rdi)
movl $0x1, %eax
movl -0x50(%rbp), %edx
cmovnel %eax, %edx
movq 0x378(%rdi), %rax
testb $0x2, 0x29(%rax)
movl %edx, -0x50(%rbp)
je 0x54400
testq %r12, %r12
je 0x54419
movq -0xc0(%rbp), %rcx
cmpq %rcx, 0x20(%rax)
je 0x54419
movq $0x0, -0xc0(%rbp)
jmp 0x54424
movq %rbx, %rdi
movl -0x48(%rbp), %ecx
movq -0x68(%rbp), %rbx
jmp 0x54430
movq 0x20(%rax), %rax
movq %rax, -0xc0(%rbp)
callq 0x54d54
movq -0x38(%rbp), %rdi
movl -0x48(%rbp), %ecx
incq %r15
movslq 0x14(%rbx), %rax
addq $0x38, %r12
cmpq %rax, %r15
jl 0x542c3
cmpl $0x0, -0x50(%rbp)
sete %bl
jmp 0x5445a
movb $0x1, %bl
movq $0x0, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rax, 0x30(%rcx)
testq %rax, %rax
je 0x54478
movq -0xa0(%rbp), %rax
movl %eax, 0x8(%rcx)
movq -0x78(%rbp), %rsi
testq %rsi, %rsi
je 0x54495
movq $0x0, 0x10(%rsi)
movq -0xb0(%rbp), %rdi
callq 0x34068
movq -0x58(%rbp), %r14
movl 0x34(%r14), %eax
movl -0x108(%rbp), %edx
cmpl %edx, %eax
jbe 0x544b5
movq 0x8(%r14), %rcx
movl %edx, %edx
leaq (%rdx,%rdx,2), %rdx
movl %eax, 0x4(%rcx,%rdx,8)
movq -0x40(%rbp), %rax
movl 0xc(%rax), %ecx
movq %r14, %rdi
movl $0xe, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x45b9e
cmpl $0x0, -0x98(%rbp)
jns 0x544f1
movq 0x40(%r14), %rax
testq %rax, %rax
je 0x544f1
movl -0x98(%rbp), %edx
notl %edx
movl 0x34(%r14), %ecx
movl %edx, %edx
movl %ecx, (%rax,%rdx,4)
movq -0x30(%rbp), %rax
cmpb $0x2, 0x38(%rax)
jb 0x5450e
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x9c3a
testb %bl, %bl
je 0x5451f
movq -0x40(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x5b41f
movq -0x30(%rbp), %r14
movq -0x90(%rbp), %rbx
movl -0x48(%rbp), %r13d
xorl %r8d, %r8d
jmp 0x5345e
movl $0x1201, 0x28(%rdi)     # imm = 0x1201
movq 0x58(%r15), %rax
testq %rdx, %rdx
je 0x54577
movq 0x8(%r14), %rdi
incq %rdx
xorl %r8d, %r8d
xorl %esi, %esi
movl -0x8(%rdi,%rdx,4), %ecx
movl $0x1, %r9d
shlq %cl, %r9
cmpl $0x3f, %ecx
cmovgeq %r8, %r9
orq %r9, %rsi
decq %rdx
cmpq $0x1, %rdx
jg 0x54552
notq %rsi
jmp 0x5457e
movq $-0x1, %rsi
testq %rax, %rsi
movq -0xb8(%rbp), %rdi
jne 0x54591
movl $0x1241, 0x28(%rdi)     # imm = 0x1241
movw %r12w, 0x2c(%rdi)
movl %r12d, 0x18(%rdi)
movq %r14, 0x20(%rdi)
movw $0x27, %ax
jmp 0x52b53