	.file	"extr_sunos.c_sunos_canonicalize_dynamic_symtab.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sunos_canonicalize_dynamic_symtab, @function
sunos_canonicalize_dynamic_symtab:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	sunos_slurp_dynamic_symtab@PLT
	test	eax, eax
	je	.L18
	mov	rdi, r12
	call	obj_aout_dynamic_info@PLT
	cmp	QWORD PTR 8[rax], 0
	mov	rbx, rax
	je	.L4
.L10:
	mov	r8, QWORD PTR [rbx]
	xor	eax, eax
	test	r8, r8
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, QWORD PTR 8[rbx]
	lea	rdx, [rdx+rax*4]
	mov	QWORD PTR 0[rbp+rax*8], rdx
	add	rax, 1
	cmp	rax, r8
	jne	.L5
	lea	rbp, 0[rbp+r8*8]
.L6:
	mov	QWORD PTR 0[rbp], 0
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r8
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	r13, QWORD PTR 56[rax]
	mov	rax, QWORD PTR [rax]
	mov	rdi, r12
	lea	rsi, 0[0+rax*4]
	call	bfd_alloc@PLT
	mov	rcx, QWORD PTR [rbx]
	mov	QWORD PTR 8[rbx], rax
	mov	rsi, rax
	test	rax, rax
	je	.L7
.L8:
	mov	eax, DWORD PTR TRUE[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r9, r13
	mov	rdi, r12
	mov	rdx, QWORD PTR 24[rbx]
	mov	r8, QWORD PTR 16[rbx]
	push	rax
	.cfi_def_cfa_offset 64
	call	aout_32_translate_symbol_table@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	test	eax, eax
	jne	.L10
	mov	rsi, QWORD PTR 8[rbx]
	test	rsi, rsi
	je	.L18
	mov	rdi, r12
	call	bfd_release@PLT
	mov	QWORD PTR 8[rbx], 0
.L18:
	mov	r8, -1
	jmp	.L1
.L7:
	test	rcx, rcx
	je	.L8
	jmp	.L18
	.cfi_endproc
.LFE0:
	.size	sunos_canonicalize_dynamic_symtab, .-sunos_canonicalize_dynamic_symtab
	.comm	TRUE,4,4
	.comm	SEEK_SET,4,4
	.comm	HASH_ENTRY_SIZE,8,8
	.comm	BYTES_IN_WORD,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_canonicalize_dynamic_symtab.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sunos_canonicalize_dynamic_symtab, %function
sunos_canonicalize_dynamic_symtab:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #20
	mov	r5, r1
	mov	r6, r0
	bl	sunos_slurp_dynamic_symtab
	cmp	r0, #0
	beq	.L17
	mov	r0, r6
	bl	obj_aout_dynamic_info
	ldr	r3, [r0, #4]
	mov	r4, r0
	cmp	r3, #0
	beq	.L4
.L10:
	ldr	r0, [r4]
	cmp	r0, #0
	movne	ip, r5
	movne	r3, #0
	beq	.L6
.L5:
	ldr	r2, [r4, #4]
	add	r2, r2, r3, lsl #2
	add	r3, r3, #1
	cmp	r3, r0
	str	r2, [ip], #4
	bne	.L5
	add	r5, r5, r0, lsl #2
.L6:
	mov	r3, #0
	str	r3, [r5]
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	ldr	r1, [r0]
	mov	r0, r6
	lsl	r1, r1, #2
	ldr	r7, [r4, #28]
	bl	bfd_alloc
	cmp	r0, #0
	mov	r1, r0
	ldr	r3, [r4]
	str	r0, [r4, #4]
	beq	.L7
.L8:
	ldr	r0, .L19
	ldr	r2, [r4, #12]
	ldr	r0, [r0]
	str	r7, [sp, #4]
	str	r0, [sp, #8]
	ldr	r0, [r4, #8]
	str	r0, [sp]
	mov	r0, r6
	bl	aout_32_translate_symbol_table
	subs	r7, r0, #0
	bne	.L10
	ldr	r1, [r4, #4]
	cmp	r1, #0
	beq	.L17
	mov	r0, r6
	bl	bfd_release
	str	r7, [r4, #4]
.L17:
	mvn	r0, #0
	b	.L1
.L7:
	cmp	r3, #0
	beq	.L8
	b	.L17
.L20:
	.align	2
.L19:
	.word	TRUE
	.size	sunos_canonicalize_dynamic_symtab, .-sunos_canonicalize_dynamic_symtab
	.comm	TRUE,4,4
	.comm	SEEK_SET,4,4
	.comm	HASH_ENTRY_SIZE,4,4
	.comm	BYTES_IN_WORD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
