	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_writable_proto_rev_body
_get_writable_proto_rev_body:           ## @get_writable_proto_rev_body
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %r13
	addq	$8, %r15
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rsi
	callq	_get_shared_txn
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.7:
	movq	_SVN_ERR_FS_REP_BEING_WRITTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_svn_fs_fs__id_txn_unparse
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svn_error_createf              ## TAILCALL
LBB0_1:
	movq	%rax, %r12
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_svn_fs_fs__path_txn_proto_rev_lock
	movq	%rax, %rbx
	movq	_APR_WRITE@GOTPCREL(%rip), %rax
	movq	_APR_CREATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_APR_OS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r14, %r8
	callq	_svn_io_file_open
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rdi
	movq	_APR_FLOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movq	_APR_FLOCK_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_apr_file_lock
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r13
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_svn_io_file_close
	movl	%eax, %edi
	callq	_svn_error_clear
	movq	%r13, %rdi
	callq	_APR_STATUS_IS_EAGAIN
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_SVN_ERR_FS_REP_BEING_WRITTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_svn_fs_fs__id_txn_unparse
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_svn_error_createf
	jmp	LBB0_6
LBB0_5:
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_svn_dirent_local_style
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_svn_error_wrap_apr
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_SVN_ERR_FS_REP_BEING_WRITTEN,4,2 ## @SVN_ERR_FS_REP_BEING_WRITTEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot write to the prototype revision file of transaction '%s' because a previous representation is currently being written by this process"

	.comm	_APR_WRITE,4,2                  ## @APR_WRITE
	.comm	_APR_CREATE,4,2                 ## @APR_CREATE
	.comm	_APR_OS_DEFAULT,4,2             ## @APR_OS_DEFAULT
	.comm	_APR_FLOCK_EXCLUSIVE,4,2        ## @APR_FLOCK_EXCLUSIVE
	.comm	_APR_FLOCK_NONBLOCK,4,2         ## @APR_FLOCK_NONBLOCK
L_.str.1:                               ## @.str.1
	.asciz	"Cannot write to the prototype revision file of transaction '%s' because a previous representation is currently being written by another process"

L_.str.2:                               ## @.str.2
	.asciz	"Can't get exclusive lock on file '%s'"

	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_get_writable_proto_rev_body
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_writable_proto_rev_body
_get_writable_proto_rev_body:           ; @get_writable_proto_rev_body
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x24, [x20], #8
Lloh0:
	adrp	x25, _TRUE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	ldr	x2, [x25]
	mov	x1, x20
	bl	_get_shared_txn
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _SVN_ERR_FS_REP_BEING_WRITTEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SVN_ERR_FS_REP_BEING_WRITTEN@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_svn_fs_fs__id_txn_unparse
	mov	x3, x0
	mov	x0, x21
	mov	x1, #0
	mov	x2, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_svn_error_createf
LBB0_2:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_svn_fs_fs__path_txn_proto_rev_lock
	mov	x21, x0
Lloh7:
	adrp	x8, _APR_WRITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _APR_WRITE@GOTPAGEOFF]
Lloh9:
	adrp	x9, _APR_CREATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _APR_CREATE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh13:
	adrp	x8, _APR_OS_DEFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _APR_OS_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	x4, x19
	bl	_svn_io_file_open
	bl	_SVN_ERR
Lloh16:
	adrp	x8, _APR_FLOCK_EXCLUSIVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _APR_FLOCK_EXCLUSIVE@GOTPAGEOFF]
	ldr	x0, [sp, #8]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _APR_FLOCK_NONBLOCK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _APR_FLOCK_NONBLOCK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_apr_file_lock
	cbz	x0, LBB0_5
; %bb.3:
	mov	x23, x0
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_svn_io_file_close
	bl	_svn_error_clear
	mov	x0, x23
	bl	_APR_STATUS_IS_EAGAIN
	cbz	x0, LBB0_6
; %bb.4:
Lloh22:
	adrp	x8, _SVN_ERR_FS_REP_BEING_WRITTEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SVN_ERR_FS_REP_BEING_WRITTEN@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_svn_fs_fs__id_txn_unparse
	mov	x3, x0
	mov	x0, x21
	mov	x1, #0
	mov	x2, x22
	bl	_svn_error_createf
	b	LBB0_7
LBB0_5:
	ldr	x8, [sp, #8]
	str	x8, [x24]
	ldr	x8, [x25]
	str	x8, [x22]
Lloh27:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	x0, [x8]
	b	LBB0_7
LBB0_6:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_svn_dirent_local_style
	mov	x2, x0
	mov	x0, x23
	mov	x1, x20
	bl	_svn_error_wrap_apr
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_SVN_ERR_FS_REP_BEING_WRITTEN,4,2 ; @SVN_ERR_FS_REP_BEING_WRITTEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot write to the prototype revision file of transaction '%s' because a previous representation is currently being written by this process"

	.comm	_APR_WRITE,4,2                  ; @APR_WRITE
	.comm	_APR_CREATE,4,2                 ; @APR_CREATE
	.comm	_APR_OS_DEFAULT,4,2             ; @APR_OS_DEFAULT
	.comm	_APR_FLOCK_EXCLUSIVE,4,2        ; @APR_FLOCK_EXCLUSIVE
	.comm	_APR_FLOCK_NONBLOCK,4,2         ; @APR_FLOCK_NONBLOCK
l_.str.1:                               ; @.str.1
	.asciz	"Cannot write to the prototype revision file of transaction '%s' because a previous representation is currently being written by another process"

l_.str.2:                               ; @.str.2
	.asciz	"Can't get exclusive lock on file '%s'"

	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_get_writable_proto_rev_body
.subsections_via_symbols
