	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clearCell
_clearCell:                             ## @clearCell
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	4(%r14), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_btreeParseCellPtr
	movslq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	leaq	(%r15,%rax), %rcx
	addq	$3, %rcx
	movslq	8(%rbx), %rdx
	addq	(%rbx), %rdx
	cmpq	%rdx, %rcx
	jbe	LBB0_3
LBB0_2:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_3:
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_get4byte
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	$5, (%r14)
	setge	%dil
	callq	_assert
	movl	(%r14), %ecx
	addl	$-4, %ecx
	movl	-56(%rbp), %eax
	movl	-60(%rbp), %edx
	addl	%ecx, %edx
	notl	%eax
	addl	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	testl	%r15d, %r15d
	sete	%al
	testl	%ebx, %ebx
	setg	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.4:
	leaq	-52(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -52(%rbp)
	movq	$0, -48(%rbp)
	cmpl	$2, %r15d
	jl	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_btreePagecount
	cmpl	%eax, %r15d
	jg	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, %ebx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rcx
	callq	_getOverflowPage
	testl	%eax, %eax
	jne	LBB0_24
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_btreePageLookup
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%rax), %edi
	callq	_sqlite3PagerPageRefcount
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rsi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_freePage2
	movl	%eax, %r12d
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%rax), %edi
	callq	_sqlite3PagerUnref
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %r15d
	decl	%ebx
	jne	LBB0_5
LBB0_20:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %r12d
LBB0_22:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	%eax, %r12d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ## @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_clearCell
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clearCell
_clearCell:                             ; @clearCell
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w0, [x19, #4]
	bl	_sqlite3_mutex_held
	bl	_assert
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x21
	bl	_btreeParseCellPtr
	ldrsw	x8, [sp, #16]
	cbz	w8, LBB0_19
; %bb.1:
	add	x0, x21, x8
	add	x8, x0, #3
	ldr	x9, [x20]
	ldrsw	x10, [x20, #8]
	add	x9, x9, x10
	cmp	x8, x9
	b.ls	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
	b	LBB0_20
LBB0_3:
	bl	_get4byte
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #4
	cset	w0, gt
	bl	_assert
	ldr	w8, [x19]
	sub	w8, w8, #4
	ldp	w9, w10, [sp, #20]
	mvn	w10, w10
	add	w9, w9, w8
	add	w9, w10, w9
	sdiv	w22, w9, w8
	cmp	w20, #0
	ccmp	w22, #0, #0, ne
	cset	w0, gt
	bl	_assert
	cbz	w22, LBB0_19
; %bb.4:
Lloh2:
	adrp	x23, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #12]
	str	xzr, [sp]
	cmp	w20, #2
	b.lt	LBB0_22
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_btreePagecount
	cmp	w20, w0
	b.gt	LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w22, #1
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, sp
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_getOverflowPage
	cbnz	w0, LBB0_23
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp]
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_btreePageLookup
	str	x0, [sp]
	cbz	x0, LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x0, #12]
	bl	_sqlite3PagerPageRefcount
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w21, [x23]
	ldr	x8, [sp]
	cbnz	x8, LBB0_16
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, #0
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x2, x20
	bl	_freePage2
	mov	x21, x0
	ldr	x8, [sp]
	cbz	x8, LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x8, #12]
	bl	_sqlite3PagerUnref
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w21, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w20, [sp, #12]
	sub	w22, w22, #1
	cbnz	w22, LBB0_5
LBB0_19:
Lloh4:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
LBB0_20:
	ldr	w21, [x8]
LBB0_21:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_22:
	ldr	w21, [x23]
	b	LBB0_21
LBB0_23:
	mov	x21, x0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_clearCell
.subsections_via_symbols
