	.file	"extr_transaction.c_rep_write_contents_close.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ENDREP\n"
	.text
	.p2align 4
	.type	rep_write_contents_close, @function
rep_write_contents_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 24
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 88
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR 52[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	lea	r13, 16[rsp]
	call	apr_pcalloc@PLT
	mov	edi, DWORD PTR 68[rbx]
	mov	rbp, rax
	call	svn_stream_close@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR 40[rbx]
	mov	rdi, r13
	call	svn_io_file_get_offset@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rax, QWORD PTR 16[rsp]
	sub	rax, QWORD PTR [rbx]
	mov	QWORD PTR 16[rbp], rax
	mov	eax, DWORD PTR 64[rbx]
	mov	DWORD PTR 8[rbp], eax
	mov	rax, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR 8[rax]
	call	svn_fs_x__get_txn_id@PLT
	mov	edi, eax
	mov	r12d, eax
	call	svn_fs_x__change_set_by_txn@PLT
	mov	ecx, DWORD PTR 52[rbx]
	mov	edx, DWORD PTR 56[rbx]
	mov	rdi, rbp
	mov	DWORD PTR 4[rbp], eax
	mov	esi, DWORD PTR 60[rbx]
	call	digests_final@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	eax, DWORD PTR 16[rbx]
	lea	rdi, 8[rsp]
	mov	esi, DWORD PTR 24[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	mov	r9, QWORD PTR 8[rbx]
	mov	r8d, DWORD PTR 40[rbx]
	mov	rcx, rbp
	push	rax
	.cfi_def_cfa_offset 144
	mov	eax, DWORD PTR 52[rbx]
	mov	edx, r12d
	push	rax
	.cfi_def_cfa_offset 152
	push	0
	.cfi_def_cfa_offset 160
	call	get_shared_rep@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 128
	mov	edi, eax
	call	SVN_ERR@PLT
	cmp	QWORD PTR 8[rsp], 0
	je	.L2
	mov	edx, DWORD PTR 16[rbx]
	mov	rsi, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 40[rbx]
	call	svn_io_file_trunc@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rax, QWORD PTR 32[rbx]
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rax], rdx
.L3:
	mov	edi, DWORD PTR 48[rbx]
	call	svn_stream_close@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR rep_write_cleanup[rip]
	mov	rsi, rbx
	call	apr_pool_cleanup_kill@PLT
	mov	edx, DWORD PTR 16[rbx]
	mov	rsi, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR 24[rbx]
	call	svn_fs_x__put_node_revision@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	cmp	QWORD PTR 8[rsp], 0
	je	.L9
.L4:
	mov	esi, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 40[rbx]
	call	svn_io_file_close@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	cmp	QWORD PTR 8[rsp], 0
	je	.L10
.L5:
	mov	ecx, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR 20[rbx]
	mov	esi, r12d
	mov	edi, DWORD PTR 24[rbx]
	call	unlock_proto_rev@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	edi, DWORD PTR 16[rbx]
	call	svn_pool_destroy@PLT
	mov	rax, QWORD PTR SVN_NO_ERROR[rip]
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 48[rbx]
	lea	rsi, .LC0[rip]
	call	svn_stream_puts@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	ecx, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR 24[rbx]
	mov	edx, r12d
	mov	rdi, rbp
	call	allocate_item_index@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 24[rbx]
	mov	esi, r12d
	mov	r8d, DWORD PTR 16[rbx]
	mov	ecx, DWORD PTR 0[rbp]
	call	store_l2p_index_entry@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rax, QWORD PTR 32[rbx]
	mov	QWORD PTR [rax], rbp
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR 24[rbx]
	mov	edx, DWORD PTR 16[rbx]
	mov	rsi, QWORD PTR 32[rbx]
	call	store_sha1_rep_mapping@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR SVN_FS_X__INVALID_CHANGE_SET[rip]
	mov	edx, DWORD PTR 16[rbx]
	mov	rdi, r13
	mov	esi, DWORD PTR 40[rbx]
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 24[rsp], eax
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 32[rsp], rax
	call	svn_io_file_get_offset@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 24[rbx]
	mov	esi, r12d
	sub	rax, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 16[rbx]
	lea	rdx, 32[rsp]
	mov	DWORD PTR 40[rsp], 1
	mov	QWORD PTR 64[rsp], rax
	mov	eax, DWORD PTR SVN_FS_X__ITEM_TYPE_FILE_REP[rip]
	mov	DWORD PTR 56[rsp], eax
	lea	rax, 24[rsp]
	mov	QWORD PTR 48[rsp], rax
	mov	eax, DWORD PTR 44[rbx]
	mov	DWORD PTR 44[rsp], eax
	call	store_p2l_index_entry@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rep_write_contents_close, .-rep_write_contents_close
	.comm	rep_write_cleanup,4,4
	.comm	SVN_NO_ERROR,8,8
	.comm	SVN_FS_X__ITEM_TYPE_FILE_REP,4,4
	.comm	SVN_FS_X__INVALID_CHANGE_SET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_transaction.c_rep_write_contents_close.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ENDREP\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rep_write_contents_close, %function
rep_write_contents_close:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #72
	mov	r4, r0
	mov	r1, #16
	ldr	r0, [r0, #36]
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	bl	apr_pcalloc
	mov	r5, r0
	ldr	r0, [r4, #52]
	bl	svn_stream_close
	bl	SVN_ERR
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #24]
	add	r0, sp, #32
	bl	svn_io_file_get_offset
	bl	SVN_ERR
	ldr	r0, [r4]
	ldr	r3, [sp, #32]
	ldr	r2, [r4, #20]
	ldr	r1, [r4, #48]
	sub	r3, r3, r0
	str	r3, [r5, #12]
	ldr	r0, [r2, #4]
	str	r1, [r5, #8]
	bl	svn_fs_x__get_txn_id
	mov	r6, r0
	bl	svn_fs_x__change_set_by_txn
	ldr	r3, [r4, #36]
	ldr	r2, [r4, #40]
	ldr	r1, [r4, #44]
	str	r0, [r5, #4]
	mov	r0, r5
	bl	digests_final
	bl	SVN_ERR
	mov	r0, #0
	ldr	ip, [r4, #8]
	ldr	r1, [r4, #36]
	ldr	r2, [r4, #4]
	ldr	r3, [r4, #24]
	str	ip, [sp, #16]
	str	r2, [sp, #4]
	str	r3, [sp]
	str	r1, [sp, #12]
	mov	r3, r5
	ldr	r1, [r4, #16]
	mov	r2, r6
	str	r0, [sp, #8]
	add	r0, sp, #28
	bl	get_shared_rep
	bl	SVN_ERR
	ldr	r3, [sp, #28]
	cmp	r3, #0
	beq	.L2
	ldmib	r4, {r1, r2}
	ldr	r0, [r4, #24]
	bl	svn_io_file_trunc
	bl	SVN_ERR
	ldr	r3, [r4, #20]
	ldr	r2, [sp, #28]
	str	r2, [r3]
.L3:
	ldr	r0, [r4, #32]
	bl	svn_stream_close
	bl	SVN_ERR
	ldr	r3, .L12+4
	mov	r1, r4
	ldr	r2, [r3]
	ldr	r0, [r4, #8]
	bl	apr_pool_cleanup_kill
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #20]
	ldr	r0, [r4, #16]
	bl	svn_fs_x__put_node_revision
	bl	SVN_ERR
	ldr	r3, [sp, #28]
	cmp	r3, #0
	beq	.L9
.L4:
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #24]
	bl	svn_io_file_close
	bl	SVN_ERR
	ldr	r3, [sp, #28]
	cmp	r3, #0
	beq	.L10
.L5:
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #12]
	mov	r1, r6
	ldr	r0, [r4, #16]
	bl	unlock_proto_rev
	bl	SVN_ERR
	ldr	r0, [r4, #8]
	bl	svn_pool_destroy
	ldr	r3, .L12+8
	ldr	r0, [r3]
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #72
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r1, .L12+12
	ldr	r0, [r4, #32]
	bl	svn_stream_puts
	bl	SVN_ERR
	mov	r2, r6
	ldr	r3, [r4, #8]
	ldr	r1, [r4, #16]
	mov	r0, r5
	bl	allocate_item_index
	bl	SVN_ERR
	ldr	r2, [r4, #8]
	ldr	r3, [r5]
	str	r2, [sp]
	mov	r1, r6
	ldr	r2, [r4, #4]
	ldr	r0, [r4, #16]
	bl	store_l2p_index_entry
	bl	SVN_ERR
	ldr	r3, [r4, #20]
	str	r5, [r3]
	b	.L3
.L10:
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #20]
	ldr	r0, [r4, #16]
	bl	store_sha1_rep_mapping
	bl	SVN_ERR
	b	.L5
.L9:
	ldr	r3, .L12+16
	ldr	r1, [r5]
	ldr	ip, [r3]
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	str	r1, [sp, #36]
	add	r0, sp, #32
	ldr	r1, [r4, #24]
	str	ip, [sp, #40]
	str	r3, [sp, #44]
	bl	svn_io_file_get_offset
	bl	SVN_ERR
	mov	r1, #1
	ldr	r3, .L12+20
	ldr	ip, [r4, #4]
	ldr	r2, [sp, #32]
	ldr	r0, [r4, #28]
	ldr	r3, [r3]
	sub	r2, r2, ip
	str	r3, [sp, #60]
	add	ip, sp, #36
	ldr	r3, [r4, #8]
	str	r2, [sp, #64]
	str	r1, [sp, #48]
	add	r2, sp, #44
	mov	r1, r6
	str	r0, [sp, #52]
	ldr	r0, [r4, #16]
	str	ip, [sp, #56]
	bl	store_p2l_index_entry
	bl	SVN_ERR
	b	.L4
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	rep_write_cleanup
	.word	SVN_NO_ERROR
	.word	.LC0
	.word	SVN_FS_X__INVALID_CHANGE_SET
	.word	SVN_FS_X__ITEM_TYPE_FILE_REP
	.size	rep_write_contents_close, .-rep_write_contents_close
	.comm	rep_write_cleanup,4,4
	.comm	SVN_NO_ERROR,4,4
	.comm	SVN_FS_X__ITEM_TYPE_FILE_REP,4,4
	.comm	SVN_FS_X__INVALID_CHANGE_SET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
