// File: /workspace/github_c_makefile_star2_O1/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 $0x58, %rsp
movl %r8d, 0x8(%rsp)
movl %ecx, 0x4(%rsp)
movq %rdx, 0x20(%rsp)
movq %rdi, 0x18(%rsp)
movl (%rsi), %r13d
testl %r13d, %r13d
jle 0x2c8477
movq %rsi, %r15
movq 0x18(%rsp), %rsi
movq 0x10(%rsi), %rax
movq %rax, 0x10(%rsp)
movl 0x8(%rsp), %edx
movl %edx, %eax
andb $0x1, %al
movl %edx, %ecx
andb $-0x3, %cl
cmpb $0x0, 0x23(%rsi)
movzbl %dl, %edx
movzbl %cl, %r12d
cmovnel %edx, %r12d
movzbl %al, %eax
movl $0x4e, %ecx
subl %eax, %ecx
movl %ecx, 0xc(%rsp)
decl 0x4(%rsp)
addq $0x1c, %r15
xorl %r14d, %r14d
movq -0x14(%r15), %rbp
testb $0x4, %r12b
je 0x2c8363
movzwl (%r15), %edx
testl %edx, %edx
je 0x2c8363
testb $0x8, %r12b
jne 0x2c8458
addl 0x4(%rsp), %edx
movq 0x20(%rsp), %rax
leal (%r14,%rax), %ecx
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %esi
jmp 0x2c844e
testb $0x2, %r12b
je 0x2c83c5
movw $0x2, 0x4c(%rsp)
leaq 0x1dac(%rip), %rax      # 0x2ca123
movq %rax, 0x30(%rsp)
leaq 0x1e82(%rip), %rax      # 0x2ca205
movq %rax, 0x38(%rsp)
movl $0x0, 0x50(%rsp)
testq %rbp, %rbp
je 0x2c83a2
leaq 0x28(%rsp), %rdi
movq %rbp, %rsi
callq 0x2ca211
cmpw $0x0, 0x4c(%rsp)
je 0x2c83c5
movq 0x20(%rsp), %rax
leal (%r14,%rax), %edx
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
callq 0x2c7eee
jmp 0x2c845e
movq 0x20(%rsp), %rax
leal (%r14,%rax), %ebx
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
movl %ebx, %edx
callq 0x2c6416
cmpl %ebx, %eax
je 0x2c845e
testb $0x1, 0x8(%rsp)
je 0x2c8441
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
cmpb $0x0, 0x61(%rcx)
leaq 0x201a8d(%rip), %rcx    # 0x4c9e88
jne 0x2c841c
movq 0x10(%rsp), %rdx
movslq 0x90(%rdx), %rcx
movq 0x88(%rdx), %rdx
leaq (%rcx,%rcx,2), %rcx
leaq (%rdx,%rcx,8), %rcx
addq $-0x18, %rcx
cmpb $0x4d, (%rcx)
jne 0x2c8441
movl 0x4(%rcx), %esi
movl 0xc(%rcx), %edx
addl %edx, %esi
incl %esi
cmpl %eax, %esi
jne 0x2c8441
movl 0x8(%rcx), %esi
addl %edx, %esi
incl %esi
cmpl %ebx, %esi
jne 0x2c8441
cmpw $0x0, 0x2(%rcx)
je 0x2c8470
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %esi
movl %eax, %edx
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x2b200c
jmp 0x2c845e
decl %r14d
decl %r13d
incl %r14d
addq $0x18, %r15
cmpl %r13d, %r14d
jl 0x2c832c
jmp 0x2c8477
incl %edx
movl %edx, 0xc(%rcx)
jmp 0x2c845e
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq