// File: /workspace/github_c_makefile_star2_O1/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3VdbeChangeP4
SQLITE_PRIVATE void sqlite3VdbeChangeP4(Vdbe *p, int addr, const char *zP4, int n){
  Op *pOp;
  sqlite3 *db;
  assert( p!=0 );
  db = p->db;
  assert( p->magic==VDBE_MAGIC_INIT );
  if( p->aOp==0 || db->mallocFailed ){
    if( n!=P4_VTAB ){
      freeP4(db, n, (void*)*(char**)&zP4);
    }
    return;
  }
  assert( p->nOp>0 );
  assert( addr<p->nOp );
  if( addr<0 ){
    addr = p->nOp - 1;
  }
  pOp = &p->aOp[addr];
  assert( pOp->p4type==P4_NOTUSED
       || pOp->p4type==P4_INT32
       || pOp->p4type==P4_KEYINFO );
  freeP4(db, pOp->p4type, pOp->p4.p);
  pOp->p4.p = 0;
  if( n==P4_INT32 ){
    /* Note: this cast is safe, because the origin data point was an int
    ** that was cast to a (const char *). */
    pOp->p4.i = SQLITE_PTR_TO_INT(zP4);
    pOp->p4type = P4_INT32;
  }else if( zP4==0 ){
    pOp->p4.p = 0;
    pOp->p4type = P4_NOTUSED;
  }else if( n==P4_KEYINFO ){
    pOp->p4.p = (void*)zP4;
    pOp->p4type = P4_KEYINFO;
#ifdef SQLITE_ENABLE_CURSOR_HINTS
  }else if( n==P4_EXPR ){
    /* Responsibility for deleting the Expr tree is handed over to the
    ** VDBE by this operation.  The caller should have already invoked
    ** sqlite3ExprDup() or whatever other routine is needed to make a 
    ** private copy of the tree. */
    pOp->p4.pExpr = (Expr*)zP4;
    pOp->p4type = P4_EXPR;
#endif
  }else if( n==P4_VTAB ){
    pOp->p4.p = (void*)zP4;
    pOp->p4type = P4_VTAB;
    sqlite3VtabLock((VTable *)zP4);
    assert( ((VTable *)zP4)->db==p->db );
  }else if( n<0 ){
    pOp->p4.p = (void*)zP4;
    pOp->p4type = (signed char)n;
  }else{
    if( n==0 ) n = sqlite3Strlen30(zP4);
    pOp->p4.z = sqlite3DbStrNDup(p->db, zP4, n);
    pOp->p4type = P4_DYNAMIC;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %r14d
movq %rdx, %rbx
movq %rdi, %r15
movq (%rdi), %rdi
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x14adf
cmpb $0x0, 0x51(%rdi)
je 0x14afc
cmpl $-0xa, %r14d
je 0x14bd9
movl %r14d, %esi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x288fd
testl %esi, %esi
jns 0x14b06
movl 0x3c(%r15), %esi
decl %esi
movslq %esi, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %r12
movsbl 0x1(%r12), %esi
movq 0x10(%r12), %rdx
callq 0x288fd
movq $0x0, 0x10(%r12)
cmpl $-0xe, %r14d
jne 0x14b40
movl %ebx, 0x10(%r12)
movb $-0xe, 0x1(%r12)
jmp 0x14bd9
testq %rbx, %rbx
je 0x14b5e
cmpl $-0xa, %r14d
je 0x14b6f
cmpl $-0x6, %r14d
jne 0x14b7f
movq %rbx, 0x10(%r12)
movb $-0x6, 0x1(%r12)
jmp 0x14bd9
movq $0x0, 0x10(%r12)
movb $0x0, 0x1(%r12)
jmp 0x14bd9
movq %rbx, 0x10(%r12)
movb $-0xa, 0x1(%r12)
incl 0x18(%rbx)
jmp 0x14bd9
testl %r14d, %r14d
js 0x14bcf
jne 0x14b98
movq %rbx, %rdi
callq 0xa190
movq %rax, %r14
andl $0x3fffffff, %r14d      # imm = 0x3FFFFFFF
movq (%r15), %rdi
movl %r14d, %r14d
leaq 0x1(%r14), %rsi
callq 0x144ee
movq %rax, %r15
testq %rax, %rax
je 0x14bc2
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xa310
movb $0x0, (%r15,%r14)
movq %r15, 0x10(%r12)
movb $-0x1, 0x1(%r12)
jmp 0x14bd9
movq %rbx, 0x10(%r12)
movb %r14b, 0x1(%r12)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq