	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_bdb__open_miscellaneous_table ## -- Begin function svn_fs_bdb__open_miscellaneous_table
	.p2align	4, 0x90
_svn_fs_bdb__open_miscellaneous_table:  ## @svn_fs_bdb__open_miscellaneous_table
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_DB_CREATE@GOTPCREL(%rip), %rax
	movq	_DB_EXCL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	cmovel	%eax, %ebx
	xorl	%eax, %eax
	callq	_svn_fs_bdb__check_version
	movl	%eax, %edi
	callq	_BDB_ERR
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_db_create
	movl	%eax, %edi
	callq	_BDB_ERR
	movq	-48(%rbp), %rdi
	movq	(%rdi), %r13
	xorl	%esi, %esi
	callq	_SVN_BDB_OPEN_PARAMS
	movq	_DB_BTREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	movl	$438, %r9d                      ## imm = 0x1B6
	callq	*%r13
	testq	%r12, %r12
	jne	LBB0_3
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	*8(%rdi)
	movl	%eax, %edi
	callq	_BDB_ERR
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_svn_fs_bdb__open_miscellaneous_table
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %edi
	callq	_BDB_ERR
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rbx
	movq	16(%rbx), %r12
	movq	_SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-56(%rbp), %rdi
	callq	_svn_fs_base__str_to_dbt
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	leaq	-52(%rbp), %rdi
	callq	_svn_fs_base__str_to_dbt
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	*%r12
	movl	%eax, %edi
	callq	_BDB_ERR
LBB0_5:
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
LBB0_6:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DB_CREATE,4,2                  ## @DB_CREATE
	.comm	_DB_EXCL,4,2                    ## @DB_EXCL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"miscellaneous"

	.comm	_DB_BTREE,4,2                   ## @DB_BTREE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE,8,3 ## @SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE
L_.str.1:                               ## @.str.1
	.asciz	"0"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_bdb__open_miscellaneous_table ; -- Begin function svn_fs_bdb__open_miscellaneous_table
	.p2align	2
_svn_fs_bdb__open_miscellaneous_table:  ; @svn_fs_bdb__open_miscellaneous_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DB_CREATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DB_CREATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DB_EXCL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DB_EXCL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	x2, #0
	csel	w22, w8, wzr, ne
	bl	_svn_fs_bdb__check_version
	bl	_BDB_ERR
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #0
	bl	_db_create
	bl	_BDB_ERR
	ldr	x0, [sp, #8]
	ldr	x23, [x0]
	mov	x1, #0
	bl	_SVN_BDB_OPEN_PARAMS
Lloh6:
	adrp	x8, _DB_BTREE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DB_BTREE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	mov	x4, x22
	mov	w5, #438
	blr	x23
	cbnz	x21, LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [sp, #8]
	ldr	x8, [x0, #8]
	mov	w1, #0
	blr	x8
	bl	_BDB_ERR
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh16:
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_svn_fs_bdb__open_miscellaneous_table
	b	LBB0_6
LBB0_3:
	bl	_BDB_ERR
	cbz	x21, LBB0_5
; %bb.4:
	ldr	x20, [sp, #8]
	ldr	x22, [x20, #16]
Lloh17:
	adrp	x8, _SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE@GOTPAGEOFF]
Lloh19:
	ldr	x1, [x8]
	add	x0, sp, #4
	bl	_svn_fs_base__str_to_dbt
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, sp
	bl	_svn_fs_base__str_to_dbt
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	w4, #0
	blr	x22
	bl	_BDB_ERR
LBB0_5:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DB_CREATE,4,2                  ; @DB_CREATE
	.comm	_DB_EXCL,4,2                    ; @DB_EXCL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"miscellaneous"

	.comm	_DB_BTREE,4,2                   ; @DB_BTREE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE,8,3 ; @SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE
l_.str.1:                               ; @.str.1
	.asciz	"0"

.subsections_via_symbols
