	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upgrade_to_wcng
_upgrade_to_wcng:                       ## @upgrade_to_wcng
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	56(%rbp), %rbx
	movq	_ADM_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %rdi
	movq	%rbx, %rdx
	callq	_svn_wc__adm_child
	leaq	-112(%rbp), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_svn_io_check_path
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-112(%rbp), %rax
	movq	_svn_node_file@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_SVN_ERR_WC_UNSUPPORTED_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_svn_error_create
	jmp	LBB0_13
LBB0_2:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	40(%rbp), %r13
	movq	32(%rbp), %rbx
	movq	%r15, %rdi
	movq	56(%rbp), %r12
	movq	%r12, %rsi
	callq	_create_physical_lock
	movq	%rax, %rdi
	callq	_SVN_ERR
	leaq	-72(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r12, %rcx
	callq	_svn_wc__read_entries_old
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-72(%rbp), %rdi
	movq	_SVN_WC_ENTRY_THIS_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_svn_hash_gets
	movq	%rax, %r14
	subq	$8, %rsp
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	16(%rbp), %edx
	movq	24(%rbp), %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	pushq	%r12
	callq	_ensure_repos_info
	addq	$16, %rsp
	movq	%rax, %rdi
	callq	_SVN_ERR
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_svn_hash_gets
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	32(%rbp), %rdi
	callq	_apr_hash_pool_get
	movq	%rax, %rbx
	movl	4(%r14), %esi
	movq	%rax, %rdi
	callq	_apr_pstrdup
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_apr_pstrdup
	movq	32(%rbp), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_svn_hash_sets
LBB0_4:
	movl	4(%r13), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_svn_dirent_get_longest_ancestor
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_svn_dirent_skip_ancestor
	movq	%rax, %r14
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	leaq	-104(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %r8
	movq	%r12, %r9
	callq	_migrate_text_bases
	movq	%rax, %rdi
	callq	_SVN_ERR
	movl	12(%r13), %r8d
	movl	8(%r13), %r9d
	movl	(%r13), %ecx
	movl	4(%r13), %eax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	pushq	%r12
	pushq	48(%rbp)
	pushq	-104(%rbp)
	pushq	-72(%rbp)
	pushq	%rax
	pushq	%r15
	callq	_svn_wc__write_upgraded_entries
	addq	$48, %rsp
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rbx), %rax
	movq	_SVN_ERR_WC_CORRUPT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_svn_error_quick_wrap
	jmp	LBB0_13
LBB0_7:
	movq	%rbx, %rdi
	callq	_SVN_ERR
	movq	_SVN_WC__WCPROPS_LOST@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, (%rax)
	je	LBB0_12
## %bb.8:
	movq	_SVN_WC__WCPROPS_MANY_FILES_VERSION@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_9
## %bb.10:
	leaq	-64(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r12, %rcx
	callq	_read_wcprops
	jmp	LBB0_11
LBB0_9:
	leaq	-64(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r12, %rcx
	callq	_read_many_wcprops
LBB0_11:
	movq	%rax, %rdi
	callq	_SVN_ERR
	movl	(%r13), %edi
	movq	-64(%rbp), %rcx
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %r8
	callq	_upgrade_apply_dav_cache
	movq	%rax, %rdi
	callq	_SVN_ERR
LBB0_12:
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	%r12, %r9
	callq	_migrate_props
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM_LOG,4,2                    ## @ADM_LOG
	.comm	_svn_node_file,8,3              ## @svn_node_file
	.comm	_SVN_ERR_WC_UNSUPPORTED_FORMAT,4,2 ## @SVN_ERR_WC_UNSUPPORTED_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot upgrade with existing logs; run a cleanup operation on this working copy using a client version which is compatible with this working copy's format (such as the version you are upgrading from), then retry the upgrade with the current version"

	.comm	_SVN_WC_ENTRY_THIS_DIR,4,2      ## @SVN_WC_ENTRY_THIS_DIR
	.comm	_SVN_ERR_WC_CORRUPT,8,3         ## @SVN_ERR_WC_CORRUPT
L_.str.1:                               ## @.str.1
	.asciz	"This working copy is corrupt and cannot be upgraded. Please check out a new working copy."

	.comm	_SVN_WC__WCPROPS_LOST,4,2       ## @SVN_WC__WCPROPS_LOST
	.comm	_SVN_WC__WCPROPS_MANY_FILES_VERSION,4,2 ## @SVN_WC__WCPROPS_MANY_FILES_VERSION
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_upgrade_to_wcng
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upgrade_to_wcng
_upgrade_to_wcng:                       ; @upgrade_to_wcng
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x27, x7
	mov	x28, x6
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	ldr	x21, [x29, #40]
Lloh0:
	adrp	x8, _ADM_LOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADM_LOG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x3
	mov	x2, x21
	bl	_svn_wc__adm_child
	add	x1, sp, #72
	mov	x2, x21
	bl	_svn_io_check_path
	bl	_SVN_ERR
	ldr	x8, [sp, #72]
Lloh3:
	adrp	x9, _svn_node_file@GOTPAGE
Lloh4:
	ldr	x9, [x9, _svn_node_file@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _SVN_ERR_WC_UNSUPPORTED_FORMAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SVN_ERR_WC_UNSUPPORTED_FORMAT@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x19
	mov	x1, #0
	bl	_svn_error_create
	b	LBB0_13
LBB0_2:
	stp	w20, w19, [sp, #32]             ; 8-byte Folded Spill
	ldr	x8, [x29, #32]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldp	x26, x20, [x29, #16]
	mov	x0, x22
	mov	x1, x21
	bl	_create_physical_lock
	bl	_SVN_ERR
	add	x0, sp, #64
	mov	x1, x22
	mov	x2, x21
	mov	x3, x21
	bl	_svn_wc__read_entries_old
	bl	_SVN_ERR
	ldr	x0, [sp, #64]
Lloh11:
	adrp	x8, _SVN_WC_ENTRY_THIS_DIR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SVN_WC_ENTRY_THIS_DIR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_svn_hash_gets
	mov	x19, x0
	mov	x1, x22
	mov	x2, x28
	mov	x3, x27
	mov	x4, x26
	mov	x5, x21
	mov	x6, x21
	bl	_ensure_repos_info
	bl	_SVN_ERR
	ldr	w1, [x19, #4]
	mov	x0, x26
	bl	_svn_hash_gets
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x26
	bl	_apr_hash_pool_get
	mov	x27, x0
	ldr	w1, [x19, #4]
	bl	_apr_pstrdup
	mov	x28, x0
	ldr	w1, [x19]
	mov	x0, x27
	bl	_apr_pstrdup
	mov	x2, x0
	mov	x0, x26
	mov	x1, x28
	bl	_svn_hash_sets
LBB0_4:
	ldr	w1, [x20, #4]
	mov	x0, x22
	mov	x2, x21
	bl	_svn_dirent_get_longest_ancestor
	mov	x1, x22
	bl	_svn_dirent_skip_ancestor
	mov	x26, x0
	ldp	w3, w2, [x20]
	add	x0, sp, #56
	mov	x1, x22
	mov	x4, x21
	mov	x5, x21
	bl	_migrate_text_bases
	bl	_SVN_ERR
	ldp	w5, w4, [x20, #8]
	ldp	w3, w7, [x20]
	ldp	x9, x8, [sp, #56]
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	stp	x10, x21, [sp, #16]
	stp	x8, x9, [sp]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x6, x22
	bl	_svn_wc__write_upgraded_entries
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _SVN_ERR_WC_CORRUPT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SVN_ERR_WC_CORRUPT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_svn_error_quick_wrap
	b	LBB0_13
LBB0_7:
	mov	x0, x19
	bl	_SVN_ERR
Lloh19:
	adrp	x8, _SVN_WC__WCPROPS_LOST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SVN_WC__WCPROPS_LOST@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldp	w23, w19, [sp, #32]             ; 8-byte Folded Reload
	cmp	w8, w23
	b.eq	LBB0_12
; %bb.8:
Lloh22:
	adrp	x8, _SVN_WC__WCPROPS_MANY_FILES_VERSION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SVN_WC__WCPROPS_MANY_FILES_VERSION@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	add	x0, sp, #48
	mov	x1, x22
	mov	x2, x21
	mov	x3, x21
	cmp	w8, w23
	b.ge	LBB0_10
; %bb.9:
	bl	_read_wcprops
	b	LBB0_11
LBB0_10:
	bl	_read_many_wcprops
LBB0_11:
	bl	_SVN_ERR
	ldr	w0, [x20]
	ldr	x3, [sp, #48]
	mov	x1, x26
	mov	x2, x19
	mov	x4, x21
	bl	_upgrade_apply_dav_cache
	bl	_SVN_ERR
LBB0_12:
	ldp	w2, w1, [x20]
	mov	x0, x22
	mov	x3, x23
	mov	x4, x19
	mov	x5, x21
	bl	_migrate_props
	bl	_SVN_ERR
Lloh25:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	x0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM_LOG,4,2                    ; @ADM_LOG
	.comm	_svn_node_file,8,3              ; @svn_node_file
	.comm	_SVN_ERR_WC_UNSUPPORTED_FORMAT,4,2 ; @SVN_ERR_WC_UNSUPPORTED_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot upgrade with existing logs; run a cleanup operation on this working copy using a client version which is compatible with this working copy's format (such as the version you are upgrading from), then retry the upgrade with the current version"

	.comm	_SVN_WC_ENTRY_THIS_DIR,4,2      ; @SVN_WC_ENTRY_THIS_DIR
	.comm	_SVN_ERR_WC_CORRUPT,8,3         ; @SVN_ERR_WC_CORRUPT
l_.str.1:                               ; @.str.1
	.asciz	"This working copy is corrupt and cannot be upgraded. Please check out a new working copy."

	.comm	_SVN_WC__WCPROPS_LOST,4,2       ; @SVN_WC__WCPROPS_LOST
	.comm	_SVN_WC__WCPROPS_MANY_FILES_VERSION,4,2 ; @SVN_WC__WCPROPS_MANY_FILES_VERSION
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_upgrade_to_wcng
.subsections_via_symbols
