	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function walLimitSize
_walLimitSize:                          ## @walLimitSize
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_sqlite3BeginBenignMalloc
	movl	4(%r14), %edi
	leaq	-32(%rbp), %rsi
	callq	_sqlite3OsFileSize
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.1:
	cmpq	%r15, -32(%rbp)
	jle	LBB0_3
## %bb.2:
	movl	4(%r14), %edi
	movq	%r15, %rsi
	callq	_sqlite3OsTruncate
	movl	%eax, %ebx
LBB0_3:
	xorl	%eax, %eax
	callq	_sqlite3EndBenignMalloc
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_sqlite3_log
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot limit WAL size: %s"

	.no_dead_strip	_walLimitSize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function walLimitSize
_walLimitSize:                          ; @walLimitSize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_sqlite3BeginBenignMalloc
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_sqlite3OsFileSize
	mov	x21, x0
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	cmp	w0, w8
	ccmp	x9, x20, #4, eq
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_sqlite3OsTruncate
	mov	x21, x0
LBB0_2:
	bl	_sqlite3EndBenignMalloc
	cbz	w21, LBB0_4
; %bb.3:
	ldr	w2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_sqlite3_log
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot limit WAL size: %s"

	.no_dead_strip	_walLimitSize
.subsections_via_symbols
