// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ExprCodeIN
static void sqlite3ExprCodeIN(
  Parse *pParse,        /* Parsing and code generating context */
  Expr *pExpr,          /* The IN expression */
  int destIfFalse,      /* Jump here if LHS is not contained in the RHS */
  int destIfNull        /* Jump here if the results are unknown due to NULLs */
){
  int rRhsHasNull = 0;  /* Register that is true if RHS contains NULL values */
  int eType;            /* Type of the RHS */
  int rLhs;             /* Register(s) holding the LHS values */
  int rLhsOrig;         /* LHS values prior to reordering by aiMap[] */
  Vdbe *v;              /* Statement under construction */
  int *aiMap = 0;       /* Map from vector field to index column */
  char *zAff = 0;       /* Affinity string for comparisons */
  int nVector;          /* Size of vectors for this IN operator */
  int iDummy;           /* Dummy parameter to exprCodeVector() */
  Expr *pLeft;          /* The LHS of the IN operator */
  int i;                /* loop counter */
  int destStep2;        /* Where to jump when NULLs seen in step 2 */
  int destStep6 = 0;    /* Start of code for Step 6 */
  int addrTruthOp;      /* Address of opcode that determines the IN is true */
  int destNotNull;      /* Jump here if a comparison is not true in step 6 */
  int addrTop;          /* Top of the step-6 loop */
  int iTab = 0;         /* Index to use */
  u8 okConstFactor = pParse->okConstFactor;

  assert( !ExprHasVVAProperty(pExpr,EP_Immutable) );
  pLeft = pExpr->pLeft;
  if( sqlite3ExprCheckIN(pParse, pExpr) ) return;
  zAff = exprINAffinity(pParse, pExpr);
  nVector = sqlite3ExprVectorSize(pExpr->pLeft);
  aiMap = (int*)sqlite3DbMallocZero(
      pParse->db, nVector*(sizeof(int) + sizeof(char)) + 1
  );
  if( pParse->db->mallocFailed ) goto sqlite3ExprCodeIN_oom_error;

  /* Attempt to compute the RHS. After this step, if anything other than
  ** IN_INDEX_NOOP is returned, the table opened with cursor iTab
  ** contains the values that make up the RHS. If IN_INDEX_NOOP is returned,
  ** the RHS has not yet been coded.  */
  v = pParse->pVdbe;
  assert( v!=0 );       /* OOM detected prior to this routine */
  VdbeNoopComment((v, "begin IN expr"));
  eType = sqlite3FindInIndex(pParse, pExpr,
                             IN_INDEX_MEMBERSHIP | IN_INDEX_NOOP_OK,
                             destIfFalse==destIfNull ? 0 : &rRhsHasNull,
                             aiMap, &iTab);

  assert( pParse->nErr || nVector==1 || eType==IN_INDEX_EPH
       || eType==IN_INDEX_INDEX_ASC || eType==IN_INDEX_INDEX_DESC
  );
#ifdef SQLITE_DEBUG
  /* Confirm that aiMap[] contains nVector integer values between 0 and
  ** nVector-1. */
  for(i=0; i<nVector; i++){
    int j, cnt;
    for(cnt=j=0; j<nVector; j++) if( aiMap[j]==i ) cnt++;
    assert( cnt==1 );
  }
#endif

  /* Code the LHS, the <expr> from "<expr> IN (...)". If the LHS is a
  ** vector, then it is stored in an array of nVector registers starting
  ** at r1.
  **
  ** sqlite3FindInIndex() might have reordered the fields of the LHS vector
  ** so that the fields are in the same order as an existing index.   The
  ** aiMap[] array contains a mapping from the original LHS field order to
  ** the field order that matches the RHS index.
  **
  ** Avoid factoring the LHS of the IN(...) expression out of the loop,
  ** even if it is constant, as OP_Affinity may be used on the register
  ** by code generated below.  */
  assert( pParse->okConstFactor==okConstFactor );
  pParse->okConstFactor = 0;
  rLhsOrig = exprCodeVector(pParse, pLeft, &iDummy);
  pParse->okConstFactor = okConstFactor;
  for(i=0; i<nVector && aiMap[i]==i; i++){} /* Are LHS fields reordered? */
  if( i==nVector ){
    /* LHS fields are not reordered */
    rLhs = rLhsOrig;
  }else{
    /* Need to reorder the LHS fields according to aiMap */
    rLhs = sqlite3GetTempRange(pParse, nVector);
    for(i=0; i<nVector; i++){
      sqlite3VdbeAddOp3(v, OP_Copy, rLhsOrig+i, rLhs+aiMap[i], 0);
    }
  }

  /* If sqlite3FindInIndex() did not find or create an index that is
  ** suitable for evaluating the IN operator, then evaluate using a
  ** sequence of comparisons.
  **
  ** This is step (1) in the in-operator.md optimized algorithm.
  */
  if( eType==IN_INDEX_NOOP ){
    ExprList *pList = pExpr->x.pList;
    CollSeq *pColl = sqlite3ExprCollSeq(pParse, pExpr->pLeft);
    int labelOk = sqlite3VdbeMakeLabel(pParse);
    int r2, regToFree;
    int regCkNull = 0;
    int ii;
    assert( !ExprHasProperty(pExpr, EP_xIsSelect) );
    if( destIfNull!=destIfFalse ){
      regCkNull = sqlite3GetTempReg(pParse);
      sqlite3VdbeAddOp3(v, OP_BitAnd, rLhs, rLhs, regCkNull);
    }
    for(ii=0; ii<pList->nExpr; ii++){
      r2 = sqlite3ExprCodeTemp(pParse, pList->a[ii].pExpr, &regToFree);
      if( regCkNull && sqlite3ExprCanBeNull(pList->a[ii].pExpr) ){
        sqlite3VdbeAddOp3(v, OP_BitAnd, regCkNull, r2, regCkNull);
      }
      sqlite3ReleaseTempReg(pParse, regToFree);
      if( ii<pList->nExpr-1 || destIfNull!=destIfFalse ){
        int op = rLhs!=r2 ? OP_Eq : OP_NotNull;
        sqlite3VdbeAddOp4(v, op, rLhs, labelOk, r2,
                          (void*)pColl, P4_COLLSEQ);
        VdbeCoverageIf(v, ii<pList->nExpr-1 && op==OP_Eq);
        VdbeCoverageIf(v, ii==pList->nExpr-1 && op==OP_Eq);
        VdbeCoverageIf(v, ii<pList->nExpr-1 && op==OP_NotNull);
        VdbeCoverageIf(v, ii==pList->nExpr-1 && op==OP_NotNull);
        sqlite3VdbeChangeP5(v, zAff[0]);
      }else{
        int op = rLhs!=r2 ? OP_Ne : OP_IsNull;
        assert( destIfNull==destIfFalse );
        sqlite3VdbeAddOp4(v, op, rLhs, destIfFalse, r2,
                          (void*)pColl, P4_COLLSEQ);
        VdbeCoverageIf(v, op==OP_Ne);
        VdbeCoverageIf(v, op==OP_IsNull);
        sqlite3VdbeChangeP5(v, zAff[0] | SQLITE_JUMPIFNULL);
      }
    }
    if( regCkNull ){
      sqlite3VdbeAddOp2(v, OP_IsNull, regCkNull, destIfNull); VdbeCoverage(v);
      sqlite3VdbeGoto(v, destIfFalse);
    }
    sqlite3VdbeResolveLabel(v, labelOk);
    sqlite3ReleaseTempReg(pParse, regCkNull);
    goto sqlite3ExprCodeIN_finished;
  }

  /* Step 2: Check to see if the LHS contains any NULL columns.  If the
  ** LHS does contain NULLs then the result must be either FALSE or NULL.
  ** We will then skip the binary search of the RHS.
  */
  if( destIfNull==destIfFalse ){
    destStep2 = destIfFalse;
  }else{
    destStep2 = destStep6 = sqlite3VdbeMakeLabel(pParse);
  }
  if( pParse->nErr ) goto sqlite3ExprCodeIN_finished;
  for(i=0; i<nVector; i++){
    Expr *p = sqlite3VectorFieldSubexpr(pExpr->pLeft, i);
    if( sqlite3ExprCanBeNull(p) ){
      sqlite3VdbeAddOp2(v, OP_IsNull, rLhs+i, destStep2);
      VdbeCoverage(v);
    }
  }

  /* Step 3.  The LHS is now known to be non-NULL.  Do the binary search
  ** of the RHS using the LHS as a probe.  If found, the result is
  ** true.
  */
  if( eType==IN_INDEX_ROWID ){
    /* In this case, the RHS is the ROWID of table b-tree and so we also
    ** know that the RHS is non-NULL.  Hence, we combine steps 3 and 4
    ** into a single opcode. */
    sqlite3VdbeAddOp3(v, OP_SeekRowid, iTab, destIfFalse, rLhs);
    VdbeCoverage(v);
    addrTruthOp = sqlite3VdbeAddOp0(v, OP_Goto);  /* Return True */
  }else{
    sqlite3VdbeAddOp4(v, OP_Affinity, rLhs, nVector, 0, zAff, nVector);
    if( destIfFalse==destIfNull ){
      /* Combine Step 3 and Step 5 into a single opcode */
      sqlite3VdbeAddOp4Int(v, OP_NotFound, iTab, destIfFalse,
                           rLhs, nVector); VdbeCoverage(v);
      goto sqlite3ExprCodeIN_finished;
    }
    /* Ordinary Step 3, for the case where FALSE and NULL are distinct */
    addrTruthOp = sqlite3VdbeAddOp4Int(v, OP_Found, iTab, 0,
                                      rLhs, nVector); VdbeCoverage(v);
  }

  /* Step 4.  If the RHS is known to be non-NULL and we did not find
  ** an match on the search above, then the result must be FALSE.
  */
  if( rRhsHasNull && nVector==1 ){
    sqlite3VdbeAddOp2(v, OP_NotNull, rRhsHasNull, destIfFalse);
    VdbeCoverage(v);
  }

  /* Step 5.  If we do not care about the difference between NULL and
  ** FALSE, then just return false.
  */
  if( destIfFalse==destIfNull ) sqlite3VdbeGoto(v, destIfFalse);

  /* Step 6: Loop through rows of the RHS.  Compare each row to the LHS.
  ** If any comparison is NULL, then the result is NULL.  If all
  ** comparisons are FALSE then the final result is FALSE.
  **
  ** For a scalar LHS, it is sufficient to check just the first row
  ** of the RHS.
  */
  if( destStep6 ) sqlite3VdbeResolveLabel(v, destStep6);
  addrTop = sqlite3VdbeAddOp2(v, OP_Rewind, iTab, destIfFalse);
  VdbeCoverage(v);
  if( nVector>1 ){
    destNotNull = sqlite3VdbeMakeLabel(pParse);
  }else{
    /* For nVector==1, combine steps 6 and 7 by immediately returning
    ** FALSE if the first comparison is not NULL */
    destNotNull = destIfFalse;
  }
  for(i=0; i<nVector; i++){
    Expr *p;
    CollSeq *pColl;
    int r3 = sqlite3GetTempReg(pParse);
    p = sqlite3VectorFieldSubexpr(pLeft, i);
    pColl = sqlite3ExprCollSeq(pParse, p);
    sqlite3VdbeAddOp3(v, OP_Column, iTab, i, r3);
    sqlite3VdbeAddOp4(v, OP_Ne, rLhs+i, destNotNull, r3,
                      (void*)pColl, P4_COLLSEQ);
    VdbeCoverage(v);
    sqlite3ReleaseTempReg(pParse, r3);
  }
  sqlite3VdbeAddOp2(v, OP_Goto, 0, destIfNull);
  if( nVector>1 ){
    sqlite3VdbeResolveLabel(v, destNotNull);
    sqlite3VdbeAddOp2(v, OP_Next, iTab, addrTop+1);
    VdbeCoverage(v);

    /* Step 7:  If we reach this point, we know that the result must
    ** be false. */
    sqlite3VdbeAddOp2(v, OP_Goto, 0, destIfFalse);
  }

  /* Jumps here in order to return true. */
  sqlite3VdbeJumpHere(v, addrTruthOp);

sqlite3ExprCodeIN_finished:
  if( rLhs!=rLhsOrig ) sqlite3ReleaseTempReg(pParse, rLhs);
  VdbeComment((v, "end IN expr"));
sqlite3ExprCodeIN_oom_error:
  sqlite3DbFree(pParse->db, aiMap);
  sqlite3DbFree(pParse->db, zAff);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %ecx, %r15d
movl %edx, %r14d
movq %rsi, %r12
movq %rdi, %rbx
xorl %eax, %eax
movl %eax, 0x44(%rsp)
movl %eax, 0x34(%rsp)
movb 0x23(%rdi), %bpl
movq 0x10(%rsi), %r13
callq 0x2c1831
testl %eax, %eax
jne 0x2bfa2a
movq %r13, 0x38(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2c18b1
movq %rax, %r13
movq 0x10(%r12), %rax
movb (%rax), %cl
cmpb $-0x53, %cl
jne 0x2bf29e
movb 0x2(%rax), %cl
movl %r14d, 0x14(%rsp)
cmpb $-0x52, %cl
je 0x2bf2bd
movzbl %cl, %ecx
movl $0x1, %r14d
cmpl $0x88, %ecx
jne 0x2bf2c4
movq 0x20(%rax), %rax
movq 0x20(%rax), %rax
movl (%rax), %r14d
movq (%rbx), %rdi
movslq %r14d, %rax
leaq (%rax,%rax,4), %rsi
incq %rsi
callq 0x279b27
movq %rax, %r8
movq (%rbx), %rax
cmpb $0x0, 0x61(%rax)
jne 0x2bfa0a
movq %r13, 0x48(%rsp)
movq 0x10(%rbx), %r13
xorl %eax, %eax
movl %r15d, 0x10(%rsp)
cmpl %r15d, 0x14(%rsp)
leaq 0x44(%rsp), %rcx
cmoveq %rax, %rcx
leaq 0x34(%rsp), %r9
movq %rbx, %rdi
movq %r12, %rsi
movl $0x3, %edx
movq %r8, 0x28(%rsp)
callq 0x2c1988
movl %eax, %r15d
movb $0x0, 0x23(%rbx)
leaq 0x54(%rsp), %rdx
movq %rbx, %rdi
movq 0x38(%rsp), %rsi
callq 0x2bfc20
movl %eax, %edx
movb %bpl, 0x23(%rbx)
testl %r14d, %r14d
movl %r14d, %r10d
movl %r14d, 0x18(%rsp)
jle 0x2bf372
movl %r10d, %ebp
xorl %eax, %eax
movq 0x28(%rsp), %r8
movl 0x14(%rsp), %r14d
movl (%r8,%rax,4), %ecx
cmpq %rcx, %rax
jne 0x2bf3a6
incq %rax
cmpq %rax, %rbp
jne 0x2bf359
movl %edx, %r9d
jmp 0x2bf433
movl %edx, %r9d
movq 0x28(%rsp), %r8
movl 0x14(%rsp), %r14d
je 0x2bf433
movq %rbx, %rdi
movl %r10d, %esi
movl %edx, %ebp
callq 0x2beb15
movl 0x18(%rsp), %r10d
movl %ebp, %edx
movq 0x28(%rsp), %r8
movl %eax, %r9d
jmp 0x2bf433
movl %edx, %r9d
cmpl %eax, %ebp
je 0x2bf433
movl %edx, 0xc(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2beb15
movl 0x18(%rsp), %r10d
movl %eax, %r9d
testl %r10d, %r10d
jle 0x2bf42a
movl %r15d, 0x8(%rsp)
movl 0xc(%rsp), %eax
movq %rax, 0x20(%rsp)
xorl %r15d, %r15d
movq 0x28(%rsp), %rax
movl (%rax,%r15,4), %ecx
addl %r9d, %ecx
movq 0x20(%rsp), %rax
leal (%rax,%r15), %edx
movq %r13, %rdi
movl $0x4d, %esi
xorl %r8d, %r8d
movq %r9, %r14
callq 0x2a83e1
movq %r14, %r9
incq %r15
cmpq %r15, %rbp
jne 0x2bf3dd
movq 0x28(%rsp), %r8
movl 0x14(%rsp), %r14d
movl 0xc(%rsp), %edx
movl 0x18(%rsp), %r10d
movl 0x8(%rsp), %r15d
jmp 0x2bf433
movq 0x28(%rsp), %r8
movl 0xc(%rsp), %edx
cmpl $0x5, %r15d
movq %r9, 0x20(%rsp)
jne 0x2bf498
movl %edx, 0xc(%rsp)
movq 0x10(%r12), %rsi
movq 0x20(%r12), %rax
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
callq 0x2a9678
movq %rax, 0x38(%rsp)
movl 0x44(%rbx), %eax
decl %eax
xorl %r12d, %r12d
movl %eax, 0x8(%rsp)
movl %eax, 0x44(%rbx)
cmpl 0x10(%rsp), %r14d
je 0x2bf577
movb 0x1f(%rbx), %al
testb %al, %al
je 0x2bf555
decb %al
movb %al, 0x1f(%rbx)
movzbl %al, %eax
movl 0xd4(%rbx,%rax,4), %r12d
jmp 0x2bf560
xorl %eax, %eax
movl %r14d, %ebp
cmpl 0x10(%rsp), %r14d
je 0x2bf4ae
movl 0x44(%rbx), %eax
decl %eax
movl %eax, 0x44(%rbx)
movl %eax, %ebp
cmpl $0x0, 0x30(%rbx)
jne 0x2bf9dd
movl %r15d, 0x8(%rsp)
movl %eax, 0x30(%rsp)
movl %edx, 0xc(%rsp)
testl %r10d, %r10d
jle 0x2bf50e
xorl %r15d, %r15d
movq 0x10(%r12), %rdi
movl %r15d, %esi
callq 0x2c0855
movq %rax, %rdi
callq 0x2c262e
testl %eax, %eax
je 0x2bf501
movq 0x20(%rsp), %rax
leal (%rax,%r15), %edx
movq %r13, %rdi
movl $0x32, %esi
movl %ebp, %ecx
xorl %r8d, %r8d
callq 0x2a83e1
incl %r15d
movl 0x18(%rsp), %r10d
cmpl %r15d, %r10d
jne 0x2bf4cd
cmpl $0x1, 0x8(%rsp)
jne 0x2bf730
movl 0x34(%rsp), %ebp
movq %r13, %rdi
movl $0x1f, %esi
movl %ebp, %edx
movl %r14d, %ecx
movq 0x20(%rsp), %r8
callq 0x2a83e1
movq %r13, %rdi
movl $0xb, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2a83e1
movl 0x18(%rsp), %esi
movl %eax, 0x40(%rsp)
jmp 0x2bf7fb
movl 0x38(%rbx), %r12d
incl %r12d
movl %r12d, 0x38(%rbx)
movq 0x20(%rsp), %rcx
movq %r13, %rdi
movl $0x65, %esi
movl %ecx, %edx
movl %r12d, %r8d
callq 0x2a83e1
movq 0x18(%rsp), %rax
cmpl $0x0, (%rax)
jle 0x2bf6b9
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %r15
xorl %r14d, %r14d
movq (%r15), %rsi
movq %rbx, %rdi
leaq 0x50(%rsp), %rdx
callq 0x2be5d4
movl %eax, %ebp
testl %r12d, %r12d
je 0x2bf5c9
movq (%r15), %rdi
callq 0x2c262e
testl %eax, %eax
je 0x2bf5c9
movq %r13, %rdi
movl $0x65, %esi
movl %r12d, %edx
movl %ebp, %ecx
movl %r12d, %r8d
callq 0x2a83e1
movl 0x50(%rsp), %eax
testl %eax, %eax
je 0x2bf5e8
movzbl 0x1f(%rbx), %ecx
cmpq $0x7, %rcx
ja 0x2bf5e8
leal 0x1(%rcx), %edx
movb %dl, 0x1f(%rbx)
movl %eax, 0xd4(%rbx,%rcx,4)
movl 0x10(%rsp), %eax
cmpl %eax, 0x14(%rsp)
movq 0x20(%rsp), %rdx
jne 0x2bf64c
movq 0x18(%rsp), %rax
movslq (%rax), %rax
decq %rax
cmpq %rax, %r14
jl 0x2bf64c
xorl %eax, %eax
cmpl %ebp, %edx
setne %al
leal 0x32(%rax,%rax), %esi
movq %r13, %rdi
movl 0x14(%rsp), %ecx
movl %ebp, %r8d
callq 0x2a83e1
movq %r13, %rdi
movl %eax, %esi
movq 0x38(%rsp), %rdx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
callq 0x27b778
movl 0x90(%r13), %eax
testl %eax, %eax
jle 0x2bf6a1
movq 0x48(%rsp), %rcx
movb (%rcx), %cl
orb $0x10, %cl
jmp 0x2bf68c
xorl %eax, %eax
cmpl %ebp, %edx
setne %al
leal 0x33(%rax,%rax), %esi
movq %r13, %rdi
movl 0x8(%rsp), %ecx
movl %ebp, %r8d
callq 0x2a83e1
movq %r13, %rdi
movl %eax, %esi
movq 0x38(%rsp), %rdx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
callq 0x27b778
movl 0x90(%r13), %eax
testl %eax, %eax
jle 0x2bf6a1
movq 0x48(%rsp), %rcx
movb (%rcx), %cl
movsbl %cl, %ecx
movq 0x88(%r13), %rdx
movl %eax, %eax
leaq (%rax,%rax,2), %rax
movw %cx, -0x16(%rdx,%rax,8)
incq %r14
movq 0x18(%rsp), %rax
movslq (%rax), %rax
addq $0x18, %r15
cmpq %rax, %r14
jl 0x2bf591
testl %r12d, %r12d
je 0x2bf711
movq %r13, %rdi
movl $0x32, %esi
movl %r12d, %edx
movl 0x10(%rsp), %ecx
xorl %r8d, %r8d
callq 0x2a83e1
movq %r13, %rdi
movl $0xb, %esi
xorl %edx, %edx
movl 0x14(%rsp), %ecx
xorl %r8d, %r8d
callq 0x2a83e1
movq %r13, %rdi
movl 0x8(%rsp), %esi
callq 0x2bfa39
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x2bf71d
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %r12d, 0xd4(%rbx,%rax,4)
jmp 0x2bf71d
movq %r13, %rdi
movl 0x8(%rsp), %esi
callq 0x2bfa39
movq 0x28(%rsp), %r8
movl 0xc(%rsp), %edx
movq 0x20(%rsp), %r9
jmp 0x2bf9dd
movq %r13, %rdi
movl $0x5a, %esi
movq 0x20(%rsp), %r15
movl %r15d, %edx
movl %r10d, %ecx
xorl %r8d, %r8d
movl %r10d, %ebp
callq 0x2a83e1
movq %r13, %rdi
movl %eax, %esi
movq 0x48(%rsp), %rdx
movl %ebp, %ecx
callq 0x27b778
movl 0x34(%rsp), %ebp
cmpl 0x10(%rsp), %r14d
je 0x2bf792
movq %r13, %rdi
movl $0x1e, %esi
movl %ebp, %edx
xorl %ecx, %ecx
movl %r15d, %r8d
callq 0x2a83e1
movq (%r13), %rcx
cmpb $0x0, 0x61(%rcx)
movl %eax, 0x40(%rsp)
je 0x2bf7e0
movl 0x18(%rsp), %esi
jmp 0x2bf7fb
movq %r13, %rdi
movl $0x1d, %esi
movl %ebp, %edx
movl %r14d, %ecx
movl %r15d, %r8d
callq 0x2a83e1
movq (%r13), %rcx
cmpb $0x0, 0x61(%rcx)
movq 0x28(%rsp), %r8
movl 0xc(%rsp), %edx
movq %r15, %r9
movl 0x18(%rsp), %esi
jne 0x2bf9dd
movq 0x88(%r13), %rcx
cltq
leaq (%rax,%rax,2), %rax
movb $-0x3, 0x1(%rcx,%rax,8)
movl %esi, 0x10(%rcx,%rax,8)
jmp 0x2bf9dd
movq 0x88(%r13), %rdx
movslq %eax, %rcx
leaq (%rcx,%rcx,2), %rcx
movb $-0x3, 0x1(%rdx,%rcx,8)
movl 0x18(%rsp), %esi
movl %esi, 0x10(%rdx,%rcx,8)
movl 0x44(%rsp), %edx
testl %edx, %edx
sete %al
cmpl $0x1, %esi
setne %cl
orb %al, %cl
jne 0x2bf821
movq %r13, %rdi
movl $0x33, %esi
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x2a83e1
cmpl 0x10(%rsp), %r14d
jne 0x2bf83d
movq %r13, %rdi
movl $0xb, %esi
xorl %edx, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x2a83e1
movl 0x30(%rsp), %esi
testl %esi, %esi
je 0x2bf84d
movq %r13, %rdi
callq 0x2bfa39
movq %r13, %rdi
movl $0x25, %esi
movl %ebp, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x2a83e1
movl 0x18(%rsp), %ecx
cmpl $0x2, %ecx
jl 0x2bf878
movl 0x44(%rbx), %ecx
decl %ecx
movl %ecx, %r14d
movl %ecx, 0x44(%rbx)
jmp 0x2bf880
testl %ecx, %ecx
jle 0x2bf97e
movl %eax, 0x30(%rsp)
movl %ebp, 0x8(%rsp)
xorl %r12d, %r12d
movb 0x1f(%rbx), %al
testb %al, %al
je 0x2bf8a3
decb %al
movb %al, 0x1f(%rbx)
movzbl %al, %eax
movl 0xd4(%rbx,%rax,4), %ebp
jmp 0x2bf8ab
movl 0x38(%rbx), %ebp
incl %ebp
movl %ebp, 0x38(%rbx)
movq 0x38(%rsp), %rdi
movl %r12d, %esi
callq 0x2c0855
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2a9678
movq %rax, %r15
movq %r13, %rdi
movl $0x59, %esi
movl 0x8(%rsp), %edx
movl %r12d, %ecx
movl %ebp, %r8d
callq 0x2a83e1
movq 0x20(%rsp), %rax
leal (%rax,%r12), %edx
movq %r13, %rdi
movl $0x34, %esi
movl %r14d, %ecx
movl %ebp, %r8d
callq 0x2a83e1
movq %r13, %rdi
movl %eax, %esi
movq %r15, %rdx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
callq 0x27b778
testl %ebp, %ebp
je 0x2bf926
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x2bf926
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %ebp, 0xd4(%rbx,%rax,4)
incl %r12d
movl 0x18(%rsp), %eax
cmpl %r12d, %eax
jne 0x2bf88b
movq %r13, %rdi
movl $0xb, %esi
xorl %edx, %edx
movl 0x10(%rsp), %ecx
xorl %r8d, %r8d
movl %eax, %ebp
callq 0x2a83e1
cmpl $0x2, %ebp
jl 0x2bf994
movq %r13, %rdi
movl %r14d, %esi
callq 0x2bfa39
movl 0x30(%rsp), %ecx
incl %ecx
movq %r13, %rdi
movl $0x5, %esi
movl 0x8(%rsp), %edx
xorl %r8d, %r8d
callq 0x2a83e1
movl 0x14(%rsp), %ecx
jmp 0x2bf982
movl 0x10(%rsp), %ecx
movq %r13, %rdi
movl $0xb, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x2a83e1
movl 0x90(%r13), %eax
movq (%r13), %rcx
cmpb $0x0, 0x61(%rcx)
je 0x2bf9ae
leaq 0x1ff4dc(%rip), %rcx    # 0x4bee88
jmp 0x2bf9cc
leal -0x1(%rax), %ecx
movl 0x40(%rsp), %edx
testl %edx, %edx
cmovnsl %edx, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rcx
addq 0x88(%r13), %rcx
movq 0x28(%rsp), %r8
movl 0xc(%rsp), %edx
movq 0x20(%rsp), %r9
movl %eax, 0x8(%rcx)
cmpl %edx, %r9d
sete %al
testl %r9d, %r9d
sete %cl
orb %al, %cl
movq 0x48(%rsp), %r13
jne 0x2bfa0a
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x2bfa0a
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %r9d, 0xd4(%rbx,%rax,4)
testq %r8, %r8
je 0x2bfa1a
movq (%rbx), %rdi
movq %r8, %rsi
callq 0x282904
testq %r13, %r13
je 0x2bfa2a
movq (%rbx), %rdi
movq %r13, %rsi
callq 0x282904
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq