	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_client__mtcc_add_update_file ## -- Begin function svn_client__mtcc_add_update_file
	.p2align	4, 0x90
_svn_client__mtcc_add_update_file:      ## @svn_client__mtcc_add_update_file
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rbp), %r12
	callq	_svn_relpath_is_canonical
	testq	%rax, %rax
	setne	%al
	testq	%r14, %r14
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_SVN_ERR_ASSERT
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rcx
	movq	%r12, %r8
	callq	_svn_client__mtcc_check_path
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-80(%rbp), %rax
	movq	_svn_node_file@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movl	(%r15), %eax
	movl	4(%r15), %ecx
	movq	_TRUE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	(%r13), %r9d
	subq	$8, %rsp
	leaq	-48(%rbp), %rdi
	leaq	-84(%rbp), %rsi
	movq	%rbx, %rdx
	pushq	%r12
	pushq	%rax
	pushq	%r8
	callq	_mtcc_op_find
	addq	$32, %rsp
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.4:
	movq	(%rcx), %rax
	movq	_OP_OPEN_FILE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_6
## %bb.5:
	movq	_OP_ADD_FILE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_7
LBB0_6:
	cmpq	$0, 32(%rcx)
	je	LBB0_8
LBB0_7:
	movq	_SVN_ERR_ILLEGAL_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	movq	_SVN_ERR_FS_NOT_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	__
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_svn_error_createf
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, 32(%rcx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.10:
	movl	(%r15), %esi
	callq	_svn_checksum_dup
	movq	-48(%rbp), %rcx
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	movq	%rax, 24(%rcx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.13:
	movl	(%r15), %esi
	callq	_svn_checksum_dup
	movq	-48(%rbp), %rcx
	jmp	LBB0_14
LBB0_12:
	xorl	%eax, %eax
LBB0_14:
	movq	%rax, 8(%rcx)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_svn_node_file,8,3              ## @svn_node_file
	.comm	_SVN_ERR_FS_NOT_FILE,4,2        ## @SVN_ERR_FS_NOT_FILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't update '%s' because it is not a file"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_OP_OPEN_FILE,8,3               ## @OP_OPEN_FILE
	.comm	_OP_ADD_FILE,8,3                ## @OP_ADD_FILE
	.comm	_SVN_ERR_ILLEGAL_TARGET,4,2     ## @SVN_ERR_ILLEGAL_TARGET
L_.str.1:                               ## @.str.1
	.asciz	"Can't update file at '%s'"

	.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_client__mtcc_add_update_file ; -- Begin function svn_client__mtcc_add_update_file
	.p2align	2
_svn_client__mtcc_add_update_file:      ; @svn_client__mtcc_add_update_file
	.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	x25, x6
	mov	x20, x5
	mov	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
	bl	_svn_relpath_is_canonical
	cmp	x24, #0
	ccmp	x0, #0, #4, ne
	cset	w0, ne
	bl	_SVN_ERR_ASSERT
Lloh0:
	adrp	x26, _FALSE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
	ldr	w2, [x26]
	add	x0, sp, #8
	mov	x1, x22
	mov	x3, x20
	mov	x4, x25
	bl	_svn_client__mtcc_check_path
	bl	_SVN_ERR
	ldr	x8, [sp, #8]
Lloh2:
	adrp	x9, _svn_node_file@GOTPAGE
Lloh3:
	ldr	x9, [x9, _svn_node_file@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	ldr	w5, [x26]
	ldp	w7, w3, [x20]
	str	x25, [sp]
	add	x0, sp, #24
	add	x1, sp, #20
	mov	x2, x22
	mov	x6, x4
	bl	_mtcc_op_find
	bl	_SVN_ERR
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x9, [x8]
Lloh8:
	adrp	x10, _OP_OPEN_FILE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _OP_OPEN_FILE@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _OP_ADD_FILE@GOTPAGE
Lloh12:
	ldr	x11, [x11, _OP_ADD_FILE@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_8
LBB0_4:
Lloh14:
	adrp	x8, _SVN_ERR_ILLEGAL_TARGET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SVN_ERR_ILLEGAL_TARGET@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _SVN_ERR_FS_NOT_FILE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SVN_ERR_FS_NOT_FILE@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	bl	__
	mov	x2, x0
	mov	x0, x19
	mov	x1, #0
	mov	x3, x22
	bl	_svn_error_createf
LBB0_7:
	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
LBB0_8:
	str	x24, [x8, #32]
	cbz	x23, LBB0_11
; %bb.9:
	ldr	w1, [x20]
	mov	x0, x23
	bl	_svn_checksum_dup
	ldr	x8, [sp, #24]
	stp	x21, x0, [x8, #16]
	cbz	x19, LBB0_12
LBB0_10:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_svn_checksum_dup
	ldr	x8, [sp, #24]
	b	LBB0_13
LBB0_11:
	mov	x0, #0
	stp	x21, x0, [x8, #16]
	cbnz	x19, LBB0_10
LBB0_12:
	mov	x0, #0
LBB0_13:
	str	x0, [x8, #8]
Lloh24:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_svn_node_file,8,3              ; @svn_node_file
	.comm	_SVN_ERR_FS_NOT_FILE,4,2        ; @SVN_ERR_FS_NOT_FILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't update '%s' because it is not a file"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_OP_OPEN_FILE,8,3               ; @OP_OPEN_FILE
	.comm	_OP_ADD_FILE,8,3                ; @OP_ADD_FILE
	.comm	_SVN_ERR_ILLEGAL_TARGET,4,2     ; @SVN_ERR_ILLEGAL_TARGET
l_.str.1:                               ; @.str.1
	.asciz	"Can't update file at '%s'"

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