// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x68241
cmpq $0x0, -0x18(%rbp)
jne 0x6825e
movq -0x18(%rbp), %rdx
movq -0x10(%rbp), %rsi
movl $0x2, %eax
xorl %ecx, %ecx
cmpq %rsi, %rdx
cmovel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x684c8
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x18(%rbp), %rcx
orl 0x4(%rcx), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x682bc
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x18(%rbp), %rcx
andl 0x4(%rcx), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x682b0
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x18(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jne 0x682b0
movl $0x0, -0x4(%rbp)
jmp 0x684c8
movl $0x2, -0x4(%rbp)
jmp 0x684c8
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x6833c
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5d, %eax
jne 0x682ff
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
callq 0x68220
cmpl $0x2, %eax
jge 0x682ff
movl $0x1, -0x4(%rbp)
jmp 0x684c8
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5d, %eax
jne 0x68330
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x1c(%rbp), %edx
callq 0x68220
cmpl $0x2, %eax
jge 0x68330
movl $0x1, -0x4(%rbp)
jmp 0x684c8
movl $0x2, -0x4(%rbp)
jmp 0x684c8
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x99, %eax
je 0x6839e
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x9b, %eax
je 0x6839e
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x6839e
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x7410
cmpl $0x0, %eax
je 0x6839c
movq -0x10(%rbp), %rax
movzbl (%rax), %edx
movl $0x2, %eax
movl $0x1, %ecx
cmpl $0x5d, %edx
cmovel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x684c8
jmp 0x6839e
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x10, %eax
movq -0x18(%rbp), %rcx
movl 0x4(%rcx), %ecx
andl $0x10, %ecx
cmpl %ecx, %eax
je 0x683c2
movl $0x2, -0x4(%rbp)
jmp 0x684c8
movl -0x20(%rbp), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
jne 0x684c1
movl -0x20(%rbp), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x683ec
movl $0x2, -0x4(%rbp)
jmp 0x684c8
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x1c(%rbp), %edx
callq 0x68220
cmpl $0x0, %eax
je 0x68415
movl $0x2, -0x4(%rbp)
jmp 0x684c8
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x1c(%rbp), %edx
callq 0x68220
cmpl $0x0, %eax
je 0x6843e
movl $0x2, -0x4(%rbp)
jmp 0x684c8
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x1c(%rbp), %edx
callq 0x68b00
cmpl $0x0, %eax
je 0x68464
movl $0x2, -0x4(%rbp)
jmp 0x684c8
movl -0x20(%rbp), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
jne 0x684bf
movq -0x10(%rbp), %rax
movswl 0x30(%rax), %eax
movq -0x18(%rbp), %rcx
movswl 0x30(%rcx), %ecx
cmpl %ecx, %eax
je 0x6848e
movl $0x2, -0x4(%rbp)
jmp 0x684c8
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movq -0x18(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
je 0x684bd
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
cmpl -0x1c(%rbp), %eax
jne 0x684b4
movq -0x18(%rbp), %rax
cmpl $0x0, 0x2c(%rax)
jl 0x684bd
movl $0x2, -0x4(%rbp)
jmp 0x684c8
jmp 0x684bf
jmp 0x684c1
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)