	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_db_file_safely
_copy_db_file_safely:                   ## @copy_db_file_safely
	.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	%r9, %r15
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	%rdx, %rsi
	movq	%r9, %rdx
	callq	_svn_dirent_join
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_svn_dirent_join
	movq	%rax, %r12
	movq	_APR_READ@GOTPCREL(%rip), %rax
	movq	_APR_LARGEFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_APR_OS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r15, %r8
	callq	_svn_io_file_open
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	callq	_APR_STATUS_IS_ENOENT
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_4
## %bb.2:
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_svn_error_clear
	jmp	LBB0_13
LBB0_4:
	movq	%rbx, %rdi
	callq	_SVN_ERR
	movq	_APR_WRITE@GOTPCREL(%rip), %rax
	movq	_APR_CREATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_APR_LARGEFILE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_APR_OS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r15, %r8
	callq	_svn_io_file_open
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_apr_palloc
	movq	%rax, %r12
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, -44(%rbp)
	movq	-64(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_svn_io_file_read
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %edi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_svn_error_clear
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi
	movl	-44(%rbp), %edx
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_svn_io_file_write_full
	testq	%rax, %rax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.12:
	movq	-64(%rbp), %rdi
	movq	%r15, %rsi
	callq	_svn_io_file_close
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_svn_io_file_close
	movq	%rax, %rdi
	callq	_SVN_ERR
LBB0_13:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_14
LBB0_9:
	movq	%rax, %rbx
LBB0_10:
	movq	-64(%rbp), %rdi
	movq	%r15, %rsi
	callq	_svn_io_file_close
	movq	%rax, %rdi
	callq	_svn_error_clear
	movq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_svn_io_file_close
	movq	%rax, %rdi
	callq	_svn_error_clear
LBB0_14:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_READ,4,2                   ## @APR_READ
	.comm	_APR_LARGEFILE,4,2              ## @APR_LARGEFILE
	.comm	_APR_OS_DEFAULT,4,2             ## @APR_OS_DEFAULT
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_APR_WRITE,4,2                  ## @APR_WRITE
	.comm	_APR_CREATE,4,2                 ## @APR_CREATE
	.no_dead_strip	_copy_db_file_safely
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_db_file_safely
_copy_db_file_safely:                   ; @copy_db_file_safely
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x5
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	stp	xzr, xzr, [sp, #16]
	mov	x1, x2
	mov	x2, x5
	bl	_svn_dirent_join
	mov	x24, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x19
	bl	_svn_dirent_join
	mov	x21, x0
Lloh0:
	adrp	x8, _APR_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APR_READ@GOTPAGEOFF]
Lloh2:
	adrp	x25, _APR_LARGEFILE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _APR_LARGEFILE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w2, w9, w8
Lloh5:
	adrp	x26, _APR_OS_DEFAULT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _APR_OS_DEFAULT@GOTPAGEOFF]
	ldr	w3, [x26]
	add	x0, sp, #24
	mov	x1, x24
	mov	x4, x19
	bl	_svn_io_file_open
	mov	x23, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x23]
	bl	_APR_STATUS_IS_ENOENT
	cbz	x22, LBB0_4
; %bb.2:
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_svn_error_clear
	b	LBB0_11
LBB0_4:
	mov	x0, x23
	bl	_SVN_ERR
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	w8, w9, w8
	ldr	w9, [x25]
	orr	w2, w8, w9
	ldr	w3, [x26]
	add	x0, sp, #16
	mov	x1, x21
	mov	x4, x19
	bl	_svn_io_file_open
	bl	_SVN_ERR
	mov	x0, x19
	mov	x1, x20
	bl	_apr_palloc
	mov	x22, x0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	w20, [sp, #12]
	ldr	x0, [sp, #24]
	add	x2, sp, #12
	mov	x1, x22
	mov	x3, x19
	bl	_svn_io_file_read
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	bl	_APR_STATUS_IS_EOF
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_svn_error_clear
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #16]
	ldr	w2, [sp, #12]
	mov	x1, x22
	mov	x3, #0
	mov	x4, x19
	bl	_svn_io_file_write_full
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x21, LBB0_5
; %bb.10:
	ldr	x0, [sp, #24]
	mov	x1, x19
	bl	_svn_io_file_close
	bl	_SVN_ERR
	ldr	x0, [sp, #16]
	mov	x1, x19
	bl	_svn_io_file_close
	bl	_SVN_ERR
LBB0_11:
Lloh13:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	x21, [x8]
	b	LBB0_14
LBB0_12:
	mov	x21, x0
LBB0_13:
	ldr	x0, [sp, #24]
	mov	x1, x19
	bl	_svn_io_file_close
	bl	_svn_error_clear
	ldr	x0, [sp, #16]
	mov	x1, x19
	bl	_svn_io_file_close
	bl	_svn_error_clear
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_READ,4,2                   ; @APR_READ
	.comm	_APR_LARGEFILE,4,2              ; @APR_LARGEFILE
	.comm	_APR_OS_DEFAULT,4,2             ; @APR_OS_DEFAULT
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_APR_WRITE,4,2                  ; @APR_WRITE
	.comm	_APR_CREATE,4,2                 ; @APR_CREATE
	.no_dead_strip	_copy_db_file_safely
.subsections_via_symbols
