	.file	"151528.c"
	.intel_syntax noprefix
	.text
	.globl	top
	.bss
	.align 8
	.type	top, @object
	.size	top, 8
top:
	.zero	8
	.globl	ptr
	.align 8
	.type	ptr, @object
	.size	ptr, 8
ptr:
	.zero	8
	.globl	temp
	.align 8
	.type	temp, @object
	.size	temp, 8
temp:
	.zero	8
	.text
	.globl	newnode
	.type	newnode, @function
newnode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 16
	call	malloc@PLT
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	newnode, .-newnode
	.globl	delnode
	.type	delnode, @function
delnode:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	delnode, .-delnode
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"\n----------Stack operations-----------"
.LC1:
	.string	"\n 1. PUSH "
.LC2:
	.string	"\n 2. POP "
.LC3:
	.string	"\n 3. PEEK "
.LC4:
	.string	"\n 4. DISPLAY "
.LC5:
	.string	"\n 5. EXIT "
	.align 8
.LC6:
	.string	"\n---------------------------------------"
.LC7:
	.string	"\n Enter your choice "
.LC8:
	.string	"%d"
.LC9:
	.string	"**OVERFLOW**"
.LC10:
	.string	"\n Enter Element to Push : "
.LC11:
	.string	"**UNDERFLOW**"
.LC12:
	.string	"\n Popped Element is : %d "
.LC13:
	.string	"\n Topmost Element is : %d "
.LC14:
	.string	"\n Exiting......"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L14:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 5
	ja	.L5
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L7[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L7[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L5-.L7
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
.L11:
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 5
	jne	.L12
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L12:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	push
	jmp	.L5
.L10:
	mov	rax, QWORD PTR top[rip]
	test	rax, rax
	jne	.L13
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L13:
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L9:
	mov	eax, 0
	call	peek
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L8:
	mov	eax, 0
	call	display
	jmp	.L5
.L6:
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L5:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 5
	jne	.L14
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.globl	push
	.type	push, @function
push:
.LFB3:
	.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	newnode
	mov	QWORD PTR temp[rip], rax
	mov	rax, QWORD PTR temp[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR temp[rip]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR top[rip]
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR temp[rip]
	mov	QWORD PTR top[rip], rax
	jmp	.L19
.L18:
	mov	rax, QWORD PTR temp[rip]
	mov	rdx, QWORD PTR top[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR temp[rip]
	mov	QWORD PTR top[rip], rax
.L19:
	mov	eax, DWORD PTR c[rip]
	add	eax, 1
	mov	DWORD PTR c[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	push, .-push
	.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	rax, QWORD PTR top[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR ptr[rip], rax
	mov	rax, QWORD PTR top[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR top[rip], rax
	mov	rax, QWORD PTR ptr[rip]
	mov	rdi, rax
	call	delnode
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	pop, .-pop
	.section	.rodata
.LC15:
	.string	"Stack is empty"
.LC16:
	.string	"%d "
	.text
	.globl	display
	.type	display, @function
display:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR ptr[rip], rax
	mov	rax, QWORD PTR ptr[rip]
	test	rax, rax
	jne	.L25
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L26:
	mov	rax, QWORD PTR ptr[rip]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR ptr[rip], rax
.L25:
	mov	rax, QWORD PTR ptr[rip]
	test	rax, rax
	jne	.L26
.L22:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	display, .-display
	.section	.rodata
.LC17:
	.string	"**EMPTY STACK**"
	.text
	.globl	peek
	.type	peek, @function
peek:
.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	rax, QWORD PTR top[rip]
	test	rax, rax
	jne	.L28
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L29
.L28:
	mov	rax, QWORD PTR top[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	peek, .-peek
	.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	"151528.c"
	.text
	.global	top
	.bss
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.space	4
	.comm	ptr,4,4
	.comm	temp,4,4
	.text
	.align	2
	.global	newnode
	.syntax unified
	.arm
	.fpu softvfp
	.type	newnode, %function
newnode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
	.size	newnode, .-newnode
	.align	2
	.global	delnode
	.syntax unified
	.arm
	.fpu softvfp
	.type	delnode, %function
delnode:
	@ 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, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	delnode, .-delnode
	.global	c
	.bss
	.align	2
	.type	c, %object
	.size	c, 4
c:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012----------Stack operations-----------\000"
	.align	2
.LC1:
	.ascii	"\012 1. PUSH \000"
	.align	2
.LC2:
	.ascii	"\012 2. POP \000"
	.align	2
.LC3:
	.ascii	"\012 3. PEEK \000"
	.align	2
.LC4:
	.ascii	"\012 4. DISPLAY \000"
	.align	2
.LC5:
	.ascii	"\012 5. EXIT \000"
	.align	2
.LC6:
	.ascii	"\012---------------------------------------\000"
	.align	2
.LC7:
	.ascii	"\012 Enter your choice \000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"**OVERFLOW**\000"
	.align	2
.LC10:
	.ascii	"\012 Enter Element to Push : \000"
	.align	2
.LC11:
	.ascii	"**UNDERFLOW**\000"
	.align	2
.LC12:
	.ascii	"\012 Popped Element is : %d \000"
	.align	2
.LC13:
	.ascii	"\012 Topmost Element is : %d \000"
	.align	2
.LC14:
	.ascii	"\012 Exiting......\000"
	.align	2
.LC15:
	.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, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L14:
	ldr	r0, .L17+4
	bl	printf
	ldr	r0, .L17+8
	bl	printf
	ldr	r0, .L17+12
	bl	printf
	ldr	r0, .L17+16
	bl	printf
	ldr	r0, .L17+20
	bl	printf
	ldr	r0, .L17+24
	bl	printf
	ldr	r0, .L17+28
	bl	printf
	ldr	r0, .L17+32
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L17+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L11:
	ldr	r3, .L17+40
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L12
	ldr	r0, .L17+44
	bl	printf
	b	.L5
.L12:
	ldr	r0, .L17+48
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L17+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	push
	b	.L5
.L10:
	ldr	r3, .L17+52
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L17+56
	bl	printf
	b	.L5
.L13:
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L17+60
	bl	printf
	b	.L5
.L9:
	bl	peek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L17+64
	bl	printf
	b	.L5
.L8:
	bl	display
	b	.L5
.L6:
	ldr	r0, .L17+68
	bl	printf
	nop
.L5:
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	bne	.L14
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC15
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	c
	.word	.LC9
	.word	.LC10
	.word	top
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.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	newnode
	mov	r3, r0
	ldr	r2, .L22
	str	r3, [r2]
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, .L22+4
	str	r3, [r2]
	b	.L21
.L20:
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, .L22+4
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, .L22+4
	str	r3, [r2]
.L21:
	ldr	r3, .L22+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L22+8
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	temp
	.word	top
	.word	c
	.size	push, .-push
	.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, .L26
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L26
	ldr	r3, [r3]
	ldr	r2, .L26+4
	str	r3, [r2]
	ldr	r3, .L26
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L26
	str	r3, [r2]
	ldr	r3, .L26+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	delnode
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	top
	.word	ptr
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Stack is empty\000"
	.align	2
.LC17:
	.ascii	"%d \000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r2, .L33+4
	str	r3, [r2]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L31
	ldr	r0, .L33+8
	bl	printf
	pop	{fp, pc}
.L32:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+12
	bl	printf
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+4
	str	r3, [r2]
.L31:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	cmp	r3, #0
	popeq	{fp, pc}
	b	.L32
.L34:
	.align	2
.L33:
	.word	top
	.word	ptr
	.word	.LC16
	.word	.LC17
	.size	display, .-display
	.section	.rodata
	.align	2
.LC18:
	.ascii	"**EMPTY STACK**\000"
	.text
	.align	2
	.global	peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	peek, %function
peek:
	@ 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, .L38
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L36
	ldr	r0, .L38+4
	bl	printf
	mov	r3, #0
	b	.L37
.L36:
	ldr	r3, .L38
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	top
	.word	.LC18
	.size	peek, .-peek
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
