	.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_14
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	testl	%esi, %esi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	js	LBB0_2
## %bb.3:
	xorl	%edi, %edi
	cmpl	%r15d, (%r13)
	setg	%dil
	jmp	LBB0_4
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	callq	_assert
	movq	_CORRUPT_DB@GOTPCREL(%rip), %rax
	movl	$1, %edi
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_cellSize
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	sete	%dil
LBB0_6:
	callq	_assert
	movl	56(%r13), %edi
	callq	_sqlite3PagerIswriteable
	movl	%eax, %edi
	callq	_assert
	movq	32(%r13), %rax
	movl	8(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movq	8(%r13), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	48(%r13), %rbx
	leal	(%r15,%r15), %eax
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r15
	shlq	$3, %r15
	addq	40(%r13), %r15
	movq	%r15, %rdi
	callq	_get2byte
	movq	%rax, %r12
	movslq	16(%r13), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax,8), %rdi
	addq	$40, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_get2byte
	xorl	%edi, %edi
	cmpq	%rax, %r12
	sete	%dil
	callq	_testcase
	movl	%r14d, %ebx
	movslq	%r14d, %r14
	addq	%r12, %r14
	movq	32(%r13), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r14
	sete	%dil
	callq	_testcase
	movq	32(%r13), %rax
	cmpq	(%rax), %r14
	jle	LBB0_8
## %bb.7:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_8:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_freeSpace
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r13), %edx
	decl	%edx
	movl	%edx, (%r13)
	je	LBB0_11
## %bb.12:
	leaq	16(%r15), %rsi
	subl	%r14d, %edx
	addl	%edx, %edx
	movq	%r15, %rdi
	callq	_memmove
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rdi
	addq	$24, %rdi
	movl	(%r13), %esi
	callq	_put2byte
	movq	8(%r13), %rax
	addq	$2, %rax
	jmp	LBB0_13
LBB0_11:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%r14,%rbx,8), %rdi
	addq	$8, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	$0, 56(%r14,%rbx,8)
	movq	32(%r13), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_put2byte
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movslq	16(%r13), %rcx
	addq	24(%r13), %rcx
	subq	%rcx, %rax
	addq	$-8, %rax
LBB0_13:
	movq	%rax, 8(%r13)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_CORRUPT_DB,8,3                 ## @CORRUPT_DB
	.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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x3]
	cbnz	w8, LBB0_15
; %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
Lloh0:
	adrp	x8, _CORRUPT_DB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CORRUPT_DB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_cellSize
	cmp	w0, w22
	cset	w0, eq
LBB0_7:
	bl	_assert
	ldr	w0, [x19, #56]
	bl	_sqlite3PagerIswriteable
	bl	_assert
	ldr	x8, [x19, #32]
	ldr	w0, [x8, #8]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	x8, [x19, #8]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldp	x8, x26, [x19, #40]
	lsl	w9, w20, #1
	add	x24, x8, w9, sxtw #3
	mov	x0, x24
	bl	_get2byte
	mov	x25, x0
	ldr	w27, [x19, #16]
	add	w8, w27, #5
	add	x23, x26, w8, sxtw #3
	mov	x0, x23
	bl	_get2byte
	cmp	x25, x0
	cset	w0, eq
	bl	_testcase
	add	x28, x25, w22, sxtw
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	cmp	x28, x8
	cset	w0, eq
	bl	_testcase
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	cmp	x28, x8
	b.le	LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_15
LBB0_9:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x22
	bl	_freeSpace
	cbz	w0, LBB0_11
; %bb.10:
	str	w0, [x21]
	b	LBB0_15
LBB0_11:
	ldr	w8, [x19]
	subs	w8, w8, #1
	str	w8, [x19]
	b.eq	LBB0_13
; %bb.12:
	add	x1, x24, #16
	sub	w8, w8, w20
	lsl	w2, w8, #1
	mov	x0, x24
	bl	_memmove
	add	w8, w27, #3
	add	x0, x26, w8, sxtw #3
	ldr	w1, [x19]
	bl	_put2byte
	ldr	x8, [x19, #8]
	add	x8, x8, #2
	b	LBB0_14
LBB0_13:
	add	w8, w27, #1
	add	x0, x26, w8, sxtw #3
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	w8, w27, #7
	str	xzr, [x26, w8, sxtw #3]
	ldr	x8, [x19, #32]
	ldr	w1, [x8]
	mov	x0, x23
	bl	_put2byte
	ldp	x9, x8, [x19, #24]
	ldr	x8, [x8]
	ldrsw	x10, [x19, #16]
	add	x9, x9, x10
	sub	x8, x8, x9
	sub	x8, x8, #8
LBB0_14:
	str	x8, [x19, #8]
LBB0_15:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CORRUPT_DB,8,3                 ; @CORRUPT_DB
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_dropCell
.subsections_via_symbols
