	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	48(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	callq	_sqlite3VdbeFrameRestore
LBB0_3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	movq	32(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_sqlite3VdbeFreeCursor
	movq	32(%r14), %rax
	movq	$0, -8(%rax,%rbx,8)
	movl	(%r14), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r14), %rcx
	incq	%rbx
	jmp	LBB0_6
LBB0_10:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:
	addq	$4, %rdi
	movl	16(%r14), %esi
	callq	_releaseMemArray
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rdi), %rax
	movq	%rax, 8(%r14)
	callq	_sqlite3VdbeFrameDelete
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_12
## %bb.14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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
LBB0_3:
	stp	xzr, xzr, [x19, #40]
	ldr	x9, [x19, #32]
	cbz	x9, LBB0_9
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x20, #0
	ldr	x1, [x9, x20, lsl #3]
	cbz	x1, LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_sqlite3VdbeFreeCursor
	ldr	x8, [x19, #32]
	str	xzr, [x8, x20, lsl #3]
	ldr	w8, [x19]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x19, #32]
	ldr	x1, [x9, x20, lsl #3]
	cbnz	x1, LBB0_6
	b	LBB0_7
LBB0_9:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
; %bb.10:
	add	x0, x8, #4
	ldr	w1, [x19, #16]
	bl	_releaseMemArray
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x0]
	str	x8, [x19, #8]
	bl	_sqlite3VdbeFrameDelete
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_11
; %bb.13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_closeAllCursors
.subsections_via_symbols
