// File: /workspace/github_c_makefile_star2_O1/ukontainer[P]sqlite-bench/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 ){
    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 ){
      if( sqlite3StrICmp(pA->u.zToken,pB->u.zToken)!=0 ) return 2;
    }else if( pA->op==TK_COLLATE ){
      if( sqlite3_stricmp(pA->u.zToken,pB->u.zToken)!=0 ) return 2;
    }else if( strcmp(pA->u.zToken,pB->u.zToken)!=0 ){
      return 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( (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;
    assert( (combinedFlags & EP_Reduced)==0 );
    if( pA->op!=TK_STRING && pA->op!=TK_TRUEFALSE ){
      if( pA->iColumn!=pB->iColumn ) return 2;
      if( pA->iTable!=pB->iTable 
       && (pA->iTable!=iTab || NEVER(pB->iTable>=0)) ) return 2;
    }
#ifndef SQLITE_OMIT_WINDOWFUNC
    /* Justification for the assert():
    ** window functions have p->op==TK_FUNCTION but aggregate functions
    ** have p->op==TK_AGG_FUNCTION.  So any comparison between an aggregate
    ** function and a window function should have failed before reaching
    ** this point.  And, it is not possible to have a window function and
    ** a scalar function with the same name and number of arguments.  So
    ** if we reach this point, either A and B both window functions or
    ** neither are a window functions. */
    assert( (pA->pWin==0)==(pB->pWin==0) );

    if( pA->pWin!=0 ){
      if( sqlite3WindowCompare(pParse,pA->pWin,pB->pWin)!=0 ) return 2;
    }
#endif
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
testq %rsi, %rsi
setne %al
testq %rdx, %rdx
setne %dl
testb %dl, %al
jne 0x452c89
xorl %r12d, %r12d
cmpq %r14, %rbx
setne %r12b
addl %r12d, %r12d
jmp 0x452e53
movq %rdi, %r8
testq %rdi, %rdi
je 0x452d83
cmpb $-0x70, (%r14)
jne 0x452d83
movl %ecx, 0x4(%rsp)
leaq 0x10(%rsp), %r12
movq $0x0, (%r12)
movq (%r8), %rdi
movl $0x1, %ebp
movq %rbx, %rsi
movl $0x1, %edx
movl $0x41, %ecx
movq %r8, %r15
movq %r12, %r8
callq 0x45222e
movq (%r12), %r13
testq %r13, %r13
je 0x452d65
movswl 0x30(%r14), %esi
leal -0x1(%rsi), %ecx
shll %cl, %ebp
cmpl $0x20, %esi
movq 0x10(%r15), %rax
movl $0x80000000, %ecx       # imm = 0x80000000
cmovll %ebp, %ecx
orl %ecx, 0x10c(%rax)
movq %r15, 0x8(%rsp)
movq 0x128(%r15), %rdi
callq 0x4530a4
movq %rax, %rbp
testq %rax, %rax
je 0x452d6a
movzwl 0x8(%rbp), %eax
andl $0xf, %eax
cmpw $0x2, %ax
jne 0x452d2f
movq %rbp, %rdi
movl $0x1, %esi
callq 0x40ad95
xorl %r12d, %r12d
movq %rbp, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x42f49e
movl %eax, %r15d
movq %r13, %rdi
callq 0x40aedb
movq %rbp, %rdi
callq 0x40aedb
testl %r15d, %r15d
movq 0x8(%rsp), %r8
movl 0x4(%rsp), %ecx
jne 0x452d83
jmp 0x452e53
movq %r15, %r8
jmp 0x452d7f
movq %r13, %rdi
callq 0x40aedb
movq %rbp, %rdi
callq 0x40aedb
movq 0x8(%rsp), %r8
movl 0x4(%rsp), %ecx
movl 0x4(%r14), %r15d
movl 0x4(%rbx), %r13d
movl %r13d, %ebp
orl %r15d, %ebp
btl $0xa, %ebp
jb 0x452ded
movzbl (%r14), %eax
cmpb (%rbx), %al
jne 0x452e05
cmpl $0x9e, %eax
je 0x452ea5
cmpl $0xa0, %eax
je 0x452ea5
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x452ea5
movq 0x8(%rbx), %rsi
cmpl $0x66, %eax
je 0x452e65
movl %ecx, 0x4(%rsp)
movq %r8, 0x8(%rsp)
cmpl $0x9d, %eax
jne 0x452e8d
callq 0x407729
jmp 0x452e92
andl %r13d, %r15d
btl $0xa, %r15d
jae 0x452e4d
movl 0x8(%r14), %eax
xorl %r12d, %r12d
cmpl 0x8(%rbx), %eax
jne 0x452e4d
jmp 0x452e53
cmpl $0x66, %eax
jne 0x452e2e
movq 0x10(%r14), %rsi
movq %r8, %rdi
movq %rbx, %rdx
movq %r8, %r15
movl %ecx, %ebp
callq 0x452c53
movl %ebp, %ecx
movq %r15, %r8
movl $0x1, %r12d
cmpl $0x2, %eax
jb 0x452e53
cmpb $0x66, (%rbx)
jne 0x452e4d
movq 0x10(%rbx), %rdx
movq %r8, %rdi
movq %r14, %rsi
callq 0x452c53
movl $0x1, %r12d
cmpl $0x2, %eax
jb 0x452e53
movl $0x2, %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x2, %r12d
testq %rsi, %rsi
je 0x452e53
movq %r8, 0x8(%rsp)
movl %ecx, 0x4(%rsp)
callq 0x407729
movl 0x4(%rsp), %ecx
movq 0x8(%rsp), %r8
testl %eax, %eax
jne 0x452e53
jmp 0x452ea5
callq 0x4010c8
movl $0x2, %r12d
testl %eax, %eax
movq 0x8(%rsp), %r8
movl 0x4(%rsp), %ecx
jne 0x452e53
xorl %r15d, %r13d
movl $0x2, %r12d
testb $0x10, %r13b
jne 0x452e53
btl $0xe, %ebp
jb 0x452f4d
btl $0xb, %ebp
jb 0x452e53
testb $0x8, %bpl
jne 0x452eec
movq 0x10(%r14), %rsi
movq 0x10(%rbx), %rdx
movq %r8, %rdi
movq %r8, %r15
movl %ecx, %ebp
callq 0x452c53
movl %ebp, %ecx
movq %r15, %r8
testl %eax, %eax
jne 0x452e53
movq 0x18(%r14), %rsi
movq 0x18(%rbx), %rdx
movq %r8, %rdi
movq %r8, %r15
movl %ecx, %ebp
callq 0x452c53
testl %eax, %eax
jne 0x452e53
movq 0x20(%r14), %rdi
movq 0x20(%rbx), %rsi
movl %ebp, %edx
callq 0x452f83
testl %eax, %eax
jne 0x452e53
movzbl (%r14), %eax
cmpl $0x6a, %eax
movq %r15, %rdi
je 0x452f33
cmpl $0x9b, %eax
jne 0x452f55
movq 0x48(%r14), %rsi
testq %rsi, %rsi
je 0x452f4d
movq 0x48(%rbx), %rdx
callq 0x453008
testl %eax, %eax
jne 0x452e53
xorl %r12d, %r12d
jmp 0x452e53
movzwl 0x30(%r14), %eax
cmpw 0x30(%rbx), %ax
jne 0x452e53
movl 0x2c(%r14), %ecx
movl 0x2c(%rbx), %eax
cmpl %eax, %ecx
je 0x452f33
cmpl %ebp, %ecx
setne %cl
testl %eax, %eax
setns %al
orb %cl, %al
jne 0x452e53
jmp 0x452f33