// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3VdbeDisplayP4
SQLITE_PRIVATE char *sqlite3VdbeDisplayP4(sqlite3 *db, Op *pOp){
  char *zP4 = 0;
  StrAccum x;

  sqlite3StrAccumInit(&x, 0, 0, 0, SQLITE_MAX_LENGTH);
  switch( pOp->p4type ){
    case P4_KEYINFO: {
      int j;
      KeyInfo *pKeyInfo = pOp->p4.pKeyInfo;
      assert( pKeyInfo->aSortFlags!=0 );
      sqlite3_str_appendf(&x, "k(%d", pKeyInfo->nKeyField);
      for(j=0; j<pKeyInfo->nKeyField; j++){
        CollSeq *pColl = pKeyInfo->aColl[j];
        const char *zColl = pColl ? pColl->zName : "";
        if( strcmp(zColl, "BINARY")==0 ) zColl = "B";
        sqlite3_str_appendf(&x, ",%s%s%s",
               (pKeyInfo->aSortFlags[j] & KEYINFO_ORDER_DESC) ? "-" : "",
               (pKeyInfo->aSortFlags[j] & KEYINFO_ORDER_BIGNULL)? "N." : "",
               zColl);
      }
      sqlite3_str_append(&x, ")", 1);
      break;
    }
#ifdef SQLITE_ENABLE_CURSOR_HINTS
    case P4_EXPR: {
      displayP4Expr(&x, pOp->p4.pExpr);
      break;
    }
#endif
    case P4_COLLSEQ: {
      static const char *const encnames[] = {"?", "8", "16LE", "16BE"};
      CollSeq *pColl = pOp->p4.pColl;
      assert( pColl->enc>=0 && pColl->enc<4 );
      sqlite3_str_appendf(&x, "%.18s-%s", pColl->zName,
                          encnames[pColl->enc]);
      break;
    }
    case P4_FUNCDEF: {
      FuncDef *pDef = pOp->p4.pFunc;
      sqlite3_str_appendf(&x, "%s(%d)", pDef->zName, pDef->nArg);
      break;
    }
    case P4_FUNCCTX: {
      FuncDef *pDef = pOp->p4.pCtx->pFunc;
      sqlite3_str_appendf(&x, "%s(%d)", pDef->zName, pDef->nArg);
      break;
    }
    case P4_INT64: {
      sqlite3_str_appendf(&x, "%lld", *pOp->p4.pI64);
      break;
    }
    case P4_INT32: {
      sqlite3_str_appendf(&x, "%d", pOp->p4.i);
      break;
    }
    case P4_REAL: {
      sqlite3_str_appendf(&x, "%.16g", *pOp->p4.pReal);
      break;
    }
    case P4_MEM: {
      Mem *pMem = pOp->p4.pMem;
      if( pMem->flags & MEM_Str ){
        zP4 = pMem->z;
      }else if( pMem->flags & (MEM_Int|MEM_IntReal) ){
        sqlite3_str_appendf(&x, "%lld", pMem->u.i);
      }else if( pMem->flags & MEM_Real ){
        sqlite3_str_appendf(&x, "%.16g", pMem->u.r);
      }else if( pMem->flags & MEM_Null ){
        zP4 = "NULL";
      }else{
        assert( pMem->flags & MEM_Blob );
        zP4 = "(blob)";
      }
      break;
    }
#ifndef SQLITE_OMIT_VIRTUALTABLE
    case P4_VTAB: {
      sqlite3_vtab *pVtab = pOp->p4.pVtab->pVtab;
      sqlite3_str_appendf(&x, "vtab:%p", pVtab);
      break;
    }
#endif
    case P4_INTARRAY: {
      u32 i;
      u32 *ai = pOp->p4.ai;
      u32 n = ai[0];   /* The first element of an INTARRAY is always the
                       ** count of the number of elements to follow */
      for(i=1; i<=n; i++){
        sqlite3_str_appendf(&x, "%c%u", (i==1 ? '[' : ','), ai[i]);
      }
      sqlite3_str_append(&x, "]", 1);
      break;
    }
    case P4_SUBPROGRAM: {
      zP4 = "program";
      break;
    }
    case P4_DYNBLOB:
    case P4_ADVANCE: {
      break;
    }
    case P4_TABLE: {
      zP4 = pOp->p4.pTab->zName;
      break;
    }
    default: {
      zP4 = pOp->p4.z;
    }
  }
  if( zP4 ) sqlite3_str_appendall(&x, zP4);
  if( (x.accError & SQLITE_NOMEM)!=0 ){
    sqlite3OomFault(db);
  }
  return sqlite3StrAccumFinish(&x);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
xorl %ecx, %ecx
movl %ecx, %edx
leaq -0x38(%rbp), %rdi
movl $0x3b9aca00, %r8d       # imm = 0x3B9ACA00
movq %rdx, %rsi
callq 0x3c36a0
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %eax
addl $0x11, %eax
movl %eax, %ecx
movq %rcx, -0xa0(%rbp)
subl $0xf, %eax
ja 0x3f99b8
movq -0xa0(%rbp), %rax
leaq 0x1ab76c(%rip), %rcx    # 0x5a4d48
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movzwl 0x6(%rax), %edx
leaq -0x38(%rbp), %rdi
leaq 0x1b1c94(%rip), %rsi    # 0x5ab298
movb $0x0, %al
callq 0x3c3ac0
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x48(%rbp), %rcx
movzwl 0x6(%rcx), %ecx
cmpl %ecx, %eax
jge 0x3f96fc
movq -0x48(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movq 0x20(%rax,%rcx,8), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x3f964d
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xa8(%rbp)
jmp 0x3f965d
leaq 0x1a3fd4(%rip), %rax    # 0x59d628
movq %rax, -0xa8(%rbp)
jmp 0x3f965d
movq -0xa8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
leaq 0x1b1c2a(%rip), %rsi    # 0x5ab29d
callq 0x19980
cmpl $0x0, %eax
jne 0x3f9688
leaq 0x1a429d(%rip), %rax    # 0x59d921
movq %rax, -0x58(%rbp)
movq -0x48(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x3c(%rbp), %rcx
movzbl (%rax,%rcx), %ecx
andl $0x1, %ecx
leaq 0x1a3f86(%rip), %rdx    # 0x59d628
leaq 0x1a1c7e(%rip), %rax    # 0x59b327
cmpl $0x0, %ecx
cmovneq %rax, %rdx
movq -0x48(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x3c(%rbp), %rcx
movzbl (%rax,%rcx), %esi
andl $0x2, %esi
leaq 0x1a3f5e(%rip), %rcx    # 0x59d628
leaq 0x19935f(%rip), %rax    # 0x592a30
cmpl $0x0, %esi
cmovneq %rax, %rcx
movq -0x58(%rbp), %r8
leaq -0x38(%rbp), %rdi
leaq 0x1b1bbd(%rip), %rsi    # 0x5ab2a4
movb $0x0, %al
callq 0x3c3ac0
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x3f9612
leaq -0x38(%rbp), %rdi
leaq 0x1b3e73(%rip), %rsi    # 0x5ad57a
movl $0x1, %edx
callq 0x3c2d40
jmp 0x3f99c4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq (%rax), %rdx
movq -0x60(%rbp), %rax
movzbl 0x8(%rax), %eax
movl %eax, %ecx
leaq 0x23ff56(%rip), %rax    # 0x639690
movq (%rax,%rcx,8), %rcx
leaq -0x38(%rbp), %rdi
leaq 0x1b1b6d(%rip), %rsi    # 0x5ab2b6
movb $0x0, %al
callq 0x3c3ac0
jmp 0x3f99c4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq 0x38(%rax), %rdx
movq -0x68(%rbp), %rax
movsbl (%rax), %ecx
leaq -0x38(%rbp), %rdi
leaq 0x1b1b44(%rip), %rsi    # 0x5ab2bf
movb $0x0, %al
callq 0x3c3ac0
jmp 0x3f99c4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq 0x38(%rax), %rdx
movq -0x70(%rbp), %rax
movsbl (%rax), %ecx
leaq -0x38(%rbp), %rdi
leaq 0x1b1b0e(%rip), %rsi    # 0x5ab2bf
movb $0x0, %al
callq 0x3c3ac0
jmp 0x3f99c4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdx
leaq -0x38(%rbp), %rdi
leaq 0x1b2af2(%rip), %rsi    # 0x5ac2c5
movb $0x0, %al
callq 0x3c3ac0
jmp 0x3f99c4
movq -0x10(%rbp), %rax
movl 0x10(%rax), %edx
leaq -0x38(%rbp), %rdi
leaq 0x1a3cb1(%rip), %rsi    # 0x59d4a2
movb $0x0, %al
callq 0x3c3ac0
jmp 0x3f99c4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movsd (%rax), %xmm0
leaq -0x38(%rbp), %rdi
leaq 0x1b1ab2(%rip), %rsi    # 0x5ab2c6
movb $0x1, %al
callq 0x3c3ac0
jmp 0x3f99c4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movzwl 0x8(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x3f984d
movq -0x78(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x3f98d2
movq -0x78(%rbp), %rax
movzwl 0x8(%rax), %eax
andl $0x24, %eax
cmpl $0x0, %eax
je 0x3f9878
movq -0x78(%rbp), %rax
movq (%rax), %rdx
leaq -0x38(%rbp), %rdi
leaq 0x1b2a56(%rip), %rsi    # 0x5ac2c5
movb $0x0, %al
callq 0x3c3ac0
jmp 0x3f98d0
movq -0x78(%rbp), %rax
movzwl 0x8(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x3f98a4
movq -0x78(%rbp), %rax
movsd (%rax), %xmm0
leaq -0x38(%rbp), %rdi
leaq 0x1b1a2b(%rip), %rsi    # 0x5ab2c6
movb $0x1, %al
callq 0x3c3ac0
jmp 0x3f98ce
movq -0x78(%rbp), %rax
movzwl 0x8(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3f98c1
leaq 0x19fefb(%rip), %rax    # 0x5997b6
movq %rax, -0x18(%rbp)
jmp 0x3f98cc
leaq 0x1b1a04(%rip), %rax    # 0x5ab2cc
movq %rax, -0x18(%rbp)
jmp 0x3f98ce
jmp 0x3f98d0
jmp 0x3f98d2
jmp 0x3f99c4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdx
leaq -0x38(%rbp), %rdi
leaq 0x1b19dd(%rip), %rsi    # 0x5ab2d3
movb $0x0, %al
callq 0x3c3ac0
jmp 0x3f99c4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x94(%rbp)
movl $0x1, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x94(%rbp), %eax
ja 0x3f9981
movl -0x84(%rbp), %ecx
movl $0x2c, %edx
movl $0x5b, %eax
cmpl $0x1, %ecx
cmovel %eax, %edx
movq -0x90(%rbp), %rax
movl -0x84(%rbp), %ecx
movl (%rax,%rcx,4), %ecx
leaq -0x38(%rbp), %rdi
leaq 0x1b1972(%rip), %rsi    # 0x5ab2db
movb $0x0, %al
callq 0x3c3ac0
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x3f992a
leaq -0x38(%rbp), %rdi
leaq 0x1a19d3(%rip), %rsi    # 0x59b35f
movl $0x1, %edx
callq 0x3c2d40
jmp 0x3f99c4
leaq 0x1b3100(%rip), %rax    # 0x5aca9f
movq %rax, -0x18(%rbp)
jmp 0x3f99c4
jmp 0x3f99c4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x3f99c4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x3f99d8
movq -0x18(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x3c3170
movzbl -0x1c(%rbp), %eax
andl $0x7, %eax
cmpl $0x0, %eax
je 0x3f99ed
movq -0x8(%rbp), %rdi
callq 0x3c8ba0
leaq -0x38(%rbp), %rdi
callq 0x3c3490
addq $0xb0, %rsp
popq %rbp
retq
nop