// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: exprAnalyze
static void exprAnalyze(
  SrcList *pSrc,            /* the FROM clause */
  WhereClause *pWC,         /* the WHERE clause */
  int idxTerm               /* Index of the term to be analyzed */
){
  WhereInfo *pWInfo = pWC->pWInfo; /* WHERE clause processing context */
  WhereTerm *pTerm;                /* The term to be analyzed */
  WhereMaskSet *pMaskSet;          /* Set of table index masks */
  Expr *pExpr;                     /* The expression to be analyzed */
  Bitmask prereqLeft;              /* Prerequesites of the pExpr->pLeft */
  Bitmask prereqAll;               /* Prerequesites of pExpr */
  Bitmask extraRight = 0;          /* Extra dependencies on LEFT JOIN */
  Expr *pStr1 = 0;                 /* RHS of LIKE/GLOB operator */
  int isComplete = 0;              /* RHS of LIKE/GLOB ends with wildcard */
  int noCase = 0;                  /* LIKE/GLOB distinguishes case */
  int op;                          /* Top-level operator.  pExpr->op */
  Parse *pParse = pWInfo->pParse;  /* Parsing context */
  sqlite3 *db = pParse->db;        /* Database connection */

  if( db->mallocFailed ){
    return;
  }
  pTerm = &pWC->a[idxTerm];
  pMaskSet = &pWInfo->sMaskSet;
  pExpr = pTerm->pExpr;
  assert( pExpr->op!=TK_AS && pExpr->op!=TK_COLLATE );
  prereqLeft = exprTableUsage(pMaskSet, pExpr->pLeft);
  op = pExpr->op;
  if( op==TK_IN ){
    assert( pExpr->pRight==0 );
    if( ExprHasProperty(pExpr, EP_xIsSelect) ){
      pTerm->prereqRight = exprSelectTableUsage(pMaskSet, pExpr->x.pSelect);
    }else{
      pTerm->prereqRight = exprListTableUsage(pMaskSet, pExpr->x.pList);
    }
  }else if( op==TK_ISNULL ){
    pTerm->prereqRight = 0;
  }else{
    pTerm->prereqRight = exprTableUsage(pMaskSet, pExpr->pRight);
  }
  prereqAll = exprTableUsage(pMaskSet, pExpr);
  if( ExprHasProperty(pExpr, EP_FromJoin) ){
    Bitmask x = getMask(pMaskSet, pExpr->iRightJoinTable);
    prereqAll |= x;
    extraRight = x-1;  /* ON clause terms may not be used with an index
                       ** on left table of a LEFT JOIN.  Ticket #3015 */
  }
  pTerm->prereqAll = prereqAll;
  pTerm->leftCursor = -1;
  pTerm->iParent = -1;
  pTerm->eOperator = 0;
  if( allowedOp(op) ){
    Expr *pLeft = sqlite3ExprSkipCollate(pExpr->pLeft);
    Expr *pRight = sqlite3ExprSkipCollate(pExpr->pRight);
    u16 opMask = (pTerm->prereqRight & prereqLeft)==0 ? WO_ALL : WO_EQUIV;
    if( pLeft->op==TK_COLUMN ){
      pTerm->leftCursor = pLeft->iTable;
      pTerm->u.leftColumn = pLeft->iColumn;
      pTerm->eOperator = operatorMask(op) & opMask;
    }
    if( pRight && pRight->op==TK_COLUMN ){
      WhereTerm *pNew;
      Expr *pDup;
      u16 eExtraOp = 0;        /* Extra bits for pNew->eOperator */
      if( pTerm->leftCursor>=0 ){
        int idxNew;
        pDup = sqlite3ExprDup(db, pExpr, 0);
        if( db->mallocFailed ){
          sqlite3ExprDelete(db, pDup);
          return;
        }
        idxNew = whereClauseInsert(pWC, pDup, TERM_VIRTUAL|TERM_DYNAMIC);
        if( idxNew==0 ) return;
        pNew = &pWC->a[idxNew];
        pNew->iParent = idxTerm;
        pTerm = &pWC->a[idxTerm];
        pTerm->nChild = 1;
        pTerm->wtFlags |= TERM_COPIED;
        if( pExpr->op==TK_EQ
         && !ExprHasProperty(pExpr, EP_FromJoin)
         && OptimizationEnabled(db, SQLITE_Transitive)
        ){
          pTerm->eOperator |= WO_EQUIV;
          eExtraOp = WO_EQUIV;
        }
      }else{
        pDup = pExpr;
        pNew = pTerm;
      }
      exprCommute(pParse, pDup);
      pLeft = sqlite3ExprSkipCollate(pDup->pLeft);
      pNew->leftCursor = pLeft->iTable;
      pNew->u.leftColumn = pLeft->iColumn;
      testcase( (prereqLeft | extraRight) != prereqLeft );
      pNew->prereqRight = prereqLeft | extraRight;
      pNew->prereqAll = prereqAll;
      pNew->eOperator = (operatorMask(pDup->op) + eExtraOp) & opMask;
    }
  }

#ifndef SQLITE_OMIT_BETWEEN_OPTIMIZATION
  /* If a term is the BETWEEN operator, create two new virtual terms
  ** that define the range that the BETWEEN implements.  For example:
  **
  **      a BETWEEN b AND c
  **
  ** is converted into:
  **
  **      (a BETWEEN b AND c) AND (a>=b) AND (a<=c)
  **
  ** The two new terms are added onto the end of the WhereClause object.
  ** The new terms are "dynamic" and are children of the original BETWEEN
  ** term.  That means that if the BETWEEN term is coded, the children are
  ** skipped.  Or, if the children are satisfied by an index, the original
  ** BETWEEN term is skipped.
  */
  else if( pExpr->op==TK_BETWEEN && pWC->op==TK_AND ){
    ExprList *pList = pExpr->x.pList;
    int i;
    static const u8 ops[] = {TK_GE, TK_LE};
    assert( pList!=0 );
    assert( pList->nExpr==2 );
    for(i=0; i<2; i++){
      Expr *pNewExpr;
      int idxNew;
      pNewExpr = sqlite3PExpr(pParse, ops[i], 
                             sqlite3ExprDup(db, pExpr->pLeft, 0),
                             sqlite3ExprDup(db, pList->a[i].pExpr, 0), 0);
      transferJoinMarkings(pNewExpr, pExpr);
      idxNew = whereClauseInsert(pWC, pNewExpr, TERM_VIRTUAL|TERM_DYNAMIC);
      testcase( idxNew==0 );
      exprAnalyze(pSrc, pWC, idxNew);
      pTerm = &pWC->a[idxTerm];
      pWC->a[idxNew].iParent = idxTerm;
    }
    pTerm->nChild = 2;
  }
#endif /* SQLITE_OMIT_BETWEEN_OPTIMIZATION */

#if !defined(SQLITE_OMIT_OR_OPTIMIZATION) && !defined(SQLITE_OMIT_SUBQUERY)
  /* Analyze a term that is composed of two or more subterms connected by
  ** an OR operator.
  */
  else if( pExpr->op==TK_OR ){
    assert( pWC->op==TK_AND );
    exprAnalyzeOrTerm(pSrc, pWC, idxTerm);
    pTerm = &pWC->a[idxTerm];
  }
#endif /* SQLITE_OMIT_OR_OPTIMIZATION */

#ifndef SQLITE_OMIT_LIKE_OPTIMIZATION
  /* Add constraints to reduce the search space on a LIKE or GLOB
  ** operator.
  **
  ** A like pattern of the form "x LIKE 'abc%'" is changed into constraints
  **
  **          x>='abc' AND x<'abd' AND x LIKE 'abc%'
  **
  ** The last character of the prefix "abc" is incremented to form the
  ** termination condition "abd".
  */
  if( pWC->op==TK_AND 
   && isLikeOrGlob(pParse, pExpr, &pStr1, &isComplete, &noCase)
  ){
    Expr *pLeft;       /* LHS of LIKE/GLOB operator */
    Expr *pStr2;       /* Copy of pStr1 - RHS of LIKE/GLOB operator */
    Expr *pNewExpr1;
    Expr *pNewExpr2;
    int idxNew1;
    int idxNew2;
    Token sCollSeqName;  /* Name of collating sequence */

    pLeft = pExpr->x.pList->a[1].pExpr;
    pStr2 = sqlite3ExprDup(db, pStr1, 0);
    if( !db->mallocFailed ){
      u8 c, *pC;       /* Last character before the first wildcard */
      pC = (u8*)&pStr2->u.zToken[sqlite3Strlen30(pStr2->u.zToken)-1];
      c = *pC;
      if( noCase ){
        /* The point is to increment the last character before the first
        ** wildcard.  But if we increment '@', that will push it into the
        ** alphabetic range where case conversions will mess up the 
        ** inequality.  To avoid this, make sure to also run the full
        ** LIKE on all candidate expressions by clearing the isComplete flag
        */
        if( c=='A'-1 ) isComplete = 0;
        c = sqlite3UpperToLower[c];
      }
      *pC = c + 1;
    }
    sCollSeqName.z = noCase ? "NOCASE" : "BINARY";
    sCollSeqName.n = 6;
    pNewExpr1 = sqlite3ExprDup(db, pLeft, 0);
    pNewExpr1 = sqlite3PExpr(pParse, TK_GE, 
           sqlite3ExprAddCollateToken(pParse,pNewExpr1,&sCollSeqName),
           pStr1, 0);
    transferJoinMarkings(pNewExpr1, pExpr);
    idxNew1 = whereClauseInsert(pWC, pNewExpr1, TERM_VIRTUAL|TERM_DYNAMIC);
    testcase( idxNew1==0 );
    exprAnalyze(pSrc, pWC, idxNew1);
    pNewExpr2 = sqlite3ExprDup(db, pLeft, 0);
    pNewExpr2 = sqlite3PExpr(pParse, TK_LT,
           sqlite3ExprAddCollateToken(pParse,pNewExpr2,&sCollSeqName),
           pStr2, 0);
    transferJoinMarkings(pNewExpr2, pExpr);
    idxNew2 = whereClauseInsert(pWC, pNewExpr2, TERM_VIRTUAL|TERM_DYNAMIC);
    testcase( idxNew2==0 );
    exprAnalyze(pSrc, pWC, idxNew2);
    pTerm = &pWC->a[idxTerm];
    if( isComplete ){
      pWC->a[idxNew1].iParent = idxTerm;
      pWC->a[idxNew2].iParent = idxTerm;
      pTerm->nChild = 2;
    }
  }
#endif /* SQLITE_OMIT_LIKE_OPTIMIZATION */

#ifndef SQLITE_OMIT_VIRTUALTABLE
  /* Add a WO_MATCH auxiliary term to the constraint set if the
  ** current expression is of the form:  column MATCH expr.
  ** This information is used by the xBestIndex methods of
  ** virtual tables.  The native query optimizer does not attempt
  ** to do anything with MATCH functions.
  */
  if( isMatchOfColumn(pExpr) ){
    int idxNew;
    Expr *pRight, *pLeft;
    WhereTerm *pNewTerm;
    Bitmask prereqColumn, prereqExpr;

    pRight = pExpr->x.pList->a[0].pExpr;
    pLeft = pExpr->x.pList->a[1].pExpr;
    prereqExpr = exprTableUsage(pMaskSet, pRight);
    prereqColumn = exprTableUsage(pMaskSet, pLeft);
    if( (prereqExpr & prereqColumn)==0 ){
      Expr *pNewExpr;
      pNewExpr = sqlite3PExpr(pParse, TK_MATCH, 
                              0, sqlite3ExprDup(db, pRight, 0), 0);
      idxNew = whereClauseInsert(pWC, pNewExpr, TERM_VIRTUAL|TERM_DYNAMIC);
      testcase( idxNew==0 );
      pNewTerm = &pWC->a[idxNew];
      pNewTerm->prereqRight = prereqExpr;
      pNewTerm->leftCursor = pLeft->iTable;
      pNewTerm->u.leftColumn = pLeft->iColumn;
      pNewTerm->eOperator = WO_MATCH;
      pNewTerm->iParent = idxTerm;
      pTerm = &pWC->a[idxTerm];
      pTerm->nChild = 1;
      pTerm->wtFlags |= TERM_COPIED;
      pNewTerm->prereqAll = pTerm->prereqAll;
    }
  }
#endif /* SQLITE_OMIT_VIRTUALTABLE */

#ifdef SQLITE_ENABLE_STAT3
  /* When sqlite_stat3 histogram data is available an operator of the
  ** form "x IS NOT NULL" can sometimes be evaluated more efficiently
  ** as "x>NULL" if x is not an INTEGER PRIMARY KEY.  So construct a
  ** virtual term of that form.
  **
  ** Note that the virtual term must be tagged with TERM_VNULL.  This
  ** TERM_VNULL tag will suppress the not-null check at the beginning
  ** of the loop.  Without the TERM_VNULL flag, the not-null check at
  ** the start of the loop will prevent any results from being returned.
  */
  if( pExpr->op==TK_NOTNULL
   && pExpr->pLeft->op==TK_COLUMN
   && pExpr->pLeft->iColumn>=0
   && OptimizationEnabled(db, SQLITE_Stat3)
  ){
    Expr *pNewExpr;
    Expr *pLeft = pExpr->pLeft;
    int idxNew;
    WhereTerm *pNewTerm;

    pNewExpr = sqlite3PExpr(pParse, TK_GT,
                            sqlite3ExprDup(db, pLeft, 0),
                            sqlite3PExpr(pParse, TK_NULL, 0, 0, 0), 0);

    idxNew = whereClauseInsert(pWC, pNewExpr,
                              TERM_VIRTUAL|TERM_DYNAMIC|TERM_VNULL);
    if( idxNew ){
      pNewTerm = &pWC->a[idxNew];
      pNewTerm->prereqRight = 0;
      pNewTerm->leftCursor = pLeft->iTable;
      pNewTerm->u.leftColumn = pLeft->iColumn;
      pNewTerm->eOperator = WO_GT;
      pNewTerm->iParent = idxTerm;
      pTerm = &pWC->a[idxTerm];
      pTerm->nChild = 1;
      pTerm->wtFlags |= TERM_COPIED;
      pNewTerm->prereqAll = pTerm->prereqAll;
    }
  }
#endif /* SQLITE_ENABLE_STAT */

  /* Prevent ON clause terms of a LEFT JOIN from being used to drive
  ** an index for tables to the left of the join.
  */
  pTerm->prereqRight |= extraRight;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %r12
movq (%rdi), %rdi
movq (%rdi), %r14
movq (%r14), %rax
movq %rax, -0x70(%rbp)
cmpb $0x0, 0x50(%rax)
jne 0x58ebe
movq 0x20(%r12), %rdx
movl %esi, -0x4c(%rbp)
movslq %esi, %rax
imulq $0x38, %rax, %rax
leaq (%rdx,%rax), %rcx
movq %rcx, -0x30(%rbp)
movq %rdi, -0x38(%rbp)
addq $0x4c, %rdi
movq %rax, -0x80(%rbp)
movq %rdx, -0x90(%rbp)
movq (%rdx,%rax), %r13
movq 0x10(%r13), %r15
movq %rdi, -0x68(%rbp)
movq %r15, %rsi
callq 0x58ed0
movq %rax, -0x58(%rbp)
movzbl (%r13), %ebx
cmpl $0x49, %ebx
movq %r14, -0x60(%rbp)
je 0x57d3b
cmpl $0x48, %ebx
jne 0x57d4d
testb $0x8, 0x3(%r13)
movq 0x20(%r13), %rsi
movq -0x68(%rbp), %r14
movq %r14, %rdi
jne 0x57d5f
callq 0x56fda
jmp 0x57d64
movq -0x30(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x68(%rbp), %r14
jmp 0x57d6c
movq 0x18(%r13), %rsi
movq -0x68(%rbp), %r14
movq %r14, %rdi
callq 0x58ed0
jmp 0x57d64
callq 0x58f64
movq -0x30(%rbp), %rcx
movq %rax, 0x28(%rcx)
movq %r14, %rdi
movq %r13, %rsi
callq 0x58ed0
movq %r13, %rcx
movq %rax, %r13
movq %rcx, -0x48(%rbp)
testb $0x1, 0x2(%rcx)
jne 0x57d95
movq $0x0, -0x40(%rbp)
movq -0x30(%rbp), %r9
jmp 0x57dd3
movslq (%r14), %rax
testq %rax, %rax
movq -0x30(%rbp), %r9
movq -0x38(%rbp), %rsi
jle 0x57dbd
movq -0x48(%rbp), %rcx
movswl 0x34(%rcx), %edx
xorl %ecx, %ecx
cmpl %edx, 0x50(%rsi,%rcx,4)
je 0x57dc1
incq %rcx
cmpq %rcx, %rax
jne 0x57daf
xorl %eax, %eax
jmp 0x57dc9
movl $0x1, %eax
shlq %cl, %rax
orq %rax, %r13
decq %rax
movq %rax, -0x40(%rbp)
movq %r13, 0x30(%r9)
movq $-0x1, 0x8(%r9)
movw $0x0, 0x18(%r9)
leal -0x4c(%rbx), %ecx
cmpl $0x5, %ecx
setae %al
movl %ebx, %edx
andl $-0x2, %edx
cmpl $0x48, %edx
setne %dl
testb %al, %dl
je 0x57f0d
cmpl $0x44, %ebx
movq -0x60(%rbp), %r13
je 0x57f9c
cmpl $0x47, %ebx
jne 0x58317
cmpb $0x45, 0x10(%r12)
jne 0x57f93
movq %r12, -0x30(%rbp)
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x58(%rbp)
leaq 0x20a59(%rip), %r14     # 0x78894
xorl %r12d, %r12d
movq -0x70(%rbp), %rbx
movzbl (%r14), %eax
movl %eax, -0x38(%rbp)
movq -0x48(%rbp), %r15
movq 0x10(%r15), %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
movq %rax, %r13
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax,%r12), %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
movq -0x60(%rbp), %rdi
movl -0x38(%rbp), %esi
movq %r13, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x39f77
testq %rax, %rax
je 0x57ea7
movzwl 0x2(%r15), %ecx
andl $0x1, %ecx
orw %cx, 0x2(%rax)
movzwl 0x34(%r15), %ecx
movw %cx, 0x34(%rax)
movq -0x30(%rbp), %r13
movq %r13, %rdi
movq %rax, %rsi
movl $0x3, %edx
callq 0x57b67
movl %eax, %r15d
movq %r13, %rdi
movl %eax, %esi
callq 0x57c9f
movq 0x20(%r13), %r9
movslq %r15d, %rax
imulq $0x38, %rax, %rax
movl -0x4c(%rbp), %ecx
movl %ecx, 0x8(%r9,%rax)
addq $0x20, %r12
incq %r14
cmpq $0x20, %r12
je 0x57e42
movq -0x80(%rbp), %rax
movb $0x2, 0x1b(%r9,%rax)
addq %rax, %r9
movq -0x30(%rbp), %r12
movl -0x4c(%rbp), %ebx
movq -0x60(%rbp), %r13
movq -0x68(%rbp), %r14
jmp 0x5831a
testq %r15, %r15
je 0x57f26
movzbl (%r15), %eax
cmpl $0x5c, %eax
je 0x57f20
cmpl $0x18, %eax
jne 0x57f26
movq 0x10(%r15), %r15
jmp 0x57f0d
movq -0x48(%rbp), %rax
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x57f46
movzbl (%rax), %edx
cmpl $0x5c, %edx
je 0x57f40
cmpl $0x18, %edx
jne 0x57f46
movq 0x10(%rax), %rax
jmp 0x57f2e
movq -0x58(%rbp), %rdx
testq %rdx, 0x28(%r9)
movl $0xfff, %edx            # imm = 0xFFF
movl $0x400, %r14d           # imm = 0x400
cmovel %edx, %r14d
cmpb $-0x68, (%r15)
jne 0x582aa
movl 0x2c(%r15), %edx
movl %edx, 0xc(%r9)
movswl 0x30(%r15), %edx
movl %edx, 0x10(%r9)
cmpl $0x48, %ebx
je 0x58292
cmpl $0x49, %ebx
jne 0x58298
movw $0x80, %dx
jmp 0x5829f
cmpl $0x44, %ebx
jne 0x58317
movq -0x70(%rbp), %rdi
movl $0x1f0, %esi            # imm = 0x1F0
callq 0x115e9
movq %rax, %r15
testq %rax, %rax
je 0x58306
movl $0x1f0, %edx            # imm = 0x1F0
movq %r15, %rdi
xorl %esi, %esi
callq 0x8200
movq -0x30(%rbp), %rax
movq %r15, 0x10(%rax)
orb $0x10, 0x1a(%rax)
movq -0x38(%rbp), %rax
movq %rax, (%r15)
movq $0x0, 0x8(%r15)
movabsq $0x800000000, %rax      # imm = 0x800000000
movq %rax, 0x14(%r15)
movq %r15, %rax
addq $0x28, %rax
movq %rax, 0x20(%r15)
movq %r15, %rdi
movq -0x48(%rbp), %rsi
movl $0x44, %edx
callq 0x56a09
movl 0x14(%r15), %ebx
testl %ebx, %ebx
jle 0x58026
incl %ebx
leal -0x2(%rbx), %esi
movq %r15, %rdi
callq 0x57c9f
decl %ebx
cmpl $0x1, %ebx
jg 0x58014
movq %r15, -0x88(%rbp)
movq -0x70(%rbp), %rax
cmpb $0x0, 0x50(%rax)
movq -0x38(%rbp), %r11
jne 0x5830e
movq -0x88(%rbp), %rax
movl 0x14(%rax), %ebx
testl %ebx, %ebx
jle 0x58687
movq 0x20(%rax), %r13
movq $-0x1, -0x58(%rbp)
movq $-0x1, %r15
movq -0x30(%rbp), %r10
movzbl 0x18(%r13), %eax
testw %ax, %ax
je 0x580a8
movb 0x1a(%r13), %dil
testb $0x8, %dil
jne 0x5826e
movslq (%r14), %rsi
testq %rsi, %rsi
jle 0x580a1
movl 0xc(%r13), %edx
xorl %ecx, %ecx
cmpl %edx, 0x50(%r11,%rcx,4)
je 0x58175
incq %rcx
cmpq %rcx, %rsi
jne 0x5808e
xorl %edx, %edx
jmp 0x5817d
movq %r15, -0x78(%rbp)
movq -0x70(%rbp), %rdi
movl $0x1e8, %esi            # imm = 0x1E8
callq 0x115e9
testq %rax, %rax
je 0x5815c
movq %rax, %r15
movq %rax, 0x10(%r13)
orb $0x20, 0x1a(%r13)
movw $0x200, 0x18(%r13)      # imm = 0x200
movq %r12, %r14
movq (%r12), %rax
movq %rax, (%r15)
movq $0x0, 0x8(%r15)
movabsq $0x800000000, %rax      # imm = 0x800000000
movq %rax, 0x14(%r15)
movq %r15, %rax
addq $0x28, %rax
movq %rax, 0x20(%r15)
movq (%r13), %rsi
movq %r15, %rdi
movl $0x45, %edx
callq 0x56a09
movl 0x14(%r15), %r12d
testl %r12d, %r12d
jle 0x58134
incl %r12d
leal -0x2(%r12), %esi
movq %r15, %rdi
callq 0x57c9f
decl %r12d
cmpl $0x1, %r12d
jg 0x5811e
movq %r14, %r12
movq %r14, 0x8(%r15)
movq -0x70(%rbp), %rax
cmpb $0x0, 0x50(%rax)
je 0x581be
xorl %eax, %eax
movq -0x68(%rbp), %r14
movq -0x30(%rbp), %r10
movq -0x38(%rbp), %r11
movq -0x78(%rbp), %r15
jmp 0x5823a
movq $0x0, -0x58(%rbp)
movq -0x30(%rbp), %r10
movq -0x38(%rbp), %r11
movq -0x78(%rbp), %r15
jmp 0x5826e
movl $0x1, %edx
shlq %cl, %rdx
testb $0x2, %dil
je 0x58252
testl %esi, %esi
jle 0x581b7
movslq 0x8(%r13), %rcx
imulq $0x38, %rcx, %rcx
movq -0x88(%rbp), %rdi
movq 0x20(%rdi), %rdi
movl 0xc(%rdi,%rcx), %edi
xorl %ecx, %ecx
cmpl %edi, 0x50(%r11,%rcx,4)
je 0x58247
incq %rcx
cmpq %rcx, %rsi
jne 0x581a4
xorl %esi, %esi
jmp 0x5824f
movl 0x14(%r15), %edx
testl %edx, %edx
movq -0x68(%rbp), %r14
movq -0x30(%rbp), %r10
movq -0x38(%rbp), %r11
jle 0x5828b
movq 0x20(%r15), %rsi
xorl %eax, %eax
xorl %edi, %edi
movq -0x78(%rbp), %r15
movq (%rsi), %rcx
movzbl (%rcx), %ecx
leal -0x51(%rcx), %r8d
cmpl $-0x5, %r8d
setb %r8b
andl $-0x2, %ecx
cmpl $0x48, %ecx
setne %cl
testb %r8b, %cl
jne 0x58230
movslq (%r14), %r8
testq %r8, %r8
jle 0x5821f
movl 0xc(%rsi), %r9d
xorl %ecx, %ecx
cmpl %r9d, 0x50(%r11,%rcx,4)
je 0x58224
incq %rcx
cmpq %rcx, %r8
jne 0x58210
xorl %r8d, %r8d
jmp 0x5822d
movl $0x1, %r8d
shlq %cl, %r8
orq %r8, %rax
incl %edi
addq $0x38, %rsi
cmpl %edx, %edi
jne 0x581e2
andq %rax, %r15
movq $0x0, -0x58(%rbp)
jmp 0x5826e
movl $0x1, %esi
shlq %cl, %rsi
orq %rsi, %rdx
andq %rdx, %r15
movzwl %ax, %eax
movq -0x58(%rbp), %rcx
andq %rdx, %rcx
testb $0x2, %al
movl $0x0, %eax
cmoveq %rax, %rcx
movq %rcx, -0x58(%rbp)
cmpl $0x2, %ebx
jl 0x5869a
decl %ebx
addq $0x38, %r13
testq %r15, %r15
jne 0x58068
jmp 0x5869a
xorl %eax, %eax
jmp 0x58153
movw $0x1, %dx
jmp 0x5829f
movl $0x2, %edx
shll %cl, %edx
movzwl %r14w, %ecx
andl %edx, %ecx
movw %cx, 0x18(%r9)
movb $0x1, %r10b
testq %rax, %rax
je 0x582fa
cmpb $-0x68, (%rax)
jne 0x582fa
cmpl $0x0, 0xc(%r9)
js 0x58323
movq -0x70(%rbp), %rbx
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
movq %rax, %r15
cmpb $0x0, 0x50(%rbx)
je 0x5832f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x34068
xorl %r11d, %r11d
xorl %eax, %eax
movq -0x30(%rbp), %r9
movq %r9, %rbx
movb $0x1, %r10b
jmp 0x58397
movq %r9, %rbx
movq -0x60(%rbp), %r13
jmp 0x5849a
movq -0x30(%rbp), %rax
movq %r15, 0x10(%rax)
movq 0x20(%r12), %r9
addq -0x80(%rbp), %r9
movl -0x4c(%rbp), %ebx
movq -0x40(%rbp), %rax
jmp 0x584b1
xorl %r11d, %r11d
movq -0x48(%rbp), %r15
movq %r9, %rbx
jmp 0x5839b
movq %r12, %rdi
movq %r15, %rsi
movl $0x3, %edx
callq 0x57b67
testl %eax, %eax
je 0x582e6
movq 0x20(%r12), %rcx
cltq
imulq $0x38, %rax, %rax
leaq (%rcx,%rax), %r9
movl -0x4c(%rbp), %edx
movl %edx, 0x8(%rcx,%rax)
movq -0x80(%rbp), %rax
movb $0x1, 0x1b(%rcx,%rax)
orb $0x8, 0x1a(%rcx,%rax)
leaq (%rcx,%rax), %rbx
movb $0x1, %al
movq -0x48(%rbp), %rcx
cmpb $0x4c, (%rcx)
movb $0x1, %r10b
jne 0x58394
testb $0x1, 0x2(%rcx)
jne 0x58394
movq -0x70(%rbp), %rcx
testb $0x2, 0x4d(%rcx)
jne 0x58394
orb $0x4, 0x19(%rbx)
movw $0x400, %r11w           # imm = 0x400
jmp 0x58397
xorl %r11d, %r11d
testb %al, %al
je 0x583f0
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rax
movzwl 0x2(%rax), %ecx
movl $0x100, %edi            # imm = 0x100
movl %ecx, %edx
andl %edi, %edx
movzwl 0x2(%rsi), %r8d
andl %edi, %r8d
cmpw %r8w, %dx
jne 0x58402
testw %dx, %dx
jne 0x583f8
movq -0x60(%rbp), %rdi
movq %r9, -0x30(%rbp)
movl %r11d, -0x38(%rbp)
callq 0x4b095
movl -0x38(%rbp), %r11d
movb $0x1, %r10b
movq -0x30(%rbp), %r9
testq %rax, %rax
je 0x58402
movq 0x10(%r15), %rax
orw $0x100, 0x2(%rax)       # imm = 0x100
jmp 0x58402
xorl %r10d, %r10d
jmp 0x582fd
andl $0xfeff, %ecx           # imm = 0xFEFF
movw %cx, 0x2(%rax)
movq 0x18(%r15), %rax
movq 0x10(%r15), %rcx
movq %rcx, 0x18(%r15)
movq %rax, 0x10(%r15)
movb (%r15), %cl
cmpb $0x4d, %cl
jb 0x58439
addb $-0x4d, %cl
xorb $0x2, %cl
addb $0x4d, %cl
movb %cl, (%r15)
jmp 0x58439
movzbl (%rax), %ecx
cmpl $0x5c, %ecx
je 0x58435
cmpl $0x18, %ecx
jne 0x5843e
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x58428
movl 0x2c(%rax), %ecx
movl %ecx, 0xc(%r9)
movswl 0x30(%rax), %eax
movl %eax, 0x10(%r9)
movq -0x58(%rbp), %rax
orq -0x40(%rbp), %rax
movq %rax, 0x28(%r9)
movq %r13, 0x30(%r9)
movzbl (%r15), %ecx
cmpl $0x48, %ecx
je 0x58475
cmpl $0x49, %ecx
movq -0x60(%rbp), %r13
jne 0x5847f
movw $0x80, %ax
jmp 0x58489
movw $0x1, %ax
movq -0x60(%rbp), %r13
jmp 0x58489
addb $-0x4c, %cl
movl $0x2, %eax
shll %cl, %eax
movzwl %r11w, %ecx
addl %eax, %ecx
movzwl %r14w, %eax
andl %ecx, %eax
movw %ax, 0x18(%r9)
movq -0x40(%rbp), %rax
movq %rbx, %r9
testb %r10b, %r10b
movl -0x4c(%rbp), %ebx
movq -0x68(%rbp), %r14
je 0x58ebe
cmpb $0x45, 0x10(%r12)
jne 0x58d68
movq (%r13), %rdi
movb $0x1, %bl
movq -0x48(%rbp), %r15
cmpb $-0x69, (%r15)
movb $0x1, %r8b
movb $0x1, %cl
jne 0x58575
movq 0x20(%r15), %rax
testq %rax, %rax
je 0x58512
cmpl $0x2, (%rax)
movb $0x1, %cl
jne 0x58575
movq 0x8(%r15), %rsi
testq %rsi, %rsi
movq %r9, -0x30(%rbp)
je 0x58516
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rsi, %rax
incl %edx
cmpb $0x0, (%rax)
leaq 0x1(%rax), %rax
jne 0x584ff
andl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
jmp 0x58518
movb $0x1, %cl
jmp 0x58575
xorl %edx, %edx
movq %rdi, %r13
movl $0x2, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x154a0
testq %rax, %rax
je 0x58569
movb 0x3(%rax), %dl
movb $0x1, %r8b
movb $0x1, %cl
testb $0x1, %dl
movq -0x30(%rbp), %r9
movq %r13, %rdi
je 0x58575
movq 0x8(%rax), %rax
movb (%rax), %cl
movb %cl, -0x78(%rbp)
movb 0x1(%rax), %r14b
movb 0x2(%rax), %al
movb %al, -0x90(%rbp)
andb $0x2, %dl
shrb %dl
xorl %ecx, %ecx
movl %edx, %r8d
jmp 0x58575
movb $0x1, %r8b
movb $0x1, %cl
movq -0x30(%rbp), %r9
movq %r13, %rdi
testb %cl, %cl
je 0x5858a
xorl %esi, %esi
xorl %ecx, %ecx
movq -0x68(%rbp), %r14
movq -0x40(%rbp), %rax
jmp 0x58b81
movq %r12, %r13
movq 0x20(%r15), %rax
movq 0x8(%rax), %r12
movq 0x20(%r12), %r15
cmpb $-0x68, (%r15)
jne 0x5863a
movq %rdi, -0x38(%rbp)
movb %r8b, -0x58(%rbp)
movq %r9, -0x30(%rbp)
movq %r15, %rdi
callq 0x4b00f
cmpb $0x61, %al
jne 0x58652
movq 0x40(%r15), %rax
testb $0x10, 0x46(%rax)
movq -0x30(%rbp), %r9
jne 0x5866b
movq (%r12), %rcx
movb (%rcx), %al
cmpb $-0x7c, %al
jne 0x585df
movb 0x37(%rcx), %al
cmpb $-0x7b, %al
movq %rcx, -0xa8(%rbp)
movb %al, -0xa0(%rbp)
jne 0x588a7
movq -0x60(%rbp), %rax
movq 0x220(%rax), %rdi
movswl 0x30(%rcx), %r15d
movl %r15d, %esi
callq 0x59075
movq %rax, %rdi
testq %rax, %rax
je 0x588b7
cmpb $0x3, 0x26(%rdi)
jne 0x588b7
movq %rdi, %rbx
movl $0x1, %esi
callq 0xee49
movq %rbx, %rdi
movq %rax, %rdx
jmp 0x588b9
xorl %esi, %esi
xorl %ecx, %ecx
movq %r13, %r12
movq -0x68(%rbp), %r14
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %r15
jmp 0x58b81
xorl %esi, %esi
xorl %ecx, %ecx
movq %r13, %r12
movq -0x68(%rbp), %r14
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %r15
movq -0x30(%rbp), %r9
jmp 0x5867e
xorl %esi, %esi
xorl %ecx, %ecx
movq %r13, %r12
movq -0x68(%rbp), %r14
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %r15
movb -0x58(%rbp), %r8b
jmp 0x58b81
movq $-0x1, %r15
movq $-0x1, -0x58(%rbp)
movq -0x30(%rbp), %r10
movq -0x88(%rbp), %rax
movq %r15, 0x1e8(%rax)
xorl %eax, %eax
testq %r15, %r15
setne %al
shll $0x8, %eax
movw %ax, 0x18(%r10)
cmpq $0x0, -0x58(%rbp)
movq -0x60(%rbp), %r13
je 0x5830e
movq %r12, -0x30(%rbp)
movq -0x88(%rbp), %rax
movq 0x20(%rax), %rcx
movq %rcx, -0xa0(%rbp)
movl 0x14(%rax), %eax
movq %rax, -0xb0(%rbp)
decl %eax
movl %eax, -0x94(%rbp)
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movq $0x0, -0xa8(%rbp)
movb $0x1, %al
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
cmpl $0x0, -0xb0(%rbp)
jle 0x58771
movl -0x94(%rbp), %ecx
movl %ecx, %r13d
movq -0xa0(%rbp), %rbx
andb $-0x41, 0x1a(%rbx)
movl 0xc(%rbx), %edx
cmpl %r12d, %edx
je 0x58757
movslq (%r14), %rsi
testq %rsi, %rsi
jle 0x58745
xorl %ecx, %ecx
cmpl %edx, 0x50(%r11,%rcx,4)
je 0x58749
incq %rcx
cmpq %rcx, %rsi
jne 0x58736
xorl %esi, %esi
jmp 0x58751
movl $0x1, %esi
shlq %cl, %rsi
testq %rsi, -0x58(%rbp)
jne 0x58785
addq $0x38, %rbx
leal -0x1(%r13), %ecx
testl %r13d, %r13d
movl %ecx, %r13d
jg 0x58720
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movb $0x1, %cl
jmp 0x5878d
movq -0xa0(%rbp), %rbx
movb $0x1, %cl
movl -0x94(%rbp), %edx
movl %edx, %r13d
jmp 0x5878d
movl 0x10(%rbx), %edi
xorl %ecx, %ecx
movl %edx, %r12d
testb %cl, %cl
jne 0x58830
testl %r13d, %r13d
js 0x5880d
addq $0x1a, %rbx
movl %edi, -0x78(%rbp)
cmpl %r12d, -0xe(%rbx)
jne 0x587ed
xorl %edx, %edx
movl $0x0, %ecx
cmpl %edi, -0xa(%rbx)
jne 0x587f7
movq -0x1a(%rbx), %r14
movq 0x18(%r14), %rdi
callq 0x4b00f
movl %eax, %r15d
movq 0x10(%r14), %rdi
movq -0x68(%rbp), %r14
callq 0x4b00f
movl -0x78(%rbp), %edi
movq -0x38(%rbp), %r11
testb %r15b, %r15b
je 0x587e8
xorl %edx, %edx
movl $0x0, %ecx
cmpb %al, %r15b
jne 0x587f7
orb $0x40, (%rbx)
jmp 0x587f0
andb $-0x41, (%rbx)
movl $0x1, %ecx
movb $0x1, %dl
testb %dl, %dl
je 0x58812
leal -0x1(%r13), %eax
addq $0x38, %rbx
testl %r13d, %r13d
movl %eax, %r13d
jg 0x587a1
jmp 0x58812
movl $0x1, %ecx
testl %ecx, %ecx
sete %al
movq -0xa8(%rbp), %rdx
orl %edx, %ecx
leal 0x1(%rdx), %ecx
movq %rcx, -0xa8(%rbp)
je 0x58707
testb $0x1, %al
movq -0x30(%rbp), %r12
movq -0x60(%rbp), %r13
jne 0x5830e
movq -0x88(%rbp), %rax
movl 0x14(%rax), %ebx
testl %ebx, %ebx
jle 0x589f7
movq 0x20(%rax), %r12
incl %ebx
xorl %esi, %esi
xorl %r15d, %r15d
testb $0x40, 0x1a(%r12)
je 0x58897
movq (%r12), %rax
movq 0x18(%rax), %rsi
movq -0x70(%rbp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
movq -0x38(%rbp), %rcx
movq (%rcx), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x3d42f
movq %rax, %r15
movq (%r12), %rax
movq 0x10(%rax), %rsi
addq $0x38, %r12
decl %ebx
cmpl $0x1, %ebx
jg 0x5885d
jmp 0x589fc
cmpb $0x5e, %al
movq -0x38(%rbp), %r8
jne 0x588e6
movq 0x8(%rcx), %rdx
xorl %edi, %edi
jmp 0x588ea
xorl %edx, %edx
movq %r13, %r12
movq -0x38(%rbp), %r8
movq -0x60(%rbp), %r9
movq 0x10(%r9), %rax
cmpw $0x21, %r15w
movb -0x78(%rbp), %r10b
movb -0x90(%rbp), %r11b
jl 0x588fa
movl $0xffffffff, 0x104(%rax) # imm = 0xFFFFFFFF
jmp 0x5890d
xorl %edi, %edi
xorl %edx, %edx
movq %r13, %r12
movb -0x78(%rbp), %r10b
movb -0x90(%rbp), %r11b
jmp 0x5890d
decb %r15b
movl $0x1, %esi
movl %r15d, %ecx
shll %cl, %esi
orl %esi, 0x104(%rax)
movb $0x1, %bl
testq %rdx, %rdx
je 0x589e4
movabsq $-0x200000000, %rax     # imm = 0xFFFFFFFE00000000
xorl %r15d, %r15d
movabsq $0x100000000, %rsi      # imm = 0x100000000
addq %rsi, %rax
movb (%rdx,%r15), %cl
incq %r15
testb %cl, %cl
je 0x5894c
cmpb %r10b, %cl
je 0x5894c
cmpb %r14b, %cl
je 0x5894c
cmpb %r11b, %cl
jne 0x5892f
cmpq $0x1, %r15
movq -0x68(%rbp), %r14
je 0x589d5
sarq $0x20, %rax
cmpb $-0x1, (%rdx,%rax)
je 0x589d5
movq %rdi, %rbx
xorl %esi, %esi
cmpb %r10b, %cl
jne 0x58977
movl %r15d, %eax
xorl %esi, %esi
cmpb $0x0, (%rdx,%rax)
sete %sil
movl %esi, -0x38(%rbp)
movq %r8, %rdi
movl $0x5e, %esi
callq 0x3d5ef
testq %rax, %rax
je 0x58996
movq 0x8(%rax), %rcx
movb $0x0, -0x1(%rcx,%r15)
cmpb $-0x7b, -0xa0(%rbp)
movq %rbx, %rdi
movq -0xa8(%rbp), %rsi
movq -0x60(%rbp), %rdx
jne 0x58aa6
movq 0x10(%rdx), %r8
movswl 0x30(%rsi), %ecx
movq %rax, %r13
cmpl $0x21, %ecx
jl 0x58aae
movl $0xffffffff, 0x104(%r8) # imm = 0xFFFFFFFF
jmp 0x58abe
xorl %r13d, %r13d
movl $0x0, -0x38(%rbp)
jmp 0x58b66
xorl %r13d, %r13d
movl $0x0, -0x38(%rbp)
movq -0x68(%rbp), %r14
jmp 0x58b66
xorl %r15d, %r15d
xorl %esi, %esi
movq -0x70(%rbp), %rbx
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
movq %r13, %rdi
movl $0x48, %esi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x39f77
testq %rax, %rax
je 0x58a80
movq -0x48(%rbp), %rdx
movzwl 0x2(%rdx), %ecx
andl $0x1, %ecx
orw %cx, 0x2(%rax)
movzwl 0x34(%rdx), %ecx
movw %cx, 0x34(%rax)
movq %r15, 0x20(%rax)
movq -0x30(%rbp), %r12
movq %r12, %rdi
movq %rax, %rsi
movl $0x3, %edx
callq 0x57b67
movl %eax, %r15d
movq %r12, %rdi
movl %eax, %esi
callq 0x57c9f
movq 0x20(%r12), %rdx
movslq %r15d, %rax
imulq $0x38, %rax, %rax
movl -0x4c(%rbp), %ecx
movl %ecx, 0x8(%rdx,%rax)
movq -0x80(%rbp), %rax
movb $0x1, 0x1b(%rdx,%rax)
jmp 0x58a9a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3410b
movq -0x30(%rbp), %r12
movq -0x80(%rbp), %rax
movq -0x90(%rbp), %rdx
movw $0x800, 0x18(%rdx,%rax) # imm = 0x800
jmp 0x5830e
movq %rax, %r13
jmp 0x58b64
decb %cl
movl $0x1, %eax
shll %cl, %eax
orl %eax, 0x104(%r8)
movl -0x38(%rbp), %eax
testl %eax, %eax
je 0x58b64
movq 0x8(%rsi), %rax
cmpb $0x0, 0x1(%rax)
je 0x58b64
movb 0x1f(%rdx), %al
testb %al, %al
movq %r8, -0x78(%rbp)
je 0x58af1
decb %al
movb %al, 0x1f(%rdx)
movzbl %al, %eax
movl 0x28(%rdx,%rax,4), %r15d
jmp 0x58afc
movl 0x58(%rdx), %r15d
incl %r15d
movl %r15d, 0x58(%rdx)
movq %rdx, %rdi
movl %r15d, %edx
callq 0x4d211
movq -0x78(%rbp), %rcx
movl 0x34(%rcx), %eax
testl %eax, %eax
je 0x58b24
decl %eax
movq 0x8(%rcx), %rcx
leaq (%rax,%rax,2), %rax
movl $0x0, 0xc(%rcx,%rax,8)
testl %r15d, %r15d
movq %rbx, %rdi
je 0x58b64
movq -0x60(%rbp), %rdx
movzbl 0x1f(%rdx), %eax
cmpq $0x7, %rax
ja 0x58b64
xorl %ecx, %ecx
cmpl %r15d, 0x84(%rdx,%rcx)
je 0x58b5f
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x58b3c
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rdx)
movl %r15d, 0x28(%rdx,%rax,4)
jmp 0x58b64
movb $0x1, 0x7c(%rdx,%rcx)
xorl %ebx, %ebx
callq 0x14350
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %r15
movq -0x30(%rbp), %r9
movb -0x58(%rbp), %r8b
movl -0x38(%rbp), %ecx
movq %r13, %rsi
testb %bl, %bl
movl -0x4c(%rbp), %ebx
jne 0x58d6c
movl %ecx, -0x38(%rbp)
movl %r8d, %r13d
movq 0x20(%r15), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %r15
movq -0x70(%rbp), %r14
movq %r14, %rdi
movq %rsi, -0x58(%rbp)
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
cmpb $0x0, 0x50(%r14)
movq %rax, -0x30(%rbp)
je 0x58bc5
movl %r13d, %edi
movq %r15, %r13
jmp 0x58c23
movq 0x8(%rax), %r9
testq %r9, %r9
movl %r13d, %edi
je 0x58bef
movq $-0x1, %rcx
movq %r15, %r13
cmpb $0x0, 0x1(%r9,%rcx)
leaq 0x1(%rcx), %rcx
jne 0x58bdb
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
jmp 0x58bf4
xorl %ecx, %ecx
movq %r15, %r13
movb -0x1(%r9,%rcx), %dl
testb %dil, %dil
jne 0x58c1c
movzbl %dl, %edx
xorl %esi, %esi
cmpb $0x40, %dl
movl -0x38(%rbp), %r8d
cmovel %esi, %r8d
movl %r8d, -0x38(%rbp)
leaq 0x1d447(%rip), %rsi     # 0x76060
movb (%rdx,%rsi), %dl
incb %dl
movb %dl, -0x1(%r9,%rcx)
leaq 0x22914(%rip), %rax     # 0x7b53e
leaq 0x22e85(%rip), %rcx     # 0x7bab6
testb %dil, %dil
cmovneq %rax, %rcx
leaq -0xc0(%rbp), %r15
movq %rcx, (%r15)
movl $0x6, 0x8(%r15)
movq -0x70(%rbp), %rdi
movq %r13, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
movq -0x60(%rbp), %r14
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x40694
movq %r14, %rdi
movl $0x50, %esi
movq %rax, %rdx
movq -0x58(%rbp), %rcx
xorl %r8d, %r8d
callq 0x39f77
testq %rax, %rax
je 0x58c9f
movq -0x48(%rbp), %rdx
movzwl 0x2(%rdx), %ecx
andl $0x1, %ecx
orw %cx, 0x2(%rax)
movzwl 0x34(%rdx), %ecx
movw %cx, 0x34(%rax)
movq %r12, %rdi
movq %rax, %rsi
movl $0x3, %edx
callq 0x57b67
movl %eax, %r15d
movq %r12, %rdi
movl %eax, %esi
callq 0x57c9f
movq -0x70(%rbp), %rdi
movq %r13, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
leaq -0xc0(%rbp), %rdx
movq -0x60(%rbp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x40694
movq %r14, %rdi
movl $0x4f, %esi
movq %rax, %rdx
movq -0x30(%rbp), %rcx
xorl %r8d, %r8d
callq 0x39f77
testq %rax, %rax
je 0x58d15
movq -0x48(%rbp), %rdx
movzwl 0x2(%rdx), %ecx
andl $0x1, %ecx
orw %cx, 0x2(%rax)
movzwl 0x34(%rdx), %ecx
movw %cx, 0x34(%rax)
movq %r12, %rdi
movq %rax, %rsi
movl $0x3, %edx
callq 0x57b67
movl %eax, %r13d
movq %r12, %rdi
movl %eax, %esi
callq 0x57c9f
movq 0x20(%r12), %rax
movq -0x80(%rbp), %rcx
leaq (%rax,%rcx), %r9
cmpl $0x0, -0x38(%rbp)
movq -0x68(%rbp), %r14
je 0x58d64
movslq %r15d, %rcx
imulq $0x38, %rcx, %rcx
movl %ebx, 0x8(%rax,%rcx)
movslq %r13d, %rcx
imulq $0x38, %rcx, %rcx
movl %ebx, 0x8(%rax,%rcx)
movb $0x2, 0x1b(%r9)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %r15
cmpb $-0x69, (%r15)
jne 0x58eba
movq 0x8(%r15), %rdx
movb (%rdx), %cl
testb %cl, %cl
je 0x58db0
incq %rdx
leaq 0x24476(%rip), %rax     # 0x7d200
leaq 0x1d2cf(%rip), %rsi     # 0x76060
movzbl %cl, %edi
movb (%rdi,%rsi), %dil
movzbl (%rax), %r8d
cmpb (%r8,%rsi), %dil
jne 0x58db7
incq %rax
movb (%rdx), %cl
incq %rdx
testb %cl, %cl
jne 0x58d91
jmp 0x58db7
leaq 0x24449(%rip), %rax     # 0x7d200
movzbl %cl, %ecx
leaq 0x1d29f(%rip), %rdx     # 0x76060
movb (%rcx,%rdx), %cl
movzbl (%rax), %eax
cmpb (%rax,%rdx), %cl
jne 0x58eb6
movq 0x20(%r15), %rax
cmpl $0x2, (%rax)
jne 0x58eb6
movq 0x8(%rax), %rax
movq 0x20(%rax), %rax
cmpb $-0x68, (%rax)
jne 0x58eb6
movq 0x20(%r15), %rax
movq 0x8(%rax), %rax
movq (%rax), %rsi
movq 0x20(%rax), %rax
movq %rax, -0x48(%rbp)
movq %r14, %rdi
movq %rsi, -0x68(%rbp)
movq %r9, %r15
callq 0x58ed0
movq %rax, %r13
movq %r14, %rdi
movq -0x48(%rbp), %r14
movq %r14, %rsi
callq 0x58ed0
movq %r15, %r9
testq %r13, %rax
movq -0x40(%rbp), %rax
jne 0x58eba
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
movq -0x60(%rbp), %rdi
movl $0x32, %esi
xorl %edx, %edx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x39f77
movq %r12, %rdi
movq %rax, %rsi
movl $0x3, %edx
callq 0x57b67
movq 0x20(%r12), %rcx
cltq
imulq $0x38, %rax, %rax
movq %r13, 0x28(%rcx,%rax)
movl 0x2c(%r14), %edx
movl %edx, 0xc(%rcx,%rax)
movswl 0x30(%r14), %edx
movl %edx, 0x10(%rcx,%rax)
movw $0x40, 0x18(%rcx,%rax)
movl %ebx, 0x8(%rcx,%rax)
movq 0x20(%r12), %rdx
movq -0x80(%rbp), %rsi
movb $0x1, 0x1b(%rdx,%rsi)
orb $0x8, 0x1a(%rdx,%rsi)
leaq (%rdx,%rsi), %r9
movq 0x30(%rdx,%rsi), %rdx
movq %rdx, 0x30(%rcx,%rax)
movq -0x40(%rbp), %rax
orq %rax, 0x28(%r9)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq