	.file	"246215.c"
	.intel_syntax noprefix
	.text
	.globl	size
	.data
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.long	5
	.globl	top
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.globl	arr
	.bss
	.align 32
	.type	arr, @object
	.size	arr, 200
arr:
	.zero	200
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	run
	.data
	.type	run, @object
	.size	run, 1
run:
	.byte	1
	.section	.rodata
.LC0:
	.string	"Enter option number"
.LC1:
	.string	"1.PUSH"
.LC2:
	.string	"2.POP"
.LC3:
	.string	"3.PEEK"
.LC4:
	.string	"4.DISPLAY"
.LC5:
	.string	"5.EXIT"
.LC6:
	.string	"%d"
.LC7:
	.string	"Enter number to push"
.LC8:
	.string	"Invalid choice"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L10:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 5
	ja	.L2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L2-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L8:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rsi, n[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR n[rip]
	mov	edi, eax
	mov	eax, 0
	call	push
	jmp	.L9
.L7:
	mov	eax, 0
	call	pop
	jmp	.L9
.L6:
	mov	eax, 0
	call	peek
	jmp	.L9
.L5:
	mov	eax, 0
	call	display
	jmp	.L9
.L3:
	mov	BYTE PTR run[rip], 0
	jmp	.L9
.L2:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	movzx	eax, BYTE PTR run[rip]
	test	al, al
	jne	.L10
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC9:
	.string	"Nothing to display"
.LC10:
	.string	"The stack is: "
.LC11:
	.string	"%d\n"
	.text
	.globl	display
	.type	display, @function
display:
.LFB1:
	.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	.L14
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L13
.L14:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, DWORD PTR top[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -4[rbp], 1
.L16:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L17
	nop
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	display, .-display
	.section	.rodata
.LC12:
	.string	"OverFlow"
	.text
	.globl	push
	.type	push, @function
push:
.LFB2:
	.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 size[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR top[rip]
	cmp	edx, eax
	jne	.L19
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L18
.L19:
	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, arr[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	nop
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	push, .-push
	.section	.rodata
.LC13:
	.string	"Nothing to show"
.LC14:
	.string	"Element on the top is : %d\n"
	.text
	.globl	peek
	.type	peek, @function
peek:
.LFB3:
	.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	.L22
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L21
.L22:
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L21:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	peek, .-peek
	.section	.rodata
.LC15:
	.string	"UnderFlow"
.LC16:
	.string	"The deleted element was: %d\n"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB4:
	.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	.L25
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L24
.L25:
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[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]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	pop, .-pop
	.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	"246215.c"
	.text
	.global	size
	.data
	.align	2
	.type	size, %object
	.size	size, 4
size:
	.word	5
	.global	top
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.comm	arr,200,4
	.comm	n,4,4
	.global	run
	.type	run, %object
	.size	run, 1
run:
	.byte	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter option number\000"
	.align	2
.LC1:
	.ascii	"1.PUSH\000"
	.align	2
.LC2:
	.ascii	"2.POP\000"
	.align	2
.LC3:
	.ascii	"3.PEEK\000"
	.align	2
.LC4:
	.ascii	"4.DISPLAY\000"
	.align	2
.LC5:
	.ascii	"5.EXIT\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"Enter number to push\000"
	.align	2
.LC8:
	.ascii	"Invalid choice\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L10:
	ldr	r0, .L13+4
	bl	puts
	ldr	r0, .L13+8
	bl	puts
	ldr	r0, .L13+12
	bl	puts
	ldr	r0, .L13+16
	bl	puts
	ldr	r0, .L13+20
	bl	puts
	ldr	r0, .L13+24
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L8:
	ldr	r0, .L13+32
	bl	puts
	ldr	r1, .L13+36
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	ldr	r3, .L13+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	push
	b	.L9
.L7:
	bl	pop
	b	.L9
.L6:
	bl	peek
	b	.L9
.L5:
	bl	display
	b	.L9
.L3:
	ldr	r3, .L13+40
	mov	r2, #0
	strb	r2, [r3]
	b	.L9
.L2:
	ldr	r0, .L13+44
	bl	printf
.L9:
	ldr	r3, .L13+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	n
	.word	run
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Nothing to display\000"
	.align	2
.LC11:
	.ascii	"The stack is: \000"
	.align	2
.LC12:
	.ascii	"%d\012\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, .L20
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L20+4
	bl	puts
	b	.L15
.L16:
	ldr	r0, .L20+8
	bl	puts
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L18
.L19:
	ldr	r2, .L20+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L20+16
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L19
	nop
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	top
	.word	.LC10
	.word	.LC11
	.word	arr
	.word	.LC12
	.size	display, .-display
	.section	.rodata
	.align	2
.LC13:
	.ascii	"OverFlow\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, .L25
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L23
	ldr	r0, .L25+8
	bl	puts
	b	.L22
.L23:
	ldr	r3, .L25+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+4
	str	r3, [r2]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r1, .L25+12
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	nop
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	size
	.word	top
	.word	.LC13
	.word	arr
	.size	push, .-push
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Nothing to show\000"
	.align	2
.LC15:
	.ascii	"Element on the top is : %d\012\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
	ldr	r3, .L30
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L30+4
	bl	puts
	pop	{fp, pc}
.L28:
	ldr	r3, .L30
	ldr	r3, [r3]
	ldr	r2, .L30+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L30+12
	bl	printf
	nop
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	top
	.word	.LC14
	.word	arr
	.word	.LC15
	.size	peek, .-peek
	.section	.rodata
	.align	2
.LC16:
	.ascii	"UnderFlow\000"
	.align	2
.LC17:
	.ascii	"The deleted element was: %d\012\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, .L35
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L35+4
	bl	puts
	b	.L32
.L33:
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r2, .L35+8
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, .L35
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L35
	str	r3, [r2]
	ldr	r1, [fp, #-8]
	ldr	r0, .L35+12
	bl	printf
	nop
.L32:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	top
	.word	.LC16
	.word	arr
	.word	.LC17
	.size	pop, .-pop
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
