	.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
	pushq	%rax
	.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_16
## %bb.1:
	testl	%esi, %esi
	je	LBB0_16
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movslq	%esi, %r13
	shlq	$4, %r13
	leaq	(%rdi,%r13), %r12
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.3:
	testl	%esi, %esi
	jle	LBB0_16
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_sqlite3DbFree
	addq	$16, %rbx
	cmpq	%r12, %rbx
	jb	LBB0_4
	jmp	LBB0_16
LBB0_5:
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	jle	LBB0_15
## %bb.6:
	addq	$-16, %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_sqlite3VdbeMemRelease
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_MEM_Invalid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	addq	$-16, %r13
	cmpq	%r12, %rbx
	jae	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r15
	testq	%r13, %r13
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	cmpq	16(%r15), %rax
	sete	%al
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movb	$1, %al
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	16(%r15), %rbx
	movzbl	%al, %edi
	callq	_assert
	movq	_MEM_Dyn@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MEM_Agg@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MEM_Frame@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MEM_RowSet@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, 8(%r15)
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%r15), %esi
	testl	%esi, %esi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_sqlite3DbFree
	movl	$0, 12(%r15)
	jmp	LBB0_14
LBB0_15:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
LBB0_16:
	addq	$8, %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	_MEM_Frame,4,2                  ## @MEM_Frame
	.comm	_MEM_RowSet,4,2                 ## @MEM_RowSet
	.comm	_MEM_Invalid,4,2                ## @MEM_Invalid
	.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w1 killed $w1 def $x1
	cbz	x0, LBB0_16
; %bb.1:
	cbz	w1, LBB0_16
; %bb.2:
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x20, #8]
	add	x21, x0, w1, sxtw #4
	cbz	x8, LBB0_5
; %bb.3:
	cmp	w1, #1
	b.lt	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_sqlite3DbFree
	add	x19, x19, #16
	cmp	x19, x21
	b.lo	LBB0_4
	b	LBB0_16
LBB0_5:
	ldr	w22, [x20]
	cmp	w1, #1
	b.lt	LBB0_15
; %bb.6:
	sxtw	x8, w1
	lsl	x8, x8, #4
	sub	x23, x8, #16
Lloh0:
	adrp	x24, _MEM_Agg@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MEM_Agg@GOTPAGEOFF]
Lloh2:
	adrp	x25, _MEM_Dyn@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MEM_Dyn@GOTPAGEOFF]
Lloh4:
	adrp	x26, _MEM_Frame@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MEM_Frame@GOTPAGEOFF]
Lloh6:
	adrp	x27, _MEM_RowSet@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MEM_RowSet@GOTPAGEOFF]
Lloh8:
	adrp	x28, _MEM_Invalid@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MEM_Invalid@GOTPAGEOFF]
	b	LBB0_9
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, [x28]
	str	w8, [x19, #8]
	add	x8, x19, #16
	sub	x23, x23, #16
	mov	x19, x8
	cmp	x8, x21
	b.hs	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x23, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	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
	ldr	w8, [x19, #8]
	ldr	w9, [x24]
	ldr	w10, [x25]
	orr	w9, w10, w9
	ldr	w10, [x26]
	orr	w9, w9, w10
	ldr	w10, [x27]
	orr	w9, w9, w10
	tst	w9, w8
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x19, #12]
	cbz	w1, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_sqlite3DbFree
	str	wzr, [x19, #12]
	b	LBB0_8
LBB0_15:
	str	w22, [x20]
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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	_MEM_Frame,4,2                  ; @MEM_Frame
	.comm	_MEM_RowSet,4,2                 ; @MEM_RowSet
	.comm	_MEM_Invalid,4,2                ; @MEM_Invalid
	.no_dead_strip	_releaseMemArray
.subsections_via_symbols
