// File: /workspace/github_c_makefile_star2_O0/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: vdbeCompareMemString
static int vdbeCompareMemString(
  const Mem *pMem1,
  const Mem *pMem2,
  const CollSeq *pColl,
  u8 *prcErr                      /* If an OOM occurs, set to SQLITE_NOMEM */
){
  if( pMem1->enc==pColl->enc ){
    /* The strings are already in the correct encoding.  Call the
     ** comparison function directly */
    return pColl->xCmp(pColl->pUser,pMem1->n,pMem1->z,pMem2->n,pMem2->z);
  }else{
    int rc;
    const void *v1, *v2;
    int n1, n2;
    Mem c1;
    Mem c2;
    sqlite3VdbeMemInit(&c1, pMem1->db, MEM_Null);
    sqlite3VdbeMemInit(&c2, pMem1->db, MEM_Null);
    sqlite3VdbeMemShallowCopy(&c1, pMem1, MEM_Ephem);
    sqlite3VdbeMemShallowCopy(&c2, pMem2, MEM_Ephem);
    v1 = sqlite3ValueText((sqlite3_value*)&c1, pColl->enc);
    n1 = v1==0 ? 0 : c1.n;
    v2 = sqlite3ValueText((sqlite3_value*)&c2, pColl->enc);
    n2 = v2==0 ? 0 : c2.n;
    rc = pColl->xCmp(pColl->pUser, n1, v1, n2, v2);
    sqlite3VdbeMemRelease(&c1);
    sqlite3VdbeMemRelease(&c2);
    if( (v1==0 || v2==0) && prcErr ) *prcErr = SQLITE_NOMEM;
    return rc;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movzbl 0xa(%rax), %eax
movq -0x20(%rbp), %rcx
movzbl 0x8(%rcx), %ecx
cmpl %ecx, %eax
jne 0x48577
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rdi
movq -0x10(%rbp), %rcx
movl 0xc(%rcx), %esi
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rdx
movq -0x18(%rbp), %rcx
movl 0xc(%rcx), %ecx
movq -0x18(%rbp), %r8
movq 0x10(%r8), %r8
callq *%rax
movl %eax, -0x4(%rbp)
jmp 0x4869d
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
leaq -0x80(%rbp), %rdi
movl $0x1, %edx
callq 0x470a0
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
leaq -0xb8(%rbp), %rdi
movl $0x1, %edx
callq 0x470a0
movq -0x10(%rbp), %rsi
leaq -0x80(%rbp), %rdi
movl $0x1000, %edx           # imm = 0x1000
callq 0x42aa0
movq -0x18(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
movl $0x1000, %edx           # imm = 0x1000
callq 0x42aa0
movq -0x20(%rbp), %rax
leaq -0x80(%rbp), %rdi
movzbl 0x8(%rax), %esi
callq 0x14400
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x485f3
xorl %eax, %eax
movl %eax, -0xbc(%rbp)
jmp 0x485fc
movl -0x74(%rbp), %eax
movl %eax, -0xbc(%rbp)
movl -0xbc(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x20(%rbp), %rax
leaq -0xb8(%rbp), %rdi
movzbl 0x8(%rax), %esi
callq 0x14400
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x4862e
xorl %eax, %eax
movl %eax, -0xc0(%rbp)
jmp 0x4863a
movl -0xac(%rbp), %eax
movl %eax, -0xc0(%rbp)
movl -0xc0(%rbp), %eax
movl %eax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rdi
movl -0x44(%rbp), %esi
movq -0x38(%rbp), %rdx
movl -0x48(%rbp), %ecx
movq -0x40(%rbp), %r8
callq *%rax
movl %eax, -0x2c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x13f90
leaq -0xb8(%rbp), %rdi
callq 0x13f90
cmpq $0x0, -0x38(%rbp)
je 0x48689
cmpq $0x0, -0x40(%rbp)
jne 0x48697
cmpq $0x0, -0x28(%rbp)
je 0x48697
movq -0x28(%rbp), %rax
movb $0x7, (%rax)
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax)