	.file	"extr_sunos.c_sunos_scan_relocs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sunos_scan_relocs, @function
sunos_scan_relocs:
.LFB0:
	.cfi_startproc
	endbr64
	test	ecx, ecx
	je	.L30
	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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L31
	mov	esi, 4
	mov	rdi, rbp
	call	bfd_alloc@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L13
	mov	rdi, r12
	xor	r15d, r15d
	call	set_aout_section_data@PLT
	mov	edi, ebx
	call	bfd_malloc@PLT
	mov	rdi, r12
	mov	r14, rax
	call	aout_section_data@PLT
	mov	QWORD PTR [rax], r14
.L5:
	test	r14, r14
	je	.L13
	mov	edx, DWORD PTR SEEK_SET[rip]
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbp
	call	bfd_seek@PLT
	test	rax, rax
	je	.L32
.L8:
	test	r15, r15
	je	.L13
	mov	rdi, r15
	call	free@PLT
.L13:
	mov	eax, DWORD PTR FALSE[rip]
.L1:
	add	rsp, 8
	.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
.L31:
	.cfi_restore_state
	mov	edi, ecx
	call	bfd_malloc@PLT
	mov	r14, rax
	mov	r15, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	mov	eax, DWORD PTR TRUE[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	rdx, rbp
	mov	esi, ebx
	mov	rdi, r14
	call	bfd_bread@PLT
	cmp	eax, ebx
	jne	.L8
	mov	rdi, rbp
	call	obj_reloc_entry_size@PLT
	mov	r8d, ebx
	mov	rcx, r14
	mov	rdx, r12
	cmp	rax, QWORD PTR RELOC_STD_SIZE[rip]
	mov	rsi, rbp
	mov	rdi, r13
	je	.L33
	call	sunos_scan_ext_relocs@PLT
	test	eax, eax
	je	.L8
.L12:
	test	r15, r15
	je	.L11
	mov	rdi, r15
	call	free@PLT
.L11:
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	call	sunos_scan_std_relocs@PLT
	test	eax, eax
	jne	.L12
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	sunos_scan_relocs, .-sunos_scan_relocs
	.comm	TRUE,4,4
	.comm	SEEK_SET,4,4
	.comm	RELOC_STD_SIZE,8,8
	.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_sunos.c_sunos_scan_relocs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sunos_scan_relocs, %function
sunos_scan_relocs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	subs	r6, r3, #0
	sub	sp, sp, #12
	beq	.L11
	ldr	r3, [r0]
	mov	r8, r0
	cmp	r3, #0
	mov	r4, r1
	mov	r7, r2
	beq	.L28
	mov	r1, #4
	mov	r0, r4
	bl	bfd_alloc
	subs	r1, r0, #0
	beq	.L13
	mov	r0, r7
	bl	set_aout_section_data
	mov	r0, r6
	bl	bfd_malloc
	mov	r5, r0
	mov	r0, r7
	bl	aout_section_data
	mov	r9, #0
	str	r5, [r0]
.L5:
	cmp	r5, #0
	beq	.L13
	ldr	r3, .L31
	mov	r0, r4
	ldr	r1, [r7]
	ldr	r2, [r3]
	bl	bfd_seek
	cmp	r0, #0
	beq	.L29
.L8:
	cmp	r9, #0
	beq	.L13
	mov	r0, r9
	bl	free
.L13:
	ldr	r3, .L31+4
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L28:
	mov	r0, r6
	bl	bfd_malloc
	mov	r5, r0
	mov	r9, r0
	b	.L5
.L29:
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	bl	bfd_bread
	cmp	r0, r6
	bne	.L8
	mov	r0, r4
	bl	obj_reloc_entry_size
	ldr	r3, .L31+8
	mov	r2, r7
	ldr	r3, [r3]
	mov	r1, r4
	cmp	r0, r3
	str	r6, [sp]
	mov	r3, r5
	mov	r0, r8
	beq	.L30
	bl	sunos_scan_ext_relocs
	cmp	r0, #0
	beq	.L8
.L12:
	cmp	r9, #0
	beq	.L11
	mov	r0, r9
	bl	free
.L11:
	ldr	r3, .L31+12
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L30:
	bl	sunos_scan_std_relocs
	cmp	r0, #0
	bne	.L12
	b	.L8
.L32:
	.align	2
.L31:
	.word	SEEK_SET
	.word	FALSE
	.word	RELOC_STD_SIZE
	.word	TRUE
	.size	sunos_scan_relocs, .-sunos_scan_relocs
	.comm	TRUE,4,4
	.comm	SEEK_SET,4,4
	.comm	RELOC_STD_SIZE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
