	.file	"198581816.c"
	.intel_syntax noprefix
	.text
	.globl	stack
	.bss
	.align 8
	.type	stack, @object
	.size	stack, 8
stack:
	.zero	8
	.globl	c_operation
	.align 4
	.type	c_operation, @object
	.size	c_operation, 4
c_operation:
	.zero	4
	.globl	operation
	.align 4
	.type	operation, @object
	.size	operation, 4
operation:
	.zero	4
	.globl	size
	.data
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.long	1
	.globl	top
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.text
	.globl	isfull
	.type	isfull, @function
isfull:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR size[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR top[rip]
	cmp	edx, eax
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	isfull, .-isfull
	.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	eax, DWORD PTR top[rip]
	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
.LFE7:
	.size	isempty, .-isempty
	.section	.rodata
.LC0:
	.string	"\nEnter the name: "
.LC1:
	.string	"%s"
.LC2:
	.string	"Enter the roll no: "
.LC3:
	.string	"%d"
.LC4:
	.string	"Enter the Marks: "
.LC5:
	.string	"%f"
.LC6:
	.string	"\nElement pushed"
	.align 8
.LC7:
	.string	"\nTotal number of steps to complete a program till now (Copy Operations + Memory allocation + Pushing a element): %d\n"
.LC8:
	.string	"Copy Operations till now: %d\n"
	.align 8
.LC9:
	.string	"Number of elements in the stack: %d\n"
.LC10:
	.string	"\nStack size upgraded"
	.align 8
.LC11:
	.string	"Total number of copy operations performed till now: %d\n"
	.text
	.globl	push
	.type	push, @function
push:
.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	eax, 0
	call	isfull
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR stack[rip]
	mov	eax, DWORD PTR top[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR stack[rip]
	mov	eax, DWORD PTR top[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 52
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR stack[rip]
	mov	eax, DWORD PTR top[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 56
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR operation[rip]
	add	eax, 1
	mov	DWORD PTR operation[rip], eax
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR operation[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR c_operation[rip]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L8:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, DWORD PTR size[rip]
	cdqe
	mov	esi, 60
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L10
.L11:
	mov	rcx, QWORD PTR stack[rip]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rcx, rax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rsi, rcx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rcx, QWORD PTR stack[rip]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rcx, rax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR 52[rcx]
	mov	DWORD PTR 52[rdx], eax
	mov	rcx, QWORD PTR stack[rip]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rcx, rax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR 56[rcx]
	movss	DWORD PTR 56[rax], xmm0
	add	DWORD PTR -16[rbp], 1
.L10:
	mov	eax, DWORD PTR size[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L11
	mov	rax, QWORD PTR stack[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR stack[rip], 0
	mov	eax, DWORD PTR size[rip]
	add	eax, eax
	cdqe
	mov	esi, 60
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR stack[rip], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rcx, rax
	mov	rsi, QWORD PTR stack[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, [rdx+rax]
	mov	rsi, QWORD PTR stack[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, [rsi+rax]
	mov	eax, DWORD PTR 52[rcx]
	mov	DWORD PTR 52[rdx], eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, [rdx+rax]
	mov	rsi, QWORD PTR stack[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rsi
	movss	xmm0, DWORD PTR 56[rcx]
	movss	DWORD PTR 56[rax], xmm0
	add	DWORD PTR -12[rbp], 1
.L12:
	mov	eax, DWORD PTR size[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR size[rip]
	add	eax, eax
	mov	DWORD PTR size[rip], eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR stack[rip]
	mov	eax, DWORD PTR top[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR stack[rip]
	mov	eax, DWORD PTR top[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 52
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR stack[rip]
	mov	eax, DWORD PTR top[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 56
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR operation[rip]
	add	eax, 5
	mov	DWORD PTR operation[rip], eax
	mov	eax, DWORD PTR c_operation[rip]
	add	eax, 2
	mov	DWORD PTR c_operation[rip], eax
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR operation[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR c_operation[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	push, .-push
	.section	.rodata
	.align 8
.LC12:
	.string	"\n%s\t%d\t%f  is popped & stack size degraded\n"
	.align 8
.LC13:
	.string	"\nTotal number of steps to complete a program till now (Copy Operations + Memory allocation + Poping a element): %d\n"
.LC14:
	.string	"\nStack is empty"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	isempty
	test	eax, eax
	jne	.L16
	mov	rcx, QWORD PTR stack[rip]
	mov	eax, DWORD PTR top[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rcx
	movss	xmm0, DWORD PTR 56[rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rcx, xmm1
	mov	rsi, QWORD PTR stack[rip]
	mov	eax, DWORD PTR top[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rsi
	mov	edx, DWORD PTR 52[rax]
	mov	rdi, QWORD PTR stack[rip]
	mov	eax, DWORD PTR top[rip]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 4
	sub	rax, rsi
	sal	rax, 2
	add	rax, rdi
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR operation[rip]
	add	eax, 1
	mov	DWORD PTR operation[rip], eax
	mov	eax, DWORD PTR operation[rip]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR c_operation[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L16:
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L18:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	pop, .-pop
	.section	.rodata
.LC15:
	.string	"\nName\tRoll No\tMarks"
.LC16:
	.string	"%s\t%d\t%f\n"
	.align 8
.LC17:
	.string	"\nTotal number of steps to complete a program till now (Copy Operations + Memory allocation + Pushing a element + Poping a element): %d\n"
	.text
	.globl	display_stack
	.type	display_stack, @function
display_stack:
.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	eax, DWORD PTR top[rip]
	mov	DWORD PTR -4[rbp], eax
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L20
.L21:
	mov	rcx, QWORD PTR stack[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rcx
	movss	xmm0, DWORD PTR 56[rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rcx, xmm1
	mov	rsi, QWORD PTR stack[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 2
	add	rax, rsi
	mov	edx, DWORD PTR 52[rax]
	mov	rdi, QWORD PTR stack[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 4
	sub	rax, rsi
	sal	rax, 2
	add	rax, rdi
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf@PLT
	sub	DWORD PTR -4[rbp], 1
.L20:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L21
	mov	eax, DWORD PTR top[rip]
	cmp	eax, -1
	jne	.L22
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L19
.L22:
	mov	eax, DWORD PTR operation[rip]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR c_operation[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	display_stack, .-display_stack
	.section	.rodata
	.align 8
.LC18:
	.string	"\n!-----------------Program to implement stack using dynamic array and increasing the size by double-----------------!"
	.align 8
.LC19:
	.string	"\n1. Perform Push Operation\n2. Perform Pop Operation\n3. Display Stack\n4. Total number of steps to complete a program\n5. Total number of copy operations performed\n6. Total number of elements present in the stack\n7. Exit\n"
.LC20:
	.string	"Enter your choice: "
	.align 8
.LC21:
	.string	"\nTotal number of copy operations performed till now: %d\n"
	.align 8
.LC22:
	.string	"\nTotal number of elements present in the stack: %d\n"
.LC23:
	.string	"\nExiting the program\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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
	mov	esi, 60
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR stack[rip], rax
.L34:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[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, 7
	ja	.L25
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L27[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L27[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L27:
	.long	.L25-.L27
	.long	.L33-.L27
	.long	.L32-.L27
	.long	.L31-.L27
	.long	.L30-.L27
	.long	.L29-.L27
	.long	.L28-.L27
	.long	.L26-.L27
	.text
.L33:
	mov	eax, 0
	call	push
	jmp	.L25
.L32:
	mov	eax, 0
	call	pop
	jmp	.L25
.L31:
	mov	eax, 0
	call	display_stack
	jmp	.L25
.L30:
	mov	eax, DWORD PTR operation[rip]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L25
.L29:
	mov	eax, DWORD PTR c_operation[rip]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L25
.L28:
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L25
.L26:
	lea	rdi, .LC23[rip]
	call	puts@PLT
	nop
.L25:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 7
	jne	.L34
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"198581816.c"
	.text
	.comm	stack,4,4
	.global	c_operation
	.bss
	.align	2
	.type	c_operation, %object
	.size	c_operation, 4
c_operation:
	.space	4
	.global	operation
	.align	2
	.type	operation, %object
	.size	operation, 4
operation:
	.space	4
	.global	size
	.data
	.align	2
	.type	size, %object
	.size	size, 4
size:
	.word	1
	.global	top
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.text
	.align	2
	.global	isfull
	.syntax unified
	.arm
	.fpu softvfp
	.type	isfull, %function
isfull:
	@ 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, .L4
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L4+4
	ldr	r3, [r3]
	cmp	r2, r3
	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
.L5:
	.align	2
.L4:
	.word	size
	.word	top
	.size	isfull, .-isfull
	.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, .L9
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L7
	mov	r3, #1
	b	.L8
.L7:
	mov	r3, #0
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	top
	.size	isempty, .-isempty
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Enter the name: \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Enter the roll no: \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Enter the Marks: \000"
	.align	2
.LC5:
	.ascii	"%f\000"
	.align	2
.LC6:
	.ascii	"\012Element pushed\000"
	.align	2
.LC7:
	.ascii	"\012Total number of steps to complete a program til"
	.ascii	"l now (Copy Operations + Memory allocation + Pushin"
	.ascii	"g a element): %d\012\000"
	.align	2
.LC8:
	.ascii	"Copy Operations till now: %d\012\000"
	.align	2
.LC9:
	.ascii	"Number of elements in the stack: %d\012\000"
	.align	2
.LC10:
	.ascii	"\012Stack size upgraded\000"
	.align	2
.LC11:
	.ascii	"Total number of copy operations performed till now:"
	.ascii	" %d\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
	bl	isfull
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19
	str	r3, [r2]
	ldr	r0, .L19+4
	bl	printf
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L19+12
	bl	__isoc99_scanf
	ldr	r0, .L19+16
	bl	printf
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r3, r3, #52
	mov	r1, r3
	ldr	r0, .L19+20
	bl	__isoc99_scanf
	ldr	r0, .L19+24
	bl	printf
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r3, r3, #56
	mov	r1, r3
	ldr	r0, .L19+28
	bl	__isoc99_scanf
	ldr	r3, .L19+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19+32
	str	r3, [r2]
	ldr	r0, .L19+36
	bl	puts
	ldr	r3, .L19+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+40
	bl	printf
	ldr	r3, .L19+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+48
	bl	printf
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L19+52
	bl	printf
	b	.L18
.L12:
	ldr	r0, .L19+56
	bl	puts
	ldr	r3, .L19+60
	ldr	r3, [r3]
	mov	r1, #60
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L14
.L15:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r0, r3
	ldr	r3, .L19+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, r3
	bl	strcpy
	ldr	r3, .L19+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, [r1, #52]
	str	r2, [r3, #52]
	ldr	r3, .L19+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, [r1, #56]	@ float
	str	r2, [r3, #56]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L14:
	ldr	r3, .L19+60
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L15
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L19+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L19+60
	ldr	r3, [r3]
	lsl	r3, r3, #1
	mov	r1, #60
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L19+8
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L16
.L17:
	ldr	r3, .L19+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r0, r3
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r1, r3
	bl	strcpy
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r1, r3, r2
	ldr	r3, .L19+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r1, #52]
	str	r2, [r3, #52]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r1, r3, r2
	ldr	r3, .L19+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r1, #56]	@ float
	str	r2, [r3, #56]	@ float
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r3, .L19+60
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L17
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19
	str	r3, [r2]
	ldr	r3, .L19+60
	ldr	r3, [r3]
	lsl	r3, r3, #1
	ldr	r2, .L19+60
	str	r3, [r2]
	ldr	r0, .L19+4
	bl	printf
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L19+12
	bl	__isoc99_scanf
	ldr	r0, .L19+16
	bl	printf
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r3, r3, #52
	mov	r1, r3
	ldr	r0, .L19+20
	bl	__isoc99_scanf
	ldr	r0, .L19+24
	bl	printf
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r3, r3, #56
	mov	r1, r3
	ldr	r0, .L19+28
	bl	__isoc99_scanf
	ldr	r3, .L19+32
	ldr	r3, [r3]
	add	r3, r3, #5
	ldr	r2, .L19+32
	str	r3, [r2]
	ldr	r3, .L19+44
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, .L19+44
	str	r3, [r2]
	ldr	r0, .L19+36
	bl	puts
	ldr	r3, .L19+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+40
	bl	printf
	ldr	r3, .L19+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+64
	bl	printf
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L19+52
	bl	printf
.L18:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	top
	.word	.LC0
	.word	stack
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	operation
	.word	.LC6
	.word	.LC7
	.word	c_operation
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	size
	.word	.LC11
	.size	push, .-push
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC12:
	.ascii	"\012%s\011%d\011%f  is popped & stack size degraded"
	.ascii	"\012\000"
	.align	2
.LC13:
	.ascii	"\012Total number of steps to complete a program til"
	.ascii	"l now (Copy Operations + Memory allocation + Poping"
	.ascii	" a element): %d\012\000"
	.align	2
.LC14:
	.ascii	"\012Stack is empty\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	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	bl	isempty
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r5, r3
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r4, [r3, #52]
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #56]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r1, r5
	ldr	r0, .L25+8
	bl	printf
	ldr	r3, .L25+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L25+4
	str	r3, [r2]
	ldr	r3, .L25+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+12
	str	r3, [r2]
	ldr	r3, .L25+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L25+16
	bl	printf
	ldr	r3, .L25+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L25+24
	bl	printf
	ldr	r3, .L25+4
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L25+28
	bl	printf
	b	.L24
.L22:
	ldr	r0, .L25+32
	bl	puts
.L24:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L26:
	.align	2
.L25:
	.word	stack
	.word	top
	.word	.LC12
	.word	operation
	.word	.LC13
	.word	c_operation
	.word	.LC11
	.word	.LC9
	.word	.LC14
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC15:
	.ascii	"\012Name\011Roll No\011Marks\000"
	.align	2
.LC16:
	.ascii	"%s\011%d\011%f\012\000"
	.align	2
.LC17:
	.ascii	"\012Total number of steps to complete a program til"
	.ascii	"l now (Copy Operations + Memory allocation + Pushin"
	.ascii	"g a element + Poping a element): %d\012\000"
	.text
	.align	2
	.global	display_stack
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_stack, %function
display_stack:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r0, .L32+4
	bl	puts
	b	.L28
.L29:
	ldr	r3, .L32+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r5, r3
	ldr	r3, .L32+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r4, [r3, #52]
	ldr	r3, .L32+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #56]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r1, r5
	ldr	r0, .L32+12
	bl	printf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L29
	ldr	r3, .L32
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L32+16
	bl	puts
	b	.L27
.L30:
	ldr	r3, .L32+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+24
	bl	printf
	ldr	r3, .L32+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+32
	bl	printf
	ldr	r3, .L32
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L32+36
	bl	printf
.L27:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L33:
	.align	2
.L32:
	.word	top
	.word	.LC15
	.word	stack
	.word	.LC16
	.word	.LC14
	.word	operation
	.word	.LC17
	.word	c_operation
	.word	.LC11
	.word	.LC9
	.size	display_stack, .-display_stack
	.section	.rodata
	.align	2
.LC18:
	.ascii	"\012!-----------------Program to implement stack us"
	.ascii	"ing dynamic array and increasing the size by double"
	.ascii	"-----------------!\000"
	.align	2
.LC19:
	.ascii	"\0121. Perform Push Operation\0122. Perform Pop Ope"
	.ascii	"ration\0123. Display Stack\0124. Total number of st"
	.ascii	"eps to complete a program\0125. Total number of cop"
	.ascii	"y operations performed\0126. Total number of elemen"
	.ascii	"ts present in the stack\0127. Exit\012\000"
	.align	2
.LC20:
	.ascii	"Enter your choice: \000"
	.align	2
.LC21:
	.ascii	"\012Total number of copy operations performed till "
	.ascii	"now: %d\012\000"
	.align	2
.LC22:
	.ascii	"\012Total number of elements present in the stack: "
	.ascii	"%d\012\000"
	.align	2
.LC23:
	.ascii	"\012Exiting the program\012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #60
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L47+4
	str	r2, [r3]
.L44:
	ldr	r0, .L47+8
	bl	puts
	ldr	r0, .L47+12
	bl	puts
	ldr	r0, .L47+16
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L47+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L35
.L37:
	.word	.L43
	.word	.L42
	.word	.L41
	.word	.L40
	.word	.L39
	.word	.L38
	.word	.L36
.L43:
	bl	push
	b	.L35
.L42:
	bl	pop
	b	.L35
.L41:
	bl	display_stack
	b	.L35
.L40:
	ldr	r3, .L47+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L47+28
	bl	printf
	b	.L35
.L39:
	ldr	r3, .L47+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L47+36
	bl	printf
	b	.L35
.L38:
	ldr	r3, .L47+40
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L47+44
	bl	printf
	b	.L35
.L36:
	ldr	r0, .L47+48
	bl	puts
	nop
.L35:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	bne	.L44
	mov	r3, #0
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC24
	.word	stack
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC3
	.word	operation
	.word	.LC17
	.word	c_operation
	.word	.LC21
	.word	top
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
