	.file	"1260649.c"
	.intel_syntax noprefix
	.text
	.globl	programFile
	.bss
	.align 8
	.type	programFile, @object
	.size	programFile, 8
programFile:
	.zero	8
	.globl	memory
	.align 8
	.type	memory, @object
	.size	memory, 8
memory:
	.zero	8
	.globl	limit
	.align 8
	.type	limit, @object
	.size	limit, 8
limit:
	.zero	8
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	program
	.align 8
	.type	program, @object
	.size	program, 8
program:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Error: %s\n"
	.text
	.globl	die
	.type	die, @function
die:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	die, .-die
	.section	.rodata
.LC1:
	.string	"Cannot allocate memory"
	.text
	.globl	initialize_memory
	.type	initialize_memory, @function
initialize_memory:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR memory[rip], rax
	mov	rax, QWORD PTR memory[rip]
	test	rax, rax
	jne	.L5
	lea	rdi, .LC1[rip]
	call	die
	test	eax, eax
.L5:
	mov	rdx, QWORD PTR memory[rip]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR limit[rip], rax
	mov	rax, QWORD PTR memory[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initialize_memory, .-initialize_memory
	.globl	expand_memory
	.type	expand_memory, @function
expand_memory:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR limit[rip]
	mov	rdx, QWORD PTR memory[rip]
	sub	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR p[rip]
	mov	rdx, QWORD PTR memory[rip]
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR memory[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR memory[rip], rax
	mov	rax, QWORD PTR memory[rip]
	test	rax, rax
	jne	.L9
	lea	rdi, .LC1[rip]
	call	die
	test	eax, eax
.L9:
	mov	rdx, QWORD PTR memory[rip]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR limit[rip], rax
	mov	rdx, QWORD PTR memory[rip]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR p[rip], rax
	mov	rdx, QWORD PTR limit[rip]
	mov	rax, QWORD PTR -24[rbp]
	neg	rax
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	expand_memory, .-expand_memory
	.globl	free_list
	.type	free_list, @function
free_list:
.LFB9:
	.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
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 91
	jne	.L12
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free_list
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
.L11:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 93
	jne	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	free_list, .-free_list
	.globl	load
	.type	load, @function
load:
.LFB10:
	.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	BYTE PTR -26[rbp], 0
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L15
.L27:
	mov	rax, QWORD PTR programFile[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -25[rbp], al
	mov	rax, QWORD PTR -16[rbp]
	movzx	edx, BYTE PTR -25[rbp]
	mov	BYTE PTR [rax], dl
	mov	QWORD PTR -24[rbp], 1
	movsx	eax, BYTE PTR -25[rbp]
	cmp	eax, 93
	je	.L16
	cmp	eax, 93
	jg	.L15
	cmp	eax, 91
	je	.L18
	cmp	eax, 91
	jg	.L15
	cmp	eax, 62
	je	.L19
	cmp	eax, 62
	jg	.L15
	cmp	eax, 46
	jg	.L20
	cmp	eax, 43
	jge	.L19
	jmp	.L17
.L20:
	cmp	eax, 60
	je	.L19
	jmp	.L17
.L18:
	mov	eax, 0
	call	load
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rdx], rax
	jmp	.L21
.L16:
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L22
.L19:
	mov	rax, QWORD PTR programFile[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L23
	jmp	.L24
.L26:
	add	QWORD PTR -24[rbp], 1
.L24:
	mov	rax, QWORD PTR programFile[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L25
	mov	rax, QWORD PTR programFile[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -26[rbp], al
	movzx	eax, BYTE PTR -26[rbp]
	cmp	al, BYTE PTR -25[rbp]
	je	.L26
.L25:
	mov	rdx, QWORD PTR programFile[rip]
	movsx	eax, BYTE PTR -26[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
.L23:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L21
.L17:
	jmp	.L15
.L21:
	mov	edi, 32
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
.L15:
	mov	rax, QWORD PTR programFile[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L27
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 93
	mov	rax, QWORD PTR -8[rbp]
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	load, .-load
	.globl	run
	.type	run, @function
run:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	execute
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
.L29:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 93
	jne	.L30
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	run, .-run
	.section	.rodata
.LC2:
	.string	"Negative memory pointer"
	.text
	.globl	execute
	.type	execute, @function
execute:
.LFB12:
	.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	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 43
	cmp	eax, 48
	ja	.L51
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L34[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L34[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L34:
	.long	.L40-.L34
	.long	.L39-.L34
	.long	.L38-.L34
	.long	.L37-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L36-.L34
	.long	.L51-.L34
	.long	.L35-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L51-.L34
	.long	.L49-.L34
	.text
.L35:
	mov	rdx, QWORD PTR p[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, rdx
	mov	QWORD PTR p[rip], rax
	jmp	.L41
.L42:
	mov	edi, 1024
	call	expand_memory
.L41:
	mov	rdx, QWORD PTR p[rip]
	mov	rax, QWORD PTR limit[rip]
	cmp	rdx, rax
	jnb	.L42
	jmp	.L31
.L36:
	mov	rdx, QWORD PTR p[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	neg	rax
	add	rdx, rax
	mov	rax, QWORD PTR memory[rip]
	cmp	rdx, rax
	jnb	.L44
	lea	rdi, .LC2[rip]
	call	die
.L44:
	mov	rdx, QWORD PTR p[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	neg	rax
	add	rax, rdx
	mov	QWORD PTR p[rip], rax
	jmp	.L31
.L40:
	mov	rax, QWORD PTR p[rip]
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	edx, eax
	mov	rax, QWORD PTR p[rip]
	mov	BYTE PTR [rax], dl
	jmp	.L31
.L38:
	mov	rax, QWORD PTR p[rip]
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	sub	edx, eax
	mov	rax, QWORD PTR p[rip]
	mov	BYTE PTR [rax], dl
	jmp	.L31
.L37:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L45
.L46:
	mov	rax, QWORD PTR p[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	QWORD PTR -8[rbp], 1
.L45:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -8[rbp], rax
	jl	.L46
	jmp	.L31
.L39:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L47
.L48:
	call	getchar@PLT
	mov	edx, eax
	mov	rax, QWORD PTR p[rip]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -8[rbp], 1
.L47:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -8[rbp], rax
	jl	.L48
	jmp	.L31
.L50:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	run
.L49:
	mov	rax, QWORD PTR p[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L50
	jmp	.L31
.L51:
	nop
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	execute, .-execute
	.section	.rodata
.LC3:
	.string	"usage: %s file\n"
.LC4:
	.string	"r"
.LC5:
	.string	"Error: Cannot open file: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jne	.L53
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L53:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR programFile[rip], rax
	mov	rax, QWORD PTR programFile[rip]
	test	rax, rax
	jne	.L54
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L54:
	mov	edi, 1024
	call	initialize_memory
	mov	rax, QWORD PTR memory[rip]
	mov	QWORD PTR p[rip], rax
	mov	eax, 0
	call	load
	mov	QWORD PTR program[rip], rax
	mov	rax, QWORD PTR program[rip]
	mov	rdi, rax
	call	run
	mov	rax, QWORD PTR program[rip]
	mov	rdi, rax
	call	free_list
	mov	rax, QWORD PTR memory[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR programFile[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE13:
	.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	"1260649.c"
	.text
	.comm	programFile,4,4
	.comm	memory,4,4
	.comm	limit,4,4
	.comm	p,4,4
	.comm	program,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: %s\012\000"
	.text
	.align	2
	.global	die
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	die, .-die
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Cannot allocate memory\000"
	.text
	.align	2
	.global	initialize_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize_memory, %function
initialize_memory:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L8
	str	r2, [r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L8+4
	bl	die
	mov	r3, r0
	cmp	r3, #0
.L7:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L8+8
	str	r3, [r2]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	mov	r1, #0
	mov	r0, r3
	bl	memset
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	memory
	.word	.LC1
	.word	limit
	.size	initialize_memory, .-initialize_memory
	.align	2
	.global	expand_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	expand_memory, %function
expand_memory:
	@ 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]
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, .L14+8
	ldr	r2, [r3]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L14+4
	str	r3, [r2]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L14+12
	bl	die
	mov	r3, r0
	cmp	r3, #0
.L13:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L14
	str	r3, [r2]
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L14+8
	str	r3, [r2]
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #0
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	memset
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	limit
	.word	memory
	.word	p
	.word	.LC1
	.size	expand_memory, .-expand_memory
	.align	2
	.global	free_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_list, %function
free_list:
	@ 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]
	b	.L17
.L19:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L18
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free_list
.L18:
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L17:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L19
	ldr	r0, [fp, #-16]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_list, .-free_list
	.align	2
	.global	load
	.syntax unified
	.arm
	.fpu softvfp
	.type	load, %function
load:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	strb	r3, [fp, #-18]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L21
.L32:
	ldr	r3, .L33
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-12]
	ldrb	r2, [fp, #-17]
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-16]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #93
	beq	.L22
	cmp	r3, #93
	bgt	.L21
	cmp	r3, #62
	bgt	.L24
	cmp	r3, #43
	blt	.L21
	sub	r3, r3, #43
	mov	r2, #1
	lsl	r2, r2, r3
	ldr	r3, .L33+4
	and	r3, r3, r2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L25
	b	.L21
.L24:
	cmp	r3, #91
	bne	.L21
	bl	load
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
	b	.L26
.L22:
	ldr	r3, [fp, #-8]
	b	.L27
.L25:
	ldr	r3, .L33
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	b	.L29
.L31:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L29:
	ldr	r3, .L33
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, .L33
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-18]
	ldrb	r2, [fp, #-18]	@ zero_extendqisi2
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L31
.L30:
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	ldr	r2, .L33
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	ungetc
.L28:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
.L26:
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
.L21:
	ldr	r3, .L33
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-12]
	mov	r2, #93
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	programFile
	.word	655375
	.size	load, .-load
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	b	.L36
.L37:
	ldr	r0, [fp, #-8]
	bl	execute
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
.L36:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L37
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	run, .-run
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Negative memory pointer\000"
	.text
	.align	2
	.global	execute
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute, %function
execute:
	@ 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]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #43
	cmp	r3, #48
	ldrls	pc, [pc, r3, asl #2]
	b	.L58
.L41:
	.word	.L47
	.word	.L46
	.word	.L45
	.word	.L44
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L43
	.word	.L58
	.word	.L42
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L58
	.word	.L56
.L42:
	ldr	r3, .L59
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #4]
	add	r3, r3, r2
	ldr	r2, .L59
	str	r3, [r2]
	b	.L48
.L49:
	mov	r0, #1024
	bl	expand_memory
.L48:
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, .L59+4
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L49
	b	.L38
.L43:
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	rsb	r3, r3, #0
	add	r2, r2, r3
	ldr	r3, .L59+8
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L51
	ldr	r0, .L59+12
	bl	die
.L51:
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	rsb	r3, r3, #0
	add	r3, r2, r3
	ldr	r2, .L59
	str	r3, [r2]
	b	.L38
.L47:
	ldr	r3, .L59
	ldr	r3, [r3]
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	and	r2, r3, #255
	ldr	r3, .L59
	ldr	r3, [r3]
	add	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L38
.L45:
	ldr	r3, .L59
	ldr	r3, [r3]
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	and	r2, r3, #255
	ldr	r3, .L59
	ldr	r3, [r3]
	sub	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L38
.L44:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L52
.L53:
	ldr	r3, .L59
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L52:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L53
	b	.L38
.L46:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L54
.L55:
	bl	getchar
	mov	r2, r0
	ldr	r3, .L59
	ldr	r3, [r3]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L54:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L55
	b	.L38
.L57:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	run
.L56:
	ldr	r3, .L59
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L57
	b	.L38
.L58:
	nop
.L38:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	p
	.word	limit
	.word	memory
	.word	.LC2
	.size	execute, .-execute
	.section	.rodata
	.align	2
.LC3:
	.ascii	"usage: %s file\012\000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"Error: Cannot open file: %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L62
	ldr	r3, .L64
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L64+4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L62:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L64+8
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L64+12
	str	r3, [r2]
	ldr	r3, .L64+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L63
	ldr	r3, .L64
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L64+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L63:
	mov	r0, #1024
	bl	initialize_memory
	ldr	r3, .L64+20
	ldr	r3, [r3]
	ldr	r2, .L64+24
	str	r3, [r2]
	bl	load
	mov	r3, r0
	ldr	r2, .L64+28
	str	r3, [r2]
	ldr	r3, .L64+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	run
	ldr	r3, .L64+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	free_list
	ldr	r3, .L64+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L64+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	mov	r0, #0
	bl	exit
.L65:
	.align	2
.L64:
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	programFile
	.word	.LC5
	.word	memory
	.word	p
	.word	program
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
