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

```c
#include<stdio.h>
#include<math.h>
int main(void){double a,b,n,m;
scanf("%lf%lf%lf%lf",&a,&b,&n,&m);
n=30.0*(n+m/60.0);m=m*6.0;
printf("%.10f",sqrt(a*a+b*b-2*a*b*cos((n-m)/360.0*2.0*M_PI)));return 0;}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lf%lf%lf%lf"
.LC7:
	.string	"%.10f"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$72, %rsp
	.cfi_def_cfa_offset 80
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rcx
	leaq	32(%rsp), %rdx
	leaq	24(%rsp), %rsi
	leaq	48(%rsp), %r8
	call	__isoc99_scanf@PLT
	movsd	48(%rsp), %xmm2
	movsd	24(%rsp), %xmm1
	movsd	32(%rsp), %xmm3
	movapd	%xmm2, %xmm0
	divsd	.LC1(%rip), %xmm0
	addsd	40(%rsp), %xmm0
	movsd	%xmm1, 8(%rsp)
	mulsd	.LC3(%rip), %xmm2
	movsd	%xmm3, (%rsp)
	mulsd	.LC2(%rip), %xmm0
	movsd	%xmm2, 48(%rsp)
	movsd	%xmm0, 40(%rsp)
	subsd	%xmm2, %xmm0
	divsd	.LC4(%rip), %xmm0
	addsd	%xmm0, %xmm0
	mulsd	.LC5(%rip), %xmm0
	call	cos@PLT
	movsd	8(%rsp), %xmm1
	movsd	(%rsp), %xmm3
	movapd	%xmm0, %xmm2
	movapd	%xmm1, %xmm0
	movapd	%xmm3, %xmm4
	mulsd	%xmm1, %xmm0
	addsd	%xmm1, %xmm1
	mulsd	%xmm3, %xmm4
	mulsd	%xmm3, %xmm1
	addsd	%xmm4, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L7
	sqrtsd	%xmm0, %xmm0
.L4:
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	sqrt@PLT
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1078853632
	.align 8
.LC2:
	.long	0
	.long	1077805056
	.align 8
.LC3:
	.long	0
	.long	1075314688
	.align 8
.LC4:
	.long	0
	.long	1081507840
	.align 8
.LC5:
	.long	1413754136
	.long	1074340347
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lf%lf%lf%lf"
.LC7:
	.string	"%.10f"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$72, %rsp
	.cfi_def_cfa_offset 80
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rcx
	leaq	32(%rsp), %rdx
	leaq	24(%rsp), %rsi
	leaq	48(%rsp), %r8
	call	__isoc99_scanf@PLT
	movsd	48(%rsp), %xmm2
	movsd	24(%rsp), %xmm1
	movsd	32(%rsp), %xmm3
	movapd	%xmm2, %xmm0
	divsd	.LC1(%rip), %xmm0
	addsd	40(%rsp), %xmm0
	movsd	%xmm1, 8(%rsp)
	mulsd	.LC3(%rip), %xmm2
	movsd	%xmm3, (%rsp)
	mulsd	.LC2(%rip), %xmm0
	movsd	%xmm2, 48(%rsp)
	movsd	%xmm0, 40(%rsp)
	subsd	%xmm2, %xmm0
	divsd	.LC4(%rip), %xmm0
	addsd	%xmm0, %xmm0
	mulsd	.LC5(%rip), %xmm0
	call	cos@PLT
	movsd	8(%rsp), %xmm1
	movsd	(%rsp), %xmm3
	movapd	%xmm0, %xmm2
	movapd	%xmm1, %xmm0
	movapd	%xmm3, %xmm4
	mulsd	%xmm1, %xmm0
	addsd	%xmm1, %xmm1
	mulsd	%xmm3, %xmm4
	mulsd	%xmm3, %xmm1
	addsd	%xmm4, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L7
	sqrtsd	%xmm0, %xmm0
.L4:
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	sqrt@PLT
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1078853632
	.align 8
.LC2:
	.long	0
	.long	1077805056
	.align 8
.LC3:
	.long	0
	.long	1075314688
	.align 8
.LC4:
	.long	0
	.long	1081507840
	.align 8
.LC5:
	.long	1413754136
	.long	1074340347
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lf%lf%lf%lf"
.LC7:
	.string	"%.10f"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$72, %rsp
	.cfi_def_cfa_offset 80
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rcx
	leaq	32(%rsp), %rdx
	leaq	24(%rsp), %rsi
	leaq	48(%rsp), %r8
	call	__isoc99_scanf@PLT
	movsd	48(%rsp), %xmm2
	movsd	24(%rsp), %xmm1
	movsd	32(%rsp), %xmm3
	movapd	%xmm2, %xmm0
	divsd	.LC1(%rip), %xmm0
	addsd	40(%rsp), %xmm0
	movsd	%xmm1, 8(%rsp)
	mulsd	.LC3(%rip), %xmm2
	movsd	%xmm3, (%rsp)
	mulsd	.LC2(%rip), %xmm0
	movsd	%xmm2, 48(%rsp)
	movsd	%xmm0, 40(%rsp)
	subsd	%xmm2, %xmm0
	divsd	.LC4(%rip), %xmm0
	addsd	%xmm0, %xmm0
	mulsd	.LC5(%rip), %xmm0
	call	cos@PLT
	movsd	8(%rsp), %xmm1
	movsd	(%rsp), %xmm3
	movapd	%xmm0, %xmm2
	movapd	%xmm1, %xmm0
	movapd	%xmm3, %xmm4
	mulsd	%xmm1, %xmm0
	addsd	%xmm1, %xmm1
	mulsd	%xmm3, %xmm4
	mulsd	%xmm3, %xmm1
	addsd	%xmm4, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L7
	sqrtsd	%xmm0, %xmm0
.L4:
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	sqrt@PLT
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1078853632
	.align 8
.LC2:
	.long	0
	.long	1077805056
	.align 8
.LC3:
	.long	0
	.long	1075314688
	.align 8
.LC4:
	.long	0
	.long	1081507840
	.align 8
.LC5:
	.long	1413754136
	.long	1074340347
	.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:
```
```c
#include<stdio.h>
#include<math.h>
int main(void){double a,b,n,m;
scanf("%lf%lf%lf%lf",&a,&b,&n,&m);
n=30.0*(n+m/60.0);m=m*6.0;
printf("%.10f",sqrt(a*a+b*b-2*a*b*cos((n-m)/360.0*2.0*M_PI)));return 0;}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<math.h>
int main(void){double a,b,n,m;
scanf("%lf%lf%lf%lf",&a,&b,&n,&m);
n=30.0*(n+m/60.0);m=m*6.0;
printf("%.10f",sqrt(a*a+b*b-2*a*b*cos((n-m)/360.0*2.0*M_PI)));return 0;}
```

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.
Optimized Assembly Code:

3 4 13 0
 3 1 10 40
 3 4 17 0
 3 1 10 59
 6 4 17 0
 3 2 10 59
 9 4 17 0
 3 2 10 89
 9 4 21 0
 3 2 1 89

2.0531415707 2.9930103465 6.7664325675 2.1307821040 9.6731183897 1.4423816241 12.6235426514 4.9835155481 9.8488578018 3.8704742953
Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<math.h>
int main(void){double a,b,n,m;
scanf("%lf%lf%lf%lf",&a,&b,&n,&m);
n=30.0*(n+m/60.0);m=m*6.0;
printf("%.10f",sqrt(a*a+b*b-2*a*b*cos((n-m)/360.0*2.0*M_PI)));return 0;}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lf%lf%lf%lf"
.LC7:
	.string	"%.10f"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$72, %rsp
	.cfi_def_cfa_offset 80
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rcx
	leaq	32(%rsp), %rdx
	leaq	24(%rsp), %rsi
	leaq	48(%rsp), %r8
	call	__isoc99_scanf@PLT
	movsd	48(%rsp), %xmm2
	movsd	24(%rsp), %xmm1
	movsd	32(%rsp), %xmm3
	movapd	%xmm2, %xmm0
	divsd	.LC1(%rip), %xmm0
	addsd	40(%rsp), %xmm0
	movsd	%xmm1, 8(%rsp)
	mulsd	.LC3(%rip), %xmm2
	movsd	%xmm3, (%rsp)
	mulsd	.LC2(%rip), %xmm0
	movsd	%xmm2, 48(%rsp)
	movsd	%xmm0, 40(%rsp)
	subsd	%xmm2, %xmm0
	divsd	.LC4(%rip), %xmm0
	addsd	%xmm0, %xmm0
	mulsd	.LC5(%rip), %xmm0
	call	cos@PLT
	movsd	8(%rsp), %xmm1
	movsd	(%rsp), %xmm3
	movapd	%xmm0, %xmm2
	movapd	%xmm1, %xmm0
	movapd	%xmm3, %xmm4
	mulsd	%xmm1, %xmm0
	addsd	%xmm1, %xmm1
	mulsd	%xmm3, %xmm4
	mulsd	%xmm3, %xmm1
	addsd	%xmm4, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L7
	sqrtsd	%xmm0, %xmm0
.L4:
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	sqrt@PLT
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1078853632
	.align 8
.LC2:
	.long	0
	.long	1077805056
	.align 8
.LC3:
	.long	0
	.long	1075314688
	.align 8
.LC4:
	.long	0
	.long	1081507840
	.align 8
.LC5:
	.long	1413754136
	.long	1074340347
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lf%lf%lf%lf"
.LC7:
	.string	"%.10f"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$72, %rsp
	.cfi_def_cfa_offset 80
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rcx
	leaq	32(%rsp), %rdx
	leaq	24(%rsp), %rsi
	leaq	48(%rsp), %r8
	call	__isoc99_scanf@PLT
	movsd	48(%rsp), %xmm2
	movsd	24(%rsp), %xmm1
	movsd	32(%rsp), %xmm3
	movapd	%xmm2, %xmm0
	divsd	.LC1(%rip), %xmm0
	addsd	40(%rsp), %xmm0
	movsd	%xmm1, 8(%rsp)
	mulsd	.LC3(%rip), %xmm2
	movsd	%xmm3, (%rsp)
	mulsd	.LC2(%rip), %xmm0
	movsd	%xmm2, 48(%rsp)
	movsd	%xmm0, 40(%rsp)
	subsd	%xmm2, %xmm0
	divsd	.LC4(%rip), %xmm0
	addsd	%xmm0, %xmm0
	mulsd	.LC5(%rip), %xmm0
	call	cos@PLT
	movsd	8(%rsp), %xmm1
	movsd	(%rsp), %xmm3
	movapd	%xmm0, %xmm2
	movapd	%xmm1, %xmm0
	movapd	%xmm3, %xmm4
	mulsd	%xmm1, %xmm0
	addsd	%xmm1, %xmm1
	mulsd	%xmm3, %xmm4
	mulsd	%xmm3, %xmm1
	addsd	%xmm4, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L7
	sqrtsd	%xmm0, %xmm0
.L4:
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	sqrt@PLT
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1078853632
	.align 8
.LC2:
	.long	0
	.long	1077805056
	.align 8
.LC3:
	.long	0
	.long	1075314688
	.align 8
.LC4:
	.long	0
	.long	1081507840
	.align 8
.LC5:
	.long	1413754136
	.long	1074340347
	.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:
```