	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_db
_open_db:                               ## @open_db
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_sqlite3_initialize
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_sqlite3_open
	movq	(%rbx), %rdi
	movq	_db@GOTPCREL(%rip), %r15
	movq	%rdi, (%r15)
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.2:
	callq	_sqlite3_errcode
	movq	_SQLITE_OK@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	movq	_SQLITE_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_shellstaticFunc@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	$0
	callq	_sqlite3_create_function
	addq	$16, %rsp
LBB0_4:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	movq	(%r14), %r14
	callq	_sqlite3_errcode
	cmpq	%rax, %r14
	jne	LBB0_7
## %bb.9:
	movq	(%rbx), %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_enable_load_extension  ## TAILCALL
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_7:
	movq	(%r15), %r14
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%rbx), %rbx
	movq	%r14, %rdi
	callq	_sqlite3_errmsg
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_db,8,3                         ## @db
	.comm	_SQLITE_OK,8,3                  ## @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shellstatic"

	.comm	_SQLITE_UTF8,4,2                ## @SQLITE_UTF8
	.comm	_shellstaticFunc,4,2            ## @shellstaticFunc
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Error: unable to open database \"%s\": %s\n"

	.no_dead_strip	_open_db
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_db
_open_db:                               ; @open_db
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	bl	_sqlite3_initialize
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_sqlite3_open
	ldr	x0, [x19]
Lloh0:
	adrp	x20, _db@GOTPAGE
Lloh1:
	ldr	x20, [x20, _db@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_9
; %bb.3:
	bl	_sqlite3_errcode
Lloh2:
	adrp	x21, _SQLITE_OK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SQLITE_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x20]
Lloh4:
	adrp	x8, _SQLITE_UTF8@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_UTF8@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x8, _shellstaticFunc@GOTPAGE
Lloh8:
	ldr	x8, [x8, _shellstaticFunc@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	mov	w4, #0
	mov	w6, #0
	mov	w7, #0
	bl	_sqlite3_create_function
LBB0_5:
	ldr	x0, [x20]
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x21, [x21]
	bl	_sqlite3_errcode
	cmp	x21, x0
	b.ne	LBB0_8
; %bb.7:
	ldr	x0, [x19]
	mov	w1, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sqlite3_enable_load_extension
LBB0_8:
	ldr	x0, [x20]
LBB0_9:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	ldr	x19, [x19, #8]
	bl	_sqlite3_errmsg
	mov	x3, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_db,8,3                         ; @db
	.comm	_SQLITE_OK,8,3                  ; @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shellstatic"

	.comm	_SQLITE_UTF8,4,2                ; @SQLITE_UTF8
	.comm	_shellstaticFunc,4,2            ; @shellstaticFunc
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Error: unable to open database \"%s\": %s\n"

	.no_dead_strip	_open_db
.subsections_via_symbols
