	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sqlite3MemInit
_sqlite3MemInit:                        ## @sqlite3MemInit
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	__sqliteZone_@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	movq	$4, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-20(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	cmpl	$2, -20(%rbp)
	jl	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_malloc_default_zone
	movq	%rax, (%rbx)
	jmp	LBB0_4
LBB0_3:
	movl	$4096, %edi                     ## imm = 0x1000
	xorl	%esi, %esi
	callq	_malloc_create_zone
	movq	%rax, (%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_malloc_set_zone_name
LBB0_4:
	movq	%r14, %rdi
	callq	_UNUSED_PARAMETER
LBB0_5:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__sqliteZone_,8,3               ## @_sqliteZone_
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw.ncpu"

L_.str.1:                               ## @.str.1
	.asciz	"Sqlite_Heap"

	.no_dead_strip	_sqlite3MemInit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sqlite3MemInit
_sqlite3MemInit:                        ; @sqlite3MemInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x20, __sqliteZone_@GOTPAGE
Lloh1:
	ldr	x20, [x20, __sqliteZone_@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	w8, #4
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #12
	mov	x2, sp
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	ldr	w8, [sp, #12]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
	bl	_malloc_default_zone
	str	x0, [x20]
	b	LBB0_4
LBB0_3:
	mov	w0, #4096
	mov	w1, #0
	bl	_malloc_create_zone
	str	x0, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_malloc_set_zone_name
LBB0_4:
	mov	x0, x19
	bl	_UNUSED_PARAMETER
LBB0_5:
Lloh6:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	__sqliteZone_,8,3               ; @_sqliteZone_
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw.ncpu"

l_.str.1:                               ; @.str.1
	.asciz	"Sqlite_Heap"

	.no_dead_strip	_sqlite3MemInit
.subsections_via_symbols
