// File: /workspace/github_c_makefile_star2_O0/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3AddColumn
SQLITE_PRIVATE void sqlite3AddColumn(Parse *pParse, Token *pName){
  Table *p;
  int i;
  char *z;
  Column *pCol;
  sqlite3 *db = pParse->db;
  if( (p = pParse->pNewTable)==0 ) return;
#if SQLITE_MAX_COLUMN
  if( p->nCol+1>db->aLimit[SQLITE_LIMIT_COLUMN] ){
    sqlite3ErrorMsg(pParse, "too many columns on %s", p->zName);
    return;
  }
#endif
  z = sqlite3NameFromToken(db, pName);
  if( z==0 ) return;
  for(i=0; i<p->nCol; i++){
    if( sqlite3_stricmp(z, p->aCol[i].zName)==0 ){
      sqlite3ErrorMsg(pParse, "duplicate column name: %s", z);
      sqlite3DbFree(db, z);
      return;
    }
  }
  if( (p->nCol & 0x7)==0 ){
    Column *aNew;
    aNew = sqlite3DbRealloc(db,p->aCol,(p->nCol+8)*sizeof(p->aCol[0]));
    if( aNew==0 ){
      sqlite3DbFree(db, z);
      return;
    }
    p->aCol = aNew;
  }
  pCol = &p->aCol[p->nCol];
  memset(pCol, 0, sizeof(p->aCol[0]));
  pCol->zName = z;
  sqlite3ColumnPropertiesFromName(p, pCol);
 
  /* If there is no type specified, columns have the default affinity
  ** 'BLOB'. If there is a type specified, then sqlite3AddColumnType() will
  ** be called next to set pCol->affinity correctly.
  */
  pCol->affinity = SQLITE_AFF_BLOB;
  pCol->szEst = 1;
  p->nCol++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x220(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x5ce25
jmp 0x5cf92
movq -0x18(%rbp), %rax
movswl 0x3e(%rax), %eax
addl $0x1, %eax
movq -0x38(%rbp), %rcx
cmpl 0x70(%rcx), %eax
jle 0x5ce57
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rdx
leaq 0x4ae58(%rip), %rsi     # 0xa7ca3
movb $0x0, %al
callq 0x17840
jmp 0x5cf92
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x73560
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x5ce74
jmp 0x5cf92
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x18(%rbp), %rcx
movswl 0x3e(%rcx), %ecx
cmpl %ecx, %eax
jge 0x5cee3
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rsi
callq 0xb5c0
cmpl $0x0, %eax
jne 0x5ced6
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rdx
leaq 0x4adfd(%rip), %rsi     # 0xa7cba
movb $0x0, %al
callq 0x17840
movq -0x38(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xd260
jmp 0x5cf92
jmp 0x5ced8
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x5ce7b
movq -0x18(%rbp), %rax
movswl 0x3e(%rax), %eax
andl $0x7, %eax
cmpl $0x0, %eax
jne 0x5cf3b
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x18(%rbp), %rax
movswl 0x3e(%rax), %eax
addl $0x8, %eax
cltq
imulq $0x30, %rax, %rdx
callq 0x21e00
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x5cf2f
movq -0x38(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xd260
jmp 0x5cf92
movq -0x40(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movswq 0x3e(%rcx), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0xb2b0
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
movb $0x41, 0x29(%rax)
movq -0x30(%rbp), %rax
movb $0x1, 0x2a(%rax)
movq -0x18(%rbp), %rax
movw 0x3e(%rax), %cx
addw $0x1, %cx
movw %cx, 0x3e(%rax)
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)