	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_shutdown               ## -- Begin function sqlite3_shutdown
	.p2align	4, 0x90
_sqlite3_shutdown:                      ## @sqlite3_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_sqlite3GlobalConfig@GOTPCREL(%rip), %rbx
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_sqlite3_os_end
	xorl	%eax, %eax
	callq	_sqlite3_reset_auto_extension
	movq	$0, 24(%rbx)
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_sqlite3PcacheShutdown
	movq	$0, 16(%rbx)
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_sqlite3MallocEnd
	movq	$0, 8(%rbx)
	movq	_sqlite3_data_directory@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_sqlite3_temp_directory@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_6:
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_sqlite3MutexEnd
	movq	$0, (%rbx)
LBB0_8:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sqlite3GlobalConfig,32,3       ## @sqlite3GlobalConfig
	.comm	_sqlite3_data_directory,8,3     ## @sqlite3_data_directory
	.comm	_sqlite3_temp_directory,8,3     ## @sqlite3_temp_directory
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_shutdown               ; -- Begin function sqlite3_shutdown
	.p2align	2
_sqlite3_shutdown:                      ; @sqlite3_shutdown
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _sqlite3GlobalConfig@GOTPAGE
Lloh1:
	ldr	x19, [x19, _sqlite3GlobalConfig@GOTPAGEOFF]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_sqlite3_os_end
	bl	_sqlite3_reset_auto_extension
	str	xzr, [x19, #24]
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_sqlite3PcacheShutdown
	str	xzr, [x19, #16]
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	bl	_sqlite3MallocEnd
	str	xzr, [x19, #8]
Lloh2:
	adrp	x8, _sqlite3_data_directory@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sqlite3_data_directory@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
Lloh5:
	adrp	x8, _sqlite3_temp_directory@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sqlite3_temp_directory@GOTPAGEOFF]
Lloh7:
	str	xzr, [x8]
LBB0_6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	bl	_sqlite3MutexEnd
	str	xzr, [x19]
LBB0_8:
Lloh8:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_sqlite3GlobalConfig,32,3       ; @sqlite3GlobalConfig
	.comm	_sqlite3_data_directory,8,3     ; @sqlite3_data_directory
	.comm	_sqlite3_temp_directory,8,3     ; @sqlite3_temp_directory
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
.subsections_via_symbols
