	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rep_write_contents_close
_rep_write_contents_close:              ## @rep_write_contents_close
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	52(%rdi), %edi
	movl	$32, %esi
	callq	_apr_pcalloc
	movq	%rax, %r14
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_svn_stream_close
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_2:
	movl	16(%rbx), %edx
	movl	40(%rbx), %esi
	leaq	-40(%rbp), %rdi
	callq	_svn_io_file_get_offset
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-40(%rbp), %rax
	subq	(%rbx), %rax
	movq	%rax, 24(%r14)
	movl	64(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	callq	_svn_fs_fs__id_txn_id
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	16(%rbx), %edx
	movl	24(%rbx), %edi
	movq	%r14, %rsi
	callq	_set_uniquifier
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	_SVN_INVALID_REVNUM@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 8(%r14)
	movl	60(%rbx), %esi
	movl	52(%rbx), %ecx
	movl	56(%rbx), %edx
	movq	%r14, %rdi
	callq	_digests_final
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	24(%rbx), %esi
	movl	40(%rbx), %ecx
	movq	8(%rbx), %r8
	movl	52(%rbx), %r10d
	movl	16(%rbx), %eax
	leaq	-32(%rbp), %rdi
	movq	%r14, %rdx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_get_shared_rep
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpq	$0, -32(%rbp)
	je	LBB0_4
## %bb.3:
	movl	40(%rbx), %edi
	movq	8(%rbx), %rsi
	movl	16(%rbx), %edx
	callq	_svn_io_file_trunc
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-32(%rbp), %rax
	jmp	LBB0_5
LBB0_4:
	movl	48(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_svn_stream_puts
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	%r14, %rdi
	addq	$4, %rdi
	movl	24(%rbx), %esi
	movq	8(%rbx), %rcx
	movl	16(%rbx), %r8d
	movq	%r14, %rdx
	callq	_allocate_item_index
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	%r14, %rax
LBB0_5:
	movq	32(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	16(%rbx), %edi
	movq	_rep_write_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_apr_pool_cleanup_kill
	movl	16(%rbx), %r8d
	movl	24(%rbx), %edi
	movq	32(%rbx), %rdx
	movl	(%rdx), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_svn_fs_fs__put_node_revision
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpq	$0, -32(%rbp)
	jne	LBB0_8
## %bb.6:
	movl	24(%rbx), %edi
	callq	_svn_fs_fs__use_log_addressing
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movq	%rax, -88(%rbp)
	movl	16(%rbx), %edx
	movl	40(%rbx), %esi
	leaq	-40(%rbp), %rdi
	callq	_svn_io_file_get_offset
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-40(%rbp), %rax
	subq	8(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	_SVN_FS_FS__ITEM_TYPE_FILE_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	(%r15), %rax
	movq	%rax, -64(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -72(%rbp)
	leaq	-80(%rbp), %rdi
	movl	16(%rbx), %edx
	movl	44(%rbx), %esi
	callq	_fnv1a_checksum_finalize
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	16(%rbx), %ecx
	movl	24(%rbx), %edi
	leaq	-88(%rbp), %rdx
	movq	%r14, %rsi
	callq	_store_p2l_index_entry
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_8:
	movl	16(%rbx), %esi
	movl	40(%rbx), %edi
	callq	_svn_io_file_close
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpq	$0, -32(%rbp)
	jne	LBB0_10
## %bb.9:
	movl	16(%rbx), %edx
	movl	24(%rbx), %edi
	movq	32(%rbx), %rsi
	callq	_store_sha1_rep_mapping
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_10:
	movl	24(%rbx), %edi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	movq	%r14, %rsi
	callq	_unlock_proto_rev
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	16(%rbx), %edi
	callq	_svn_pool_destroy
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_INVALID_REVNUM,8,3         ## @SVN_INVALID_REVNUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENDREP\n"

	.comm	_rep_write_cleanup,4,2          ## @rep_write_cleanup
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SVN_FS_FS__ITEM_TYPE_FILE_REP,4,2 ## @SVN_FS_FS__ITEM_TYPE_FILE_REP
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_rep_write_contents_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rep_write_contents_close
_rep_write_contents_close:              ; @rep_write_contents_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	ldr	w0, [x0, #52]
	mov	w1, #32
	bl	_apr_pcalloc
	mov	x20, x0
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_svn_stream_close
	bl	_SVN_ERR
LBB0_2:
	ldr	w1, [x19, #40]
	ldr	w2, [x19, #16]
	add	x0, sp, #48
	bl	_svn_io_file_get_offset
	bl	_SVN_ERR
	ldr	x8, [sp, #48]
	ldr	x9, [x19]
	sub	x8, x8, x9
	str	x8, [x20, #24]
	ldr	w8, [x19, #64]
	str	w8, [x20, #16]
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_svn_fs_fs__id_txn_id
	ldr	w8, [x0]
	str	w8, [x20]
	ldr	w0, [x19, #24]
	ldr	w2, [x19, #16]
	mov	x1, x20
	bl	_set_uniquifier
	bl	_SVN_ERR
Lloh0:
	adrp	x21, _SVN_INVALID_REVNUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SVN_INVALID_REVNUM@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [x20, #8]
	ldp	w2, w1, [x19, #56]
	ldr	w3, [x19, #52]
	mov	x0, x20
	bl	_digests_final
	bl	_SVN_ERR
	ldr	w1, [x19, #24]
	ldr	w3, [x19, #40]
	ldr	x4, [x19, #8]
	ldr	w6, [x19, #52]
	ldr	w7, [x19, #16]
	sub	x0, x29, #40
	mov	x2, x20
	mov	x5, #0
	bl	_get_shared_rep
	bl	_SVN_ERR
	ldur	x8, [x29, #-40]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #40]
	ldr	x1, [x19, #8]
	ldr	w2, [x19, #16]
	bl	_svn_io_file_trunc
	bl	_SVN_ERR
	ldur	x8, [x29, #-40]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #48]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_svn_stream_puts
	bl	_SVN_ERR
	add	x0, x20, #4
	ldr	w1, [x19, #24]
	ldr	x3, [x19, #8]
	ldr	w4, [x19, #16]
	mov	x2, x20
	bl	_allocate_item_index
	bl	_SVN_ERR
	mov	x8, x20
LBB0_5:
	ldr	x9, [x19, #32]
	str	x8, [x9, #8]
	ldr	w0, [x19, #16]
Lloh4:
	adrp	x8, _rep_write_cleanup@GOTPAGE
Lloh5:
	ldr	x8, [x8, _rep_write_cleanup@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_apr_pool_cleanup_kill
	ldr	w0, [x19, #24]
	ldr	x2, [x19, #32]
	ldr	w1, [x2]
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	ldr	w4, [x19, #16]
	bl	_svn_fs_fs__put_node_revision
	bl	_SVN_ERR
	ldur	x8, [x29, #-40]
	cbnz	x8, LBB0_8
; %bb.6:
	ldr	w0, [x19, #24]
	bl	_svn_fs_fs__use_log_addressing
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	str	x8, [sp]
	ldr	w1, [x19, #40]
	ldr	w2, [x19, #16]
	add	x0, sp, #48
	bl	_svn_io_file_get_offset
	bl	_SVN_ERR
	ldr	x8, [sp, #48]
	ldr	x9, [x19, #8]
	sub	x8, x8, x9
	str	x8, [sp, #40]
Lloh10:
	adrp	x8, _SVN_FS_FS__ITEM_TYPE_FILE_REP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SVN_FS_FS__ITEM_TYPE_FILE_REP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	ldr	x8, [x21]
	str	x8, [sp, #24]
	ldr	w8, [x20, #4]
	str	w8, [sp, #16]
	mov	x8, sp
	add	x0, x8, #8
	ldr	w1, [x19, #44]
	ldr	w2, [x19, #16]
	bl	_fnv1a_checksum_finalize
	bl	_SVN_ERR
	ldr	w0, [x19, #24]
	ldr	w3, [x19, #16]
	mov	x2, sp
	mov	x1, x20
	bl	_store_p2l_index_entry
	bl	_SVN_ERR
LBB0_8:
	ldr	w0, [x19, #40]
	ldr	w1, [x19, #16]
	bl	_svn_io_file_close
	bl	_SVN_ERR
	ldur	x8, [x29, #-40]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x19, #24]
	ldr	x1, [x19, #32]
	ldr	w2, [x19, #16]
	bl	_store_sha1_rep_mapping
	bl	_SVN_ERR
LBB0_10:
	ldp	w2, w0, [x19, #20]
	ldr	w3, [x19, #16]
	mov	x1, x20
	bl	_unlock_proto_rev
	bl	_SVN_ERR
	ldr	w0, [x19, #16]
	bl	_svn_pool_destroy
Lloh13:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_INVALID_REVNUM,8,3         ; @SVN_INVALID_REVNUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENDREP\n"

	.comm	_rep_write_cleanup,4,2          ; @rep_write_cleanup
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SVN_FS_FS__ITEM_TYPE_FILE_REP,4,2 ; @SVN_FS_FS__ITEM_TYPE_FILE_REP
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_rep_write_contents_close
.subsections_via_symbols
