// File: /workspace/github_c_makefile_star2_O2/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 0x44be11
xorl %r12d, %r12d
cmpq %r14, %rbx
setne %r12b
addl %r12d, %r12d
jmp 0x44c07a
movq %rdi, %r15
testq %rdi, %rdi
je 0x44bee7
cmpb $-0x70, (%r14)
jne 0x44bee7
movl %ecx, 0x8(%rsp)
leaq 0x10(%rsp), %r12
andq $0x0, (%r12)
movq (%r15), %rdi
pushq $0x1
popq %rbp
pushq $0x41
popq %rcx
movq %rbx, %rsi
movl %ebp, %edx
movq %r12, %r8
callq 0x44b4ec
movq (%r12), %r13
testq %r13, %r13
je 0x44bee3
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 0x128(%r15), %rdi
callq 0x44c1da
testq %rax, %rax
je 0x44bed4
movq %rax, %rbp
movzwl 0x8(%rax), %eax
andl $0xf, %eax
cmpw $0x2, %ax
jne 0x44bea0
movq %rbp, %rdi
callq 0x409a69
xorl %r12d, %r12d
movq %rbp, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x4288ff
movl %eax, 0xc(%rsp)
movq %r13, %rdi
callq 0x409c71
movq %rbp, %rdi
callq 0x409c71
cmpl $0x0, 0xc(%rsp)
movl 0x8(%rsp), %ecx
jne 0x44bee7
jmp 0x44c07a
movq %r13, %rdi
callq 0x409c71
xorl %edi, %edi
callq 0x409c71
movl 0x8(%rsp), %ecx
movl 0x4(%r14), %r12d
movl 0x4(%rbx), %r13d
movl %r13d, %ebp
orl %r12d, %ebp
btl $0xa, %ebp
jb 0x44bf4e
movzbl (%r14), %eax
movb (%rbx), %dl
cmpb %dl, %al
jne 0x44bf71
cmpl $0x9e, %eax
je 0x44bfcf
cmpl $0xa0, %eax
je 0x44bfcf
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x44bfcf
movq 0x8(%rbx), %rsi
cmpl $0x66, %eax
movl %ecx, 0x8(%rsp)
je 0x44bfbe
cmpl $0x9d, %eax
jne 0x44c065
callq 0x406caf
jmp 0x44c06a
andl %r13d, %r12d
btl $0xa, %r12d
jae 0x44c076
movl 0x8(%r14), %eax
xorl %r12d, %r12d
cmpl 0x8(%rbx), %eax
jne 0x44c076
jmp 0x44c07a
pushq $0x1
popq %r12
cmpl $0x66, %eax
jne 0x44bf98
movq 0x10(%r14), %rsi
movq %r15, %rdi
movq %rbx, %rdx
movl %ecx, %ebp
callq 0x44bddb
cmpl $0x2, %eax
jb 0x44c07a
movb (%rbx), %dl
movl %ebp, %ecx
cmpb $0x66, %dl
jne 0x44c076
movq 0x10(%rbx), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x44bddb
cmpl $0x2, %eax
jae 0x44c076
jmp 0x44c07a
callq 0x406c99
movl 0x8(%rsp), %ecx
testl %eax, %eax
jne 0x44c076
xorl %r12d, %r13d
pushq $0x2
popq %r12
testb $0x10, %r13b
jne 0x44c07a
btl $0xe, %ebp
jb 0x44c060
btl $0xb, %ebp
jb 0x44c07a
testb $0x8, %bpl
jne 0x44c00e
movq 0x10(%r14), %rsi
movq 0x10(%rbx), %rdx
movq %r15, %rdi
movl %ecx, %ebp
callq 0x44bddb
movl %ebp, %ecx
testl %eax, %eax
jne 0x44c07a
movq 0x18(%r14), %rsi
movq 0x18(%rbx), %rdx
movq %r15, %rdi
movl %ecx, %ebp
callq 0x44bddb
testl %eax, %eax
jne 0x44c07a
movq 0x20(%r14), %rdi
movq 0x20(%rbx), %rsi
movl %ebp, %edx
callq 0x44c0c1
testl %eax, %eax
jne 0x44c07a
movzbl (%r14), %eax
cmpl $0x6a, %eax
je 0x44c047
cmpl $0x9b, %eax
jne 0x44c08c
movq 0x48(%r14), %rsi
testq %rsi, %rsi
je 0x44c060
movq 0x48(%rbx), %rdx
movq %r15, %rdi
callq 0x44c148
testl %eax, %eax
jne 0x44c07a
xorl %r12d, %r12d
jmp 0x44c07a
callq 0x4010c8
testl %eax, %eax
movl 0x8(%rsp), %ecx
je 0x44bfcf
pushq $0x2
popq %r12
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzwl 0x30(%r14), %eax
cmpw 0x30(%rbx), %ax
jne 0x44c07a
movl 0x2c(%r14), %ecx
movl 0x2c(%rbx), %eax
cmpl %eax, %ecx
je 0x44c047
cmpl %ebp, %ecx
setne %cl
testl %eax, %eax
setns %al
orb %cl, %al
je 0x44c047
jmp 0x44c07a