	.file	"extr_upgrade.c_migrate_text_bases.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	migrate_text_bases, @function
migrate_text_bases:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 184
	.cfi_def_cfa_offset 240
	mov	QWORD PTR 24[rsp], rcx
	mov	QWORD PTR [rsp], rdi
	mov	rdi, r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 168[rsp], rax
	xor	eax, eax
	call	svn_pool_create@PLT
	mov	esi, DWORD PTR TEXT_BASE_SUBDIR[rip]
	mov	rdx, r12
	mov	rdi, r13
	mov	rbp, rax
	call	svn_wc__adm_child@PLT
	mov	rdi, rbx
	mov	r13, rax
	mov	QWORD PTR 16[rsp], rax
	call	apr_hash_make@PLT
	mov	rsi, r13
	lea	rdi, 104[rsp]
	mov	r8, r12
	mov	QWORD PTR [r15], rax
	mov	rdx, QWORD PTR TRUE[rip]
	mov	rcx, r12
	call	svn_io_get_dirents3@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rsi, QWORD PTR 104[rsp]
	mov	rdi, r12
	call	apr_hash_first@PLT
	test	rax, rax
	je	.L2
	mov	r12, rax
	lea	rax, 136[rsp]
	mov	QWORD PTR 40[rsp], rax
	lea	rax, 160[rsp]
	mov	QWORD PTR 64[rsp], rax
	lea	rax, 152[rsp]
	mov	QWORD PTR 56[rsp], rax
	lea	rax, 112[rsp]
	mov	QWORD PTR 80[rsp], rax
	lea	rax, 120[rsp]
	mov	QWORD PTR 88[rsp], rax
	lea	rax, 100[rsp]
	mov	QWORD PTR 72[rsp], rax
	lea	rax, 144[rsp]
	mov	QWORD PTR 48[rsp], rax
	lea	rax, 128[rsp]
	mov	QWORD PTR 32[rsp], rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r13, QWORD PTR TRUE[rip]
.L4:
	mov	rax, QWORD PTR [rsp]
	mov	rsi, r15
	mov	rdi, QWORD PTR [rax]
	call	svn_hash_gets@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L18
.L7:
	lea	rax, 16[rdx]
	test	r13, r13
	mov	rdi, QWORD PTR 120[rsp]
	mov	rsi, rbx
	cmove	rax, rdx
	mov	QWORD PTR 8[rsp], rdx
	mov	r13, rax
	call	svn_checksum_dup@PLT
	mov	rdi, QWORD PTR 112[rsp]
	mov	rsi, rbx
	mov	QWORD PTR 8[r13], rax
	call	svn_checksum_dup@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, r15
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR [rsp]
	mov	rdi, QWORD PTR [rax]
	call	svn_hash_sets@PLT
.L6:
	mov	rdi, r12
	call	apr_hash_next@PLT
	mov	r12, rax
	test	rax, rax
	je	.L2
.L10:
	mov	rdi, r12
	call	apr_hash_this_key@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	svn_pool_clear@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rdx, rbp
	mov	rsi, r13
	call	svn_dirent_join@PLT
	mov	rsi, QWORD PTR 40[rsp]
	mov	r9, rbp
	mov	r8, rbp
	mov	ecx, DWORD PTR svn_io_file_del_none[rip]
	mov	rdi, QWORD PTR 64[rsp]
	mov	rdx, r14
	mov	r15, rax
	call	svn_stream_open_unique@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rdi, QWORD PTR 56[rsp]
	mov	rsi, r15
	mov	rcx, rbp
	mov	rdx, rbp
	call	svn_stream_open_readonly@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	ecx, DWORD PTR svn_checksum_md5[rip]
	xor	edx, edx
	mov	r9, rbp
	mov	r8, QWORD PTR TRUE[rip]
	mov	rsi, QWORD PTR 80[rsp]
	mov	rdi, QWORD PTR 152[rsp]
	call	svn_stream_checksummed2@PLT
	mov	ecx, DWORD PTR svn_checksum_sha1[rip]
	mov	r9, rbp
	xor	edx, edx
	mov	r8, QWORD PTR TRUE[rip]
	mov	rsi, QWORD PTR 88[rsp]
	mov	rdi, rax
	mov	QWORD PTR 152[rsp], rax
	call	svn_stream_checksummed2@PLT
	mov	r8, rbp
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, QWORD PTR 160[rsp]
	mov	rdi, rax
	mov	QWORD PTR 152[rsp], rax
	call	svn_stream_copy3@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rdi, QWORD PTR 72[rsp]
	mov	rcx, rbp
	mov	rsi, r15
	mov	edx, DWORD PTR APR_FINFO_SIZE[rip]
	call	svn_io_stat@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	edx, DWORD PTR STMT_INSERT_OR_IGNORE_PRISTINE[rip]
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 48[rsp]
	call	svn_sqlite__get_statement@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rdx, QWORD PTR 120[rsp]
	mov	rcx, rbp
	mov	rdi, QWORD PTR 144[rsp]
	mov	esi, 1
	call	svn_sqlite__bind_checksum@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rdx, QWORD PTR 112[rsp]
	mov	rcx, rbp
	mov	rdi, QWORD PTR 144[rsp]
	mov	esi, 2
	call	svn_sqlite__bind_checksum@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	edx, DWORD PTR 100[rsp]
	mov	esi, 3
	mov	rdi, QWORD PTR 144[rsp]
	call	svn_sqlite__bind_int64@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rsi, QWORD PTR 144[rsp]
	xor	edi, edi
	call	svn_sqlite__insert@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rdx, QWORD PTR 120[rsp]
	mov	r8, rbp
	mov	rcx, rbp
	mov	rdi, QWORD PTR 32[rsp]
	mov	rsi, r14
	call	svn_wc__db_pristine_get_future_path@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rdi, QWORD PTR 128[rsp]
	mov	rsi, rbp
	call	svn_dirent_dirname@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	svn_wc__ensure_directory@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rsi, QWORD PTR 128[rsp]
	mov	rdi, QWORD PTR 136[rsp]
	mov	rdx, rbp
	call	svn_io_file_move@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	esi, DWORD PTR SVN_WC__REVERT_EXT[rip]
	mov	rdx, rbx
	mov	rdi, r13
	call	remove_suffix@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L19
	mov	esi, DWORD PTR SVN_WC__BASE_EXT[rip]
	mov	rdx, rbx
	mov	rdi, r13
	call	remove_suffix@PLT
	mov	r15, rax
	test	rax, rax
	je	.L6
	mov	r13, QWORD PTR FALSE[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	svn_pool_destroy@PLT
	mov	rax, QWORD PTR SVN_NO_ERROR[rip]
	mov	rbx, QWORD PTR 168[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L20
	add	rsp, 184
	.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
.L18:
	.cfi_restore_state
	mov	esi, 32
	mov	rdi, rbx
	call	apr_pcalloc@PLT
	mov	rdx, rax
	jmp	.L7
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	migrate_text_bases, .-migrate_text_bases
	.comm	svn_io_file_del_none,4,4
	.comm	svn_checksum_sha1,4,4
	.comm	svn_checksum_md5,4,4
	.comm	TRUE,8,8
	.comm	TEXT_BASE_SUBDIR,4,4
	.comm	SVN_WC__REVERT_EXT,4,4
	.comm	SVN_WC__BASE_EXT,4,4
	.comm	SVN_NO_ERROR,8,8
	.comm	STMT_INSERT_OR_IGNORE_PRISTINE,4,4
	.comm	FALSE,8,8
	.comm	APR_FINFO_SIZE,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_upgrade.c_migrate_text_bases.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	migrate_text_bases, %function
migrate_text_bases:
	@ args = 8, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #68
	ldr	r5, [sp, #108]
	str	r3, [sp, #20]
	ldr	r3, .L21
	str	ip, [sp, #12]
	mov	r0, r5
	mov	r7, ip
	mov	r6, r1
	mov	r10, r2
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	ldr	r9, [sp, #104]
	bl	svn_pool_create
	ldr	r3, .L21+4
	mov	r2, r5
	ldr	r1, [r3]
	mov	r4, r0
	mov	r0, r6
	bl	svn_wc__adm_child
	mov	fp, r0
	mov	r0, r9
	bl	apr_hash_make
	ldr	r8, .L21+8
	mov	r3, r5
	mov	r1, fp
	ldr	r2, [r8]
	str	r0, [r7]
	str	r5, [sp]
	add	r0, sp, #24
	bl	svn_io_get_dirents3
	bl	SVN_ERR
	mov	r0, r5
	ldr	r1, [sp, #24]
	bl	apr_hash_first
	subs	r5, r0, #0
	bne	.L10
	b	.L2
.L19:
	ldr	r6, [r8]
.L4:
	ldr	r3, [sp, #12]
	mov	r1, r7
	ldr	r0, [r3]
	bl	svn_hash_gets
	subs	r2, r0, #0
	beq	.L18
.L7:
	cmp	r6, #0
	mov	r1, r9
	ldr	r0, [sp, #32]
	moveq	r6, r2
	addne	r6, r2, #8
	str	r2, [sp, #16]
	bl	svn_checksum_dup
	mov	r1, r9
	str	r0, [r6, #4]
	ldr	r0, [sp, #28]
	bl	svn_checksum_dup
	ldr	r3, [sp, #12]
	str	r0, [r6]
	mov	r1, r7
	ldr	r2, [sp, #16]
	ldr	r0, [r3]
	bl	svn_hash_sets
.L6:
	mov	r0, r5
	bl	apr_hash_next
	subs	r5, r0, #0
	beq	.L2
.L10:
	mov	r0, r5
	bl	apr_hash_this_key
	mov	r6, r0
	mov	r0, r4
	bl	svn_pool_clear
	mov	r2, r4
	mov	r1, r6
	mov	r0, fp
	bl	svn_dirent_join
	mov	r7, r0
	ldr	r3, .L21+12
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r2, r10
	ldr	r3, [r3]
	add	r1, sp, #40
	add	r0, sp, #56
	bl	svn_stream_open_unique
	bl	SVN_ERR
	mov	r1, r7
	mov	r3, r4
	mov	r2, r4
	add	r0, sp, #52
	bl	svn_stream_open_readonly
	bl	SVN_ERR
	ldr	r3, [r8]
	mov	r2, #0
	stm	sp, {r3, r4}
	ldr	r3, .L21+16
	add	r1, sp, #28
	ldr	r3, [r3]
	ldr	r0, [sp, #52]
	bl	svn_stream_checksummed2
	ldr	r3, [r8]
	mov	r2, #0
	stm	sp, {r3, r4}
	ldr	r3, .L21+20
	add	r1, sp, #32
	ldr	r3, [r3]
	str	r0, [sp, #52]
	bl	svn_stream_checksummed2
	mov	r3, #0
	ldr	r1, [sp, #56]
	mov	r2, r3
	str	r4, [sp]
	str	r0, [sp, #52]
	bl	svn_stream_copy3
	bl	SVN_ERR
	ldr	r2, .L21+24
	mov	r1, r7
	mov	r3, r4
	ldr	r2, [r2]
	add	r0, sp, #48
	bl	svn_io_stat
	bl	SVN_ERR
	ldr	r3, .L21+28
	ldr	r1, [sp, #20]
	ldr	r2, [r3]
	add	r0, sp, #44
	bl	svn_sqlite__get_statement
	bl	SVN_ERR
	mov	r3, r4
	mov	r1, #1
	ldr	r2, [sp, #32]
	ldr	r0, [sp, #44]
	bl	svn_sqlite__bind_checksum
	bl	SVN_ERR
	mov	r3, r4
	mov	r1, #2
	ldr	r2, [sp, #28]
	ldr	r0, [sp, #44]
	bl	svn_sqlite__bind_checksum
	bl	SVN_ERR
	ldr	r2, [sp, #48]
	mov	r1, #3
	ldr	r0, [sp, #44]
	bl	svn_sqlite__bind_int64
	bl	SVN_ERR
	ldr	r1, [sp, #44]
	mov	r0, #0
	bl	svn_sqlite__insert
	bl	SVN_ERR
	mov	r3, r4
	ldr	r2, [sp, #32]
	mov	r1, r10
	str	r4, [sp]
	add	r0, sp, #36
	bl	svn_wc__db_pristine_get_future_path
	bl	SVN_ERR
	mov	r1, r4
	ldr	r0, [sp, #36]
	bl	svn_dirent_dirname
	mov	r1, r4
	bl	svn_wc__ensure_directory
	bl	SVN_ERR
	mov	r2, r4
	ldr	r1, [sp, #36]
	ldr	r0, [sp, #40]
	bl	svn_io_file_move
	bl	SVN_ERR
	ldr	r3, .L21+32
	mov	r2, r9
	mov	r0, r6
	ldr	r1, [r3]
	bl	remove_suffix
	subs	r7, r0, #0
	bne	.L19
	ldr	r3, .L21+36
	mov	r0, r6
	mov	r2, r9
	ldr	r1, [r3]
	bl	remove_suffix
	subs	r7, r0, #0
	beq	.L6
	ldr	r3, .L21+40
	ldr	r6, [r3]
	b	.L4
.L2:
	mov	r0, r4
	bl	svn_pool_destroy
	ldr	r3, .L21+44
	ldr	r0, [r3]
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r1, #16
	mov	r0, r9
	bl	apr_pcalloc
	mov	r2, r0
	b	.L7
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	TEXT_BASE_SUBDIR
	.word	TRUE
	.word	svn_io_file_del_none
	.word	svn_checksum_md5
	.word	svn_checksum_sha1
	.word	APR_FINFO_SIZE
	.word	STMT_INSERT_OR_IGNORE_PRISTINE
	.word	SVN_WC__REVERT_EXT
	.word	SVN_WC__BASE_EXT
	.word	FALSE
	.word	SVN_NO_ERROR
	.size	migrate_text_bases, .-migrate_text_bases
	.comm	svn_io_file_del_none,4,4
	.comm	svn_checksum_sha1,4,4
	.comm	svn_checksum_md5,4,4
	.comm	TRUE,4,4
	.comm	TEXT_BASE_SUBDIR,4,4
	.comm	SVN_WC__REVERT_EXT,4,4
	.comm	SVN_WC__BASE_EXT,4,4
	.comm	SVN_NO_ERROR,4,4
	.comm	STMT_INSERT_OR_IGNORE_PRISTINE,4,4
	.comm	FALSE,4,4
	.comm	APR_FINFO_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
