	.file	"504190.c"
	.intel_syntax noprefix
	.text
	.globl	stack
	.bss
	.align 32
	.type	stack, @object
	.size	stack, 100
stack:
	.zero	100
	.globl	top
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Enter an expression: "
.LC1:
	.string	"Invalid expression..."
.LC2:
	.string	"Valid expression..."
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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, 136
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	Stack_Init
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -128[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	mov	DWORD PTR -132[rbp], 0
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	isLeftParanthesis
	test	al, al
	je	.L3
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	push
.L3:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	isRightParanthesis
	test	al, al
	je	.L4
	call	pop
	mov	BYTE PTR -133[rbp], al
	cmp	BYTE PTR -133[rbp], -1
	je	.L5
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	ebx, BYTE PTR -128[rbp+rax]
	movsx	eax, BYTE PTR -133[rbp]
	mov	edi, eax
	call	matchingRight
	cmp	bl, al
	je	.L4
.L5:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L10
.L4:
	add	DWORD PTR -132[rbp], 1
.L2:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	test	al, al
	jne	.L7
	call	isEmpty
	test	al, al
	je	.L8
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L9
.L8:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L9:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	matchingRight
	.type	matchingRight, @function
matchingRight:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	cmp	eax, 123
	je	.L13
	cmp	eax, 123
	jg	.L14
	cmp	eax, 40
	je	.L15
	cmp	eax, 91
	je	.L16
	jmp	.L14
.L13:
	mov	eax, 125
	jmp	.L17
.L15:
	mov	eax, 41
	jmp	.L17
.L16:
	mov	eax, 93
	jmp	.L17
.L14:
	mov	eax, 73
.L17:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	matchingRight, .-matchingRight
	.globl	isLeftParanthesis
	.type	isLeftParanthesis, @function
isLeftParanthesis:
.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, edi
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	cmp	eax, 123
	je	.L19
	cmp	eax, 123
	jg	.L20
	cmp	eax, 40
	je	.L19
	cmp	eax, 91
	jne	.L20
.L19:
	mov	eax, 1
	jmp	.L21
.L20:
	mov	eax, 0
.L21:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	isLeftParanthesis, .-isLeftParanthesis
	.globl	isRightParanthesis
	.type	isRightParanthesis, @function
isRightParanthesis:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	cmp	eax, 125
	je	.L23
	cmp	eax, 125
	jg	.L24
	cmp	eax, 41
	je	.L23
	cmp	eax, 93
	jne	.L24
.L23:
	mov	eax, 1
	jmp	.L25
.L24:
	mov	eax, 0
.L25:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	isRightParanthesis, .-isRightParanthesis
	.globl	Stack_Init
	.type	Stack_Init, @function
Stack_Init:
.LFB10:
	.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 top[rip], -1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Stack_Init, .-Stack_Init
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB11:
	.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
	sete	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	isEmpty, .-isEmpty
	.globl	isFull
	.type	isFull, @function
isFull:
.LFB12:
	.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, 99
	sete	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	isFull, .-isFull
	.globl	size
	.type	size, @function
size:
.LFB13:
	.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]
	add	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	size, .-size
	.section	.rodata
.LC3:
	.string	"Empty Stack"
	.text
	.globl	peek
	.type	peek, @function
peek:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	isEmpty
	test	al, al
	je	.L34
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L35
.L34:
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
.L35:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	peek, .-peek
	.section	.rodata
.LC4:
	.string	"Stack is Full"
	.text
	.globl	push
	.type	push, @function
push:
.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	eax, edi
	mov	BYTE PTR -4[rbp], al
	call	isFull
	test	al, al
	je	.L37
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L36
.L37:
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rcx, stack[rip]
	movzx	edx, BYTE PTR -4[rbp]
	mov	BYTE PTR [rax+rcx], dl
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	push, .-push
	.section	.rodata
.LC5:
	.string	"Stack is Empty"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	isEmpty
	test	al, al
	je	.L40
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L41
.L40:
	mov	eax, DWORD PTR top[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR top[rip], edx
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
.L41:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	pop, .-pop
	.section	.rodata
.LC6:
	.string	"%d --> "
	.text
	.globl	display
	.type	display, @function
display:
.LFB17:
	.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
	call	isEmpty
	test	al, al
	je	.L43
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L42
.L43:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L45
.L46:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L45:
	mov	eax, DWORD PTR top[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L46
	mov	edi, 10
	call	putchar@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	display, .-display
	.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	"504190.c"
	.text
	.comm	stack,100,4
	.comm	top,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter an expression: \000"
	.align	2
.LC1:
	.ascii	"Invalid expression...\000"
	.align	2
.LC2:
	.ascii	"Valid expression...\000"
	.align	2
.LC3:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #116
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	Stack_Init
	ldr	r0, .L11+4
	bl	printf
	ldr	r3, .L11+8
	ldr	r2, [r3]
	sub	r3, fp, #116
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L2
.L6:
	sub	r2, fp, #116
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	isLeftParanthesis
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	sub	r2, fp, #116
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	push
.L3:
	sub	r2, fp, #116
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	isRightParanthesis
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	bl	pop
	mov	r3, r0
	strb	r3, [fp, #-121]
	sub	r2, fp, #116
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r4, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	mov	r0, r3
	bl	matchingRight
	mov	r3, r0
	cmp	r4, r3
	beq	.L4
	ldr	r0, .L11+12
	bl	puts
	mov	r3, #0
	b	.L9
.L4:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L2:
	sub	r2, fp, #116
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L11+16
	bl	puts
	b	.L8
.L7:
	ldr	r0, .L11+12
	bl	puts
.L8:
	mov	r0, #10
	bl	putchar
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	matchingRight
	.syntax unified
	.arm
	.fpu softvfp
	.type	matchingRight, %function
matchingRight:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #123
	beq	.L14
	cmp	r3, #123
	bgt	.L15
	cmp	r3, #40
	beq	.L16
	cmp	r3, #91
	beq	.L17
	b	.L15
.L14:
	mov	r3, #125
	b	.L18
.L16:
	mov	r3, #41
	b	.L18
.L17:
	mov	r3, #93
	b	.L18
.L15:
	mov	r3, #73
.L18:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	matchingRight, .-matchingRight
	.align	2
	.global	isLeftParanthesis
	.syntax unified
	.arm
	.fpu softvfp
	.type	isLeftParanthesis, %function
isLeftParanthesis:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #123
	beq	.L20
	cmp	r3, #123
	bgt	.L21
	cmp	r3, #40
	beq	.L20
	cmp	r3, #91
	bne	.L21
.L20:
	mov	r3, #1
	b	.L22
.L21:
	mov	r3, #0
.L22:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isLeftParanthesis, .-isLeftParanthesis
	.align	2
	.global	isRightParanthesis
	.syntax unified
	.arm
	.fpu softvfp
	.type	isRightParanthesis, %function
isRightParanthesis:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #125
	beq	.L24
	cmp	r3, #125
	bgt	.L25
	cmp	r3, #41
	beq	.L24
	cmp	r3, #93
	bne	.L25
.L24:
	mov	r3, #1
	b	.L26
.L25:
	mov	r3, #0
.L26:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isRightParanthesis, .-isRightParanthesis
	.align	2
	.global	Stack_Init
	.syntax unified
	.arm
	.fpu softvfp
	.type	Stack_Init, %function
Stack_Init:
	@ 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, .L28
	mvn	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L29:
	.align	2
.L28:
	.word	top
	.size	Stack_Init, .-Stack_Init
	.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, .L32
	ldr	r3, [r3]
	cmn	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L33:
	.align	2
.L32:
	.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, .L36
	ldr	r3, [r3]
	cmp	r3, #99
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L37:
	.align	2
.L36:
	.word	top
	.size	isFull, .-isFull
	.align	2
	.global	size
	.syntax unified
	.arm
	.fpu softvfp
	.type	size, %function
size:
	@ 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, .L40
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L41:
	.align	2
.L40:
	.word	top
	.size	size, .-size
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Empty Stack\000"
	.text
	.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
	push	{fp, lr}
	add	fp, sp, #4
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r0, .L45
	bl	puts
	mov	r3, #255
	b	.L44
.L43:
	ldr	r3, .L45+4
	ldr	r3, [r3]
	ldr	r2, .L45+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
.L44:
	mov	r0, r3
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC4
	.word	top
	.word	stack
	.size	peek, .-peek
	.section	.rodata
	.align	2
.LC5:
	.ascii	"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
	mov	r3, r0
	strb	r3, [fp, #-5]
	bl	isFull
	mov	r3, r0
	cmp	r3, #0
	beq	.L48
	ldr	r0, .L50
	bl	puts
	b	.L47
.L48:
	ldr	r3, .L50+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+4
	str	r3, [r2]
	ldr	r3, .L50+4
	ldr	r3, [r3]
	ldr	r1, .L50+8
	ldrb	r2, [fp, #-5]
	strb	r2, [r1, r3]
.L47:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC5
	.word	top
	.word	stack
	.size	push, .-push
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Stack is Empty\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r0, .L55
	bl	puts
	mov	r3, #255
	b	.L54
.L53:
	ldr	r3, .L55+4
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L55+4
	str	r2, [r1]
	ldr	r2, .L55+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
.L54:
	mov	r0, r3
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC6
	.word	top
	.word	stack
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%d --> \000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ 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
	beq	.L58
	ldr	r0, .L62
	bl	puts
	b	.L57
.L58:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L60
.L61:
	ldr	r2, .L62+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L62+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L60:
	ldr	r3, .L62+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L61
	mov	r0, #10
	bl	putchar
.L57:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC6
	.word	stack
	.word	.LC7
	.word	top
	.size	display, .-display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
