	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_x__get_rep_reference    ## -- Begin function svn_fs_x__get_rep_reference
	.p2align	4, 0x90
_svn_fs_x__get_rep_reference:           ## @svn_fs_x__get_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	%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	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rbx
	movl	4(%rbx), %edi
	callq	_SVN_ERR_ASSERT
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_svn_fs_x__open_rep_cache
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_2:
	movq	(%r13), %rax
	movq	_svn_checksum_sha1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.3:
	movl	(%rbx), %esi
	movq	_STMT_GET_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	callq	_svn_sqlite__get_statement
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	%r15, %rsi
	movq	-48(%rbp), %r15
	movq	%r13, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_svn_checksum_to_cstring
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_svn_sqlite__bindf
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-48(%rbp), %rsi
	leaq	-72(%rbp), %rdi
	callq	_svn_sqlite__step
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpq	$0, -72(%rbp)
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_apr_pcalloc
	movq	%rax, %rbx
	movl	36(%rax), %edi
	movl	8(%r13), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_svn_sqlite__column_revnum
	movl	%eax, (%rbx)
	movq	-48(%rbp), %rdi
	movl	$1, %esi
	callq	_svn_sqlite__column_int64
	movq	%rax, 8(%rbx)
	movq	-48(%rbp), %rdi
	movl	$2, %esi
	callq	_svn_sqlite__column_int64
	movq	%rax, 24(%rbx)
	movq	-48(%rbp), %rdi
	movl	$3, %esi
	callq	_svn_sqlite__column_int64
	movq	%rax, 16(%rbx)
	jmp	LBB0_6
LBB0_11:
	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	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svn_error_create               ## TAILCALL
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movq	-48(%rbp), %rdi
	callq	_svn_sqlite__reset
	movl	%eax, %edi
	callq	_SVN_ERR
	testq	%rbx, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
## %bb.7:
	movl	(%rbx), %edi
	callq	_svn_fs_x__get_revnum
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_svn_fs_x__ensure_revision_exists
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %r12
	movq	_SVN_ERR_FS_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_svn_checksum_to_cstring_display
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %ecx
	callq	_svn_error_createf
	jmp	LBB0_10
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_svn_checksum_sha1,8,3          ## @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_GET_REP,4,2               ## @STMT_GET_REP
L_.str.1:                               ## @.str.1
	.asciz	"s"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SVN_ERR_FS_CORRUPT,4,2         ## @SVN_ERR_FS_CORRUPT
L_.str.2:                               ## @.str.2
	.asciz	"Checksum '%s' in rep-cache is beyond HEAD"

	.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_x__get_rep_reference    ; -- Begin function svn_fs_x__get_rep_reference
	.p2align	2
_svn_fs_x__get_rep_reference:           ; @svn_fs_x__get_rep_reference
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x24, [x1]
	ldr	w0, [x24, #4]
	bl	_SVN_ERR_ASSERT
	ldr	w8, [x24]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x19
	bl	_svn_fs_x__open_rep_cache
	bl	_SVN_ERR
LBB0_2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _svn_checksum_sha1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _svn_checksum_sha1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w1, [x24]
Lloh3:
	adrp	x8, _STMT_GET_REP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STMT_GET_REP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_svn_sqlite__get_statement
	bl	_SVN_ERR
	ldr	x24, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_svn_checksum_to_cstring
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_svn_sqlite__bindf
	bl	_SVN_ERR
	ldr	x1, [sp, #8]
	mov	x0, sp
	bl	_svn_sqlite__step
	bl	_SVN_ERR
	ldr	x8, [sp]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x23
	mov	w1, #40
	bl	_apr_pcalloc
	mov	x23, x0
	ldr	w0, [x0, #36]
	ldr	w1, [x20, #8]
	mov	w2, #4
	bl	_memcpy
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x23, #32]
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_svn_sqlite__column_revnum
	str	w0, [x23]
	ldr	x0, [sp, #8]
	mov	w1, #1
	bl	_svn_sqlite__column_int64
	str	x0, [x23, #8]
	ldr	x0, [sp, #8]
	mov	w1, #2
	bl	_svn_sqlite__column_int64
	str	x0, [x23, #24]
	ldr	x0, [sp, #8]
	mov	w1, #3
	bl	_svn_sqlite__column_int64
	str	x0, [x23, #16]
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _SVN_ERR_BAD_CHECKSUM_KIND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SVN_ERR_BAD_CHECKSUM_KIND@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_svn_error_create
LBB0_6:
	mov	x23, #0
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_svn_sqlite__reset
	bl	_SVN_ERR
	cbz	x23, LBB0_10
; %bb.8:
	ldr	w0, [x23]
	bl	_svn_fs_x__get_revnum
	mov	x1, x22
	mov	x2, x19
	bl	_svn_fs_x__ensure_revision_exists
	cbz	x0, LBB0_10
; %bb.9:
	mov	x22, x0
Lloh16:
	adrp	x8, _SVN_ERR_FS_CORRUPT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SVN_ERR_FS_CORRUPT@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_svn_checksum_to_cstring_display
	mov	x3, x0
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_svn_error_createf
	b	LBB0_11
LBB0_10:
	str	x23, [x21]
Lloh21:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 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 AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_svn_checksum_sha1,8,3          ; @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_GET_REP,4,2               ; @STMT_GET_REP
l_.str.1:                               ; @.str.1
	.asciz	"s"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SVN_ERR_FS_CORRUPT,4,2         ; @SVN_ERR_FS_CORRUPT
l_.str.2:                               ; @.str.2
	.asciz	"Checksum '%s' in rep-cache is beyond HEAD"

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