	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svn_fs_bdb__open_internal
_svn_fs_bdb__open_internal:             ## @svn_fs_bdb__open_internal
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-68(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r8, %rcx
	callq	_bdb_cache_key
	movl	%eax, %edi
	callq	_SVN_ERR
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bdb_cache_get
	movq	%rax, -48(%rbp)
	cmpq	$0, -64(%rbp)
	je	LBB0_2
## %bb.1:
	movq	_SVN_ERR_FS_BERKELEY_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DB_RUNRECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_db_strerror
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
LBB0_15:
	callq	_svn_error_create
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, %r14
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%rax), %ecx
	cmpl	%r12d, %ecx
	jne	LBB0_7
## %bb.4:
	incl	4(%rax)
	jmp	LBB0_11
LBB0_5:
	movq	_bdb_cache_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_svn_pool_create
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_create_env
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_bdb_open
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	callq	_bdb_close
	movl	%eax, %edi
	callq	_svn_error_clear
	movq	%rbx, %rdi
	callq	_svn_error_trace
	jmp	LBB0_16
LBB0_7:
	xorl	%r12d, %ecx
	movq	_DB_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	je	LBB0_12
## %bb.8:
	movq	_SVN_ERR_FS_BERKELEY_DB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%r12d, %eax
	je	LBB0_13
## %bb.9:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_14
LBB0_10:
	movq	_bdb_cache@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rcx
	leaq	12(%rcx), %rsi
	movl	$4, %edx
	callq	_apr_hash_set
	movq	-48(%rbp), %rax
	movl	%r12d, (%rax)
	movl	$1, 4(%rax)
LBB0_11:
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_apr_palloc
	movq	%rax, (%r15)
	movq	-48(%rbp), %rdi
	movl	8(%rdi), %ecx
	movl	%ecx, 16(%rax)
	movq	%rdi, 8(%rax)
	callq	_get_error_info
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rsi
	movq	(%rsi), %rax
	incl	(%rax)
	movq	_cleanup_env_baton@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_apr_pool_cleanup_null@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_apr_pool_cleanup_register
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_16
LBB0_12:
	movq	_SVN_ERR_FS_BERKELEY_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.1(%rip), %rdx
LBB0_14:
	xorl	%esi, %esi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_ERR_FS_BERKELEY_DB,4,2     ## @SVN_ERR_FS_BERKELEY_DB
	.comm	_DB_RUNRECOVERY,4,2             ## @DB_RUNRECOVERY
	.comm	_DB_PRIVATE,4,2                 ## @DB_PRIVATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reopening a public Berkeley DB environment with private attributes"

L_.str.1:                               ## @.str.1
	.asciz	"Reopening a private Berkeley DB environment with public attributes"

L_.str.2:                               ## @.str.2
	.asciz	"Reopening a Berkeley DB environment with different attributes"

	.comm	_bdb_cache_pool,4,2             ## @bdb_cache_pool
	.comm	_bdb_cache,4,2                  ## @bdb_cache
	.comm	_cleanup_env_baton,4,2          ## @cleanup_env_baton
	.comm	_apr_pool_cleanup_null,4,2      ## @apr_pool_cleanup_null
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_svn_fs_bdb__open_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svn_fs_bdb__open_internal
_svn_fs_bdb__open_internal:             ; @svn_fs_bdb__open_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	add	x0, sp, #28
	mov	x1, #0
	mov	x2, x23
	mov	x3, x4
	bl	_bdb_cache_key
	bl	_SVN_ERR
	add	x0, sp, #28
	add	x1, sp, #8
	bl	_bdb_cache_get
	str	x0, [sp, #16]
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _SVN_ERR_FS_BERKELEY_DB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVN_ERR_FS_BERKELEY_DB@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _DB_RUNRECOVERY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DB_RUNRECOVERY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_db_strerror
	mov	x2, x0
	mov	x0, x19
LBB0_2:
	mov	x1, #0
	bl	_svn_error_create
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x0]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.6:
	ldr	w8, [x0, #4]
	add	w8, w8, #1
	str	w8, [x0, #4]
	b	LBB0_13
LBB0_7:
Lloh6:
	adrp	x8, _bdb_cache_pool@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bdb_cache_pool@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_svn_pool_create
	mov	x2, x0
	add	x0, sp, #16
	mov	x1, x23
	bl	_create_env
	bl	_SVN_ERR
	ldr	x0, [sp, #16]
	mov	x1, x21
	mov	x2, x22
	bl	_bdb_open
	cbz	x0, LBB0_12
; %bb.8:
	mov	x22, x0
	ldr	x0, [sp, #16]
	bl	_bdb_close
	bl	_svn_error_clear
	mov	x0, x22
	bl	_svn_error_trace
	b	LBB0_3
LBB0_9:
	eor	w9, w8, w21
Lloh9:
	adrp	x8, _DB_PRIVATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DB_PRIVATE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_14
; %bb.10:
Lloh12:
	adrp	x9, _SVN_ERR_FS_BERKELEY_DB@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SVN_ERR_FS_BERKELEY_DB@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	tst	w8, w21
	b.eq	LBB0_15
; %bb.11:
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_2
LBB0_12:
Lloh17:
	adrp	x8, _bdb_cache@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bdb_cache@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x3, [sp, #16]
	add	x1, x3, #12
	mov	w2, #4
	bl	_apr_hash_set
	ldr	x8, [sp, #16]
	mov	w9, #1
	stp	w21, w9, [x8]
LBB0_13:
	mov	x0, x19
	mov	w1, #24
	bl	_apr_palloc
	str	x0, [x20]
	ldr	x8, [sp, #16]
	ldr	w9, [x8, #8]
	str	w9, [x0, #16]
	str	x8, [x0, #8]
	mov	x0, x8
	bl	_get_error_info
	ldr	x8, [x20]
	str	x0, [x8]
	ldr	x1, [x20]
	ldr	x8, [x1]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh20:
	adrp	x8, _cleanup_env_baton@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cleanup_env_baton@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _apr_pool_cleanup_null@GOTPAGE
Lloh24:
	ldr	x8, [x8, _apr_pool_cleanup_null@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_apr_pool_cleanup_register
Lloh26:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	x0, [x8]
	b	LBB0_3
LBB0_14:
Lloh29:
	adrp	x8, _SVN_ERR_FS_BERKELEY_DB@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SVN_ERR_FS_BERKELEY_DB@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x2, l_.str.2@PAGE
Lloh33:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_15:
Lloh34:
	adrp	x2, l_.str.1@PAGE
Lloh35:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_ERR_FS_BERKELEY_DB,4,2     ; @SVN_ERR_FS_BERKELEY_DB
	.comm	_DB_RUNRECOVERY,4,2             ; @DB_RUNRECOVERY
	.comm	_DB_PRIVATE,4,2                 ; @DB_PRIVATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reopening a public Berkeley DB environment with private attributes"

l_.str.1:                               ; @.str.1
	.asciz	"Reopening a private Berkeley DB environment with public attributes"

l_.str.2:                               ; @.str.2
	.asciz	"Reopening a Berkeley DB environment with different attributes"

	.comm	_bdb_cache_pool,4,2             ; @bdb_cache_pool
	.comm	_bdb_cache,4,2                  ; @bdb_cache
	.comm	_cleanup_env_baton,4,2          ; @cleanup_env_baton
	.comm	_apr_pool_cleanup_null,4,2      ; @apr_pool_cleanup_null
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_svn_fs_bdb__open_internal
.subsections_via_symbols
