	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isSimpleCount
_isSimpleCount:                         ## @isSimpleCount
	.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	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	$0, 24(%rbx)
	sete	%dil
	callq	_assert
	cmpq	$0, 16(%rbx)
	jne	LBB0_11
## %bb.2:
	movq	(%rbx), %rcx
	cmpl	$1, (%rcx)
	jne	LBB0_11
## %bb.3:
	movq	8(%rbx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_11
## %bb.4:
	movq	8(%rax), %rdx
	xorl	%eax, %eax
	cmpq	$0, 8(%rdx)
	jne	LBB0_12
## %bb.5:
	movq	(%rdx), %r14
	movq	8(%rcx), %rcx
	movq	(%rcx), %rbx
	testq	%r14, %r14
	je	LBB0_8
## %bb.6:
	cmpl	$0, (%r14)
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	setne	%al
LBB0_8:
	movl	%eax, %edi
	callq	_assert
	movq	%r14, %rdi
	callq	_IsVirtual
	testq	%rax, %rax
	jne	LBB0_11
## %bb.13:
	movq	(%rbx), %rax
	movq	_TK_AGG_FUNCTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.14:
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	sete	%dil
	callq	_NEVER
	testq	%rax, %rax
	je	LBB0_17
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_SQLITE_FUNC_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.18:
	movq	_EP_Distinct@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, 8(%rbx)
	cmoveq	%r14, %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_TK_AGG_FUNCTION,8,3            ## @TK_AGG_FUNCTION
	.comm	_SQLITE_FUNC_COUNT,4,2          ## @SQLITE_FUNC_COUNT
	.comm	_EP_Distinct,4,2                ## @EP_Distinct
	.no_dead_strip	_isSimpleCount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isSimpleCount
_isSimpleCount:                         ; @isSimpleCount
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x0, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_11
; %bb.1:
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_11
; %bb.2:
	ldr	x9, [x20, #8]
	ldr	w10, [x9]
	cmp	w10, #1
	b.ne	LBB0_11
; %bb.3:
	ldr	x9, [x9, #8]
	ldr	x10, [x9, #8]
	cbnz	x10, LBB0_11
; %bb.4:
	ldr	x20, [x9]
	ldr	x8, [x8, #8]
	ldr	x21, [x8]
	cbz	x20, LBB0_6
; %bb.5:
	ldr	w8, [x20]
	cbz	w8, LBB0_7
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	cmp	x21, #0
	cset	w0, ne
LBB0_8:
	bl	_assert
	mov	x0, x20
	bl	_IsVirtual
	cbnz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _TK_AGG_FUNCTION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TK_AGG_FUNCTION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_NEVER
	cbz	x0, LBB0_13
LBB0_11:
	mov	x0, #0
LBB0_12:
	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
LBB0_13:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SQLITE_FUNC_COUNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SQLITE_FUNC_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.14:
	ldr	w8, [x21, #8]
Lloh6:
	adrp	x9, _EP_Distinct@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EP_Distinct@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x0, x20, xzr, eq
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TK_AGG_FUNCTION,8,3            ; @TK_AGG_FUNCTION
	.comm	_SQLITE_FUNC_COUNT,4,2          ; @SQLITE_FUNC_COUNT
	.comm	_EP_Distinct,4,2                ; @EP_Distinct
	.no_dead_strip	_isSimpleCount
.subsections_via_symbols
