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>

#define PI 3.1415926535897946264338327950288419716939937510L

int main(void)
{
    int A, B, H, M;
    long double theta, ans;
    scanf("%d %d %d %d", &A, &B, &H, &M);
    theta = 2 * PI * ((long double)H / 12.0L + ((long double)M / 60.0L) / 12.0L - (long double)M / 60.0L);
    ans = sqrtl((long double)(A * A + B * B) - 2 * (long double)(A * B) * cosl(theta));
    printf("%20.20Lf\n", ans);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC5:
	.string	"%20.20Lf\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	$56, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	36(%rsp), %r8
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	fildl	36(%rsp)
	movl	24(%rsp), %ebx
	subq	$16, %rsp
	.cfi_def_cfa_offset 96
	movl	44(%rsp), %ebp
	fdivs	.LC1(%rip)
	fildl	48(%rsp)
	flds	.LC2(%rip)
	fdivr	%st, %st(1)
	fdivr	%st(2), %st
	faddp	%st, %st(1)
	fsubp	%st, %st(1)
	fldt	.LC3(%rip)
	fmulp	%st, %st(1)
	fstpt	(%rsp)
	call	cosl@PLT
	movl	%ebx, %eax
	movl	%ebp, %edx
	popq	%r8
	.cfi_def_cfa_offset 88
	imull	%ebx, %eax
	popq	%r9
	.cfi_def_cfa_offset 80
	imull	%ebp, %edx
	imull	%ebp, %ebx
	addl	%edx, %eax
	movl	%eax, 12(%rsp)
	fildl	12(%rsp)
	movl	%ebx, 12(%rsp)
	fildl	12(%rsp)
	fadd	%st(0), %st
	fmulp	%st, %st(2)
	fsubp	%st, %st(1)
	fldz
	fucomip	%st(1), %st
	ja	.L7
	fsqrt
.L4:
	subq	$16, %rsp
	.cfi_def_cfa_offset 96
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	popq	%rax
	.cfi_def_cfa_offset 88
	popq	%rdx
	.cfi_def_cfa_offset 80
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	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
.L7:
	.cfi_restore_state
	pushq	%rcx
	.cfi_def_cfa_offset 88
	pushq	%rcx
	.cfi_def_cfa_offset 96
	fstpt	(%rsp)
	call	sqrtl@PLT
	popq	%rsi
	.cfi_def_cfa_offset 88
	popq	%rdi
	.cfi_def_cfa_offset 80
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1114636288
	.align 4
.LC2:
	.long	1094713344
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	560519990
	.long	-921707870
	.long	16385
	.long	0
	.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"
.LC5:
	.string	"%20.20Lf\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	$56, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	36(%rsp), %r8
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	fildl	36(%rsp)
	movl	24(%rsp), %ebx
	subq	$16, %rsp
	.cfi_def_cfa_offset 96
	movl	44(%rsp), %ebp
	fdivs	.LC1(%rip)
	fildl	48(%rsp)
	flds	.LC2(%rip)
	fdivr	%st, %st(1)
	fdivr	%st(2), %st
	faddp	%st, %st(1)
	fsubp	%st, %st(1)
	fldt	.LC3(%rip)
	fmulp	%st, %st(1)
	fstpt	(%rsp)
	call	cosl@PLT
	movl	%ebx, %eax
	movl	%ebp, %edx
	popq	%r8
	.cfi_def_cfa_offset 88
	imull	%ebx, %eax
	popq	%r9
	.cfi_def_cfa_offset 80
	imull	%ebp, %edx
	imull	%ebp, %ebx
	addl	%edx, %eax
	movl	%eax, 12(%rsp)
	fildl	12(%rsp)
	movl	%ebx, 12(%rsp)
	fildl	12(%rsp)
	fadd	%st(0), %st
	fmulp	%st, %st(2)
	fsubp	%st, %st(1)
	fldz
	fucomip	%st(1), %st
	ja	.L7
	fsqrt
.L4:
	subq	$16, %rsp
	.cfi_def_cfa_offset 96
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	popq	%rax
	.cfi_def_cfa_offset 88
	popq	%rdx
	.cfi_def_cfa_offset 80
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	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
.L7:
	.cfi_restore_state
	pushq	%rcx
	.cfi_def_cfa_offset 88
	pushq	%rcx
	.cfi_def_cfa_offset 96
	fstpt	(%rsp)
	call	sqrtl@PLT
	popq	%rsi
	.cfi_def_cfa_offset 88
	popq	%rdi
	.cfi_def_cfa_offset 80
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1114636288
	.align 4
.LC2:
	.long	1094713344
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	560519990
	.long	-921707870
	.long	16385
	.long	0
	.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"
.LC5:
	.string	"%20.20Lf\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	$56, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	36(%rsp), %r8
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	fildl	36(%rsp)
	movl	24(%rsp), %ebx
	subq	$16, %rsp
	.cfi_def_cfa_offset 96
	movl	44(%rsp), %ebp
	fdivs	.LC1(%rip)
	fildl	48(%rsp)
	flds	.LC2(%rip)
	fdivr	%st, %st(1)
	fdivr	%st(2), %st
	faddp	%st, %st(1)
	fsubp	%st, %st(1)
	fldt	.LC3(%rip)
	fmulp	%st, %st(1)
	fstpt	(%rsp)
	call	cosl@PLT
	movl	%ebx, %eax
	movl	%ebp, %edx
	popq	%r8
	.cfi_def_cfa_offset 88
	imull	%ebx, %eax
	popq	%r9
	.cfi_def_cfa_offset 80
	imull	%ebp, %edx
	imull	%ebp, %ebx
	addl	%edx, %eax
	movl	%eax, 12(%rsp)
	fildl	12(%rsp)
	movl	%ebx, 12(%rsp)
	fildl	12(%rsp)
	fadd	%st(0), %st
	fmulp	%st, %st(2)
	fsubp	%st, %st(1)
	fldz
	fucomip	%st(1), %st
	ja	.L7
	fsqrt
.L4:
	subq	$16, %rsp
	.cfi_def_cfa_offset 96
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	popq	%rax
	.cfi_def_cfa_offset 88
	popq	%rdx
	.cfi_def_cfa_offset 80
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	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
.L7:
	.cfi_restore_state
	pushq	%rcx
	.cfi_def_cfa_offset 88
	pushq	%rcx
	.cfi_def_cfa_offset 96
	fstpt	(%rsp)
	call	sqrtl@PLT
	popq	%rsi
	.cfi_def_cfa_offset 88
	popq	%rdi
	.cfi_def_cfa_offset 80
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1114636288
	.align 4
.LC2:
	.long	1094713344
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	560519990
	.long	-921707870
	.long	16385
	.long	0
	.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>

#define PI 3.1415926535897946264338327950288419716939937510L

int main(void)
{
    int A, B, H, M;
    long double theta, ans;
    scanf("%d %d %d %d", &A, &B, &H, &M);
    theta = 2 * PI * ((long double)H / 12.0L + ((long double)M / 60.0L) / 12.0L - (long double)M / 60.0L);
    ans = sqrtl((long double)(A * A + B * B) - 2 * (long double)(A * B) * cosl(theta));
    printf("%20.20Lf\n", ans);
    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>

#define PI 3.1415926535897946264338327950288419716939937510L

int main(void)
{
    int A, B, H, M;
    long double theta, ans;
    scanf("%d %d %d %d", &A, &B, &H, &M);
    theta = 2 * PI * ((long double)H / 12.0L + ((long double)M / 60.0L) / 12.0L - (long double)M / 60.0L);
    ans = sqrtl((long double)(A * A + B * B) - 2 * (long double)(A * B) * cosl(theta));
    printf("%20.20Lf\n", ans);
    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.05314157066031580741
 2.99301034645696164031
 6.76643256752231106628
 2.13078210400330263848
 9.67311838972588763658
 1.44238162407924569496
 12.62354265143029190092
 4.98351554812932975554
 9.84885780179608696493
 3.87047429526772257622

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>

#define PI 3.1415926535897946264338327950288419716939937510L

int main(void)
{
    int A, B, H, M;
    long double theta, ans;
    scanf("%d %d %d %d", &A, &B, &H, &M);
    theta = 2 * PI * ((long double)H / 12.0L + ((long double)M / 60.0L) / 12.0L - (long double)M / 60.0L);
    ans = sqrtl((long double)(A * A + B * B) - 2 * (long double)(A * B) * cosl(theta));
    printf("%20.20Lf\n", ans);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC5:
	.string	"%20.20Lf\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	$56, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	36(%rsp), %r8
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	fildl	36(%rsp)
	movl	24(%rsp), %ebx
	subq	$16, %rsp
	.cfi_def_cfa_offset 96
	movl	44(%rsp), %ebp
	fdivs	.LC1(%rip)
	fildl	48(%rsp)
	flds	.LC2(%rip)
	fdivr	%st, %st(1)
	fdivr	%st(2), %st
	faddp	%st, %st(1)
	fsubp	%st, %st(1)
	fldt	.LC3(%rip)
	fmulp	%st, %st(1)
	fstpt	(%rsp)
	call	cosl@PLT
	movl	%ebx, %eax
	movl	%ebp, %edx
	popq	%r8
	.cfi_def_cfa_offset 88
	imull	%ebx, %eax
	popq	%r9
	.cfi_def_cfa_offset 80
	imull	%ebp, %edx
	imull	%ebp, %ebx
	addl	%edx, %eax
	movl	%eax, 12(%rsp)
	fildl	12(%rsp)
	movl	%ebx, 12(%rsp)
	fildl	12(%rsp)
	fadd	%st(0), %st
	fmulp	%st, %st(2)
	fsubp	%st, %st(1)
	fldz
	fucomip	%st(1), %st
	ja	.L7
	fsqrt
.L4:
	subq	$16, %rsp
	.cfi_def_cfa_offset 96
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	popq	%rax
	.cfi_def_cfa_offset 88
	popq	%rdx
	.cfi_def_cfa_offset 80
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	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
.L7:
	.cfi_restore_state
	pushq	%rcx
	.cfi_def_cfa_offset 88
	pushq	%rcx
	.cfi_def_cfa_offset 96
	fstpt	(%rsp)
	call	sqrtl@PLT
	popq	%rsi
	.cfi_def_cfa_offset 88
	popq	%rdi
	.cfi_def_cfa_offset 80
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1114636288
	.align 4
.LC2:
	.long	1094713344
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	560519990
	.long	-921707870
	.long	16385
	.long	0
	.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"
.LC5:
	.string	"%20.20Lf\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	$56, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	36(%rsp), %r8
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	fildl	36(%rsp)
	movl	24(%rsp), %ebx
	subq	$16, %rsp
	.cfi_def_cfa_offset 96
	movl	44(%rsp), %ebp
	fdivs	.LC1(%rip)
	fildl	48(%rsp)
	flds	.LC2(%rip)
	fdivr	%st, %st(1)
	fdivr	%st(2), %st
	faddp	%st, %st(1)
	fsubp	%st, %st(1)
	fldt	.LC3(%rip)
	fmulp	%st, %st(1)
	fstpt	(%rsp)
	call	cosl@PLT
	movl	%ebx, %eax
	movl	%ebp, %edx
	popq	%r8
	.cfi_def_cfa_offset 88
	imull	%ebx, %eax
	popq	%r9
	.cfi_def_cfa_offset 80
	imull	%ebp, %edx
	imull	%ebp, %ebx
	addl	%edx, %eax
	movl	%eax, 12(%rsp)
	fildl	12(%rsp)
	movl	%ebx, 12(%rsp)
	fildl	12(%rsp)
	fadd	%st(0), %st
	fmulp	%st, %st(2)
	fsubp	%st, %st(1)
	fldz
	fucomip	%st(1), %st
	ja	.L7
	fsqrt
.L4:
	subq	$16, %rsp
	.cfi_def_cfa_offset 96
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	popq	%rax
	.cfi_def_cfa_offset 88
	popq	%rdx
	.cfi_def_cfa_offset 80
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	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
.L7:
	.cfi_restore_state
	pushq	%rcx
	.cfi_def_cfa_offset 88
	pushq	%rcx
	.cfi_def_cfa_offset 96
	fstpt	(%rsp)
	call	sqrtl@PLT
	popq	%rsi
	.cfi_def_cfa_offset 88
	popq	%rdi
	.cfi_def_cfa_offset 80
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1114636288
	.align 4
.LC2:
	.long	1094713344
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	560519990
	.long	-921707870
	.long	16385
	.long	0
	.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:
```