// File: /workspace/github_c_makefile_star2_O3/skeeto[P]flappy/sqlite3.c
// Function: wherePathSolver
static int wherePathSolver(WhereInfo *pWInfo, LogEst nRowEst){
  int mxChoice;             /* Maximum number of simultaneous paths tracked */
  int nLoop;                /* Number of terms in the join */
  Parse *pParse;            /* Parsing context */
  sqlite3 *db;              /* The database connection */
  int iLoop;                /* Loop counter over the terms of the join */
  int ii, jj;               /* Loop counters */
  int mxI = 0;              /* Index of next entry to replace */
  LogEst rCost;             /* Cost of a path */
  LogEst nOut;              /* Number of outputs */
  LogEst mxCost = 0;        /* Maximum cost of a set of paths */
  LogEst mxOut = 0;         /* Maximum nOut value on the set of paths */
  LogEst rSortCost;         /* Cost to do a sort */
  int nTo, nFrom;           /* Number of valid entries in aTo[] and aFrom[] */
  WherePath *aFrom;         /* All nFrom paths at the previous level */
  WherePath *aTo;           /* The nTo best paths at the current level */
  WherePath *pFrom;         /* An element of aFrom[] that we are working on */
  WherePath *pTo;           /* An element of aTo[] that we are working on */
  WhereLoop *pWLoop;        /* One of the WhereLoop objects */
  WhereLoop **pX;           /* Used to divy up the pSpace memory */
  char *pSpace;             /* Temporary memory used by this routine */

  pParse = pWInfo->pParse;
  db = pParse->db;
  nLoop = pWInfo->nLevel;
  /* TUNING: For simple queries, only the best path is tracked.
  ** For 2-way joins, the 5 best paths are followed.
  ** For joins of 3 or more tables, track the 10 best paths */
  mxChoice = (nLoop==1) ? 1 : (nLoop==2 ? 5 : 10);
  assert( nLoop<=pWInfo->pTabList->nSrc );
  WHERETRACE(0x002, ("---- begin solver\n"));

  /* Allocate and initialize space for aTo and aFrom */
  ii = (sizeof(WherePath)+sizeof(WhereLoop*)*nLoop)*mxChoice*2;
  pSpace = sqlite3DbMallocRaw(db, ii);
  if( pSpace==0 ) return SQLITE_NOMEM;
  aTo = (WherePath*)pSpace;
  aFrom = aTo+mxChoice;
  memset(aFrom, 0, sizeof(aFrom[0]));
  pX = (WhereLoop**)(aFrom+mxChoice);
  for(ii=mxChoice*2, pFrom=aTo; ii>0; ii--, pFrom++, pX += nLoop){
    pFrom->aLoop = pX;
  }

  /* Seed the search with a single WherePath containing zero WhereLoops.
  **
  ** TUNING: Do not let the number of iterations go above 25.  If the cost
  ** of computing an automatic index is not paid back within the first 25
  ** rows, then do not use the automatic index. */
  aFrom[0].nRow = MIN(pParse->nQueryLoop, 46);  assert( 46==sqlite3LogEst(25) );
  nFrom = 1;

  /* Precompute the cost of sorting the final result set, if the caller
  ** to sqlite3WhereBegin() was concerned about sorting */
  rSortCost = 0;
  if( pWInfo->pOrderBy==0 || nRowEst==0 ){
    aFrom[0].isOrderedValid = 1;
  }else{
    /* TUNING: Estimated cost of sorting is 48*N*log2(N) where N is the
    ** number of output rows. The 48 is the expected size of a row to sort. 
    ** FIXME:  compute a better estimate of the 48 multiplier based on the
    ** result set expressions. */
    rSortCost = nRowEst + estLog(nRowEst);
    WHERETRACE(0x002,("---- sort cost=%-3d\n", rSortCost));
  }

  /* Compute successively longer WherePaths using the previous generation
  ** of WherePaths as the basis for the next.  Keep track of the mxChoice
  ** best paths at each generation */
  for(iLoop=0; iLoop<nLoop; iLoop++){
    nTo = 0;
    for(ii=0, pFrom=aFrom; ii<nFrom; ii++, pFrom++){
      for(pWLoop=pWInfo->pLoops; pWLoop; pWLoop=pWLoop->pNextLoop){
        Bitmask maskNew;
        Bitmask revMask = 0;
        u8 isOrderedValid = pFrom->isOrderedValid;
        u8 isOrdered = pFrom->isOrdered;
        if( (pWLoop->prereq & ~pFrom->maskLoop)!=0 ) continue;
        if( (pWLoop->maskSelf & pFrom->maskLoop)!=0 ) continue;
        /* At this point, pWLoop is a candidate to be the next loop. 
        ** Compute its cost */
        rCost = sqlite3LogEstAdd(pWLoop->rSetup,pWLoop->rRun + pFrom->nRow);
        rCost = sqlite3LogEstAdd(rCost, pFrom->rCost);
        nOut = pFrom->nRow + pWLoop->nOut;
        maskNew = pFrom->maskLoop | pWLoop->maskSelf;
        if( !isOrderedValid ){
          switch( wherePathSatisfiesOrderBy(pWInfo,
                       pWInfo->pOrderBy, pFrom, pWInfo->wctrlFlags,
                       iLoop, pWLoop, &revMask) ){
            case 1:  /* Yes.  pFrom+pWLoop does satisfy the ORDER BY clause */
              isOrdered = 1;
              isOrderedValid = 1;
              break;
            case 0:  /* No.  pFrom+pWLoop will require a separate sort */
              isOrdered = 0;
              isOrderedValid = 1;
              rCost = sqlite3LogEstAdd(rCost, rSortCost);
              break;
            default: /* Cannot tell yet.  Try again on the next iteration */
              break;
          }
        }else{
          revMask = pFrom->revLoop;
        }
        /* Check to see if pWLoop should be added to the mxChoice best so far */
        for(jj=0, pTo=aTo; jj<nTo; jj++, pTo++){
          if( pTo->maskLoop==maskNew
           && pTo->isOrderedValid==isOrderedValid
           && ((pTo->rCost<=rCost && pTo->nRow<=nOut) ||
                (pTo->rCost>=rCost && pTo->nRow>=nOut))
          ){
            testcase( jj==nTo-1 );
            break;
          }
        }
        if( jj>=nTo ){
          if( nTo>=mxChoice && rCost>=mxCost ){
#ifdef WHERETRACE_ENABLED /* 0x4 */
            if( sqlite3WhereTrace&0x4 ){
              sqlite3DebugPrintf("Skip   %s cost=%-3d,%3d order=%c\n",
                  wherePathName(pFrom, iLoop, pWLoop), rCost, nOut,
                  isOrderedValid ? (isOrdered ? 'Y' : 'N') : '?');
            }
#endif
            continue;
          }
          /* Add a new Path to the aTo[] set */
          if( nTo<mxChoice ){
            /* Increase the size of the aTo set by one */
            jj = nTo++;
          }else{
            /* New path replaces the prior worst to keep count below mxChoice */
            jj = mxI;
          }
          pTo = &aTo[jj];
#ifdef WHERETRACE_ENABLED /* 0x4 */
          if( sqlite3WhereTrace&0x4 ){
            sqlite3DebugPrintf("New    %s cost=%-3d,%3d order=%c\n",
                wherePathName(pFrom, iLoop, pWLoop), rCost, nOut,
                isOrderedValid ? (isOrdered ? 'Y' : 'N') : '?');
          }
#endif
        }else{
          if( pTo->rCost<=rCost && pTo->nRow<=nOut ){
#ifdef WHERETRACE_ENABLED /* 0x4 */
            if( sqlite3WhereTrace&0x4 ){
              sqlite3DebugPrintf(
                  "Skip   %s cost=%-3d,%3d order=%c",
                  wherePathName(pFrom, iLoop, pWLoop), rCost, nOut,
                  isOrderedValid ? (isOrdered ? 'Y' : 'N') : '?');
              sqlite3DebugPrintf("   vs %s cost=%-3d,%d order=%c\n",
                  wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow,
                  pTo->isOrderedValid ? (pTo->isOrdered ? 'Y' : 'N') : '?');
            }
#endif
            testcase( pTo->rCost==rCost );
            continue;
          }
          testcase( pTo->rCost==rCost+1 );
          /* A new and better score for a previously created equivalent path */
#ifdef WHERETRACE_ENABLED /* 0x4 */
          if( sqlite3WhereTrace&0x4 ){
            sqlite3DebugPrintf(
                "Update %s cost=%-3d,%3d order=%c",
                wherePathName(pFrom, iLoop, pWLoop), rCost, nOut,
                isOrderedValid ? (isOrdered ? 'Y' : 'N') : '?');
            sqlite3DebugPrintf("  was %s cost=%-3d,%3d order=%c\n",
                wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow,
                pTo->isOrderedValid ? (pTo->isOrdered ? 'Y' : 'N') : '?');
          }
#endif
        }
        /* pWLoop is a winner.  Add it to the set of best so far */
        pTo->maskLoop = pFrom->maskLoop | pWLoop->maskSelf;
        pTo->revLoop = revMask;
        pTo->nRow = nOut;
        pTo->rCost = rCost;
        pTo->isOrderedValid = isOrderedValid;
        pTo->isOrdered = isOrdered;
        memcpy(pTo->aLoop, pFrom->aLoop, sizeof(WhereLoop*)*iLoop);
        pTo->aLoop[iLoop] = pWLoop;
        if( nTo>=mxChoice ){
          mxI = 0;
          mxCost = aTo[0].rCost;
          mxOut = aTo[0].nRow;
          for(jj=1, pTo=&aTo[1]; jj<mxChoice; jj++, pTo++){
            if( pTo->rCost>mxCost || (pTo->rCost==mxCost && pTo->nRow>mxOut) ){
              mxCost = pTo->rCost;
              mxOut = pTo->nRow;
              mxI = jj;
            }
          }
        }
      }
    }

#ifdef WHERETRACE_ENABLED  /* >=2 */
    if( sqlite3WhereTrace>=2 ){
      sqlite3DebugPrintf("---- after round %d ----\n", iLoop);
      for(ii=0, pTo=aTo; ii<nTo; ii++, pTo++){
        sqlite3DebugPrintf(" %s cost=%-3d nrow=%-3d order=%c",
           wherePathName(pTo, iLoop+1, 0), pTo->rCost, pTo->nRow,
           pTo->isOrderedValid ? (pTo->isOrdered ? 'Y' : 'N') : '?');
        if( pTo->isOrderedValid && pTo->isOrdered ){
          sqlite3DebugPrintf(" rev=0x%llx\n", pTo->revLoop);
        }else{
          sqlite3DebugPrintf("\n");
        }
      }
    }
#endif

    /* Swap the roles of aFrom and aTo for the next generation */
    pFrom = aTo;
    aTo = aFrom;
    aFrom = pFrom;
    nFrom = nTo;
  }

  if( nFrom==0 ){
    sqlite3ErrorMsg(pParse, "no query solution");
    sqlite3DbFree(db, pSpace);
    return SQLITE_ERROR;
  }
  
  /* Find the lowest cost path.  pFrom will be left pointing to that path */
  pFrom = aFrom;
  for(ii=1; ii<nFrom; ii++){
    if( pFrom->rCost>aFrom[ii].rCost ) pFrom = &aFrom[ii];
  }
  assert( pWInfo->nLevel==nLoop );
  /* Load the lowest cost path into pWInfo */
  for(iLoop=0; iLoop<nLoop; iLoop++){
    WhereLevel *pLevel = pWInfo->a + iLoop;
    pLevel->pWLoop = pWLoop = pFrom->aLoop[iLoop];
    pLevel->iFrom = pWLoop->iTab;
    pLevel->iTabCur = pWInfo->pTabList->a[pLevel->iFrom].iCursor;
  }
  if( (pWInfo->wctrlFlags & WHERE_WANT_DISTINCT)!=0
   && (pWInfo->wctrlFlags & WHERE_DISTINCTBY)==0
   && pWInfo->eDistinct==WHERE_DISTINCT_NOOP
   && nRowEst
  ){
    Bitmask notUsed;
    int rc = wherePathSatisfiesOrderBy(pWInfo, pWInfo->pResultSet, pFrom,
                 WHERE_DISTINCTBY, nLoop-1, pFrom->aLoop[nLoop-1], &notUsed);
    if( rc==1 ) pWInfo->eDistinct = WHERE_DISTINCT_ORDERED;
  }
  if( pFrom->isOrdered ){
    if( pWInfo->wctrlFlags & WHERE_DISTINCTBY ){
      pWInfo->eDistinct = WHERE_DISTINCT_ORDERED;
    }else{
      pWInfo->bOBSat = 1;
      pWInfo->revMask = pFrom->revLoop;
    }
  }
  pWInfo->nRowOut = pFrom->nRow;

  /* Free temporary memory and return success */
  sqlite3DbFree(db, pSpace);
  return SQLITE_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %esi, 0x14(%rsp)
movq %rdi, %r14
movq (%rdi), %rcx
movzbl 0x38(%rdi), %r12d
xorl %eax, %eax
cmpl $0x2, %r12d
setne %al
cmpl $0x1, %r12d
leal 0x5(%rax,%rax,4), %ebp
cmovel %r12d, %ebp
movq %rcx, 0x80(%rsp)
movq (%rcx), %r15
leal 0x20(,%r12,8), %esi
leal (,%rbp,2), %ebx
imull %ebx, %esi
movq %r15, %rdi
callq 0x11c9d
testq %rax, %rax
je 0x5a186
movq %rax, %rdx
movl %ebp, %eax
shll $0x5, %eax
leaq (%rdx,%rax), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdx,%rax)
movups %xmm0, (%rdx,%rax)
movq %rcx, %r13
addq %rcx, %rax
incl %ebx
movq %r12, 0x30(%rsp)
leal (,%r12,8), %ecx
movq %rdx, 0x58(%rsp)
addq $0x18, %rdx
movq %rax, (%rdx)
decl %ebx
addq %rcx, %rax
addq $0x20, %rdx
cmpl $0x1, %ebx
ja 0x5a121
movq 0x80(%rsp), %rax
movl 0x1f8(%rax), %eax
cmpl $0x2e, %eax
movl $0x2e, %ecx
cmovbl %eax, %ecx
movw %cx, 0x10(%r13)
cmpw $0x0, 0x14(%rsp)
movq %rbp, 0x20(%rsp)
je 0x5a198
cmpq $0x0, 0x10(%r14)
je 0x5a198
movl 0x14(%rsp), %ebx
movswq %bx, %rdi
callq 0x357b3
movq 0x20(%rsp), %rbp
leal -0x21(%rax), %edx
xorl %ecx, %ecx
cmpw $0x22, %ax
cmovgel %edx, %ecx
addl %ebx, %ecx
jmp 0x5a19f
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, 0x15(%r13)
xorl %ecx, %ecx
movq 0x58(%rsp), %rax
cmpq $0x0, 0x30(%rsp)
je 0x5a5cd
movq %r15, 0x78(%rsp)
cmpl $0x3, %ebp
movl $0x2, %r8d
cmovael %ebp, %r8d
movq $0x0, 0x48(%rsp)
movl $0x1, %esi
movswl %cx, %ecx
movl %ecx, 0x64(%rsp)
xorl %r10d, %r10d
xorl %r9d, %r9d
movq %r14, 0x88(%rsp)
movl %r8d, 0x68(%rsp)
testl %esi, %esi
movq %rax, 0x18(%rsp)
movq %r13, 0x90(%rsp)
jg 0x5a203
xorl %r11d, %r11d
jmp 0x5a4f9
movq 0x48(%rsp), %rcx
leaq (,%rcx,8), %rdx
movq %rdx, 0xa0(%rsp)
addq $0x30, %rax
movq %rax, 0x98(%rsp)
xorl %eax, %eax
movzwl %cx, %ecx
movl %ecx, 0x70(%rsp)
movq %r13, 0x28(%rsp)
xorl %r11d, %r11d
movl %esi, 0x6c(%rsp)
movl %eax, 0x74(%rsp)
movq 0x20(%r14), %r15
testq %r15, %r15
je 0x5a4d1
movq 0x28(%rsp), %r14
movq $0x0, 0x50(%rsp)
movq (%r14), %r12
movq %r12, %rax
notq %rax
testq %rax, (%r15)
jne 0x5a4a2
movq 0x8(%r15), %rbp
testq %r12, %rbp
jne 0x5a4a2
movl %r11d, 0xc(%rsp)
movq %r10, 0x38(%rsp)
movl %r9d, 0x10(%rsp)
movb 0x15(%r14), %r13b
movb 0x14(%r14), %al
movl %eax, 0x44(%rsp)
movswl 0x12(%r15), %edi
movzwl 0x10(%r14), %ebx
movzwl 0x14(%r15), %eax
addw %bx, %ax
movswl %ax, %esi
callq 0x5dc9d
movswl 0x12(%r14), %esi
movswl %ax, %edi
callq 0x5dc9d
movq %r14, %rdx
movl %eax, %r14d
addw 0x16(%r15), %bx
testb %r13b, %r13b
je 0x5a2e7
movq 0x8(%rdx), %rax
movq %rax, 0x50(%rsp)
movq 0x20(%rsp), %rsi
movq 0x38(%rsp), %r10
movl 0xc(%rsp), %r11d
movl 0x44(%rsp), %edi
jmp 0x5a346
movq 0x88(%rsp), %rdi
movq 0x10(%rdi), %rsi
movzwl 0x32(%rdi), %ecx
leaq 0x50(%rsp), %rax
movq %rax, (%rsp)
movl 0x70(%rsp), %r8d
movq %r15, %r9
callq 0x5e3e9
testl %eax, %eax
je 0x5a322
cmpl $0x1, %eax
jne 0x5a4b1
movb $0x1, %r13b
movb $0x1, %dil
jmp 0x5a337
movswl %r14w, %edi
movl 0x64(%rsp), %esi
callq 0x5dc9d
movl %eax, %r14d
movb $0x1, %r13b
xorl %edi, %edi
movq 0x20(%rsp), %rsi
movq 0x38(%rsp), %r10
movl 0xc(%rsp), %r11d
testl %r11d, %r11d
jle 0x5a39b
orq %r12, %rbp
movl %r11d, %eax
movq 0x18(%rsp), %r12
cmpq %rbp, (%r12)
jne 0x5a393
cmpb %r13b, 0x15(%r12)
jne 0x5a393
movzwl 0x12(%r12), %ecx
cmpw %r14w, %cx
jg 0x5a37e
movzwl 0x10(%r12), %edx
cmpw %bx, %dx
jle 0x5a4c3
cmpw %r14w, %cx
jl 0x5a393
movzwl 0x10(%r12), %edx
cmpw %bx, %dx
jge 0x5a4b9
addq $0x20, %r12
decl %eax
jne 0x5a356
cmpl %esi, %r11d
jl 0x5a3b5
cmpw %r10w, %r14w
jl 0x5a3b5
movl 0x10(%rsp), %r9d
movq 0x28(%rsp), %r14
jmp 0x5a4a2
xorl %eax, %eax
cmpl %esi, %r11d
setl %al
movl 0x10(%rsp), %ecx
cmovll %r11d, %ecx
addl %eax, %r11d
movslq %ecx, %r12
shlq $0x5, %r12
addq 0x18(%rsp), %r12
movq 0x8(%r15), %rax
movq 0x28(%rsp), %rcx
orq (%rcx), %rax
movq %rax, (%r12)
movq 0x50(%rsp), %rax
movq %rax, 0x8(%r12)
movw %bx, 0x10(%r12)
movw %r14w, 0x12(%r12)
movq %rcx, %r14
movb %r13b, 0x15(%r12)
movb %dil, 0x14(%r12)
movq 0x18(%r12), %rdi
movq 0x18(%rcx), %rsi
movq 0xa0(%rsp), %rdx
movl %r11d, %ebx
callq 0x7230
movl %ebx, %r11d
movq 0x18(%r12), %rax
movq 0x48(%rsp), %rcx
movq %r15, (%rax,%rcx,8)
cmpl 0x20(%rsp), %ebx
jge 0x5a443
movl 0x10(%rsp), %r9d
movq 0x38(%rsp), %r10
jmp 0x5a4a2
xorl %r9d, %r9d
movq 0x18(%rsp), %rax
movzwl 0x12(%rax), %r10d
cmpl $0x1, 0x30(%rsp)
movl 0x68(%rsp), %r8d
je 0x5a4a2
movzwl 0x10(%rax), %edx
xorl %r9d, %r9d
movl $0x1, %eax
movq 0x98(%rsp), %rcx
movzwl 0x2(%rcx), %esi
cmpw %r10w, %si
jle 0x5a485
movzwl (%rcx), %edx
movl %eax, %r9d
movl %esi, %r10d
jmp 0x5a497
jne 0x5a497
movzwl (%rcx), %edi
cmpw %dx, %di
jle 0x5a497
movl %eax, %r9d
movl %esi, %r10d
movl %edi, %edx
incl %eax
addq $0x20, %rcx
cmpl %eax, %r8d
jne 0x5a470
movq 0x38(%r15), %r15
testq %r15, %r15
jne 0x5a24f
jmp 0x5a4d6
xorl %r13d, %r13d
jmp 0x5a2d2
cmpw %r14w, %cx
jg 0x5a3d4
cmpw %bx, %dx
jle 0x5a3a6
jmp 0x5a3d4
movq 0x28(%rsp), %r14
movl 0x74(%rsp), %eax
incl %eax
addq $0x20, %r14
movq %r14, 0x28(%rsp)
movl 0x6c(%rsp), %esi
cmpl %esi, %eax
movq 0x88(%rsp), %r14
jne 0x5a239
movq 0x48(%rsp), %rdx
incq %rdx
movq 0x90(%rsp), %rax
movq 0x18(%rsp), %r13
movl %r11d, %esi
movq %rdx, 0x48(%rsp)
cmpq 0x30(%rsp), %rdx
jne 0x5a1ea
testl %r11d, %r11d
je 0x5a55e
cmpl $0x2, %r11d
movq 0x78(%rsp), %r15
jl 0x5a57e
movl %r11d, %eax
movq 0x18(%rsp), %rsi
leaq 0x20(%rsi), %rcx
decq %rax
movzwl 0x12(%rsi), %edx
movq %rcx, %r13
cmpw 0x12(%rcx), %dx
jg 0x5a550
movq %rsi, %r13
addq $0x20, %rcx
movq %r13, %rsi
decq %rax
jne 0x5a540
jmp 0x5a583
leaq 0x1955b(%rip), %rsi     # 0x73ac0
movq 0x80(%rsp), %rdi
xorl %eax, %eax
callq 0x11db0
movq 0x78(%rsp), %r15
jmp 0x5a65e
movq 0x18(%rsp), %r13
movq 0x30(%rsp), %rdx
testq %rdx, %rdx
je 0x5a5cd
movq 0x18(%r13), %rax
movq 0x8(%r14), %rcx
addq $0x8, %rcx
movl %edx, %edx
leaq 0x380(%r14), %rsi
xorl %edi, %edi
movq (%rax,%rdi,8), %r8
movq %r8, (%rsi)
movzbl 0x10(%r8), %r8d
movb %r8b, -0x1c(%rsi)
imulq $0x68, %r8, %r8
movl 0x3c(%rcx,%r8), %r8d
movl %r8d, -0x3c(%rsi)
incq %rdi
addq $0x50, %rsi
cmpq %rdi, %rdx
jne 0x5a5a4
movzwl 0x32(%r14), %eax
andl $0x600, %eax            # imm = 0x600
cmpl $0x400, %eax            # imm = 0x400
jne 0x5a62a
cmpw $0x0, 0x14(%rsp)
je 0x5a62a
cmpb $0x0, 0x37(%r14)
jne 0x5a62a
movq 0x18(%r14), %rsi
movq %r13, %rdx
movq 0x18(%r13), %rax
movq 0x30(%rsp), %rcx
movq -0x8(%rax,%rcx,8), %r9
leaq -0x1(%rcx), %rax
leaq 0x50(%rsp), %rcx
movq %rcx, (%rsp)
movzwl %ax, %r8d
movq %r14, %rdi
movl $0x200, %ecx            # imm = 0x200
callq 0x5e3e9
cmpl $0x1, %eax
jne 0x5a62a
movb $0x2, 0x37(%r14)
movq %r13, %rcx
cmpb $0x0, 0x14(%r13)
je 0x5a655
testb $0x2, 0x33(%r14)
jne 0x5a64d
movb $0x1, 0x34(%r14)
movq %r13, %rcx
movq 0x8(%r13), %rax
movq %rax, 0x28(%r14)
jmp 0x5a655
movb $0x2, 0x37(%r14)
movq %r13, %rcx
movzwl 0x10(%rcx), %eax
movw %ax, 0x30(%r14)
movq %r15, %rdi
movq 0x58(%rsp), %rsi
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9b42