	.file	"784593.c"
	.intel_syntax noprefix
	.text
	.globl	s
	.bss
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.zero	8
	.section	.rodata
.LC0:
	.string	"\n\n***** MENU *****"
	.align 8
.LC1:
	.string	"1. Push\n2. Pop\n3. Display\n4. isEmpty\n5. Exit"
.LC2:
	.string	"\nEnter your choice: "
.LC3:
	.string	"%d"
	.align 8
.LC4:
	.string	"Enter the value to be insert: "
	.align 8
.LC5:
	.string	"\nWrong selection!!! Try again!!!"
	.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
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L11:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[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, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	push
	jmp	.L9
.L7:
	mov	eax, 0
	call	pop
	jmp	.L9
.L6:
	mov	eax, 0
	call	display
	jmp	.L9
.L5:
	mov	eax, 0
	call	isEmpty
	jmp	.L9
.L3:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	jmp	.L13
.L2:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	jmp	.L11
.L13:
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC6:
	.string	"\nInsertion success!!!"
	.text
	.globl	push
	.type	push, @function
push:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR s[rip]
	test	rax, rax
	jne	.L15
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR s[rip], rax
	jmp	.L16
.L15:
	mov	rdx, QWORD PTR s[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR s[rip], rax
.L16:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	push, .-push
	.section	.rodata
.LC7:
	.string	"\nUnderflow!!!"
.LC8:
	.string	"\nDeleted : %d"
	.text
	.globl	pop
	.type	pop, @function
pop:
.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	rax, QWORD PTR s[rip]
	test	rax, rax
	jne	.L18
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L20
.L18:
	mov	rax, QWORD PTR s[rip]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR s[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR s[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR s[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	pop, .-pop
	.section	.rodata
.LC9:
	.string	"\nStack is Empty!!!"
.LC10:
	.string	"\nStack elements are:"
.LC11:
	.string	"%d\n"
	.text
	.globl	display
	.type	display, @function
display:
.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	rax, QWORD PTR s[rip]
	test	rax, rax
	jne	.L22
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L22:
	mov	rax, QWORD PTR s[rip]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	display, .-display
	.section	.rodata
.LC12:
	.string	"\nStack is not Empty!!!"
	.text
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB10:
	.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 s[rip]
	test	rax, rax
	jne	.L28
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L30
.L28:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L30:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	isEmpty, .-isEmpty
	.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	"784593.c"
	.text
	.global	s
	.bss
	.align	2
	.type	s, %object
	.size	s, 4
s:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\012***** MENU *****\000"
	.align	2
.LC1:
	.ascii	"1. Push\0122. Pop\0123. Display\0124. isEmpty\0125."
	.ascii	" Exit\000"
	.align	2
.LC2:
	.ascii	"\012Enter your choice: \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Enter the value to be insert: \000"
	.align	2
.LC5:
	.ascii	"\012Wrong selection!!! Try again!!!\000"
	.align	2
.LC6:
	.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, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L11:
	ldr	r0, .L14+4
	bl	puts
	ldr	r0, .L14+8
	bl	printf
	ldr	r0, .L14+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L14+16
	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, .L14+20
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L14+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	push
	b	.L9
.L7:
	bl	pop
	b	.L9
.L6:
	bl	display
	b	.L9
.L5:
	bl	isEmpty
	b	.L9
.L3:
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	b	.L13
.L2:
	ldr	r0, .L14+24
	bl	printf
.L9:
	b	.L11
.L13:
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012Insertion success!!!\000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r2, .L19
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L18
.L17:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r2, .L19
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L18:
	ldr	r0, .L19+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	s
	.word	.LC7
	.size	push, .-push
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012Underflow!!!\000"
	.align	2
.LC9:
	.ascii	"\012Deleted : %d\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, .L25
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L25+4
	bl	printf
	b	.L24
.L22:
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L25+8
	bl	printf
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L25
	str	r3, [r2]
	ldr	r0, [fp, #-8]
	bl	free
.L24:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	s
	.word	.LC8
	.word	.LC9
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012Stack is Empty!!!\000"
	.align	2
.LC11:
	.ascii	"\012Stack elements are:\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, .L33
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L33+4
	bl	printf
	b	.L32
.L28:
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, .L33+8
	bl	puts
	b	.L30
.L31:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+12
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L30:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+12
	bl	printf
.L32:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	s
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	display, .-display
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012Stack is not Empty!!!\000"
	.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
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L39
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L36
	ldr	r0, .L39+4
	bl	printf
	b	.L38
.L36:
	ldr	r0, .L39+8
	bl	printf
.L38:
	nop
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	s
	.word	.LC10
	.word	.LC13
	.size	isEmpty, .-isEmpty
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
