// File: /workspace/github_c_makefile_star2_O1/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, %rbx
movq %rdi, %r14
testq %rdi, %rdi
setne %al
testq %rsi, %rsi
setne %cl
testb %cl, %al
jne 0x4b3fe
xorl %r15d, %r15d
cmpq %r14, %rbx
setne %r15b
addl %r15d, %r15d
jmp 0x4b52f
movl 0x4(%r14), %r15d
movl 0x4(%rbx), %r13d
movl %r13d, %r12d
orl %r15d, %r12d
btl $0xa, %r12d
jb 0x4b4d0
movzbl (%r14), %ebp
movb (%rbx), %al
cmpb %al, %bpl
jne 0x4b4e8
movl %ebp, %eax
orl $0x2, %eax
cmpl $0x9b, %eax
jne 0x4b541
xorl %r15d, %r13d
movl $0x2, %r15d
testb $0x10, %r13b
jne 0x4b52f
btl $0xe, %r12d
jb 0x4b4cb
btl $0xb, %r12d
jb 0x4b52f
movq 0x10(%r14), %rdi
movq 0x10(%rbx), %rsi
movl %edx, %ebp
callq 0x4b3cb
testl %eax, %eax
jne 0x4b52f
movq 0x18(%r14), %rdi
movq 0x18(%rbx), %rsi
movl %ebp, %edx
callq 0x4b3cb
testl %eax, %eax
jne 0x4b52f
movq 0x20(%r14), %rdi
movq 0x20(%rbx), %rsi
movl %ebp, %edx
callq 0x4b825
testl %eax, %eax
jne 0x4b52f
btl $0xd, %r12d
jb 0x4b4cb
movzwl 0x30(%r14), %eax
cmpw 0x30(%rbx), %ax
jne 0x4b52f
movl 0x2c(%r14), %ecx
movl 0x2c(%rbx), %eax
cmpl %eax, %ecx
je 0x4b4cb
cmpl %ebp, %ecx
setne %cl
testl %eax, %eax
setns %al
orb %cl, %al
jne 0x4b52f
xorl %r15d, %r15d
jmp 0x4b52f
andl %r13d, %r15d
btl $0xa, %r15d
jae 0x4b529
movl 0x8(%r14), %eax
xorl %r15d, %r15d
cmpl 0x8(%rbx), %eax
jne 0x4b529
jmp 0x4b52f
cmpl $0x5d, %ebp
jne 0x4b50e
movq 0x10(%r14), %rdi
movq %rbx, %rsi
movl %edx, %ebp
movl %eax, %r12d
callq 0x4b3cb
movl %ebp, %edx
movl $0x1, %r15d
cmpl $0x2, %eax
movl %r12d, %eax
jb 0x4b52f
cmpb $0x5d, %al
jne 0x4b529
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x4b3cb
movl $0x1, %r15d
cmpl $0x2, %eax
jb 0x4b52f
movl $0x2, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x4b436
movq 0x8(%rbx), %rsi
movl %edx, 0x4(%rsp)
callq 0x73c0
movl 0x4(%rsp), %edx
testl %eax, %eax
je 0x4b436
xorl %r15d, %r15d
cmpl $0x5d, %ebp
setne %r15b
incl %r15d
jmp 0x4b52f