	.file	"68889104.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"x^"
.LC1:
	.string	"%d%s%d"
.LC2:
	.string	" + "
	.text
	.globl	print_polynomial
	.type	print_polynomial, @function
print_polynomial:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movsd	xmm0, QWORD PTR [rax]
	cvttsd2si	eax, xmm0
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	je	.L3
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L4
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_polynomial, .-print_polynomial
	.section	.rodata
.LC3:
	.string	"f_prime = "
	.text
	.globl	calculate_derivative
	.type	calculate_derivative, @function
calculate_derivative:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -4[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mulsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L7
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print_polynomial
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	calculate_derivative, .-calculate_derivative
	.globl	f_complex
	.type	f_complex, @function
f_complex:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movq	rax, xmm0
	movapd	xmm0, xmm1
	mov	rcx, rax
	movq	rax, xmm0
	movq	xmm1, rcx
	movq	xmm0, rax
	movsd	QWORD PTR -16[rbp], xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	nop
	movq	xmm0, rdx
	movapd	xmm1, xmm2
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	f_complex, .-f_complex
	.globl	f
	.type	f, @function
f:
.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, 48
	movsd	QWORD PTR -24[rbp], xmm0
	mov	QWORD PTR -32[rbp], rdi
	mov	DWORD PTR -36[rbp], esi
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm2, QWORD PTR [rax]
	movsd	QWORD PTR -48[rbp], xmm2
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -12[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR -24[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	mulsd	xmm0, QWORD PTR -48[rbp]
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L10:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jge	.L11
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	f, .-f
	.globl	fprime
	.type	fprime, @function
fprime:
.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, 48
	movsd	QWORD PTR -24[rbp], xmm0
	mov	QWORD PTR -32[rbp], rdi
	mov	DWORD PTR -36[rbp], esi
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm2, QWORD PTR [rax]
	movsd	QWORD PTR -48[rbp], xmm2
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR -24[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	mulsd	xmm0, QWORD PTR -48[rbp]
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L14:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L15
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fprime, .-fprime
	.section	.rodata
.LC5:
	.string	"Calculating derivative..."
.LC6:
	.string	"%lf\n"
	.text
	.globl	newtons_method
	.type	newtons_method, @function
newtons_method:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	QWORD PTR -48[rbp], xmm1
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -56[rbp], ecx
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	calculate_derivative
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L18
.L22:
	mov	ecx, DWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rdx
	movq	xmm0, rax
	call	f
	movq	rbx, xmm0
	mov	ecx, DWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rdx
	movq	xmm0, rax
	call	fprime
	movq	xmm1, rbx
	divsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -40[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	ecx, DWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rdx
	movq	xmm0, rax
	call	f
	movq	rax, xmm0
	movq	xmm0, QWORD PTR .LC7[rip]
	movq	xmm1, rax
	andpd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -48[rbp]
	comisd	xmm0, xmm1
	jb	.L25
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L21
.L25:
	add	DWORD PTR -28[rbp], 1
.L18:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L22
.L21:
	mov	rax, QWORD PTR -64[rbp]
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -64[rbp]
	lea	rbx, 8[rax]
	mov	ecx, DWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rdx
	movq	xmm0, rax
	call	f
	movq	rax, xmm0
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -32[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	newtons_method, .-newtons_method
	.section	.rodata
	.align 8
.LC8:
	.string	"Enter the exponent of the higest degree polynomial: "
.LC9:
	.string	"%d"
	.align 8
.LC10:
	.string	"Enter the coefficients (you must enter zero for missing degrees!). Also, don't forget the constant. \nEnter: "
.LC11:
	.string	"%lf"
.LC12:
	.string	"f = "
.LC13:
	.string	"Enter a starting real value: "
	.align 8
.LC14:
	.string	"Enter a starting imaginary value: "
.LC16:
	.string	"Failure to find a root."
	.align 8
.LC17:
	.string	"f(%lf) = %lf, numreps/maxreps = %d/%d\n"
.LC18:
	.string	"\n"
	.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -88[rbp], 0
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 3
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -84[rbp], 0
	jmp	.L27
.L28:
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -84[rbp], 1
.L27:
	mov	eax, DWORD PTR -88[rbp]
	cmp	DWORD PTR -84[rbp], eax
	jle	.L28
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -88[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print_polynomial
	mov	DWORD PTR -80[rbp], 100
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movsd	xmm1, QWORD PTR -64[rbp]
	pxor	xmm0, xmm0
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -72[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	mov	ecx, DWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rsi, -32[rbp]
	mov	edi, DWORD PTR -80[rbp]
	movsd	xmm0, QWORD PTR .LC15[rip]
	mov	rax, QWORD PTR -40[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	newtons_method
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L29
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jne	.L30
.L29:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L31
.L30:
	movsd	xmm0, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -76[rbp]
	mov	esi, ecx
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC17[rip]
	mov	eax, 2
	call	printf@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
.L31:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC7:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC15:
	.long	-2127697391
	.long	1030854553
	.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	"68889104.c"
	.text
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC0:
	.ascii	"x^\000"
	.align	2
.LC1:
	.ascii	"%d%s%d\000"
	.align	2
.LC2:
	.ascii	" + \000"
	.text
	.align	2
	.global	print_polynomial
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_polynomial, %function
print_polynomial:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L4:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r1, r0
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r2, .L5
	ldr	r0, .L5+4
	bl	printf
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L3
	ldr	r0, .L5+8
	bl	printf
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L4
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	print_polynomial, .-print_polynomial
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.section	.rodata
	.align	2
.LC3:
	.ascii	"f_prime = \000"
	.text
	.align	2
	.global	calculate_derivative
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_derivative, %function
calculate_derivative:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L8
.L9:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-24]
	lsl	r1, r1, #3
	ldr	r0, [fp, #-36]
	add	r6, r0, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	r6, {r2-r3}
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L8:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L9
	ldr	r0, .L10
	bl	printf
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	print_polynomial
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.size	calculate_derivative, .-calculate_derivative
	.align	2
	.global	f_complex
	.syntax unified
	.arm
	.fpu softvfp
	.type	f_complex, %function
f_complex:
	@ args = 16, pretend = 8, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #8
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	add	r1, fp, #4
	stm	r1, {r2, r3}
	nop
	ldr	r0, [fp, #-8]
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #8
	bx	lr
	.size	f_complex, .-f_complex
	.global	__aeabi_dadd
	.align	2
	.global	f
	.syntax unified
	.arm
	.fpu softvfp
	.type	f, %function
f:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L14
.L15:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L14:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L15
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	f, .-f
	.align	2
	.global	fprime
	.syntax unified
	.arm
	.fpu softvfp
	.type	fprime, %function
fprime:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L18
.L19:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L18:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L19
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	fprime, .-fprime
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Calculating derivative...\000"
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.align	2
.LC5:
	.ascii	"%lf\012\000"
	.global	__aeabi_dcmpge
	.text
	.align	2
	.global	newtons_method
	.syntax unified
	.arm
	.fpu softvfp
	.type	newtons_method, %function
newtons_method:
	@ args = 16, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #16]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r0, .L30
	bl	puts
	ldr	r2, [fp, #16]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #12]
	bl	calculate_derivative
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L22
.L26:
	ldr	r3, [fp, #16]
	ldr	r2, [fp, #12]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	f
	mov	r6, r0
	mov	r7, r1
	ldr	r3, [fp, #16]
	ldr	r2, [fp, #-24]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	fprime
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L30+4
	bl	printf
	ldr	r3, [fp, #16]
	ldr	r2, [fp, #12]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	f
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	bic	r5, r3, #-2147483648
	mov	r2, r4
	mov	r3, r5
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
	b	.L25
.L29:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L22:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L26
.L25:
	ldr	r1, [fp, #8]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #8]
	add	r4, r3, #8
	ldr	r3, [fp, #16]
	ldr	r2, [fp, #12]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	f
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-32]
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC4
	.word	.LC5
	.size	newtons_method, .-newtons_method
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Enter the exponent of the higest degree polynomial:"
	.ascii	" \000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"Enter the coefficients (you must enter zero for mis"
	.ascii	"sing degrees!). Also, don't forget the constant. \012"
	.ascii	"Enter: \000"
	.align	2
.LC9:
	.ascii	"%lf\000"
	.align	2
.LC10:
	.ascii	"f = \000"
	.align	2
.LC11:
	.ascii	"Enter a starting real value: \000"
	.align	2
.LC12:
	.ascii	"Enter a starting imaginary value: \000"
	.align	2
.LC13:
	.ascii	"Failure to find a root.\000"
	.align	2
.LC14:
	.ascii	"f(%lf) = %lf, numreps/maxreps = %d/%d\012\000"
	.align	2
.LC15:
	.ascii	"\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-80]
	ldr	r0, .L40+4
	bl	printf
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L40+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r0, .L40+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L33
.L34:
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L40+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-72]
	add	r1, r2, r3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L33:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	ble	.L34
	ldr	r0, .L40+20
	bl	printf
	ldr	r3, [fp, #-80]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	print_polynomial
	mov	r3, #100
	str	r3, [fp, #-68]
	ldr	r0, .L40+24
	bl	printf
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L40+16
	bl	__isoc99_scanf
	ldr	r0, .L40+28
	bl	printf
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L40+16
	bl	__isoc99_scanf
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-80]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-72]
	str	r3, [sp, #8]
	sub	r3, fp, #28
	str	r3, [sp, #4]
	ldr	r3, [fp, #-68]
	str	r3, [sp]
	ldr	r2, .L40+32
	ldr	r3, .L40+36
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	newtons_method
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L35
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bne	.L36
.L35:
	ldr	r0, .L40+40
	bl	puts
	b	.L37
.L36:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-68]
	str	ip, [sp, #12]
	ldr	ip, [fp, #-64]
	str	ip, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L40+44
	bl	printf
	ldr	r0, .L40+48
	bl	puts
.L37:
	mov	r3, #0
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC16
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	-2127697391
	.word	1030854553
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
