	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_sqliterc
_process_sqliterc:                      ## @process_sqliterc
	.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	%rdi, %r14
	xorl	%r12d, %r12d
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
	callq	_find_home_dir
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_sqlite3_initialize
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_sqlite3_mprintf
	movq	%rax, %rbx
	movq	%rax, %r15
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r13
	movq	_stdin_is_interactive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf
LBB0_8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_process_input
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_fclose
LBB0_9:
	movq	%r15, %rdi
	callq	_sqlite3_free
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Argv0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Error: cannot locate your home directory\n"

	.comm	_Argv0,8,3                      ## @Argv0
L_.str.1:                               ## @.str.1
	.asciz	"%s/.sqliterc"

L_.str.2:                               ## @.str.2
	.asciz	"rb"

	.comm	_stdin_is_interactive,8,3       ## @stdin_is_interactive
L_.str.3:                               ## @.str.3
	.asciz	"-- Loading resources from %s\n"

	.no_dead_strip	_process_sqliterc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_sqliterc
_process_sqliterc:                      ; @process_sqliterc
	.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
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x21, x1
	mov	x20, #0
	b	LBB0_4
LBB0_2:
	bl	_find_home_dir
	cbz	x0, LBB0_11
; %bb.3:
	mov	x20, x0
	bl	_sqlite3_initialize
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_sqlite3_mprintf
	mov	x21, x0
	mov	x20, x0
LBB0_4:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fopen
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
Lloh4:
	adrp	x8, _stdin_is_interactive@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stdin_is_interactive@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_fprintf
LBB0_7:
	mov	x0, x19
	mov	x1, x22
	bl	_process_input
	mov	x19, x0
	mov	x0, x22
	bl	_fclose
	b	LBB0_9
LBB0_8:
	mov	w19, #0
LBB0_9:
	mov	x0, x20
	bl	_sqlite3_free
LBB0_10:
	mov	x0, x19
	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_11:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _Argv0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Argv0@GOTPAGEOFF]
Lloh17:
	ldr	x2, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w19, #1
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Error: cannot locate your home directory\n"

	.comm	_Argv0,8,3                      ; @Argv0
l_.str.1:                               ; @.str.1
	.asciz	"%s/.sqliterc"

l_.str.2:                               ; @.str.2
	.asciz	"rb"

	.comm	_stdin_is_interactive,8,3       ; @stdin_is_interactive
l_.str.3:                               ; @.str.3
	.asciz	"-- Loading resources from %s\n"

	.no_dead_strip	_process_sqliterc
.subsections_via_symbols
