	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function releaseMemArray
_releaseMemArray:                       ## @releaseMemArray
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	testl	%esi, %esi
	je	LBB0_15
## %bb.2:
	movq	%rdi, %rbx
	movslq	%esi, %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdi,%rax,8), %r14
	movq	(%rdi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rcx)
	jne	LBB0_6
## %bb.3:
	leaq	-40(,%rax,8), %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$40, %rbx
	cmpq	%r14, %rbx
	jae	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	32(%rbx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sqlite3DbFree
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_sqlite3VdbeMemRelease
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_MEM_Undefined@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	addq	$-40, %r13
	cmpq	%r14, %rbx
	jae	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r15
	testq	%r13, %r13
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	cmpq	40(%r15), %rax
	sete	%al
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	$1, %al
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	40(%r15), %rbx
	movzbl	%al, %edi
	callq	_assert
	movq	%r15, %rdi
	callq	_sqlite3VdbeCheckMemInvariants
	movl	%eax, %edi
	callq	_assert
	movq	_MEM_Agg@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	andl	8(%r15), %edi
	callq	_testcase
	movq	_MEM_Dyn@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	andl	8(%r15), %edi
	callq	_testcase
	movq	16(%r15), %rax
	xorl	%edi, %edi
	movq	_sqlite3VdbeFrameMemDel@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_testcase
	movl	(%r12), %eax
	orl	(%r14), %eax
	testl	%eax, 8(%r15)
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 24(%r15)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%r15), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sqlite3DbFreeNN
	movq	$0, 24(%r15)
	jmp	LBB0_14
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEM_Agg,4,2                    ## @MEM_Agg
	.comm	_MEM_Dyn,4,2                    ## @MEM_Dyn
	.comm	_sqlite3VdbeFrameMemDel,8,3     ## @sqlite3VdbeFrameMemDel
	.comm	_MEM_Undefined,4,2              ## @MEM_Undefined
	.no_dead_strip	_releaseMemArray
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function releaseMemArray
_releaseMemArray:                       ; @releaseMemArray
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
                                        ; kill: def $w1 killed $w1 def $x1
	cbz	x0, LBB0_15
; %bb.1:
	cbz	w1, LBB0_15
; %bb.2:
	mov	x19, x0
	mov	w8, #40
	smaddl	x21, w1, w8, x0
	ldr	x20, [x0]
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.3:
	sxtw	x8, w1
	mov	w9, #40
	mul	x8, x8, x9
	sub	x22, x8, #40
Lloh0:
	adrp	x23, _MEM_Agg@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MEM_Agg@GOTPAGEOFF]
Lloh2:
	adrp	x24, _MEM_Dyn@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MEM_Dyn@GOTPAGEOFF]
Lloh4:
	adrp	x25, _sqlite3VdbeFrameMemDel@GOTPAGE
Lloh5:
	ldr	x25, [x25, _sqlite3VdbeFrameMemDel@GOTPAGEOFF]
Lloh6:
	adrp	x26, _MEM_Undefined@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MEM_Undefined@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #40
	cmp	x19, x21
	b.hs	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x19, #32]
	mov	x0, x20
	bl	_sqlite3DbFree
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_sqlite3VdbeMemRelease
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x26]
	str	w8, [x19, #8]
	add	x8, x19, #40
	sub	x22, x22, #40
	mov	x19, x8
	cmp	x8, x21
	b.hs	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x19, #40]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_assert
	mov	x0, x19
	bl	_sqlite3VdbeCheckMemInvariants
	bl	_assert
	ldr	w8, [x19, #8]
	ldr	w9, [x23]
	and	w0, w9, w8
	bl	_testcase
	ldr	w8, [x19, #8]
	ldr	w9, [x24]
	and	w0, w9, w8
	bl	_testcase
	ldr	x8, [x19, #16]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x19, #8]
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x19, #32]
	mov	x0, x20
	bl	_sqlite3DbFreeNN
	str	xzr, [x19, #24]
	b	LBB0_8
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MEM_Agg,4,2                    ; @MEM_Agg
	.comm	_MEM_Dyn,4,2                    ; @MEM_Dyn
	.comm	_sqlite3VdbeFrameMemDel,8,3     ; @sqlite3VdbeFrameMemDel
	.comm	_MEM_Undefined,4,2              ; @MEM_Undefined
	.no_dead_strip	_releaseMemArray
.subsections_via_symbols
