	.file	"extr_section.c_bfd_get_section_contents.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bfd_get_section_contents
	.type	bfd_get_section_contents, @function
bfd_get_section_contents:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	r9, rdi
	mov	rdi, rdx
	mov	rdx, r8
	mov	r8d, DWORD PTR [rsi]
	test	DWORD PTR SEC_CONSTRUCTOR[rip], r8d
	jne	.L8
	mov	rax, QWORD PTR 8[rsi]
	test	rax, rax
	je	.L16
	cmp	rcx, rdx
	mov	r10, rdx
	cmovge	r10, rcx
	cmp	rax, r10
	jl	.L5
.L18:
	lea	r10, [rcx+rdx]
	cmp	r10, rax
	jg	.L5
	test	rdx, rdx
	je	.L14
	test	DWORD PTR SEC_HAS_CONTENTS[rip], r8d
	je	.L8
	test	DWORD PTR SEC_IN_MEMORY[rip], r8d
	jne	.L17
	mov	esi, DWORD PTR _bfd_get_section_contents[rip]
	mov	rdi, r9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	BFD_SEND@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	cmp	rcx, rdx
	mov	r10, rdx
	mov	rax, QWORD PTR 16[rsi]
	cmovge	r10, rcx
	cmp	rax, r10
	jge	.L18
.L5:
	mov	edi, DWORD PTR bfd_error_bad_value[rip]
	call	bfd_set_error@PLT
	mov	eax, DWORD PTR FALSE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	esi, esi
	call	memset@PLT
	mov	eax, DWORD PTR TRUE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	add	rcx, QWORD PTR 24[rsi]
	mov	rsi, rcx
	call	memcpy@PLT
.L14:
	mov	eax, DWORD PTR TRUE[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bfd_get_section_contents, .-bfd_get_section_contents
	.comm	bfd_error_bad_value,4,4
	.comm	_bfd_get_section_contents,4,4
	.comm	TRUE,4,4
	.comm	SEC_IN_MEMORY,4,4
	.comm	SEC_HAS_CONTENTS,4,4
	.comm	SEC_CONSTRUCTOR,4,4
	.comm	FALSE,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_section.c_bfd_get_section_contents.c"
	.text
	.align	2
	.global	bfd_get_section_contents
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfd_get_section_contents, %function
bfd_get_section_contents:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L17
	push	{r4, r5, r6, lr}
	ldr	ip, [ip]
	ldr	r4, [r1]
	mov	lr, r0
	tst	r4, ip
	mov	r0, r2
	ldr	r2, [sp, #16]
	bne	.L8
	ldr	ip, [r1, #4]
	cmp	ip, #0
	ldreq	ip, [r1, #8]
	cmp	r3, r2
	movge	r5, r3
	movlt	r5, r2
	cmp	ip, r5
	blt	.L5
	add	r5, r3, r2
	cmp	r5, ip
	bgt	.L5
	cmp	r2, #0
	beq	.L14
	ldr	ip, .L17+4
	ldr	ip, [ip]
	tst	r4, ip
	beq	.L8
	ldr	ip, .L17+8
	ldr	ip, [ip]
	tst	r4, ip
	bne	.L16
	ldr	r3, .L17+12
	mov	r0, lr
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	BFD_SEND
.L5:
	ldr	r3, .L17+16
	ldr	r0, [r3]
	bl	bfd_set_error
	ldr	r3, .L17+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L8:
	mov	r1, #0
	bl	memset
	ldr	r3, .L17+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r1, [r1, #12]
	add	r1, r3, r1
	bl	memcpy
.L14:
	ldr	r3, .L17+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	SEC_CONSTRUCTOR
	.word	SEC_HAS_CONTENTS
	.word	SEC_IN_MEMORY
	.word	_bfd_get_section_contents
	.word	bfd_error_bad_value
	.word	FALSE
	.word	TRUE
	.size	bfd_get_section_contents, .-bfd_get_section_contents
	.comm	bfd_error_bad_value,4,4
	.comm	_bfd_get_section_contents,4,4
	.comm	TRUE,4,4
	.comm	SEC_IN_MEMORY,4,4
	.comm	SEC_HAS_CONTENTS,4,4
	.comm	SEC_CONSTRUCTOR,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
