// File: /workspace/github_c_makefile_star2_O1/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 $0x68, %rsp
movl %ecx, %r14d
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
xorl %eax, %eax
movl %eax, 0x54(%rsp)
movl %eax, 0x3c(%rsp)
movb 0x23(%rdi), %r12b
movq 0x10(%rsi), %r13
callq 0x2caf4e
testl %eax, %eax
jne 0x2c9198
movb %r12b, 0x8(%rsp)
movl %ebp, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2cafc8
movq %rax, %r12
movq 0x10(%r15), %rax
movb (%rax), %cl
cmpb $-0x53, %cl
jne 0x2c89fb
movb 0x2(%rax), %cl
movq %r15, 0x18(%rsp)
cmpb $-0x52, %cl
je 0x2c8a19
movzbl %cl, %ecx
movl $0x1, %ebp
cmpl $0x88, %ecx
jne 0x2c8a1f
movq 0x20(%rax), %rax
movq 0x20(%rax), %rax
movl (%rax), %ebp
movq (%rbx), %rdi
movslq %ebp, %rax
leaq (%rax,%rax,4), %rsi
incq %rsi
callq 0x283569
movq %rax, %r8
movq (%rbx), %rax
cmpb $0x0, 0x61(%rax)
jne 0x2c9178
movq %r12, 0x30(%rsp)
movl %r14d, %ecx
movl %ebp, %r14d
movq 0x10(%rbx), %rax
movq %rax, 0x28(%rsp)
xorl %r12d, %r12d
movl %ecx, 0x24(%rsp)
cmpl %ecx, (%rsp)
leaq 0x54(%rsp), %rcx
cmoveq %r12, %rcx
leaq 0x3c(%rsp), %r9
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl $0x3, %edx
movq %r8, 0x40(%rsp)
movq 0x40(%rsp), %r8
callq 0x2cb09f
movl %eax, 0x4(%rsp)
movb $0x0, 0x23(%rbx)
leaq 0x64(%rsp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2c938f
movq 0x40(%rsp), %r8
movl %eax, %edx
movb 0x8(%rsp), %al
movb %al, 0x23(%rbx)
testl %ebp, %ebp
movl %ebp, %ecx
jle 0x2c8acc
xorl %r12d, %r12d
movl (%r8,%r12,4), %eax
cmpq %rax, %r12
jne 0x2c8acc
incq %r12
cmpq %r12, %r14
jne 0x2c8ab8
movl %r14d, %r12d
movl %edx, %r9d
cmpl %ecx, %r12d
movq 0x28(%rsp), %r15
movl %ecx, 0x8(%rsp)
movq 0x18(%rsp), %rbp
movl %edx, 0x14(%rsp)
je 0x2c8b6b
movq %rbx, %rdi
movl %ecx, %esi
callq 0x2c8275
movl 0x8(%rsp), %ecx
movl %eax, %r9d
testl %ecx, %ecx
jle 0x2c8b62
movq %r13, 0x48(%rsp)
movq %rbx, 0x58(%rsp)
movq %r15, %rbx
movl 0x14(%rsp), %r15d
xorl %r12d, %r12d
movq 0x40(%rsp), %r13
movl (%r13,%r12,4), %ecx
addl %r9d, %ecx
leal (%r15,%r12), %edx
movq %rbx, %rdi
movl $0x4d, %esi
xorl %r8d, %r8d
movq %r9, %rbp
callq 0x2b200c
movq %rbp, %r9
incq %r12
cmpq %r12, %r14
jne 0x2c8b19
movq %r13, %r8
movl 0x14(%rsp), %edx
movq %rbx, %r15
movq 0x58(%rsp), %rbx
movq 0x48(%rsp), %r13
movl 0x8(%rsp), %ecx
movq 0x18(%rsp), %rbp
jmp 0x2c8b6b
movq 0x40(%rsp), %r8
movl 0x14(%rsp), %edx
cmpl $0x5, 0x4(%rsp)
movq %r9, 0x18(%rsp)
jne 0x2c8bcf
movq 0x10(%rbp), %rsi
movq 0x20(%rbp), %rax
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
callq 0x2b32a0
movq %rax, 0x48(%rsp)
movl 0x44(%rbx), %eax
decl %eax
xorl %r12d, %r12d
movl %eax, 0x4(%rsp)
movl %eax, 0x44(%rbx)
movl (%rsp), %r13d
cmpl 0x24(%rsp), %r13d
je 0x2c8cb4
movb 0x1f(%rbx), %al
testb %al, %al
je 0x2c8c92
decb %al
movb %al, 0x1f(%rbx)
movzbl %al, %eax
movl 0xd4(%rbx,%rax,4), %r12d
jmp 0x2c8c9d
xorl %esi, %esi
movl (%rsp), %eax
movl %eax, %r15d
movl 0x24(%rsp), %r14d
cmpl %r14d, %eax
movq 0x30(%rsp), %r12
je 0x2c8bf1
movl 0x44(%rbx), %esi
decl %esi
movl %esi, 0x44(%rbx)
movl %esi, %r15d
cmpl $0x0, 0x30(%rbx)
jne 0x2c9150
movl %esi, 0x48(%rsp)
testl %ecx, %ecx
jle 0x2c8c48
xorl %r12d, %r12d
movq 0x10(%rbp), %rdi
movl %r12d, %esi
callq 0x2c9ff3
movq %rax, %rdi
callq 0x2cbd61
testl %eax, %eax
je 0x2c8c3c
movq 0x18(%rsp), %rax
leal (%rax,%r12), %edx
movq 0x28(%rsp), %rdi
movl $0x32, %esi
movl %r15d, %ecx
xorl %r8d, %r8d
callq 0x2b200c
incl %r12d
movl 0x8(%rsp), %ecx
cmpl %r12d, %ecx
jne 0x2c8c06
cmpl $0x1, 0x4(%rsp)
jne 0x2c8e84
movl 0x3c(%rsp), %edx
movq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x1f, %esi
movl (%rsp), %ecx
movq 0x18(%rsp), %r8
callq 0x2b200c
movq %r15, %rdi
movl $0xb, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2b200c
movl 0x8(%rsp), %esi
movl %eax, 0x50(%rsp)
jmp 0x2c8f50
movl 0x38(%rbx), %r12d
incl %r12d
movl %r12d, 0x38(%rbx)
movq 0x18(%rsp), %rcx
movq %r15, %rdi
movl $0x65, %esi
movl %ecx, %edx
movl %r12d, %r8d
callq 0x2b200c
movq 0x8(%rsp), %rax
cmpl $0x0, (%rax)
jle 0x2c8e01
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %r14
xorl %ebp, %ebp
movq (%r14), %rsi
movq %rbx, %rdi
leaq 0x60(%rsp), %rdx
callq 0x2c7cda
movl %eax, %r15d
testl %r12d, %r12d
je 0x2c8d09
movq (%r14), %rdi
callq 0x2cbd61
testl %eax, %eax
je 0x2c8d09
movq 0x28(%rsp), %rdi
movl $0x65, %esi
movl %r12d, %edx
movl %r15d, %ecx
movl %r12d, %r8d
callq 0x2b200c
movl 0x60(%rsp), %eax
testl %eax, %eax
je 0x2c8d28
movzbl 0x1f(%rbx), %ecx
cmpq $0x7, %rcx
ja 0x2c8d28
leal 0x1(%rcx), %edx
movb %dl, 0x1f(%rbx)
movl %eax, 0xd4(%rbx,%rcx,4)
cmpl 0x24(%rsp), %r13d
movq 0x18(%rsp), %rdx
jne 0x2c8d8e
movq 0x8(%rsp), %rax
movslq (%rax), %rax
decq %rax
cmpq %rax, %rbp
jl 0x2c8d8e
xorl %eax, %eax
cmpl %r15d, %edx
setne %al
leal 0x32(%rax,%rax), %esi
movq 0x28(%rsp), %rdi
movl %r13d, %ecx
movl %r15d, %r8d
movq %rdi, %r15
callq 0x2b200c
movq %r15, %rdi
movl %eax, %esi
movq 0x48(%rsp), %rdx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
callq 0x285198
movl 0x90(%r15), %eax
testl %eax, %eax
jle 0x2c8de9
movq 0x30(%rsp), %rcx
movb (%rcx), %cl
orb $0x10, %cl
jmp 0x2c8dd4
xorl %eax, %eax
cmpl %r15d, %edx
setne %al
leal 0x33(%rax,%rax), %esi
movq 0x28(%rsp), %rdi
movl 0x4(%rsp), %ecx
movl %r15d, %r8d
movq %rdi, %r15
callq 0x2b200c
movq %r15, %rdi
movl %eax, %esi
movq 0x48(%rsp), %rdx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
callq 0x285198
movl 0x90(%r15), %eax
testl %eax, %eax
jle 0x2c8de9
movq 0x30(%rsp), %rcx
movb (%rcx), %cl
movsbl %cl, %ecx
movq 0x88(%r15), %rdx
movl %eax, %eax
leaq (%rax,%rax,2), %rax
movw %cx, -0x16(%rdx,%rax,8)
incq %rbp
movq 0x8(%rsp), %rax
movslq (%rax), %rax
addq $0x18, %r14
cmpq %rax, %rbp
jl 0x2c8ccd
testl %r12d, %r12d
je 0x2c8e5d
movq %r15, %rdi
movl $0x32, %esi
movl %r12d, %edx
movl 0x24(%rsp), %ecx
xorl %r8d, %r8d
callq 0x2b200c
movq %r15, %rdi
movl $0xb, %esi
xorl %edx, %edx
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x2b200c
movq %r15, %rdi
movl 0x4(%rsp), %esi
callq 0x2c91a7
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
movq 0x30(%rsp), %rsi
ja 0x2c8e6e
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %r12d, 0xd4(%rbx,%rax,4)
jmp 0x2c8e6e
movq %r15, %rdi
movl 0x4(%rsp), %esi
callq 0x2c91a7
movq 0x30(%rsp), %rsi
movq 0x40(%rsp), %r8
movl 0x14(%rsp), %edx
movq 0x18(%rsp), %r9
movq %rsi, %r12
jmp 0x2c9150
movq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x5a, %esi
movq 0x18(%rsp), %rbp
movl %ebp, %edx
xorl %r8d, %r8d
movl %ecx, %r12d
callq 0x2b200c
movq %r15, %rdi
movl %eax, %esi
movq 0x30(%rsp), %rdx
movl %r12d, %ecx
callq 0x285198
movl 0x3c(%rsp), %edx
movl (%rsp), %ecx
movq %r15, %rdi
cmpl %r14d, %ecx
je 0x2c8ee6
movl $0x1e, %esi
xorl %ecx, %ecx
movl %ebp, %r8d
callq 0x2b200c
movq (%r15), %rcx
cmpb $0x0, 0x61(%rcx)
movl %eax, 0x50(%rsp)
je 0x2c8f35
movl 0x8(%rsp), %esi
jmp 0x2c8f50
movl $0x1d, %esi
movl %ebp, %r8d
callq 0x2b200c
movq (%r15), %rcx
cmpb $0x0, 0x61(%rcx)
movq 0x40(%rsp), %r8
movl 0x14(%rsp), %edx
movq %rbp, %r9
movq 0x30(%rsp), %r12
movl 0x8(%rsp), %esi
jne 0x2c9150
movq 0x28(%rsp), %rcx
movq 0x88(%rcx), %rcx
cltq
leaq (%rax,%rax,2), %rax
movb $-0x3, 0x1(%rcx,%rax,8)
movl %esi, 0x10(%rcx,%rax,8)
jmp 0x2c9150
movq 0x88(%r15), %rdx
movslq %eax, %rcx
leaq (%rcx,%rcx,2), %rcx
movb $-0x3, 0x1(%rdx,%rcx,8)
movl 0x8(%rsp), %esi
movl %esi, 0x10(%rdx,%rcx,8)
movl 0x54(%rsp), %edx
testl %edx, %edx
sete %al
cmpl $0x1, %esi
setne %cl
orb %al, %cl
jne 0x2c8f76
movq %r15, %rdi
movl $0x33, %esi
movl (%rsp), %ecx
xorl %r8d, %r8d
callq 0x2b200c
cmpl %r14d, (%rsp)
movq 0x30(%rsp), %r12
jne 0x2c8f96
movq %r15, %rdi
movl $0xb, %esi
xorl %edx, %edx
movl (%rsp), %ecx
xorl %r8d, %r8d
callq 0x2b200c
movl 0x48(%rsp), %esi
testl %esi, %esi
je 0x2c8fa6
movq %r15, %rdi
callq 0x2c91a7
movq %r13, 0x48(%rsp)
movl 0x3c(%rsp), %edx
movq %r15, %rdi
movl $0x25, %esi
movl %edx, 0x4(%rsp)
movl (%rsp), %r13d
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x2b200c
movl %eax, 0x58(%rsp)
movl 0x8(%rsp), %eax
cmpl $0x2, %eax
jl 0x2c8fe2
movl 0x44(%rbx), %ecx
decl %ecx
movl %ecx, %r13d
movl %ecx, 0x44(%rbx)
testl %eax, %eax
jle 0x2c90ad
xorl %ebp, %ebp
movb 0x1f(%rbx), %al
testb %al, %al
je 0x2c9005
decb %al
movb %al, 0x1f(%rbx)
movzbl %al, %eax
movl 0xd4(%rbx,%rax,4), %r15d
jmp 0x2c9010
movl 0x38(%rbx), %r15d
incl %r15d
movl %r15d, 0x38(%rbx)
movq 0x48(%rsp), %rdi
movl %ebp, %esi
callq 0x2c9ff3
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2b32a0
movq %rax, %r12
movq %rbx, %r14
movq 0x28(%rsp), %rbx
movq %rbx, %rdi
movl $0x59, %esi
movl 0x4(%rsp), %edx
movl %ebp, %ecx
movl %r15d, %r8d
callq 0x2b200c
movq 0x18(%rsp), %rax
leal (%rax,%rbp), %edx
movq %rbx, %rdi
movl $0x34, %esi
movl %r13d, %ecx
movl %r15d, %r8d
callq 0x2b200c
movq %rbx, %rdi
movq %r14, %rbx
movl %eax, %esi
movq %r12, %rdx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
callq 0x285198
testl %r15d, %r15d
je 0x2c9095
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x2c9095
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %r15d, 0xd4(%rbx,%rax,4)
incl %ebp
movl 0x8(%rsp), %eax
cmpl %ebp, %eax
movl 0x24(%rsp), %r14d
movq 0x30(%rsp), %r12
jne 0x2c8fec
movq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0xb, %esi
xorl %edx, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
movl %eax, %ebp
callq 0x2b200c
cmpl $0x2, %ebp
jl 0x2c9108
movq %r15, %rdi
movl %r13d, %esi
callq 0x2c91a7
movl 0x58(%rsp), %ecx
incl %ecx
movq %r15, %rdi
movl $0x5, %esi
movl 0x4(%rsp), %edx
xorl %r8d, %r8d
callq 0x2b200c
movq %r15, %rdi
movl $0xb, %esi
xorl %edx, %edx
movl (%rsp), %ecx
xorl %r8d, %r8d
callq 0x2b200c
movl 0x90(%r15), %eax
movq (%r15), %rcx
cmpb $0x0, 0x61(%rcx)
je 0x2c9121
leaq 0x200d69(%rip), %rcx    # 0x4c9e88
jmp 0x2c913f
leal -0x1(%rax), %ecx
movl 0x50(%rsp), %edx
testl %edx, %edx
cmovnsl %edx, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rcx
addq 0x88(%r15), %rcx
movq 0x40(%rsp), %r8
movl 0x14(%rsp), %edx
movq 0x18(%rsp), %r9
movl %eax, 0x8(%rcx)
cmpl %edx, %r9d
sete %al
testl %r9d, %r9d
sete %cl
orb %al, %cl
jne 0x2c9178
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x2c9178
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %r9d, 0xd4(%rbx,%rax,4)
testq %r8, %r8
je 0x2c9188
movq (%rbx), %rdi
movq %r8, %rsi
callq 0x28c3e7
testq %r12, %r12
je 0x2c9198
movq (%rbx), %rdi
movq %r12, %rsi
callq 0x28c3e7
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq