// File: /workspace/github_c_makefile_star2_O3/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 0x451ef9
xorl %r12d, %r12d
cmpq %r14, %rbx
setne %r12b
addl %r12d, %r12d
jmp 0x4520bf
movq %rdi, %r8
testq %rdi, %rdi
je 0x451feb
cmpb $-0x70, (%r14)
jne 0x451feb
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 0x451514
movq (%r12), %r13
testq %r13, %r13
je 0x451fd5
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 0x45230e
testq %rax, %rax
je 0x451fda
movq %rax, %rbp
movzwl 0x8(%rax), %eax
andl $0xf, %eax
cmpw $0x2, %ax
jne 0x451f9f
movq %rbp, %rdi
movl $0x1, %esi
callq 0x40af5d
xorl %r12d, %r12d
movq %rbp, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x42ecc7
movl %eax, %r15d
movq %r13, %rdi
callq 0x40b0a1
movq %rbp, %rdi
callq 0x40b0a1
testl %r15d, %r15d
movq 0x8(%rsp), %r8
movl 0x4(%rsp), %ecx
jne 0x451feb
jmp 0x4520bf
movq %r15, %r8
jmp 0x451fe7
movq %r13, %rdi
callq 0x40b0a1
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 0x452057
movzbl (%r14), %eax
movb (%rbx), %dl
cmpb %dl, %al
jne 0x45206f
cmpl $0x9e, %eax
je 0x452111
cmpl $0xa0, %eax
je 0x452111
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x452111
movq 0x8(%rbx), %rsi
cmpl $0x66, %eax
je 0x4520d1
movl %ecx, 0x4(%rsp)
movq %r8, 0x8(%rsp)
cmpl $0x9d, %eax
jne 0x4520f9
callq 0x4079b2
jmp 0x4520fe
andl %r13d, %r15d
btl $0xa, %r15d
jae 0x4520b9
movl 0x8(%r14), %eax
xorl %r12d, %r12d
cmpl 0x8(%rbx), %eax
jne 0x4520b9
jmp 0x4520bf
cmpl $0x66, %eax
jne 0x45209a
movq 0x10(%r14), %rsi
movq %r8, %rdi
movq %rbx, %rdx
movq %r8, %r15
movl %ecx, %ebp
callq 0x451ec3
movl $0x1, %r12d
cmpl $0x2, %eax
jb 0x4520bf
movl %ebp, %ecx
movq %r15, %r8
movb (%rbx), %dl
cmpb $0x66, %dl
jne 0x4520b9
movq 0x10(%rbx), %rdx
movq %r8, %rdi
movq %r14, %rsi
callq 0x451ec3
movl $0x1, %r12d
cmpl $0x2, %eax
jb 0x4520bf
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 0x4520bf
movq %r8, 0x8(%rsp)
movl %ecx, 0x4(%rsp)
callq 0x4079b2
movl 0x4(%rsp), %ecx
movq 0x8(%rsp), %r8
testl %eax, %eax
jne 0x4520bf
jmp 0x452111
callq 0x4010c8
movl $0x2, %r12d
testl %eax, %eax
movq 0x8(%rsp), %r8
movl 0x4(%rsp), %ecx
jne 0x4520bf
xorl %r15d, %r13d
movl $0x2, %r12d
testb $0x10, %r13b
jne 0x4520bf
btl $0xe, %ebp
jb 0x4521b9
btl $0xb, %ebp
jb 0x4520bf
testb $0x8, %bpl
jne 0x452158
movq 0x10(%r14), %rsi
movq 0x10(%rbx), %rdx
movq %r8, %rdi
movq %r8, %r15
movl %ecx, %ebp
callq 0x451ec3
movl %ebp, %ecx
movq %r15, %r8
testl %eax, %eax
jne 0x4520bf
movq 0x18(%r14), %rsi
movq 0x18(%rbx), %rdx
movq %r8, %rdi
movq %r8, %r15
movl %ecx, %ebp
callq 0x451ec3
testl %eax, %eax
jne 0x4520bf
movq 0x20(%r14), %rdi
movq 0x20(%rbx), %rsi
movl %ebp, %edx
callq 0x4521ef
testl %eax, %eax
jne 0x4520bf
movzbl (%r14), %eax
cmpl $0x6a, %eax
movq %r15, %rdi
je 0x45219f
cmpl $0x9b, %eax
jne 0x4521c1
movq 0x48(%r14), %rsi
testq %rsi, %rsi
je 0x4521b9
movq 0x48(%rbx), %rdx
callq 0x452272
testl %eax, %eax
jne 0x4520bf
xorl %r12d, %r12d
jmp 0x4520bf
movzwl 0x30(%r14), %eax
cmpw 0x30(%rbx), %ax
jne 0x4520bf
movl 0x2c(%r14), %ecx
movl 0x2c(%rbx), %eax
cmpl %eax, %ecx
je 0x45219f
cmpl %ebp, %ecx
setne %cl
testl %eax, %eax
setns %al
orb %cl, %al
jne 0x4520bf
jmp 0x45219f