// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: windowCheckValue
static void windowCheckValue(Parse *pParse, int reg, int eCond){
  static const char *azErr[] = {
    "frame starting offset must be a non-negative integer",
    "frame ending offset must be a non-negative integer",
    "second argument to nth_value must be a positive integer",
    "frame starting offset must be a non-negative number",
    "frame ending offset must be a non-negative number",
  };
  static int aOp[] = { OP_Ge, OP_Ge, OP_Gt, OP_Ge, OP_Ge };
  Vdbe *v = sqlite3GetVdbe(pParse);
  int regZero = sqlite3GetTempReg(pParse);
  assert( eCond>=0 && eCond<ArraySize(azErr) );
  sqlite3VdbeAddOp2(v, OP_Integer, 0, regZero);
  if( eCond>=WINDOW_STARTING_NUM ){
    int regString = sqlite3GetTempReg(pParse);
    sqlite3VdbeAddOp4(v, OP_String8, 0, regString, 0, "", P4_STATIC);
    sqlite3VdbeAddOp3(v, OP_Ge, regString, sqlite3VdbeCurrentAddr(v)+2, reg);
    sqlite3VdbeChangeP5(v, SQLITE_AFF_NUMERIC|SQLITE_JUMPIFNULL);
    VdbeCoverage(v);
    assert( eCond==3 || eCond==4 );
    VdbeCoverageIf(v, eCond==3);
    VdbeCoverageIf(v, eCond==4);
  }else{
    sqlite3VdbeAddOp2(v, OP_MustBeInt, reg, sqlite3VdbeCurrentAddr(v)+2);
    VdbeCoverage(v);
    assert( eCond==0 || eCond==1 || eCond==2 );
    VdbeCoverageIf(v, eCond==0);
    VdbeCoverageIf(v, eCond==1);
    VdbeCoverageIf(v, eCond==2);
  }
  sqlite3VdbeAddOp3(v, aOp[eCond], regZero, sqlite3VdbeCurrentAddr(v)+2, reg);
  VdbeCoverageNeverNullIf(v, eCond==0); /* NULL case captured by */
  VdbeCoverageNeverNullIf(v, eCond==1); /*   the OP_MustBeInt */
  VdbeCoverageNeverNullIf(v, eCond==2);
  VdbeCoverageNeverNullIf(v, eCond==3); /* NULL case caught by */
  VdbeCoverageNeverNullIf(v, eCond==4); /*   the OP_Ge */
  sqlite3MayAbort(pParse);
  sqlite3VdbeAddOp2(v, OP_Halt, SQLITE_ERROR, OE_Abort);
  sqlite3VdbeAppendP4(v, (void*)azErr[eCond], P4_STATIC);
  sqlite3ReleaseTempReg(pParse, regZero);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4299d0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0x42f190
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %ecx
movl $0x45, %esi
xorl %edx, %edx
callq 0x410100
cmpl $0x3, -0x10(%rbp)
jl 0x457ad6
movq -0x8(%rbp), %rdi
callq 0x42f190
movl %eax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movl -0x20(%rbp), %ecx
movl $0x73, %esi
xorl %r8d, %r8d
leaq 0x145ba2(%rip), %r9     # 0x59d628
movl %r8d, %edx
movl $0xffffffff, (%rsp)     # imm = 0xFFFFFFFF
callq 0x429aa0
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rdi
callq 0x430ae0
movq -0x30(%rbp), %rdi
movl -0x24(%rbp), %edx
movl %eax, %ecx
addl $0x2, %ecx
movl -0xc(%rbp), %r8d
movl $0x39, %esi
callq 0x410130
movq -0x18(%rbp), %rdi
movl $0x53, %esi
callq 0x3cb9f0
jmp 0x457b03
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rdi
callq 0x430ae0
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %edx
movl %eax, %ecx
addl $0x2, %ecx
movl $0xf, %esi
callq 0x410100
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movslq -0x10(%rbp), %rcx
leaq 0x1e84ea(%rip), %rax    # 0x640000
movl (%rax,%rcx,4), %eax
movl %eax, -0x48(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x18(%rbp), %rdi
callq 0x430ae0
movq -0x50(%rbp), %rdi
movl -0x48(%rbp), %esi
movl -0x44(%rbp), %edx
movl %eax, %ecx
addl $0x2, %ecx
movl -0xc(%rbp), %r8d
callq 0x410130
movq -0x8(%rbp), %rdi
callq 0x42e470
movq -0x18(%rbp), %rdi
movl $0x44, %esi
movl $0x1, %edx
movl $0x2, %ecx
callq 0x410100
movq -0x18(%rbp), %rdi
movslq -0x10(%rbp), %rcx
leaq 0x1e845d(%rip), %rax    # 0x63ffd0
movq (%rax,%rcx,8), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x42a320
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x42e560
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)