	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdb_fini
_sdb_fini:                              ## @sdb_fini
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_sdb_hook_free
	leaq	56(%rbx), %rdi
	callq	_cdb_free
	cmpq	$0, 48(%rbx)
	je	LBB0_3
## %bb.2:
	movl	16(%rbx), %edi
	callq	_sdb_lock_file
	movl	%eax, %edi
	callq	_sdb_unlock
LBB0_3:
	movq	%rbx, %rdi
	callq	_sdb_ns_free
	movq	$0, 40(%rbx)
	movl	36(%rbx), %edi
	callq	_free
	movl	32(%rbx), %edi
	callq	_free
	movl	28(%rbx), %edi
	callq	_ls_free
	movl	24(%rbx), %edi
	callq	_sdb_ht_free
	movq	%rbx, %rdi
	callq	_sdb_journal_close
	movl	(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_5
## %bb.4:
	callq	_close
	movl	$-1, (%rbx)
LBB0_5:
	movl	20(%rbx), %edi
	callq	_free
	movl	16(%rbx), %edi
	callq	_free
	leaq	8(%rbx), %rdi
	callq	_sdbkv_value
	movl	%eax, %edi
	callq	_free
	movq	$0, 8(%rbx)
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sdb_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdb_fini
_sdb_fini:                              ; @sdb_fini
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_sdb_hook_free
	add	x0, x19, #56
	bl	_cdb_free
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_sdb_lock_file
	bl	_sdb_unlock
LBB0_3:
	mov	x0, x19
	bl	_sdb_ns_free
	str	xzr, [x19, #40]
	ldr	w0, [x19, #36]
	bl	_free
	ldr	w0, [x19, #32]
	bl	_free
	ldr	w0, [x19, #28]
	bl	_ls_free
	ldr	w0, [x19, #24]
	bl	_sdb_ht_free
	mov	x0, x19
	bl	_sdb_journal_close
	ldr	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
LBB0_5:
	ldr	w0, [x19, #20]
	bl	_free
	ldr	w0, [x19, #16]
	bl	_free
	add	x0, x19, #8
	bl	_sdbkv_value
	bl	_free
	str	xzr, [x19, #8]
	cbz	w20, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #64
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memset
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sdb_fini
.subsections_via_symbols
