	.file	"42172.c"
	.intel_syntax noprefix
	.text
	.globl	ptr
	.bss
	.align 8
	.type	ptr, @object
	.size	ptr, 8
ptr:
	.zero	8
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	start
	.align 8
	.type	start, @object
	.size	start, 8
start:
	.zero	8
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	expo
	.align 4
	.type	expo, @object
	.size	expo, 4
expo:
	.zero	4
	.globl	coeff
	.align 4
	.type	coeff, @object
	.size	coeff, 4
coeff:
	.zero	4
	.globl	value
	.align 4
	.type	value, @object
	.size	value, 4
value:
	.zero	4
	.section	.rodata
.LC0:
	.string	"\n Select menu"
	.align 8
.LC1:
	.string	"\n1.Create Polynomial \n2.Evaluate Polynomial\n3.Exit"
.LC2:
	.string	"\nEnter ur choice: "
.LC3:
	.string	"%d"
.LC4:
	.string	"\nWrong choice."
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR start[rip], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L7:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[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, 3
	je	.L2
	cmp	eax, 3
	jg	.L3
	cmp	eax, 1
	je	.L4
	cmp	eax, 2
	je	.L5
	jmp	.L3
.L4:
	mov	eax, 0
	call	createPoly
	jmp	.L6
.L5:
	mov	eax, 0
	call	peval
	jmp	.L6
.L2:
	mov	edi, 0
	call	exit@PLT
.L3:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	jmp	.L7
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"\nEnter the coefficient :"
.LC6:
	.string	"\nEnter the exponent : "
	.align 8
.LC7:
	.string	"If more Nodes are to be added then enter 1"
	.text
	.globl	createPoly
	.type	createPoly, @function
createPoly:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -36[rbp], 1
	jmp	.L10
.L15:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], 0
	cmp	QWORD PTR -24[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32[rbp], rax
.L13:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L14
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
.L12:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L10:
	mov	eax, DWORD PTR -36[rbp]
	test	eax, eax
	jne	.L15
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	createPoly, .-createPoly
	.section	.rodata
	.align 8
.LC8:
	.string	"\nEnter the value at which the polyomial is evaluated."
	.align 8
.LC9:
	.string	"\nThe value of the polynomial at %d is %d"
	.text
	.globl	peval
	.type	peval, @function
peval:
.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, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, x[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR start[rip]
	mov	QWORD PTR a[rip], rax
	mov	rax, QWORD PTR a[rip]
	mov	QWORD PTR ptr[rip], rax
	jmp	.L19
.L20:
	mov	rax, QWORD PTR ptr[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR coeff[rip], eax
	mov	rax, QWORD PTR ptr[rip]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR expo[rip], eax
	mov	edx, DWORD PTR expo[rip]
	mov	eax, DWORD PTR x[rip]
	mov	esi, edx
	mov	edi, eax
	call	power
	mov	edx, DWORD PTR coeff[rip]
	imul	eax, edx
	mov	DWORD PTR value[rip], eax
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR ptr[rip], rax
.L19:
	mov	rax, QWORD PTR ptr[rip]
	test	rax, rax
	jne	.L20
	mov	edx, DWORD PTR value[rip]
	mov	eax, DWORD PTR x[rip]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	peval, .-peval
	.globl	power
	.type	power, @function
power:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -4[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L22:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L23
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	power, .-power
	.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	"42172.c"
	.text
	.comm	ptr,4,4
	.comm	a,4,4
	.comm	start,4,4
	.comm	x,4,4
	.comm	expo,4,4
	.comm	coeff,4,4
	.global	value
	.bss
	.align	2
	.type	value, %object
	.size	value, 4
value:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 Select menu\000"
	.align	2
.LC1:
	.ascii	"\0121.Create Polynomial \0122.Evaluate Polynomial\012"
	.ascii	"3.Exit\000"
	.align	2
.LC2:
	.ascii	"\012Enter ur choice: \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"\012Wrong choice.\000"
	.align	2
.LC5:
	.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, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L9+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L9+8
	bl	puts
.L7:
	ldr	r0, .L9+12
	bl	printf
	ldr	r0, .L9+16
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L9+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	beq	.L2
	cmp	r3, #3
	bgt	.L3
	cmp	r3, #1
	beq	.L4
	cmp	r3, #2
	beq	.L5
	b	.L3
.L4:
	bl	createPoly
	b	.L6
.L5:
	bl	peval
	b	.L6
.L2:
	mov	r0, #0
	bl	exit
.L3:
	ldr	r0, .L9+24
	bl	printf
.L6:
	b	.L7
.L10:
	.align	2
.L9:
	.word	.LC5
	.word	start
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\012Enter the coefficient :\000"
	.align	2
.LC7:
	.ascii	"\012Enter the exponent : \000"
	.align	2
.LC8:
	.ascii	"If more Nodes are to be added then enter 1\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createPoly
	.syntax unified
	.arm
	.fpu softvfp
	.type	createPoly, %function
createPoly:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L12
.L17:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r0, .L20+4
	bl	printf
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L20+12
	bl	__isoc99_scanf
	ldr	r0, .L20+16
	bl	printf
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L14
.L13:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	b	.L15
.L16:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-20]
.L15:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #8]
.L14:
	ldr	r0, .L20+20
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L20+12
	bl	__isoc99_scanf
.L12:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L17
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC9
	.word	.LC6
	.word	stdin
	.word	.LC3
	.word	.LC7
	.word	.LC8
	.size	createPoly, .-createPoly
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012Enter the value at which the polyomial is evalu"
	.ascii	"ated.\000"
	.align	2
.LC11:
	.ascii	"\012The value of the polynomial at %d is %d\000"
	.text
	.align	2
	.global	peval
	.syntax unified
	.arm
	.fpu softvfp
	.type	peval, %function
peval:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L25
	bl	printf
	ldr	r1, .L25+4
	ldr	r0, .L25+8
	bl	__isoc99_scanf
	ldr	r3, .L25+12
	ldr	r3, [r3]
	ldr	r2, .L25+16
	str	r3, [r2]
	ldr	r3, .L25+16
	ldr	r3, [r3]
	ldr	r2, .L25+20
	str	r3, [r2]
	b	.L23
.L24:
	ldr	r3, .L25+20
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, .L25+24
	str	r3, [r2]
	ldr	r3, .L25+20
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L25+28
	str	r3, [r2]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, .L25+28
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	power
	mov	r2, r0
	ldr	r3, .L25+24
	ldr	r3, [r3]
	mul	r3, r2, r3
	ldr	r2, .L25+32
	str	r3, [r2]
	ldr	r3, .L25+20
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L25+20
	str	r3, [r2]
.L23:
	ldr	r3, .L25+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, .L25+32
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L25+36
	bl	printf
	nop
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC10
	.word	x
	.word	.LC3
	.word	start
	.word	a
	.word	ptr
	.word	coeff
	.word	expo
	.word	value
	.word	.LC11
	.size	peval, .-peval
	.align	2
	.global	power
	.syntax unified
	.arm
	.fpu softvfp
	.type	power, %function
power:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L28
.L29:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L29
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	power, .-power
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
