	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upgrade_body
_upgrade_body:                          ## @upgrade_body
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movq	8(%r14), %r12
	movq	%r14, %rdi
	callq	_path_format
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %rdi
	leaq	-60(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%rax, %rcx
	movq	%rbx, %r8
	callq	_read_format
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	4(%r14), %edi
	movq	_PATH_CONFIG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdx
	callq	_svn_dirent_join
	leaq	-64(%rbp), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_svn_io_check_path
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	-64(%rbp), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_write_config
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_3:
	movl	-44(%rbp), %eax
	movq	_SVN_FS_FS__FORMAT_NUMBER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.4:
	movq	_SVN_FS_FS__MIN_TXN_CURRENT_FORMAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_svn_fs_fs__path_txn_current
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_create_file_ignore_eexist
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_svn_fs_fs__path_txn_current_lock
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_create_file_ignore_eexist
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	-44(%rbp), %eax
LBB0_6:
	movq	_SVN_FS_FS__MIN_PROTOREVS_DIR_FORMAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_svn_fs_fs__path_txn_proto_revs
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_svn_io_make_dir_recursively
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	-44(%rbp), %eax
LBB0_8:
	movq	_SVN_FS_FS__MIN_PACKED_FORMAT@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_svn_fs_fs__path_min_unpacked_rev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_svn_io_file_create
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	-44(%rbp), %eax
	movl	(%r13), %ecx
LBB0_10:
	cmpl	%ecx, %eax
	jge	LBB0_13
LBB0_16:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_12:
	movq	_SVN_ERR_FS_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r12d
	movl	4(%r14), %edi
	movl	(%r13), %esi
	movq	%rbx, %rdx
	callq	_svn_dirent_join
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_svn_error_createf
	jmp	LBB0_22
LBB0_13:
	movq	_SVN_FS_FS__MIN_PACKED_REVPROP_FORMAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_16
## %bb.14:
	cmpl	$0, -60(%rbp)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_17
## %bb.15:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	16(%r15), %rsi
	movl	8(%r15), %edx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %r9
	callq	_svn_fs_fs__upgrade_pack_revprops
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_17:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_read_uuid
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	_SVN_FS_FS__FORMAT_NUMBER@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, (%r12)
	movl	-60(%rbp), %eax
	movl	%eax, 4(%r12)
	movq	-72(%rbp), %rax
	movq	%rax, 8(%r12)
	movl	(%r14), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_svn_fs_fs__set_uuid
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_svn_fs_fs__write_format
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	8(%r15), %edi
	movl	(%r13), %esi
	movq	_svn_fs_upgrade_format_bumped@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rcx
	callq	*%rax
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_19:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
## %bb.20:
	movq	16(%r15), %rsi
	movl	8(%r15), %edx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %r9
	callq	_svn_fs_fs__upgrade_cleanup_pack_revprops
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_21:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_PATH_CONFIG,4,2                ## @PATH_CONFIG
	.comm	_SVN_ERR_FS_GENERAL,4,2         ## @SVN_ERR_FS_GENERAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'%s' is not a regular file. Please move it out of the way and try again"

	.comm	_SVN_FS_FS__FORMAT_NUMBER,4,2   ## @SVN_FS_FS__FORMAT_NUMBER
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_SVN_FS_FS__MIN_TXN_CURRENT_FORMAT,4,2 ## @SVN_FS_FS__MIN_TXN_CURRENT_FORMAT
L_.str.1:                               ## @.str.1
	.asciz	"0\n"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_SVN_FS_FS__MIN_PROTOREVS_DIR_FORMAT,4,2 ## @SVN_FS_FS__MIN_PROTOREVS_DIR_FORMAT
	.comm	_SVN_FS_FS__MIN_PACKED_FORMAT,4,2 ## @SVN_FS_FS__MIN_PACKED_FORMAT
	.comm	_SVN_FS_FS__MIN_PACKED_REVPROP_FORMAT,4,2 ## @SVN_FS_FS__MIN_PACKED_REVPROP_FORMAT
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_svn_fs_upgrade_format_bumped,4,2 ## @svn_fs_upgrade_format_bumped
	.no_dead_strip	_upgrade_body
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upgrade_body
_upgrade_body:                          ; @upgrade_body
	.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	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #24]
	ldr	x23, [x20, #8]
	mov	x0, x20
	bl	_path_format
	mov	x3, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	add	x0, sp, #28
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x4, x19
	bl	_read_format
	bl	_SVN_ERR
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x24, _PATH_CONFIG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PATH_CONFIG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x2, x19
	bl	_svn_dirent_join
	add	x1, sp, #12
	mov	x2, x19
	bl	_svn_io_check_path
	bl	_SVN_ERR
	ldr	w8, [sp, #12]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_19
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_write_config
	bl	_SVN_ERR
LBB0_3:
	ldr	w8, [sp, #28]
Lloh5:
	adrp	x24, _SVN_FS_FS__FORMAT_NUMBER@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SVN_FS_FS__FORMAT_NUMBER@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_18
; %bb.4:
Lloh7:
	adrp	x9, _SVN_FS_FS__MIN_TXN_CURRENT_FORMAT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SVN_FS_FS__MIN_TXN_CURRENT_FORMAT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_svn_fs_fs__path_txn_current
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_create_file_ignore_eexist
	bl	_SVN_ERR
	mov	x0, x20
	mov	x1, x19
	bl	_svn_fs_fs__path_txn_current_lock
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_create_file_ignore_eexist
	bl	_SVN_ERR
	ldr	w8, [sp, #28]
LBB0_6:
Lloh14:
	adrp	x9, _SVN_FS_FS__MIN_PROTOREVS_DIR_FORMAT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SVN_FS_FS__MIN_PROTOREVS_DIR_FORMAT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_svn_fs_fs__path_txn_proto_revs
	mov	x1, x19
	bl	_svn_io_make_dir_recursively
	bl	_SVN_ERR
	ldr	w8, [sp, #28]
LBB0_8:
Lloh17:
	adrp	x25, _SVN_FS_FS__MIN_PACKED_FORMAT@GOTPAGE
Lloh18:
	ldr	x25, [x25, _SVN_FS_FS__MIN_PACKED_FORMAT@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_svn_fs_fs__path_min_unpacked_rev
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_svn_io_file_create
	bl	_SVN_ERR
	ldr	w8, [sp, #28]
	ldr	w9, [x25]
LBB0_10:
Lloh21:
	adrp	x25, _TRUE@GOTPAGE
Lloh22:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	cmp	w8, w9
	b.lt	LBB0_14
; %bb.11:
Lloh23:
	adrp	x9, _SVN_FS_FS__MIN_PACKED_REVPROP_FORMAT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SVN_FS_FS__MIN_PACKED_REVPROP_FORMAT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_14
; %bb.12:
	ldr	w8, [sp, #24]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.13:
	ldr	x22, [x25]
	ldr	x1, [x21, #16]
	ldp	w3, w2, [x21, #4]
	ldr	w4, [x21]
	mov	x0, x20
	mov	x5, x19
	bl	_svn_fs_fs__upgrade_pack_revprops
	bl	_SVN_ERR
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_read_uuid
	bl	_SVN_ERR
	ldr	w8, [x24]
	str	w8, [x23]
	ldr	w8, [sp, #24]
	str	w8, [x23, #4]
	ldr	x8, [sp, #16]
	str	x8, [x23, #8]
	ldr	w1, [x20]
	mov	x0, x20
	mov	x2, #0
	mov	x3, x19
	bl	_svn_fs_fs__set_uuid
	bl	_SVN_ERR
	ldr	x1, [x25]
	mov	x0, x20
	mov	x2, x19
	bl	_svn_fs_fs__write_format
	bl	_SVN_ERR
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	w0, [x21, #8]
	ldr	w1, [x24]
Lloh26:
	adrp	x9, _svn_fs_upgrade_format_bumped@GOTPAGE
Lloh27:
	ldr	x9, [x9, _svn_fs_upgrade_format_bumped@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x9]
	mov	x3, x19
	blr	x8
	bl	_SVN_ERR
LBB0_16:
	cbz	x22, LBB0_18
; %bb.17:
	ldr	x1, [x21, #16]
	ldp	w3, w2, [x21, #4]
	ldr	w4, [x21]
	mov	x0, x20
	mov	x5, x19
	bl	_svn_fs_fs__upgrade_cleanup_pack_revprops
	bl	_SVN_ERR
LBB0_18:
Lloh29:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	x0, [x8]
	b	LBB0_20
LBB0_19:
Lloh32:
	adrp	x8, _SVN_ERR_FS_GENERAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SVN_ERR_FS_GENERAL@GOTPAGEOFF]
Lloh34:
	ldr	w21, [x8]
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x22, x0
	ldr	w0, [x20, #4]
	ldr	w1, [x24]
	mov	x2, x19
	bl	_svn_dirent_join
	mov	x3, x0
	mov	x0, x21
	mov	x1, #0
	mov	x2, x22
	bl	_svn_error_createf
LBB0_20:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_PATH_CONFIG,4,2                ; @PATH_CONFIG
	.comm	_SVN_ERR_FS_GENERAL,4,2         ; @SVN_ERR_FS_GENERAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'%s' is not a regular file. Please move it out of the way and try again"

	.comm	_SVN_FS_FS__FORMAT_NUMBER,4,2   ; @SVN_FS_FS__FORMAT_NUMBER
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_SVN_FS_FS__MIN_TXN_CURRENT_FORMAT,4,2 ; @SVN_FS_FS__MIN_TXN_CURRENT_FORMAT
l_.str.1:                               ; @.str.1
	.asciz	"0\n"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_SVN_FS_FS__MIN_PROTOREVS_DIR_FORMAT,4,2 ; @SVN_FS_FS__MIN_PROTOREVS_DIR_FORMAT
	.comm	_SVN_FS_FS__MIN_PACKED_FORMAT,4,2 ; @SVN_FS_FS__MIN_PACKED_FORMAT
	.comm	_SVN_FS_FS__MIN_PACKED_REVPROP_FORMAT,4,2 ; @SVN_FS_FS__MIN_PACKED_REVPROP_FORMAT
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_svn_fs_upgrade_format_bumped,4,2 ; @svn_fs_upgrade_format_bumped
	.no_dead_strip	_upgrade_body
.subsections_via_symbols
