	.file	"extr_transaction.c_get_writable_proto_rev_body.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Cannot write to the prototype revision file of transaction '%s' because a previous representation is currently being written by this process"
	.align 8
.LC1:
	.string	"Cannot write to the prototype revision file of transaction '%s' because a previous representation is currently being written by another process"
	.align 8
.LC2:
	.string	"Can't get exclusive lock on file '%s'"
	.text
	.p2align 4
	.type	get_writable_proto_rev_body, @function
get_writable_proto_rev_body:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR [rsi]
	mov	rdx, QWORD PTR TRUE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	esi, DWORD PTR 8[rsi]
	call	get_shared_txn@PLT
	cmp	QWORD PTR [rax], 0
	jne	.L11
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, r12
	mov	rdx, rbp
	mov	r13, rax
	call	svn_fs_x__path_txn_proto_rev_lock@PLT
	mov	ecx, DWORD PTR APR_OS_DEFAULT[rip]
	mov	r8, rbp
	mov	rdi, rsp
	mov	rsi, rax
	mov	edx, DWORD PTR APR_WRITE[rip]
	or	edx, DWORD PTR APR_CREATE[rip]
	mov	r15, rax
	call	svn_io_file_open@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	esi, DWORD PTR APR_FLOCK_EXCLUSIVE[rip]
	or	esi, DWORD PTR APR_FLOCK_NONBLOCK[rip]
	call	apr_file_lock@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [r14], rax
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR SVN_NO_ERROR[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, rbp
	call	svn_io_file_close@PLT
	mov	edi, eax
	call	svn_error_clear@PLT
	mov	rdi, r12
	call	APR_STATUS_IS_EAGAIN@PLT
	test	rax, rax
	je	.L5
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, rbp
	call	svn_fs_x__txn_name@PLT
	lea	rdi, .LC1[rip]
	mov	r12d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, rbp
	call	svn_fs_x__txn_name@PLT
	lea	rdi, .LC0[rip]
	mov	r12d, eax
.L9:
	call	_@PLT
	mov	edi, DWORD PTR SVN_ERR_FS_REP_BEING_WRITTEN[rip]
	mov	ecx, r12d
	xor	esi, esi
	mov	edx, eax
	call	svn_error_createf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, rbp
	mov	rdi, r15
	call	svn_dirent_local_style@PLT
	lea	rdi, .LC2[rip]
	mov	r13d, eax
	call	_@PLT
	mov	edx, r13d
	mov	rdi, r12
	mov	esi, eax
	call	svn_error_wrap_apr@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_writable_proto_rev_body, .-get_writable_proto_rev_body
	.comm	TRUE,8,8
	.comm	SVN_NO_ERROR,8,8
	.comm	SVN_ERR_FS_REP_BEING_WRITTEN,4,4
	.comm	APR_WRITE,4,4
	.comm	APR_OS_DEFAULT,4,4
	.comm	APR_FLOCK_NONBLOCK,4,4
	.comm	APR_FLOCK_EXCLUSIVE,4,4
	.comm	APR_CREATE,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_get_writable_proto_rev_body.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot write to the prototype revision file of tran"
	.ascii	"saction '%s' because a previous representation is c"
	.ascii	"urrently being written by this process\000"
	.align	2
.LC1:
	.ascii	"Cannot write to the prototype revision file of tran"
	.ascii	"saction '%s' because a previous representation is c"
	.ascii	"urrently being written by another process\000"
	.align	2
.LC2:
	.ascii	"Can't get exclusive lock on file '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_writable_proto_rev_body, %function
get_writable_proto_rev_body:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r8, .L13
	ldr	r3, .L13+4
	sub	sp, sp, #20
	mov	r5, r2
	ldr	r1, [r1, #4]
	ldr	r2, [r8]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r7, r0
	ldr	r9, [r4]
	bl	get_shared_txn
	ldr	r10, [r0]
	cmp	r10, #0
	bne	.L10
	mov	r2, r5
	ldr	r1, [r4, #4]
	mov	r6, r0
	mov	r0, r7
	bl	svn_fs_x__path_txn_proto_rev_lock
	mov	r7, r0
	ldr	r2, .L13+8
	ldr	r3, .L13+12
	ldr	r0, [r2]
	ldr	r2, [r3]
	ldr	r3, .L13+16
	str	r5, [sp]
	orr	r2, r0, r2
	mov	r1, r7
	ldr	r3, [r3]
	add	r0, sp, #8
	bl	svn_io_file_open
	bl	SVN_ERR
	ldr	r2, .L13+20
	ldr	r3, .L13+24
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r0, [sp, #8]
	orr	r1, r1, r3
	bl	apr_file_lock
	subs	fp, r0, #0
	bne	.L11
	ldr	r1, [sp, #8]
	ldr	r3, [r8]
	ldr	r2, .L13+28
	str	r1, [r9]
	ldr	r0, [r2]
	str	r3, [r6]
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	r1, r5
	ldr	r0, [sp, #8]
	bl	svn_io_file_close
	bl	svn_error_clear
	mov	r0, fp
	bl	APR_STATUS_IS_EAGAIN
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L13+32
	ldr	r0, .L13+36
	ldr	r6, [r3]
	bl	_
	mov	r1, r5
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	svn_fs_x__txn_name
	mov	r2, r5
	mov	r3, r0
	mov	r1, r10
	mov	r0, r6
	bl	svn_error_createf
	b	.L1
.L10:
	ldr	r3, .L13+32
	ldr	r0, .L13+40
	ldr	r6, [r3]
	bl	_
	mov	r1, r5
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	svn_fs_x__txn_name
	mov	r2, r5
	mov	r3, r0
	mov	r1, #0
	mov	r0, r6
	bl	svn_error_createf
	b	.L1
.L5:
	ldr	r0, .L13+44
	bl	_
	mov	r1, r5
	mov	r4, r0
	mov	r0, r7
	bl	svn_dirent_local_style
	mov	r1, r4
	mov	r2, r0
	mov	r0, fp
	bl	svn_error_wrap_apr
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	TRUE
	.word	.LC3
	.word	APR_WRITE
	.word	APR_CREATE
	.word	APR_OS_DEFAULT
	.word	APR_FLOCK_EXCLUSIVE
	.word	APR_FLOCK_NONBLOCK
	.word	SVN_NO_ERROR
	.word	SVN_ERR_FS_REP_BEING_WRITTEN
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	get_writable_proto_rev_body, .-get_writable_proto_rev_body
	.comm	TRUE,4,4
	.comm	SVN_NO_ERROR,4,4
	.comm	SVN_ERR_FS_REP_BEING_WRITTEN,4,4
	.comm	APR_WRITE,4,4
	.comm	APR_OS_DEFAULT,4,4
	.comm	APR_FLOCK_NONBLOCK,4,4
	.comm	APR_FLOCK_EXCLUSIVE,4,4
	.comm	APR_CREATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
