	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_free                   ## -- Begin function sqlite3_free
	.p2align	4, 0x90
_sqlite3_free:                          ## @sqlite3_free
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	_MEMTYPE_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sqlite3MemdebugNoType
	movl	%eax, %edi
	callq	_assert
	movq	_MEMTYPE_HEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sqlite3MemdebugHasType
	movl	%eax, %edi
	callq	_assert
	movq	_sqlite3GlobalConfig@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.4:
	movq	_mem0@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rax, %r12
	callq	_sqlite3_mutex_enter
	movq	_SQLITE_STATUS_MEMORY_USED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_sqlite3MallocSize
	negl	%eax
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_sqlite3StatusAdd
	movq	_SQLITE_STATUS_MALLOC_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_sqlite3StatusAdd
	movq	%rbx, %rdi
	callq	*(%r12)
	movl	(%r15), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_mutex_leave            ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MEMTYPE_DB,4,2                 ## @MEMTYPE_DB
	.comm	_MEMTYPE_HEAP,4,2               ## @MEMTYPE_HEAP
	.comm	_sqlite3GlobalConfig,16,3       ## @sqlite3GlobalConfig
	.comm	_mem0,4,2                       ## @mem0
	.comm	_SQLITE_STATUS_MEMORY_USED,4,2  ## @SQLITE_STATUS_MEMORY_USED
	.comm	_SQLITE_STATUS_MALLOC_COUNT,4,2 ## @SQLITE_STATUS_MALLOC_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_free                   ; -- Begin function sqlite3_free
	.p2align	2
_sqlite3_free:                          ; @sqlite3_free
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _MEMTYPE_DB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEMTYPE_DB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sqlite3MemdebugNoType
	bl	_assert
Lloh3:
	adrp	x8, _MEMTYPE_HEAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEMTYPE_HEAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3MemdebugHasType
	bl	_assert
Lloh6:
	adrp	x21, _sqlite3GlobalConfig@GOTPAGE
Lloh7:
	ldr	x21, [x21, _sqlite3GlobalConfig@GOTPAGEOFF]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh8:
	adrp	x22, _mem0@GOTPAGE
Lloh9:
	ldr	x22, [x22, _mem0@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_sqlite3_mutex_enter
Lloh10:
	adrp	x8, _SQLITE_STATUS_MEMORY_USED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_STATUS_MEMORY_USED@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_sqlite3MallocSize
	neg	w1, w0
	mov	x0, x20
	bl	_sqlite3StatusAdd
Lloh13:
	adrp	x8, _SQLITE_STATUS_MALLOC_COUNT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SQLITE_STATUS_MALLOC_COUNT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_sqlite3StatusAdd
	ldr	x8, [x21]
	mov	x0, x19
	blr	x8
	ldr	w0, [x22]
	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
	b	_sqlite3_mutex_leave
LBB0_3:
	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_4:
	ldr	x1, [x21]
	mov	x0, x19
	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
	br	x1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMTYPE_DB,4,2                 ; @MEMTYPE_DB
	.comm	_MEMTYPE_HEAP,4,2               ; @MEMTYPE_HEAP
	.comm	_sqlite3GlobalConfig,16,3       ; @sqlite3GlobalConfig
	.comm	_mem0,4,2                       ; @mem0
	.comm	_SQLITE_STATUS_MEMORY_USED,4,2  ; @SQLITE_STATUS_MEMORY_USED
	.comm	_SQLITE_STATUS_MALLOC_COUNT,4,2 ; @SQLITE_STATUS_MALLOC_COUNT
.subsections_via_symbols
