	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_bdb__get_rev            ## -- Begin function svn_fs_bdb__get_rev
	.p2align	4, 0x90
_svn_fs_bdb__get_rev:                   ## @svn_fs_bdb__get_rev
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rsi), %r14
	leaq	1(%rdx), %rax
	movq	%rax, -80(%rbp)
	movq	%rdx, %rdi
	callq	_SVN_IS_VALID_REVNUM
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_svn_fs_base__trail_debug
	movq	(%r14), %r14
	movq	(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	leaq	-96(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	movl	$8, %edx
	callq	_svn_fs_base__set_dbt
	movl	%eax, %r15d
	leaq	-48(%rbp), %rdi
	callq	_svn_fs_base__result_dbt
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_svn_fs_base__track_dbt
	movq	_DB_NOTFOUND@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_svn_fs_base__err_dangling_rev
	jmp	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	movq	%r13, %rsi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svn_fs_base__err_dangling_rev  ## TAILCALL
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_N_
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_BDB_WRAP
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edi
	movq	%r14, %rdx
	callq	_svn_skel__parse
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	-88(%rbp), %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_svn_fs_base__parse_revision_skel
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-88(%rbp), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_6
LBB0_4:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_svn_fs_base__err_corrupt_fs_revision
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"revisions"

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

	.comm	_DB_NOTFOUND,4,2                ## @DB_NOTFOUND
L_.str.2:                               ## @.str.2
	.asciz	"reading filesystem revision"

	.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__get_rev            ; -- Begin function svn_fs_bdb__get_rev
	.p2align	2
_svn_fs_bdb__get_rev:                   ; @svn_fs_bdb__get_rev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x1]
	add	x8, x2, #1
	str	x8, [sp]
	mov	x0, x2
	bl	_SVN_IS_VALID_REVNUM
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_svn_fs_base__trail_debug
	ldr	x24, [x24]
	ldr	x26, [x24]
	ldr	w23, [x23]
	add	x0, sp, #24
	mov	x1, sp
	mov	w2, #8
	bl	_svn_fs_base__set_dbt
	mov	x25, x0
	add	x0, sp, #16
	bl	_svn_fs_base__result_dbt
	mov	x3, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x25
	mov	w4, #0
	blr	x26
	mov	x23, x0
	add	x0, sp, #16
	mov	x1, x21
	bl	_svn_fs_base__track_dbt
Lloh4:
	adrp	x8, _DB_NOTFOUND@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DB_NOTFOUND@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	bl	_svn_fs_base__err_dangling_rev
	b	LBB0_7
LBB0_3:
	mov	x0, x22
	mov	x1, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_svn_fs_base__err_dangling_rev
LBB0_4:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_N_
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	bl	_BDB_WRAP
	bl	_SVN_ERR
	ldp	w1, w0, [sp, #16]
	mov	x2, x21
	bl	_svn_skel__parse
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x0
	add	x0, sp, #8
	mov	x2, x21
	bl	_svn_fs_base__parse_revision_skel
	bl	_SVN_ERR
	ldr	x8, [sp, #8]
	str	x8, [x19]
Lloh9:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	b	LBB0_7
LBB0_6:
	mov	x0, x22
	mov	x1, x20
	bl	_svn_fs_base__err_corrupt_fs_revision
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"revisions"

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

	.comm	_DB_NOTFOUND,4,2                ; @DB_NOTFOUND
l_.str.2:                               ; @.str.2
	.asciz	"reading filesystem revision"

	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
.subsections_via_symbols
