	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_rep_cache
_open_rep_cache:                        ## @open_rep_cache
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	4(%rdi), %edi
	callq	_path_rep_cache_db
	movq	%rax, %r15
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_svn_fs_x__exists_rep_cache
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpl	$0, -48(%rbp)
	jne	LBB0_7
## %bb.1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_svn_fs_x__path_current
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_svn_io_file_create_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r12
	movl	(%rax), %edi
	callq	_APR_STATUS_IS_EEXIST
	movq	%r12, %rdi
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	callq	_svn_error_clear
	jmp	LBB0_6
LBB0_5:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_svn_io_copy_perms
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_6:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_7:
	movq	_svn_sqlite__mode_rwcreate@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_statements@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %eax
	subq	$8, %rsp
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r14
	pushq	%rax
	pushq	$0
	callq	_svn_sqlite__open
	addq	$32, %rsp
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rdi
	movq	%r14, %rdx
	callq	_svn_sqlite__read_schema_version
	movq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_SVN_SQLITE__ERR_CLOSE
	movl	-52(%rbp), %eax
	movq	_REP_CACHE_SCHEMA_FORMAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi
	movq	_STMT_CREATE_SCHEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_svn_sqlite__exec_statements
	movq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_SVN_SQLITE__ERR_CLOSE
LBB0_9:
	movq	-48(%rbp), %rax
	movq	%rax, (%r12)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	_svn_error_trace
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_svn_sqlite__mode_rwcreate,4,2  ## @svn_sqlite__mode_rwcreate
	.comm	_statements,4,2                 ## @statements
	.comm	_REP_CACHE_SCHEMA_FORMAT,4,2    ## @REP_CACHE_SCHEMA_FORMAT
	.comm	_STMT_CREATE_SCHEMA,4,2         ## @STMT_CREATE_SCHEMA
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_open_rep_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_rep_cache
_open_rep_cache:                        ; @open_rep_cache
	.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	x19, x1
	mov	x21, x0
	ldr	x24, [x0, #8]
	ldr	w0, [x0, #4]
	bl	_path_rep_cache_db
	mov	x20, x0
	add	x0, sp, #24
	mov	x1, x21
	mov	x2, x19
	bl	_svn_fs_x__exists_rep_cache
	bl	_SVN_ERR
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_5
LBB0_1:
Lloh0:
	adrp	x8, _svn_sqlite__mode_rwcreate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _svn_sqlite__mode_rwcreate@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _statements@GOTPAGE
Lloh4:
	ldr	x8, [x8, _statements@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	ldr	w7, [x21]
	str	x19, [sp]
	add	x0, sp, #24
	mov	x1, x20
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_svn_sqlite__open
	bl	_SVN_ERR
	ldr	x1, [sp, #24]
	add	x0, sp, #20
	mov	x2, x19
	bl	_svn_sqlite__read_schema_version
	ldr	x1, [sp, #24]
	bl	_SVN_SQLITE__ERR_CLOSE
	ldr	w8, [sp, #20]
Lloh6:
	adrp	x9, _REP_CACHE_SCHEMA_FORMAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REP_CACHE_SCHEMA_FORMAT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.2:
	ldr	x0, [sp, #24]
Lloh9:
	adrp	x8, _STMT_CREATE_SCHEMA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STMT_CREATE_SCHEMA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_svn_sqlite__exec_statements
	ldr	x1, [sp, #24]
	bl	_SVN_SQLITE__ERR_CLOSE
LBB0_3:
	ldr	x8, [sp, #24]
	str	x8, [x24]
Lloh12:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
LBB0_4:
	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
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	bl	_svn_fs_x__path_current
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_svn_io_file_create_empty
	cbz	x0, LBB0_8
; %bb.6:
	mov	x22, x0
	ldr	w0, [x0]
	bl	_APR_STATUS_IS_EEXIST
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x22
	bl	_svn_error_clear
	b	LBB0_1
LBB0_8:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_svn_io_copy_perms
	bl	_SVN_ERR
	b	LBB0_1
LBB0_9:
	mov	x0, x22
	bl	_svn_error_trace
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_svn_sqlite__mode_rwcreate,4,2  ; @svn_sqlite__mode_rwcreate
	.comm	_statements,4,2                 ; @statements
	.comm	_REP_CACHE_SCHEMA_FORMAT,4,2    ; @REP_CACHE_SCHEMA_FORMAT
	.comm	_STMT_CREATE_SCHEMA,4,2         ; @STMT_CREATE_SCHEMA
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_open_rep_cache
.subsections_via_symbols
