	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_sqlite__hotcopy            ## -- Begin function svn_sqlite__hotcopy
	.p2align	4, 0x90
_svn_sqlite__hotcopy:                   ## @svn_sqlite__hotcopy
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_svn_sqlite__mode_readonly@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subq	$8, %rsp
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rbx
	pushq	$0
	callq	_svn_sqlite__open
	addq	$32, %rsp
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	_svn_sqlite__mode_rwcreate@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subq	$8, %rsp
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rbx
	pushq	$0
	callq	_svn_sqlite__open
	addq	$32, %rsp
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rcx, %rsi
	callq	_sqlite3_backup_init
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	_SQLITE_BUSY@GOTPCREL(%rip), %r15
	movq	_SQLITE_LOCKED@GOTPCREL(%rip), %r14
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_sqlite3_backup_step
	movl	%eax, %ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %ecx
	cmpl	%ecx, %ebx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r12), %ebx
	je	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ebx
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ecx, %ebx
	je	LBB0_2
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$25, %edi
	callq	_sqlite3_sleep
	movl	(%r15), %eax
	movl	(%r14), %ecx
	cmpl	(%r12), %ebx
	jne	LBB0_6
	jmp	LBB0_2
LBB0_8:
	movq	%r13, %rdi
	callq	_sqlite3_backup_finish
	movl	%eax, %r13d
	movq	_SQLITE_DONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rsi
	movl	%ebx, %edi
	callq	_SQLITE_ERR
LBB0_10:
	movq	-48(%rbp), %rsi
	movl	%r13d, %edi
	callq	_SQLITE_ERR
	movq	-48(%rbp), %rdi
	callq	_svn_sqlite__close
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-56(%rbp), %rdi
	callq	_svn_sqlite__close
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_svn_io_copy_perms
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_12:
	movq	_SVN_ERR_SQLITE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_svn_error_createf
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_svn_sqlite__mode_readonly,4,2  ## @svn_sqlite__mode_readonly
	.comm	_svn_sqlite__mode_rwcreate,4,2  ## @svn_sqlite__mode_rwcreate
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"main"

	.comm	_SVN_ERR_SQLITE_ERROR,4,2       ## @SVN_ERR_SQLITE_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"SQLite hotcopy failed for %s"

	.comm	_SQLITE_BUSY,4,2                ## @SQLITE_BUSY
	.comm	_SQLITE_LOCKED,4,2              ## @SQLITE_LOCKED
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_DONE,4,2                ## @SQLITE_DONE
	.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_sqlite__hotcopy            ; -- Begin function svn_sqlite__hotcopy
	.p2align	2
_svn_sqlite__hotcopy:                   ; @svn_sqlite__hotcopy
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _svn_sqlite__mode_readonly@GOTPAGE
Lloh1:
	ldr	x8, [x8, _svn_sqlite__mode_readonly@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	str	x20, [sp]
	add	x0, sp, #24
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, x20
	bl	_svn_sqlite__open
	bl	_SVN_ERR
Lloh3:
	adrp	x8, _svn_sqlite__mode_rwcreate@GOTPAGE
Lloh4:
	ldr	x8, [x8, _svn_sqlite__mode_rwcreate@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	str	x20, [sp]
	add	x0, sp, #16
	mov	x1, x21
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, x20
	bl	_svn_sqlite__open
	bl	_SVN_ERR
	ldr	x8, [sp, #16]
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x1
	bl	_sqlite3_backup_init
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x0
Lloh8:
	adrp	x24, _SQLITE_BUSY@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SQLITE_BUSY@GOTPAGEOFF]
Lloh10:
	adrp	x25, _SQLITE_LOCKED@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SQLITE_LOCKED@GOTPAGEOFF]
Lloh12:
	adrp	x26, _SQLITE_OK@GOTPAGE
Lloh13:
	ldr	x26, [x26, _SQLITE_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x26]
	cmp	w23, w10
	ccmp	w23, w8, #4, ne
	ccmp	w23, w9, #4, ne
	b.ne	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #1024
	bl	_sqlite3_backup_step
	mov	x23, x0
	ldr	w8, [x24]
	ldr	w9, [x25]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #25
	bl	_sqlite3_sleep
	ldr	w8, [x24]
	ldr	w9, [x25]
	b	LBB0_2
LBB0_5:
	mov	x0, x22
	bl	_sqlite3_backup_finish
	mov	x22, x0
Lloh14:
	adrp	x8, _SQLITE_DONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SQLITE_DONE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w23, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x1, [sp, #16]
	mov	x0, x23
	bl	_SQLITE_ERR
LBB0_7:
	ldr	x1, [sp, #16]
	mov	x0, x22
	bl	_SQLITE_ERR
	ldr	x0, [sp, #16]
	bl	_svn_sqlite__close
	bl	_SVN_ERR
	ldr	x0, [sp, #24]
	bl	_svn_sqlite__close
	bl	_SVN_ERR
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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_9
LBB0_8:
Lloh20:
	adrp	x8, _SVN_ERR_SQLITE_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SVN_ERR_SQLITE_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x20
	mov	x1, #0
	mov	x3, x19
	bl	_svn_error_createf
LBB0_9:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_svn_sqlite__mode_readonly,4,2  ; @svn_sqlite__mode_readonly
	.comm	_svn_sqlite__mode_rwcreate,4,2  ; @svn_sqlite__mode_rwcreate
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"main"

	.comm	_SVN_ERR_SQLITE_ERROR,4,2       ; @SVN_ERR_SQLITE_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"SQLite hotcopy failed for %s"

	.comm	_SQLITE_BUSY,4,2                ; @SQLITE_BUSY
	.comm	_SQLITE_LOCKED,4,2              ; @SQLITE_LOCKED
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_DONE,4,2                ; @SQLITE_DONE
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
.subsections_via_symbols
