	.file	"688059.c"
	.intel_syntax noprefix
	.text
	.globl	MAXSIZE
	.data
	.align 4
	.type	MAXSIZE, @object
	.size	MAXSIZE, 4
MAXSIZE:
	.long	256
	.globl	stack
	.bss
	.align 32
	.type	stack, @object
	.size	stack, 1024
stack:
	.zero	1024
	.globl	top
	.data
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.text
	.globl	isempty
	.type	isempty, @function
isempty:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR top[rip]
	cmp	eax, -1
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	isempty, .-isempty
	.globl	isfull
	.type	isfull, @function
isfull:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, DWORD PTR top[rip]
	mov	eax, DWORD PTR MAXSIZE[rip]
	cmp	edx, eax
	jne	.L5
	mov	eax, 1
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	isfull, .-isfull
	.globl	peek
	.type	peek, @function
peek:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	peek, .-peek
	.section	.rodata
	.align 8
.LC0:
	.string	"Could not retrieve data, Stack is empty."
	.text
	.globl	pop
	.type	pop, @function
pop:
.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, 16
	mov	eax, 0
	call	isempty
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L11
.L10:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	pop, .-pop
	.section	.rodata
	.align 8
.LC1:
	.string	"Could not insert data, Stack is full."
	.text
	.globl	push
	.type	push, @function
push:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, 0
	call	isfull
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, stack[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L15
.L13:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	push, .-push
	.globl	add
	.type	add, @function
add:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	add, .-add
	.globl	subtract
	.type	subtract, @function
subtract:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	subtract, .-subtract
	.globl	multiply
	.type	multiply, @function
multiply:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	multiply, .-multiply
	.globl	divide
	.type	divide, @function
divide:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	divide, .-divide
	.globl	contains_arithmetic_operator
	.type	contains_arithmetic_operator, @function
contains_arithmetic_operator:
.LFB15:
	.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	esi, 43
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 45
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 42
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	je	.L26
.L25:
	mov	eax, 1
	jmp	.L27
.L26:
	mov	eax, 0
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	contains_arithmetic_operator, .-contains_arithmetic_operator
	.globl	getLeftDigits
	.type	getLeftDigits, @function
getLeftDigits:
.LFB16:
	.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 -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L29
.L30:
	add	DWORD PTR -4[rbp], 1
.L29:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L30
	jmp	.L31
.L33:
	add	DWORD PTR -4[rbp], 1
.L31:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L32
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jle	.L33
.L32:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	getLeftDigits, .-getLeftDigits
	.globl	getRightDigits
	.type	getRightDigits, @function
getRightDigits:
.LFB17:
	.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 -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L36
.L37:
	add	DWORD PTR -4[rbp], 1
.L36:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L37
	jmp	.L38
.L40:
	add	DWORD PTR -4[rbp], 1
.L38:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L39
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jle	.L40
.L39:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	getRightDigits, .-getRightDigits
	.globl	arithmetic_command
	.type	arithmetic_command, @function
arithmetic_command:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 43
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L43
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getRightDigits
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getLeftDigits
	cdqe
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	esi, ebx
	mov	edi, eax
	call	add
	mov	edi, eax
	call	push
.L43:
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 45
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L44
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getRightDigits
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getLeftDigits
	cdqe
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	esi, ebx
	mov	edi, eax
	call	subtract
	mov	edi, eax
	call	push
.L44:
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 42
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L45
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getRightDigits
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getLeftDigits
	cdqe
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	esi, ebx
	mov	edi, eax
	call	multiply
	mov	edi, eax
	call	push
.L45:
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L47
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getRightDigits
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getLeftDigits
	cdqe
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	esi, ebx
	mov	edi, eax
	call	divide
	mov	edi, eax
	call	push
.L47:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	arithmetic_command, .-arithmetic_command
	.section	.rodata
.LC2:
	.string	"printd"
.LC3:
	.string	"%d\n"
	.text
	.globl	interpret_command
	.type	interpret_command, @function
interpret_command:
.LFB19:
	.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	contains_arithmetic_operator
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	arithmetic_command
.L49:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L51
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L51:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	interpret_command, .-interpret_command
	.section	.rodata
.LC4:
	.string	"r"
.LC5:
	.string	"%s no such file.\n"
	.text
	.globl	read_file
	.type	read_file, @function
read_file:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 128
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L54
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L55:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	interpret_command
.L54:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, -24[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	cmp	rax, -1
	jne	.L55
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	read_file, .-read_file
	.section	.rodata
.LC6:
	.string	"usage: %s <file>\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB21:
	.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
	jg	.L58
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L58:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	read_file
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.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	"688059.c"
	.text
	.global	MAXSIZE
	.data
	.align	2
	.type	MAXSIZE, %object
	.size	MAXSIZE, 4
MAXSIZE:
	.word	256
	.global	stack
	.bss
	.align	2
	.type	stack, %object
	.size	stack, 1024
stack:
	.space	1024
	.global	top
	.data
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.text
	.align	2
	.global	isempty
	.syntax unified
	.arm
	.fpu softvfp
	.type	isempty, %function
isempty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	top
	.size	isempty, .-isempty
	.align	2
	.global	isfull
	.syntax unified
	.arm
	.fpu softvfp
	.type	isfull, %function
isfull:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L7
	mov	r3, #1
	b	.L8
.L7:
	mov	r3, #0
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	top
	.word	MAXSIZE
	.size	isfull, .-isfull
	.align	2
	.global	peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	peek, %function
peek:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, .L13+4
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L14:
	.align	2
.L13:
	.word	top
	.word	stack
	.size	peek, .-peek
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Could not retrieve data, Stack is empty.\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	isempty
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r2, .L18+4
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, .L18
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L18
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	b	.L17
.L16:
	ldr	r0, .L18+8
	bl	puts
	mvn	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	top
	.word	stack
	.word	.LC0
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Could not insert data, Stack is full.\000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ 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]
	bl	isfull
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L24
	str	r3, [r2]
	ldr	r3, .L24
	ldr	r3, [r3]
	ldr	r1, .L24+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	b	.L23
.L21:
	ldr	r0, .L24+8
	bl	puts
.L23:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	top
	.word	stack
	.word	.LC1
	.size	push, .-push
	.align	2
	.global	add
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ 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]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	add, .-add
	.align	2
	.global	subtract
	.syntax unified
	.arm
	.fpu softvfp
	.type	subtract, %function
subtract:
	@ 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]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	subtract, .-subtract
	.align	2
	.global	multiply
	.syntax unified
	.arm
	.fpu softvfp
	.type	multiply, %function
multiply:
	@ 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]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	multiply, .-multiply
	.global	__aeabi_idiv
	.align	2
	.global	divide
	.syntax unified
	.arm
	.fpu softvfp
	.type	divide, %function
divide:
	@ 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	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	divide, .-divide
	.align	2
	.global	contains_arithmetic_operator
	.syntax unified
	.arm
	.fpu softvfp
	.type	contains_arithmetic_operator, %function
contains_arithmetic_operator:
	@ 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]
	mov	r1, #43
	ldr	r0, [fp, #-8]
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	mov	r1, #45
	ldr	r0, [fp, #-8]
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	mov	r1, #42
	ldr	r0, [fp, #-8]
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	mov	r1, #47
	ldr	r0, [fp, #-8]
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
.L35:
	mov	r3, #1
	b	.L37
.L36:
	mov	r3, #0
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	contains_arithmetic_operator, .-contains_arithmetic_operator
	.align	2
	.global	getLeftDigits
	.syntax unified
	.arm
	.fpu softvfp
	.type	getLeftDigits, %function
getLeftDigits:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L39
.L40:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L39:
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L40
	b	.L41
.L43:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L42
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L43
.L42:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getLeftDigits, .-getLeftDigits
	.align	2
	.global	getRightDigits
	.syntax unified
	.arm
	.fpu softvfp
	.type	getRightDigits, %function
getRightDigits:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L46
.L47:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L46:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L47
	b	.L48
.L50:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L48:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L49
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L50
.L49:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getRightDigits, .-getRightDigits
	.align	2
	.global	arithmetic_command
	.syntax unified
	.arm
	.fpu softvfp
	.type	arithmetic_command, %function
arithmetic_command:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	mov	r1, #43
	ldr	r0, [fp, #-24]
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L53
	ldr	r0, [fp, #-16]
	bl	getLeftDigits
	mov	r3, r0
	rsb	r3, r3, #0
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r4, r0
	ldr	r0, [fp, #-16]
	bl	getRightDigits
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	add
	mov	r3, r0
	mov	r0, r3
	bl	push
.L53:
	mov	r1, #45
	ldr	r0, [fp, #-24]
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L54
	ldr	r0, [fp, #-16]
	bl	getLeftDigits
	mov	r3, r0
	rsb	r3, r3, #0
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r4, r0
	ldr	r0, [fp, #-16]
	bl	getRightDigits
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	subtract
	mov	r3, r0
	mov	r0, r3
	bl	push
.L54:
	mov	r1, #42
	ldr	r0, [fp, #-24]
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L55
	ldr	r0, [fp, #-16]
	bl	getLeftDigits
	mov	r3, r0
	rsb	r3, r3, #0
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r4, r0
	ldr	r0, [fp, #-16]
	bl	getRightDigits
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	multiply
	mov	r3, r0
	mov	r0, r3
	bl	push
.L55:
	mov	r1, #47
	ldr	r0, [fp, #-24]
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L57
	ldr	r0, [fp, #-16]
	bl	getLeftDigits
	mov	r3, r0
	rsb	r3, r3, #0
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r4, r0
	ldr	r0, [fp, #-16]
	bl	getRightDigits
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	divide
	mov	r3, r0
	mov	r0, r3
	bl	push
.L57:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	arithmetic_command, .-arithmetic_command
	.section	.rodata
	.align	2
.LC2:
	.ascii	"printd\000"
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	interpret_command
	.syntax unified
	.arm
	.fpu softvfp
	.type	interpret_command, %function
interpret_command:
	@ 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	contains_arithmetic_operator
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	ldr	r0, [fp, #-8]
	bl	arithmetic_command
.L59:
	ldr	r1, .L62
	ldr	r0, [fp, #-8]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L62+4
	bl	printf
.L61:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC2
	.word	.LC3
	.size	interpret_command, .-interpret_command
	.section	.rodata
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"%s no such file.\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_file, %function
read_file:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L69+4
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-12]
	mov	r0, #128
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L66
	ldr	r1, [fp, #-24]
	ldr	r0, .L69+8
	bl	printf
	mov	r0, #1
	bl	exit
.L67:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	interpret_command
.L66:
	sub	r1, fp, #16
	sub	r3, fp, #20
	ldr	r2, [fp, #-12]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmn	r3, #1
	bne	.L67
	ldr	r0, [fp, #-12]
	bl	fclose
	nop
	ldr	r3, .L69
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.size	read_file, .-read_file
	.section	.rodata
	.align	2
.LC7:
	.ascii	"usage: %s <file>\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
	bgt	.L72
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L74
	bl	printf
	mov	r0, #1
	bl	exit
.L72:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	read_file
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
