// File: /workspace/github_c_makefile_star2_O0/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: generateColumnNames
static void generateColumnNames(
  Parse *pParse,      /* Parser context */
  SrcList *pTabList,  /* List of tables */
  ExprList *pEList    /* Expressions defining the result set */
){
  Vdbe *v = pParse->pVdbe;
  int i, j;
  sqlite3 *db = pParse->db;
  int fullNames, shortNames;

#ifndef SQLITE_OMIT_EXPLAIN
  /* If this is an EXPLAIN, skip this step */
  if( pParse->explain ){
    return;
  }
#endif

  if( pParse->colNamesSet || db->mallocFailed ) return;
  assert( v!=0 );
  assert( pTabList!=0 );
  pParse->colNamesSet = 1;
  fullNames = (db->flags & SQLITE_FullColNames)!=0;
  shortNames = (db->flags & SQLITE_ShortColNames)!=0;
  sqlite3VdbeSetNumCols(v, pEList->nExpr);
  for(i=0; i<pEList->nExpr; i++){
    Expr *p;
    p = pEList->a[i].pExpr;
    if( NEVER(p==0) ) continue;
    if( pEList->a[i].zName ){
      char *zName = pEList->a[i].zName;
      sqlite3VdbeSetColName(v, i, COLNAME_NAME, zName, SQLITE_TRANSIENT);
    }else if( p->op==TK_COLUMN || p->op==TK_AGG_COLUMN ){
      Table *pTab;
      char *zCol;
      int iCol = p->iColumn;
      for(j=0; ALWAYS(j<pTabList->nSrc); j++){
        if( pTabList->a[j].iCursor==p->iTable ) break;
      }
      assert( j<pTabList->nSrc );
      pTab = pTabList->a[j].pTab;
      if( iCol<0 ) iCol = pTab->iPKey;
      assert( iCol==-1 || (iCol>=0 && iCol<pTab->nCol) );
      if( iCol<0 ){
        zCol = "rowid";
      }else{
        zCol = pTab->aCol[iCol].zName;
      }
      if( !shortNames && !fullNames ){
        sqlite3VdbeSetColName(v, i, COLNAME_NAME, 
            sqlite3DbStrDup(db, pEList->a[i].zSpan), SQLITE_DYNAMIC);
      }else if( fullNames ){
        char *zName = 0;
        zName = sqlite3MPrintf(db, "%s.%s", pTab->zName, zCol);
        sqlite3VdbeSetColName(v, i, COLNAME_NAME, zName, SQLITE_DYNAMIC);
      }else{
        sqlite3VdbeSetColName(v, i, COLNAME_NAME, zCol, SQLITE_TRANSIENT);
      }
    }else{
      const char *z = pEList->a[i].zSpan;
      z = z==0 ? sqlite3MPrintf(db, "column%d", i+1) : sqlite3DbStrDup(db, z);
      sqlite3VdbeSetColName(v, i, COLNAME_NAME, z, SQLITE_DYNAMIC);
    }
  }
  generateColumnTypes(pParse, pTabList, pEList);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
cmpb $0x0, 0x1ed(%rax)
je 0x80cb0
jmp 0x80fc2
movq -0x8(%rbp), %rax
movzbl 0x1c(%rax), %eax
cmpl $0x0, %eax
jne 0x80cca
movq -0x30(%rbp), %rax
movzbl 0x51(%rax), %eax
cmpl $0x0, %eax
je 0x80ccf
jmp 0x80fc2
movq -0x8(%rbp), %rax
movb $0x1, 0x1c(%rax)
movq -0x30(%rbp), %rax
movl 0x2c(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x34(%rbp)
movq -0x30(%rbp), %rax
movl 0x2c(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rax
movl (%rax), %esi
callq 0x58370
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x80fb1
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x80d52
jmp 0x80fa3
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
cmpq $0x0, 0x8(%rax)
je 0x80da5
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x48(%rbp), %rcx
xorl %edx, %edx
movq $-0x1, %r8
callq 0x58440
jmp 0x80fa1
movq -0x40(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x98, %eax
je 0x80dc5
movq -0x40(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x9a, %eax
jne 0x80f24
movq -0x40(%rbp), %rax
movswl 0x30(%rax), %eax
movl %eax, -0x5c(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x80e10
movq -0x10(%rbp), %rax
addq $0x8, %rax
movslq -0x28(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movl 0x44(%rax), %eax
movq -0x40(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
jne 0x80e03
jmp 0x80e10
jmp 0x80e05
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x80dd7
movq -0x10(%rbp), %rax
addq $0x8, %rax
movslq -0x28(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movq %rax, -0x50(%rbp)
cmpl $0x0, -0x5c(%rbp)
jge 0x80e3c
movq -0x50(%rbp), %rax
movswl 0x3c(%rax), %eax
movl %eax, -0x5c(%rbp)
cmpl $0x0, -0x5c(%rbp)
jge 0x80e4f
leaq 0x2582c(%rip), %rax     # 0xa6675
movq %rax, -0x58(%rbp)
jmp 0x80e69
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x5c(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
cmpl $0x0, -0x38(%rbp)
jne 0x80ebd
cmpl $0x0, -0x34(%rbp)
jne 0x80ebd
movq -0x20(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x74(%rbp)
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rsi
callq 0x15800
movq -0x80(%rbp), %rdi
movl -0x74(%rbp), %esi
movq %rax, %rcx
xorl %edx, %edx
leaq -0x731a6(%rip), %r8     # 0xdd10
callq 0x58440
jmp 0x80f22
cmpl $0x0, -0x34(%rbp)
je 0x80f07
movq $0x0, -0x68(%rbp)
movq -0x30(%rbp), %rdi
movq -0x50(%rbp), %rax
movq (%rax), %rdx
movq -0x58(%rbp), %rcx
leaq 0x24c38(%rip), %rsi     # 0xa5b19
movb $0x0, %al
callq 0x17940
movq %rax, -0x68(%rbp)
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x68(%rbp), %rcx
xorl %edx, %edx
leaq -0x731f0(%rip), %r8     # 0xdd10
callq 0x58440
jmp 0x80f20
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x58(%rbp), %rcx
xorl %edx, %edx
movq $-0x1, %r8
callq 0x58440
jmp 0x80f22
jmp 0x80f9f
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x70(%rbp)
jne 0x80f67
movq -0x30(%rbp), %rdi
movl -0x24(%rbp), %edx
addl $0x1, %edx
leaq 0x275f0(%rip), %rsi     # 0xa8547
movb $0x0, %al
callq 0x17940
movq %rax, -0x88(%rbp)
jmp 0x80f7b
movq -0x30(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x15800
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x70(%rbp), %rcx
xorl %edx, %edx
leaq -0x7328a(%rip), %r8     # 0xdd10
callq 0x58440
jmp 0x80fa1
jmp 0x80fa3
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x80d1d
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x8f8d0
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax,%rax)