// File: /workspace/github_c_makefile_star2_O0/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3WhereEnd
SQLITE_PRIVATE void sqlite3WhereEnd(WhereInfo *pWInfo){
  Parse *pParse = pWInfo->pParse;
  Vdbe *v = pParse->pVdbe;
  int i;
  WhereLevel *pLevel;
  WhereLoop *pLoop;
  SrcList *pTabList = pWInfo->pTabList;
  sqlite3 *db = pParse->db;

  /* Generate loop termination code.
  */
  VdbeModuleComment((v, "End WHERE-core"));
  for(i=pWInfo->nLevel-1; i>=0; i--){
    int addr;
    pLevel = &pWInfo->a[i];
    pLoop = pLevel->pWLoop;
    if( pLevel->op!=OP_Noop ){
#ifndef SQLITE_DISABLE_SKIPAHEAD_DISTINCT
      int addrSeek = 0;
      Index *pIdx;
      int n;
      if( pWInfo->eDistinct==WHERE_DISTINCT_ORDERED
       && i==pWInfo->nLevel-1  /* Ticket [ef9318757b152e3] 2017-10-21 */
       && (pLoop->wsFlags & WHERE_INDEXED)!=0
       && (pIdx = pLoop->u.btree.pIndex)->hasStat1
       && (n = pLoop->u.btree.nIdxCol)>0
       && pIdx->aiRowLogEst[n]>=36
      ){
        int r1 = pParse->nMem+1;
        int j, op;
        for(j=0; j<n; j++){
          sqlite3VdbeAddOp3(v, OP_Column, pLevel->iIdxCur, j, r1+j);
        }
        pParse->nMem += n+1;
        op = pLevel->op==OP_Prev ? OP_SeekLT : OP_SeekGT;
        addrSeek = sqlite3VdbeAddOp4Int(v, op, pLevel->iIdxCur, 0, r1, n);
        VdbeCoverageIf(v, op==OP_SeekLT);
        VdbeCoverageIf(v, op==OP_SeekGT);
        sqlite3VdbeAddOp2(v, OP_Goto, 1, pLevel->p2);
      }
#endif /* SQLITE_DISABLE_SKIPAHEAD_DISTINCT */
      /* The common case: Advance to the next row */
      sqlite3VdbeResolveLabel(v, pLevel->addrCont);
      sqlite3VdbeAddOp3(v, pLevel->op, pLevel->p1, pLevel->p2, pLevel->p3);
      sqlite3VdbeChangeP5(v, pLevel->p5);
      VdbeCoverage(v);
      VdbeCoverageIf(v, pLevel->op==OP_Next);
      VdbeCoverageIf(v, pLevel->op==OP_Prev);
      VdbeCoverageIf(v, pLevel->op==OP_VNext);
#ifndef SQLITE_DISABLE_SKIPAHEAD_DISTINCT
      if( addrSeek ) sqlite3VdbeJumpHere(v, addrSeek);
#endif
    }else{
      sqlite3VdbeResolveLabel(v, pLevel->addrCont);
    }
    if( pLoop->wsFlags & WHERE_IN_ABLE && pLevel->u.in.nIn>0 ){
      struct InLoop *pIn;
      int j;
      sqlite3VdbeResolveLabel(v, pLevel->addrNxt);
      for(j=pLevel->u.in.nIn, pIn=&pLevel->u.in.aInLoop[j-1]; j>0; j--, pIn--){
        sqlite3VdbeJumpHere(v, pIn->addrInTop+1);
        if( pIn->eEndLoopOp!=OP_Noop ){
          if( pIn->nPrefix ){
            assert( pLoop->wsFlags & WHERE_IN_EARLYOUT );
            sqlite3VdbeAddOp4Int(v, OP_IfNoHope, pLevel->iIdxCur,
                              sqlite3VdbeCurrentAddr(v)+2,
                              pIn->iBase, pIn->nPrefix);
            VdbeCoverage(v);
          }
          sqlite3VdbeAddOp2(v, pIn->eEndLoopOp, pIn->iCur, pIn->addrInTop);
          VdbeCoverage(v);
          VdbeCoverageIf(v, pIn->eEndLoopOp==OP_Prev);
          VdbeCoverageIf(v, pIn->eEndLoopOp==OP_Next);
        }
        sqlite3VdbeJumpHere(v, pIn->addrInTop-1);
      }
    }
    sqlite3VdbeResolveLabel(v, pLevel->addrBrk);
    if( pLevel->addrSkip ){
      sqlite3VdbeGoto(v, pLevel->addrSkip);
      VdbeComment((v, "next skip-scan on %s", pLoop->u.btree.pIndex->zName));
      sqlite3VdbeJumpHere(v, pLevel->addrSkip);
      sqlite3VdbeJumpHere(v, pLevel->addrSkip-2);
    }
#ifndef SQLITE_LIKE_DOESNT_MATCH_BLOBS
    if( pLevel->addrLikeRep ){
      sqlite3VdbeAddOp2(v, OP_DecrJumpZero, (int)(pLevel->iLikeRepCntr>>1),
                        pLevel->addrLikeRep);
      VdbeCoverage(v);
    }
#endif
    if( pLevel->iLeftJoin ){
      int ws = pLoop->wsFlags;
      addr = sqlite3VdbeAddOp1(v, OP_IfPos, pLevel->iLeftJoin); VdbeCoverage(v);
      assert( (ws & WHERE_IDX_ONLY)==0 || (ws & WHERE_INDEXED)!=0 );
      if( (ws & WHERE_IDX_ONLY)==0 ){
        assert( pLevel->iTabCur==pTabList->a[pLevel->iFrom].iCursor );
        sqlite3VdbeAddOp1(v, OP_NullRow, pLevel->iTabCur);
      }
      if( (ws & WHERE_INDEXED) 
       || ((ws & WHERE_MULTI_OR) && pLevel->u.pCovidx) 
      ){
        sqlite3VdbeAddOp1(v, OP_NullRow, pLevel->iIdxCur);
      }
      if( pLevel->op==OP_Return ){
        sqlite3VdbeAddOp2(v, OP_Gosub, pLevel->p1, pLevel->addrFirst);
      }else{
        sqlite3VdbeGoto(v, pLevel->addrFirst);
      }
      sqlite3VdbeJumpHere(v, addr);
    }
    VdbeModuleComment((v, "End WHERE-loop%d: %s", i,
                     pWInfo->pTabList->a[pLevel->iFrom].pTab->zName));
  }

  /* The "break" point is here, just past the end of the outer loop.
  ** Set it.
  */
  sqlite3VdbeResolveLabel(v, pWInfo->iBreak);

  assert( pWInfo->nLevel<=pTabList->nSrc );
  for(i=0, pLevel=pWInfo->a; i<pWInfo->nLevel; i++, pLevel++){
    int k, last;
    VdbeOp *pOp;
    Index *pIdx = 0;
    struct SrcList_item *pTabItem = &pTabList->a[pLevel->iFrom];
    Table *pTab = pTabItem->pTab;
    assert( pTab!=0 );
    pLoop = pLevel->pWLoop;

    /* For a co-routine, change all OP_Column references to the table of
    ** the co-routine into OP_Copy of result contained in a register.
    ** OP_Rowid becomes OP_Null.
    */
    if( pTabItem->fg.viaCoroutine ){
      testcase( pParse->db->mallocFailed );
      translateColumnToCopy(pParse, pLevel->addrBody, pLevel->iTabCur,
                            pTabItem->regResult, 0);
      continue;
    }

    /* If this scan uses an index, make VDBE code substitutions to read data
    ** from the index instead of from the table where possible.  In some cases
    ** this optimization prevents the table from ever being read, which can
    ** yield a significant performance boost.
    ** 
    ** Calls to the code generator in between sqlite3WhereBegin and
    ** sqlite3WhereEnd will have created code that references the table
    ** directly.  This loop scans all that code looking for opcodes
    ** that reference the table and converts them into opcodes that
    ** reference the index.
    */
    if( pLoop->wsFlags & (WHERE_INDEXED|WHERE_IDX_ONLY) ){
      pIdx = pLoop->u.btree.pIndex;
    }else if( pLoop->wsFlags & WHERE_MULTI_OR ){
      pIdx = pLevel->u.pCovidx;
    }
    if( pIdx
     && (pWInfo->eOnePass==ONEPASS_OFF || !HasRowid(pIdx->pTable))
     && !db->mallocFailed
    ){
      last = sqlite3VdbeCurrentAddr(v);
      k = pLevel->addrBody;
#ifdef SQLITE_DEBUG
      if( db->flags & SQLITE_VdbeAddopTrace ){
        printf("TRANSLATE opcodes in range %d..%d\n", k, last-1);
      }
#endif
      pOp = sqlite3VdbeGetOp(v, k);
      for(; k<last; k++, pOp++){
        if( pOp->p1!=pLevel->iTabCur ) continue;
        if( pOp->opcode==OP_Column
#ifdef SQLITE_ENABLE_OFFSET_SQL_FUNC
         || pOp->opcode==OP_Offset
#endif
        ){
          int x = pOp->p2;
          assert( pIdx->pTable==pTab );
          if( !HasRowid(pTab) ){
            Index *pPk = sqlite3PrimaryKeyIndex(pTab);
            x = pPk->aiColumn[x];
            assert( x>=0 );
          }
          x = sqlite3ColumnOfIndex(pIdx, x);
          if( x>=0 ){
            pOp->p2 = x;
            pOp->p1 = pLevel->iIdxCur;
            OpcodeRewriteTrace(db, k, pOp);
          }
          assert( (pLoop->wsFlags & WHERE_IDX_ONLY)==0 || x>=0 
              || pWInfo->eOnePass );
        }else if( pOp->opcode==OP_Rowid ){
          pOp->p1 = pLevel->iIdxCur;
          pOp->opcode = OP_IdxRowid;
          OpcodeRewriteTrace(db, k, pOp);
        }else if( pOp->opcode==OP_IfNullRow ){
          pOp->p1 = pLevel->iIdxCur;
          OpcodeRewriteTrace(db, k, pOp);
        }
      }
#ifdef SQLITE_DEBUG
      if( db->flags & SQLITE_VdbeAddopTrace ) printf("TRANSLATE complete\n");
#endif
    }
  }

  /* Final cleanup
  */
  pParse->nQueryLoop = pWInfo->savedNQueryLoop;
  whereInfoFree(db, pWInfo);
  return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x42(%rax), %eax
subl $0x1, %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jl 0x4822aa
movq -0x8(%rbp), %rax
addq $0x398, %rax            # imm = 0x398
movslq -0x1c(%rbp), %rcx
imulq $0x58, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movzbl 0x2d(%rax), %eax
cmpl $0xab, %eax
je 0x48201d
movl $0x0, -0x48(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x47(%rax), %eax
cmpl $0x2, %eax
jne 0x481fbd
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
movzbl 0x42(%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x481fbd
movq -0x30(%rbp), %rax
movl 0x28(%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x481fbd
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x50(%rbp)
movw 0x63(%rax), %ax
shrw $0x7, %ax
andw $0x1, %ax
movzwl %ax, %eax
cmpl $0x0, %eax
je 0x481fbd
movq -0x30(%rbp), %rax
movzwl 0x1e(%rax), %eax
movl %eax, -0x54(%rbp)
cmpl $0x0, %eax
jle 0x481fbd
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x54(%rbp), %rcx
movswl (%rax,%rcx,2), %eax
cmpl $0x24, %eax
jl 0x481fbd
movq -0x10(%rbp), %rax
movl 0x38(%rax), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
cmpl -0x54(%rbp), %eax
jge 0x481f58
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x8(%rax), %edx
movl -0x5c(%rbp), %ecx
movl -0x58(%rbp), %r8d
addl -0x5c(%rbp), %r8d
movl $0x5a, %esi
callq 0x4537c0
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x481f25
movl -0x54(%rbp), %ecx
addl $0x1, %ecx
movq -0x10(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq -0x28(%rbp), %rax
movzbl 0x2d(%rax), %edx
movl $0x19, %eax
movl $0x16, %ecx
cmpl $0x4, %edx
cmovel %ecx, %eax
movl %eax, -0x60(%rbp)
movq -0x18(%rbp), %rdi
movl -0x60(%rbp), %esi
movq -0x28(%rbp), %rax
movl 0x8(%rax), %edx
movl -0x58(%rbp), %r8d
movl -0x54(%rbp), %r9d
xorl %ecx, %ecx
callq 0x4113b0
movl %eax, -0x48(%rbp)
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x34(%rax), %ecx
movl $0xb, %esi
movl $0x1, %edx
callq 0x453790
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x18(%rax), %esi
callq 0x46e530
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movzbl 0x2d(%rax), %esi
movq -0x28(%rbp), %rax
movl 0x30(%rax), %edx
movq -0x28(%rbp), %rax
movl 0x34(%rax), %ecx
movq -0x28(%rbp), %rax
movzbl 0x2e(%rax), %r8d
callq 0x4537c0
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movzbl 0x2f(%rax), %eax
movzwl %ax, %esi
callq 0x411430
cmpl $0x0, -0x48(%rbp)
je 0x48201b
movq -0x18(%rbp), %rdi
movl -0x48(%rbp), %esi
callq 0x46bba0
jmp 0x48202d
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x18(%rax), %esi
callq 0x46e530
movq -0x30(%rbp), %rax
movl 0x28(%rax), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x482156
movq -0x28(%rbp), %rax
cmpl $0x0, 0x38(%rax)
jle 0x482156
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x10(%rax), %esi
callq 0x46e530
movq -0x28(%rbp), %rax
movl 0x38(%rax), %eax
movl %eax, -0x6c(%rbp)
movq -0x28(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x6c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
cmpl $0x0, -0x6c(%rbp)
jle 0x482154
movq -0x18(%rbp), %rdi
movq -0x68(%rbp), %rax
movl 0x4(%rax), %esi
addl $0x1, %esi
callq 0x46bba0
movq -0x68(%rbp), %rax
movzbl 0x10(%rax), %eax
cmpl $0xab, %eax
je 0x482127
movq -0x68(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x482109
movq -0x18(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x28(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0xac(%rbp)
movq -0x18(%rbp), %rdi
callq 0x473080
movq -0xb8(%rbp), %rdi
movl -0xac(%rbp), %edx
movl %eax, %ecx
addl $0x2, %ecx
movq -0x68(%rbp), %rax
movl 0x8(%rax), %r8d
movq -0x68(%rbp), %rax
movl 0xc(%rax), %r9d
movl $0x1a, %esi
callq 0x4113b0
movq -0x18(%rbp), %rdi
movq -0x68(%rbp), %rax
movzbl 0x10(%rax), %esi
movq -0x68(%rbp), %rax
movl (%rax), %edx
movq -0x68(%rbp), %rax
movl 0x4(%rax), %ecx
callq 0x453790
movq -0x18(%rbp), %rdi
movq -0x68(%rbp), %rax
movl 0x4(%rax), %esi
subl $0x1, %esi
callq 0x46bba0
movl -0x6c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x6c(%rbp)
movq -0x68(%rbp), %rax
addq $-0x14, %rax
movq %rax, -0x68(%rbp)
jmp 0x482086
jmp 0x482156
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0xc(%rax), %esi
callq 0x46e530
movq -0x28(%rbp), %rax
cmpl $0x0, 0x14(%rax)
je 0x4821a3
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x14(%rax), %esi
callq 0x46bed0
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x14(%rax), %esi
callq 0x46bba0
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x14(%rax), %esi
subl $0x2, %esi
callq 0x46bba0
movq -0x28(%rbp), %rax
cmpl $0x0, 0x28(%rax)
je 0x4821cb
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x24(%rax), %edx
shrl %edx
movq -0x28(%rbp), %rax
movl 0x28(%rax), %ecx
movl $0x31, %esi
callq 0x453790
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x48229a
movq -0x30(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0x70(%rbp)
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %edx
movl $0x2f, %esi
callq 0x46e2d0
movl %eax, -0x44(%rbp)
movl -0x70(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
jne 0x482219
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %edx
movl $0x82, %esi
callq 0x46e2d0
movl -0x70(%rbp), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
jne 0x48223e
movl -0x70(%rbp), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
je 0x482253
movq -0x28(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x482253
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x8(%rax), %edx
movl $0x82, %esi
callq 0x46e2d0
movq -0x28(%rbp), %rax
movzbl 0x2d(%rax), %eax
cmpl $0x42, %eax
jne 0x48227e
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x30(%rax), %edx
movq -0x28(%rbp), %rax
movl 0x1c(%rax), %ecx
movl $0xc, %esi
callq 0x453790
jmp 0x48228e
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x1c(%rax), %esi
callq 0x46bed0
movq -0x18(%rbp), %rdi
movl -0x44(%rbp), %esi
callq 0x46bba0
jmp 0x48229c
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x481e3b
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x38(%rax), %esi
callq 0x46e530
movl $0x0, -0x1c(%rbp)
movq -0x8(%rbp), %rax
addq $0x398, %rax            # imm = 0x398
movq %rax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
movzbl 0x42(%rcx), %ecx
cmpl %ecx, %eax
jge 0x482554
movq $0x0, -0x88(%rbp)
movq -0x38(%rbp), %rax
addq $0x8, %rax
movq -0x28(%rbp), %rcx
movzbl 0x2c(%rcx), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x98(%rbp)
movq -0x28(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x90(%rbp), %rax
movb 0x3d(%rax), %al
shrb $0x4, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x482369
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x20(%rax), %esi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %edx
movq -0x90(%rbp), %rax
movl 0x38(%rax), %ecx
xorl %r8d, %r8d
callq 0x4928d0
jmp 0x48253a
movq -0x30(%rbp), %rax
movl 0x28(%rax), %eax
andl $0x240, %eax            # imm = 0x240
cmpl $0x0, %eax
je 0x48238b
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x88(%rbp)
jmp 0x4823ad
movq -0x30(%rbp), %rax
movl 0x28(%rax), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
je 0x4823ab
movq -0x28(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x88(%rbp)
jmp 0x4823ad
cmpq $0x0, -0x88(%rbp)
je 0x482538
movq -0x8(%rbp), %rax
movzbl 0x45(%rax), %eax
cmpl $0x0, %eax
je 0x4823e2
movq -0x88(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x40(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x482538
movq -0x40(%rbp), %rax
cmpb $0x0, 0x61(%rax)
jne 0x482538
movq -0x18(%rbp), %rdi
callq 0x473080
movl %eax, -0x78(%rbp)
movq -0x28(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x74(%rbp)
movq -0x18(%rbp), %rdi
movl -0x74(%rbp), %esi
callq 0x46bf30
movq %rax, -0x80(%rbp)
movl -0x74(%rbp), %eax
cmpl -0x78(%rbp), %eax
jge 0x482536
movq -0x80(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x28(%rbp), %rcx
cmpl 0x4(%rcx), %eax
je 0x482437
jmp 0x48251c
movq -0x80(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5a, %eax
jne 0x4824d7
movq -0x80(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x9c(%rbp)
movq -0x98(%rbp), %rax
movl 0x40(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x482495
movq -0x98(%rbp), %rdi
callq 0x414850
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x9c(%rbp), %rcx
movswl (%rax,%rcx,2), %eax
movl %eax, -0x9c(%rbp)
movq -0x88(%rbp), %rdi
movl -0x9c(%rbp), %eax
movswl %ax, %esi
callq 0x4701b0
cwtl
movl %eax, -0x9c(%rbp)
cmpl $0x0, -0x9c(%rbp)
jl 0x4824d5
movl -0x9c(%rbp), %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x28(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0x4(%rax)
jmp 0x48251a
movq -0x80(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x81, %eax
jne 0x4824fc
movq -0x28(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x80(%rbp), %rax
movb $-0x78, (%rax)
jmp 0x482518
movq -0x80(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x15, %eax
jne 0x482516
movq -0x28(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0x4(%rax)
jmp 0x482518
jmp 0x48251a
jmp 0x48251c
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
movq -0x80(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x80(%rbp)
jmp 0x482416
jmp 0x482538
jmp 0x48253a
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movq -0x28(%rbp), %rax
addq $0x58, %rax
movq %rax, -0x28(%rbp)
jmp 0x4822cf
movq -0x8(%rbp), %rax
movl 0x3c(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0xb4(%rax)
movq -0x40(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x48a400
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax,%rax)