	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function windowInitAccum
_windowInitAccum:                       ## @windowInitAccum
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_sqlite3GetVdbe
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rcx
	movq	40(%rbx), %r14
	movq	_OP_Null@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sqlite3VdbeAddOp2
	movq	%rbx, %rdi
	callq	_windowArgCount
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_MAX
	movl	%eax, %r13d
	cmpq	$0, (%r15)
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	movq	_nth_valueName@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_first_valueName@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_OP_Integer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rcx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sqlite3VdbeAddOp2
	movq	_OP_Integer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rcx
	incq	%rcx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sqlite3VdbeAddOp2
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_SQLITE_FUNC_MINMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	movq	_TK_UNBOUNDED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_assert
	movq	_OP_ResetSorter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	movq	%r12, %rdi
	callq	_sqlite3VdbeAddOp1
	movq	_OP_Integer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rcx
	incq	%rcx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sqlite3VdbeAddOp2
	jmp	LBB0_10
LBB0_1:
	xorl	%r13d, %r13d
LBB0_11:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %ecx
	leal	1(%rcx), %eax
	addl	%ecx, %r13d
	movl	%r13d, (%rdx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_Null,4,2                    ## @OP_Null
	.comm	_nth_valueName,8,3              ## @nth_valueName
	.comm	_first_valueName,8,3            ## @first_valueName
	.comm	_OP_Integer,4,2                 ## @OP_Integer
	.comm	_SQLITE_FUNC_MINMAX,4,2         ## @SQLITE_FUNC_MINMAX
	.comm	_TK_UNBOUNDED,8,3               ## @TK_UNBOUNDED
	.comm	_OP_ResetSorter,4,2             ## @OP_ResetSorter
	.no_dead_strip	_windowInitAccum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function windowInitAccum
_windowInitAccum:                       ; @windowInitAccum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_sqlite3GetVdbe
	cbz	x20, LBB0_9
; %bb.1:
	mov	x21, x0
	mov	w22, #0
Lloh0:
	adrp	x24, _OP_Null@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OP_Null@GOTPAGEOFF]
Lloh2:
	adrp	x25, _nth_valueName@GOTPAGE
Lloh3:
	ldr	x25, [x25, _nth_valueName@GOTPAGEOFF]
Lloh4:
	adrp	x26, _first_valueName@GOTPAGE
Lloh5:
	ldr	x26, [x26, _first_valueName@GOTPAGEOFF]
Lloh6:
	adrp	x27, _OP_Integer@GOTPAGE
Lloh7:
	ldr	x27, [x27, _OP_Integer@GOTPAGEOFF]
Lloh8:
	adrp	x28, _SQLITE_FUNC_MINMAX@GOTPAGE
Lloh9:
	ldr	x28, [x28, _SQLITE_FUNC_MINMAX@GOTPAGEOFF]
	mov	x23, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x23, #48]
	cbz	x23, LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldp	x3, x19, [x23, #32]
	mov	x0, x21
	mov	w2, #0
	bl	_sqlite3VdbeAddOp2
	mov	x0, x23
	bl	_windowArgCount
	mov	x1, x0
	mov	x0, x22
	bl	_MAX
	mov	x22, x0
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x25]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	ldr	x3, [x23, #16]
	mov	x0, x21
	mov	w2, #0
	bl	_sqlite3VdbeAddOp2
	ldr	w1, [x27]
	ldr	x8, [x23, #16]
	add	x3, x8, #1
	mov	x0, x21
	mov	w2, #0
	bl	_sqlite3VdbeAddOp2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23, #8]
Lloh10:
	adrp	x9, _TK_UNBOUNDED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TK_UNBOUNDED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
Lloh13:
	adrp	x8, _OP_ResetSorter@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OP_ResetSorter@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	x2, [x23, #24]
	mov	x0, x21
	bl	_sqlite3VdbeAddOp1
	ldr	w1, [x27]
	ldr	x8, [x23, #16]
	add	x3, x8, #1
	mov	x0, x21
	mov	w2, #0
	bl	_sqlite3VdbeAddOp2
	b	LBB0_2
LBB0_9:
	mov	w22, #0
LBB0_10:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x9]
	add	w0, w8, #1
	add	w8, w8, w22
	str	w8, [x9]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_Null,4,2                    ; @OP_Null
	.comm	_nth_valueName,8,3              ; @nth_valueName
	.comm	_first_valueName,8,3            ; @first_valueName
	.comm	_OP_Integer,4,2                 ; @OP_Integer
	.comm	_SQLITE_FUNC_MINMAX,4,2         ; @SQLITE_FUNC_MINMAX
	.comm	_TK_UNBOUNDED,8,3               ; @TK_UNBOUNDED
	.comm	_OP_ResetSorter,4,2             ; @OP_ResetSorter
	.no_dead_strip	_windowInitAccum
.subsections_via_symbols
