	.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	%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
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_sqlite3FindDbName
	movl	%eax, %r12d
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_sqlite3StackAllocZero
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	movq	%rax, %rdi
	callq	_sqlite3OpenTempDatabase
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %esi
	movq	8(%rbx), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_sqlite3Error
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_6
LBB0_9:
	testl	%r12d, %r12d
	jns	LBB0_11
## %bb.10:
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_sqlite3Error
	jmp	LBB0_12
LBB0_2:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_sqlite3Error
	movl	(%rbx), %r13d
	testl	%r13d, %r13d
	jne	LBB0_8
LBB0_11:
	movq	(%r14), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %rbx
	jmp	LBB0_12
LBB0_4:
	xorl	%r13d, %r13d
LBB0_6:
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_sqlite3DbFree
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_sqlite3StackFree
	testl	%r13d, %r13d
	je	LBB0_11
LBB0_8:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_SQLITE_ERROR,4,2               ## @SQLITE_ERROR
L_.str.2:                               ## @.str.2
	.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	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	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:
	mov	x0, x21
	mov	w1, #24
	bl	_sqlite3StackAllocZero
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	str	x19, [x0, #16]
	bl	_sqlite3OpenTempDatabase
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w1, [x22]
	ldr	x8, [x22, #8]
	str	x8, [sp]
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_sqlite3Error
Lloh2:
	adrp	x8, _SQLITE_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	b	LBB0_9
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]
	str	x22, [sp]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_sqlite3Error
	b	LBB0_10
LBB0_6:
Lloh10:
	adrp	x22, _SQLITE_NOMEM@GOTPAGE
Lloh11:
	ldr	x22, [x22, _SQLITE_NOMEM@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_sqlite3Error
	ldr	w23, [x22]
	cbnz	w23, LBB0_10
LBB0_7:
	ldr	x8, [x19]
	ldr	x0, [x8, w20, uxtw #3]
	b	LBB0_11
LBB0_8:
	mov	w23, #0
LBB0_9:
	ldr	x1, [x22, #8]
	mov	x0, x21
	bl	_sqlite3DbFree
	mov	x0, x21
	mov	x1, x22
	bl	_sqlite3StackFree
	cbz	w23, LBB0_7
LBB0_10:
	mov	x0, #0
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 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
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

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

	.no_dead_strip	_findBtree
.subsections_via_symbols
