	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_bdb__close              ## -- Begin function svn_fs_bdb__close
	.p2align	4, 0x90
_svn_fs_bdb__close:                     ## @svn_fs_bdb__close
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %r14
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	callq	_SVN_ERR_ASSERT
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setg	%dil
	callq	_SVN_ERR_ASSERT
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rax
	decq	(%rax)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.2:
	movl	8(%rax), %edi
	callq	_svn_error_clear
LBB0_3:
	movq	_bdb_cache_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_svn_fs_bdb__close_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SVN_MUTEX__WITH_LOCK
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bdb_cache_lock,4,2             ## @bdb_cache_lock
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_bdb__close              ; -- Begin function svn_fs_bdb__close
	.p2align	2
_svn_fs_bdb__close:                     ; @svn_fs_bdb__close
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, eq
	bl	_SVN_ERR_ASSERT
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, gt
	bl	_SVN_ERR_ASSERT
	str	xzr, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_3
; %bb.2:
	ldr	w0, [x8, #8]
	bl	_svn_error_clear
LBB0_3:
Lloh0:
	adrp	x8, _bdb_cache_lock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bdb_cache_lock@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_svn_fs_bdb__close_internal
	mov	x1, x0
	mov	x0, x20
	bl	_SVN_MUTEX__WITH_LOCK
Lloh3:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_bdb_cache_lock,4,2             ; @bdb_cache_lock
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
.subsections_via_symbols
