	.file	"110641.c"
	.intel_syntax noprefix
	.text
	.globl	top
	.data
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.globl	max
	.bss
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.zero	4
	.globl	stack
	.align 32
	.type	stack, @object
	.size	stack, 200
stack:
	.zero	200
	.section	.rodata
.LC0:
	.string	"\n Stack Overflow "
.LC1:
	.string	"\n Element Pushed"
	.text
	.globl	push
	.type	push, @function
push:
.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR max[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR top[rip]
	cmp	edx, eax
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L4
.L2:
	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
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	push, .-push
	.section	.rodata
.LC2:
	.string	"\n Stack Underflow "
	.text
	.globl	pop
	.type	pop, @function
pop:
.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	eax, DWORD PTR top[rip]
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L5
.L6:
	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]
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pop, .-pop
	.section	.rodata
.LC3:
	.string	"\n Stack Empty."
.LC4:
	.string	"\n %d"
	.text
	.globl	display
	.type	display, @function
display:
.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, 16
	mov	eax, DWORD PTR top[rip]
	cmp	eax, -1
	jne	.L10
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L10:
	mov	eax, DWORD PTR top[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -4[rbp], 1
.L12:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L13
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display, .-display
	.section	.rodata
.LC5:
	.string	"\n Enter Max Size: "
.LC6:
	.string	"%d"
.LC7:
	.string	"\n 1. Push"
.LC8:
	.string	"\n 2. Pop"
.LC9:
	.string	"\n 3. Display"
.LC10:
	.string	"\n 4. Exit"
.LC11:
	.string	"\n Enter choice: "
.LC12:
	.string	"\n Enter Element: "
.LC13:
	.string	"\n Calling pop function ... "
.LC14:
	.string	"\n Popped: %d"
.LC15:
	.string	"\n Calling display function..."
.LC16:
	.string	"\n Choose another option"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, max[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L22:
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 4
	je	.L16
	cmp	eax, 4
	jg	.L17
	cmp	eax, 3
	je	.L18
	cmp	eax, 3
	jg	.L17
	cmp	eax, 1
	je	.L19
	cmp	eax, 2
	je	.L20
	jmp	.L17
.L19:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	push
	jmp	.L21
.L20:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pop
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L18:
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	display
	jmp	.L21
.L16:
	mov	edi, 0
	call	exit@PLT
.L17:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	jmp	.L22
	.cfi_endproc
.LFE9:
	.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	"110641.c"
	.text
	.global	top
	.data
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.comm	max,4,4
	.comm	stack,200,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 Stack Overflow \000"
	.align	2
.LC1:
	.ascii	"\012 Element Pushed\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]
	ldr	r3, .L5
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r0, .L5+8
	bl	puts
	b	.L4
.L2:
	ldr	r3, .L5+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L5+4
	str	r3, [r2]
	ldr	r3, .L5+4
	ldr	r3, [r3]
	ldr	r1, .L5+12
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r0, .L5+16
	bl	printf
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	max
	.word	top
	.word	.LC0
	.word	stack
	.word	.LC1
	.size	push, .-push
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012 Stack Underflow \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
	ldr	r3, .L11
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L11+4
	bl	puts
	b	.L7
.L8:
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+8
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, .L11
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L11
	str	r3, [r2]
	ldr	r3, [fp, #-8]
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	top
	.word	.LC2
	.word	stack
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012 Stack Empty.\000"
	.align	2
.LC4:
	.ascii	"\012 %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
	ldr	r3, .L19
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L19+4
	bl	printf
	b	.L18
.L14:
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L16
.L17:
	ldr	r2, .L19+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L19+12
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L17
.L18:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	top
	.word	.LC3
	.word	stack
	.word	.LC4
	.size	display, .-display
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012 Enter Max Size: \000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"\012 1. Push\000"
	.align	2
.LC8:
	.ascii	"\012 2. Pop\000"
	.align	2
.LC9:
	.ascii	"\012 3. Display\000"
	.align	2
.LC10:
	.ascii	"\012 4. Exit\000"
	.align	2
.LC11:
	.ascii	"\012 Enter choice: \000"
	.align	2
.LC12:
	.ascii	"\012 Enter Element: \000"
	.align	2
.LC13:
	.ascii	"\012 Calling pop function ... \000"
	.align	2
.LC14:
	.ascii	"\012 Popped: %d\000"
	.align	2
.LC15:
	.ascii	"\012 Calling display function...\000"
	.align	2
.LC16:
	.ascii	"\012 Choose another option\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L31+4
	bl	printf
	ldr	r1, .L31+8
	ldr	r0, .L31+12
	bl	__isoc99_scanf
.L29:
	mov	r0, #10
	bl	putchar
	ldr	r0, .L31+16
	bl	printf
	ldr	r0, .L31+20
	bl	printf
	ldr	r0, .L31+24
	bl	printf
	ldr	r0, .L31+28
	bl	printf
	ldr	r0, .L31+32
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L31+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L22
.L24:
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L23
.L27:
	ldr	r0, .L31+36
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L31+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	push
	b	.L28
.L26:
	ldr	r0, .L31+40
	bl	printf
	bl	pop
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L31+44
	bl	printf
	b	.L28
.L25:
	ldr	r0, .L31+48
	bl	printf
	bl	display
	b	.L28
.L23:
	mov	r0, #0
	bl	exit
.L22:
	ldr	r0, .L31+52
	bl	printf
.L28:
	b	.L29
.L32:
	.align	2
.L31:
	.word	.LC17
	.word	.LC5
	.word	max
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
