	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sumStep
_sumStep:                               ## @sumStep
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpl	$1, %esi
	sete	%dil
	callq	_assert
	movl	%ebx, %edi
	callq	_UNUSED_PARAMETER
	movq	%r15, %rdi
	movl	$20, %esi
	callq	_sqlite3_aggregate_context
	movq	%rax, %rbx
	movq	(%r14), %rdi
	callq	_sqlite3_value_numeric_type
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	_SQLITE_NULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.2:
	incl	16(%rbx)
	movq	_SQLITE_INTEGER@GOTPCREL(%rip), %rcx
	movq	(%r14), %rdi
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.3:
	callq	_sqlite3_value_int64
	addl	%eax, 8(%rbx)
	movl	4(%rbx), %ecx
	orl	(%rbx), %ecx
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	addq	$12, %rdi
	movq	%rax, %rsi
	callq	_sqlite3AddInt64
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	$1, 4(%rbx)
	jmp	LBB0_7
LBB0_6:
	callq	_sqlite3_value_double
	addl	%eax, 8(%rbx)
LBB0_7:
	movl	$1, (%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NULL,4,2                ## @SQLITE_NULL
	.comm	_SQLITE_INTEGER,4,2             ## @SQLITE_INTEGER
	.no_dead_strip	_sumStep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sumStep
_sumStep:                               ; @sumStep
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	cmp	w1, #1
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_UNUSED_PARAMETER
	mov	x0, x21
	mov	w1, #20
	bl	_sqlite3_aggregate_context
	mov	x19, x0
	ldr	x0, [x20]
	bl	_sqlite3_value_numeric_type
	cbz	x19, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _SQLITE_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.2:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
Lloh3:
	adrp	x8, _SQLITE_INTEGER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_INTEGER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	ldr	x8, [x20]
	cmp	w0, w9
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x8
	bl	_sqlite3_value_int64
	mov	x1, x0
	ldp	w9, w8, [x19, #4]
	add	w8, w8, w1
	str	w8, [x19, #8]
	ldr	w8, [x19]
	orr	w8, w9, w8
	cbnz	w8, LBB0_8
; %bb.4:
	add	x0, x19, #12
	bl	_sqlite3AddInt64
	cbz	x0, LBB0_8
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_7
LBB0_6:
	mov	x0, x8
	bl	_sqlite3_value_double
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NULL,4,2                ; @SQLITE_NULL
	.comm	_SQLITE_INTEGER,4,2             ; @SQLITE_INTEGER
	.no_dead_strip	_sumStep
.subsections_via_symbols
