	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resetAccumulator
_resetAccumulator:                      ## @resetAccumulator
	.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	(%rsi), %eax
	addl	4(%rsi), %eax
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	_OP_Null@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	12(%r13), %rcx
	movslq	8(%r13), %r8
	xorl	%r12d, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_sqlite3VdbeAddOp3
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.2:
	movq	16(%r13), %r15
	addq	$8, %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sqlite3ErrorMsg
	movl	$-1, (%r15)
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	addq	$24, %r15
	cmpl	(%r13), %r12d
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r15)
	js	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rbx
	movq	_EP_xIsSelect@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ExprHasProperty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, (%rsi)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3KeyInfoFromExprList
	movq	_OP_OpenEphemeral@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r15), %edx
	movq	_P4_KEYINFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rax, %r9
	callq	_sqlite3VdbeAddOp4
	jmp	LBB0_8
LBB0_9:
	addq	$24, %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	_EP_xIsSelect,4,2               ## @EP_xIsSelect
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DISTINCT aggregates must have exactly one argument"

	.comm	_OP_OpenEphemeral,4,2           ## @OP_OpenEphemeral
	.comm	_P4_KEYINFO,4,2                 ## @P4_KEYINFO
	.no_dead_strip	_resetAccumulator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resetAccumulator
_resetAccumulator:                      ; @resetAccumulator
	.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
	ldp	w8, w9, [x1]
	cmn	w8, w9
	b.eq	LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _OP_Null@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OP_Null@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldpsw	x4, x3, [x19, #8]
	mov	x0, x21
	mov	w2, #0
	bl	_sqlite3VdbeAddOp3
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	w24, #0
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x25, _EP_xIsSelect@GOTPAGE
Lloh4:
	ldr	x25, [x25, _EP_xIsSelect@GOTPAGEOFF]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	add	x26, x8, #8
	mov	w27, #-1
Lloh7:
	adrp	x28, _P4_KEYINFO@GOTPAGE
Lloh8:
	ldr	x28, [x28, _P4_KEYINFO@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_sqlite3ErrorMsg
	str	w27, [x26]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	ldr	w8, [x19]
	add	x26, x26, #24
	cmp	w24, w8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	tbnz	w8, #31, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x23, [x26, #8]
	ldr	w1, [x25]
	mov	x0, x23
	bl	_ExprHasProperty
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	x1, [x23]
	cbz	x1, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x1]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_sqlite3KeyInfoFromExprList
	mov	x5, x0
Lloh9:
	adrp	x8, _OP_OpenEphemeral@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OP_OpenEphemeral@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x26]
	ldr	w6, [x28]
	mov	x0, x21
	mov	w3, #0
	mov	w4, #0
	bl	_sqlite3VdbeAddOp4
	b	LBB0_4
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_Null,4,2                    ; @OP_Null
	.comm	_EP_xIsSelect,4,2               ; @EP_xIsSelect
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DISTINCT aggregates must have exactly one argument"

	.comm	_OP_OpenEphemeral,4,2           ; @OP_OpenEphemeral
	.comm	_P4_KEYINFO,4,2                 ; @P4_KEYINFO
	.no_dead_strip	_resetAccumulator
.subsections_via_symbols
