	.file	"extr_sym.c_add_symbol.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"can't allocate symbol table\n"
	.text
	.p2align 4
	.type	add_symbol, @function
add_symbol:
.LFB0:
	.cfi_startproc
	endbr64
	movsx	rcx, DWORD PTR nsyms[rip]
	mov	eax, DWORD PTR maxsyms[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rdi, QWORD PTR symbol_table[rip]
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	cmp	ecx, eax
	jge	.L7
.L2:
	lea	eax, 1[rcx]
	mov	DWORD PTR nsyms[rip], eax
	lea	rax, [rcx+rcx*2]
	lea	rax, [rdi+rax*8]
	mov	QWORD PTR [rax], r12
	mov	QWORD PTR 8[rax], rbp
	mov	QWORD PTR 16[rax], rbx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	eax, 10000
	lea	esi, [rax+rax*2]
	mov	DWORD PTR maxsyms[rip], eax
	sal	esi, 3
	call	realloc@PLT
	mov	QWORD PTR symbol_table[rip], rax
	mov	rdi, rax
	test	rax, rax
	je	.L3
.L5:
	movsx	rcx, DWORD PTR nsyms[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
	mov	rdi, QWORD PTR symbol_table[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	add_symbol, .-add_symbol
	.comm	symbol_table,8,8
	.comm	stderr,4,4
	.comm	nsyms,4,4
	.comm	maxsyms,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_sym.c_add_symbol.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"can't allocate symbol table\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_symbol, %function
add_symbol:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L8
	ldr	lr, .L8+4
	ldr	r3, [r7]
	ldr	ip, [lr]
	ldr	r8, .L8+8
	cmp	r3, ip
	mov	r6, r0
	mov	r5, r1
	mov	r4, r2
	ldr	r0, [r8]
	bge	.L7
.L2:
	add	r1, r3, r3, lsl #1
	add	r2, r0, r1, lsl #2
	add	r3, r3, #1
	str	r3, [r7]
	str	r6, [r0, r1, lsl #2]
	str	r5, [r2, #4]
	str	r4, [r2, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	add	ip, ip, #9984
	add	ip, ip, #16
	add	r1, ip, ip, lsl #1
	lsl	r1, r1, #2
	str	ip, [lr]
	bl	realloc
	cmp	r0, #0
	str	r0, [r8]
	beq	.L3
.L5:
	ldr	r3, [r7]
	b	.L2
.L3:
	ldr	r3, .L8+12
	ldr	r1, .L8+16
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, #3
	bl	exit
	ldr	r0, [r8]
	b	.L5
.L9:
	.align	2
.L8:
	.word	nsyms
	.word	maxsyms
	.word	symbol_table
	.word	stderr
	.word	.LC0
	.size	add_symbol, .-add_symbol
	.comm	symbol_table,4,4
	.comm	stderr,4,4
	.comm	nsyms,4,4
	.comm	maxsyms,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
