	.file	"237644051.c"
	.intel_syntax noprefix
	.text
	.globl	size
	.bss
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.zero	4
	.globl	top
	.align 8
	.type	top, @object
	.size	top, 8
top:
	.zero	8
	.section	.rodata
.LC0:
	.string	"\n%d pushed succesfully!\n"
	.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, 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	rdx, QWORD PTR top[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR top[rip], rax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR size[rip]
	add	eax, 1
	mov	DWORD PTR size[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	push, .-push
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB7:
	.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]
	test	rax, rax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	isEmpty, .-isEmpty
	.section	.rodata
.LC1:
	.string	"\nStack Underflow"
.LC2:
	.string	"\n%d popped succesfully!\n"
	.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 top[rip]
	test	rax, rax
	jne	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L4
.L5:
	mov	rax, QWORD PTR top[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR top[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR top[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR size[rip]
	sub	eax, 1
	mov	DWORD PTR size[rip], eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	pop, .-pop
	.section	.rodata
.LC3:
	.string	"%d -> "
.LC4:
	.string	"NULL"
	.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 top[rip]
	test	rax, rax
	jne	.L8
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L7
.L8:
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	edi, 10
	call	putchar@PLT
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC3[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
.L10:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	display, .-display
	.section	.rodata
	.align 8
.LC5:
	.string	"\n--------MENU--------\n1)Push a number to stack.\n2)Pop a number from stack.\n3)To display the stack.\n4)To check if stack is empty.\n5)Stack count.\n6)Exit."
.LC6:
	.string	"Enter a choice: "
.LC7:
	.string	"%d"
.LC8:
	.string	"\nEnter a number to push: "
.LC9:
	.string	"\nStack is Empty!"
.LC10:
	.string	"\nStack is not Empty!"
.LC11:
	.string	"\nStack count = %d\n"
.LC12:
	.string	"Enter a valid choice!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
.L25:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 6
	ja	.L13
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L15[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L15[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L15:
	.long	.L13-.L15
	.long	.L20-.L15
	.long	.L19-.L15
	.long	.L18-.L15
	.long	.L17-.L15
	.long	.L16-.L15
	.long	.L14-.L15
	.text
.L20:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	push
	jmp	.L21
.L19:
	mov	eax, 0
	call	pop
	jmp	.L21
.L18:
	mov	eax, 0
	call	display
	jmp	.L21
.L17:
	mov	eax, 0
	call	isEmpty
	test	eax, eax
	je	.L22
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L21
.L22:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L21
.L16:
	mov	eax, DWORD PTR size[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L14:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	jmp	.L27
.L13:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	nop
.L21:
	jmp	.L25
.L27:
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"237644051.c"
	.text
	.global	size
	.bss
	.align	2
	.type	size, %object
	.size	size, 4
size:
	.space	4
	.comm	top,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012%d pushed succesfully!\012\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, .L2
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r2, .L2
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r1, [fp, #-16]
	ldr	r0, .L2+4
	bl	printf
	ldr	r3, .L2+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L2+8
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	top
	.word	.LC0
	.word	size
	.size	push, .-push
	.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, .L6
	ldr	r3, [r3]
	cmp	r3, #0
	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
.L7:
	.align	2
.L6:
	.word	top
	.size	isEmpty, .-isEmpty
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012Stack Underflow\000"
	.align	2
.LC2:
	.ascii	"\012%d popped succesfully!\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, .L11
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L11+4
	bl	puts
	b	.L8
.L9:
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L11
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r1, [fp, #-12]
	ldr	r0, .L11+8
	bl	printf
	ldr	r3, .L11+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L11+12
	str	r3, [r2]
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	top
	.word	.LC1
	.word	.LC2
	.word	size
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d -> \000"
	.align	2
.LC4:
	.ascii	"NULL\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, .L18
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L18+4
	bl	puts
	b	.L13
.L14:
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r0, #10
	bl	putchar
	b	.L16
.L17:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+8
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L16:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L18+12
	bl	puts
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	top
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.size	display, .-display
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012--------MENU--------\0121)Push a number to stac"
	.ascii	"k.\0122)Pop a number from stack.\0123)To display th"
	.ascii	"e stack.\0124)To check if stack is empty.\0125)Stac"
	.ascii	"k count.\0126)Exit.\000"
	.align	2
.LC6:
	.ascii	"Enter a choice: \000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"\012Enter a number to push: \000"
	.align	2
.LC9:
	.ascii	"\012Stack is Empty!\000"
	.align	2
.LC10:
	.ascii	"\012Stack is not Empty!\000"
	.align	2
.LC11:
	.ascii	"\012Stack count = %d\012\000"
	.align	2
.LC12:
	.ascii	"Enter a valid choice!\000"
	.align	2
.LC13:
	.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, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L33:
	ldr	r0, .L36+4
	bl	puts
	ldr	r0, .L36+8
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L36+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L21
.L23:
	.word	.L28
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L22
.L28:
	ldr	r0, .L36+16
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L36+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	push
	b	.L29
.L27:
	bl	pop
	b	.L29
.L26:
	bl	display
	b	.L29
.L25:
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r0, .L36+20
	bl	puts
	b	.L29
.L30:
	ldr	r0, .L36+24
	bl	puts
	b	.L29
.L24:
	ldr	r3, .L36+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L36+32
	bl	printf
	b	.L29
.L22:
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	b	.L35
.L21:
	ldr	r0, .L36+36
	bl	puts
	nop
.L29:
	b	.L33
.L35:
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC13
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	size
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
