	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_fs__set_rep_reference   ## -- Begin function svn_fs_fs__set_rep_reference
	.p2align	4, 0x90
_svn_fs_fs__set_rep_reference:          ## @svn_fs_fs__set_rep_reference
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	_svn_checksum_sha1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	36(%rsi), %eax
	movl	%eax, -40(%rbp)
	movl	4(%r12), %edi
	callq	_SVN_ERR_ASSERT
	cmpl	$0, (%r12)
	je	LBB0_1
## %bb.2:
	cmpl	$0, 32(%rbx)
	je	LBB0_8
LBB0_3:
	movl	(%r12), %esi
	movq	_STMT_SET_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	callq	_svn_sqlite__get_statement
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %r12
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_svn_checksum_to_cstring
	movl	24(%rbx), %ecx
	movl	16(%rbx), %r8d
	movl	(%rbx), %edx
	movl	8(%rbx), %r9d
	movl	%edx, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_svn_sqlite__bindf
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rsi
	xorl	%edi, %edi
	callq	_svn_sqlite__insert
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %rcx
	movq	_SVN_ERR_SQLITE_CONSTRAINT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.5:
	movq	%rax, %rdi
	callq	_svn_error_clear
	leaq	-56(%rbp), %rdi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_svn_fs_fs__get_rep_reference
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_6:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_svn_fs_fs__open_rep_cache
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpl	$0, 32(%rbx)
	jne	LBB0_3
LBB0_8:
	movq	_SVN_ERR_BAD_CHECKSUM_KIND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svn_error_create               ## TAILCALL
LBB0_9:
	movq	%rax, %rdi
	callq	_svn_error_trace
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_svn_checksum_sha1,4,2          ## @svn_checksum_sha1
	.comm	_SVN_ERR_BAD_CHECKSUM_KIND,4,2  ## @SVN_ERR_BAD_CHECKSUM_KIND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only SHA1 checksums can be used as keys in the rep_cache table.\n"

	.comm	_STMT_SET_REP,4,2               ## @STMT_SET_REP
L_.str.1:                               ## @.str.1
	.asciz	"siiii"

	.comm	_SVN_ERR_SQLITE_CONSTRAINT,8,3  ## @SVN_ERR_SQLITE_CONSTRAINT
	.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_fs_fs__set_rep_reference   ; -- Begin function svn_fs_fs__set_rep_reference
	.p2align	2
_svn_fs_fs__set_rep_reference:          ; @svn_fs_fs__set_rep_reference
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _svn_checksum_sha1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _svn_checksum_sha1@GOTPAGEOFF]
	ldr	x22, [x0]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x1, #36]
	stp	w9, w8, [sp, #16]
	ldr	w0, [x22, #4]
	bl	_SVN_ERR_ASSERT
	ldr	w8, [x22]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	w8, [x21, #32]
	cbz	w8, LBB0_7
LBB0_2:
	ldr	w1, [x22]
Lloh3:
	adrp	x8, _STMT_SET_REP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STMT_SET_REP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #24
	bl	_svn_sqlite__get_statement
	bl	_SVN_ERR
	ldr	x22, [sp, #24]
	add	x0, sp, #16
	mov	x1, x19
	bl	_svn_checksum_to_cstring
	mov	x2, x0
	ldr	w3, [x21, #24]
	ldr	w4, [x21, #16]
	ldr	w5, [x21, #8]
	ldr	w6, [x21]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_svn_sqlite__bindf
	bl	_SVN_ERR
	ldr	x1, [sp, #24]
	mov	x0, #0
	bl	_svn_sqlite__insert
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _SVN_ERR_SQLITE_CONSTRAINT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SVN_ERR_SQLITE_CONSTRAINT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	bl	_svn_error_clear
	add	x0, sp, #8
	add	x2, sp, #16
	mov	x1, x20
	mov	x3, x19
	bl	_svn_fs_fs__get_rep_reference
	bl	_SVN_ERR
LBB0_5:
Lloh11:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	b	LBB0_9
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_svn_fs_fs__open_rep_cache
	bl	_SVN_ERR
	ldr	w8, [x21, #32]
	cbnz	w8, LBB0_2
LBB0_7:
Lloh14:
	adrp	x8, _SVN_ERR_BAD_CHECKSUM_KIND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SVN_ERR_BAD_CHECKSUM_KIND@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_svn_error_create
LBB0_8:
	bl	_svn_error_trace
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_svn_checksum_sha1,4,2          ; @svn_checksum_sha1
	.comm	_SVN_ERR_BAD_CHECKSUM_KIND,4,2  ; @SVN_ERR_BAD_CHECKSUM_KIND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only SHA1 checksums can be used as keys in the rep_cache table.\n"

	.comm	_STMT_SET_REP,4,2               ; @STMT_SET_REP
l_.str.1:                               ; @.str.1
	.asciz	"siiii"

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