	.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_HEAP@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_sqlite3MemdebugHasType
	movl	%eax, %edi
	callq	_assert
	movl	(%r14), %esi
	notl	%esi
	movq	%rbx, %rdi
	callq	_sqlite3MemdebugNoType
	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
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_sqlite3StatusDown
	movq	_SQLITE_STATUS_MALLOC_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_sqlite3StatusDown
	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_HEAP,8,3               ## @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	x20, _MEMTYPE_HEAP@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MEMTYPE_HEAP@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_sqlite3MemdebugHasType
	bl	_assert
	ldr	w8, [x20]
	mvn	w1, w8
	mov	x0, x19
	bl	_sqlite3MemdebugNoType
	bl	_assert
Lloh2:
	adrp	x21, _sqlite3GlobalConfig@GOTPAGE
Lloh3:
	ldr	x21, [x21, _sqlite3GlobalConfig@GOTPAGEOFF]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh4:
	adrp	x22, _mem0@GOTPAGE
Lloh5:
	ldr	x22, [x22, _mem0@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_sqlite3_mutex_enter
Lloh6:
	adrp	x8, _SQLITE_STATUS_MEMORY_USED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_STATUS_MEMORY_USED@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_sqlite3MallocSize
	mov	x1, x0
	mov	x0, x20
	bl	_sqlite3StatusDown
Lloh9:
	adrp	x8, _SQLITE_STATUS_MALLOC_COUNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SQLITE_STATUS_MALLOC_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_sqlite3StatusDown
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMTYPE_HEAP,8,3               ; @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
