// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ExprCompare
SQLITE_PRIVATE int sqlite3ExprCompare(Parse *pParse, Expr *pA, Expr *pB, int iTab){
  u32 combinedFlags;
  if( pA==0 || pB==0 ){
    return pB==pA ? 0 : 2;
  }
  if( pParse && pA->op==TK_VARIABLE && exprCompareVariable(pParse, pA, pB) ){
    return 0;
  }
  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 || pA->op==TK_RAISE ){
    if( pA->op==TK_COLLATE && sqlite3ExprCompare(pParse, pA->pLeft,pB,iTab)<2 ){
      return 1;
    }
    if( pB->op==TK_COLLATE && sqlite3ExprCompare(pParse, 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 || pA->op==TK_AGG_FUNCTION ){
      if( sqlite3StrICmp(pA->u.zToken,pB->u.zToken)!=0 ) return 2;
#ifndef SQLITE_OMIT_WINDOWFUNC
      assert( pA->op==pB->op );
      if( ExprHasProperty(pA,EP_WinFunc)!=ExprHasProperty(pB,EP_WinFunc) ){
        return 2;
      }
      if( ExprHasProperty(pA,EP_WinFunc) ){
        if( sqlite3WindowCompare(pParse, pA->y.pWin, pB->y.pWin, 1)!=0 ){
          return 2;
        }
      }
#endif
    }else if( pA->op==TK_NULL ){
      return 0;
    }else if( pA->op==TK_COLLATE ){
      if( sqlite3_stricmp(pA->u.zToken,pB->u.zToken)!=0 ) return 2;
    }else if( ALWAYS(pB->u.zToken!=0) && strcmp(pA->u.zToken,pB->u.zToken)!=0 ){
      return 2;
    }
  }
  if( (pA->flags & (EP_Distinct|EP_Commuted))
     != (pB->flags & (EP_Distinct|EP_Commuted)) ) return 2;
  if( ALWAYS((combinedFlags & EP_TokenOnly)==0) ){
    if( combinedFlags & EP_xIsSelect ) return 2;
    if( (combinedFlags & EP_FixedCol)==0
     && sqlite3ExprCompare(pParse, pA->pLeft, pB->pLeft, iTab) ) return 2;
    if( sqlite3ExprCompare(pParse, pA->pRight, pB->pRight, iTab) ) return 2;
    if( sqlite3ExprListCompare(pA->x.pList, pB->x.pList, iTab) ) return 2;
    if( pA->op!=TK_STRING
     && pA->op!=TK_TRUEFALSE
     && ALWAYS((combinedFlags & EP_Reduced)==0)
    ){
      if( pA->iColumn!=pB->iColumn ) return 2;
      if( pA->op2!=pB->op2 && pA->op==TK_TRUTH ) return 2;
      if( pA->op!=TK_IN && pA->iTable!=pB->iTable && pA->iTable!=iTab ){
        return 2;
      }
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x42fc55
cmpq $0x0, -0x20(%rbp)
jne 0x42fc72
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rsi
movl $0x2, %eax
xorl %ecx, %ecx
cmpq %rsi, %rdx
cmovel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x4300b4
cmpq $0x0, -0x10(%rbp)
je 0x42fca9
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x99, %eax
jne 0x42fca9
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x4300c0
cmpl $0x0, %eax
je 0x42fca9
movl $0x0, -0x4(%rbp)
jmp 0x4300b4
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x20(%rbp), %rcx
orl 0x4(%rcx), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x42fd07
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x20(%rbp), %rcx
andl 0x4(%rcx), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x42fcfb
movq -0x18(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x20(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jne 0x42fcfb
movl $0x0, -0x4(%rbp)
jmp 0x4300b4
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movq -0x20(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
jne 0x42fd25
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x47, %eax
jne 0x42fd9b
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x6f, %eax
jne 0x42fd5a
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x20(%rbp), %rdx
movl -0x24(%rbp), %ecx
callq 0x42fc30
cmpl $0x2, %eax
jge 0x42fd5a
movl $0x1, -0x4(%rbp)
jmp 0x4300b4
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x6f, %eax
jne 0x42fd8f
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdx
movl -0x24(%rbp), %ecx
callq 0x42fc30
cmpl $0x2, %eax
jge 0x42fd8f
movl $0x1, -0x4(%rbp)
jmp 0x4300b4
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa4, %eax
je 0x42ff20
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa6, %eax
je 0x42ff20
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x42ff20
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa9, %eax
je 0x42fdee
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa5, %eax
jne 0x42fe9b
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x3c3e60
cmpl $0x0, %eax
je 0x42fe14
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x1000000, %eax        # imm = 0x1000000
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movq -0x20(%rbp), %rcx
movl 0x4(%rcx), %ecx
andl $0x1000000, %ecx        # imm = 0x1000000
cmpl $0x0, %ecx
setne %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x42fe54
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x1000000, %eax        # imm = 0x1000000
cmpl $0x0, %eax
je 0x42fe96
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rsi
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rdx
movl $0x1, %ecx
callq 0x4301a0
cmpl $0x0, %eax
je 0x42fe94
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
jmp 0x42fe96
jmp 0x42ff1e
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x77, %eax
jne 0x42feb3
movl $0x0, -0x4(%rbp)
jmp 0x4300b4
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x6f, %eax
jne 0x42fee7
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x3c3e00
cmpl $0x0, %eax
je 0x42fee5
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
jmp 0x42ff1a
movq -0x20(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x42ff18
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x19980
cmpl $0x0, %eax
je 0x42ff18
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
jmp 0x42ff1a
jmp 0x42ff1c
jmp 0x42ff1e
jmp 0x42ff20
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x202, %eax            # imm = 0x202
movq -0x20(%rbp), %rcx
movl 0x4(%rcx), %ecx
andl $0x202, %ecx            # imm = 0x202
cmpl %ecx, %eax
je 0x42ff49
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
movl -0x28(%rbp), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
jne 0x4300ad
movl -0x28(%rbp), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x42ff73
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
movl -0x28(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
jne 0x42ffab
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdx
movl -0x24(%rbp), %ecx
callq 0x42fc30
cmpl $0x0, %eax
je 0x42ffab
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdx
movl -0x24(%rbp), %ecx
callq 0x42fc30
cmpl $0x0, %eax
je 0x42ffd8
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x24(%rbp), %edx
callq 0x430350
cmpl $0x0, %eax
je 0x430001
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x73, %eax
je 0x4300ab
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa7, %eax
je 0x4300ab
movl -0x28(%rbp), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
jne 0x4300ab
movq -0x18(%rbp), %rax
movswl 0x30(%rax), %eax
movq -0x20(%rbp), %rcx
movswl 0x30(%rcx), %ecx
cmpl %ecx, %eax
je 0x43004d
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
movq -0x20(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
cmpl %ecx, %eax
je 0x430078
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xac, %eax
jne 0x430078
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x31, %eax
je 0x4300a9
movq -0x18(%rbp), %rax
movl 0x2c(%rax), %eax
movq -0x20(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
je 0x4300a9
movq -0x18(%rbp), %rax
movl 0x2c(%rax), %eax
cmpl -0x24(%rbp), %eax
je 0x4300a9
movl $0x2, -0x4(%rbp)
jmp 0x4300b4
jmp 0x4300ab
jmp 0x4300ad
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)