Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <math.h>
#define E 0.00000001
#define zero(n) (fabs(n)<E)
main(n,a,b,c,d,p,q,r,D,f){
	for(scanf("%d",&n);n;n--){
		scanf("%d%d%d%d",&a,&b,&c,&d); //fx=ax3+bx2+cx+d
		f=0;if(a<0)a=-a,b=-b,c=-c,d=-d;//,f=1;
		int k[2]={0};//plus,minus
		p=3*a,q=2*b,r=c,D=q*q-4*p*r; //f'x=3ax2+2bx+c D: f'x=0?
		if(D>0){
			double x1=(-q-sqrt(D))/p/2,x2=(-q+sqrt(D))/p/2;
			double y1=a*x1*x1*x1+b*x1*x1+c*x1+d;
			double y2=a*x2*x2*x2+b*x2*x2+c*x2+d;
//printf("--- %f %f %f %f %d\n",x1,x2,y1,y2,!zero(y1)&&!zero(y2)>E&&y1*y2>0);
			if(!zero(y1)&&!zero(y2)>E&&y1*y2>0)goto one;
			if(zero(x1)){
				if(d==0)k[0]=1,k[1]=0;
				else k[0]=2,k[1]=1;
			}else if(zero(x2)){
				if(d==0)k[0]=0,k[1]=1;
				else k[0]=1,k[1]=2;
			}else if(x1>0){
				if(d>0)k[0]=2,k[1]=1;
				else if(d<0)k[0]=3,k[1]=0;
				else k[0]=2,k[1]=0;
			}else if(x2<0){
				if(d>0)k[0]=0,k[1]=3;
				else if(d<0)k[0]=1,k[1]=2;
				else k[0]=0,k[1]=2;
			}else{
				if(d>0)k[0]=2,k[1]=1;
				else if(d<0)k[0]=1,k[1]=2;
				else k[0]=1,k[1]=1;
			}
		}else if(D==0){
			if(d>0)k[0]=0,k[1]=1;
			else if(d<0)k[0]=1,k[1]=0;
		}else{
one:
			if(d>0)k[0]=0,k[1]=1;
			else if(d<0)k[0]=1,k[1]=0;
		}
		printf("%d %d\n",k[f],k[!f]);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC6:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	%edx, -60(%rbp)
	movl	%ecx, -64(%rbp)
	movl	%r8d, -68(%rbp)
	movl	%r9d, -72(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L27:
	leaq	-68(%rbp), %rsi
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, 40(%rbp)
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jns	.L3
	movl	-56(%rbp), %eax
	negl	%eax
	movl	%eax, -56(%rbp)
	movl	-60(%rbp), %eax
	negl	%eax
	movl	%eax, -60(%rbp)
	movl	-64(%rbp), %eax
	negl	%eax
	movl	%eax, -64(%rbp)
	movl	-68(%rbp), %eax
	negl	%eax
	movl	%eax, -68(%rbp)
.L3:
	movq	$0, -16(%rbp)
	movl	-56(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -72(%rbp)
	movl	-60(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, 16(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, 24(%rbp)
	movl	16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-72(%rbp), %eax
	imull	24(%rbp), %eax
	leal	0(,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, 32(%rbp)
	cmpl	$0, 32(%rbp)
	jle	.L4
	movl	16(%rbp), %eax
	negl	%eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movsd	%xmm2, -80(%rbp)
	pxor	%xmm3, %xmm3
	cvtsi2sdl	32(%rbp), %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movapd	%xmm0, %xmm1
	movsd	-80(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-72(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	16(%rbp), %eax
	negl	%eax
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%eax, %xmm4
	movsd	%xmm4, -80(%rbp)
	pxor	%xmm5, %xmm5
	cvtsi2sdl	32(%rbp), %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	addsd	-80(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-72(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-48(%rbp), %xmm1
	movl	-60(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-64(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-68(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	mulsd	-40(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-40(%rbp), %xmm1
	movl	-60(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	mulsd	-40(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-64(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-68(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-32(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	seta	%al
	xorl	$1, %eax
	testb	%al, %al
	je	.L5
	movsd	-24(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	seta	%al
	xorl	$1, %eax
	movzbl	%al, %eax
	testl	%eax, %eax
	jle	.L5
	movsd	-32(%rbp), %xmm0
	mulsd	-24(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	ja	.L38
.L5:
	movsd	-48(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L34
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$1, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L10:
	movl	$2, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L34:
	movsd	-40(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L35
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L14:
	movl	$1, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L35:
	movsd	-48(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L36
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L17
	movl	$2, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L17:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L18
	movl	$3, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L18:
	movl	$2, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L36:
	pxor	%xmm0, %xmm0
	comisd	-40(%rbp), %xmm0
	jbe	.L37
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L21
	movl	$0, -16(%rbp)
	movl	$3, -12(%rbp)
	jmp	.L11
.L21:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L22
	movl	$1, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L22:
	movl	$0, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L37:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L23
	movl	$2, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L23:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L24
	movl	$1, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L24:
	movl	$1, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L4:
	cmpl	$0, 32(%rbp)
	jne	.L39
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L25
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L25:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L11
	movl	$1, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L38:
	nop
	jmp	.L7
.L39:
	nop
.L7:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L26
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L26:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L11
	movl	$1, -16(%rbp)
	movl	$0, -12(%rbp)
.L11:
	cmpl	$0, 40(%rbp)
	sete	%al
	movzbl	%al, %eax
	cltq
	movl	-16(%rbp,%rax,4), %edx
	movl	40(%rbp), %eax
	cltq
	movl	-16(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -52(%rbp)
.L2:
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L27
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC4:
	.long	-500134854
	.long	1044740494
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC6:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movl	%edi, 76(%rsp)
	leaq	.LC0(%rip), %rdi
	movl	%esi, 72(%rsp)
	leaq	76(%rsp), %rsi
	movl	%edx, 68(%rsp)
	movl	%ecx, 64(%rsp)
	movl	%r8d, 60(%rsp)
	call	scanf@PLT
	movl	76(%rsp), %eax
	testl	%eax, %eax
	je	.L37
	leaq	60(%rsp), %r15
	leaq	64(%rsp), %r14
	leaq	68(%rsp), %r13
	leaq	72(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC6(%rip), %rbx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	jne	.L10
	testl	%esi, %esi
	jle	.L20
.L21:
	movl	$1, %edx
	xorl	%esi, %esi
.L13:
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	printf@PLT
	subl	$1, 76(%rsp)
	je	.L37
.L2:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	72(%rsp), %eax
	testl	%eax, %eax
	js	.L3
	movl	68(%rsp), %r8d
	movl	64(%rsp), %edi
	movl	60(%rsp), %esi
.L4:
	leal	(%rax,%rax,2), %r9d
	leal	(%r8,%r8), %ecx
	movl	%r9d, %r10d
	movl	%ecx, %edx
	imull	%edi, %r10d
	imull	%ecx, %edx
	sall	$2, %r10d
	subl	%r10d, %edx
	testl	%edx, %edx
	jle	.L5
	pxor	%xmm3, %xmm3
	pxor	%xmm6, %xmm6
	pxor	%xmm2, %xmm2
	negl	%ecx
	cvtsi2sdl	%edx, %xmm3
	cvtsi2sdl	%ecx, %xmm2
	ucomisd	%xmm3, %xmm6
	ja	.L38
	sqrtsd	%xmm3, %xmm3
	pxor	%xmm4, %xmm4
	movapd	%xmm2, %xmm1
	movsd	.LC3(%rip), %xmm5
	cvtsi2sdl	%r9d, %xmm4
	subsd	%xmm3, %xmm1
	divsd	%xmm4, %xmm1
	mulsd	%xmm5, %xmm1
.L8:
	addsd	%xmm3, %xmm2
	pxor	%xmm3, %xmm3
	pxor	%xmm6, %xmm6
	movsd	.LC5(%rip), %xmm8
	cvtsi2sdl	%eax, %xmm3
	cvtsi2sdl	%edi, %xmm6
	divsd	%xmm4, %xmm2
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%r8d, %xmm4
	movapd	%xmm3, %xmm0
	mulsd	%xmm1, %xmm0
	movapd	%xmm4, %xmm7
	mulsd	%xmm1, %xmm7
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm7
	mulsd	%xmm1, %xmm0
	addsd	%xmm7, %xmm0
	movapd	%xmm6, %xmm7
	mulsd	%xmm1, %xmm7
	addsd	%xmm7, %xmm0
	mulsd	%xmm5, %xmm2
	pxor	%xmm5, %xmm5
	cvtsi2sdl	%esi, %xmm5
	addsd	%xmm5, %xmm0
	movapd	%xmm0, %xmm7
	andpd	.LC4(%rip), %xmm7
	comisd	%xmm7, %xmm8
	ja	.L9
	mulsd	%xmm2, %xmm3
	mulsd	%xmm2, %xmm4
	mulsd	%xmm2, %xmm6
	mulsd	%xmm2, %xmm3
	mulsd	%xmm2, %xmm4
	mulsd	%xmm2, %xmm3
	addsd	%xmm4, %xmm3
	addsd	%xmm6, %xmm3
	addsd	%xmm5, %xmm3
	movapd	%xmm3, %xmm4
	andpd	.LC4(%rip), %xmm4
	comisd	%xmm4, %xmm8
	ja	.L9
	mulsd	%xmm3, %xmm0
	pxor	%xmm6, %xmm6
	comisd	%xmm6, %xmm0
	ja	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	movsd	.LC5(%rip), %xmm6
	movapd	%xmm1, %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	%xmm0, %xmm6
	jbe	.L39
	testl	%esi, %esi
	jne	.L23
	xorl	%edx, %edx
	movl	$1, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	testl	%esi, %esi
	jg	.L21
	setne	%sil
	xorl	%edx, %edx
	movzbl	%sil, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movl	68(%rsp), %r8d
	movl	64(%rsp), %edi
	negl	%eax
	movl	60(%rsp), %esi
	movl	%eax, 72(%rsp)
	negl	%r8d
	negl	%edi
	negl	%esi
	movl	%r8d, 68(%rsp)
	movl	%edi, 64(%rsp)
	movl	%esi, 60(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L39:
	movapd	%xmm2, %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	%xmm0, %xmm6
	jbe	.L40
	movl	$1, %edx
	testl	%esi, %esi
	je	.L13
.L24:
	movl	$2, %edx
	movl	$1, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L40:
	pxor	%xmm5, %xmm5
	comisd	%xmm5, %xmm1
	jbe	.L41
	testl	%esi, %esi
	jle	.L46
.L23:
	movl	$1, %edx
.L44:
	movl	$2, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L37:
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	setne	%sil
	movzbl	%sil, %esi
	jmp	.L13
.L41:
	pxor	%xmm6, %xmm6
	comisd	%xmm2, %xmm6
	ja	.L47
	testl	%esi, %esi
	jg	.L23
	jne	.L24
	movl	$1, %edx
	movl	$1, %esi
	jmp	.L13
.L46:
	movl	$0, %edx
	movl	$3, %esi
	jne	.L13
	jmp	.L44
.L47:
	testl	%esi, %esi
	jle	.L48
	movl	$3, %edx
	xorl	%esi, %esi
	jmp	.L13
.L48:
	setne	%sil
	movl	$2, %edx
	movzbl	%sil, %esi
	jmp	.L13
.L38:
	movapd	%xmm3, %xmm0
	movl	%edi, 56(%rsp)
	movl	%r8d, 52(%rsp)
	movl	%esi, 48(%rsp)
	movl	%r9d, 8(%rsp)
	movl	%eax, 44(%rsp)
	movsd	%xmm2, (%rsp)
	movsd	%xmm3, 32(%rsp)
	call	sqrt@PLT
	movsd	(%rsp), %xmm2
	pxor	%xmm4, %xmm4
	movl	8(%rsp), %r9d
	movq	.LC3(%rip), %rax
	movsd	32(%rsp), %xmm3
	cvtsi2sdl	%r9d, %xmm4
	movapd	%xmm2, %xmm1
	movsd	%xmm2, 24(%rsp)
	subsd	%xmm0, %xmm1
	movq	%rax, %xmm5
	movapd	%xmm3, %xmm0
	movq	%rax, 8(%rsp)
	divsd	%xmm4, %xmm1
	movsd	%xmm4, 16(%rsp)
	mulsd	%xmm5, %xmm1
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movl	56(%rsp), %edi
	movl	52(%rsp), %r8d
	movl	48(%rsp), %esi
	movl	44(%rsp), %eax
	movapd	%xmm0, %xmm3
	movsd	24(%rsp), %xmm2
	movsd	16(%rsp), %xmm4
	movsd	8(%rsp), %xmm5
	movsd	(%rsp), %xmm1
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC5:
	.long	-500134854
	.long	1044740494
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC6:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movl	%edi, 76(%rsp)
	leaq	.LC0(%rip), %rdi
	movl	%esi, 72(%rsp)
	leaq	76(%rsp), %rsi
	movl	%edx, 68(%rsp)
	movl	%ecx, 64(%rsp)
	movl	%r8d, 60(%rsp)
	call	scanf@PLT
	movl	76(%rsp), %eax
	testl	%eax, %eax
	je	.L37
	leaq	60(%rsp), %r15
	leaq	64(%rsp), %r14
	leaq	68(%rsp), %r13
	leaq	72(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC6(%rip), %rbx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	jne	.L10
	testl	%esi, %esi
	jle	.L20
.L21:
	movl	$1, %edx
	xorl	%esi, %esi
.L13:
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	printf@PLT
	subl	$1, 76(%rsp)
	je	.L37
.L2:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	72(%rsp), %eax
	testl	%eax, %eax
	js	.L3
	movl	68(%rsp), %r8d
	movl	64(%rsp), %edi
	movl	60(%rsp), %esi
.L4:
	leal	(%rax,%rax,2), %r9d
	leal	(%r8,%r8), %ecx
	movl	%r9d, %r10d
	movl	%ecx, %edx
	imull	%edi, %r10d
	imull	%ecx, %edx
	sall	$2, %r10d
	subl	%r10d, %edx
	testl	%edx, %edx
	jle	.L5
	pxor	%xmm3, %xmm3
	pxor	%xmm6, %xmm6
	pxor	%xmm2, %xmm2
	negl	%ecx
	cvtsi2sdl	%edx, %xmm3
	cvtsi2sdl	%ecx, %xmm2
	ucomisd	%xmm3, %xmm6
	ja	.L38
	sqrtsd	%xmm3, %xmm3
	pxor	%xmm4, %xmm4
	movapd	%xmm2, %xmm1
	movsd	.LC3(%rip), %xmm5
	cvtsi2sdl	%r9d, %xmm4
	subsd	%xmm3, %xmm1
	divsd	%xmm4, %xmm1
	mulsd	%xmm5, %xmm1
.L8:
	addsd	%xmm3, %xmm2
	pxor	%xmm3, %xmm3
	pxor	%xmm6, %xmm6
	movsd	.LC5(%rip), %xmm8
	cvtsi2sdl	%eax, %xmm3
	cvtsi2sdl	%edi, %xmm6
	divsd	%xmm4, %xmm2
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%r8d, %xmm4
	movapd	%xmm3, %xmm0
	mulsd	%xmm1, %xmm0
	movapd	%xmm4, %xmm7
	mulsd	%xmm1, %xmm7
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm7
	mulsd	%xmm1, %xmm0
	addsd	%xmm7, %xmm0
	movapd	%xmm6, %xmm7
	mulsd	%xmm1, %xmm7
	addsd	%xmm7, %xmm0
	mulsd	%xmm5, %xmm2
	pxor	%xmm5, %xmm5
	cvtsi2sdl	%esi, %xmm5
	addsd	%xmm5, %xmm0
	movapd	%xmm0, %xmm7
	andpd	.LC4(%rip), %xmm7
	comisd	%xmm7, %xmm8
	ja	.L9
	mulsd	%xmm2, %xmm3
	mulsd	%xmm2, %xmm4
	mulsd	%xmm2, %xmm6
	mulsd	%xmm2, %xmm3
	mulsd	%xmm2, %xmm4
	mulsd	%xmm2, %xmm3
	addsd	%xmm4, %xmm3
	addsd	%xmm6, %xmm3
	addsd	%xmm5, %xmm3
	movapd	%xmm3, %xmm4
	andpd	.LC4(%rip), %xmm4
	comisd	%xmm4, %xmm8
	ja	.L9
	mulsd	%xmm3, %xmm0
	pxor	%xmm6, %xmm6
	comisd	%xmm6, %xmm0
	ja	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	movsd	.LC5(%rip), %xmm6
	movapd	%xmm1, %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	%xmm0, %xmm6
	jbe	.L39
	testl	%esi, %esi
	jne	.L23
	xorl	%edx, %edx
	movl	$1, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	testl	%esi, %esi
	jg	.L21
	setne	%sil
	xorl	%edx, %edx
	movzbl	%sil, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	movl	68(%rsp), %r8d
	movl	64(%rsp), %edi
	negl	%eax
	movl	60(%rsp), %esi
	movl	%eax, 72(%rsp)
	negl	%r8d
	negl	%edi
	negl	%esi
	movl	%r8d, 68(%rsp)
	movl	%edi, 64(%rsp)
	movl	%esi, 60(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L39:
	movapd	%xmm2, %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	%xmm0, %xmm6
	jbe	.L40
	movl	$1, %edx
	testl	%esi, %esi
	je	.L13
.L24:
	movl	$2, %edx
	movl	$1, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L40:
	pxor	%xmm5, %xmm5
	comisd	%xmm5, %xmm1
	jbe	.L41
	testl	%esi, %esi
	jle	.L46
.L23:
	movl	$1, %edx
.L44:
	movl	$2, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L37:
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	setne	%sil
	movzbl	%sil, %esi
	jmp	.L13
.L41:
	pxor	%xmm6, %xmm6
	comisd	%xmm2, %xmm6
	ja	.L47
	testl	%esi, %esi
	jg	.L23
	jne	.L24
	movl	$1, %edx
	movl	$1, %esi
	jmp	.L13
.L46:
	movl	$0, %edx
	movl	$3, %esi
	jne	.L13
	jmp	.L44
.L47:
	testl	%esi, %esi
	jle	.L48
	movl	$3, %edx
	xorl	%esi, %esi
	jmp	.L13
.L48:
	setne	%sil
	movl	$2, %edx
	movzbl	%sil, %esi
	jmp	.L13
.L38:
	movapd	%xmm3, %xmm0
	movl	%edi, 56(%rsp)
	movl	%r8d, 52(%rsp)
	movl	%esi, 48(%rsp)
	movl	%r9d, 8(%rsp)
	movl	%eax, 44(%rsp)
	movsd	%xmm2, (%rsp)
	movsd	%xmm3, 32(%rsp)
	call	sqrt@PLT
	movsd	(%rsp), %xmm2
	pxor	%xmm4, %xmm4
	movl	8(%rsp), %r9d
	movq	.LC3(%rip), %rax
	movsd	32(%rsp), %xmm3
	cvtsi2sdl	%r9d, %xmm4
	movapd	%xmm2, %xmm1
	movsd	%xmm2, 24(%rsp)
	subsd	%xmm0, %xmm1
	movq	%rax, %xmm5
	movapd	%xmm3, %xmm0
	movq	%rax, 8(%rsp)
	divsd	%xmm4, %xmm1
	movsd	%xmm4, 16(%rsp)
	mulsd	%xmm5, %xmm1
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movl	56(%rsp), %edi
	movl	52(%rsp), %r8d
	movl	48(%rsp), %esi
	movl	44(%rsp), %eax
	movapd	%xmm0, %xmm3
	movsd	24(%rsp), %xmm2
	movsd	16(%rsp), %xmm4
	movsd	8(%rsp), %xmm5
	movsd	(%rsp), %xmm1
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC5:
	.long	-500134854
	.long	1044740494
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

#include <math.h>
#define E 0.00000001
#define zero(n) (fabs(n)<E)
main(n,a,b,c,d,p,q,r,D,f){
	for(scanf("%d",&n);n;n--){
		scanf("%d%d%d%d",&a,&b,&c,&d); //fx=ax3+bx2+cx+d
		f=0;if(a<0)a=-a,b=-b,c=-c,d=-d;//,f=1;
		int k[2]={0};//plus,minus
		p=3*a,q=2*b,r=c,D=q*q-4*p*r; //f'x=3ax2+2bx+c D: f'x=0?
		if(D>0){
			double x1=(-q-sqrt(D))/p/2,x2=(-q+sqrt(D))/p/2;
			double y1=a*x1*x1*x1+b*x1*x1+c*x1+d;
			double y2=a*x2*x2*x2+b*x2*x2+c*x2+d;
//printf("--- %f %f %f %f %d\n",x1,x2,y1,y2,!zero(y1)&&!zero(y2)>E&&y1*y2>0);
			if(!zero(y1)&&!zero(y2)>E&&y1*y2>0)goto one;
			if(zero(x1)){
				if(d==0)k[0]=1,k[1]=0;
				else k[0]=2,k[1]=1;
			}else if(zero(x2)){
				if(d==0)k[0]=0,k[1]=1;
				else k[0]=1,k[1]=2;
			}else if(x1>0){
				if(d>0)k[0]=2,k[1]=1;
				else if(d<0)k[0]=3,k[1]=0;
				else k[0]=2,k[1]=0;
			}else if(x2<0){
				if(d>0)k[0]=0,k[1]=3;
				else if(d<0)k[0]=1,k[1]=2;
				else k[0]=0,k[1]=2;
			}else{
				if(d>0)k[0]=2,k[1]=1;
				else if(d<0)k[0]=1,k[1]=2;
				else k[0]=1,k[1]=1;
			}
		}else if(D==0){
			if(d>0)k[0]=0,k[1]=1;
			else if(d<0)k[0]=1,k[1]=0;
		}else{
one:
			if(d>0)k[0]=0,k[1]=1;
			else if(d<0)k[0]=1,k[1]=0;
		}
		printf("%d %d\n",k[f],k[!f]);
	}
	return 0;
}
2
1 3 3 1
-10 0 0 1
 2
1 4 3 1
-14 0 0 1
 2
1 3 5 1
-10 0 0 0
 2
1 3 9 1
-10 0 1 0
 2
1 4 3 0
-1 0 1 1
 2
1 1 3 1
-10 -1 0 0
 2
1 4 3 0
-1 -1 1 1
 2
1 4 3 0
-1 0 0 0
 2
1 4 3 0
-1 0 1 0
 2
2 4 3 0
-1 0 1 0

0 1
1 0
 0 1
1 0
 0 1
0 0
 0 1
1 1
 0 2
1 0
 0 1
0 1
 0 2
1 2
 0 2
0 0
 0 2
1 1
 0 0
1 1

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <math.h>
#define E 0.00000001
#define zero(n) (fabs(n)<E)
main(n,a,b,c,d,p,q,r,D,f){
	for(scanf("%d",&n);n;n--){
		scanf("%d%d%d%d",&a,&b,&c,&d); //fx=ax3+bx2+cx+d
		f=0;if(a<0)a=-a,b=-b,c=-c,d=-d;//,f=1;
		int k[2]={0};//plus,minus
		p=3*a,q=2*b,r=c,D=q*q-4*p*r; //f'x=3ax2+2bx+c D: f'x=0?
		if(D>0){
			double x1=(-q-sqrt(D))/p/2,x2=(-q+sqrt(D))/p/2;
			double y1=a*x1*x1*x1+b*x1*x1+c*x1+d;
			double y2=a*x2*x2*x2+b*x2*x2+c*x2+d;
//printf("--- %f %f %f %f %d\n",x1,x2,y1,y2,!zero(y1)&&!zero(y2)>E&&y1*y2>0);
			if(!zero(y1)&&!zero(y2)>E&&y1*y2>0)goto one;
			if(zero(x1)){
				if(d==0)k[0]=1,k[1]=0;
				else k[0]=2,k[1]=1;
			}else if(zero(x2)){
				if(d==0)k[0]=0,k[1]=1;
				else k[0]=1,k[1]=2;
			}else if(x1>0){
				if(d>0)k[0]=2,k[1]=1;
				else if(d<0)k[0]=3,k[1]=0;
				else k[0]=2,k[1]=0;
			}else if(x2<0){
				if(d>0)k[0]=0,k[1]=3;
				else if(d<0)k[0]=1,k[1]=2;
				else k[0]=0,k[1]=2;
			}else{
				if(d>0)k[0]=2,k[1]=1;
				else if(d<0)k[0]=1,k[1]=2;
				else k[0]=1,k[1]=1;
			}
		}else if(D==0){
			if(d>0)k[0]=0,k[1]=1;
			else if(d<0)k[0]=1,k[1]=0;
		}else{
one:
			if(d>0)k[0]=0,k[1]=1;
			else if(d<0)k[0]=1,k[1]=0;
		}
		printf("%d %d\n",k[f],k[!f]);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC6:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	%edx, -60(%rbp)
	movl	%ecx, -64(%rbp)
	movl	%r8d, -68(%rbp)
	movl	%r9d, -72(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L27:
	leaq	-68(%rbp), %rsi
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, 40(%rbp)
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jns	.L3
	movl	-56(%rbp), %eax
	negl	%eax
	movl	%eax, -56(%rbp)
	movl	-60(%rbp), %eax
	negl	%eax
	movl	%eax, -60(%rbp)
	movl	-64(%rbp), %eax
	negl	%eax
	movl	%eax, -64(%rbp)
	movl	-68(%rbp), %eax
	negl	%eax
	movl	%eax, -68(%rbp)
.L3:
	movq	$0, -16(%rbp)
	movl	-56(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -72(%rbp)
	movl	-60(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, 16(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, 24(%rbp)
	movl	16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-72(%rbp), %eax
	imull	24(%rbp), %eax
	leal	0(,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, 32(%rbp)
	cmpl	$0, 32(%rbp)
	jle	.L4
	movl	16(%rbp), %eax
	negl	%eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movsd	%xmm2, -80(%rbp)
	pxor	%xmm3, %xmm3
	cvtsi2sdl	32(%rbp), %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movapd	%xmm0, %xmm1
	movsd	-80(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-72(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	16(%rbp), %eax
	negl	%eax
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%eax, %xmm4
	movsd	%xmm4, -80(%rbp)
	pxor	%xmm5, %xmm5
	cvtsi2sdl	32(%rbp), %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	addsd	-80(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-72(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-48(%rbp), %xmm1
	movl	-60(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-64(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-68(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	mulsd	-40(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-40(%rbp), %xmm1
	movl	-60(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	mulsd	-40(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-64(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-68(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-32(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	seta	%al
	xorl	$1, %eax
	testb	%al, %al
	je	.L5
	movsd	-24(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	seta	%al
	xorl	$1, %eax
	movzbl	%al, %eax
	testl	%eax, %eax
	jle	.L5
	movsd	-32(%rbp), %xmm0
	mulsd	-24(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	ja	.L38
.L5:
	movsd	-48(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L34
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$1, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L10:
	movl	$2, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L34:
	movsd	-40(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L35
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L14:
	movl	$1, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L35:
	movsd	-48(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L36
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L17
	movl	$2, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L17:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L18
	movl	$3, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L18:
	movl	$2, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L36:
	pxor	%xmm0, %xmm0
	comisd	-40(%rbp), %xmm0
	jbe	.L37
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L21
	movl	$0, -16(%rbp)
	movl	$3, -12(%rbp)
	jmp	.L11
.L21:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L22
	movl	$1, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L22:
	movl	$0, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L37:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L23
	movl	$2, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L23:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L24
	movl	$1, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L24:
	movl	$1, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L4:
	cmpl	$0, 32(%rbp)
	jne	.L39
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L25
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L25:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L11
	movl	$1, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L38:
	nop
	jmp	.L7
.L39:
	nop
.L7:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L26
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L26:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L11
	movl	$1, -16(%rbp)
	movl	$0, -12(%rbp)
.L11:
	cmpl	$0, 40(%rbp)
	sete	%al
	movzbl	%al, %eax
	cltq
	movl	-16(%rbp,%rax,4), %edx
	movl	40(%rbp), %eax
	cltq
	movl	-16(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -52(%rbp)
.L2:
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L27
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC4:
	.long	-500134854
	.long	1044740494
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC6:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	%edx, -60(%rbp)
	movl	%ecx, -64(%rbp)
	movl	%r8d, -68(%rbp)
	movl	%r9d, -72(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L27:
	leaq	-68(%rbp), %rsi
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, 40(%rbp)
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jns	.L3
	movl	-56(%rbp), %eax
	negl	%eax
	movl	%eax, -56(%rbp)
	movl	-60(%rbp), %eax
	negl	%eax
	movl	%eax, -60(%rbp)
	movl	-64(%rbp), %eax
	negl	%eax
	movl	%eax, -64(%rbp)
	movl	-68(%rbp), %eax
	negl	%eax
	movl	%eax, -68(%rbp)
.L3:
	movq	$0, -16(%rbp)
	movl	-56(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -72(%rbp)
	movl	-60(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, 16(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, 24(%rbp)
	movl	16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-72(%rbp), %eax
	imull	24(%rbp), %eax
	leal	0(,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, 32(%rbp)
	cmpl	$0, 32(%rbp)
	jle	.L4
	movl	16(%rbp), %eax
	negl	%eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movsd	%xmm2, -80(%rbp)
	pxor	%xmm3, %xmm3
	cvtsi2sdl	32(%rbp), %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movapd	%xmm0, %xmm1
	movsd	-80(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-72(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	16(%rbp), %eax
	negl	%eax
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%eax, %xmm4
	movsd	%xmm4, -80(%rbp)
	pxor	%xmm5, %xmm5
	cvtsi2sdl	32(%rbp), %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	addsd	-80(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-72(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-48(%rbp), %xmm1
	movl	-60(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-64(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-68(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	mulsd	-40(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	mulsd	-40(%rbp), %xmm1
	movl	-60(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	mulsd	-40(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-64(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	addsd	%xmm0, %xmm1
	movl	-68(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-32(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	seta	%al
	xorl	$1, %eax
	testb	%al, %al
	je	.L5
	movsd	-24(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	seta	%al
	xorl	$1, %eax
	movzbl	%al, %eax
	testl	%eax, %eax
	jle	.L5
	movsd	-32(%rbp), %xmm0
	mulsd	-24(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	ja	.L38
.L5:
	movsd	-48(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L34
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$1, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L10:
	movl	$2, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L34:
	movsd	-40(%rbp), %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L35
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L14:
	movl	$1, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L35:
	movsd	-48(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jbe	.L36
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L17
	movl	$2, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L17:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L18
	movl	$3, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L18:
	movl	$2, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L36:
	pxor	%xmm0, %xmm0
	comisd	-40(%rbp), %xmm0
	jbe	.L37
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L21
	movl	$0, -16(%rbp)
	movl	$3, -12(%rbp)
	jmp	.L11
.L21:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L22
	movl	$1, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L22:
	movl	$0, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L37:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L23
	movl	$2, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L23:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L24
	movl	$1, -16(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L11
.L24:
	movl	$1, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L4:
	cmpl	$0, 32(%rbp)
	jne	.L39
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L25
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L25:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L11
	movl	$1, -16(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L11
.L38:
	nop
	jmp	.L7
.L39:
	nop
.L7:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jle	.L26
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L11
.L26:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jns	.L11
	movl	$1, -16(%rbp)
	movl	$0, -12(%rbp)
.L11:
	cmpl	$0, 40(%rbp)
	sete	%al
	movzbl	%al, %eax
	cltq
	movl	-16(%rbp,%rax,4), %edx
	movl	40(%rbp), %eax
	cltq
	movl	-16(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -52(%rbp)
.L2:
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L27
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC4:
	.long	-500134854
	.long	1044740494
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
