	.file	"571442.c"
	.intel_syntax noprefix
	.text
	.globl	nvtab
	.bss
	.align 16
	.type	nvtab, @object
	.size	nvtab, 16
nvtab:
	.zero	16
	.text
	.globl	addname
	.type	addname, @function
addname:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, rsi
	mov	r9, rdi
	mov	rsi, r9
	mov	rdi, r10
	mov	rdi, rax
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -56[rbp], ecx
	mov	QWORD PTR -64[rbp], r8
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	test	rax, rax
	jne	.L2
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	test	rax, rax
	jne	.L3
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -16[rbp], 0
	jmp	.L4
.L2:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	cmp	edx, eax
	jl	.L4
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L5
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
.L4:
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 4
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	addname, .-addname
	.globl	delname
	.type	delname, @function
delname:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L8
.L11:
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	add	edx, 1
	sub	eax, edx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rcx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, 1
	sal	rax, 4
	add	rcx, rax
	mov	rsi, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 4
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	jmp	.L12
.L9:
	add	DWORD PTR -20[rbp], 1
.L8:
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L11
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	delname, .-delname
	.section	.rodata
.LC0:
	.string	"Andy"
.LC1:
	.string	"Billy"
.LC2:
	.string	"%s %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	rdi, QWORD PTR nvtab[rip+8]
	mov	ecx, DWORD PTR nvtab[rip+4]
	mov	esi, DWORD PTR nvtab[rip]
	lea	rax, .LC0[rip]
	mov	r9, rdx
	movabs	r8, -4294967296
	and	r8, r9
	or	r8, 12
	mov	rdx, r8
	mov	r8, rax
	mov	r9, rdx
	mov	r9, r8
	mov	rax, rdx
	mov	r8, rdi
	mov	edx, esi
	mov	rdi, r9
	mov	rsi, rax
	call	addname
	mov	QWORD PTR nvtab[rip], rax
	mov	QWORD PTR nvtab[rip+8], rdx
	mov	r8, QWORD PTR nvtab[rip+8]
	mov	edx, DWORD PTR nvtab[rip+4]
	mov	eax, DWORD PTR nvtab[rip]
	lea	r12, .LC1[rip]
	mov	rsi, r13
	movabs	rcx, -4294967296
	and	rcx, rsi
	or	rcx, 18
	mov	r13, rcx
	mov	rsi, r12
	mov	rdi, r13
	mov	rcx, r12
	mov	rbx, r13
	mov	rdi, rsi
	mov	rsi, rbx
	mov	ecx, edx
	mov	edx, eax
	call	addname
	mov	QWORD PTR nvtab[rip], rax
	mov	QWORD PTR nvtab[rip+8], rdx
	mov	rcx, QWORD PTR nvtab[rip+8]
	mov	edx, DWORD PTR nvtab[rip+4]
	mov	eax, DWORD PTR nvtab[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	delname
	mov	QWORD PTR nvtab[rip], rax
	mov	QWORD PTR nvtab[rip+8], rdx
	mov	DWORD PTR -36[rbp], 0
	jmp	.L14
.L15:
	mov	rdx, QWORD PTR nvtab[rip+8]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	edx, DWORD PTR 8[rax]
	mov	rcx, QWORD PTR nvtab[rip+8]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -36[rbp], 1
.L14:
	mov	eax, DWORD PTR nvtab[rip]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L15
	mov	ecx, 0
	mov	eax, ecx
	add	rsp, 24
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"571442.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Andy\000"
	.align	2
.LC2:
	.ascii	"Billy\000"
	.text
	.comm	nvtab,12,4
	.align	2
	.global	addname
	.syntax unified
	.arm
	.fpu softvfp
	.type	addname, %function
addname:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	sub	r0, fp, #32
	stm	r0, {r1, r2}
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	mov	r0, #1
	bl	exit
.L3:
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L4
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	lsl	r2, r2, #4
	mov	r1, r2
	mov	r0, r3
	bl	realloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L5
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
.L4:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #32
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	mov	ip, r3
	sub	r3, fp, #16
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r0, [fp, #-24]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	addname, .-addname
	.align	2
	.global	delname
	.syntax unified
	.arm
	.fpu softvfp
	.type	delname, %function
delname:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L8
.L11:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r0, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	lsl	r3, r3, #3
	add	r1, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	sub	r3, r2, r3
	lsl	r3, r3, #3
	mov	r2, r3
	bl	memmove
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	mov	ip, r3
	sub	r3, fp, #16
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	b	.L7
.L9:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L8:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-24]
	mov	ip, r3
	sub	r3, fp, #16
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
.L7:
	ldr	r0, [fp, #-24]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	delname, .-delname
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%s %d\012\000"
	.align	2
.LC4:
	.word	.LC0
	.word	12
	.align	2
.LC5:
	.word	.LC2
	.word	18
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L18+4
	sub	r3, fp, #32
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L18+8
	ldr	r1, [r3]
	ldr	r3, .L18+8
	ldr	r3, [r3, #4]
	ldr	r2, .L18+8
	ldr	r2, [r2, #8]
	ldr	r4, .L18+8
	sub	r0, fp, #52
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r1
	sub	r2, fp, #32
	ldm	r2, {r1, r2}
	bl	addname
	mov	ip, r4
	sub	r3, fp, #52
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r2, .L18+12
	sub	r3, fp, #24
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L18+8
	ldr	r1, [r3]
	ldr	r3, .L18+8
	ldr	r3, [r3, #4]
	ldr	r2, .L18+8
	ldr	r2, [r2, #8]
	ldr	r4, .L18+8
	sub	r0, fp, #52
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r1
	sub	r2, fp, #24
	ldm	r2, {r1, r2}
	bl	addname
	mov	ip, r4
	sub	r3, fp, #52
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, .L18+8
	ldr	r1, [r3, #4]
	ldr	r3, .L18+8
	ldr	r3, [r3, #8]
	ldr	r4, .L18+8
	sub	r0, fp, #52
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L18+16
	bl	delname
	mov	ip, r4
	sub	r3, fp, #52
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L14
.L15:
	ldr	r3, .L18+8
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L18+8
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L18+20
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L14:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC7
	.word	.LC4
	.word	nvtab
	.word	.LC5
	.word	.LC2
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
