	.file	"1960.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"Choose from the options below\n 1. Push\n 2. Pop \n 3. Peek \n 4. Display \n 5. Stack Size \n 0. Exit \n......................."
	.text
	.globl	choiceOpt
	.type	choiceOpt, @function
choiceOpt:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	choiceOpt, .-choiceOpt
	.section	.rodata
.LC1:
	.string	"Not Able to push The element"
	.align 8
.LC2:
	.string	"Enter the data you want to push -> "
.LC3:
	.string	"%d"
.LC4:
	.string	"Data Pushed Successfully"
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L3:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L5
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR head[rip], rax
	jmp	.L6
.L5:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR head[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR head[rip], rax
.L6:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L8:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Push, .-Push
	.section	.rodata
.LC5:
	.string	"The Stack is empty"
	.align 8
.LC6:
	.string	"The Data is popped successfully"
	.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 head[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L12
.L10:
	mov	rax, QWORD PTR head[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR head[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Pop, .-Pop
	.section	.rodata
	.align 8
.LC7:
	.string	"The Peek element of the stack is %d\n"
	.text
	.globl	Peek
	.type	Peek, @function
Peek:
.LFB9:
	.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 head[rip]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Peek, .-Peek
	.section	.rodata
.LC8:
	.string	"The Stack is Empty"
.LC9:
	.string	"The Stack elements ....."
.LC10:
	.string	"%d\n"
	.text
	.globl	Display
	.type	Display, @function
Display:
.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 head[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L19
.L15:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC10[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
.L17:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L18
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Display, .-Display
	.section	.rodata
.LC11:
	.string	"The size of the stack is "
	.text
	.globl	sizeStack
	.type	sizeStack, @function
sizeStack:
.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 head[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -8[rbp], 0
	jne	.L23
	mov	esi, 0
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	add	DWORD PTR -12[rbp], 1
.L23:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L24
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L22:
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sizeStack, .-sizeStack
	.section	.rodata
.LC12:
	.string	"\nEnter your Choice -> "
.LC13:
	.string	"Invalid Input"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	DWORD PTR -12[rbp], 0
.L35:
	mov	eax, 0
	call	choiceOpt
	lea	rdi, .LC12[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	.L26
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L28[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L28[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L28:
	.long	.L38-.L28
	.long	.L32-.L28
	.long	.L31-.L28
	.long	.L30-.L28
	.long	.L29-.L28
	.long	.L27-.L28
	.text
.L32:
	mov	eax, 0
	call	Push
	jmp	.L34
.L31:
	mov	eax, 0
	call	Pop
	jmp	.L34
.L30:
	mov	eax, 0
	call	Peek
	jmp	.L34
.L29:
	mov	eax, 0
	call	Display
	jmp	.L34
.L27:
	mov	eax, 0
	call	sizeStack
	jmp	.L34
.L26:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L34
.L38:
	nop
.L34:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jne	.L35
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"1960.c"
	.text
	.comm	head,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Choose from the options below\012 1. Push\012 2. Po"
	.ascii	"p \012 3. Peek \012 4. Display \012 5. Stack Size \012"
	.ascii	" 0. Exit \012.......................\000"
	.text
	.align	2
	.global	choiceOpt
	.syntax unified
	.arm
	.fpu softvfp
	.type	choiceOpt, %function
choiceOpt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	printf
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	choiceOpt, .-choiceOpt
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Not Able to push The element\000"
	.align	2
.LC2:
	.ascii	"Enter the data you want to push -> \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Data Pushed Successfully\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L11+4
	bl	printf
	b	.L10
.L5:
	ldr	r0, .L11+8
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L11+12
	bl	__isoc99_scanf
	ldr	r3, .L11+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r2, .L11+16
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	b	.L8
.L7:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, .L11+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r2, .L11+16
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L8:
	ldr	r0, .L11+20
	bl	puts
.L10:
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	head
	.word	.LC4
	.size	Push, .-Push
	.section	.rodata
	.align	2
.LC6:
	.ascii	"The Stack is empty\000"
	.align	2
.LC7:
	.ascii	"The Data is popped successfully\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, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L17+4
	bl	puts
	b	.L16
.L14:
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L17
	str	r3, [r2]
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r0, .L17+8
	bl	puts
.L16:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	head
	.word	.LC6
	.word	.LC7
	.size	Pop, .-Pop
	.section	.rodata
	.align	2
.LC8:
	.ascii	"The Peek element of the stack is %d\012\000"
	.text
	.align	2
	.global	Peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	Peek, %function
Peek:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L20
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	nop
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	head
	.word	.LC8
	.size	Peek, .-Peek
	.section	.rodata
	.align	2
.LC9:
	.ascii	"The Stack is Empty\000"
	.align	2
.LC10:
	.ascii	"The Stack elements .....\000"
	.align	2
.LC11:
	.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, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L23
	ldr	r0, .L28+4
	bl	puts
	b	.L27
.L23:
	ldr	r0, .L28+8
	bl	puts
	b	.L25
.L26:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+12
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L25:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L26
.L27:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	head
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	Display, .-Display
	.section	.rodata
	.align	2
.LC12:
	.ascii	"The size of the stack is \000"
	.text
	.align	2
	.global	sizeStack
	.syntax unified
	.arm
	.fpu softvfp
	.type	sizeStack, %function
sizeStack:
	@ 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, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L35+4
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L33
	mov	r1, #0
	ldr	r0, .L35+8
	bl	printf
	b	.L32
.L34:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L34
	ldr	r1, [fp, #-8]
	ldr	r0, .L35+8
	bl	printf
.L32:
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	head
	.word	.LC12
	.word	.LC3
	.size	sizeStack, .-sizeStack
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012Enter your Choice -> \000"
	.align	2
.LC14:
	.ascii	"Invalid Input\000"
	.align	2
.LC15:
	.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, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
.L47:
	bl	choiceOpt
	ldr	r0, .L51+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L51+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L38
.L40:
	.word	.L50
	.word	.L44
	.word	.L43
	.word	.L42
	.word	.L41
	.word	.L39
.L44:
	bl	Push
	b	.L46
.L43:
	bl	Pop
	b	.L46
.L42:
	bl	Peek
	b	.L46
.L41:
	bl	Display
	b	.L46
.L39:
	bl	sizeStack
	b	.L46
.L38:
	ldr	r0, .L51+12
	bl	printf
	b	.L46
.L50:
	nop
.L46:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L47
	mov	r3, #0
	ldr	r2, .L51
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC15
	.word	.LC13
	.word	.LC3
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
