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

```c
//ABC145
#include <stdio.h>
#include <math.h>

int main(int argc, char const *argv[]) {
    double a,b,x,y;
    double rad,deg;
    scanf("%lf",&a);
    scanf("%lf",&b );
    scanf("%lf",&x );

    if (2*x > a*a*b ) {
        y = (2*((a*a*b)-x))/(a*a*a);
        rad = atanl(y);
    } else if (2*x < a*a*b) {
        y = (a*b*b)/(2*x);
        rad = atanl(y);
    } else {
        rad = atanl(1);
    }
    deg = (rad * 180) / (4*atanl(1));

    printf("%2.8lf\n",deg);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lf"
.LC4:
	.string	"%2.8lf\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	.LC1(%rip), %rbp
	movq	%rbp, %rdi
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	24(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movsd	16(%rsp), %xmm0
	movsd	24(%rsp), %xmm4
	movsd	32(%rsp), %xmm2
	movapd	%xmm0, %xmm5
	mulsd	%xmm0, %xmm5
	movapd	%xmm2, %xmm3
	addsd	%xmm2, %xmm3
	movapd	%xmm5, %xmm1
	mulsd	%xmm4, %xmm1
	comisd	%xmm1, %xmm3
	jbe	.L10
	subsd	%xmm2, %xmm1
	mulsd	%xmm5, %xmm0
	addsd	%xmm1, %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rsp)
.L13:
	fldl	8(%rsp)
	subq	$16, %rsp
	.cfi_def_cfa_offset 80
	fstpt	(%rsp)
	call	atanl@PLT
	popq	%rax
	.cfi_def_cfa_offset 72
	popq	%rdx
	.cfi_def_cfa_offset 64
	fstpl	8(%rsp)
	movsd	8(%rsp), %xmm0
.L4:
	mulsd	.LC2(%rip), %xmm0
	fldpi
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	movsd	%xmm0, 8(%rsp)
	fdivrl	8(%rsp)
	fstpl	8(%rsp)
	movsd	8(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	comisd	%xmm3, %xmm1
	jbe	.L11
	mulsd	%xmm4, %xmm0
	mulsd	%xmm4, %xmm0
	divsd	%xmm3, %xmm0
	movsd	%xmm0, 8(%rsp)
	jmp	.L13
.L11:
	movsd	.LC0(%rip), %xmm0
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1413754136
	.long	1072243195
	.align 8
.LC2:
	.long	0
	.long	1080459264
	.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
.LC1:
	.string	"%lf"
.LC4:
	.string	"%2.8lf\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	.LC1(%rip), %rbp
	movq	%rbp, %rdi
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	24(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movsd	16(%rsp), %xmm0
	movsd	24(%rsp), %xmm4
	movsd	32(%rsp), %xmm2
	movapd	%xmm0, %xmm5
	mulsd	%xmm0, %xmm5
	movapd	%xmm2, %xmm3
	addsd	%xmm2, %xmm3
	movapd	%xmm5, %xmm1
	mulsd	%xmm4, %xmm1
	comisd	%xmm1, %xmm3
	jbe	.L10
	subsd	%xmm2, %xmm1
	mulsd	%xmm5, %xmm0
	addsd	%xmm1, %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rsp)
.L13:
	fldl	8(%rsp)
	subq	$16, %rsp
	.cfi_def_cfa_offset 80
	fstpt	(%rsp)
	call	atanl@PLT
	popq	%rax
	.cfi_def_cfa_offset 72
	popq	%rdx
	.cfi_def_cfa_offset 64
	fstpl	8(%rsp)
	movsd	8(%rsp), %xmm0
.L4:
	mulsd	.LC2(%rip), %xmm0
	fldpi
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	movsd	%xmm0, 8(%rsp)
	fdivrl	8(%rsp)
	fstpl	8(%rsp)
	movsd	8(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	comisd	%xmm3, %xmm1
	jbe	.L11
	mulsd	%xmm4, %xmm0
	mulsd	%xmm4, %xmm0
	divsd	%xmm3, %xmm0
	movsd	%xmm0, 8(%rsp)
	jmp	.L13
.L11:
	movsd	.LC0(%rip), %xmm0
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1413754136
	.long	1072243195
	.align 8
.LC2:
	.long	0
	.long	1080459264
	.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
.LC1:
	.string	"%lf"
.LC4:
	.string	"%2.8lf\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	.LC1(%rip), %rbp
	movq	%rbp, %rdi
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	24(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movsd	16(%rsp), %xmm0
	movsd	24(%rsp), %xmm4
	movsd	32(%rsp), %xmm2
	movapd	%xmm0, %xmm5
	mulsd	%xmm0, %xmm5
	movapd	%xmm2, %xmm3
	addsd	%xmm2, %xmm3
	movapd	%xmm5, %xmm1
	mulsd	%xmm4, %xmm1
	comisd	%xmm1, %xmm3
	jbe	.L10
	subsd	%xmm2, %xmm1
	mulsd	%xmm5, %xmm0
	addsd	%xmm1, %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rsp)
.L13:
	fldl	8(%rsp)
	subq	$16, %rsp
	.cfi_def_cfa_offset 80
	fstpt	(%rsp)
	call	atanl@PLT
	popq	%rax
	.cfi_def_cfa_offset 72
	popq	%rdx
	.cfi_def_cfa_offset 64
	fstpl	8(%rsp)
	movsd	8(%rsp), %xmm0
.L4:
	mulsd	.LC2(%rip), %xmm0
	fldpi
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	movsd	%xmm0, 8(%rsp)
	fdivrl	8(%rsp)
	fstpl	8(%rsp)
	movsd	8(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	comisd	%xmm3, %xmm1
	jbe	.L11
	mulsd	%xmm4, %xmm0
	mulsd	%xmm4, %xmm0
	divsd	%xmm3, %xmm0
	movsd	%xmm0, 8(%rsp)
	jmp	.L13
.L11:
	movsd	.LC0(%rip), %xmm0
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1413754136
	.long	1072243195
	.align 8
.LC2:
	.long	0
	.long	1080459264
	.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
//ABC145
#include <stdio.h>
#include <math.h>

int main(int argc, char const *argv[]) {
    double a,b,x,y;
    double rad,deg;
    scanf("%lf",&a);
    scanf("%lf",&b );
    scanf("%lf",&x );

    if (2*x > a*a*b ) {
        y = (2*((a*a*b)-x))/(a*a*a);
        rad = atanl(y);
    } else if (2*x < a*a*b) {
        y = (a*b*b)/(2*x);
        rad = atanl(y);
    } else {
        rad = atanl(1);
    }
    deg = (rad * 180) / (4*atanl(1));

    printf("%2.8lf\n",deg);

    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
//ABC145
#include <stdio.h>
#include <math.h>

int main(int argc, char const *argv[]) {
    double a,b,x,y;
    double rad,deg;
    scanf("%lf",&a);
    scanf("%lf",&b );
    scanf("%lf",&x );

    if (2*x > a*a*b ) {
        y = (2*((a*a*b)-x))/(a*a*a);
        rad = atanl(y);
    } else if (2*x < a*a*b) {
        y = (a*b*b)/(2*x);
        rad = atanl(y);
    } else {
        rad = atanl(1);
    }
    deg = (rad * 180) / (4*atanl(1));

    printf("%2.8lf\n",deg);

    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:

2 4 4
 12 30 10
 3 2 8
 5 30 10
 3 4 8
 2 30 10
 3 4 3
 2 18 10
 2 18 18
 2 18 26

75.96375653
 89.89389683
 36.86989765
 89.74535377
 71.56505118
 89.36340642
 82.87498365
 88.23217294
 86.82016988
 85.41202188

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

```c
//ABC145
#include <stdio.h>
#include <math.h>

int main(int argc, char const *argv[]) {
    double a,b,x,y;
    double rad,deg;
    scanf("%lf",&a);
    scanf("%lf",&b );
    scanf("%lf",&x );

    if (2*x > a*a*b ) {
        y = (2*((a*a*b)-x))/(a*a*a);
        rad = atanl(y);
    } else if (2*x < a*a*b) {
        y = (a*b*b)/(2*x);
        rad = atanl(y);
    } else {
        rad = atanl(1);
    }
    deg = (rad * 180) / (4*atanl(1));

    printf("%2.8lf\n",deg);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lf"
.LC4:
	.string	"%2.8lf\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	.LC1(%rip), %rbp
	movq	%rbp, %rdi
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	24(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movsd	16(%rsp), %xmm0
	movsd	24(%rsp), %xmm4
	movsd	32(%rsp), %xmm2
	movapd	%xmm0, %xmm5
	mulsd	%xmm0, %xmm5
	movapd	%xmm2, %xmm3
	addsd	%xmm2, %xmm3
	movapd	%xmm5, %xmm1
	mulsd	%xmm4, %xmm1
	comisd	%xmm1, %xmm3
	jbe	.L10
	subsd	%xmm2, %xmm1
	mulsd	%xmm5, %xmm0
	addsd	%xmm1, %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rsp)
.L13:
	fldl	8(%rsp)
	subq	$16, %rsp
	.cfi_def_cfa_offset 80
	fstpt	(%rsp)
	call	atanl@PLT
	popq	%rax
	.cfi_def_cfa_offset 72
	popq	%rdx
	.cfi_def_cfa_offset 64
	fstpl	8(%rsp)
	movsd	8(%rsp), %xmm0
.L4:
	mulsd	.LC2(%rip), %xmm0
	fldpi
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	movsd	%xmm0, 8(%rsp)
	fdivrl	8(%rsp)
	fstpl	8(%rsp)
	movsd	8(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	comisd	%xmm3, %xmm1
	jbe	.L11
	mulsd	%xmm4, %xmm0
	mulsd	%xmm4, %xmm0
	divsd	%xmm3, %xmm0
	movsd	%xmm0, 8(%rsp)
	jmp	.L13
.L11:
	movsd	.LC0(%rip), %xmm0
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1413754136
	.long	1072243195
	.align 8
.LC2:
	.long	0
	.long	1080459264
	.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
.LC1:
	.string	"%lf"
.LC4:
	.string	"%2.8lf\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	.LC1(%rip), %rbp
	movq	%rbp, %rdi
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	24(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movsd	16(%rsp), %xmm0
	movsd	24(%rsp), %xmm4
	movsd	32(%rsp), %xmm2
	movapd	%xmm0, %xmm5
	mulsd	%xmm0, %xmm5
	movapd	%xmm2, %xmm3
	addsd	%xmm2, %xmm3
	movapd	%xmm5, %xmm1
	mulsd	%xmm4, %xmm1
	comisd	%xmm1, %xmm3
	jbe	.L10
	subsd	%xmm2, %xmm1
	mulsd	%xmm5, %xmm0
	addsd	%xmm1, %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rsp)
.L13:
	fldl	8(%rsp)
	subq	$16, %rsp
	.cfi_def_cfa_offset 80
	fstpt	(%rsp)
	call	atanl@PLT
	popq	%rax
	.cfi_def_cfa_offset 72
	popq	%rdx
	.cfi_def_cfa_offset 64
	fstpl	8(%rsp)
	movsd	8(%rsp), %xmm0
.L4:
	mulsd	.LC2(%rip), %xmm0
	fldpi
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	movsd	%xmm0, 8(%rsp)
	fdivrl	8(%rsp)
	fstpl	8(%rsp)
	movsd	8(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	comisd	%xmm3, %xmm1
	jbe	.L11
	mulsd	%xmm4, %xmm0
	mulsd	%xmm4, %xmm0
	divsd	%xmm3, %xmm0
	movsd	%xmm0, 8(%rsp)
	jmp	.L13
.L11:
	movsd	.LC0(%rip), %xmm0
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1413754136
	.long	1072243195
	.align 8
.LC2:
	.long	0
	.long	1080459264
	.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:
```