// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: codeVectorCompare
static void codeVectorCompare(
  Parse *pParse,        /* Code generator context */
  Expr *pExpr,          /* The comparison operation */
  int dest,             /* Write results into this register */
  u8 op,                /* Comparison operator */
  u8 p5                 /* SQLITE_NULLEQ or zero */
){
  Vdbe *v = pParse->pVdbe;
  Expr *pLeft = pExpr->pLeft;
  Expr *pRight = pExpr->pRight;
  int nLeft = sqlite3ExprVectorSize(pLeft);
  int i;
  int regLeft = 0;
  int regRight = 0;
  u8 opx = op;
  int addrDone = sqlite3VdbeMakeLabel(pParse);
  int isCommuted = ExprHasProperty(pExpr,EP_Commuted);

  assert( !ExprHasVVAProperty(pExpr,EP_Immutable) );
  if( pParse->nErr ) return;
  if( nLeft!=sqlite3ExprVectorSize(pRight) ){
    sqlite3ErrorMsg(pParse, "row value misused");
    return;
  }
  assert( pExpr->op==TK_EQ || pExpr->op==TK_NE
       || pExpr->op==TK_IS || pExpr->op==TK_ISNOT
       || pExpr->op==TK_LT || pExpr->op==TK_GT
       || pExpr->op==TK_LE || pExpr->op==TK_GE
  );
  assert( pExpr->op==op || (pExpr->op==TK_IS && op==TK_EQ)
            || (pExpr->op==TK_ISNOT && op==TK_NE) );
  assert( p5==0 || pExpr->op!=op );
  assert( p5==SQLITE_NULLEQ || pExpr->op==op );

  p5 |= SQLITE_STOREP2;
  if( opx==TK_LE ) opx = TK_LT;
  if( opx==TK_GE ) opx = TK_GT;

  regLeft = exprCodeSubselect(pParse, pLeft);
  regRight = exprCodeSubselect(pParse, pRight);

  for(i=0; 1 /*Loop exits by "break"*/; i++){
    int regFree1 = 0, regFree2 = 0;
    Expr *pL, *pR;
    int r1, r2;
    assert( i>=0 && i<nLeft );
    r1 = exprVectorRegister(pParse, pLeft, i, regLeft, &pL, &regFree1);
    r2 = exprVectorRegister(pParse, pRight, i, regRight, &pR, &regFree2);
    codeCompare(pParse, pL, pR, opx, r1, r2, dest, p5, isCommuted);
    testcase(op==OP_Lt); VdbeCoverageIf(v,op==OP_Lt);
    testcase(op==OP_Le); VdbeCoverageIf(v,op==OP_Le);
    testcase(op==OP_Gt); VdbeCoverageIf(v,op==OP_Gt);
    testcase(op==OP_Ge); VdbeCoverageIf(v,op==OP_Ge);
    testcase(op==OP_Eq); VdbeCoverageIf(v,op==OP_Eq);
    testcase(op==OP_Ne); VdbeCoverageIf(v,op==OP_Ne);
    sqlite3ReleaseTempReg(pParse, regFree1);
    sqlite3ReleaseTempReg(pParse, regFree2);
    if( i==nLeft-1 ){
      break;
    }
    if( opx==TK_EQ ){
      sqlite3VdbeAddOp2(v, OP_IfNot, dest, addrDone); VdbeCoverage(v);
      p5 |= SQLITE_KEEPNULL;
    }else if( opx==TK_NE ){
      sqlite3VdbeAddOp2(v, OP_If, dest, addrDone); VdbeCoverage(v);
      p5 |= SQLITE_KEEPNULL;
    }else{
      assert( op==TK_LT || op==TK_GT || op==TK_LE || op==TK_GE );
      sqlite3VdbeAddOp2(v, OP_ElseNotEq, 0, addrDone);
      VdbeCoverageIf(v, op==TK_LT);
      VdbeCoverageIf(v, op==TK_GT);
      VdbeCoverageIf(v, op==TK_LE);
      VdbeCoverageIf(v, op==TK_GE);
      if( i==nLeft-2 ) opx = op;
    }
  }
  sqlite3VdbeResolveLabel(v, addrDone);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movb %r8b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movb %cl, -0x15(%rbp)
movb %al, -0x16(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
callq 0x42d4d0
movl %eax, -0x34(%rbp)
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x40(%rbp)
movb -0x15(%rbp), %al
movb %al, -0x41(%rbp)
movq -0x8(%rbp), %rdi
callq 0x42d540
movl %eax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4c(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x30(%rax)
je 0x42c2d8
jmp 0x42c49f
movl -0x34(%rbp), %eax
movl %eax, -0x74(%rbp)
movq -0x30(%rbp), %rdi
callq 0x42d4d0
movl %eax, %ecx
movl -0x74(%rbp), %eax
cmpl %ecx, %eax
je 0x42c307
movq -0x8(%rbp), %rdi
leaq 0x180768(%rip), %rsi    # 0x5aca63
movb $0x0, %al
callq 0x3cb660
jmp 0x42c49f
movzbl -0x16(%rbp), %eax
orl $0x20, %eax
movb %al, -0x16(%rbp)
movzbl -0x41(%rbp), %eax
cmpl $0x37, %eax
jne 0x42c31e
movb $0x38, -0x41(%rbp)
movzbl -0x41(%rbp), %eax
cmpl $0x39, %eax
jne 0x42c32b
movb $0x36, -0x41(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x42ef70
movl %eax, -0x3c(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x42ef70
movl %eax, -0x40(%rbp)
movl $0x0, -0x38(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x42c35d
jmp 0x42c493
movl $0x0, -0x50(%rbp)
movl $0x0, -0x54(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x38(%rbp), %edx
movl -0x3c(%rbp), %ecx
leaq -0x60(%rbp), %r8
leaq -0x50(%rbp), %r9
callq 0x42efb0
movl %eax, -0x6c(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x38(%rbp), %edx
movl -0x40(%rbp), %ecx
leaq -0x68(%rbp), %r8
leaq -0x54(%rbp), %r9
callq 0x42efb0
movl %eax, -0x70(%rbp)
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdx
movzbl -0x41(%rbp), %ecx
movl -0x6c(%rbp), %r8d
movl -0x70(%rbp), %r9d
movl -0x14(%rbp), %r11d
movzbl -0x16(%rbp), %r10d
movl -0x4c(%rbp), %eax
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x42c570
movq -0x8(%rbp), %rdi
movl -0x50(%rbp), %esi
callq 0x42e560
movq -0x8(%rbp), %rdi
movl -0x54(%rbp), %esi
callq 0x42e560
movl -0x38(%rbp), %eax
movl -0x34(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x42c407
jmp 0x42c493
movzbl -0x41(%rbp), %eax
cmpl $0x35, %eax
jne 0x42c430
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x48(%rbp), %ecx
movl $0x14, %esi
callq 0x410100
movzbl -0x16(%rbp), %eax
orl $0x8, %eax
movb %al, -0x16(%rbp)
jmp 0x42c483
movzbl -0x41(%rbp), %eax
cmpl $0x34, %eax
jne 0x42c459
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x48(%rbp), %ecx
movl $0x12, %esi
callq 0x410100
movzbl -0x16(%rbp), %eax
orl $0x8, %eax
movb %al, -0x16(%rbp)
jmp 0x42c481
movq -0x20(%rbp), %rdi
movl -0x48(%rbp), %ecx
movl $0x3a, %esi
xorl %edx, %edx
callq 0x410100
movl -0x38(%rbp), %eax
movl -0x34(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jne 0x42c47f
movb -0x15(%rbp), %al
movb %al, -0x41(%rbp)
jmp 0x42c481
jmp 0x42c483
jmp 0x42c485
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x42c352
movq -0x20(%rbp), %rdi
movl -0x48(%rbp), %esi
callq 0x42dc90
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax,%rax)