	.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	$24, %esi
	callq	_apr_pcalloc
	movq	%rax, %r15
	movl	68(%rbx), %edi
	callq	_svn_stream_close
	movl	%eax, %edi
	callq	_SVN_ERR
	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, 16(%r15)
	movl	64(%rbx), %eax
	movl	%eax, 8(%r15)
	movq	32(%rbx), %rax
	movl	8(%rax), %edi
	callq	_svn_fs_x__get_txn_id
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_svn_fs_x__change_set_by_txn
	movl	%eax, 4(%r15)
	movl	60(%rbx), %esi
	movl	52(%rbx), %ecx
	movl	56(%rbx), %edx
	movq	%r15, %rdi
	callq	_digests_final
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	24(%rbx), %esi
	movl	40(%rbx), %r8d
	movq	8(%rbx), %r9
	movl	52(%rbx), %r10d
	movl	16(%rbx), %eax
	subq	$8, %rsp
	leaq	-32(%rbp), %rdi
	movl	%r14d, %edx
	movq	%r15, %rcx
	pushq	%rax
	pushq	%r10
	pushq	$0
	callq	_get_shared_rep
	addq	$32, %rsp
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpq	$0, -32(%rbp)
	je	LBB0_2
## %bb.1:
	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_3
LBB0_2:
	movl	48(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_svn_stream_puts
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	16(%rbx), %ecx
	movl	24(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_allocate_item_index
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	24(%rbx), %edi
	movq	8(%rbx), %rdx
	movl	(%r15), %ecx
	movl	16(%rbx), %r8d
	movl	%r14d, %esi
	callq	_store_l2p_index_entry
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	%r15, %rax
LBB0_3:
	movq	32(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	48(%rbx), %edi
	callq	_svn_stream_close
	movl	%eax, %edi
	callq	_SVN_ERR
	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), %edx
	movl	24(%rbx), %edi
	movq	32(%rbx), %rsi
	callq	_svn_fs_x__put_node_revision
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpq	$0, -32(%rbp)
	jne	LBB0_5
## %bb.4:
	movq	_SVN_FS_X__INVALID_CHANGE_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)
	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, -56(%rbp)
	movq	_SVN_FS_X__ITEM_TYPE_FILE_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$1, -80(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	44(%rbx), %eax
	movl	%eax, -76(%rbp)
	movl	16(%rbx), %ecx
	movl	24(%rbx), %edi
	leaq	-88(%rbp), %rdx
	movl	%r14d, %esi
	callq	_store_p2l_index_entry
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_5:
	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_7
## %bb.6:
	movl	16(%rbx), %edx
	movl	24(%rbx), %edi
	movq	32(%rbx), %rsi
	callq	_store_sha1_rep_mapping
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_7:
	movl	24(%rbx), %edi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	movl	%r14d, %esi
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENDREP\n"

	.comm	_rep_write_cleanup,4,2          ## @rep_write_cleanup
	.comm	_SVN_FS_X__INVALID_CHANGE_SET,4,2 ## @SVN_FS_X__INVALID_CHANGE_SET
	.comm	_SVN_FS_X__ITEM_TYPE_FILE_REP,4,2 ## @SVN_FS_X__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, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, #24
	bl	_apr_pcalloc
	mov	x21, x0
	ldr	w0, [x19, #68]
	bl	_svn_stream_close
	bl	_SVN_ERR
	ldr	w1, [x19, #40]
	ldr	w2, [x19, #16]
	sub	x0, x29, #48
	bl	_svn_io_file_get_offset
	bl	_SVN_ERR
	ldur	x8, [x29, #-48]
	ldr	x9, [x19]
	sub	x8, x8, x9
	str	x8, [x21, #16]
	ldr	w8, [x19, #64]
	str	w8, [x21, #8]
	ldr	x8, [x19, #32]
	ldr	w0, [x8, #8]
	bl	_svn_fs_x__get_txn_id
	mov	x20, x0
	bl	_svn_fs_x__change_set_by_txn
	str	w0, [x21, #4]
	ldp	w2, w1, [x19, #56]
	ldr	w3, [x19, #52]
	mov	x0, x21
	bl	_digests_final
	bl	_SVN_ERR
	ldr	w1, [x19, #24]
	ldr	w4, [x19, #40]
	ldr	x5, [x19, #8]
	ldr	w7, [x19, #52]
	ldr	w8, [x19, #16]
	str	w8, [sp]
	sub	x0, x29, #40
	mov	x2, x20
	mov	x3, x21
	mov	x6, #0
	bl	_get_shared_rep
	bl	_SVN_ERR
	ldur	x8, [x29, #-40]
	cbz	x8, LBB0_2
; %bb.1:
	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_3
LBB0_2:
	ldr	w0, [x19, #48]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_svn_stream_puts
	bl	_SVN_ERR
	ldr	w1, [x19, #24]
	ldr	w3, [x19, #16]
	mov	x0, x21
	mov	x2, x20
	bl	_allocate_item_index
	bl	_SVN_ERR
	ldr	w0, [x19, #24]
	ldr	x2, [x19, #8]
	ldr	w3, [x21]
	ldr	w4, [x19, #16]
	mov	x1, x20
	bl	_store_l2p_index_entry
	bl	_SVN_ERR
	mov	x8, x21
LBB0_3:
	ldr	x9, [x19, #32]
	str	x8, [x9]
	ldr	w0, [x19, #48]
	bl	_svn_stream_close
	bl	_SVN_ERR
	ldr	w0, [x19, #16]
Lloh2:
	adrp	x8, _rep_write_cleanup@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rep_write_cleanup@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_apr_pool_cleanup_kill
	ldr	w0, [x19, #24]
	ldr	x1, [x19, #32]
	ldr	w2, [x19, #16]
	bl	_svn_fs_x__put_node_revision
	bl	_SVN_ERR
	ldur	x8, [x29, #-40]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _SVN_FS_X__INVALID_CHANGE_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SVN_FS_X__INVALID_CHANGE_SET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldr	w8, [x21]
	str	w8, [sp, #16]
	ldr	x8, [x19, #8]
	str	x8, [sp, #24]
	ldr	w1, [x19, #40]
	ldr	w2, [x19, #16]
	sub	x0, x29, #48
	bl	_svn_io_file_get_offset
	bl	_SVN_ERR
	ldur	x8, [x29, #-48]
	ldr	x9, [x19, #8]
	sub	x8, x8, x9
	str	x8, [sp, #56]
Lloh8:
	adrp	x8, _SVN_FS_X__ITEM_TYPE_FILE_REP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SVN_FS_X__ITEM_TYPE_FILE_REP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	mov	w8, #1
	add	x9, sp, #16
	str	x9, [sp, #40]
	ldr	w9, [x19, #44]
	stp	w8, w9, [sp, #32]
	ldr	w0, [x19, #24]
	ldr	w3, [x19, #16]
	add	x2, sp, #24
	mov	x1, x20
	bl	_store_p2l_index_entry
	bl	_SVN_ERR
LBB0_5:
	ldr	w0, [x19, #40]
	ldr	w1, [x19, #16]
	bl	_svn_io_file_close
	bl	_SVN_ERR
	ldur	x8, [x29, #-40]
	cbnz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x19, #24]
	ldr	x1, [x19, #32]
	ldr	w2, [x19, #16]
	bl	_store_sha1_rep_mapping
	bl	_SVN_ERR
LBB0_7:
	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
Lloh11:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENDREP\n"

	.comm	_rep_write_cleanup,4,2          ; @rep_write_cleanup
	.comm	_SVN_FS_X__INVALID_CHANGE_SET,4,2 ; @SVN_FS_X__INVALID_CHANGE_SET
	.comm	_SVN_FS_X__ITEM_TYPE_FILE_REP,4,2 ; @SVN_FS_X__ITEM_TYPE_FILE_REP
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_rep_write_contents_close
.subsections_via_symbols
