	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_bdb__reserve_copy_id    ## -- Begin function svn_fs_bdb__reserve_copy_id
	.p2align	4, 0x90
_svn_fs_bdb__reserve_copy_id:           ## @svn_fs_bdb__reserve_copy_id
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %r14
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	_MAX_KEY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	_NEXT_KEY_KEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-128(%rbp), %rdi
	callq	_svn_fs_base__str_to_dbt
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	callq	_svn_fs_base__trail_debug
	leaq	L_.str.2(%rip), %rdi
	callq	_N_
	movl	%eax, %r13d
	movq	(%r14), %r15
	movq	(%r15), %r12
	movl	(%rbx), %r14d
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_svn_fs_base__result_dbt
	movq	%r15, %rdi
	movl	%r14d, %esi
	leaq	-128(%rbp), %r15
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	*%r12
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_BDB_WRAP
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	%rbx, %rdi
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rsi
	callq	_svn_fs_base__track_dbt
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %edx
	movq	%r12, %rdi
	callq	_apr_pstrmemdup
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	-56(%rbp), %edi
	movl	-52(%rbp), %eax
	movl	%eax, -68(%rbp)
	leaq	-68(%rbp), %rsi
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdx
	callq	_svn_fs_base__next_key
	leaq	L_.str.3(%rip), %rdx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_svn_fs_base__trail_debug
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movq	8(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r14d
	movq	_NEXT_KEY_KEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_svn_fs_base__str_to_dbt
	movl	%eax, %r15d
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	callq	_svn_fs_base__str_to_dbt
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_N_
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_BDB_WRAP
	movq	-120(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_KEY_SIZE,4,2               ## @MAX_KEY_SIZE
	.comm	_NEXT_KEY_KEY,8,3               ## @NEXT_KEY_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"copies"

L_.str.1:                               ## @.str.1
	.asciz	"get"

L_.str.2:                               ## @.str.2
	.asciz	"allocating new copy ID (getting 'next-key')"

L_.str.3:                               ## @.str.3
	.asciz	"put"

L_.str.4:                               ## @.str.4
	.asciz	"bumping next copy key"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_bdb__reserve_copy_id    ; -- Begin function svn_fs_bdb__reserve_copy_id
	.p2align	2
_svn_fs_bdb__reserve_copy_id:           ; @svn_fs_bdb__reserve_copy_id
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x8, sp
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x28, [x1]
Lloh3:
	adrp	x8, _MAX_KEY_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_KEY_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x8, _NEXT_KEY_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NEXT_KEY_KEY@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	sub	x0, x29, #96
	bl	_svn_fs_base__str_to_dbt
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_svn_fs_base__trail_debug
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_N_
	mov	x25, x0
	ldr	x26, [x28]
	ldr	x24, [x26]
	ldr	w27, [x20]
	sub	x0, x29, #104
	bl	_svn_fs_base__result_dbt
	mov	x3, x0
	sub	x2, x29, #96
	mov	x0, x26
	mov	x1, x27
	mov	w4, #0
	blr	x24
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_BDB_WRAP
	bl	_SVN_ERR
	sub	x0, x29, #104
	mov	x1, x23
	bl	_svn_fs_base__track_dbt
	ldp	w1, w2, [x29, #-104]
	mov	x0, x23
	bl	_apr_pstrmemdup
	str	x0, [x22]
	ldp	w0, w8, [x29, #-104]
	stur	w8, [x29, #-108]
	sub	x1, x29, #108
	mov	x2, x21
	bl	_svn_fs_base__next_key
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_svn_fs_base__trail_debug
	ldr	x22, [x28]
	ldr	x24, [x22, #8]
	ldr	w20, [x20]
Lloh21:
	adrp	x8, _NEXT_KEY_KEY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NEXT_KEY_KEY@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	sub	x0, x29, #96
	bl	_svn_fs_base__str_to_dbt
	mov	x23, x0
	sub	x0, x29, #104
	mov	x1, x21
	bl	_svn_fs_base__str_to_dbt
	mov	x3, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	mov	w4, #0
	blr	x24
	mov	x20, x0
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_N_
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_BDB_WRAP
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_KEY_SIZE,4,2               ; @MAX_KEY_SIZE
	.comm	_NEXT_KEY_KEY,8,3               ; @NEXT_KEY_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"copies"

l_.str.1:                               ; @.str.1
	.asciz	"get"

l_.str.2:                               ; @.str.2
	.asciz	"allocating new copy ID (getting 'next-key')"

l_.str.3:                               ; @.str.3
	.asciz	"put"

l_.str.4:                               ; @.str.4
	.asciz	"bumping next copy key"

.subsections_via_symbols
