	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function windowCheckValue
_windowCheckValue:                      ## @windowCheckValue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_sqlite3GetVdbe
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_sqlite3GetTempReg
	movl	%eax, %ebx
	testl	%r12d, %r12d
	js	LBB0_1
## %bb.2:
	leaq	_windowCheckValue.azErr(%rip), %rdi
	callq	_ArraySize
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	setg	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_assert
	movq	_OP_Integer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	_WINDOW_STARTING_NUM@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_4
## %bb.5:
	movq	_OP_MustBeInt@GOTPCREL(%rip), %rax
	movl	%r15d, %ebx
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_sqlite3VdbeCurrentAddr
                                        ## kill: def $eax killed $eax def $rax
	leal	2(%rax), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_sqlite3VdbeAddOp2
	movq	%r14, %rdi
	callq	_VdbeCoverage
	xorl	%r15d, %r15d
	testl	%r12d, %r12d
	sete	%r15b
	xorl	%ebx, %ebx
	cmpl	$1, %r12d
	sete	%bl
	xorl	%r13d, %r13d
	cmpl	$2, %r12d
	sete	%r13b
	movl	$1, %edi
	cmovael	%r13d, %edi
	callq	_assert
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_VdbeCoverageIf
	movq	%r14, %rdi
	movl	%ebx, %esi
	jmp	LBB0_6
LBB0_4:
	movq	%r13, %rdi
	callq	_sqlite3GetTempReg
	movl	%eax, %r13d
	movq	_OP_String8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_P4_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.5(%rip), %r9
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_sqlite3VdbeAddOp4
	movq	%r14, %rdi
	callq	_sqlite3VdbeCurrentAddr
                                        ## kill: def $eax killed $eax def $rax
	leal	2(%rax), %ecx
	movq	%r14, %rdi
	movl	$129, %esi
	movl	%r13d, %edx
	movl	%r15d, %r8d
	callq	_sqlite3VdbeAddOp3
	movq	_SQLITE_AFF_NUMERIC@GOTPCREL(%rip), %rax
	movq	_SQLITE_JUMPIFNULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sqlite3VdbeChangeP5
	movq	%r14, %rdi
	callq	_VdbeCoverage
	xorl	%r15d, %r15d
	cmpl	$3, %r12d
	sete	%r15b
	xorl	%r13d, %r13d
	cmpl	$4, %r12d
	sete	%r13b
	leal	-3(%r12), %eax
	xorl	%edi, %edi
	cmpl	$2, %eax
	setb	%dil
	callq	_assert
	movq	%r14, %rdi
	movl	%r15d, %esi
LBB0_6:
	callq	_VdbeCoverageIf
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_VdbeCoverageIf
	movslq	%r12d, %r15
	leaq	_windowCheckValue.aOp(%rip), %rax
	movl	(%rax,%r15,4), %ebx
	movq	%r14, %rdi
	callq	_sqlite3VdbeCurrentAddr
                                        ## kill: def $eax killed $eax def $rax
	leal	2(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_sqlite3VdbeAddOp3
	xorl	%esi, %esi
	testl	%r12d, %r12d
	sete	%sil
	movq	%r14, %rdi
	callq	_VdbeCoverageNeverNullIf
	xorl	%esi, %esi
	cmpl	$1, %r12d
	sete	%sil
	movq	%r14, %rdi
	callq	_VdbeCoverageNeverNullIf
	xorl	%esi, %esi
	cmpl	$2, %r12d
	sete	%sil
	movq	%r14, %rdi
	callq	_VdbeCoverageNeverNullIf
	xorl	%esi, %esi
	cmpl	$3, %r12d
	sete	%sil
	movq	%r14, %rdi
	callq	_VdbeCoverageNeverNullIf
	xorl	%esi, %esi
	cmpl	$4, %r12d
	sete	%sil
	movq	%r14, %rdi
	callq	_VdbeCoverageNeverNullIf
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_sqlite3MayAbort
	movq	_OP_Halt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OE_Abort@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_sqlite3VdbeAddOp2
	leaq	_windowCheckValue.azErr(%rip), %rax
	movq	(%rax,%r15,8), %rsi
	movq	_P4_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_sqlite3VdbeAppendP4
	movq	%rbx, %rdi
	movl	%r13d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3ReleaseTempReg          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @windowCheckValue.azErr
_windowCheckValue.azErr:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame starting offset must be a non-negative integer"

L_.str.1:                               ## @.str.1
	.asciz	"frame ending offset must be a non-negative integer"

L_.str.2:                               ## @.str.2
	.asciz	"second argument to nth_value must be a positive integer"

L_.str.3:                               ## @.str.3
	.asciz	"frame starting offset must be a non-negative number"

L_.str.4:                               ## @.str.4
	.asciz	"frame ending offset must be a non-negative number"

	.section	__TEXT,__const
	.p2align	4                               ## @windowCheckValue.aOp
_windowCheckValue.aOp:
	.long	129                             ## 0x81
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	129                             ## 0x81
	.long	129                             ## 0x81

	.comm	_OP_Integer,4,2                 ## @OP_Integer
	.comm	_WINDOW_STARTING_NUM,4,2        ## @WINDOW_STARTING_NUM
	.comm	_OP_String8,4,2                 ## @OP_String8
	.section	__TEXT,__cstring,cstring_literals
L_.str.5:                               ## @.str.5
	.space	1

	.comm	_P4_STATIC,4,2                  ## @P4_STATIC
	.comm	_SQLITE_AFF_NUMERIC,4,2         ## @SQLITE_AFF_NUMERIC
	.comm	_SQLITE_JUMPIFNULL,4,2          ## @SQLITE_JUMPIFNULL
	.comm	_OP_MustBeInt,4,2               ## @OP_MustBeInt
	.comm	_OP_Halt,4,2                    ## @OP_Halt
	.comm	_SQLITE_ERROR,4,2               ## @SQLITE_ERROR
	.comm	_OE_Abort,4,2                   ## @OE_Abort
	.no_dead_strip	_windowCheckValue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function windowCheckValue
_windowCheckValue:                      ; @windowCheckValue
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	bl	_sqlite3GetVdbe
	mov	x21, x0
	mov	x0, x19
	bl	_sqlite3GetTempReg
	mov	x22, x0
	tbnz	w20, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, _windowCheckValue.azErr@PAGE
Lloh1:
	add	x0, x0, _windowCheckValue.azErr@PAGEOFF
	bl	_ArraySize
	cmp	w0, w20
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_assert
Lloh2:
	adrp	x8, _OP_Integer@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OP_Integer@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	x3, x22
	bl	_sqlite3VdbeAddOp2
Lloh5:
	adrp	x8, _WINDOW_STARTING_NUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WINDOW_STARTING_NUM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x27, _P4_STATIC@GOTPAGE
Lloh9:
	ldr	x27, [x27, _P4_STATIC@GOTPAGEOFF]
	cmp	w8, w20
	b.le	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _OP_MustBeInt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OP_MustBeInt@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x8]
	mov	x0, x21
	bl	_sqlite3VdbeCurrentAddr
	add	w3, w0, #2
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_sqlite3VdbeAddOp2
	mov	x0, x21
	bl	_VdbeCoverage
	cmp	w20, #0
	cset	w25, eq
	cmp	w20, #2
	cset	w24, eq
	cmp	w20, #1
	cset	w26, eq
	csinc	w0, w24, wzr, hi
	bl	_assert
	mov	x0, x21
	mov	x1, x25
	bl	_VdbeCoverageIf
	mov	x0, x21
	mov	x1, x26
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_sqlite3GetTempReg
	mov	x24, x0
Lloh13:
	adrp	x8, _OP_String8@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OP_String8@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w6, [x27]
Lloh16:
	adrp	x5, l_.str.5@PAGE
Lloh17:
	add	x5, x5, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	mov	x3, x24
	mov	w4, #0
	bl	_sqlite3VdbeAddOp4
	mov	x0, x21
	bl	_sqlite3VdbeCurrentAddr
	add	w3, w0, #2
	mov	x0, x21
	mov	w1, #129
	mov	x2, x24
	mov	x4, x23
	bl	_sqlite3VdbeAddOp3
Lloh18:
	adrp	x8, _SQLITE_AFF_NUMERIC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SQLITE_AFF_NUMERIC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _SQLITE_JUMPIFNULL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SQLITE_JUMPIFNULL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_sqlite3VdbeChangeP5
	mov	x0, x21
	bl	_VdbeCoverage
	subs	w8, w20, #3
	cset	w25, eq
	cmp	w20, #4
	cset	w24, eq
	cmp	w8, #2
	cset	w0, lo
	bl	_assert
	mov	x0, x21
	mov	x1, x25
LBB0_6:
	bl	_VdbeCoverageIf
	mov	x0, x21
	mov	x1, x24
	bl	_VdbeCoverageIf
Lloh24:
	adrp	x8, _windowCheckValue.aOp@PAGE
Lloh25:
	add	x8, x8, _windowCheckValue.aOp@PAGEOFF
	ldr	w24, [x8, w20, sxtw #2]
	mov	x0, x21
	bl	_sqlite3VdbeCurrentAddr
	add	w3, w0, #2
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	mov	x4, x23
	bl	_sqlite3VdbeAddOp3
	cmp	w20, #0
	cset	w1, eq
	mov	x0, x21
	bl	_VdbeCoverageNeverNullIf
	cmp	w20, #1
	cset	w1, eq
	mov	x0, x21
	bl	_VdbeCoverageNeverNullIf
	cmp	w20, #2
	cset	w1, eq
	mov	x0, x21
	bl	_VdbeCoverageNeverNullIf
	cmp	w20, #3
	cset	w1, eq
	mov	x0, x21
	bl	_VdbeCoverageNeverNullIf
	cmp	w20, #4
	cset	w1, eq
	mov	x0, x21
	bl	_VdbeCoverageNeverNullIf
	mov	x0, x19
	bl	_sqlite3MayAbort
Lloh26:
	adrp	x8, _OP_Halt@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OP_Halt@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _SQLITE_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SQLITE_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _OE_Abort@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OE_Abort@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_sqlite3VdbeAddOp2
Lloh35:
	adrp	x8, _windowCheckValue.azErr@PAGE
Lloh36:
	add	x8, x8, _windowCheckValue.azErr@PAGEOFF
	ldr	x1, [x8, w20, sxtw #3]
	ldr	w2, [x27]
	mov	x0, x21
	bl	_sqlite3VdbeAppendP4
	mov	x0, x19
	mov	x1, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_sqlite3ReleaseTempReg
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @windowCheckValue.azErr
_windowCheckValue.azErr:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame starting offset must be a non-negative integer"

l_.str.1:                               ; @.str.1
	.asciz	"frame ending offset must be a non-negative integer"

l_.str.2:                               ; @.str.2
	.asciz	"second argument to nth_value must be a positive integer"

l_.str.3:                               ; @.str.3
	.asciz	"frame starting offset must be a non-negative number"

l_.str.4:                               ; @.str.4
	.asciz	"frame ending offset must be a non-negative number"

	.section	__TEXT,__const
	.p2align	2                               ; @windowCheckValue.aOp
_windowCheckValue.aOp:
	.long	129                             ; 0x81
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	129                             ; 0x81
	.long	129                             ; 0x81

	.comm	_OP_Integer,4,2                 ; @OP_Integer
	.comm	_WINDOW_STARTING_NUM,4,2        ; @WINDOW_STARTING_NUM
	.comm	_OP_String8,4,2                 ; @OP_String8
	.section	__TEXT,__cstring,cstring_literals
l_.str.5:                               ; @.str.5
	.space	1

	.comm	_P4_STATIC,4,2                  ; @P4_STATIC
	.comm	_SQLITE_AFF_NUMERIC,4,2         ; @SQLITE_AFF_NUMERIC
	.comm	_SQLITE_JUMPIFNULL,4,2          ; @SQLITE_JUMPIFNULL
	.comm	_OP_MustBeInt,4,2               ; @OP_MustBeInt
	.comm	_OP_Halt,4,2                    ; @OP_Halt
	.comm	_SQLITE_ERROR,4,2               ; @SQLITE_ERROR
	.comm	_OE_Abort,4,2                   ; @OE_Abort
	.no_dead_strip	_windowCheckValue
.subsections_via_symbols
