// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x471435
cmpq $0x0, -0x20(%rbp)
jne 0x471452
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rsi
movl $0x2, %eax
xorl %ecx, %ecx
cmpq %rsi, %rdx
cmovel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x4717b9
cmpq $0x0, -0x10(%rbp)
je 0x471489
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x90, %eax
jne 0x471489
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x471820
cmpl $0x0, %eax
je 0x471489
movl $0x0, -0x4(%rbp)
jmp 0x4717b9
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x20(%rbp), %rcx
orl 0x4(%rcx), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x4714e7
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x20(%rbp), %rcx
andl 0x4(%rcx), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x4714db
movq -0x18(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x20(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jne 0x4714db
movl $0x0, -0x4(%rbp)
jmp 0x4717b9
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movq -0x20(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x47156f
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x66, %eax
jne 0x47152e
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x20(%rbp), %rdx
movl -0x24(%rbp), %ecx
callq 0x471410
cmpl $0x2, %eax
jge 0x47152e
movl $0x1, -0x4(%rbp)
jmp 0x4717b9
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x66, %eax
jne 0x471563
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdx
movl -0x24(%rbp), %ecx
callq 0x471410
cmpl $0x2, %eax
jge 0x471563
movl $0x1, -0x4(%rbp)
jmp 0x4717b9
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x9e, %eax
je 0x471638
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa0, %eax
je 0x471638
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x471638
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x9d, %eax
jne 0x4715d8
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x409750
cmpl $0x0, %eax
je 0x4715d6
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
jmp 0x471636
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x66, %eax
jne 0x47160c
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x4096f0
cmpl $0x0, %eax
je 0x47160a
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
jmp 0x471634
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x4010c0
cmpl $0x0, %eax
je 0x471632
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
jmp 0x471634
jmp 0x471636
jmp 0x471638
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x10, %eax
movq -0x20(%rbp), %rcx
movl 0x4(%rcx), %ecx
andl $0x10, %ecx
cmpl %ecx, %eax
je 0x47165c
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
movl -0x28(%rbp), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
jne 0x4717b2
movl -0x28(%rbp), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x471686
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
movl -0x28(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
jne 0x4716be
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdx
movl -0x24(%rbp), %ecx
callq 0x471410
cmpl $0x0, %eax
je 0x4716be
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdx
movl -0x24(%rbp), %ecx
callq 0x471410
cmpl $0x0, %eax
je 0x4716eb
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x24(%rbp), %edx
callq 0x471900
cmpl $0x0, %eax
je 0x471714
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x6a, %eax
je 0x47177c
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x9b, %eax
je 0x47177c
movq -0x18(%rbp), %rax
movswl 0x30(%rax), %eax
movq -0x20(%rbp), %rcx
movswl 0x30(%rcx), %ecx
cmpl %ecx, %eax
je 0x47174b
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
movq -0x18(%rbp), %rax
movl 0x2c(%rax), %eax
movq -0x20(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
je 0x47177a
movq -0x18(%rbp), %rax
movl 0x2c(%rax), %eax
cmpl -0x24(%rbp), %eax
jne 0x471771
movq -0x20(%rbp), %rax
cmpl $0x0, 0x2c(%rax)
jl 0x47177a
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
jmp 0x47177c
movq -0x18(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x4717b0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x48(%rax), %rsi
movq -0x20(%rbp), %rax
movq 0x48(%rax), %rdx
callq 0x471a30
cmpl $0x0, %eax
je 0x4717ae
movl $0x2, -0x4(%rbp)
jmp 0x4717b9
jmp 0x4717b0
jmp 0x4717b2
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)