// File: /workspace/github_c_makefile_star2_O3/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
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r15
testq %rdi, %rdi
setne %al
testq %rsi, %rsi
setne %cl
testb %cl, %al
jne 0x5330c
xorl %r12d, %r12d
cmpq %r15, %rbx
setne %r12b
addl %r12d, %r12d
jmp 0x53431
movl 0x4(%r15), %r14d
movl 0x4(%rbx), %r13d
movl %r13d, %ecx
orl %r14d, %ecx
btl $0xa, %ecx
jb 0x533cf
movzbl (%r15), %r8d
movb (%rbx), %al
cmpb %al, %r8b
jne 0x533e7
movl %r8d, %eax
orl $0x2, %eax
cmpl $0x9a, %eax
jne 0x53443
xorl %r14d, %r13d
movl $0x2, %r12d
testb $0x10, %r13b
jne 0x53431
btl $0xe, %ecx
jb 0x533ca
btl $0xb, %ecx
jb 0x53431
movl %r8d, -0x2c(%rbp)
movl %ecx, %r13d
movq 0x10(%r15), %rdi
movq 0x10(%rbx), %rsi
movl %edx, %r14d
callq 0x532d3
testl %eax, %eax
jne 0x53431
movq 0x18(%r15), %rdi
movq 0x18(%rbx), %rsi
movl %r14d, %edx
callq 0x532d3
testl %eax, %eax
jne 0x53431
movq 0x20(%r15), %rdi
movq 0x20(%rbx), %rsi
movl %r14d, %edx
callq 0x53807
testl %eax, %eax
jne 0x53431
shrl $0xd, %r13d
andl $0x1, %r13d
cmpl $0x61, -0x2c(%rbp)
sete %al
orb %r13b, %al
je 0x534ac
xorl %r12d, %r12d
jmp 0x53431
andl %r13d, %r14d
btl $0xa, %r14d
jae 0x5342b
movl 0x8(%r15), %eax
xorl %r12d, %r12d
cmpl 0x8(%rbx), %eax
jne 0x5342b
jmp 0x53431
cmpl $0x5f, %r8d
jne 0x53410
movq 0x10(%r15), %rdi
movq %rbx, %rsi
movl %edx, %r14d
movl %eax, %r13d
callq 0x532d3
movl %r14d, %edx
movl $0x1, %r12d
cmpl $0x2, %eax
movl %r13d, %eax
jb 0x53431
cmpb $0x5f, %al
jne 0x5342b
movq 0x10(%rbx), %rsi
movq %r15, %rdi
callq 0x532d3
movl $0x1, %r12d
cmpl $0x2, %eax
jb 0x53431
movl $0x2, %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x53344
movl %ecx, -0x30(%rbp)
movl %edx, -0x34(%rbp)
movq 0x8(%rbx), %rsi
movl %r8d, -0x2c(%rbp)
cmpl $0x97, %r8d
jne 0x53485
callq 0xa400
movl $0x2, %r12d
testl %eax, %eax
movl -0x34(%rbp), %edx
movl -0x30(%rbp), %ecx
movl -0x2c(%rbp), %r8d
jne 0x53431
jmp 0x53344
callq 0xa2c0
testl %eax, %eax
movl -0x34(%rbp), %edx
movl -0x30(%rbp), %ecx
movl -0x2c(%rbp), %r8d
je 0x53344
xorl %r12d, %r12d
cmpl $0x5f, %r8d
setne %r12b
incl %r12d
jmp 0x53431
movzwl 0x30(%r15), %eax
cmpw 0x30(%rbx), %ax
jne 0x53431
movl 0x2c(%r15), %ecx
movl 0x2c(%rbx), %eax
cmpl %eax, %ecx
je 0x533ca
cmpl %r14d, %ecx
setne %cl
testl %eax, %eax
setns %al
orb %cl, %al
je 0x533ca
jmp 0x53431