	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function base_upgrade
_base_upgrade:                          ## @base_upgrade
	.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	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rcx
	movq	%rdi, %rbx
	movq	24(%rbp), %r12
	movq	_FORMAT_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	movq	%r12, %rdx
	callq	_svn_dirent_join
	movq	%rax, %r13
	leaq	-44(%rbp), %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_svn_io_read_version_file
	testq	%rax, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_APR_STATUS_IS_ENOENT
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$0, -44(%rbp)
	movq	%r14, %rdi
	callq	_svn_error_clear
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movq	%r14, %rdi
	callq	_SVN_ERR
	movl	-44(%rbp), %edi
	callq	_check_format
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	_SVN_FS_BASE__FORMAT_NUMBER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_svn_io_write_version_file
	movq	%rax, %rdi
	callq	_SVN_ERR
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %esi
	movq	_svn_fs_upgrade_format_bumped@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	*%r15
	movq	%rax, %rdi
	callq	_SVN_ERR
LBB0_6:
	movl	-44(%rbp), %eax
	movq	_SVN_FS_BASE__MIN_FORWARD_DELTAS_FORMAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_8
## %bb.7:
	movq	32(%rbp), %r14
	movq	16(%rbp), %r13
	movq	%r12, %rdi
	callq	_svn_pool_create
	movq	%rax, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%rax, %rcx
	movq	%r14, %r8
	callq	_base_open
	movq	%rax, %rdi
	callq	_SVN_ERR
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_svn_fs_base__youngest_rev
	movq	%rax, %rdi
	callq	_SVN_ERR
	movl	-48(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_apr_psprintf
	movq	_SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_svn_fs_base__miscellaneous_set
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	%rbx, %rdi
	callq	_svn_pool_destroy
LBB0_8:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FORMAT_FILE,4,2                ## @FORMAT_FILE
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_SVN_FS_BASE__FORMAT_NUMBER,4,2 ## @SVN_FS_BASE__FORMAT_NUMBER
	.comm	_svn_fs_upgrade_format_bumped,4,2 ## @svn_fs_upgrade_format_bumped
	.comm	_SVN_FS_BASE__MIN_FORWARD_DELTAS_FORMAT,4,2 ## @SVN_FS_BASE__MIN_FORWARD_DELTAS_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%ld"

	.comm	_SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE,4,2 ## @SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE
	.no_dead_strip	_base_upgrade
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function base_upgrade
_base_upgrade:                          ; @base_upgrade
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x7
	mov	x20, x6
	mov	x24, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FORMAT_FILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORMAT_FILE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x7
	bl	_svn_dirent_join
	mov	x25, x0
	add	x0, sp, #12
	mov	x1, x25
	mov	x2, x22
	bl	_svn_io_read_version_file
	mov	x26, x0
Lloh3:
	adrp	x27, _SVN_NO_ERROR@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SVN_NO_ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x26]
	bl	_APR_STATUS_IS_ENOENT
	cbz	x0, LBB0_3
; %bb.2:
	str	wzr, [sp, #12]
	mov	x0, x26
	bl	_svn_error_clear
	ldr	x26, [x27]
LBB0_3:
	mov	x0, x26
	bl	_SVN_ERR
	ldr	w0, [sp, #12]
	bl	_check_format
	bl	_SVN_ERR
Lloh5:
	adrp	x26, _SVN_FS_BASE__FORMAT_NUMBER@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SVN_FS_BASE__FORMAT_NUMBER@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x25
	mov	x2, x22
	bl	_svn_io_write_version_file
	bl	_SVN_ERR
	cbz	x23, LBB0_5
; %bb.4:
	ldr	w1, [x26]
Lloh7:
	adrp	x8, _svn_fs_upgrade_format_bumped@GOTPAGE
Lloh8:
	ldr	x8, [x8, _svn_fs_upgrade_format_bumped@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x3, x22
	blr	x23
	bl	_SVN_ERR
LBB0_5:
	ldr	w8, [sp, #12]
Lloh10:
	adrp	x9, _SVN_FS_BASE__MIN_FORWARD_DELTAS_FORMAT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SVN_FS_BASE__MIN_FORWARD_DELTAS_FORMAT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.6:
	ldr	x23, [x29, #16]
	mov	x0, x22
	bl	_svn_pool_create
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, x23
	bl	_base_open
	bl	_SVN_ERR
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x22
	bl	_svn_fs_base__youngest_rev
	bl	_SVN_ERR
	ldr	w2, [sp, #8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_apr_psprintf
	mov	x2, x0
Lloh15:
	adrp	x8, _SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x3, x22
	bl	_svn_fs_base__miscellaneous_set
	bl	_SVN_ERR
	mov	x0, x22
	bl	_svn_pool_destroy
LBB0_7:
	ldr	x0, [x27]
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FORMAT_FILE,4,2                ; @FORMAT_FILE
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_SVN_FS_BASE__FORMAT_NUMBER,4,2 ; @SVN_FS_BASE__FORMAT_NUMBER
	.comm	_svn_fs_upgrade_format_bumped,4,2 ; @svn_fs_upgrade_format_bumped
	.comm	_SVN_FS_BASE__MIN_FORWARD_DELTAS_FORMAT,4,2 ; @SVN_FS_BASE__MIN_FORWARD_DELTAS_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%ld"

	.comm	_SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE,4,2 ; @SVN_FS_BASE__MISC_FORWARD_DELTA_UPGRADE
	.no_dead_strip	_base_upgrade
.subsections_via_symbols
