	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function windowCodeOp
_windowCodeOp:                          ## @windowCodeOp
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	48(%rdi), %rdi
	movq	32(%r13), %r12
	movq	40(%r13), %rbx
	movq	(%rbx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_TK_ROWS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_sqlite3VdbeMakeLabel
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$129, %r14d
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	_TK_UNBOUNDED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	orl	%r15d, -72(%rbp)                ## 4-byte Folded Spill
	sete	%dil
	callq	_assert
	xorl	%r15d, %r15d
	jmp	LBB0_45
LBB0_3:
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
	testl	%r15d, %r15d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_12
## %bb.4:
	movq	(%rbx), %rax
	movq	_TK_RANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.5:
	cmpl	$129, %r14d
	movq	%r12, %rdi
	sete	%r12b
	movq	%rdi, %rbx
	callq	_sqlite3VdbeCurrentAddr
	movq	_WINDOW_AGGSTEP@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	sete	%al
	orb	%r12b, %al
	movzbl	%al, %edi
	callq	_assert
	cmpl	$129, %r14d
	jne	LBB0_10
## %bb.6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_TK_FOLLOWING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	_OP_Le@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r13), %r8d
	movl	24(%r13), %edx
	jmp	LBB0_8
LBB0_11:
	movq	_OP_IfPos@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r8d
	callq	_sqlite3VdbeAddOp3
	movq	%r12, %rdi
	callq	_VdbeCoverage
LBB0_12:
	cmpl	$128, %r14d
	jne	LBB0_15
LBB0_13:
	cmpq	$0, 16(%rbx)
	jne	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_windowAggFinal
	jmp	LBB0_15
LBB0_10:
	movq	_OP_Gt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %edx
	movl	24(%r13), %r8d
	movq	%r13, %rdi
	movl	%r15d, %ecx
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_windowCodeRangeTest
	movq	%rbx, %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$128, %r14d
	je	LBB0_13
	jmp	LBB0_15
LBB0_9:
	movq	_OP_Ge@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r13), %edx
	movl	24(%r13), %r8d
LBB0_8:
	movq	%r13, %rdi
	movl	%r15d, %ecx
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_windowCodeRangeTest
	movq	%rbx, %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:
	movq	%r12, %rdi
	callq	_sqlite3VdbeCurrentAddr
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_23
## %bb.16:
	movq	24(%rbx), %rax
	cmpq	%rax, 8(%rbx)
	jne	LBB0_23
## %bb.17:
	cmpl	$129, %r14d
	jne	LBB0_23
## %bb.18:
	movq	_TK_RANGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	jne	LBB0_23
## %bb.19:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_sqlite3GetTempReg
	movl	%eax, %ebx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_sqlite3GetTempReg
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_OP_Rowid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r13), %edx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	_OP_Rowid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %edx
	movq	%r12, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	_OP_Ge@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_sqlite3VdbeAddOp3
	movq	%r12, %rdi
	callq	_VdbeCoverage
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	callq	_sqlite3ReleaseTempReg
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_sqlite3ReleaseTempReg
	movq	8(%rbx), %rax
	movq	_TK_PRECEDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_TK_FOLLOWING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_20
LBB0_23:
	cmpl	$129, %r14d
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_20
## %bb.24:
	cmpl	$128, %r14d
	jne	LBB0_27
## %bb.25:
	movl	24(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	28(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_windowReturnOneRow
	cmpl	%r14d, (%r13)
	je	LBB0_32
	jmp	LBB0_33
LBB0_20:
	movl	16(%r13), %edx
	movl	20(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpq	$0, 16(%rbx)
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_26
## %bb.21:
	movl	32(%rbx), %edi
	callq	_assert
	movq	_OP_AddImm@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	jmp	LBB0_22
LBB0_27:
	movq	_WINDOW_AGGSTEP@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	sete	%dil
	callq	_assert
	movl	8(%r13), %edx
	movl	12(%r13), %eax
	cmpq	$0, 16(%rbx)
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_29
## %bb.28:
	movl	32(%rbx), %edi
	callq	_assert
	movq	_OP_AddImm@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%rbx), %edx
LBB0_22:
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_sqlite3VdbeAddOp2
	cmpl	%r14d, (%r13)
	jne	LBB0_33
LBB0_32:
	movq	_OP_Delete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_sqlite3VdbeAddOp1
	movq	_OPFLAG_SAVEPOSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sqlite3VdbeChangeP5
LBB0_33:
	movq	_OP_Next@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_sqlite3VdbeCurrentAddr
	testl	%r15d, %r15d
	je	LBB0_34
## %bb.36:
	addl	$2, %eax
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	%r12, %rdi
	callq	_VdbeCoverage
	movq	_OP_Goto@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sqlite3VdbeAddOp0
	movl	%eax, %r15d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -112(%rbp)                ## 8-byte Folded Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_37
	jmp	LBB0_42
LBB0_34:
	xorl	%ecx, %ecx
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r13                ## 8-byte Reload
	cmpq	%r13, %r14
	sete	%cl
	subl	%ecx, %eax
	addl	$2, %eax
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	%r12, %rdi
	callq	_VdbeCoverage
	xorl	%r15d, %r15d
	cmpq	%r13, %r14
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_42
## %bb.35:
	movq	_OP_Goto@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_sqlite3VdbeAddOp2
LBB0_37:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	je	LBB0_38
## %bb.39:
	movl	(%rax), %r14d
	movl	$0, %r12d
	testl	%r14d, %r14d
	je	LBB0_41
## %bb.40:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_sqlite3GetTempRange
	movl	%eax, %r12d
	movl	%r14d, %ecx
	jmp	LBB0_41
LBB0_26:
	movl	4(%r13), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	jmp	LBB0_30
LBB0_38:
	xorl	%r12d, %r12d
LBB0_41:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ecx, %r14d
	movl	%r12d, %edx
	callq	_windowReadPeerValues
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-92(%rbp), %r8d                 ## 4-byte Reload
	callq	_windowIfNewPeer
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_sqlite3ReleaseTempRange
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	-120(%rbp), %r12                ## 8-byte Reload
LBB0_42:
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_44
## %bb.43:
	movq	_OP_Goto@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sqlite3VdbeAddOp2
LBB0_44:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_sqlite3VdbeResolveLabel
LBB0_45:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movl	4(%r13), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
LBB0_30:
	callq	_windowAggStep
	cmpl	%r14d, (%r13)
	je	LBB0_32
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_TK_ROWS,8,3                    ## @TK_ROWS
	.comm	_TK_UNBOUNDED,8,3               ## @TK_UNBOUNDED
	.comm	_TK_RANGE,8,3                   ## @TK_RANGE
	.comm	_WINDOW_AGGSTEP,4,2             ## @WINDOW_AGGSTEP
	.comm	_TK_FOLLOWING,8,3               ## @TK_FOLLOWING
	.comm	_OP_Le,4,2                      ## @OP_Le
	.comm	_OP_Ge,4,2                      ## @OP_Ge
	.comm	_OP_Gt,4,2                      ## @OP_Gt
	.comm	_OP_IfPos,4,2                   ## @OP_IfPos
	.comm	_OP_Rowid,4,2                   ## @OP_Rowid
	.comm	_TK_PRECEDING,8,3               ## @TK_PRECEDING
	.comm	_OP_AddImm,4,2                  ## @OP_AddImm
	.comm	_OP_Delete,4,2                  ## @OP_Delete
	.comm	_OPFLAG_SAVEPOSITION,4,2        ## @OPFLAG_SAVEPOSITION
	.comm	_OP_Next,4,2                    ## @OP_Next
	.comm	_OP_Goto,4,2                    ## @OP_Goto
	.no_dead_strip	_windowCodeOp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function windowCodeOp
_windowCodeOp:                          ; @windowCodeOp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x25, x3
	mov	x27, x2
	mov	x26, x1
	mov	x23, x0
	ldp	x22, x21, [x0, #40]
	ldr	x19, [x0, #32]
	ldr	x24, [x22]
Lloh0:
	adrp	x8, _TK_ROWS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TK_ROWS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x21
	bl	_sqlite3VdbeMakeLabel
	mov	x20, x0
	cmp	w26, #129
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x22, #8]
Lloh3:
	adrp	x9, _TK_UNBOUNDED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TK_UNBOUNDED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	orr	w8, w25, w27
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	mov	w25, #0
	b	LBB0_47
LBB0_3:
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
Lloh6:
	adrp	x24, _TK_RANGE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TK_RANGE@GOTPAGEOFF]
	cmp	w27, #1
	b.lt	LBB0_9
; %bb.4:
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	cmp	w26, #129
	cset	w28, eq
	mov	x0, x19
	bl	_sqlite3VdbeCurrentAddr
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
Lloh8:
	adrp	x8, _WINDOW_AGGSTEP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WINDOW_AGGSTEP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w26
	cset	w8, eq
	orr	w0, w28, w8
	bl	_assert
	cmp	w26, #129
	b.ne	LBB0_12
; %bb.6:
	ldr	x8, [x22, #8]
Lloh11:
	adrp	x9, _TK_FOLLOWING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TK_FOLLOWING@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.7:
Lloh14:
	adrp	x8, _OP_Le@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OP_Le@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x23, #24]
	ldr	w4, [x23, #16]
	b	LBB0_14
LBB0_8:
Lloh17:
	adrp	x8, _OP_IfPos@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OP_IfPos@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x27
	mov	x3, x20
	mov	w4, #1
	bl	_sqlite3VdbeAddOp3
	mov	x0, x19
	bl	_VdbeCoverage
LBB0_9:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w26, #128
	b.ne	LBB0_15
LBB0_10:
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_15
; %bb.11:
	mov	x0, x23
	mov	w1, #0
	bl	_windowAggFinal
	b	LBB0_15
LBB0_12:
Lloh20:
	adrp	x8, _OP_Gt@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OP_Gt@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x23, #8]
	ldr	w4, [x23, #24]
	mov	x0, x23
	mov	x3, x27
	mov	x5, x20
	bl	_windowCodeRangeTest
	cmp	w26, #128
	b.eq	LBB0_10
	b	LBB0_15
LBB0_13:
Lloh23:
	adrp	x8, _OP_Ge@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OP_Ge@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [x23, #16]
	ldr	w4, [x23, #24]
LBB0_14:
	mov	x0, x23
	mov	x3, x27
	mov	x5, x20
	bl	_windowCodeRangeTest
LBB0_15:
	mov	x0, x19
	bl	_sqlite3VdbeCurrentAddr
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	cbz	w27, LBB0_20
; %bb.16:
	ldr	x8, [x22, #8]
	ldr	x9, [x22, #24]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.17:
	cmp	w26, #129
	b.ne	LBB0_20
; %bb.18:
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x21
	bl	_sqlite3GetTempReg
	mov	x24, x0
	mov	x0, x21
	bl	_sqlite3GetTempReg
	mov	x27, x0
Lloh26:
	adrp	x28, _OP_Rowid@GOTPAGE
Lloh27:
	ldr	x28, [x28, _OP_Rowid@GOTPAGEOFF]
	ldr	w1, [x28]
	ldr	w2, [x23, #16]
	mov	x0, x19
	mov	x3, x24
	bl	_sqlite3VdbeAddOp2
	ldr	w1, [x28]
	ldr	w2, [x23, #8]
	mov	x0, x19
	mov	x3, x27
	bl	_sqlite3VdbeAddOp2
Lloh28:
	adrp	x8, _OP_Ge@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OP_Ge@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x27
	mov	x3, x20
	mov	x4, x24
	bl	_sqlite3VdbeAddOp3
	mov	x0, x19
	bl	_VdbeCoverage
	mov	x0, x21
	mov	x1, x24
	bl	_sqlite3ReleaseTempReg
	mov	x0, x21
	mov	x1, x27
	bl	_sqlite3ReleaseTempReg
	ldr	x8, [x22, #8]
Lloh31:
	adrp	x9, _TK_PRECEDING@GOTPAGE
Lloh32:
	ldr	x9, [x9, _TK_PRECEDING@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh34:
	adrp	x9, _TK_FOLLOWING@GOTPAGE
Lloh35:
	ldr	x9, [x9, _TK_FOLLOWING@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	b	LBB0_23
LBB0_20:
	cmp	w26, #129
	b.eq	LBB0_23
; %bb.21:
	cmp	w26, #128
	b.ne	LBB0_25
; %bb.22:
	ldp	w27, w8, [x23, #24]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	mov	x0, x23
	bl	_windowReturnOneRow
	b	LBB0_31
LBB0_23:
	ldp	w27, w8, [x23, #16]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_28
; %bb.24:
	ldr	w0, [x22, #32]
	bl	_assert
Lloh37:
	adrp	x8, _OP_AddImm@GOTPAGE
Lloh38:
	ldr	x8, [x8, _OP_AddImm@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w2, [x22, #16]
	b	LBB0_27
LBB0_25:
Lloh40:
	adrp	x8, _WINDOW_AGGSTEP@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WINDOW_AGGSTEP@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w8, w26
	cset	w0, eq
	bl	_assert
	ldp	w27, w9, [x23, #8]
	ldr	x8, [x22, #16]
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	cbz	x8, LBB0_29
; %bb.26:
	ldr	w0, [x22, #32]
	bl	_assert
Lloh43:
	adrp	x8, _OP_AddImm@GOTPAGE
Lloh44:
	ldr	x8, [x8, _OP_AddImm@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	w2, [x22, #32]
LBB0_27:
	mov	x0, x19
	mov	w3, #1
	bl	_sqlite3VdbeAddOp2
	b	LBB0_31
LBB0_28:
	ldr	w4, [x23, #4]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x27
	mov	w3, #1
	b	LBB0_30
LBB0_29:
	ldr	w4, [x23, #4]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x27
	mov	w3, #0
LBB0_30:
	bl	_windowAggStep
LBB0_31:
	ldr	w8, [x23]
	cmp	w8, w26
	b.ne	LBB0_33
; %bb.32:
Lloh46:
	adrp	x8, _OP_Delete@GOTPAGE
Lloh47:
	ldr	x8, [x8, _OP_Delete@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x27
	bl	_sqlite3VdbeAddOp1
Lloh49:
	adrp	x8, _OPFLAG_SAVEPOSITION@GOTPAGE
Lloh50:
	ldr	x8, [x8, _OPFLAG_SAVEPOSITION@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3VdbeChangeP5
LBB0_33:
Lloh52:
	adrp	x8, _OP_Next@GOTPAGE
Lloh53:
	ldr	x8, [x8, _OP_Next@GOTPAGEOFF]
Lloh54:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_sqlite3VdbeCurrentAddr
Lloh55:
	adrp	x28, _OP_Goto@GOTPAGE
Lloh56:
	ldr	x28, [x28, _OP_Goto@GOTPAGEOFF]
	cbz	w25, LBB0_38
; %bb.34:
	add	w3, w0, #2
	mov	x0, x19
	mov	x1, x24
	mov	x2, x27
	bl	_sqlite3VdbeAddOp2
	mov	x0, x19
	bl	_VdbeCoverage
	ldr	w1, [x28]
	mov	x0, x19
	bl	_sqlite3VdbeAddOp0
	mov	x25, x0
	ldp	x8, x9, [sp, #16]               ; 16-byte Folded Reload
	cmp	x8, x9
	b.eq	LBB0_44
; %bb.35:
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_41
LBB0_36:
	ldr	w26, [x8]
	cbz	w26, LBB0_42
; %bb.37:
	mov	x0, x21
	mov	x1, x26
	bl	_sqlite3GetTempRange
	mov	x24, x0
	b	LBB0_43
LBB0_38:
	ldp	x25, x26, [sp, #16]             ; 16-byte Folded Reload
	cmp	x25, x26
	mov	w8, #1
	cinc	w8, w8, ne
	add	w3, w8, w0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x27
	bl	_sqlite3VdbeAddOp2
	mov	x0, x19
	bl	_VdbeCoverage
	cmp	x25, x26
	b.ne	LBB0_40
; %bb.39:
	mov	w25, #0
	b	LBB0_44
LBB0_40:
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	bl	_sqlite3VdbeAddOp2
	mov	w25, #0
	ldr	x8, [x22, #40]
	cbnz	x8, LBB0_36
LBB0_41:
	mov	w26, #0
LBB0_42:
	mov	w24, #0
LBB0_43:
	mov	x0, x23
	mov	x1, x27
	mov	x2, x24
	bl	_windowReadPeerValues
	ldr	x1, [x22, #40]
	mov	x0, x21
	mov	x2, x24
	ldp	w3, w4, [sp, #4]                ; 8-byte Folded Reload
	bl	_windowIfNewPeer
	mov	x0, x21
	mov	x1, x24
	mov	x2, x26
	bl	_sqlite3ReleaseTempRange
LBB0_44:
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w3, LBB0_46
; %bb.45:
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #0
	bl	_sqlite3VdbeAddOp2
LBB0_46:
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3VdbeResolveLabel
LBB0_47:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_TK_ROWS,8,3                    ; @TK_ROWS
	.comm	_TK_UNBOUNDED,8,3               ; @TK_UNBOUNDED
	.comm	_TK_RANGE,8,3                   ; @TK_RANGE
	.comm	_WINDOW_AGGSTEP,4,2             ; @WINDOW_AGGSTEP
	.comm	_TK_FOLLOWING,8,3               ; @TK_FOLLOWING
	.comm	_OP_Le,4,2                      ; @OP_Le
	.comm	_OP_Ge,4,2                      ; @OP_Ge
	.comm	_OP_Gt,4,2                      ; @OP_Gt
	.comm	_OP_IfPos,4,2                   ; @OP_IfPos
	.comm	_OP_Rowid,4,2                   ; @OP_Rowid
	.comm	_TK_PRECEDING,8,3               ; @TK_PRECEDING
	.comm	_OP_AddImm,4,2                  ; @OP_AddImm
	.comm	_OP_Delete,4,2                  ; @OP_Delete
	.comm	_OPFLAG_SAVEPOSITION,4,2        ; @OPFLAG_SAVEPOSITION
	.comm	_OP_Next,4,2                    ; @OP_Next
	.comm	_OP_Goto,4,2                    ; @OP_Goto
	.no_dead_strip	_windowCodeOp
.subsections_via_symbols
