	.file	"extr_rep-cache.c_svn_fs_fs__get_rep_reference.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Only SHA1 checksums can be used as keys in the rep_cache table.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"s"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Checksum '%s' in rep-cache is beyond HEAD"
	.text
	.p2align 4
	.globl	svn_fs_fs__get_rep_reference
	.type	svn_fs_fs__get_rep_reference, @function
svn_fs_fs__get_rep_reference:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	edi, DWORD PTR 4[rbx]
	call	SVN_ERR_ASSERT@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L13
.L2:
	mov	rax, QWORD PTR svn_checksum_sha1[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L3
	lea	rdi, .LC0[rip]
	call	_@PLT
	mov	edi, DWORD PTR SVN_ERR_BAD_CHECKSUM_KIND[rip]
	xor	esi, esi
	mov	edx, eax
	call	svn_error_create@PLT
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR STMT_GET_REP[rip]
	mov	esi, DWORD PTR [rbx]
	lea	rdi, 8[rsp]
	call	svn_sqlite__get_statement@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	svn_checksum_to_cstring@PLT
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC1[rip]
	mov	edx, eax
	call	svn_sqlite__bindf@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rsi, QWORD PTR 8[rsp]
	lea	rdi, 16[rsp]
	call	svn_sqlite__step@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	cmp	QWORD PTR 16[rsp], 0
	jne	.L5
	mov	rdi, QWORD PTR 8[rsp]
	xor	ebx, ebx
	call	svn_sqlite__reset@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
.L6:
	mov	QWORD PTR [r14], rbx
	mov	rax, QWORD PTR SVN_NO_ERROR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, 48
	mov	rdi, r13
	call	apr_pcalloc@PLT
	mov	rbx, rax
	lea	rdi, 40[rax]
	call	svn_fs_fs__id_txn_reset@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 36[rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	eax, DWORD PTR TRUE[rip]
	mov	rdi, QWORD PTR 8[rsp]
	xor	esi, esi
	mov	DWORD PTR 32[rbx], eax
	call	svn_sqlite__column_revnum@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, 1
	mov	DWORD PTR [rbx], eax
	call	svn_sqlite__column_int64@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, 2
	mov	QWORD PTR 24[rbx], rax
	call	svn_sqlite__column_int64@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, 3
	mov	QWORD PTR 16[rbx], rax
	call	svn_sqlite__column_int64@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rbx], rax
	call	svn_sqlite__reset@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rdx, r13
	mov	rsi, rbx
	mov	rdi, r12
	call	svn_fs_fs__fixup_expanded_size@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r12
	mov	rdx, r13
	call	svn_fs_fs__ensure_revision_exists@PLT
	mov	r12, rax
	test	rax, rax
	je	.L6
	mov	rsi, r13
	mov	rdi, rbp
	call	svn_checksum_to_cstring_display@PLT
	mov	edi, DWORD PTR SVN_ERR_FS_CORRUPT[rip]
	lea	rdx, .LC2[rip]
	mov	rsi, r12
	mov	ecx, eax
	call	svn_error_createf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r12
	mov	rsi, r13
	call	svn_fs_fs__open_rep_cache@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	jmp	.L2
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	svn_fs_fs__get_rep_reference, .-svn_fs_fs__get_rep_reference
	.comm	svn_checksum_sha1,8,8
	.comm	TRUE,4,4
	.comm	SVN_NO_ERROR,8,8
	.comm	SVN_ERR_FS_CORRUPT,4,4
	.comm	SVN_ERR_BAD_CHECKSUM_KIND,4,4
	.comm	STMT_GET_REP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rep-cache.c_svn_fs_fs__get_rep_reference.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Only SHA1 checksums can be used as keys in the rep_"
	.ascii	"cache table.\012\000"
	.align	2
.LC1:
	.ascii	"s\000"
	.align	2
.LC2:
	.ascii	"Checksum '%s' in rep-cache is beyond HEAD\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	svn_fs_fs__get_rep_reference
	.syntax unified
	.arm
	.fpu softvfp
	.type	svn_fs_fs__get_rep_reference, %function
svn_fs_fs__get_rep_reference:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r1]
	mov	r7, r3
	ldr	r3, .L15
	sub	sp, sp, #16
	mov	r8, r0
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r6, r1
	mov	r5, r2
	bl	SVN_ERR_ASSERT
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L13
.L2:
	ldr	r3, .L15+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
	ldr	r3, .L15+8
	ldr	r0, .L15+12
	ldr	r4, [r3]
	bl	_
	mov	r1, #0
	mov	r2, r0
	mov	r0, r4
	bl	svn_error_create
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L15+16
	ldr	r1, [r4]
	ldr	r2, [r3]
	add	r0, sp, #4
	bl	svn_sqlite__get_statement
	bl	SVN_ERR
	mov	r1, r7
	mov	r0, r5
	ldr	r4, [sp, #4]
	bl	svn_checksum_to_cstring
	ldr	r1, .L15+20
	mov	r2, r0
	mov	r0, r4
	bl	svn_sqlite__bindf
	bl	SVN_ERR
	ldr	r1, [sp, #4]
	add	r0, sp, #8
	bl	svn_sqlite__step
	bl	SVN_ERR
	ldr	r4, [sp, #8]
	cmp	r4, #0
	bne	.L5
	ldr	r0, [sp, #4]
	bl	svn_sqlite__reset
	bl	SVN_ERR
.L6:
	ldr	r3, .L15+24
	str	r4, [r8]
	ldr	r0, [r3]
	b	.L1
.L5:
	mov	r1, #28
	mov	r0, r7
	bl	apr_pcalloc
	mov	r4, r0
	add	r0, r0, #24
	bl	svn_fs_fs__id_txn_reset
	mov	r2, #4
	ldr	r1, [r5, #4]
	ldr	r0, [r4, #20]
	bl	memcpy
	ldr	r3, .L15+28
	mov	r1, #0
	ldr	r3, [r3]
	ldr	r0, [sp, #4]
	str	r3, [r4, #16]
	bl	svn_sqlite__column_revnum
	mov	r1, #1
	str	r0, [r4]
	ldr	r0, [sp, #4]
	bl	svn_sqlite__column_int64
	mov	r1, #2
	str	r0, [r4, #12]
	ldr	r0, [sp, #4]
	bl	svn_sqlite__column_int64
	mov	r1, #3
	str	r0, [r4, #8]
	ldr	r0, [sp, #4]
	bl	svn_sqlite__column_int64
	mov	r3, r0
	ldr	r0, [sp, #4]
	str	r3, [r4, #4]
	bl	svn_sqlite__reset
	bl	SVN_ERR
	mov	r2, r7
	mov	r1, r4
	mov	r0, r6
	bl	svn_fs_fs__fixup_expanded_size
	bl	SVN_ERR
	mov	r1, r6
	mov	r2, r7
	ldr	r0, [r4]
	bl	svn_fs_fs__ensure_revision_exists
	subs	r6, r0, #0
	beq	.L6
	ldr	r3, .L15+32
	mov	r1, r7
	mov	r0, r5
	ldr	r4, [r3]
	bl	svn_checksum_to_cstring_display
	mov	r1, r6
	mov	r3, r0
	ldr	r2, .L15+36
	mov	r0, r4
	bl	svn_error_createf
	b	.L1
.L13:
	mov	r1, r7
	mov	r0, r6
	bl	svn_fs_fs__open_rep_cache
	bl	SVN_ERR
	b	.L2
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	svn_checksum_sha1
	.word	SVN_ERR_BAD_CHECKSUM_KIND
	.word	.LC0
	.word	STMT_GET_REP
	.word	.LC1
	.word	SVN_NO_ERROR
	.word	TRUE
	.word	SVN_ERR_FS_CORRUPT
	.word	.LC2
	.size	svn_fs_fs__get_rep_reference, .-svn_fs_fs__get_rep_reference
	.comm	svn_checksum_sha1,4,4
	.comm	TRUE,4,4
	.comm	SVN_NO_ERROR,4,4
	.comm	SVN_ERR_FS_CORRUPT,4,4
	.comm	SVN_ERR_BAD_CHECKSUM_KIND,4,4
	.comm	STMT_GET_REP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
