// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ExprCodeExprList
SQLITE_PRIVATE int sqlite3ExprCodeExprList(
  Parse *pParse,     /* Parsing context */
  ExprList *pList,   /* The expression list to be coded */
  int target,        /* Where to write results */
  int srcReg,        /* Source registers if SQLITE_ECEL_REF */
  u8 flags           /* SQLITE_ECEL_* flags */
){
  struct ExprList_item *pItem;
  int i, j, n;
  u8 copyOp = (flags & SQLITE_ECEL_DUP) ? OP_Copy : OP_SCopy;
  Vdbe *v = pParse->pVdbe;
  assert( pList!=0 );
  assert( target>0 );
  assert( pParse->pVdbe!=0 );  /* Never gets this far otherwise */
  n = pList->nExpr;
  if( !ConstFactorOk(pParse) ) flags &= ~SQLITE_ECEL_FACTOR;
  for(pItem=pList->a, i=0; i<n; i++, pItem++){
    Expr *pExpr = pItem->pExpr;
#ifdef SQLITE_ENABLE_SORTER_REFERENCES
    if( pItem->bSorterRef ){
      i--;
      n--;
    }else
#endif
    if( (flags & SQLITE_ECEL_REF)!=0 && (j = pItem->u.x.iOrderByCol)>0 ){
      if( flags & SQLITE_ECEL_OMITREF ){
        i--;
        n--;
      }else{
        sqlite3VdbeAddOp2(v, copyOp, j+srcReg-1, target+i);
      }
    }else if( (flags & SQLITE_ECEL_FACTOR)!=0
           && sqlite3ExprIsConstantNotJoin(pExpr)
    ){
      sqlite3ExprCodeRunJustOnce(pParse, pExpr, target+i);
    }else{
      int inReg = sqlite3ExprCodeTarget(pParse, pExpr, target+i);
      if( inReg!=target+i ){
        VdbeOp *pOp;
        if( copyOp==OP_Copy
         && (pOp=sqlite3VdbeGetOp(v, -1))->opcode==OP_Copy
         && pOp->p1+pOp->p3+1==inReg
         && pOp->p2+pOp->p3+1==target+i
         && pOp->p5==0  /* The do-not-merge flag must be clear */
        ){
          pOp->p3++;
        }else{
          sqlite3VdbeAddOp2(v, copyOp, inReg, target+i);
        }
      }
    }
  }
  return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, %r15
movl %r8d, %eax
andl $0x1, %eax
pushq $0x4e
popq %rdx
subl %eax, %edx
movl %edx, 0x4(%rsp)
movq 0x10(%rdi), %rax
movq %rax, 0x8(%rsp)
movl %r8d, %eax
andb $-0x3, %al
movq %rdi, 0x20(%rsp)
cmpb $0x0, 0x23(%rdi)
movl (%rsi), %ebp
movzbl %al, %r12d
movl %r8d, 0x1c(%rsp)
cmovnel %r8d, %r12d
decl %ecx
movl %ecx, 0x18(%rsp)
addq $0x1c, %r15
xorl %r14d, %r14d
cmpl %ebp, %r14d
jge 0x2665fe
movq -0x14(%r15), %r13
testb $0x4, %r12b
je 0x266552
movzwl (%r15), %edx
testl %edx, %edx
je 0x266552
testb $0x8, %r12b
jne 0x2665e8
addl 0x18(%rsp), %edx
movq 0x10(%rsp), %rax
leal (%r14,%rax), %ecx
movq 0x8(%rsp), %rdi
movl 0x4(%rsp), %esi
jmp 0x2665e1
testb $0x2, %r12b
je 0x26657c
movq %r13, %rdi
callq 0x26631b
testl %eax, %eax
je 0x26657c
movq 0x10(%rsp), %rax
leal (%r14,%rax), %edx
movq 0x20(%rsp), %rdi
movq %r13, %rsi
callq 0x266325
jmp 0x2665ed
movq 0x10(%rsp), %rax
leal (%r14,%rax), %ebx
movq 0x20(%rsp), %rdi
movq %r13, %rsi
movl %ebx, %edx
callq 0x264a71
cmpl %ebx, %eax
je 0x2665ed
movl %eax, %r13d
testb $0x1, 0x1c(%rsp)
je 0x2665d3
movq 0x8(%rsp), %rdi
pushq $-0x1
popq %rsi
callq 0x26468f
cmpb $0x4d, (%rax)
jne 0x2665d3
movl 0xc(%rax), %ecx
incl %ecx
movl 0x4(%rax), %edx
addl %ecx, %edx
cmpl %r13d, %edx
jne 0x2665d3
movl 0x8(%rax), %edx
addl %ecx, %edx
cmpl %ebx, %edx
jne 0x2665d3
cmpw $0x0, 0x2(%rax)
je 0x2665f9
movq 0x8(%rsp), %rdi
movl 0x4(%rsp), %esi
movl %r13d, %edx
movl %ebx, %ecx
callq 0x24d51a
jmp 0x2665ed
decl %r14d
decl %ebp
incl %r14d
addq $0x18, %r15
jmp 0x266512
movl %ecx, 0xc(%rax)
jmp 0x2665ed
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq