	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dropCell
_dropCell:                              ## @dropCell
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rcx)
	jne	LBB0_12
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	testl	%esi, %esi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	js	LBB0_2
## %bb.3:
	xorl	%edi, %edi
	cmpl	%ebx, (%r12)
	setg	%dil
	jmp	LBB0_4
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	callq	_assert
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_cellSize
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	sete	%dil
	callq	_assert
	movl	40(%r12), %edi
	callq	_sqlite3PagerIswriteable
	movl	%eax, %edi
	callq	_assert
	movq	24(%r12), %rax
	movl	8(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movq	32(%r12), %r15
	addl	%ebx, %ebx
	movslq	%ebx, %rbx
	shlq	$2, %rbx
	addq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_get2byte
	movq	%rax, %r13
	movslq	4(%r12), %rax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rax,4), %r15
	addq	$20, %r15
	movq	%r15, %rdi
	callq	_get2byte
	xorl	%edi, %edi
	cmpq	%rax, %r13
	sete	%dil
	callq	_testcase
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movslq	%r14d, %r14
	addq	%r13, %r14
	movq	24(%r12), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r14
	sete	%dil
	callq	_testcase
	movq	%r15, %rdi
	callq	_get2byte
	cmpq	%rax, %r13
	jl	LBB0_6
## %bb.5:
	movq	24(%r12), %rax
	cmpq	(%rax), %r14
	jle	LBB0_7
LBB0_6:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_freeSpace
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:
	movq	16(%r12), %rax
	movslq	(%r12), %rcx
	leaq	(%rax,%rcx,8), %r14
	addq	$-8, %r14
	movq	%rbx, %rdi
	callq	_SQLITE_PTR_TO_INT
	notl	%eax
	andl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	cmpq	%r14, %rbx
	jae	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %eax
	movl	%eax, (%rbx)
	leaq	8(%rbx), %rax
	movq	%rax, %rbx
	cmpq	%r14, %rax
	jb	LBB0_10
LBB0_11:
	movl	(%r12), %esi
	decl	%esi
	movl	%esi, (%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdi
	addq	$12, %rdi
	callq	_put2byte
	addl	$2, 8(%r12)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ## @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_dropCell
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dropCell
_dropCell:                              ; @dropCell
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x3]
	cbnz	w8, LBB0_7
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	tbnz	w1, #31, LBB0_3
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, w20
	cset	w0, gt
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	bl	_assert
	mov	x0, x19
	mov	x1, x20
	bl	_cellSize
	cmp	w0, w22
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19, #40]
	bl	_sqlite3PagerIswriteable
	bl	_assert
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	x24, [x19, #32]
	ldr	x27, [x19, #16]
	lsl	w28, w20, #1
	add	x20, x27, w28, sxtw #2
	mov	x0, x20
	bl	_get2byte
	mov	x23, x0
	ldr	w26, [x19, #4]
	add	w8, w26, #5
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	add	x24, x24, w8, sxtw #2
	mov	x0, x24
	bl	_get2byte
	cmp	x23, x0
	cset	w0, eq
	bl	_testcase
	add	x25, x23, w22, sxtw
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cmp	x25, x8
	cset	w0, eq
	bl	_testcase
	mov	x0, x24
	bl	_get2byte
	cmp	x23, x0
	b.lt	LBB0_6
; %bb.5:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cmp	x25, x8
	b.le	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_freeSpace
	cbz	w0, LBB0_10
; %bb.9:
	str	w0, [x21]
	b	LBB0_7
LBB0_10:
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19]
	lsl	x9, x9, #1
	sub	x9, x9, #2
	add	x21, x8, x9, lsl #2
	mov	x0, x20
	bl	_SQLITE_PTR_TO_INT
	mvn	w8, w0
	and	w0, w8, #0x1
	bl	_assert
	cmp	x20, x21
	b.hs	LBB0_17
; %bb.11:
	sxtw	x10, w28
	lsl	x8, x10, #2
	add	x9, x8, x27
	add	x9, x9, #8
	cmp	x9, x21
	csel	x9, x9, x21, hi
	mvn	x11, x27
	add	x9, x9, x11
	sub	x8, x9, x8
	cmp	x8, #24
	b.lo	LBB0_15
; %bb.12:
	lsr	x8, x8, #3
	add	x8, x8, #1
	and	x9, x8, #0x3ffffffffffffffc
	add	x20, x20, x9, lsl #3
	add	x10, x27, x10, lsl #2
	add	x10, x10, #16
	mov	x11, x9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x10, #-8]
	ldr	w13, [x10]
	ldr	w14, [x10, #8]
	ldr	w15, [x10, #16]
	stur	w12, [x10, #-16]
	stur	w13, [x10, #-8]
	str	w14, [x10]
	str	w15, [x10, #8]
	add	x10, x10, #32
	subs	x11, x11, #4
	b.ne	LBB0_13
; %bb.14:
	cmp	x8, x9
	b.eq	LBB0_17
LBB0_15:
	mov	x8, x20
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8, #8]!
	str	w9, [x20]
	mov	x20, x8
	cmp	x8, x21
	b.lo	LBB0_16
LBB0_17:
	ldr	w8, [x19]
	sub	w1, w8, #1
	str	w1, [x19]
	add	w8, w26, #3
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x0, x9, w8, sxtw #2
	bl	_put2byte
	ldr	w8, [x19, #8]
	add	w8, w8, #2
	str	w8, [x19, #8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_dropCell
.subsections_via_symbols
