// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: selectInnerLoop
static void selectInnerLoop(
  Parse *pParse,          /* The parser context */
  Select *p,              /* The complete select statement being coded */
  ExprList *pEList,       /* List of values being extracted */
  int srcTab,             /* Pull data from this table */
  int nColumn,            /* Number of columns in the source table */
  ExprList *pOrderBy,     /* If not NULL, sort results using this key */
  DistinctCtx *pDistinct, /* If not NULL, info on how to process DISTINCT */
  SelectDest *pDest,      /* How to dispose of the results */
  int iContinue,          /* Jump here to continue with next row */
  int iBreak              /* Jump here to break out of the inner loop */
){
  Vdbe *v = pParse->pVdbe;
  int i;
  int hasDistinct;        /* True if the DISTINCT keyword is present */
  int regResult;              /* Start of memory holding result set */
  int eDest = pDest->eDest;   /* How to dispose of results */
  int iParm = pDest->iSDParm; /* First argument to disposal method */
  int nResultCol;             /* Number of result columns */

  assert( v );
  if( NEVER(v==0) ) return;
  assert( pEList!=0 );
  hasDistinct = pDistinct ? pDistinct->eTnctType : WHERE_DISTINCT_NOOP;
  if( pOrderBy==0 && !hasDistinct ){
    codeOffset(v, p, iContinue);
  }

  /* Pull the requested columns.
  */
  if( nColumn>0 ){
    nResultCol = nColumn;
  }else{
    nResultCol = pEList->nExpr;
  }
  if( pDest->iSdst==0 ){
    pDest->iSdst = pParse->nMem+1;
    pDest->nSdst = nResultCol;
    pParse->nMem += nResultCol;
  }else{ 
    assert( pDest->nSdst==nResultCol );
  }
  regResult = pDest->iSdst;
  if( nColumn>0 ){
    for(i=0; i<nColumn; i++){
      sqlite3VdbeAddOp3(v, OP_Column, srcTab, i, regResult+i);
    }
  }else if( eDest!=SRT_Exists ){
    /* If the destination is an EXISTS(...) expression, the actual
    ** values returned by the SELECT are not required.
    */
    sqlite3ExprCacheClear(pParse);
    sqlite3ExprCodeExprList(pParse, pEList, regResult, eDest==SRT_Output);
  }
  nColumn = nResultCol;

  /* If the DISTINCT keyword was present on the SELECT statement
  ** and this row has been seen before, then do not make this row
  ** part of the result.
  */
  if( hasDistinct ){
    assert( pEList!=0 );
    assert( pEList->nExpr==nColumn );
    switch( pDistinct->eTnctType ){
      case WHERE_DISTINCT_ORDERED: {
        VdbeOp *pOp;            /* No longer required OpenEphemeral instr. */
        int iJump;              /* Jump destination */
        int regPrev;            /* Previous row content */

        /* Allocate space for the previous row */
        regPrev = pParse->nMem+1;
        pParse->nMem += nColumn;

        /* Change the OP_OpenEphemeral coded earlier to an OP_Null
        ** sets the MEM_Cleared bit on the first register of the
        ** previous value.  This will cause the OP_Ne below to always
        ** fail on the first iteration of the loop even if the first
        ** row is all NULLs.
        */
        sqlite3VdbeChangeToNoop(v, pDistinct->addrTnct);
        pOp = sqlite3VdbeGetOp(v, pDistinct->addrTnct);
        pOp->opcode = OP_Null;
        pOp->p1 = 1;
        pOp->p2 = regPrev;

        iJump = sqlite3VdbeCurrentAddr(v) + nColumn;
        for(i=0; i<nColumn; i++){
          CollSeq *pColl = sqlite3ExprCollSeq(pParse, pEList->a[i].pExpr);
          if( i<nColumn-1 ){
            sqlite3VdbeAddOp3(v, OP_Ne, regResult+i, iJump, regPrev+i);
          }else{
            sqlite3VdbeAddOp3(v, OP_Eq, regResult+i, iContinue, regPrev+i);
          }
          sqlite3VdbeChangeP4(v, -1, (const char *)pColl, P4_COLLSEQ);
          sqlite3VdbeChangeP5(v, SQLITE_NULLEQ);
        }
        assert( sqlite3VdbeCurrentAddr(v)==iJump );
        sqlite3VdbeAddOp3(v, OP_Copy, regResult, regPrev, nColumn-1);
        break;
      }

      case WHERE_DISTINCT_UNIQUE: {
        sqlite3VdbeChangeToNoop(v, pDistinct->addrTnct);
        break;
      }

      default: {
        assert( pDistinct->eTnctType==WHERE_DISTINCT_UNORDERED );
        codeDistinct(pParse, pDistinct->tabTnct, iContinue, nColumn, regResult);
        break;
      }
    }
    if( pOrderBy==0 ){
      codeOffset(v, p, iContinue);
    }
  }

  switch( eDest ){
    /* In this mode, write each query result to the key of the temporary
    ** table iParm.
    */
#ifndef SQLITE_OMIT_COMPOUND_SELECT
    case SRT_Union: {
      int r1;
      r1 = sqlite3GetTempReg(pParse);
      sqlite3VdbeAddOp3(v, OP_MakeRecord, regResult, nColumn, r1);
      sqlite3VdbeAddOp2(v, OP_IdxInsert, iParm, r1);
      sqlite3ReleaseTempReg(pParse, r1);
      break;
    }

    /* Construct a record from the query result, but instead of
    ** saving that record, use it as a key to delete elements from
    ** the temporary table iParm.
    */
    case SRT_Except: {
      sqlite3VdbeAddOp3(v, OP_IdxDelete, iParm, regResult, nColumn);
      break;
    }
#endif

    /* Store the result as data using a unique key.
    */
    case SRT_Table:
    case SRT_EphemTab: {
      int r1 = sqlite3GetTempReg(pParse);
      testcase( eDest==SRT_Table );
      testcase( eDest==SRT_EphemTab );
      sqlite3VdbeAddOp3(v, OP_MakeRecord, regResult, nColumn, r1);
      if( pOrderBy ){
        pushOntoSorter(pParse, pOrderBy, p, r1);
      }else{
        int r2 = sqlite3GetTempReg(pParse);
        sqlite3VdbeAddOp2(v, OP_NewRowid, iParm, r2);
        sqlite3VdbeAddOp3(v, OP_Insert, iParm, r1, r2);
        sqlite3VdbeChangeP5(v, OPFLAG_APPEND);
        sqlite3ReleaseTempReg(pParse, r2);
      }
      sqlite3ReleaseTempReg(pParse, r1);
      break;
    }

#ifndef SQLITE_OMIT_SUBQUERY
    /* If we are creating a set for an "expr IN (SELECT ...)" construct,
    ** then there should be a single item on the stack.  Write this
    ** item into the set table with bogus data.
    */
    case SRT_Set: {
      assert( nColumn==1 );
      pDest->affSdst =
                  sqlite3CompareAffinity(pEList->a[0].pExpr, pDest->affSdst);
      if( pOrderBy ){
        /* At first glance you would think we could optimize out the
        ** ORDER BY in this case since the order of entries in the set
        ** does not matter.  But there might be a LIMIT clause, in which
        ** case the order does matter */
        pushOntoSorter(pParse, pOrderBy, p, regResult);
      }else{
        int r1 = sqlite3GetTempReg(pParse);
        sqlite3VdbeAddOp4(v, OP_MakeRecord, regResult,1,r1, &pDest->affSdst, 1);
        sqlite3ExprCacheAffinityChange(pParse, regResult, 1);
        sqlite3VdbeAddOp2(v, OP_IdxInsert, iParm, r1);
        sqlite3ReleaseTempReg(pParse, r1);
      }
      break;
    }

    /* If any row exist in the result set, record that fact and abort.
    */
    case SRT_Exists: {
      sqlite3VdbeAddOp2(v, OP_Integer, 1, iParm);
      /* The LIMIT clause will terminate the loop for us */
      break;
    }

    /* If this is a scalar select that is part of an expression, then
    ** store the results in the appropriate memory cell and break out
    ** of the scan loop.
    */
    case SRT_Mem: {
      assert( nColumn==1 );
      if( pOrderBy ){
        pushOntoSorter(pParse, pOrderBy, p, regResult);
      }else{
        sqlite3ExprCodeMove(pParse, regResult, iParm, 1);
        /* The LIMIT clause will jump out of the loop for us */
      }
      break;
    }
#endif /* #ifndef SQLITE_OMIT_SUBQUERY */

    /* Send the data to the callback function or to a subroutine.  In the
    ** case of a subroutine, the subroutine itself is responsible for
    ** popping the data from the stack.
    */
    case SRT_Coroutine:
    case SRT_Output: {
      testcase( eDest==SRT_Coroutine );
      testcase( eDest==SRT_Output );
      if( pOrderBy ){
        int r1 = sqlite3GetTempReg(pParse);
        sqlite3VdbeAddOp3(v, OP_MakeRecord, regResult, nColumn, r1);
        pushOntoSorter(pParse, pOrderBy, p, r1);
        sqlite3ReleaseTempReg(pParse, r1);
      }else if( eDest==SRT_Coroutine ){
        sqlite3VdbeAddOp1(v, OP_Yield, pDest->iSDParm);
      }else{
        sqlite3VdbeAddOp2(v, OP_ResultRow, regResult, nColumn);
        sqlite3ExprCacheAffinityChange(pParse, regResult, nColumn);
      }
      break;
    }

#if !defined(SQLITE_OMIT_TRIGGER)
    /* Discard the results.  This is used for SELECT statements inside
    ** the body of a TRIGGER.  The purpose of such selects is to call
    ** user-defined functions that have side effects.  We do not care
    ** about the actual results of the select.
    */
    default: {
      assert( eDest==SRT_Discard );
      break;
    }
#endif
  }

  /* Jump to the end of the loop if the LIMIT is reached.  Except, if
  ** there is a sorter, in which case the sorter has already limited
  ** the output for us.
  */
  if( pOrderBy==0 && p->iLimit ){
    sqlite3VdbeAddOp3(v, OP_IfZero, p->iLimit, iBreak, -1);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, -0x80(%rbp)
movq %rdi, -0x48(%rbp)
movq 0x10(%rdi), %r14
testq %r14, %r14
je 0x54d4a
movq %r9, %r15
movl %r8d, %r12d
movl %ecx, %ebx
movq %rsi, %r13
movq 0x18(%rbp), %rsi
movq 0x10(%rbp), %rax
testq %rax, %rax
movq %rax, -0x70(%rbp)
je 0x54663
cmpb $0x0, 0x1(%rax)
setne %cl
jmp 0x54665
xorl %ecx, %ecx
movl 0x28(%rbp), %eax
movl %eax, -0x84(%rbp)
movl 0x20(%rbp), %eax
movl %eax, -0x3c(%rbp)
movzbl (%rsi), %eax
movq %rax, -0x68(%rbp)
movl 0x4(%rsi), %eax
movl %eax, -0x2c(%rbp)
testq %r15, %r15
setne %al
movl %ecx, -0x78(%rbp)
orb %cl, %al
testb $0x1, %al
movq %rsi, -0x58(%rbp)
jne 0x546a6
movq %r14, %rdi
movq %r13, %rsi
movl -0x3c(%rbp), %edx
callq 0x569a6
movq -0x58(%rbp), %rsi
movq %r15, -0x50(%rbp)
movl %r12d, %edx
testl %r12d, %r12d
jg 0x546b8
movq -0x80(%rbp), %rax
movl (%rax), %edx
movl 0x8(%rsi), %r15d
testl %r15d, %r15d
jne 0x546d8
movq -0x48(%rbp), %rcx
movl 0x58(%rcx), %eax
leal 0x1(%rax), %r15d
movl %r15d, 0x8(%rsi)
movl %edx, 0xc(%rsi)
addl %edx, %eax
movl %eax, 0x58(%rcx)
movq %rdx, -0x38(%rbp)
movq %r13, -0x60(%rbp)
testl %r12d, %r12d
jle 0x54708
xorl %r13d, %r13d
leal (%r15,%r13), %r8d
movq %r14, %rdi
movl $0x29, %esi
movl %ebx, %edx
movl %r13d, %ecx
callq 0x45f15
incl %r13d
cmpl %r13d, %r12d
jne 0x546e8
jmp 0x54732
cmpl $0x3, -0x68(%rbp)
je 0x54732
movq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x552af
xorl %ecx, %ecx
cmpl $0x5, -0x68(%rbp)
sete %cl
movq %rbx, %rdi
movq -0x80(%rbp), %rsi
movl %r15d, %edx
callq 0x4e5c4
cmpb $0x0, -0x78(%rbp)
movq -0x60(%rbp), %r12
movq -0x48(%rbp), %r13
je 0x548ca
movq -0x70(%rbp), %rcx
movzbl 0x1(%rcx), %eax
cmpl $0x1, %eax
je 0x54795
cmpl $0x2, %eax
jne 0x547a5
movl 0x58(%r13), %ebx
movq -0x38(%rbp), %rax
addl %ebx, %eax
movl %eax, 0x58(%r13)
movl 0x8(%rcx), %esi
movq %r14, %rdi
movq %rcx, %r12
callq 0x11c3f
movl 0x8(%r12), %eax
testl %eax, %eax
jns 0x54781
movl 0x34(%r14), %eax
decl %eax
incl %ebx
movq (%r14), %rcx
cmpb $0x0, 0x50(%rcx)
je 0x547bf
leaq 0x4183d(%rip), %rax     # 0x95fd0
jmp 0x547cd
movl 0x8(%rcx), %esi
movq %r14, %rdi
callq 0x11c3f
jmp 0x548b5
movl 0x4(%rcx), %esi
movq %r13, %rdi
movl -0x3c(%rbp), %edx
movq -0x38(%rbp), %rcx
movl %r15d, %r8d
callq 0x5b7f6
jmp 0x548b5
cltq
leaq (%rax,%rax,2), %rax
shlq $0x3, %rax
addq 0x8(%r14), %rax
movq -0x38(%rbp), %rcx
movq -0x60(%rbp), %r12
movb $0x18, (%rax)
movl $0x1, 0x4(%rax)
movl %ebx, 0x8(%rax)
testl %ecx, %ecx
jle 0x5489f
movq %rbx, -0x78(%rbp)
movl 0x34(%r14), %eax
addl %ecx, %eax
movl %eax, -0x88(%rbp)
leal -0x1(%rcx), %eax
movq %rax, -0x70(%rbp)
movl %ecx, %r12d
xorl %ebx, %ebx
movq -0x80(%rbp), %rax
movq 0x8(%rax), %rax
movq %rbx, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq %r13, %rdi
callq 0x4b225
movq %rax, %r13
movq -0x78(%rbp), %rax
leal (%rax,%rbx), %r8d
leal (%r15,%rbx), %edx
cmpq -0x70(%rbp), %rbx
jae 0x54846
movq %r14, %rdi
movl $0x4b, %esi
movl -0x88(%rbp), %ecx
jmp 0x54851
movq %r14, %rdi
movl $0x4c, %esi
movl -0x3c(%rbp), %ecx
callq 0x45f15
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r13, %rdx
movl $0xfffffffc, %ecx       # imm = 0xFFFFFFFC
callq 0x11a9f
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x54881
movslq 0x34(%r14), %rcx
leaq (%rcx,%rcx,2), %rcx
movb $-0x80, -0x15(%rax,%rcx,8)
incq %rbx
cmpq %r12, %rbx
movq -0x48(%rbp), %r13
jne 0x54806
movq -0x60(%rbp), %r12
movq -0x78(%rbp), %rbx
movq -0x70(%rbp), %r8
jmp 0x548a3
leal -0x1(%rcx), %r8d
movq %r14, %rdi
movl $0x1c, %esi
movl %r15d, %edx
movl %ebx, %ecx
callq 0x45f15
cmpq $0x0, -0x50(%rbp)
jne 0x548ca
movq %r14, %rdi
movq %r12, %rsi
movl -0x3c(%rbp), %edx
callq 0x569a6
movq -0x68(%rbp), %rax
decl %eax
cmpl $0x9, %eax
ja 0x54d13
leaq 0x21600(%rip), %rcx     # 0x75ee0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpq $0x0, -0x50(%rbp)
je 0x549f8
movb 0x1f(%r13), %al
testb %al, %al
je 0x54aae
decb %al
movb %al, 0x1f(%r13)
movzbl %al, %eax
movl 0x28(%r13,%rax,4), %ebx
jmp 0x54ab8
movb 0x1f(%r13), %al
testb %al, %al
je 0x54a20
decb %al
movb %al, 0x1f(%r13)
movzbl %al, %eax
movl 0x28(%r13,%rax,4), %ebx
jmp 0x54a2a
movq %r14, %rdi
movl $0x15, %esi
movl $0x1, %edx
movl -0x2c(%rbp), %ecx
xorl %r8d, %r8d
jmp 0x549c5
movq -0x80(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
movq -0x58(%rbp), %rbx
movsbl 0x1(%rbx), %esi
callq 0x4ef70
movb %al, 0x1(%rbx)
movq -0x50(%rbp), %rsi
testq %rsi, %rsi
jne 0x549dc
movq %rbx, %rcx
incq %rcx
movb 0x1f(%r13), %al
testb %al, %al
movq %rcx, -0x58(%rbp)
je 0x54c7b
decb %al
movb %al, 0x1f(%r13)
movzbl %al, %eax
movl 0x28(%r13,%rax,4), %ebx
jmp 0x54c85
movb 0x1f(%r13), %al
testb %al, %al
je 0x54b49
decb %al
movb %al, 0x1f(%r13)
movzbl %al, %eax
movl 0x28(%r13,%rax,4), %ebx
jmp 0x54b53
movq %r14, %rdi
movl $0x68, %esi
movl -0x2c(%rbp), %edx
movl %r15d, %ecx
movq -0x38(%rbp), %r8
callq 0x45f15
jmp 0x54d13
movq -0x50(%rbp), %rsi
testq %rsi, %rsi
je 0x54bca
movq %r13, %rdi
movq %r12, %rdx
movl %r15d, %ecx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5b8d2
cmpl $0xa, -0x68(%rbp)
jne 0x54b1e
movq -0x58(%rbp), %rax
movl 0x4(%rax), %edx
movq %r14, %rdi
movl $0x11, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45f15
jmp 0x54d1a
movl 0x58(%r13), %ebx
incl %ebx
movl %ebx, 0x58(%r13)
movq %r14, %rdi
movl $0x2b, %esi
movl %r15d, %edx
movq -0x38(%rbp), %rcx
movl %ebx, %r8d
callq 0x45f15
movq -0x50(%rbp), %rsi
testq %rsi, %rsi
je 0x54a8f
movq %r13, %rdi
movq %r12, %rdx
movl %ebx, %ecx
callq 0x5b8d2
testl %ebx, %ebx
je 0x54d13
movzbl 0x1f(%r13), %eax
cmpq $0x7, %rax
ja 0x54d13
xorl %ecx, %ecx
cmpl %ebx, 0x84(%r13,%rcx)
je 0x54bbf
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x54a70
jmp 0x54bae
movb 0x1f(%r13), %al
testb %al, %al
je 0x54be2
decb %al
movb %al, 0x1f(%r13)
movzbl %al, %eax
movl 0x28(%r13,%rax,4), %r15d
jmp 0x54bed
movl 0x58(%r13), %ebx
incl %ebx
movl %ebx, 0x58(%r13)
movq %r14, %rdi
movl $0x2b, %esi
movl %r15d, %edx
movq -0x38(%rbp), %rcx
movl %ebx, %r8d
callq 0x45f15
movq %r13, %rdi
movq -0x50(%rbp), %rsi
movq %r12, %rdx
movl %ebx, %ecx
callq 0x5b8d2
testl %ebx, %ebx
je 0x54d4a
movq -0x48(%rbp), %rax
movzbl 0x1f(%rax), %eax
cmpq $0x7, %rax
ja 0x54d4a
xorl %ecx, %ecx
movq -0x48(%rbp), %rdx
cmpl %ebx, 0x84(%rdx,%rcx)
je 0x54d0e
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x54b00
jmp 0x54d02
movq %r14, %rdi
movl $0x1e, %esi
movl %r15d, %edx
movq -0x38(%rbp), %rbx
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x45f15
movq %r13, %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x4e564
jmp 0x54d1a
movl 0x58(%r13), %ebx
incl %ebx
movl %ebx, 0x58(%r13)
movq %r14, %rdi
movl $0x2b, %esi
movl %r15d, %edx
movq -0x38(%rbp), %rcx
movl %ebx, %r8d
callq 0x45f15
movq %r14, %rdi
movl $0x67, %esi
movl -0x2c(%rbp), %edx
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x45f15
testl %ebx, %ebx
je 0x54d13
movzbl 0x1f(%r13), %eax
cmpq $0x7, %rax
ja 0x54d13
xorl %ecx, %ecx
cmpl %ebx, 0x84(%r13,%rcx)
je 0x54bbf
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x54b98
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%r13)
movl %ebx, 0x28(%r13,%rax,4)
jmp 0x54d13
movb $0x1, 0x7c(%r13,%rcx)
jmp 0x54d13
movq %r13, %rdi
movl %r15d, %esi
movl -0x2c(%rbp), %edx
movl $0x1, %ecx
callq 0x552f9
jmp 0x54d1a
movl 0x58(%r13), %r15d
incl %r15d
movl %r15d, 0x58(%r13)
movq %r14, %rdi
movl $0x41, %esi
movl -0x2c(%rbp), %r12d
movl %r12d, %edx
movl %r15d, %ecx
xorl %r8d, %r8d
callq 0x45f15
movq %r14, %rdi
movl $0x42, %esi
movl %r12d, %edx
movl %ebx, %ecx
movl %r15d, %r8d
callq 0x45f15
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x54c32
movslq 0x34(%r14), %rcx
leaq (%rcx,%rcx,2), %rcx
movb $0x8, -0x15(%rax,%rcx,8)
testl %r15d, %r15d
movq -0x60(%rbp), %r12
je 0x54a57
movzbl 0x1f(%r13), %eax
cmpq $0x7, %rax
ja 0x54a57
xorl %ecx, %ecx
cmpl %r15d, 0x84(%r13,%rcx)
je 0x54d59
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x54c50
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%r13)
movl %r15d, 0x28(%r13,%rax,4)
jmp 0x54a57
movl 0x58(%r13), %ebx
incl %ebx
movl %ebx, 0x58(%r13)
movq %r14, %rdi
movl $0x2b, %esi
movl %r15d, %edx
movl $0x1, %ecx
movl %ebx, %r8d
callq 0x45f15
movq %r14, %rdi
movl %eax, %esi
movq -0x58(%rbp), %rdx
movl $0x1, %ecx
callq 0x11a9f
movq %r13, %rdi
movl %r15d, %esi
movl $0x1, %edx
callq 0x4e564
movq %r14, %rdi
movl $0x67, %esi
movl -0x2c(%rbp), %edx
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x45f15
testl %ebx, %ebx
je 0x54d1a
movq -0x48(%rbp), %rax
movzbl 0x1f(%rax), %eax
cmpq $0x7, %rax
ja 0x54d1a
xorl %ecx, %ecx
movq -0x48(%rbp), %rdx
cmpl %ebx, 0x84(%rdx,%rcx)
je 0x54d0e
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x54ced
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rdx)
movl %ebx, 0x28(%rdx,%rax,4)
jmp 0x54d13
movb $0x1, 0x7c(%rdx,%rcx)
cmpq $0x0, -0x50(%rbp)
jne 0x54d4a
movl 0xc(%r12), %edx
testl %edx, %edx
je 0x54d4a
movq %r14, %rdi
movl $0x80, %esi
movl -0x84(%rbp), %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x45f15
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, 0x7c(%r13,%rcx)
jmp 0x54a57