	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function closeAllCursors
_closeAllCursors:                       ## @closeAllCursors
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	callq	_sqlite3VdbeFrameRestore
	movq	$0, 48(%rbx)
	movq	$0, (%rbx)
	movl	$1, %edi
	jmp	LBB0_4
LBB0_1:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
LBB0_4:
	callq	_assert
	movq	%rbx, %rdi
	callq	_closeCursorsInFrame
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	movl	32(%rbx), %esi
	callq	_releaseMemArray
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rdi), %rax
	movq	%rax, 24(%rbx)
	callq	_sqlite3VdbeFrameDelete
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.8:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.10:
	leaq	8(%rbx), %rsi
	movl	16(%rbx), %edi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3VdbeDeleteAuxData
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	jmp	LBB0_11
LBB0_9:
	movl	$1, %edi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_closeAllCursors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function closeAllCursors
_closeAllCursors:                       ; @closeAllCursors
	.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, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x8
	ldr	x8, [x8]
	cbnz	x8, LBB0_1
; %bb.2:
	bl	_sqlite3VdbeFrameRestore
	str	xzr, [x19, #48]
	str	xzr, [x19]
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
LBB0_4:
	bl	_assert
	mov	x0, x19
	bl	_closeCursorsInFrame
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w1, [x19, #32]
	bl	_releaseMemArray
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x0]
	str	x8, [x19, #24]
	bl	_sqlite3VdbeFrameDelete
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #24]
	cbnz	x0, LBB0_6
; %bb.8:
	mov	x1, x19
	ldr	x8, [x1, #8]!
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x19, #16]
	mov	w2, #-1
	mov	w3, #0
	bl	_sqlite3VdbeDeleteAuxData
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_11
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_assert
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_closeAllCursors
.subsections_via_symbols
