	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_base__dag_finalize_edits ## -- Begin function svn_fs_base__dag_finalize_edits
	.p2align	4, 0x90
_svn_fs_base__dag_finalize_edits:       ## @svn_fs_base__dag_finalize_edits
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	16(%rdi), %r13
	movq	$0, -88(%rbp)
	movq	(%rdi), %rax
	movq	_svn_node_file@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%r8, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%r13), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rsi
	callq	_svn_fs_base__dag_check_mutable
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	8(%r12), %edx
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_svn_fs_bdb__get_node_revision
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.6:
	movq	%r14, %r9
	movq	%rbx, %r8
	leaq	-120(%rbp), %r14
	leaq	-112(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	callq	_svn_fs_base__rep_contents_checksums
	movq	%rax, %rdi
	callq	_SVN_ERR
	testq	%r15, %r15
	je	LBB0_12
## %bb.7:
	movq	(%r15), %rax
	movq	_svn_checksum_md5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:
	movq	_svn_checksum_sha1@GOTPCREL(%rip), %rcx
	movq	%rbx, %r14
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_10:
	movq	(%r14), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_svn_checksum_match
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:
	movq	-48(%rbp), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_20
## %bb.13:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	_SVN_FS_BASE__MIN_REP_SHARING_FORMAT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jge	LBB0_14
LBB0_20:
	movq	(%rax), %rcx
	movq	%rcx, -72(%rbp)
	xorl	%edx, %edx
	xorl	%r15d, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_1:
	movq	_SVN_ERR_FS_NOT_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	_SVN_ERR_FS_NOT_MUTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	__
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svn_error_createf              ## TAILCALL
LBB0_14:
	leaq	-72(%rbp), %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_svn_fs_bdb__get_checksum_rep
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	(%rax), %rcx
	movq	_SVN_ERR_FS_NO_SUCH_CHECKSUM_REP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_18
## %bb.17:
	movq	%rax, %rdi
	callq	_svn_error_clear
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -72(%rbp)
LBB0_18:
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	-48(%rbp), %rcx
	movq	(%rcx), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_svn_checksum_mismatch_err
	jmp	LBB0_26
LBB0_9:
	movq	_SVN_ERR_BAD_CHECKSUM_KIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_svn_error_create
	jmp	LBB0_26
LBB0_15:
	movq	-48(%rbp), %rax
	movq	(%rax), %r15
	movl	(%rbx), %esi
	leaq	-88(%rbp), %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_svn_fs_bdb__reserve_rep_reuse_id
LBB0_19:
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-72(%rbp), %rcx
	movq	-48(%rbp), %rax
	movq	-88(%rbp), %rdx
LBB0_21:
	movq	%rcx, 8(%rax)
	movq	%rdx, 16(%rax)
	movq	$0, (%rax)
	movl	8(%r12), %esi
	movq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_svn_fs_bdb__put_node_revision
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_svn_fs_base__delete_rep_if_mutable
	movq	%rax, %rdi
	callq	_SVN_ERR
LBB0_23:
	testq	%r15, %r15
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_25
## %bb.24:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_svn_fs_base__delete_rep_if_mutable
	movq	%rax, %rdi
	callq	_SVN_ERR
LBB0_25:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_26:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	"Attempted to set textual contents of a *non*-file node"

	.comm	_SVN_ERR_FS_NOT_MUTABLE,4,2     ## @SVN_ERR_FS_NOT_MUTABLE
L_.str.1:                               ## @.str.1
	.asciz	"Attempted to set textual contents of an immutable node"

	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_svn_checksum_md5,8,3           ## @svn_checksum_md5
	.comm	_svn_checksum_sha1,8,3          ## @svn_checksum_sha1
	.comm	_SVN_ERR_BAD_CHECKSUM_KIND,4,2  ## @SVN_ERR_BAD_CHECKSUM_KIND
L_.str.2:                               ## @.str.2
	.asciz	"Checksum mismatch on representation '%s'"

	.comm	_SVN_FS_BASE__MIN_REP_SHARING_FORMAT,8,3 ## @SVN_FS_BASE__MIN_REP_SHARING_FORMAT
	.comm	_SVN_ERR_FS_NO_SUCH_CHECKSUM_REP,8,3 ## @SVN_ERR_FS_NO_SUCH_CHECKSUM_REP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_base__dag_finalize_edits ; -- Begin function svn_fs_base__dag_finalize_edits
	.p2align	2
_svn_fs_base__dag_finalize_edits:       ; @svn_fs_base__dag_finalize_edits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x22, [x0, #16]
	str	xzr, [sp, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _svn_node_file@GOTPAGE
Lloh1:
	ldr	x9, [x9, _svn_node_file@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x27, [x22]
	mov	x1, x2
	bl	_svn_fs_base__dag_check_mutable
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w2, [x23, #8]
	add	x0, sp, #40
	mov	x1, x22
	mov	x3, x20
	mov	x4, x19
	bl	_svn_fs_bdb__get_node_revision
	bl	_SVN_ERR
	ldr	x8, [sp, #40]
	ldr	x3, [x8]
	cbz	x3, LBB0_9
; %bb.3:
	add	x0, sp, #16
	add	x1, sp, #8
	mov	x2, x22
	mov	x4, x20
	mov	x5, x19
	bl	_svn_fs_base__rep_contents_checksums
	bl	_SVN_ERR
	cbz	x24, LBB0_13
; %bb.4:
	ldr	x8, [x24]
Lloh3:
	adrp	x9, _svn_checksum_md5@GOTPAGE
Lloh4:
	ldr	x9, [x9, _svn_checksum_md5@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	add	x8, sp, #16
	b	LBB0_12
LBB0_6:
Lloh6:
	adrp	x8, _SVN_ERR_FS_NOT_FILE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SVN_ERR_FS_NOT_FILE@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _SVN_ERR_FS_NOT_MUTABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SVN_ERR_FS_NOT_MUTABLE@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	__
	mov	x2, x0
	mov	x0, x19
	mov	x1, #0
	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
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_svn_error_createf
LBB0_9:
Lloh16:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	b	LBB0_29
LBB0_10:
Lloh19:
	adrp	x9, _svn_checksum_sha1@GOTPAGE
Lloh20:
	ldr	x9, [x9, _svn_checksum_sha1@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.11:
	add	x8, sp, #8
LBB0_12:
	ldr	x25, [x8]
	mov	x0, x24
	mov	x1, x25
	bl	_svn_checksum_match
	cbz	w0, LBB0_19
LBB0_13:
	ldr	x8, [sp, #40]
	ldr	x24, [x8, #8]
	ldr	x2, [sp, #8]
Lloh22:
	adrp	x26, _SVN_NO_ERROR@GOTPAGE
Lloh23:
	ldr	x26, [x26, _SVN_NO_ERROR@GOTPAGEOFF]
	cbz	x2, LBB0_15
; %bb.14:
	ldr	x9, [x27]
Lloh24:
	adrp	x10, _SVN_FS_BASE__MIN_REP_SHARING_FORMAT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SVN_FS_BASE__MIN_REP_SHARING_FORMAT@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_16
LBB0_15:
	mov	x10, #0
	mov	x25, #0
	ldr	x9, [x8]
	str	x9, [sp, #32]
	b	LBB0_24
LBB0_16:
	add	x0, sp, #32
	mov	x1, x22
	mov	x3, x20
	mov	x4, x19
	bl	_svn_fs_bdb__get_checksum_rep
	cbz	x0, LBB0_21
; %bb.17:
	ldr	x8, [x0]
Lloh27:
	adrp	x9, _SVN_ERR_FS_NO_SUCH_CHECKSUM_REP@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SVN_ERR_FS_NO_SUCH_CHECKSUM_REP@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.18:
	bl	_svn_error_clear
	mov	x25, #0
	ldr	x0, [x26]
	ldr	x8, [sp, #40]
	ldr	x8, [x8]
	str	x8, [sp, #32]
	b	LBB0_23
LBB0_19:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x3, x0
	ldr	x8, [sp, #40]
	ldr	x4, [x8]
	mov	x0, x24
	mov	x1, x25
	mov	x2, x19
	bl	_svn_checksum_mismatch_err
	b	LBB0_29
LBB0_20:
Lloh32:
	adrp	x8, _SVN_ERR_BAD_CHECKSUM_KIND@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SVN_ERR_BAD_CHECKSUM_KIND@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, #0
	bl	_svn_error_create
	b	LBB0_29
LBB0_21:
	ldr	x8, [sp, #40]
	ldr	x25, [x8]
	ldr	w1, [x20]
	add	x0, sp, #24
	mov	x2, x20
	mov	x3, x19
	bl	_svn_fs_bdb__reserve_rep_reuse_id
	b	LBB0_23
LBB0_22:
	mov	x25, #0
LBB0_23:
	bl	_SVN_ERR
	ldp	x9, x8, [sp, #32]
	ldr	x10, [sp, #24]
LBB0_24:
	stp	x9, x10, [x8, #8]
	str	xzr, [x8]
	ldr	w1, [x23, #8]
	ldr	x2, [sp, #40]
	mov	x0, x22
	mov	x3, x20
	mov	x4, x19
	bl	_svn_fs_bdb__put_node_revision
	bl	_SVN_ERR
	cbz	x24, LBB0_26
; %bb.25:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_svn_fs_base__delete_rep_if_mutable
	bl	_SVN_ERR
LBB0_26:
	cbz	x25, LBB0_28
; %bb.27:
	mov	x0, x22
	mov	x1, x25
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_svn_fs_base__delete_rep_if_mutable
	bl	_SVN_ERR
LBB0_28:
	ldr	x0, [x26]
LBB0_29:
	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
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.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	"Attempted to set textual contents of a *non*-file node"

	.comm	_SVN_ERR_FS_NOT_MUTABLE,4,2     ; @SVN_ERR_FS_NOT_MUTABLE
l_.str.1:                               ; @.str.1
	.asciz	"Attempted to set textual contents of an immutable node"

	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_svn_checksum_md5,8,3           ; @svn_checksum_md5
	.comm	_svn_checksum_sha1,8,3          ; @svn_checksum_sha1
	.comm	_SVN_ERR_BAD_CHECKSUM_KIND,4,2  ; @SVN_ERR_BAD_CHECKSUM_KIND
l_.str.2:                               ; @.str.2
	.asciz	"Checksum mismatch on representation '%s'"

	.comm	_SVN_FS_BASE__MIN_REP_SHARING_FORMAT,8,3 ; @SVN_FS_BASE__MIN_REP_SHARING_FORMAT
	.comm	_SVN_ERR_FS_NO_SUCH_CHECKSUM_REP,8,3 ; @SVN_ERR_FS_NO_SUCH_CHECKSUM_REP
.subsections_via_symbols
