// File: /workspace/github_c_makefile_star2_O2/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3ExprCompare
SQLITE_PRIVATE int sqlite3ExprCompare(Expr *pA, Expr *pB, int iTab){
  u32 combinedFlags;
  if( pA==0 || pB==0 ){
    return pB==pA ? 0 : 2;
  }
  combinedFlags = pA->flags | pB->flags;
  if( combinedFlags & EP_IntValue ){
    if( (pA->flags&pB->flags&EP_IntValue)!=0 && pA->u.iValue==pB->u.iValue ){
      return 0;
    }
    return 2;
  }
  if( pA->op!=pB->op ){
    if( pA->op==TK_COLLATE && sqlite3ExprCompare(pA->pLeft, pB, iTab)<2 ){
      return 1;
    }
    if( pB->op==TK_COLLATE && sqlite3ExprCompare(pA, pB->pLeft, iTab)<2 ){
      return 1;
    }
    return 2;
  }
  if( pA->op!=TK_COLUMN && pA->op!=TK_AGG_COLUMN && pA->u.zToken ){
    if( pA->op==TK_FUNCTION ){
      if( sqlite3StrICmp(pA->u.zToken,pB->u.zToken)!=0 ) return 2;
    }else if( strcmp(pA->u.zToken,pB->u.zToken)!=0 ){
      return pA->op==TK_COLLATE ? 1 : 2;
    }
  }
  if( (pA->flags & EP_Distinct)!=(pB->flags & EP_Distinct) ) return 2;
  if( ALWAYS((combinedFlags & EP_TokenOnly)==0) ){
    if( combinedFlags & EP_xIsSelect ) return 2;
    if( sqlite3ExprCompare(pA->pLeft, pB->pLeft, iTab) ) return 2;
    if( sqlite3ExprCompare(pA->pRight, pB->pRight, iTab) ) return 2;
    if( sqlite3ExprListCompare(pA->x.pList, pB->x.pList, iTab) ) return 2;
    if( ALWAYS((combinedFlags & EP_Reduced)==0) && pA->op!=TK_STRING ){
      if( pA->iColumn!=pB->iColumn ) return 2;
      if( pA->iTable!=pB->iTable 
       && (pA->iTable!=iTab || NEVER(pB->iTable>=0)) ) return 2;
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r12
testq %rdi, %rdi
setne %al
testq %rsi, %rsi
setne %cl
testb %cl, %al
jne 0x4cf15
xorl %ebx, %ebx
cmpq %r12, %r14
setne %bl
addl %ebx, %ebx
jmp 0x4d069
movl 0x4(%r12), %ebx
movl 0x4(%r14), %r13d
movl %r13d, %r15d
orl %ebx, %r15d
btl $0xa, %r15d
jb 0x4cfde
movzbl (%r12), %ecx
movb (%r14), %al
cmpb %al, %cl
jne 0x4cff6
movl %ecx, %eax
orl $0x2, %eax
cmpl $0x9a, %eax
jne 0x4d033
xorl %ebx, %r13d
pushq $0x2
popq %rbx
testb $0x10, %r13b
jne 0x4d069
btl $0xe, %r15d
jb 0x4cfd7
btl $0xb, %r15d
jb 0x4d069
movl %ecx, -0x2c(%rbp)
movq 0x10(%r12), %rdi
movq 0x10(%r14), %rsi
movl %edx, %r13d
callq 0x4cee2
testl %eax, %eax
jne 0x4d069
movq 0x18(%r12), %rdi
movq 0x18(%r14), %rsi
movl %r13d, %edx
callq 0x4cee2
testl %eax, %eax
jne 0x4d069
movq 0x20(%r12), %rdi
movq 0x20(%r14), %rsi
movl %r13d, %edx
callq 0x4d42a
testl %eax, %eax
jne 0x4d069
shrl $0xd, %r15d
andl $0x1, %r15d
cmpl $0x61, -0x2c(%rbp)
sete %al
orb %r15b, %al
je 0x4d099
xorl %ebx, %ebx
jmp 0x4d069
andl %r13d, %ebx
btl $0xa, %ebx
jae 0x4d066
movl 0x8(%r12), %eax
xorl %ebx, %ebx
cmpl 0x8(%r14), %eax
jne 0x4d066
jmp 0x4d069
pushq $0x1
popq %rbx
cmpl $0x5f, %ecx
jne 0x4d01c
movq 0x10(%r12), %rdi
movq %r14, %rsi
movl %edx, %r15d
movl %eax, %r13d
callq 0x4cee2
movl %r15d, %edx
cmpl $0x2, %eax
movl %r13d, %eax
jb 0x4d069
cmpb $0x5f, %al
jne 0x4d066
movq 0x10(%r14), %rsi
movq %r12, %rdi
callq 0x4cee2
cmpl $0x2, %eax
jae 0x4d066
jmp 0x4d069
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0x4cf4f
movl %edx, -0x30(%rbp)
movq 0x8(%r14), %rsi
movl %ecx, -0x2c(%rbp)
cmpl $0x97, %ecx
jne 0x4d07a
callq 0xa4f0
testl %eax, %eax
movl -0x30(%rbp), %edx
movl -0x2c(%rbp), %ecx
je 0x4cf4f
pushq $0x2
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xa330
testl %eax, %eax
movl -0x30(%rbp), %edx
movl -0x2c(%rbp), %ecx
je 0x4cf4f
xorl %ebx, %ebx
cmpl $0x5f, %ecx
setne %bl
incl %ebx
jmp 0x4d069
movzwl 0x30(%r12), %eax
cmpw 0x30(%r14), %ax
jne 0x4d069
movl 0x2c(%r12), %ecx
movl 0x2c(%r14), %eax
cmpl %eax, %ecx
je 0x4cfd7
cmpl %r13d, %ecx
setne %cl
testl %eax, %eax
setns %al
orb %cl, %al
je 0x4cfd7
jmp 0x4d069