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){
  int a,b,h,m,theta1;
  double theta2,d,l;
  scanf("%d %d %d %d",&a,&b,&h,&m);
  theta1=6*m;
  theta2=30*h+0.5*m;
  d=fabs(theta1-theta2);
  if(d<=180) l=sqrt(a*a+b*b-2*a*b*cos(2*M_PI*d/360));
  if(d>180) l=sqrt(a*a+b*b-2*a*b*cos(2*M_PI*(360-d)/360));
  printf("%.20f",l);

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC6:
	.string	"%.20f"
	.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	$56, %rsp
	.cfi_def_cfa_offset 80
	movsd	%xmm0, 8(%rsp)
	leaq	28(%rsp), %rdx
	leaq	32(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	leaq	36(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	pxor	%xmm2, %xmm2
	movsd	8(%rsp), %xmm0
	cvtsi2sdl	%eax, %xmm3
	leal	(%rax,%rax,2), %edx
	mulsd	.LC1(%rip), %xmm3
	addl	%edx, %edx
	cvtsi2sdl	%edx, %xmm1
	imull	$30, 32(%rsp), %edx
	cvtsi2sdl	%edx, %xmm2
	addsd	%xmm3, %xmm2
	movsd	.LC3(%rip), %xmm3
	subsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm2
	andpd	.LC2(%rip), %xmm2
	comisd	%xmm2, %xmm3
	jnb	.L11
.L2:
	comisd	%xmm3, %xmm2
	ja	.L12
.L4:
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
	movsd	%xmm2, 8(%rsp)
	mulsd	.LC4(%rip), %xmm1
	divsd	.LC5(%rip), %xmm1
	movapd	%xmm1, %xmm0
	call	cos@PLT
	movl	%ebx, %eax
	pxor	%xmm1, %xmm1
	movl	%ebp, %edx
	imull	%ebx, %eax
	movapd	%xmm0, %xmm4
	pxor	%xmm0, %xmm0
	imull	%ebp, %ebx
	imull	%ebp, %edx
	addl	%ebx, %ebx
	cvtsi2sdl	%ebx, %xmm1
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm4, %xmm1
	subsd	%xmm1, %xmm0
	call	sqrt@PLT
	movq	.LC3(%rip), %rax
	movsd	8(%rsp), %xmm2
	movq	%rax, %xmm3
	jmp	.L2
.L12:
	movsd	.LC5(%rip), %xmm1
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
	movapd	%xmm1, %xmm0
	subsd	%xmm2, %xmm0
	mulsd	.LC4(%rip), %xmm0
	divsd	%xmm1, %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
	call	sqrt@PLT
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC3:
	.long	0
	.long	1080459264
	.align 8
.LC4:
	.long	1413754136
	.long	1075388923
	.align 8
.LC5:
	.long	0
	.long	1081507840
	.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	"%.20f"
	.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	$56, %rsp
	.cfi_def_cfa_offset 80
	movsd	%xmm0, 8(%rsp)
	leaq	28(%rsp), %rdx
	leaq	32(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	leaq	36(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	pxor	%xmm2, %xmm2
	movsd	8(%rsp), %xmm0
	cvtsi2sdl	%eax, %xmm3
	leal	(%rax,%rax,2), %edx
	mulsd	.LC1(%rip), %xmm3
	addl	%edx, %edx
	cvtsi2sdl	%edx, %xmm1
	imull	$30, 32(%rsp), %edx
	cvtsi2sdl	%edx, %xmm2
	addsd	%xmm3, %xmm2
	movsd	.LC3(%rip), %xmm3
	subsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm2
	andpd	.LC2(%rip), %xmm2
	comisd	%xmm2, %xmm3
	jnb	.L11
.L2:
	comisd	%xmm3, %xmm2
	ja	.L12
.L4:
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
	movsd	%xmm2, 8(%rsp)
	mulsd	.LC4(%rip), %xmm1
	divsd	.LC5(%rip), %xmm1
	movapd	%xmm1, %xmm0
	call	cos@PLT
	movl	%ebx, %eax
	pxor	%xmm1, %xmm1
	movl	%ebp, %edx
	imull	%ebx, %eax
	movapd	%xmm0, %xmm4
	pxor	%xmm0, %xmm0
	imull	%ebp, %ebx
	imull	%ebp, %edx
	addl	%ebx, %ebx
	cvtsi2sdl	%ebx, %xmm1
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm4, %xmm1
	subsd	%xmm1, %xmm0
	call	sqrt@PLT
	movq	.LC3(%rip), %rax
	movsd	8(%rsp), %xmm2
	movq	%rax, %xmm3
	jmp	.L2
.L12:
	movsd	.LC5(%rip), %xmm1
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
	movapd	%xmm1, %xmm0
	subsd	%xmm2, %xmm0
	mulsd	.LC4(%rip), %xmm0
	divsd	%xmm1, %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
	call	sqrt@PLT
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC3:
	.long	0
	.long	1080459264
	.align 8
.LC4:
	.long	1413754136
	.long	1075388923
	.align 8
.LC5:
	.long	0
	.long	1081507840
	.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	"%.20f"
	.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	$56, %rsp
	.cfi_def_cfa_offset 80
	movsd	%xmm0, 8(%rsp)
	leaq	28(%rsp), %rdx
	leaq	32(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	leaq	36(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	pxor	%xmm2, %xmm2
	movsd	8(%rsp), %xmm0
	cvtsi2sdl	%eax, %xmm3
	leal	(%rax,%rax,2), %edx
	mulsd	.LC1(%rip), %xmm3
	addl	%edx, %edx
	cvtsi2sdl	%edx, %xmm1
	imull	$30, 32(%rsp), %edx
	cvtsi2sdl	%edx, %xmm2
	addsd	%xmm3, %xmm2
	movsd	.LC3(%rip), %xmm3
	subsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm2
	andpd	.LC2(%rip), %xmm2
	comisd	%xmm2, %xmm3
	jnb	.L11
.L2:
	comisd	%xmm3, %xmm2
	ja	.L12
.L4:
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
	movsd	%xmm2, 8(%rsp)
	mulsd	.LC4(%rip), %xmm1
	divsd	.LC5(%rip), %xmm1
	movapd	%xmm1, %xmm0
	call	cos@PLT
	movl	%ebx, %eax
	pxor	%xmm1, %xmm1
	movl	%ebp, %edx
	imull	%ebx, %eax
	movapd	%xmm0, %xmm4
	pxor	%xmm0, %xmm0
	imull	%ebp, %ebx
	imull	%ebp, %edx
	addl	%ebx, %ebx
	cvtsi2sdl	%ebx, %xmm1
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm4, %xmm1
	subsd	%xmm1, %xmm0
	call	sqrt@PLT
	movq	.LC3(%rip), %rax
	movsd	8(%rsp), %xmm2
	movq	%rax, %xmm3
	jmp	.L2
.L12:
	movsd	.LC5(%rip), %xmm1
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
	movapd	%xmm1, %xmm0
	subsd	%xmm2, %xmm0
	mulsd	.LC4(%rip), %xmm0
	divsd	%xmm1, %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
	call	sqrt@PLT
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC3:
	.long	0
	.long	1080459264
	.align 8
.LC4:
	.long	1413754136
	.long	1075388923
	.align 8
.LC5:
	.long	0
	.long	1081507840
	.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){
  int a,b,h,m,theta1;
  double theta2,d,l;
  scanf("%d %d %d %d",&a,&b,&h,&m);
  theta1=6*m;
  theta2=30*h+0.5*m;
  d=fabs(theta1-theta2);
  if(d<=180) l=sqrt(a*a+b*b-2*a*b*cos(2*M_PI*d/360));
  if(d>180) l=sqrt(a*a+b*b-2*a*b*cos(2*M_PI*(360-d)/360));
  printf("%.20f",l);

  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){
  int a,b,h,m,theta1;
  double theta2,d,l;
  scanf("%d %d %d %d",&a,&b,&h,&m);
  theta1=6*m;
  theta2=30*h+0.5*m;
  d=fabs(theta1-theta2);
  if(d<=180) l=sqrt(a*a+b*b-2*a*b*cos(2*M_PI*d/360));
  if(d>180) l=sqrt(a*a+b*b-2*a*b*cos(2*M_PI*(360-d)/360));
  printf("%.20f",l);

  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.05314157066030666954 2.99301034645696084624 6.76643256752230737305 2.13078210400330281260 9.67311838972588233787 1.44238162407924574993 12.62354265143028619889 4.98351554812933006389 9.84885780179610570428 3.87047429526771713526
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){
  int a,b,h,m,theta1;
  double theta2,d,l;
  scanf("%d %d %d %d",&a,&b,&h,&m);
  theta1=6*m;
  theta2=30*h+0.5*m;
  d=fabs(theta1-theta2);
  if(d<=180) l=sqrt(a*a+b*b-2*a*b*cos(2*M_PI*d/360));
  if(d>180) l=sqrt(a*a+b*b-2*a*b*cos(2*M_PI*(360-d)/360));
  printf("%.20f",l);

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC6:
	.string	"%.20f"
	.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	$56, %rsp
	.cfi_def_cfa_offset 80
	movsd	%xmm0, 8(%rsp)
	leaq	28(%rsp), %rdx
	leaq	32(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	leaq	36(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	pxor	%xmm2, %xmm2
	movsd	8(%rsp), %xmm0
	cvtsi2sdl	%eax, %xmm3
	leal	(%rax,%rax,2), %edx
	mulsd	.LC1(%rip), %xmm3
	addl	%edx, %edx
	cvtsi2sdl	%edx, %xmm1
	imull	$30, 32(%rsp), %edx
	cvtsi2sdl	%edx, %xmm2
	addsd	%xmm3, %xmm2
	movsd	.LC3(%rip), %xmm3
	subsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm2
	andpd	.LC2(%rip), %xmm2
	comisd	%xmm2, %xmm3
	jnb	.L11
.L2:
	comisd	%xmm3, %xmm2
	ja	.L12
.L4:
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
	movsd	%xmm2, 8(%rsp)
	mulsd	.LC4(%rip), %xmm1
	divsd	.LC5(%rip), %xmm1
	movapd	%xmm1, %xmm0
	call	cos@PLT
	movl	%ebx, %eax
	pxor	%xmm1, %xmm1
	movl	%ebp, %edx
	imull	%ebx, %eax
	movapd	%xmm0, %xmm4
	pxor	%xmm0, %xmm0
	imull	%ebp, %ebx
	imull	%ebp, %edx
	addl	%ebx, %ebx
	cvtsi2sdl	%ebx, %xmm1
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm4, %xmm1
	subsd	%xmm1, %xmm0
	call	sqrt@PLT
	movq	.LC3(%rip), %rax
	movsd	8(%rsp), %xmm2
	movq	%rax, %xmm3
	jmp	.L2
.L12:
	movsd	.LC5(%rip), %xmm1
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
	movapd	%xmm1, %xmm0
	subsd	%xmm2, %xmm0
	mulsd	.LC4(%rip), %xmm0
	divsd	%xmm1, %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
	call	sqrt@PLT
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC3:
	.long	0
	.long	1080459264
	.align 8
.LC4:
	.long	1413754136
	.long	1075388923
	.align 8
.LC5:
	.long	0
	.long	1081507840
	.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	"%.20f"
	.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	$56, %rsp
	.cfi_def_cfa_offset 80
	movsd	%xmm0, 8(%rsp)
	leaq	28(%rsp), %rdx
	leaq	32(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	leaq	36(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	pxor	%xmm2, %xmm2
	movsd	8(%rsp), %xmm0
	cvtsi2sdl	%eax, %xmm3
	leal	(%rax,%rax,2), %edx
	mulsd	.LC1(%rip), %xmm3
	addl	%edx, %edx
	cvtsi2sdl	%edx, %xmm1
	imull	$30, 32(%rsp), %edx
	cvtsi2sdl	%edx, %xmm2
	addsd	%xmm3, %xmm2
	movsd	.LC3(%rip), %xmm3
	subsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm2
	andpd	.LC2(%rip), %xmm2
	comisd	%xmm2, %xmm3
	jnb	.L11
.L2:
	comisd	%xmm3, %xmm2
	ja	.L12
.L4:
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
	movsd	%xmm2, 8(%rsp)
	mulsd	.LC4(%rip), %xmm1
	divsd	.LC5(%rip), %xmm1
	movapd	%xmm1, %xmm0
	call	cos@PLT
	movl	%ebx, %eax
	pxor	%xmm1, %xmm1
	movl	%ebp, %edx
	imull	%ebx, %eax
	movapd	%xmm0, %xmm4
	pxor	%xmm0, %xmm0
	imull	%ebp, %ebx
	imull	%ebp, %edx
	addl	%ebx, %ebx
	cvtsi2sdl	%ebx, %xmm1
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm4, %xmm1
	subsd	%xmm1, %xmm0
	call	sqrt@PLT
	movq	.LC3(%rip), %rax
	movsd	8(%rsp), %xmm2
	movq	%rax, %xmm3
	jmp	.L2
.L12:
	movsd	.LC5(%rip), %xmm1
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
	movapd	%xmm1, %xmm0
	subsd	%xmm2, %xmm0
	mulsd	.LC4(%rip), %xmm0
	divsd	%xmm1, %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
	call	sqrt@PLT
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC3:
	.long	0
	.long	1080459264
	.align 8
.LC4:
	.long	1413754136
	.long	1075388923
	.align 8
.LC5:
	.long	0
	.long	1081507840
	.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:
```