	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txn_body_apply_textdelta
_txn_body_apply_textdelta:              ## @txn_body_apply_textdelta
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	48(%rdi), %rsi
	movq	(%rsi), %r15
	movl	12(%rdi), %edx
	movl	(%r14), %eax
	movl	%eax, (%rsp)
	leaq	-48(%rbp), %rdi
	xorl	%ecx, %ecx
	movq	%r15, %r8
	movq	%r14, %r9
	callq	_open_path
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	48(%rbx), %rdi
	movq	_SVN_FS_TXN_CHECK_LOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movq	%r14, %rdx
	callq	_svn_fs_base__allow_locked_operation
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	48(%rbx), %rdi
LBB0_2:
	movq	-48(%rbp), %rsi
	movl	12(%rbx), %edx
	movl	(%r14), %r8d
	movq	%r14, %rcx
	callq	_make_path_mutable
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movl	%edx, 28(%rbx)
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	(%rax), %esi
	movl	(%r14), %r8d
	leaq	-40(%rbp), %rdi
	movq	%r14, %rcx
	callq	_svn_fs_base__dag_file_checksum
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	40(%rbx), %rdi
	movq	-40(%rbp), %rsi
	callq	_svn_checksum_match
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	28(%rbx), %edx
LBB0_6:
	leaq	20(%rbx), %rdi
	movl	8(%rbx), %ecx
	movl	%edx, %esi
	movq	%r14, %rdx
	callq	_svn_fs_base__dag_get_contents
	movl	%eax, %edi
	callq	_SVN_ERR
	leaq	32(%rbx), %rdi
	movl	8(%rbx), %r8d
	movl	28(%rbx), %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_svn_fs_base__dag_get_edit_stream
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	8(%rbx), %edi
	callq	_svn_stringbuf_create_empty
	movl	%eax, 24(%rbx)
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_svn_stream_create
	movl	%eax, 16(%rbx)
	movq	_write_to_string@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_svn_stream_set_write
	movl	20(%rbx), %edi
	movl	16(%rbx), %esi
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	movq	%rbx, (%rsp)
	addq	$4, %rbx
	xorl	%edx, %edx
	movq	%rbx, %r9
	callq	_svn_txdelta_apply
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_4:
	movq	40(%rbx), %r15
	movq	-40(%rbp), %r12
	movl	(%r14), %r14d
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	12(%rbx), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_svn_checksum_mismatch_err
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_FS_TXN_CHECK_LOCKS,4,2     ## @SVN_FS_TXN_CHECK_LOCKS
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Base checksum mismatch on '%s'"

	.comm	_write_to_string,4,2            ## @write_to_string
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_txn_body_apply_textdelta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txn_body_apply_textdelta
_txn_body_apply_textdelta:              ; @txn_body_apply_textdelta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x1, [x0, #48]
	ldr	x21, [x1]
	ldr	w2, [x0, #12]
	ldr	w6, [x20]
	add	x0, sp, #8
	mov	w3, #0
	mov	x4, x21
	mov	x5, x20
	bl	_open_path
	bl	_SVN_ERR
	ldr	x0, [x19, #48]
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _SVN_FS_TXN_CHECK_LOCKS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SVN_FS_TXN_CHECK_LOCKS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	x2, x20
	bl	_svn_fs_base__allow_locked_operation
	bl	_SVN_ERR
	ldr	x0, [x19, #48]
LBB0_2:
	ldr	x1, [sp, #8]
	ldr	w2, [x19, #12]
	ldr	w4, [x20]
	mov	x3, x20
	bl	_make_path_mutable
	bl	_SVN_ERR
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	str	w2, [x19, #28]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w1, [x8]
	ldr	w4, [x20]
	mov	x0, sp
	mov	x3, x20
	bl	_svn_fs_base__dag_file_checksum
	bl	_SVN_ERR
	ldr	x0, [x19, #40]
	ldr	x1, [sp]
	bl	_svn_checksum_match
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w2, [x19, #28]
LBB0_5:
	add	x0, x19, #20
	ldr	w3, [x19, #8]
	mov	x1, x2
	mov	x2, x20
	bl	_svn_fs_base__dag_get_contents
	bl	_SVN_ERR
	add	x0, x19, #32
	ldr	w1, [x19, #28]
	ldr	w4, [x19, #8]
	mov	x2, x21
	mov	x3, x20
	bl	_svn_fs_base__dag_get_edit_stream
	bl	_SVN_ERR
	ldr	w0, [x19, #8]
	bl	_svn_stringbuf_create_empty
	str	w0, [x19, #24]
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_svn_stream_create
	str	w0, [x19, #16]
Lloh6:
	adrp	x8, _write_to_string@GOTPAGE
Lloh7:
	ldr	x8, [x8, _write_to_string@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_svn_stream_set_write
	ldp	w1, w0, [x19, #16]
	add	x5, x19, #4
	ldp	w4, w3, [x19, #8]
	mov	x2, #0
	mov	x6, x19
	bl	_svn_txdelta_apply
Lloh9:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	b	LBB0_7
LBB0_6:
	ldr	x21, [x19, #40]
	ldr	x22, [sp]
	ldr	w20, [x20]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x3, x0
	ldr	w4, [x19, #12]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_svn_checksum_mismatch_err
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_FS_TXN_CHECK_LOCKS,4,2     ; @SVN_FS_TXN_CHECK_LOCKS
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Base checksum mismatch on '%s'"

	.comm	_write_to_string,4,2            ; @write_to_string
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_txn_body_apply_textdelta
.subsections_via_symbols
