	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mallocWithAlarm
_mallocWithAlarm:                       ## @mallocWithAlarm
	.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
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_mem0@GOTPCREL(%rip), %r12
	movl	8(%r12), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setg	%dil
	callq	_assert
	movq	_sqlite3GlobalConfig@GOTPCREL(%rip), %r13
	movl	%ebx, %edi
	callq	*(%r13)
	movl	%eax, %r15d
	movq	_SQLITE_STATUS_MALLOC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_sqlite3StatusHighwater
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.1:
	movq	_SQLITE_STATUS_MEMORY_USED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sqlite3StatusValue
	movl	(%r12), %ecx
	subl	%r15d, %ecx
	cmpl	%eax, %ecx
	jle	LBB0_2
## %bb.3:
	movl	$0, 4(%r12)
	jmp	LBB0_4
LBB0_2:
	movl	$1, 4(%r12)
	movl	%r15d, %edi
	callq	_sqlite3MallocAlarm
LBB0_4:
	movl	%r15d, %edi
	callq	*8(%r13)
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_sqlite3MallocSize
	movq	_SQLITE_STATUS_MEMORY_USED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_sqlite3StatusUp
	movq	_SQLITE_STATUS_MALLOC_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_sqlite3StatusUp
LBB0_6:
	movq	%rbx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mem0,12,2                      ## @mem0
	.comm	_sqlite3GlobalConfig,16,3       ## @sqlite3GlobalConfig
	.comm	_SQLITE_STATUS_MALLOC_SIZE,4,2  ## @SQLITE_STATUS_MALLOC_SIZE
	.comm	_SQLITE_STATUS_MEMORY_USED,4,2  ## @SQLITE_STATUS_MEMORY_USED
	.comm	_SQLITE_STATUS_MALLOC_COUNT,4,2 ## @SQLITE_STATUS_MALLOC_COUNT
	.comm	_SQLITE_MAX_MEMORY,8,3          ## @SQLITE_MAX_MEMORY
	.no_dead_strip	_mallocWithAlarm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mallocWithAlarm
_mallocWithAlarm:                       ; @mallocWithAlarm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _mem0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mem0@GOTPAGEOFF]
	ldr	w0, [x22, #8]
	bl	_sqlite3_mutex_held
	bl	_assert
	cmp	w21, #0
	cset	w0, gt
	bl	_assert
Lloh2:
	adrp	x23, _sqlite3GlobalConfig@GOTPAGE
Lloh3:
	ldr	x23, [x23, _sqlite3GlobalConfig@GOTPAGEOFF]
	ldr	x8, [x23]
	mov	x0, x21
	blr	x8
	mov	x20, x0
Lloh4:
	adrp	x8, _SQLITE_STATUS_MALLOC_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_STATUS_MALLOC_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_sqlite3StatusHighwater
	ldr	w8, [x22]
Lloh7:
	adrp	x21, _SQLITE_STATUS_MEMORY_USED@GOTPAGE
Lloh8:
	ldr	x21, [x21, _SQLITE_STATUS_MEMORY_USED@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	w0, [x21]
	bl	_sqlite3StatusValue
	ldr	w8, [x22]
	sub	w8, w8, w20
	cmp	w8, w0
	b.le	LBB0_3
; %bb.2:
	str	wzr, [x22, #4]
	b	LBB0_4
LBB0_3:
	mov	w8, #1
	str	w8, [x22, #4]
	mov	x0, x20
	bl	_sqlite3MallocAlarm
LBB0_4:
	ldr	x8, [x23, #8]
	mov	x0, x20
	blr	x8
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_sqlite3MallocSize
	mov	x1, x0
	ldr	w0, [x21]
	bl	_sqlite3StatusUp
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	_sqlite3StatusUp
LBB0_6:
	str	x20, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_mem0,12,2                      ; @mem0
	.comm	_sqlite3GlobalConfig,16,3       ; @sqlite3GlobalConfig
	.comm	_SQLITE_STATUS_MALLOC_SIZE,4,2  ; @SQLITE_STATUS_MALLOC_SIZE
	.comm	_SQLITE_STATUS_MEMORY_USED,4,2  ; @SQLITE_STATUS_MEMORY_USED
	.comm	_SQLITE_STATUS_MALLOC_COUNT,4,2 ; @SQLITE_STATUS_MALLOC_COUNT
	.comm	_SQLITE_MAX_MEMORY,8,3          ; @SQLITE_MAX_MEMORY
	.no_dead_strip	_mallocWithAlarm
.subsections_via_symbols
