	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rep_write
_rep_write:                             ## @rep_write
	.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	%r9, %rbx
	movq	%r8, %r15
	movl	%ecx, %r12d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	16(%rbp), %r8
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r9, %rcx
	callq	_svn_fs_bdb__read_rep
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_rep_is_mutable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	-48(%rbp), %rsi
	movq	(%rsi), %rax
	movq	_rep_kind_fulltext@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	addq	$8, %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	16(%rbp), %r9
	callq	_svn_fs_bdb__string_append
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_SVN_ERR_FS_REP_NOT_MUTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	movq	_rep_kind_delta@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_SVN_ERR_FS_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	__
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_svn_error_createf
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_UNKNOWN_NODE_KIND
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_ERR_FS_REP_NOT_MUTABLE,4,2 ## @SVN_ERR_FS_REP_NOT_MUTABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rep '%s' is not mutable"

	.comm	_rep_kind_fulltext,8,3          ## @rep_kind_fulltext
	.comm	_rep_kind_delta,8,3             ## @rep_kind_delta
	.comm	_SVN_ERR_FS_CORRUPT,4,2         ## @SVN_ERR_FS_CORRUPT
L_.str.1:                               ## @.str.1
	.asciz	"Rep '%s' both mutable and non-fulltext"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rep_write
_rep_write:                             ; @rep_write
	.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	x20, x6
	mov	x21, x5
	mov	x25, x4
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x24, x0
	add	x0, sp, #8
	mov	x1, x24
	mov	x2, x19
	mov	x3, x5
	mov	x4, x6
	bl	_svn_fs_bdb__read_rep
	bl	_SVN_ERR
	ldr	x0, [sp, #8]
	mov	x1, x25
	bl	_rep_is_mutable
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x9, [sp, #8]
	ldr	x8, [x9]
Lloh0:
	adrp	x10, _rep_kind_fulltext@GOTPAGE
Lloh1:
	ldr	x10, [x10, _rep_kind_fulltext@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.2:
	add	x1, x9, #8
	mov	x0, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_svn_fs_bdb__string_append
	bl	_SVN_ERR
Lloh3:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x8, _SVN_ERR_FS_REP_NOT_MUTABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SVN_ERR_FS_REP_NOT_MUTABLE@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x9, _rep_kind_delta@GOTPAGE
Lloh12:
	ldr	x9, [x9, _rep_kind_delta@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
Lloh14:
	adrp	x8, _SVN_ERR_FS_CORRUPT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SVN_ERR_FS_CORRUPT@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	__
	mov	x2, x0
	mov	x0, x20
	mov	x1, #0
	mov	x3, x19
	bl	_svn_error_createf
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_UNKNOWN_NODE_KIND
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_ERR_FS_REP_NOT_MUTABLE,4,2 ; @SVN_ERR_FS_REP_NOT_MUTABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rep '%s' is not mutable"

	.comm	_rep_kind_fulltext,8,3          ; @rep_kind_fulltext
	.comm	_rep_kind_delta,8,3             ; @rep_kind_delta
	.comm	_SVN_ERR_FS_CORRUPT,4,2         ; @SVN_ERR_FS_CORRUPT
l_.str.1:                               ; @.str.1
	.asciz	"Rep '%s' both mutable and non-fulltext"

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