	.file	"extr_symfile.c_simple_overlay_update_1.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	simple_overlay_update_1, @function
simple_overlay_update_1:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR 16[rdi]
	mov	QWORD PTR 8[rsp], rdi
	mov	rdi, r15
	mov	r12, QWORD PTR [rax]
	call	bfd_get_section_size@PLT
	mov	eax, DWORD PTR cache_novlys[rip]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	DWORD PTR cache_novlys[rip], ebx
	jle	.L2
.L5:
	mov	rax, QWORD PTR cache_ovly_table[rip]
	mov	rsi, r15
	mov	rdi, r12
	mov	r13d, ebx
	mov	rdx, QWORD PTR VMA[rip]
	lea	r14, 0[0+rbx*8]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	rbp, QWORD PTR [rax+rdx*8]
	call	bfd_section_vma@PLT
	cmp	rbp, rax
	jne	.L3
	mov	rax, QWORD PTR cache_ovly_table[rip]
	mov	rdx, QWORD PTR LMA[rip]
	mov	rsi, r15
	mov	rdi, r12
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	rbp, QWORD PTR [rax+rdx*8]
	call	bfd_section_lma@PLT
	cmp	rbp, rax
	jne	.L3
	imul	r13d, DWORD PTR TARGET_LONG_BYTES[rip]
	mov	rax, QWORD PTR cache_ovly_table[rip]
	mov	edx, 4
	mov	rsi, QWORD PTR [rax+r14]
	movsx	rdi, r13d
	add	rdi, QWORD PTR cache_ovly_table_base[rip]
	call	read_target_long_array@PLT
	mov	rax, QWORD PTR cache_ovly_table[rip]
	mov	rsi, r15
	mov	rdi, r12
	mov	rdx, QWORD PTR VMA[rip]
	mov	rax, QWORD PTR [rax+r14]
	mov	rbx, QWORD PTR [rax+rdx*8]
	call	bfd_section_vma@PLT
	cmp	rbx, rax
	jne	.L2
	mov	rax, QWORD PTR cache_ovly_table[rip]
	mov	rdx, QWORD PTR LMA[rip]
	mov	rsi, r15
	mov	rdi, r12
	mov	rax, QWORD PTR [rax+r14]
	mov	rbx, QWORD PTR [rax+rdx*8]
	call	bfd_section_lma@PLT
	cmp	rbx, rax
	je	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
.L1:
	add	rsp, 24
	.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
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR cache_ovly_table[rip]
	mov	rdx, QWORD PTR MAPPED[rip]
	mov	rcx, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR [rax+r14]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR [rcx], rax
	mov	eax, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	simple_overlay_update_1, .-simple_overlay_update_1
	.comm	cache_ovly_table_base,8,8
	.comm	cache_ovly_table,8,8
	.comm	cache_novlys,4,4
	.comm	VMA,8,8
	.comm	TARGET_LONG_BYTES,4,4
	.comm	MAPPED,8,8
	.comm	LMA,8,8
	.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_symfile.c_simple_overlay_update_1.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	simple_overlay_update_1, %function
simple_overlay_update_1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r0, #4]
	ldr	r3, [r0, #8]
	sub	sp, sp, #12
	ldr	r7, .L10
	str	r0, [sp, #4]
	mov	r0, r5
	ldr	r6, [r3]
	bl	bfd_get_section_size
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	fp, .L10+4
	ldr	r8, .L10+8
	ldr	r10, .L10+12
	b	.L5
.L3:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L5:
	ldr	r3, [fp]
	ldr	r2, [r8]
	ldr	r3, [r3, r4, lsl #2]
	mov	r1, r5
	mov	r0, r6
	ldr	r9, [r3, r2, lsl #2]
	bl	bfd_section_vma
	cmp	r9, r0
	lsl	r9, r4, #2
	bne	.L3
	ldr	r2, [fp]
	ldr	ip, [r10]
	ldr	r2, [r2, r4, lsl #2]
	mov	r1, r5
	ldr	r2, [r2, ip, lsl #2]
	mov	r0, r6
	str	r2, [sp]
	bl	bfd_section_lma
	ldr	r2, [sp]
	cmp	r2, r0
	bne	.L3
	ldr	r1, .L10+16
	ldr	r2, .L10+20
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, [fp]
	mla	r0, r4, r0, r1
	ldr	r1, [r2, r9]
	mov	r2, #4
	bl	read_target_long_array
	ldr	r2, [fp]
	ldr	ip, [r8]
	ldr	r2, [r2, r9]
	mov	r1, r5
	mov	r0, r6
	ldr	r4, [r2, ip, lsl #2]
	bl	bfd_section_vma
	cmp	r4, r0
	bne	.L2
	ldr	r2, [fp]
	ldr	ip, [r10]
	ldr	r2, [r2, r9]
	mov	r1, r5
	mov	r0, r6
	ldr	r4, [r2, ip, lsl #2]
	bl	bfd_section_lma
	cmp	r4, r0
	beq	.L9
.L2:
	mov	r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r1, [fp]
	ldr	r2, .L10+24
	ldr	r3, [r1, r9]
	ldr	r2, [r2]
	mov	r0, #1
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [sp, #4]
	str	r3, [r2]
	b	.L1
.L11:
	.align	2
.L10:
	.word	cache_novlys
	.word	cache_ovly_table
	.word	VMA
	.word	LMA
	.word	TARGET_LONG_BYTES
	.word	cache_ovly_table_base
	.word	MAPPED
	.size	simple_overlay_update_1, .-simple_overlay_update_1
	.comm	cache_ovly_table_base,4,4
	.comm	cache_ovly_table,4,4
	.comm	cache_novlys,4,4
	.comm	VMA,4,4
	.comm	TARGET_LONG_BYTES,4,4
	.comm	MAPPED,4,4
	.comm	LMA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
