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>
void main()
{
  int a,b,h,m;
  double c;
  scanf("%d %d %d %d", &a, &b, &h, &m);
  double r;
  r = ((h/6.0) - (11.0*m/360.0))*M_PI;
  c = sqrt(a*a + b*b - 2*a*b*cos(r));
  printf("%.15f\n", c);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC6:
	.string	"%.15f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movl	8(%rsp), %ebx
	cvtsi2sdl	20(%rsp), %xmm1
	mulsd	.LC2(%rip), %xmm1
	movl	12(%rsp), %ebp
	divsd	.LC3(%rip), %xmm1
	cvtsi2sdl	16(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LC4(%rip), %xmm0
	call	cos@PLT
	movl	%ebx, %eax
	pxor	%xmm1, %xmm1
	movl	%ebp, %edx
	imull	%ebx, %eax
	movapd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	imull	%ebp, %ebx
	imull	%ebp, %edx
	addl	%ebx, %ebx
	cvtsi2sdl	%ebx, %xmm1
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L7
	sqrtsd	%xmm0, %xmm0
.L4:
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.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	1075314688
	.align 8
.LC2:
	.long	0
	.long	1076232192
	.align 8
.LC3:
	.long	0
	.long	1081507840
	.align 8
.LC4:
	.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	"%d %d %d %d"
.LC6:
	.string	"%.15f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movl	8(%rsp), %ebx
	cvtsi2sdl	20(%rsp), %xmm1
	mulsd	.LC2(%rip), %xmm1
	movl	12(%rsp), %ebp
	divsd	.LC3(%rip), %xmm1
	cvtsi2sdl	16(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LC4(%rip), %xmm0
	call	cos@PLT
	movl	%ebx, %eax
	pxor	%xmm1, %xmm1
	movl	%ebp, %edx
	imull	%ebx, %eax
	movapd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	imull	%ebp, %ebx
	imull	%ebp, %edx
	addl	%ebx, %ebx
	cvtsi2sdl	%ebx, %xmm1
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L7
	sqrtsd	%xmm0, %xmm0
.L4:
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.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	1075314688
	.align 8
.LC2:
	.long	0
	.long	1076232192
	.align 8
.LC3:
	.long	0
	.long	1081507840
	.align 8
.LC4:
	.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	"%d %d %d %d"
.LC6:
	.string	"%.15f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movl	8(%rsp), %ebx
	cvtsi2sdl	20(%rsp), %xmm1
	mulsd	.LC2(%rip), %xmm1
	movl	12(%rsp), %ebp
	divsd	.LC3(%rip), %xmm1
	cvtsi2sdl	16(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LC4(%rip), %xmm0
	call	cos@PLT
	movl	%ebx, %eax
	pxor	%xmm1, %xmm1
	movl	%ebp, %edx
	imull	%ebx, %eax
	movapd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	imull	%ebp, %ebx
	imull	%ebp, %edx
	addl	%ebx, %ebx
	cvtsi2sdl	%ebx, %xmm1
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L7
	sqrtsd	%xmm0, %xmm0
.L4:
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.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	1075314688
	.align 8
.LC2:
	.long	0
	.long	1076232192
	.align 8
.LC3:
	.long	0
	.long	1081507840
	.align 8
.LC4:
	.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>
void main()
{
  int a,b,h,m;
  double c;
  scanf("%d %d %d %d", &a, &b, &h, &m);
  double r;
  r = ((h/6.0) - (11.0*m/360.0))*M_PI;
  c = sqrt(a*a + b*b - 2*a*b*cos(r));
  printf("%.15f\n", c);
}```
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>
void main()
{
  int a,b,h,m;
  double c;
  scanf("%d %d %d %d", &a, &b, &h, &m);
  double r;
  r = ((h/6.0) - (11.0*m/360.0))*M_PI;
  c = sqrt(a*a + b*b - 2*a*b*cos(r));
  printf("%.15f\n", c);
}```

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.053141570660305
 2.993010346456961
 6.766432567522307
 2.130782104003303
 9.673118389725882
 1.442381624079246
 12.623542651430286
 4.983515548129330
 9.848857801796106
 3.870474295267717

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>
void main()
{
  int a,b,h,m;
  double c;
  scanf("%d %d %d %d", &a, &b, &h, &m);
  double r;
  r = ((h/6.0) - (11.0*m/360.0))*M_PI;
  c = sqrt(a*a + b*b - 2*a*b*cos(r));
  printf("%.15f\n", c);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC6:
	.string	"%.15f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movl	8(%rsp), %ebx
	cvtsi2sdl	20(%rsp), %xmm1
	mulsd	.LC2(%rip), %xmm1
	movl	12(%rsp), %ebp
	divsd	.LC3(%rip), %xmm1
	cvtsi2sdl	16(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LC4(%rip), %xmm0
	call	cos@PLT
	movl	%ebx, %eax
	pxor	%xmm1, %xmm1
	movl	%ebp, %edx
	imull	%ebx, %eax
	movapd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	imull	%ebp, %ebx
	imull	%ebp, %edx
	addl	%ebx, %ebx
	cvtsi2sdl	%ebx, %xmm1
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L7
	sqrtsd	%xmm0, %xmm0
.L4:
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.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	1075314688
	.align 8
.LC2:
	.long	0
	.long	1076232192
	.align 8
.LC3:
	.long	0
	.long	1081507840
	.align 8
.LC4:
	.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	"%d %d %d %d"
.LC6:
	.string	"%.15f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movl	8(%rsp), %ebx
	cvtsi2sdl	20(%rsp), %xmm1
	mulsd	.LC2(%rip), %xmm1
	movl	12(%rsp), %ebp
	divsd	.LC3(%rip), %xmm1
	cvtsi2sdl	16(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	subsd	%xmm1, %xmm0
	mulsd	.LC4(%rip), %xmm0
	call	cos@PLT
	movl	%ebx, %eax
	pxor	%xmm1, %xmm1
	movl	%ebp, %edx
	imull	%ebx, %eax
	movapd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	imull	%ebp, %ebx
	imull	%ebp, %edx
	addl	%ebx, %ebx
	cvtsi2sdl	%ebx, %xmm1
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L7
	sqrtsd	%xmm0, %xmm0
.L4:
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.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	1075314688
	.align 8
.LC2:
	.long	0
	.long	1076232192
	.align 8
.LC3:
	.long	0
	.long	1081507840
	.align 8
.LC4:
	.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:
```