	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upgrade_external_item
_upgrade_external_item:                 ## @upgrade_external_item
	.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
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	16(%rbp), %r13
	movl	32(%r8), %esi
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r13, %rdx
	callq	_svn_dirent_join
	leaq	-72(%rbp), %rdi
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movq	%rax, %r12
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r15
	movq	%r13, %r8
	movq	%r13, %r9
	callq	_svn_wc__resolve_relative_external_url
	movq	%rax, %rdi
	callq	_SVN_ERR
	movl	(%rbx), %esi
	movq	_TRUE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	leaq	-44(%rbp), %rdi
	movq	%r12, %rdx
	movq	%r13, %r9
	callq	_svn_wc_read_kind2
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rcx
	movq	_SVN_ERR_WC_UPGRADE_REQUIRED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.2:
	movq	%rax, %rdi
	callq	_svn_error_clear
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_svn_client_upgrade
	movq	%rax, %rdi
	callq	_SVN_ERR
LBB0_3:
	movl	(%r15), %esi
	movl	(%r14), %ecx
	movl	(%rbx), %r8d
	leaq	-44(%rbp), %rdi
	movq	%r12, %rdx
	movq	%r13, %r9
	callq	_svn_wc_read_kind2
	movq	%rax, %rdi
	callq	_SVN_ERR
	movl	(%r15), %r8d
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	xorl	%edi, %edi
	movq	%r12, %r9
	pushq	%r13
	pushq	%r13
	callq	_svn_wc__node_get_repos_info
	addq	$16, %rsp
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-72(%rbp), %rbx
	movq	-56(%rbp), %rdi
	movq	-64(%rbp), %rsi
	movq	%r13, %rdx
	callq	_svn_path_url_add_component2
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	-72(%rbp), %rcx
	leaq	-56(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %r8
	movq	%r13, %r9
	callq	_fetch_repos_info
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-56(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movq	%r13, %rdx
	callq	_svn_uri_skip_ancestor
	movq	%rax, %r8
	movq	%rax, -64(%rbp)
	movq	_svn_node_unknown@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)
	jmp	LBB0_6
LBB0_8:
	movq	%rax, %rdi
	callq	_svn_error_trace
	jmp	LBB0_7
LBB0_4:
	movl	-44(%rbp), %edx
	movq	-64(%rbp), %r8
LBB0_6:
	movq	_svn_opt_revision_number@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leaq	24(%rbx), %rcx
	cmpq	%rax, 16(%rbx)
	movq	_SVN_INVALID_REVNUM@GOTPCREL(%rip), %rsi
	cmovneq	%rsi, %rcx
	leaq	8(%rbx), %rdi
	cmpq	%rax, (%rbx)
	cmovneq	%rsi, %rdi
	movl	(%rcx), %eax
	movl	(%rdi), %ebx
	movl	(%r15), %edi
	movq	-56(%rbp), %r9
	movq	%r12, %rsi
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	pushq	%r13
	pushq	%rbx
	pushq	%rax
	pushq	-80(%rbp)
	callq	_svn_wc__upgrade_add_external_info
	addq	$32, %rsp
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_7:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SVN_ERR_WC_UPGRADE_REQUIRED,8,3 ## @SVN_ERR_WC_UPGRADE_REQUIRED
	.comm	_svn_node_unknown,4,2           ## @svn_node_unknown
	.comm	_svn_opt_revision_number,8,3    ## @svn_opt_revision_number
	.comm	_SVN_INVALID_REVNUM,4,2         ## @SVN_INVALID_REVNUM
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_upgrade_external_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upgrade_external_item
_upgrade_external_item:                 ; @upgrade_external_item
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x6
	mov	x24, x5
	mov	x23, x4
	mov	x25, x3
	mov	x26, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w1, [x4, #32]
	mov	x0, x19
	mov	x2, x6
	bl	_svn_dirent_join
	mov	x21, x0
	add	x0, sp, #56
	mov	x1, x23
	mov	x2, x25
	mov	x3, x26
	mov	x4, x20
	mov	x5, x20
	bl	_svn_wc__resolve_relative_external_url
	bl	_SVN_ERR
	ldr	w1, [x22]
Lloh0:
	adrp	x25, _TRUE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	ldr	w3, [x25]
Lloh2:
	adrp	x26, _FALSE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
	ldr	w4, [x26]
	add	x0, sp, #28
	mov	x2, x21
	mov	x5, x20
	bl	_svn_wc_read_kind2
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh4:
	adrp	x9, _SVN_ERR_WC_UPGRADE_REQUIRED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SVN_ERR_WC_UPGRADE_REQUIRED@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	bl	_svn_error_clear
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_svn_client_upgrade
	bl	_SVN_ERR
LBB0_3:
	ldr	w1, [x22]
	ldr	w3, [x25]
	ldr	w4, [x26]
	add	x0, sp, #28
	mov	x2, x21
	mov	x5, x20
	bl	_svn_wc_read_kind2
	bl	_SVN_ERR
	ldr	w4, [x22]
	add	x1, sp, #48
	add	x2, sp, #40
	add	x3, sp, #32
	mov	x0, #0
	mov	x5, x21
	mov	x6, x20
	mov	x7, x20
	bl	_svn_wc__node_get_repos_info
	bl	_SVN_ERR
	ldp	x1, x25, [sp, #48]
	ldr	x0, [sp, #40]
	mov	x2, x20
	bl	_svn_path_url_add_component2
	mov	x1, x0
	mov	x0, x25
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x3, [sp, #56]
	add	x0, sp, #40
	add	x1, sp, #32
	mov	x2, x24
	mov	x4, x20
	mov	x5, x20
	bl	_fetch_repos_info
	bl	_SVN_ERR
	ldr	x0, [sp, #40]
	ldr	x1, [sp, #56]
	mov	x2, x20
	bl	_svn_uri_skip_ancestor
	mov	x4, x0
	str	x0, [sp, #48]
Lloh7:
	adrp	x8, _svn_node_unknown@GOTPAGE
Lloh8:
	ldr	x8, [x8, _svn_node_unknown@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	str	w2, [sp, #28]
	b	LBB0_7
LBB0_5:
	bl	_svn_error_trace
	b	LBB0_8
LBB0_6:
	ldr	w2, [sp, #28]
	ldr	x4, [sp, #48]
LBB0_7:
	ldr	x8, [x23, #16]
Lloh10:
	adrp	x9, _svn_opt_revision_number@GOTPAGE
Lloh11:
	ldr	x9, [x9, _svn_opt_revision_number@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _SVN_INVALID_REVNUM@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SVN_INVALID_REVNUM@GOTPAGEOFF]
	add	x11, x23, #24
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w7, [x8]
	ldr	x8, [x23]
	add	x11, x23, #8
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	ldr	w0, [x22]
	ldp	x6, x5, [sp, #32]
	str	x20, [sp, #8]
	str	w8, [sp]
	mov	x1, x21
	mov	x3, x19
	bl	_svn_wc__upgrade_add_external_info
	bl	_SVN_ERR
Lloh15:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SVN_ERR_WC_UPGRADE_REQUIRED,8,3 ; @SVN_ERR_WC_UPGRADE_REQUIRED
	.comm	_svn_node_unknown,4,2           ; @svn_node_unknown
	.comm	_svn_opt_revision_number,8,3    ; @svn_opt_revision_number
	.comm	_SVN_INVALID_REVNUM,4,2         ; @SVN_INVALID_REVNUM
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_upgrade_external_item
.subsections_via_symbols
