	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_subst_copy_and_translate4  ## -- Begin function svn_subst_copy_and_translate4
	.p2align	4, 0x90
_svn_subst_copy_and_translate4:         ## @svn_subst_copy_and_translate4
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	40(%rbp), %rbx
	leaq	-92(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rcx
	callq	_svn_io_check_special_path
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-88(%rbp), %rax
	movq	16(%rbp), %rcx
	orq	%rax, %rcx
	je	LBB0_8
## %bb.1:
	testq	%r12, %r12
	je	LBB0_6
## %bb.2:
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_svn_subst_read_specialfile
	jmp	LBB0_5
LBB0_8:
	testq	%r14, %r14
	je	LBB0_9
LBB0_12:
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	callq	_svn_stream_open_readonly
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_svn_dirent_dirname
	movq	_svn_io_file_del_none@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-72(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movl	%eax, %edx
	movq	%rbx, %r8
	movq	%rbx, %r9
	callq	_svn_stream_open_unique
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-72(%rbp), %rdi
	movq	%r14, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r8
	movq	%rbx, %r9
	callq	_svn_subst_stream_translated
	movq	%rax, -72(%rbp)
	movq	-48(%rbp), %rdi
	movq	%rax, %rsi
	movl	24(%rbp), %edx
	movq	32(%rbp), %rcx
	movq	%rbx, %r8
	callq	_svn_stream_copy3
	movq	%rbx, %r14
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movq	%rax, %rbx
	movq	%r14, %r13
	movq	(%rax), %r14
	movq	_SVN_ERR_IO_INCONSISTENT_EOL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_14
## %bb.15:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%r13, %r15
	movq	%r13, %rsi
	callq	_svn_dirent_local_style
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_svn_error_createf
	movq	%rax, %rbx
	jmp	LBB0_16
LBB0_6:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	24(%rbp), %edx
	movq	32(%rbp), %rcx
	movq	%rbx, %r8
	callq	_detranslate_special_file
	jmp	LBB0_7
LBB0_9:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_apr_hash_count
	testq	%rax, %rax
	jg	LBB0_12
LBB0_11:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	callq	_svn_io_copy_file
	jmp	LBB0_7
LBB0_17:
	movq	-64(%rbp), %rdi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_svn_io_file_rename2
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_svn_io_copy_perms
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_18
LBB0_4:
	callq	_svn_stream_open_readonly
LBB0_5:
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_create_special_file_from_stream
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rdi
	callq	_svn_stream_close
LBB0_7:
	movl	%eax, %edi
	callq	_svn_error_trace
	jmp	LBB0_18
LBB0_14:
	movq	%r13, %r15
LBB0_16:
	movq	-64(%rbp), %rdi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_svn_io_remove_file2
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_svn_error_compose_create
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_svn_io_file_del_none,4,2       ## @svn_io_file_del_none
	.comm	_SVN_ERR_IO_INCONSISTENT_EOL,8,3 ## @SVN_ERR_IO_INCONSISTENT_EOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"File '%s' has inconsistent newlines"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_subst_copy_and_translate4  ; -- Begin function svn_subst_copy_and_translate4
	.p2align	2
_svn_subst_copy_and_translate4:         ; @svn_subst_copy_and_translate4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x7
	mov	x28, x6
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x27, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x23, x19, [x29, #16]
	add	x1, sp, #20
	add	x2, sp, #8
	mov	x3, x19
	bl	_svn_io_check_special_path
	bl	_SVN_ERR
	ldr	x8, [sp, #8]
	orr	x9, x28, x8
	cbz	x9, LBB0_4
; %bb.1:
	cbz	x24, LBB0_9
; %bb.2:
	add	x0, sp, #40
	mov	x1, x21
	mov	x2, x19
	mov	x3, x19
	cbz	x8, LBB0_14
; %bb.3:
	bl	_svn_subst_read_specialfile
	b	LBB0_15
LBB0_4:
	cbz	x27, LBB0_10
LBB0_5:
	add	x0, sp, #40
	mov	x1, x21
	mov	x2, x19
	mov	x3, x19
	bl	_svn_stream_open_readonly
	bl	_SVN_ERR
	mov	x0, x20
	mov	x1, x19
	bl	_svn_dirent_dirname
	mov	x2, x0
Lloh0:
	adrp	x8, _svn_io_file_del_none@GOTPAGE
Lloh1:
	ldr	x8, [x8, _svn_io_file_del_none@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x0, sp, #32
	add	x1, sp, #24
	mov	x4, x19
	mov	x5, x19
	bl	_svn_stream_open_unique
	bl	_SVN_ERR
	ldr	x0, [sp, #32]
	mov	x1, x27
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	mov	x5, x19
	bl	_svn_subst_stream_translated
	mov	x1, x0
	str	x0, [sp, #32]
	ldr	x0, [sp, #40]
	mov	x2, x22
	mov	x3, x23
	mov	x4, x19
	bl	_svn_stream_copy3
	cbz	x0, LBB0_13
; %bb.6:
	mov	x22, x0
	ldr	x20, [x0]
Lloh3:
	adrp	x8, _SVN_ERR_IO_INCONSISTENT_EOL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVN_ERR_IO_INCONSISTENT_EOL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_8
; %bb.7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x23, x0
	mov	x0, x21
	mov	x1, x19
	bl	_svn_dirent_local_style
	mov	x3, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_svn_error_createf
	mov	x22, x0
LBB0_8:
	ldr	x0, [sp, #24]
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_svn_io_remove_file2
	mov	x1, x0
	mov	x0, x22
	bl	_svn_error_compose_create
	b	LBB0_17
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, x19
	bl	_detranslate_special_file
	b	LBB0_16
LBB0_10:
	cbz	x25, LBB0_12
; %bb.11:
	mov	x0, x25
	bl	_apr_hash_count
	cmp	x0, #0
	b.gt	LBB0_5
LBB0_12:
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_svn_io_copy_file
	b	LBB0_16
LBB0_13:
	ldr	x0, [sp, #24]
Lloh14:
	adrp	x8, _FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, x19
	bl	_svn_io_file_rename2
	bl	_SVN_ERR
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_svn_io_copy_perms
	bl	_SVN_ERR
Lloh17:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	b	LBB0_17
LBB0_14:
	bl	_svn_stream_open_readonly
LBB0_15:
	bl	_SVN_ERR
	ldr	x0, [sp, #40]
	mov	x1, x20
	mov	x2, x19
	bl	_create_special_file_from_stream
	bl	_SVN_ERR
	ldr	x0, [sp, #40]
	bl	_svn_stream_close
LBB0_16:
	bl	_svn_error_trace
LBB0_17:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_svn_io_file_del_none,4,2       ; @svn_io_file_del_none
	.comm	_SVN_ERR_IO_INCONSISTENT_EOL,8,3 ; @SVN_ERR_IO_INCONSISTENT_EOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"File '%s' has inconsistent newlines"

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