	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function destroyRootPage
_destroyRootPage:                       ## @destroyRootPage
	.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
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_sqlite3GetVdbe
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_sqlite3GetTempReg
	movl	%eax, %r15d
	cmpl	$1, %r14d
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sqlite3ErrorMsg
LBB0_2:
	movq	_OP_Destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_sqlite3VdbeAddOp3
	movq	%rbx, %rdi
	callq	_sqlite3MayAbort
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_MASTER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_sqlite3NestedParse
	movq	%rbx, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3ReleaseTempReg          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"corrupt schema"

	.comm	_OP_Destroy,4,2                 ## @OP_Destroy
L_.str.1:                               ## @.str.1
	.asciz	"UPDATE %Q.%s SET rootpage=%d WHERE #%d AND rootpage=#%d"

	.comm	_MASTER_NAME,4,2                ## @MASTER_NAME
	.no_dead_strip	_destroyRootPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function destroyRootPage
_destroyRootPage:                       ; @destroyRootPage
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_sqlite3GetVdbe
	mov	x23, x0
	mov	x0, x19
	bl	_sqlite3GetTempReg
	mov	x21, x0
	cmp	w20, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sqlite3ErrorMsg
LBB0_2:
Lloh2:
	adrp	x8, _OP_Destroy@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OP_Destroy@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_sqlite3VdbeAddOp3
	mov	x0, x19
	bl	_sqlite3MayAbort
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w2, [x8, w22, sxtw #2]
Lloh5:
	adrp	x8, _MASTER_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MASTER_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	mov	x5, x21
	mov	x6, x21
	bl	_sqlite3NestedParse
	mov	x0, x19
	mov	x1, x21
	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
	b	_sqlite3ReleaseTempReg
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"corrupt schema"

	.comm	_OP_Destroy,4,2                 ; @OP_Destroy
l_.str.1:                               ; @.str.1
	.asciz	"UPDATE %Q.%s SET rootpage=%d WHERE #%d AND rootpage=#%d"

	.comm	_MASTER_NAME,4,2                ; @MASTER_NAME
	.no_dead_strip	_destroyRootPage
.subsections_via_symbols
