	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_aggregate_context      ## -- Begin function sqlite3_aggregate_context
	.p2align	4, 0x90
_sqlite3_aggregate_context:             ## @sqlite3_aggregate_context
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
LBB0_3:
	callq	_assert
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movl	%r14d, %edi
	shrl	$31, %edi
	callq	_testcase
	movq	(%rbx), %rax
	movq	_MEM_Agg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	8(%rax), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_createAggContext               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MEM_Agg,4,2                    ## @MEM_Agg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_aggregate_context      ; -- Begin function sqlite3_aggregate_context
	.p2align	2
_sqlite3_aggregate_context:             ; @sqlite3_aggregate_context
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	bl	_assert
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_sqlite3_mutex_held
	bl	_assert
	lsr	w0, w19, #31
	bl	_testcase
	ldr	x8, [x20]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _MEM_Agg@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MEM_Agg@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [x8, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_createAggContext
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MEM_Agg,4,2                    ; @MEM_Agg
.subsections_via_symbols
