// File: /workspace/github_c_makefile_star2_O0/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
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x708f1
cmpq $0x0, -0x18(%rbp)
jne 0x7090e
movq -0x18(%rbp), %rdx
movq -0x10(%rbp), %rsi
movl $0x2, %eax
xorl %ecx, %ecx
cmpq %rsi, %rdx
cmovel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x70bc0
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x18(%rbp), %rcx
orl 0x4(%rcx), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x7096c
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x18(%rbp), %rcx
andl 0x4(%rcx), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x70960
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x18(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jne 0x70960
movl $0x0, -0x4(%rbp)
jmp 0x70bc0
movl $0x2, -0x4(%rbp)
jmp 0x70bc0
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x709ec
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5f, %eax
jne 0x709af
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
callq 0x708d0
cmpl $0x2, %eax
jge 0x709af
movl $0x1, -0x4(%rbp)
jmp 0x70bc0
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5f, %eax
jne 0x709e0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x1c(%rbp), %edx
callq 0x708d0
cmpl $0x2, %eax
jge 0x709e0
movl $0x1, -0x4(%rbp)
jmp 0x70bc0
movl $0x2, -0x4(%rbp)
jmp 0x70bc0
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x98, %eax
je 0x70a8a
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x9a, %eax
je 0x70a8a
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x70a8a
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x97, %eax
jne 0x70a4d
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0xb5c0
cmpl $0x0, %eax
je 0x70a4b
movl $0x2, -0x4(%rbp)
jmp 0x70bc0
jmp 0x70a88
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0xb3a0
cmpl $0x0, %eax
je 0x70a86
movq -0x10(%rbp), %rax
movzbl (%rax), %edx
movl $0x2, %eax
movl $0x1, %ecx
cmpl $0x5f, %edx
cmovel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x70bc0
jmp 0x70a88
jmp 0x70a8a
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x10, %eax
movq -0x18(%rbp), %rcx
movl 0x4(%rcx), %ecx
andl $0x10, %ecx
cmpl %ecx, %eax
je 0x70aae
movl $0x2, -0x4(%rbp)
jmp 0x70bc0
movl -0x20(%rbp), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
jne 0x70bb9
movl -0x20(%rbp), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x70ad8
movl $0x2, -0x4(%rbp)
jmp 0x70bc0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x1c(%rbp), %edx
callq 0x708d0
cmpl $0x0, %eax
je 0x70b01
movl $0x2, -0x4(%rbp)
jmp 0x70bc0
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x1c(%rbp), %edx
callq 0x708d0
cmpl $0x0, %eax
je 0x70b2a
movl $0x2, -0x4(%rbp)
jmp 0x70bc0
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x1c(%rbp), %edx
callq 0x712b0
cmpl $0x0, %eax
je 0x70b50
movl $0x2, -0x4(%rbp)
jmp 0x70bc0
movl -0x20(%rbp), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
jne 0x70bb7
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x61, %eax
je 0x70bb7
movq -0x10(%rbp), %rax
movswl 0x30(%rax), %eax
movq -0x18(%rbp), %rcx
movswl 0x30(%rcx), %ecx
cmpl %ecx, %eax
je 0x70b86
movl $0x2, -0x4(%rbp)
jmp 0x70bc0
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movq -0x18(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
je 0x70bb5
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
cmpl -0x1c(%rbp), %eax
jne 0x70bac
movq -0x18(%rbp), %rax
cmpl $0x0, 0x2c(%rax)
jl 0x70bb5
movl $0x2, -0x4(%rbp)
jmp 0x70bc0
jmp 0x70bb7
jmp 0x70bb9
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)