	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_writable_proto_rev
_get_writable_proto_rev:                ## @get_writable_proto_rev
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)
	movl	(%rcx), %eax
	movl	%eax, -72(%rbp)
	movq	_get_writable_proto_rev_body@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r8, %rcx
	callq	_with_txnlist_lock
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_svn_fs_fs__path_txn_proto_rev
	movq	_APR_READ@GOTPCREL(%rip), %rcx
	movq	_APR_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_APR_BUFFERED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_APR_OS_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %r8
	callq	_svn_io_file_open
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_APR_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rcx
	callq	_svn_io_file_seek
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_auto_truncate_proto_rev
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_unlock_proto_rev
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_svn_error_compose_create
	movq	%rax, %rdi
	movq	$0, (%rbx)
LBB0_5:
	callq	_svn_error_trace
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%edi, %edi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_get_writable_proto_rev_body,4,2 ## @get_writable_proto_rev_body
	.comm	_APR_READ,4,2                   ## @APR_READ
	.comm	_APR_WRITE,4,2                  ## @APR_WRITE
	.comm	_APR_BUFFERED,4,2               ## @APR_BUFFERED
	.comm	_APR_OS_DEFAULT,4,2             ## @APR_OS_DEFAULT
	.comm	_APR_END,4,2                    ## @APR_END
	.no_dead_strip	_get_writable_proto_rev
.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
_get_writable_proto_rev:                ; @get_writable_proto_rev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	str	wzr, [sp, #12]
	str	x1, [sp, #16]
	ldr	w8, [x3]
	str	w8, [sp, #24]
Lloh0:
	adrp	x8, _get_writable_proto_rev_body@GOTPAGE
Lloh1:
	ldr	x8, [x8, _get_writable_proto_rev_body@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x22
	mov	x3, x4
	bl	_with_txnlist_lock
	bl	_SVN_ERR
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_svn_fs_fs__path_txn_proto_rev
	mov	x1, x0
Lloh3:
	adrp	x8, _APR_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APR_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _APR_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APR_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _APR_BUFFERED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _APR_BUFFERED@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh12:
	adrp	x8, _APR_OS_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _APR_OS_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x4, x20
	bl	_svn_io_file_open
	mov	x24, x0
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x23]
Lloh15:
	adrp	x8, _APR_END@GOTPAGE
Lloh16:
	ldr	x8, [x8, _APR_END@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x3, x20
	bl	_svn_io_file_seek
	mov	x24, x0
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x22
	mov	x3, x21
	mov	x4, x20
	bl	_auto_truncate_proto_rev
	mov	x24, x0
	cbz	x0, LBB0_4
LBB0_3:
	ldr	x2, [x19]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x20
	bl	_unlock_proto_rev
	mov	x1, x0
	mov	x0, x24
	bl	_svn_error_compose_create
	str	xzr, [x19]
LBB0_4:
	bl	_svn_error_trace
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_get_writable_proto_rev_body,4,2 ; @get_writable_proto_rev_body
	.comm	_APR_READ,4,2                   ; @APR_READ
	.comm	_APR_WRITE,4,2                  ; @APR_WRITE
	.comm	_APR_BUFFERED,4,2               ; @APR_BUFFERED
	.comm	_APR_OS_DEFAULT,4,2             ; @APR_OS_DEFAULT
	.comm	_APR_END,4,2                    ; @APR_END
	.no_dead_strip	_get_writable_proto_rev
.subsections_via_symbols
