	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_bdb__youngest_rev       ## -- Begin function svn_fs_bdb__youngest_rev
	.p2align	4, 0x90
_svn_fs_bdb__youngest_rev:              ## @svn_fs_bdb__youngest_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %r13
	movq	$0, -48(%rbp)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_svn_fs__check_fs
	movl	%eax, %edi
	callq	_SVN_ERR
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_svn_fs_base__trail_debug
	leaq	L_.str.2(%rip), %rdi
	callq	_N_
	movl	%eax, %r12d
	movq	(%r13), %rdi
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	*(%rdi)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_BDB_WRAP
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %r12
	leaq	-64(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_svn_fs_base__recno_dbt
	movl	%eax, %ebx
	leaq	-60(%rbp), %rdi
	callq	_svn_fs_base__nodata_dbt
	movq	_DB_LAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_svn_bdb_dbc_get
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_svn_bdb_dbc_close
	movq	_DB_NOTFOUND@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.2:
	movq	_SVN_ERR_FS_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %ecx
	leaq	L_.str.3(%rip), %rdx
	xorl	%esi, %esi
	callq	_svn_error_createf
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.4(%rip), %rdi
	callq	_N_
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_BDB_WRAP
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_4:
	leaq	L_.str.5(%rip), %rdi
	callq	_N_
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_svn_bdb_dbc_close
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_BDB_WRAP
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-56(%rbp), %rax
	decq	%rax
	movq	%rax, (%r14)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"revisions"

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

L_.str.2:                               ## @.str.2
	.asciz	"getting youngest revision (creating cursor)"

	.comm	_DB_LAST,4,2                    ## @DB_LAST
	.comm	_DB_NOTFOUND,4,2                ## @DB_NOTFOUND
	.comm	_SVN_ERR_FS_CORRUPT,4,2         ## @SVN_ERR_FS_CORRUPT
L_.str.3:                               ## @.str.3
	.asciz	"Corrupt DB: revision 0 missing from 'revisions' table, in filesystem '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"getting youngest revision (finding last entry)"

L_.str.5:                               ## @.str.5
	.asciz	"getting youngest revision (closing cursor)"

	.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__youngest_rev       ; -- Begin function svn_fs_bdb__youngest_rev
	.p2align	2
_svn_fs_bdb__youngest_rev:              ; @svn_fs_bdb__youngest_rev
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x1, #8]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_svn_fs__check_fs
	bl	_SVN_ERR
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_svn_fs_base__trail_debug
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_N_
	mov	x22, x0
	ldr	x0, [x23]
	ldr	x8, [x0]
	ldr	w1, [x21]
	add	x2, sp, #24
	mov	w3, #0
	blr	x8
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_BDB_WRAP
	bl	_SVN_ERR
	ldr	x21, [sp, #24]
	add	x0, sp, #20
	add	x1, sp, #8
	bl	_svn_fs_base__recno_dbt
	mov	x22, x0
	add	x0, sp, #16
	bl	_svn_fs_base__nodata_dbt
	mov	x2, x0
Lloh9:
	adrp	x8, _DB_LAST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DB_LAST@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_svn_bdb_dbc_get
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x0, [sp, #24]
	bl	_svn_bdb_dbc_close
Lloh12:
	adrp	x8, _DB_NOTFOUND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DB_NOTFOUND@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _SVN_ERR_FS_CORRUPT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SVN_ERR_FS_CORRUPT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w3, [x20]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #0
	bl	_svn_error_createf
	b	LBB0_5
LBB0_3:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_N_
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_BDB_WRAP
	bl	_SVN_ERR
LBB0_4:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_N_
	mov	x21, x0
	ldr	x0, [sp, #24]
	bl	_svn_bdb_dbc_close
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_BDB_WRAP
	bl	_SVN_ERR
	ldr	x8, [sp, #8]
	sub	x8, x8, #1
	str	x8, [x19]
Lloh24:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"revisions"

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

l_.str.2:                               ; @.str.2
	.asciz	"getting youngest revision (creating cursor)"

	.comm	_DB_LAST,4,2                    ; @DB_LAST
	.comm	_DB_NOTFOUND,4,2                ; @DB_NOTFOUND
	.comm	_SVN_ERR_FS_CORRUPT,4,2         ; @SVN_ERR_FS_CORRUPT
l_.str.3:                               ; @.str.3
	.asciz	"Corrupt DB: revision 0 missing from 'revisions' table, in filesystem '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"getting youngest revision (finding last entry)"

l_.str.5:                               ; @.str.5
	.asciz	"getting youngest revision (closing cursor)"

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