	.file	"284919.c"
	.intel_syntax noprefix
	.text
	.globl	isFull
	.type	isFull, @function
isFull:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 900[rax]
	cmp	eax, 29
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	isFull, .-isFull
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 900[rax]
	cmp	eax, -1
	jne	.L5
	mov	eax, 1
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	isEmpty, .-isEmpty
	.section	.rodata
.LC0:
	.string	"Stack 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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	isFull
	test	eax, eax
	je	.L8
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 900[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 900[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 900[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rax
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	push, .-push
	.section	.rodata
.LC1:
	.string	"In function"
.LC2:
	.string	"Stack Underflow."
.LC3:
	.string	"-999"
.LC4:
	.string	"In POPPING"
.LC5:
	.string	"STRING COPIED to popcorn"
.LC6:
	.string	"TOP=%d"
	.text
	.globl	pop
	.type	pop, @function
pop:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	isEmpty
	test	eax, eax
	je	.L11
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC3[rip]
	jmp	.L12
.L11:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 900[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rax
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 900[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 900[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 900[rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	pop, .-pop
	.globl	display
	.type	display, @function
display:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 900[rax]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rax
	mov	rdx, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	puts@PLT
	sub	DWORD PTR -4[rbp], 1
.L14:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	display, .-display
	.section	.rodata
.LC7:
	.string	"\n\nSTACK OPERATIONS"
	.align 8
.LC8:
	.string	"\n0.Exit\n1.Push\n2.Pop\n3.Display"
.LC9:
	.string	"%d"
.LC10:
	.string	"\n\nEnter string:"
.LC11:
	.string	"%s"
.LC12:
	.string	"\n\nPopped Element:%s"
.LC13:
	.string	"\n\nDisplaying Pile:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 976
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -60[rbp], -1
.L21:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -964[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -964[rbp]
	cmp	eax, 3
	je	.L17
	cmp	eax, 3
	jg	.L18
	cmp	eax, 1
	je	.L19
	cmp	eax, 2
	je	.L20
	jmp	.L18
.L19:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -48[rbp]
	lea	rax, -960[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	push
	jmp	.L18
.L20:
	lea	rax, -960[rbp]
	mov	rdi, rax
	call	pop
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L17:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rax, -960[rbp]
	mov	rdi, rax
	call	display
	nop
.L18:
	mov	eax, DWORD PTR -964[rbp]
	test	eax, eax
	jne	.L21
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	"284919.c"
	.text
	.align	2
	.global	isFull
	.syntax unified
	.arm
	.fpu softvfp
	.type	isFull, %function
isFull:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #900]
	cmp	r3, #29
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isFull, .-isFull
	.align	2
	.global	isEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	isEmpty, %function
isEmpty:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #900]
	cmn	r3, #1
	bne	.L5
	mov	r3, #1
	b	.L6
.L5:
	mov	r3, #0
.L6:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isEmpty, .-isEmpty
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Stack 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]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	isFull
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L10
	bl	printf
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #900]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #900]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #900]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	strcpy
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	push, .-push
	.section	.rodata
	.align	2
.LC1:
	.ascii	"In function\000"
	.align	2
.LC2:
	.ascii	"Stack Underflow.\000"
	.align	2
.LC3:
	.ascii	"-999\000"
	.align	2
.LC4:
	.ascii	"In POPPING\000"
	.align	2
.LC5:
	.ascii	"STRING COPIED to popcorn\000"
	.align	2
.LC6:
	.ascii	"TOP=%d\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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]
	ldr	r0, .L15
	bl	printf
	ldr	r0, [fp, #-16]
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L15+4
	bl	printf
	ldr	r3, .L15+8
	b	.L14
.L13:
	ldr	r0, .L15+12
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #900]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strcpy
	ldr	r0, .L15+16
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #900]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #900]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #900]
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
	ldr	r3, [fp, #-8]
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	pop, .-pop
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #900]
	str	r3, [fp, #-8]
	b	.L18
.L19:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L19
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	display, .-display
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012\012STACK OPERATIONS\000"
	.align	2
.LC8:
	.ascii	"\0120.Exit\0121.Push\0122.Pop\0123.Display\000"
	.align	2
.LC9:
	.ascii	"%d\000"
	.align	2
.LC10:
	.ascii	"\012\012Enter string:\000"
	.align	2
.LC11:
	.ascii	"%s\000"
	.align	2
.LC12:
	.ascii	"\012\012Popped Element:%s\000"
	.align	2
.LC13:
	.ascii	"\012\012Displaying Pile:\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 944
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #944
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L28+4
	bl	puts
	mvn	r3, #0
	str	r3, [fp, #-44]
.L25:
	ldr	r0, .L28+8
	bl	printf
	sub	r3, fp, #948
	mov	r1, r3
	ldr	r0, .L28+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-948]
	cmp	r3, #3
	beq	.L21
	cmp	r3, #3
	bgt	.L22
	cmp	r3, #1
	beq	.L23
	cmp	r3, #2
	beq	.L24
	b	.L22
.L23:
	ldr	r0, .L28+16
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L28+20
	bl	__isoc99_scanf
	sub	r2, fp, #40
	sub	r3, fp, #944
	mov	r1, r2
	mov	r0, r3
	bl	push
	b	.L22
.L24:
	sub	r3, fp, #944
	mov	r0, r3
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L28+24
	bl	printf
	b	.L22
.L21:
	ldr	r0, .L28+28
	bl	puts
	sub	r3, fp, #944
	mov	r0, r3
	bl	display
	nop
.L22:
	ldr	r3, [fp, #-948]
	cmp	r3, #0
	bne	.L25
	mov	r3, #0
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC14
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
