// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ExprListAppendVector
SQLITE_PRIVATE ExprList *sqlite3ExprListAppendVector(
  Parse *pParse,         /* Parsing context */
  ExprList *pList,       /* List to which to append. Might be NULL */
  IdList *pColumns,      /* List of names of LHS of the assignment */
  Expr *pExpr            /* Vector expression to be appended. Might be NULL */
){
  sqlite3 *db = pParse->db;
  int n;
  int i;
  int iFirst = pList ? pList->nExpr : 0;
  /* pColumns can only be NULL due to an OOM but an OOM will cause an
  ** exit prior to this routine being invoked */
  if( NEVER(pColumns==0) ) goto vector_append_error;
  if( pExpr==0 ) goto vector_append_error;

  /* If the RHS is a vector, then we can immediately check to see that
  ** the size of the RHS and LHS match.  But if the RHS is a SELECT,
  ** wildcards ("*") in the result set of the SELECT must be expanded before
  ** we can do the size check, so defer the size check until code generation.
  */
  if( pExpr->op!=TK_SELECT && pColumns->nId!=(n=sqlite3ExprVectorSize(pExpr)) ){
    sqlite3ErrorMsg(pParse, "%d columns assigned %d values",
                    pColumns->nId, n);
    goto vector_append_error;
  }

  for(i=0; i<pColumns->nId; i++){
    Expr *pSubExpr = sqlite3ExprForVectorField(pParse, pExpr, i);
    assert( pSubExpr!=0 || db->mallocFailed );
    assert( pSubExpr==0 || pSubExpr->iTable==0 );
    if( pSubExpr==0 ) continue;
    pSubExpr->iTable = pColumns->nId;
    pList = sqlite3ExprListAppend(pParse, pList, pSubExpr);
    if( pList ){
      assert( pList->nExpr==iFirst+i+1 );
      pList->a[pList->nExpr-1].zEName = pColumns->a[i].zName;
      pColumns->a[i].zName = 0;
    }
  }

  if( !db->mallocFailed && pExpr->op==TK_SELECT && ALWAYS(pList!=0) ){
    Expr *pFirst = pList->a[iFirst].pExpr;
    assert( pFirst!=0 );
    assert( pFirst->op==TK_SELECT_COLUMN );

    /* Store the SELECT statement in pRight so it will be deleted when
    ** sqlite3ExprListDelete() is called */
    pFirst->pRight = pExpr;
    pExpr = 0;

    /* Remember the size of the LHS in iTable so that we can check that
    ** the RHS and LHS sizes match during code generation. */
    pFirst->iTable = pColumns->nId;
  }

vector_append_error:
  sqlite3ExprUnmapAndDelete(pParse, pExpr);
  sqlite3IdListDelete(db, pColumns);
  return pList;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
testq %rsi, %rsi
je 0x25eee4
movslq (%r14), %rdx
jmp 0x25eee6
xorl %edx, %edx
movq (%r12), %r13
testq %rbx, %rbx
sete %al
testq %r15, %r15
sete %cl
orb %al, %cl
jne 0x25efc6
movq %rdx, 0x8(%rsp)
cmpb $-0x78, (%r15)
je 0x25ef1c
movl 0x8(%rbx), %ebp
movq %r15, %rdi
callq 0x26697d
cmpl %eax, %ebp
jne 0x25efb1
movq %r13, 0x10(%rsp)
xorl %r13d, %r13d
xorl %ebp, %ebp
movslq 0x8(%rbx), %rax
cmpq %rax, %rbp
jge 0x25ef83
movq %r12, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x278dd6
testq %rax, %rax
je 0x25ef7a
movl 0x8(%rbx), %ecx
movl %ecx, 0x2c(%rax)
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x25bc95
testq %rax, %rax
je 0x25ef77
movq %rax, %r14
movq (%rbx), %rax
movq (%rax,%r13), %rcx
movslq (%r14), %rdx
imulq $0x18, %rdx, %rdx
movq %rcx, -0x8(%r14,%rdx)
andq $0x0, (%rax,%r13)
jmp 0x25ef7a
xorl %r14d, %r14d
incq %rbp
addq $0x10, %r13
jmp 0x25ef26
movq 0x10(%rsp), %r13
cmpb $0x0, 0x61(%r13)
jne 0x25efc6
cmpb $-0x78, (%r15)
jne 0x25efc6
testq %r14, %r14
je 0x25efc6
imulq $0x18, 0x8(%rsp), %rcx
movq 0x8(%r14,%rcx), %rcx
movq %r15, 0x18(%rcx)
movl %eax, 0x2c(%rcx)
xorl %r15d, %r15d
jmp 0x25efc6
leaq 0x118a13(%rip), %rsi    # 0x3779cb
movq %r12, %rdi
movl %ebp, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x226dce
movq %r12, %rdi
movq %r15, %rsi
callq 0x261262
movq %r13, %rdi
movq %rbx, %rsi
callq 0x24b97f
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq