	.file	"703242.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Give the factors of a quadratic equation ax^2 + bx + c ."
.LC1:
	.string	"Factor A : "
.LC2:
	.string	"%d"
.LC3:
	.string	"Factor A cannot be 0."
.LC4:
	.string	"Factor B : "
.LC5:
	.string	"Factor C : "
	.align 8
.LC6:
	.string	"The equation is : %dx^2 + %dx + %d \n"
	.align 8
.LC7:
	.string	"We find the discriminant of the equation from the formula B^2-4*A*C."
.LC8:
	.string	"%d^2-4*%d*%d\n"
.LC9:
	.string	"Discriminant : %.2f\n"
	.align 8
.LC11:
	.string	"D > 0 therefore we can find two roots from the formulas : "
	.align 8
.LC12:
	.string	"(-B + sqrt(Diakr)/2a ) and (-B - sqrt(Diakr)/2a)"
.LC14:
	.string	"Root 1 : %.2f\n"
.LC15:
	.string	"Root 2 : %.2f\n"
	.align 8
.LC16:
	.string	"D = 0 therefore we can find one root from the formula : (-b/(2*a)"
.LC17:
	.string	"Root : %.2f\n"
	.align 8
.LC18:
	.string	"D< 0 therefore the equation has 2 imaginary roots"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	DWORD PTR -32[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L2
.L3:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jne	.L2
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L2:
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	je	.L3
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, edx
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -24[rbp]
	imul	edx, ecx
	sal	edx, 2
	sub	eax, edx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -20[rbp], xmm0
	mov	esi, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -20[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
	movss	xmm0, DWORD PTR -20[rbp]
	pxor	xmm1, xmm1
	comiss	xmm0, xmm1
	jbe	.L13
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -28[rbp]
	neg	eax
	pxor	xmm5, xmm5
	cvtsi2sd	xmm5, eax
	movsd	QWORD PTR -40[rbp], xmm5
	pxor	xmm6, xmm6
	cvtss2sd	xmm6, DWORD PTR -20[rbp]
	movq	rax, xmm6
	movq	xmm0, rax
	call	sqrt@PLT
	addsd	xmm0, QWORD PTR -40[rbp]
	movsd	xmm2, QWORD PTR .LC13[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	eax, DWORD PTR -32[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -28[rbp]
	neg	eax
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, eax
	movsd	QWORD PTR -40[rbp], xmm3
	pxor	xmm7, xmm7
	cvtss2sd	xmm7, DWORD PTR -20[rbp]
	movq	rax, xmm7
	movq	xmm0, rax
	call	sqrt@PLT
	movapd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -40[rbp]
	subsd	xmm0, xmm1
	movsd	xmm2, QWORD PTR .LC13[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	eax, DWORD PTR -32[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -16[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC14[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -12[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	lea	rdi, .LC15[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L6
.L13:
	pxor	xmm0, xmm0
	ucomiss	xmm0, DWORD PTR -20[rbp]
	jp	.L7
	pxor	xmm0, xmm0
	ucomiss	xmm0, DWORD PTR -20[rbp]
	jne	.L7
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -28[rbp]
	neg	eax
	mov	edx, DWORD PTR -32[rbp]
	lea	ecx, [rdx+rdx]
	cdq
	idiv	ecx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -16[rbp], xmm0
	pxor	xmm6, xmm6
	cvtss2sd	xmm6, DWORD PTR -16[rbp]
	movq	rax, xmm6
	movq	xmm0, rax
	lea	rdi, .LC17[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L6
.L7:
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC13:
	.long	0
	.long	1073741824
	.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	"703242.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Give the factors of a quadratic equation ax^2 + bx "
	.ascii	"+ c .\000"
	.align	2
.LC1:
	.ascii	"Factor A : \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Factor A cannot be 0.\000"
	.align	2
.LC4:
	.ascii	"Factor B : \000"
	.align	2
.LC5:
	.ascii	"Factor C : \000"
	.align	2
.LC6:
	.ascii	"The equation is : %dx^2 + %dx + %d \012\000"
	.align	2
.LC7:
	.ascii	"We find the discriminant of the equation from the f"
	.ascii	"ormula B^2-4*A*C.\000"
	.global	__aeabi_i2f
	.align	2
.LC8:
	.ascii	"%d^2-4*%d*%d\012\000"
	.global	__aeabi_f2d
	.align	2
.LC9:
	.ascii	"Discriminant : %.2f\012\000"
	.global	__aeabi_fcmpgt
	.align	2
.LC10:
	.ascii	"D > 0 therefore we can find two roots from the form"
	.ascii	"ulas : \000"
	.align	2
.LC11:
	.ascii	"(-B + sqrt(Diakr)/2a ) and (-B - sqrt(Diakr)/2a)\000"
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.global	__aeabi_dsub
	.align	2
.LC12:
	.ascii	"Root 1 : %.2f\012\000"
	.align	2
.LC13:
	.ascii	"Root 2 : %.2f\012\000"
	.global	__aeabi_fcmpeq
	.align	2
.LC14:
	.ascii	"D = 0 therefore we can find one root from the formu"
	.ascii	"la : (-b/(2*a)\000"
	.global	__aeabi_idiv
	.align	2
.LC15:
	.ascii	"Root : %.2f\012\000"
	.align	2
.LC16:
	.ascii	"D< 0 therefore the equation has 2 imaginary roots\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #40
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r0, .L15+4
	bl	puts
	b	.L2
.L3:
	ldr	r0, .L15+8
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L15+16
	bl	puts
.L2:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L15+20
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	ldr	r0, .L15+24
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	ldr	r1, [fp, #-40]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r0, .L15+28
	bl	printf
	ldr	r0, .L15+32
	bl	puts
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	mul	r2, r3, r2
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-32]
	mul	r3, r1, r3
	lsl	r3, r3, #2
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	ldr	r1, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r0, [fp, #-40]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L15+36
	bl	printf
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+40
	bl	printf
	mov	r1, #0
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L15+44
	bl	puts
	ldr	r0, .L15+48
	bl	puts
	ldr	r3, [fp, #-36]
	rsb	r3, r3, #0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-36]
	rsb	r3, r3, #0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+52
	bl	printf
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+56
	bl	printf
	b	.L6
.L13:
	mov	r1, #0
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L15+60
	bl	puts
	ldr	r3, [fp, #-36]
	rsb	r2, r3, #0
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+64
	bl	printf
	b	.L6
.L14:
	ldr	r0, .L15+68
	bl	printf
.L6:
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC17
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
