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, x;
    scanf("%lf %lf %lf", &a, &b, &x);

    if(x == a*a*b){
        printf("%lf", (double)0);
        return 0;
    }

    double ans;
    double l;
    if(a*a/2*b <= x){
        l = 2/(a*a)*(x-a*a*b/2);
        ans = 90- atan(a/(b-l))/M_PI*180;
    }else{
        l = 2*x/(a*b);
        ans = 90- atan(l/b)/M_PI*180;
    }

    printf("%lf", ans);

    return 0;

}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lf %lf %lf"
.LC1:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movsd	(%rsp), %xmm2
	movsd	8(%rsp), %xmm3
	movsd	16(%rsp), %xmm1
	movapd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	movapd	%xmm0, %xmm4
	mulsd	%xmm3, %xmm4
	ucomisd	%xmm1, %xmm4
	jp	.L2
	je	.L15
.L2:
	movsd	.LC3(%rip), %xmm6
	movapd	%xmm0, %xmm5
	mulsd	%xmm6, %xmm5
	mulsd	%xmm3, %xmm5
	comisd	%xmm5, %xmm1
	jnb	.L16
	mulsd	%xmm3, %xmm2
	addsd	%xmm1, %xmm1
	divsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	divsd	%xmm3, %xmm0
.L13:
	call	atan@PLT
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC1(%rip), %rsi
	movapd	%xmm0, %xmm1
	divsd	.LC5(%rip), %xmm1
	movsd	.LC7(%rip), %xmm0
	mulsd	.LC6(%rip), %xmm1
	subsd	%xmm1, %xmm0
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	mulsd	%xmm6, %xmm4
	subsd	%xmm4, %xmm1
	movsd	.LC4(%rip), %xmm4
	divsd	%xmm0, %xmm4
	mulsd	%xmm4, %xmm1
	subsd	%xmm1, %xmm3
	divsd	%xmm3, %xmm2
	movapd	%xmm2, %xmm0
	jmp	.L13
.L15:
	pxor	%xmm0, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.align 8
.LC5:
	.long	1413754136
	.long	1074340347
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC7:
	.long	0
	.long	1079410688
	.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"
.LC1:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movsd	(%rsp), %xmm2
	movsd	8(%rsp), %xmm3
	movsd	16(%rsp), %xmm1
	movapd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	movapd	%xmm0, %xmm4
	mulsd	%xmm3, %xmm4
	ucomisd	%xmm1, %xmm4
	jp	.L2
	je	.L15
.L2:
	movsd	.LC3(%rip), %xmm6
	movapd	%xmm0, %xmm5
	mulsd	%xmm6, %xmm5
	mulsd	%xmm3, %xmm5
	comisd	%xmm5, %xmm1
	jnb	.L16
	mulsd	%xmm3, %xmm2
	addsd	%xmm1, %xmm1
	divsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	divsd	%xmm3, %xmm0
.L13:
	call	atan@PLT
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC1(%rip), %rsi
	movapd	%xmm0, %xmm1
	divsd	.LC5(%rip), %xmm1
	movsd	.LC7(%rip), %xmm0
	mulsd	.LC6(%rip), %xmm1
	subsd	%xmm1, %xmm0
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	mulsd	%xmm6, %xmm4
	subsd	%xmm4, %xmm1
	movsd	.LC4(%rip), %xmm4
	divsd	%xmm0, %xmm4
	mulsd	%xmm4, %xmm1
	subsd	%xmm1, %xmm3
	divsd	%xmm3, %xmm2
	movapd	%xmm2, %xmm0
	jmp	.L13
.L15:
	pxor	%xmm0, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.align 8
.LC5:
	.long	1413754136
	.long	1074340347
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC7:
	.long	0
	.long	1079410688
	.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"
.LC1:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movsd	(%rsp), %xmm2
	movsd	8(%rsp), %xmm3
	movsd	16(%rsp), %xmm1
	movapd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	movapd	%xmm0, %xmm4
	mulsd	%xmm3, %xmm4
	ucomisd	%xmm1, %xmm4
	jp	.L2
	je	.L15
.L2:
	movsd	.LC3(%rip), %xmm6
	movapd	%xmm0, %xmm5
	mulsd	%xmm6, %xmm5
	mulsd	%xmm3, %xmm5
	comisd	%xmm5, %xmm1
	jnb	.L16
	mulsd	%xmm3, %xmm2
	addsd	%xmm1, %xmm1
	divsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	divsd	%xmm3, %xmm0
.L13:
	call	atan@PLT
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC1(%rip), %rsi
	movapd	%xmm0, %xmm1
	divsd	.LC5(%rip), %xmm1
	movsd	.LC7(%rip), %xmm0
	mulsd	.LC6(%rip), %xmm1
	subsd	%xmm1, %xmm0
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	mulsd	%xmm6, %xmm4
	subsd	%xmm4, %xmm1
	movsd	.LC4(%rip), %xmm4
	divsd	%xmm0, %xmm4
	mulsd	%xmm4, %xmm1
	subsd	%xmm1, %xmm3
	divsd	%xmm3, %xmm2
	movapd	%xmm2, %xmm0
	jmp	.L13
.L15:
	pxor	%xmm0, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.align 8
.LC5:
	.long	1413754136
	.long	1074340347
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC7:
	.long	0
	.long	1079410688
	.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, x;
    scanf("%lf %lf %lf", &a, &b, &x);

    if(x == a*a*b){
        printf("%lf", (double)0);
        return 0;
    }

    double ans;
    double l;
    if(a*a/2*b <= x){
        l = 2/(a*a)*(x-a*a*b/2);
        ans = 90- atan(a/(b-l))/M_PI*180;
    }else{
        l = 2*x/(a*b);
        ans = 90- atan(l/b)/M_PI*180;
    }

    printf("%lf", 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>

int main(void){
    double a, b, x;
    scanf("%lf %lf %lf", &a, &b, &x);

    if(x == a*a*b){
        printf("%lf", (double)0);
        return 0;
    }

    double ans;
    double l;
    if(a*a/2*b <= x){
        l = 2/(a*a)*(x-a*a*b/2);
        ans = 90- atan(a/(b-l))/M_PI*180;
    }else{
        l = 2*x/(a*b);
        ans = 90- atan(l/b)/M_PI*180;
    }

    printf("%lf", 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:

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.963757 89.893897 36.869898 89.745354 71.565051 89.363406 82.874984 88.232173 86.820170 85.412022
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, x;
    scanf("%lf %lf %lf", &a, &b, &x);

    if(x == a*a*b){
        printf("%lf", (double)0);
        return 0;
    }

    double ans;
    double l;
    if(a*a/2*b <= x){
        l = 2/(a*a)*(x-a*a*b/2);
        ans = 90- atan(a/(b-l))/M_PI*180;
    }else{
        l = 2*x/(a*b);
        ans = 90- atan(l/b)/M_PI*180;
    }

    printf("%lf", ans);

    return 0;

}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lf %lf %lf"
.LC1:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movsd	(%rsp), %xmm2
	movsd	8(%rsp), %xmm3
	movsd	16(%rsp), %xmm1
	movapd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	movapd	%xmm0, %xmm4
	mulsd	%xmm3, %xmm4
	ucomisd	%xmm1, %xmm4
	jp	.L2
	je	.L15
.L2:
	movsd	.LC3(%rip), %xmm6
	movapd	%xmm0, %xmm5
	mulsd	%xmm6, %xmm5
	mulsd	%xmm3, %xmm5
	comisd	%xmm5, %xmm1
	jnb	.L16
	mulsd	%xmm3, %xmm2
	addsd	%xmm1, %xmm1
	divsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	divsd	%xmm3, %xmm0
.L13:
	call	atan@PLT
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC1(%rip), %rsi
	movapd	%xmm0, %xmm1
	divsd	.LC5(%rip), %xmm1
	movsd	.LC7(%rip), %xmm0
	mulsd	.LC6(%rip), %xmm1
	subsd	%xmm1, %xmm0
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	mulsd	%xmm6, %xmm4
	subsd	%xmm4, %xmm1
	movsd	.LC4(%rip), %xmm4
	divsd	%xmm0, %xmm4
	mulsd	%xmm4, %xmm1
	subsd	%xmm1, %xmm3
	divsd	%xmm3, %xmm2
	movapd	%xmm2, %xmm0
	jmp	.L13
.L15:
	pxor	%xmm0, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.align 8
.LC5:
	.long	1413754136
	.long	1074340347
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC7:
	.long	0
	.long	1079410688
	.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"
.LC1:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movsd	(%rsp), %xmm2
	movsd	8(%rsp), %xmm3
	movsd	16(%rsp), %xmm1
	movapd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	movapd	%xmm0, %xmm4
	mulsd	%xmm3, %xmm4
	ucomisd	%xmm1, %xmm4
	jp	.L2
	je	.L15
.L2:
	movsd	.LC3(%rip), %xmm6
	movapd	%xmm0, %xmm5
	mulsd	%xmm6, %xmm5
	mulsd	%xmm3, %xmm5
	comisd	%xmm5, %xmm1
	jnb	.L16
	mulsd	%xmm3, %xmm2
	addsd	%xmm1, %xmm1
	divsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	divsd	%xmm3, %xmm0
.L13:
	call	atan@PLT
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC1(%rip), %rsi
	movapd	%xmm0, %xmm1
	divsd	.LC5(%rip), %xmm1
	movsd	.LC7(%rip), %xmm0
	mulsd	.LC6(%rip), %xmm1
	subsd	%xmm1, %xmm0
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	mulsd	%xmm6, %xmm4
	subsd	%xmm4, %xmm1
	movsd	.LC4(%rip), %xmm4
	divsd	%xmm0, %xmm4
	mulsd	%xmm4, %xmm1
	subsd	%xmm1, %xmm3
	divsd	%xmm3, %xmm2
	movapd	%xmm2, %xmm0
	jmp	.L13
.L15:
	pxor	%xmm0, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.align 8
.LC5:
	.long	1413754136
	.long	1074340347
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC7:
	.long	0
	.long	1079410688
	.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:
```