	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findBtree
_findBtree:                             ## @findBtree
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_sqlite3FindDbName
	movl	%eax, %r12d
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.1:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r14, -40(%rbp)
	movq	%rbx, %rdi
	callq	_sqlite3OpenTempDatabase
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	-56(%rbp), %esi
	movq	-48(%rbp), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_sqlite3ErrorWithMsg
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sqlite3DbFree
	leaq	-56(%rbp), %rdi
	callq	_sqlite3ParserReset
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	testl	%r12d, %r12d
	jns	LBB0_7
## %bb.5:
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_sqlite3ErrorWithMsg
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sqlite3DbFree
	leaq	-56(%rbp), %rdi
	callq	_sqlite3ParserReset
LBB0_7:
	movq	(%r14), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %rax
LBB0_8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_SQLITE_ERROR,4,2               ## @SQLITE_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"unknown database %s"

	.no_dead_strip	_findBtree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findBtree
_findBtree:                             ; @findBtree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	mov	x1, x2
	bl	_sqlite3FindDbName
	mov	x20, x0
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x19, [sp, #24]
	add	x0, sp, #8
	bl	_sqlite3OpenTempDatabase
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w1, [sp, #8]
	ldr	x3, [sp, #16]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_sqlite3ErrorWithMsg
Lloh2:
	adrp	x8, _SQLITE_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	x1, [sp, #16]
	mov	x0, x21
	bl	_sqlite3DbFree
	add	x0, sp, #8
	bl	_sqlite3ParserReset
	cbz	w22, LBB0_7
; %bb.3:
	mov	x0, #0
	b	LBB0_8
LBB0_4:
	tbz	w20, #31, LBB0_7
; %bb.5:
Lloh5:
	adrp	x8, _SQLITE_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x3, x22
	bl	_sqlite3ErrorWithMsg
	mov	x0, #0
	b	LBB0_8
LBB0_6:
	ldr	x1, [sp, #16]
	mov	x0, x21
	bl	_sqlite3DbFree
	add	x0, sp, #8
	bl	_sqlite3ParserReset
LBB0_7:
	ldr	x8, [x19]
	ldr	x0, [x8, w20, uxtw #3]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_SQLITE_ERROR,4,2               ; @SQLITE_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"unknown database %s"

	.no_dead_strip	_findBtree
.subsections_via_symbols
