	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3MemTraceActivate        ## -- Begin function sqlite3MemTraceActivate
	.p2align	4, 0x90
_sqlite3MemTraceActivate:               ## @sqlite3MemTraceActivate
	.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, %rbx
	movq	_SQLITE_OK@GOTPCREL(%rip), %r14
	movq	_memtraceBase@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	jmp	LBB0_4
LBB0_2:
	movq	_SQLITE_CONFIG_GETMALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_memtraceBase@GOTPCREL(%rip), %rsi
	callq	_sqlite3_config
	cmpl	(%r14), %eax
	jne	LBB0_4
## %bb.3:
	movq	_SQLITE_CONFIG_MALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ersaztMethods@GOTPCREL(%rip), %rsi
	callq	_sqlite3_config
LBB0_4:
	movq	_memtraceOut@GOTPCREL(%rip), %rcx
	movq	%rbx, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_memtraceBase,8,3               ## @memtraceBase
	.comm	_SQLITE_CONFIG_GETMALLOC,4,2    ## @SQLITE_CONFIG_GETMALLOC
	.comm	_SQLITE_CONFIG_MALLOC,4,2       ## @SQLITE_CONFIG_MALLOC
	.comm	_ersaztMethods,8,3              ## @ersaztMethods
	.comm	_memtraceOut,8,3                ## @memtraceOut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3MemTraceActivate        ; -- Begin function sqlite3MemTraceActivate
	.p2align	2
_sqlite3MemTraceActivate:               ; @sqlite3MemTraceActivate
	.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
Lloh0:
	adrp	x20, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	adrp	x8, _memtraceBase@GOTPAGE
Lloh3:
	ldr	x8, [x8, _memtraceBase@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _SQLITE_CONFIG_GETMALLOC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_CONFIG_GETMALLOC@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, _memtraceBase@GOTPAGE
Lloh9:
	ldr	x1, [x1, _memtraceBase@GOTPAGEOFF]
	bl	_sqlite3_config
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _SQLITE_CONFIG_MALLOC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_CONFIG_MALLOC@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, _ersaztMethods@GOTPAGE
Lloh14:
	ldr	x1, [x1, _ersaztMethods@GOTPAGEOFF]
	bl	_sqlite3_config
LBB0_4:
Lloh15:
	adrp	x8, _memtraceOut@GOTPAGE
Lloh16:
	ldr	x8, [x8, _memtraceOut@GOTPAGEOFF]
Lloh17:
	str	x19, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_memtraceBase,8,3               ; @memtraceBase
	.comm	_SQLITE_CONFIG_GETMALLOC,4,2    ; @SQLITE_CONFIG_GETMALLOC
	.comm	_SQLITE_CONFIG_MALLOC,4,2       ; @SQLITE_CONFIG_MALLOC
	.comm	_ersaztMethods,8,3              ; @ersaztMethods
	.comm	_memtraceOut,8,3                ; @memtraceOut
.subsections_via_symbols
