// File: /workspace/github_c_makefile_star2_O2/skeeto[P]flappy/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 && ALWAYS(pA->op!=TK_AGG_COLUMN) && pA->u.zToken ){
    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) ){
      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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
setne %al
testq %rsi, %rsi
setne %cl
testb %cl, %al
jne 0x46bc0
xorl %ebx, %ebx
cmpq %r15, %r14
setne %bl
addl %ebx, %ebx
jmp 0x46ce3
movl 0x4(%r15), %ebx
movl 0x4(%r14), %r13d
movl %r13d, %r12d
orl %ebx, %r12d
btl $0xa, %r12d
jb 0x46c91
movzbl (%r15), %ebp
movb (%r14), %al
cmpb %al, %bpl
jne 0x46ca8
movl %ebp, %eax
orl $0x2, %eax
cmpl $0x9b, %eax
jne 0x46cf4
xorl %ebx, %r13d
pushq $0x2
popq %rbx
testb $0x10, %r13b
jne 0x46ce3
btl $0xe, %r12d
jb 0x46c8d
btl $0xb, %r12d
jb 0x46ce3
movq 0x10(%r15), %rdi
movq 0x10(%r14), %rsi
movl %edx, %ebp
callq 0x46b90
testl %eax, %eax
jne 0x46ce3
movq 0x18(%r15), %rdi
movq 0x18(%r14), %rsi
movl %ebp, %edx
callq 0x46b90
testl %eax, %eax
jne 0x46ce3
movq 0x20(%r15), %rdi
movq 0x20(%r14), %rsi
movl %ebp, %edx
callq 0x47001
testl %eax, %eax
jne 0x46ce3
btl $0xd, %r12d
jb 0x46c8d
movzwl 0x30(%r15), %eax
cmpw 0x30(%r14), %ax
jne 0x46ce3
movl 0x2c(%r15), %ecx
movl 0x2c(%r14), %eax
cmpl %eax, %ecx
je 0x46c8d
cmpl %ebp, %ecx
setne %cl
testl %eax, %eax
setns %al
orb %cl, %al
jne 0x46ce3
xorl %ebx, %ebx
jmp 0x46ce3
andl %r13d, %ebx
btl $0xa, %ebx
jae 0x46ce0
movl 0x8(%r15), %eax
xorl %ebx, %ebx
cmpl 0x8(%r14), %eax
jne 0x46ce0
jmp 0x46ce3
pushq $0x1
popq %rbx
cmpl $0x5d, %ebp
jne 0x46ccb
movq 0x10(%r15), %rdi
movq %r14, %rsi
movl %edx, %ebp
movl %eax, %r12d
callq 0x46b90
movl %ebp, %edx
cmpl $0x2, %eax
movl %r12d, %eax
jb 0x46ce3
cmpb $0x5d, %al
jne 0x46ce0
movq 0x10(%r14), %rsi
movq %r15, %rdi
callq 0x46b90
cmpl $0x2, %eax
jb 0x46ce3
pushq $0x2
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x46bf9
movq 0x8(%r14), %rsi
movl %edx, 0x4(%rsp)
callq 0x73f0
movl 0x4(%rsp), %edx
testl %eax, %eax
je 0x46bf9
xorl %ebx, %ebx
cmpl $0x5d, %ebp
setne %bl
incl %ebx
jmp 0x46ce3