	.file	"extr_recovery.c_recover_body.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Expected current rev to be <= %ld but found %ld"
	.align 8
.LC1:
	.string	"Revision %ld has a revs file but no revprops file"
	.align 8
.LC2:
	.string	"Revision %ld has a revs file but the revprops file is inaccessible"
	.align 8
.LC3:
	.string	"Revision %ld has a non-file where its revprops file should be"
	.text
	.p2align 4
	.type	recover_body, @function
recover_body:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rcx, rsi
	xor	edx, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	r12, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 48[rsp], 0
	mov	esi, DWORD PTR [r12]
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, r12
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 24[rsp], rax
	call	svn_fs_fs__set_uuid@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	lea	rsi, 40[rsp]
	mov	rdx, rbx
	mov	rdi, r12
	call	recover_get_largest_revision@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	lea	rdi, 64[rsp]
	mov	rdx, rbx
	mov	rsi, r12
	call	svn_fs_fs__youngest_rev@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	r14, QWORD PTR 64[rsp]
	mov	rbp, QWORD PTR 40[rsp]
	cmp	r14, rbp
	jg	.L25
	mov	rax, QWORD PTR 24[rsp]
	mov	rcx, QWORD PTR SVN_FS_FS__MIN_NO_GLOBAL_IDS_FORMAT[rip]
	lea	r15, 72[rsp]
	cmp	QWORD PTR [rax], rcx
	jl	.L26
.L4:
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, r12
	call	svn_fs_fs__path_revprops@PLT
	mov	rdx, rbx
	mov	rsi, r15
	mov	edi, eax
	call	svn_io_check_path@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rax, QWORD PTR 72[rsp]
	cmp	rax, QWORD PTR svn_node_none[rip]
	je	.L27
	cmp	rax, QWORD PTR svn_node_file[rip]
	jne	.L28
.L12:
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR 8[rax], 0
	jne	.L29
.L13:
	mov	rcx, QWORD PTR 56[rsp]
	mov	rdx, QWORD PTR 48[rsp]
	mov	r8, rbx
	mov	rdi, r12
	mov	rsi, QWORD PTR 40[rsp]
	call	svn_fs_fs__write_current@PLT
.L1:
	mov	rcx, QWORD PTR 88[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L30
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	r12, QWORD PTR 40[rsp]
	lea	rdi, .LC3[rip]
.L23:
	call	_@PLT
	mov	edi, DWORD PTR SVN_ERR_FS_CORRUPT[rip]
	mov	rcx, r12
	xor	esi, esi
	mov	edx, eax
	xor	eax, eax
	call	svn_error_createf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, rbx
	call	svn_pool_create@PLT
	cmp	QWORD PTR 40[rsp], 0
	mov	r14, rax
	js	.L7
	lea	rax, 80[rsp]
	xor	ebp, ebp
	mov	QWORD PTR [rsp], rax
	lea	rax, 56[rsp]
	mov	QWORD PTR 16[rsp], rax
	lea	rax, 48[rsp]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r14
	call	svn_pool_clear@PLT
	mov	rax, QWORD PTR 8[r13]
	test	rax, rax
	je	.L6
	mov	edi, DWORD PTR 0[r13]
	call	rax
	mov	edi, eax
	call	SVN_ERR@PLT
.L6:
	mov	rdi, QWORD PTR [rsp]
	mov	r8, r14
	mov	rdx, rbp
	mov	rcx, rbx
	mov	rsi, r12
	call	svn_fs_fs__open_pack_or_rev_file@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rdx, QWORD PTR 80[rsp]
	mov	rsi, rbp
	mov	rcx, rbx
	mov	rdi, r15
	call	recover_get_root_offset@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 168
	mov	rsi, rbp
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 176
	mov	r9, QWORD PTR 32[rsp]
	add	rbp, 1
	mov	r8, QWORD PTR 24[rsp]
	mov	ecx, DWORD PTR 88[rsp]
	mov	rdx, QWORD PTR 96[rsp]
	call	recover_find_max_ids@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rdi, QWORD PTR 96[rsp]
	call	svn_fs_fs__close_revision_file@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	pop	rax
	.cfi_def_cfa_offset 168
	pop	rdx
	.cfi_def_cfa_offset 160
	cmp	QWORD PTR 40[rsp], rbp
	jge	.L5
.L7:
	mov	rdi, r14
	call	svn_pool_destroy@PLT
	add	QWORD PTR 48[rsp], 1
	mov	rbp, QWORD PTR 40[rsp]
	add	QWORD PTR 56[rsp], 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdi, .LC0[rip]
	call	_@PLT
	mov	edi, DWORD PTR SVN_ERR_FS_CORRUPT[rip]
	mov	r8, r14
	xor	esi, esi
	mov	edx, eax
	mov	rcx, rbp
	xor	eax, eax
	call	svn_error_createf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, 80[rsp]
	mov	rdx, rbx
	mov	rsi, r12
	call	svn_fs_fs__exists_rep_cache@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	cmp	QWORD PTR 80[rsp], 0
	je	.L13
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdi, r12
	mov	rdx, rbx
	call	svn_fs_fs__del_rep_reference@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdx, QWORD PTR 40[rsp]
	lea	rdi, 80[rsp]
	mov	rcx, rbx
	mov	rsi, r12
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR 80[rsp], rax
	call	svn_fs_fs__packed_revprop_available@PLT
	test	eax, eax
	jne	.L12
	cmp	QWORD PTR 80[rsp], 0
	mov	r12, QWORD PTR 40[rsp]
	lea	rdi, .LC1[rip]
	jne	.L23
	lea	rdi, .LC2[rip]
	jmp	.L23
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	recover_body, .-recover_body
	.comm	svn_node_none,8,8
	.comm	svn_node_file,8,8
	.comm	TRUE,8,8
	.comm	SVN_FS_FS__MIN_NO_GLOBAL_IDS_FORMAT,8,8
	.comm	SVN_ERR_FS_CORRUPT,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_recovery.c_recover_body.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Expected current rev to be <= %ld but found %ld\000"
	.align	2
.LC1:
	.ascii	"Revision %ld has a revs file but no revprops file\000"
	.align	2
.LC2:
	.ascii	"Revision %ld has a revs file but the revprops file "
	.ascii	"is inaccessible\000"
	.align	2
.LC3:
	.ascii	"Revision %ld has a non-file where its revprops file"
	.ascii	" should be\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	recover_body, %function
recover_body:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	mov	r5, r1
	ldr	r6, [r0, #8]
	ldr	ip, .L37
	sub	sp, sp, #52
	mov	r3, r1
	mov	r2, r4
	ldr	r1, [r6]
	mov	r7, r0
	mov	r0, r6
	ldr	ip, [ip]
	str	ip, [sp, #44]
	mov	ip,#0
	ldr	fp, [r6, #4]
	str	r4, [sp, #24]
	str	r4, [sp, #28]
	bl	svn_fs_fs__set_uuid
	bl	SVN_ERR
	mov	r2, r5
	add	r1, sp, #20
	mov	r0, r6
	bl	recover_get_largest_revision
	bl	SVN_ERR
	mov	r1, r6
	mov	r2, r5
	add	r0, sp, #32
	bl	svn_fs_fs__youngest_rev
	bl	SVN_ERR
	ldr	r1, [sp, #20]
	ldr	r3, [sp, #32]
	cmp	r3, r1
	bgt	.L31
	ldr	r3, .L37+4
	ldr	r2, [fp]
	ldr	r3, [r3]
	cmp	r2, r3
	addge	r9, sp, #36
	blt	.L32
.L4:
	mov	r2, r5
	mov	r0, r6
	bl	svn_fs_fs__path_revprops
	mov	r2, r5
	mov	r1, r9
	bl	svn_io_check_path
	bl	SVN_ERR
	ldr	r2, .L37+8
	ldr	r3, [sp, #36]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L33
	ldr	r2, .L37+12
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L34
.L12:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L35
.L13:
	str	r5, [sp]
	add	r1, sp, #20
	mov	r0, r6
	ldm	r1, {r1, r2, r3}
	bl	svn_fs_fs__write_current
.L1:
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	ldr	r3, .L37+16
	ldr	r0, .L37+20
	ldr	r4, [r3]
	bl	_
	mov	r1, #0
	mov	r2, r0
	ldr	r3, [sp, #20]
	mov	r0, r4
	bl	svn_error_createf
	b	.L1
.L32:
	mov	r0, r5
	bl	svn_pool_create
	ldr	r3, [sp, #20]
	mov	r8, r0
	cmp	r3, #0
	add	r9, sp, #36
	addge	r10, sp, #28
	blt	.L7
.L5:
	mov	r0, r8
	bl	svn_pool_clear
	ldr	r3, [r7, #4]
	cmp	r3, #0
	beq	.L6
	ldr	r0, [r7]
	blx	r3
	bl	SVN_ERR
.L6:
	mov	r2, r4
	mov	r3, r5
	mov	r1, r6
	mov	r0, r9
	str	r8, [sp]
	bl	svn_fs_fs__open_pack_or_rev_file
	bl	SVN_ERR
	mov	r1, r4
	mov	r3, r5
	ldr	r2, [sp, #36]
	add	r0, sp, #40
	bl	recover_get_root_offset
	bl	SVN_ERR
	add	r3, sp, #24
	mov	r1, r4
	ldr	r2, [sp, #36]
	str	r3, [sp]
	mov	r0, r6
	ldr	r3, [sp, #40]
	str	r5, [sp, #8]
	str	r10, [sp, #4]
	bl	recover_find_max_ids
	bl	SVN_ERR
	ldr	r0, [sp, #36]
	bl	svn_fs_fs__close_revision_file
	bl	SVN_ERR
	ldr	r3, [sp, #20]
	add	r4, r4, #1
	cmp	r3, r4
	bge	.L5
.L7:
	mov	r0, r8
	bl	svn_pool_destroy
	ldr	r2, [sp, #24]
	ldr	r3, [sp, #28]
	add	r2, r2, #1
	add	r3, r3, #1
	ldr	r1, [sp, #20]
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	b	.L4
.L31:
	ldr	r3, .L37+16
	ldr	r0, .L37+24
	ldr	r5, [r3]
	bl	_
	ldr	r3, [sp, #32]
	mov	r2, r0
	str	r3, [sp]
	mov	r0, r5
	mov	r1, r4
	ldr	r3, [sp, #20]
	bl	svn_error_createf
	b	.L1
.L35:
	mov	r2, r5
	mov	r1, r6
	add	r0, sp, #40
	bl	svn_fs_fs__exists_rep_cache
	bl	SVN_ERR
	ldr	r3, [sp, #40]
	cmp	r3, #0
	beq	.L13
	mov	r2, r5
	ldr	r1, [sp, #20]
	mov	r0, r6
	bl	svn_fs_fs__del_rep_reference
	bl	SVN_ERR
	b	.L13
.L33:
	ldr	r2, .L37+28
	mov	r3, r5
	ldr	ip, [r2]
	mov	r1, r6
	ldr	r2, [sp, #20]
	add	r0, sp, #40
	str	ip, [sp, #40]
	bl	svn_fs_fs__packed_revprop_available
	subs	r4, r0, #0
	bne	.L12
	ldr	r5, [sp, #40]
	ldr	r3, .L37+16
	cmp	r5, #0
	ldr	r6, [r3]
	beq	.L10
	ldr	r0, .L37+32
	bl	_
	mov	r1, r4
	mov	r2, r0
	ldr	r3, [sp, #20]
	mov	r0, r6
	bl	svn_error_createf
	b	.L1
.L10:
	ldr	r0, .L37+36
	bl	_
	mov	r1, r5
	mov	r2, r0
	ldr	r3, [sp, #20]
	mov	r0, r6
	bl	svn_error_createf
	b	.L1
.L36:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	.LC4
	.word	SVN_FS_FS__MIN_NO_GLOBAL_IDS_FORMAT
	.word	svn_node_none
	.word	svn_node_file
	.word	SVN_ERR_FS_CORRUPT
	.word	.LC3
	.word	.LC0
	.word	TRUE
	.word	.LC1
	.word	.LC2
	.size	recover_body, .-recover_body
	.comm	svn_node_none,4,4
	.comm	svn_node_file,4,4
	.comm	TRUE,4,4
	.comm	SVN_FS_FS__MIN_NO_GLOBAL_IDS_FORMAT,4,4
	.comm	SVN_ERR_FS_CORRUPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
