	.file	"165764992.c"
	.intel_syntax noprefix
	.text
	.globl	top
	.data
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.globl	stack
	.bss
	.align 8
	.type	stack, @object
	.size	stack, 12
stack:
	.zero	12
	.section	.rodata
.LC0:
	.string	"\n\nPushing......."
.LC1:
	.string	"\nStack Overflow!!!"
.LC2:
	.string	"\nPushed"
	.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
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, DWORD PTR top[rip]
	cmp	eax, 2
	jne	.L2
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	mov	DWORD PTR top[rip], eax
	jmp	.L1
.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, .LC2[rip]
	call	puts@PLT
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	push, .-push
	.section	.rodata
.LC3:
	.string	"\n\nPopping......."
.LC4:
	.string	"\nStack is empty"
.LC5:
	.string	"\nPopped"
	.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
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR top[rip]
	test	eax, eax
	jns	.L5
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L5:
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	mov	DWORD PTR top[rip], eax
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pop, .-pop
	.section	.rodata
.LC6:
	.string	"\n\nChecking......"
.LC7:
	.string	"\nStack is not empty"
	.text
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR top[rip]
	test	eax, eax
	jns	.L8
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L8:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	isEmpty, .-isEmpty
	.section	.rodata
.LC8:
	.string	"\n\nPrinting.....\nStack is:-"
	.align 8
.LC9:
	.string	"\nstack is empty cannot be printed"
.LC10:
	.string	"\n%d"
	.text
	.globl	print
	.type	print, @function
print:
.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
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, DWORD PTR top[rip]
	test	eax, eax
	jns	.L12
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L12:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR top[rip]
	sub	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, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR top[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L15
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print, .-print
	.section	.rodata
	.align 8
.LC11:
	.string	"Options:-\n1)Push\n2)Pop\n3)isEmpty\n4)Print"
.LC12:
	.string	"\nChoose option:"
.LC13:
	.string	"%d"
	.align 8
.LC14:
	.string	"\nEnter the value to push onto satck:"
	.align 8
.LC15:
	.string	"\nERROR:enter the correct option:)"
	.align 8
.LC16:
	.string	"\n\nDo you want to choose options again?? (y/n):"
.LC17:
	.string	" %c"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -17[rbp], 121
	jmp	.L17
.L24:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 4
	je	.L18
	cmp	eax, 4
	jg	.L19
	cmp	eax, 3
	je	.L20
	cmp	eax, 3
	jg	.L19
	cmp	eax, 1
	je	.L21
	cmp	eax, 2
	je	.L22
	jmp	.L19
.L21:
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	push
	jmp	.L23
.L22:
	mov	eax, 0
	call	pop
	jmp	.L23
.L20:
	mov	eax, 0
	call	isEmpty
	jmp	.L23
.L18:
	mov	eax, 0
	call	print
	jmp	.L23
.L19:
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L23:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -17[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L17:
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 121
	je	.L24
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L26
	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	"165764992.c"
	.text
	.global	top
	.data
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.comm	stack,12,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\012Pushing.......\000"
	.align	2
.LC1:
	.ascii	"\012Stack Overflow!!!\000"
	.align	2
.LC2:
	.ascii	"\012Pushed\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	r0, .L4
	bl	puts
	ldr	r3, .L4+4
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L2
	ldr	r0, .L4+8
	bl	printf
	ldr	r3, .L4+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L4+4
	str	r3, [r2]
	b	.L1
.L2:
	ldr	r3, .L4+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L4+4
	str	r3, [r2]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	ldr	r1, .L4+12
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r0, .L4+16
	bl	puts
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	top
	.word	.LC1
	.word	stack
	.word	.LC2
	.size	push, .-push
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012\012Popping.......\000"
	.align	2
.LC4:
	.ascii	"\012Stack is empty\000"
	.align	2
.LC5:
	.ascii	"\012Popped\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L9
	bl	puts
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L9+8
	bl	printf
	pop	{fp, pc}
.L7:
	ldr	r3, .L9+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	str	r3, [r2]
	ldr	r0, .L9+12
	bl	puts
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	top
	.word	.LC4
	.word	.LC5
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\012\012Checking......\000"
	.align	2
.LC7:
	.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	r0, .L15
	bl	puts
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L15+8
	bl	printf
	b	.L14
.L12:
	ldr	r0, .L15+12
	bl	printf
.L14:
	nop
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC6
	.word	top
	.word	.LC4
	.word	.LC7
	.size	isEmpty, .-isEmpty
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012\012Printing.....\012Stack is:-\000"
	.align	2
.LC9:
	.ascii	"\012stack is empty cannot be printed\000"
	.align	2
.LC10:
	.ascii	"\012%d\000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ 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	r0, .L22
	bl	puts
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L22+8
	bl	printf
	b	.L17
.L18:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L20
.L21:
	ldr	r3, .L22+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r2, .L22+12
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L22+16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L20:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L21
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC8
	.word	top
	.word	.LC9
	.word	stack
	.word	.LC10
	.size	print, .-print
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Options:-\0121)Push\0122)Pop\0123)isEmpty\0124)Prin"
	.ascii	"t\000"
	.align	2
.LC12:
	.ascii	"\012Choose option:\000"
	.align	2
.LC13:
	.ascii	"%d\000"
	.align	2
.LC14:
	.ascii	"\012Enter the value to push onto satck:\000"
	.align	2
.LC15:
	.ascii	"\012ERROR:enter the correct option:)\000"
	.align	2
.LC16:
	.ascii	"\012\012Do you want to choose options again?? (y/n)"
	.ascii	":\000"
	.align	2
.LC17:
	.ascii	" %c\000"
	.align	2
.LC18:
	.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
	mov	r3, #121
	strb	r3, [fp, #-17]
	b	.L25
.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, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L26
.L28:
	.word	.L31
	.word	.L30
	.word	.L29
	.word	.L27
.L31:
	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	.L32
.L30:
	bl	pop
	b	.L32
.L29:
	bl	isEmpty
	b	.L32
.L27:
	bl	print
	b	.L32
.L26:
	ldr	r0, .L36+20
	bl	printf
	nop
.L32:
	ldr	r0, .L36+24
	bl	printf
	sub	r3, fp, #17
	mov	r1, r3
	ldr	r0, .L36+28
	bl	__isoc99_scanf
.L25:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L33
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC18
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
