	.file	"10097.c"
	.intel_syntax noprefix
	.text
	.globl	AppendVariable
	.type	AppendVariable, @function
AppendVariable:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	AppendVariable, .-AppendVariable
	.globl	FindVariable
	.type	FindVariable, @function
FindVariable:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L5
.L10:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L6:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32[rbp], rax
.L5:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L10
	mov	eax, 0
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	FindVariable, .-FindVariable
	.section	.rodata
.LC0:
	.string	"> "
.LC1:
	.string	"%32s"
.LC2:
	.string	"DECLARE"
	.align 8
.LC3:
	.string	"Error: You must enter a scope before declaring variables"
.LC4:
	.string	"%32s %32s"
.LC5:
	.string	"SET"
	.align 8
.LC6:
	.string	"Error: Cannot find variable '%s'\n"
.LC7:
	.string	"GET"
.LC8:
	.string	"ENTER"
.LC9:
	.string	"EXIT"
.LC10:
	.string	"Error: No scope to exit"
.LC11:
	.string	"Error: Command not recognized"
	.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
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -160[rbp], 0
.L29:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L12
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	jmp	.L32
.L12:
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	cmp	QWORD PTR -160[rbp], 0
	jne	.L15
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdx, -80[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L16
.L15:
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L17
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L29
.L17:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	AppendVariable
	jmp	.L29
.L14:
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rdx, QWORD PTR -160[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	FindVariable
	mov	QWORD PTR -112[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L29
.L19:
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L29
.L18:
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rdx, QWORD PTR -160[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	FindVariable
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L29
.L22:
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L29
.L21:
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -160[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -160[rbp], rax
	jmp	.L29
.L24:
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L25
	cmp	QWORD PTR -160[rbp], 0
	jne	.L26
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L16
.L26:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -152[rbp], rax
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -152[rbp], rax
.L27:
	cmp	QWORD PTR -152[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR -160[rbp], rax
	jmp	.L29
.L25:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L16:
	jmp	.L29
.L32:
	call	__stack_chk_fail@PLT
.L31:
	leave
	.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	"10097.c"
	.text
	.align	2
	.global	AppendVariable
	.syntax unified
	.arm
	.fpu softvfp
	.type	AppendVariable, %function
AppendVariable:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AppendVariable, .-AppendVariable
	.align	2
	.global	FindVariable
	.syntax unified
	.arm
	.fpu softvfp
	.type	FindVariable, %function
FindVariable:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	b	.L5
.L10:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L6
.L9:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-8]
	b	.L8
.L7:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
.L5:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	FindVariable, .-FindVariable
	.section	.rodata
	.align	2
.LC0:
	.ascii	"> \000"
	.align	2
.LC1:
	.ascii	"%32s\000"
	.align	2
.LC2:
	.ascii	"DECLARE\000"
	.align	2
.LC3:
	.ascii	"Error: You must enter a scope before declaring vari"
	.ascii	"ables\000"
	.align	2
.LC4:
	.ascii	"%32s %32s\000"
	.align	2
.LC5:
	.ascii	"SET\000"
	.align	2
.LC6:
	.ascii	"Error: Cannot find variable '%s'\012\000"
	.align	2
.LC7:
	.ascii	"GET\000"
	.align	2
.LC8:
	.ascii	"ENTER\000"
	.align	2
.LC9:
	.ascii	"EXIT\000"
	.align	2
.LC10:
	.ascii	"Error: No scope to exit\000"
	.align	2
.LC11:
	.ascii	"Error: Command not recognized\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
.L29:
	ldr	r0, .L33+4
	bl	printf
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L33+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	mov	r0, #10
	bl	putchar
	nop
	mov	r3, #0
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	b	.L32
.L12:
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L33+12
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L33+16
	bl	puts
	sub	r2, fp, #72
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L33+20
	bl	__isoc99_scanf
	b	.L16
.L15:
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-84]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-84]
	ldr	r0, .L33+20
	bl	__isoc99_scanf
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-84]
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-80]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-76]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-112]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-112]
	ldr	r2, [fp, #-76]
	str	r2, [r3]
	b	.L29
.L17:
	ldr	r3, [fp, #-112]
	ldr	r3, [r3]
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	AppendVariable
	b	.L29
.L14:
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L33+24
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L33+8
	bl	__isoc99_scanf
	sub	r3, fp, #40
	ldr	r1, [fp, #-112]
	mov	r0, r3
	bl	FindVariable
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-88]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L33+8
	bl	__isoc99_scanf
	b	.L29
.L19:
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L33+28
	bl	printf
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L33+8
	bl	__isoc99_scanf
	b	.L29
.L18:
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L33+32
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L33+8
	bl	__isoc99_scanf
	sub	r3, fp, #40
	ldr	r1, [fp, #-112]
	mov	r0, r3
	bl	FindVariable
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	puts
	b	.L29
.L22:
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L33+28
	bl	printf
	b	.L29
.L21:
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L33+36
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-96]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-112]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-112]
	b	.L29
.L24:
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L33+40
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L26
	ldr	r0, .L33+44
	bl	puts
	b	.L16
.L26:
	ldr	r3, [fp, #-112]
	ldr	r3, [r3]
	str	r3, [fp, #-108]
	b	.L27
.L28:
	ldr	r3, [fp, #-108]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-108]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-108]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-100]
	ldr	r0, [fp, #-108]
	bl	free
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-108]
.L27:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-104]
	ldr	r0, [fp, #-112]
	bl	free
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-112]
	b	.L29
.L25:
	ldr	r0, .L33+48
	bl	puts
.L16:
	b	.L29
.L32:
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
