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

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

double nibutan1(double a, double b, double x);
double nibutan2(double a, double b, double x);

int main(void)
{
    double a, b, x;

    double theta;//角度
    double ans;

    scanf("%lf %lf %lf",&a, &b, &x);

    //場合分けする（図１の時）

    
    theta = nibutan1(a, b, x);
    if(a >= b*tan(M_PI/2-theta)){
        printf("%.10f",theta*180/M_PI);
        return 0;
    }
        //引き算する方（図２）
    theta = nibutan2(a, b, x);
    printf("%.10f",theta*180/M_PI);
    return 0;
}




double nibutan1(double a, double b, double x)
{
    double small = 0;
    double big = M_PI;
    double half = M_PI/2;

    for(int i=0; i<1000000; i++){
        if(fabs(x - (a*b*b*tan(M_PI/2-half))/2) < 0.00000001){
            return half;
        } else if(x < (a*b*b*tan(M_PI/2-half))/2){
            small = half;
        } else {
            big = half;
        }
        half = (big + small)/2;
    }

    return half;

}


double nibutan2(double a, double b, double x)
{
    double small = 0;
    double big = M_PI;
    double half = M_PI/2;

    long double volume = a*a*b;

    for(int i=0; i<1000000; i++){
        if(fabs(x - volume + (a*a*a*tan(half))/2) < 0.00000001){
            return half;
        } else if(x < volume - (a*a*a*tan(half))/2){
            small = half;
        } else {
            big = half;
        }
        half = (big + small)/2;
    }

    return half;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lf %lf %lf"
.LC4:
	.string	"%.10f"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	-24(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	movq	-40(%rbp), %rax
	movapd	%xmm1, %xmm2
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	nibutan1
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	movsd	.LC1(%rip), %xmm0
	subsd	-16(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	tan@PLT
	movsd	-32(%rbp), %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-40(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L8
	movsd	-16(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L5
.L8:
	movsd	-24(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	movq	-40(%rbp), %rax
	movapd	%xmm1, %xmm2
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	nibutan2
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
.L5:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	nibutan1
	.type	nibutan1, @function
nibutan1:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movsd	%xmm0, -40(%rbp)
	movsd	%xmm1, -48(%rbp)
	movsd	%xmm2, -56(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L10
.L17:
	movsd	-40(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	.LC1(%rip), %xmm0
	movapd	%xmm0, %xmm4
	subsd	-8(%rbp), %xmm4
	movq	%xmm4, %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-64(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	-56(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	movq	.LC7(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC8(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L20
	movsd	-8(%rbp), %xmm0
	jmp	.L13
.L20:
	movsd	-40(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	.LC1(%rip), %xmm0
	movapd	%xmm0, %xmm6
	subsd	-8(%rbp), %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-64(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	comisd	-56(%rbp), %xmm0
	jbe	.L21
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	jmp	.L16
.L21:
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
.L16:
	movsd	-16(%rbp), %xmm0
	addsd	-24(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	addl	$1, -28(%rbp)
.L10:
	cmpl	$999999, -28(%rbp)
	jle	.L17
	movsd	-8(%rbp), %xmm0
.L13:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nibutan1, .-nibutan1
	.globl	nibutan2
	.type	nibutan2, @function
nibutan2:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movsd	%xmm0, -56(%rbp)
	movsd	%xmm1, -64(%rbp)
	movsd	%xmm2, -72(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -40(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	mulsd	-64(%rbp), %xmm0
	movsd	%xmm0, -96(%rbp)
	fldl	-96(%rbp)
	fstpt	-16(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L23
.L30:
	fldl	-72(%rbp)
	fldt	-16(%rbp)
	fsubrp	%st, %st(1)
	fstpt	-96(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	mulsd	-56(%rbp), %xmm0
	movsd	%xmm0, -80(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-80(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -80(%rbp)
	fldl	-80(%rbp)
	fldt	-96(%rbp)
	faddp	%st, %st(1)
	fstpl	-96(%rbp)
	movsd	-96(%rbp), %xmm1
	movq	.LC7(%rip), %xmm0
	andpd	%xmm0, %xmm1
	movsd	.LC8(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L33
	movsd	-24(%rbp), %xmm0
	jmp	.L26
.L33:
	fldl	-72(%rbp)
	fstpt	-96(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	mulsd	-56(%rbp), %xmm0
	movsd	%xmm0, -80(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-80(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -80(%rbp)
	fldl	-80(%rbp)
	fldt	-16(%rbp)
	fsubp	%st, %st(1)
	fldt	-96(%rbp)
	fxch	%st(1)
	fcomip	%st(1), %st
	fstp	%st(0)
	jbe	.L34
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	jmp	.L29
.L34:
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L29:
	movsd	-32(%rbp), %xmm0
	addsd	-40(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	addl	$1, -44(%rbp)
.L23:
	cmpl	$999999, -44(%rbp)
	jle	.L30
	movsd	-24(%rbp), %xmm0
.L26:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	nibutan2, .-nibutan2
	.section	.rodata
	.align 8
.LC1:
	.long	1413754136
	.long	1073291771
	.align 8
.LC2:
	.long	0
	.long	1080459264
	.align 8
.LC3:
	.long	1413754136
	.long	1074340347
	.align 8
.LC6:
	.long	0
	.long	1073741824
	.align 16
.LC7:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC8:
	.long	-500134854
	.long	1044740494
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	nibutan1
	.type	nibutan1, @function
nibutan1:
.LFB24:
	.cfi_startproc
	endbr64
	mulsd	%xmm1, %xmm0
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	$1000000, %ebx
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	movq	.LC1(%rip), %rax
	movsd	.LC2(%rip), %xmm6
	movsd	%xmm2, 24(%rsp)
	mulsd	%xmm1, %xmm0
	movq	%rax, %xmm2
	movsd	%xmm6, 40(%rsp)
	movsd	%xmm0, 16(%rsp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, 32(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	movsd	40(%rsp), %xmm1
	addsd	%xmm2, %xmm1
	mulsd	.LC3(%rip), %xmm1
	subl	$1, %ebx
	je	.L8
	movsd	%xmm2, 32(%rsp)
.L5:
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm1, 8(%rsp)
	subsd	%xmm1, %xmm0
	call	tan@PLT
	movsd	8(%rsp), %xmm1
	movapd	%xmm1, %xmm2
.L6:
	mulsd	16(%rsp), %xmm0
	movsd	24(%rsp), %xmm3
	mulsd	.LC3(%rip), %xmm0
	movsd	.LC5(%rip), %xmm5
	movapd	%xmm3, %xmm1
	subsd	%xmm0, %xmm1
	andpd	.LC4(%rip), %xmm1
	comisd	%xmm1, %xmm5
	ja	.L1
	comisd	%xmm3, %xmm0
	ja	.L13
	movsd	32(%rsp), %xmm1
	addsd	%xmm2, %xmm1
	mulsd	.LC3(%rip), %xmm1
	subl	$1, %ebx
	je	.L8
	movsd	%xmm2, 40(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	movapd	%xmm1, %xmm2
.L1:
	addq	$48, %rsp
	.cfi_def_cfa_offset 16
	movapd	%xmm2, %xmm0
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE24:
	.size	nibutan1, .-nibutan1
	.p2align 4
	.globl	nibutan2
	.type	nibutan2, @function
nibutan2:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	pxor	%xmm6, %xmm6
	movl	$1000000, %ebx
	subq	$80, %rsp
	.cfi_def_cfa_offset 96
	movsd	.LC2(%rip), %xmm5
	movsd	%xmm2, (%rsp)
	movapd	%xmm0, %xmm2
	fldl	(%rsp)
	mulsd	%xmm0, %xmm2
	movsd	%xmm5, 72(%rsp)
	movsd	%xmm6, 64(%rsp)
	mulsd	%xmm2, %xmm1
	mulsd	%xmm0, %xmm2
	movsd	.LC6(%rip), %xmm0
	movsd	%xmm1, (%rsp)
	fldl	(%rsp)
	movsd	%xmm2, 8(%rsp)
	movsd	.LC1(%rip), %xmm2
	fstpt	32(%rsp)
	fldt	32(%rsp)
	fxch	%st(1)
	fstpt	48(%rsp)
	fldt	48(%rsp)
	fsubp	%st, %st(1)
	fstpt	16(%rsp)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L25:
	movsd	72(%rsp), %xmm1
	addsd	%xmm2, %xmm1
	mulsd	.LC3(%rip), %xmm1
	subl	$1, %ebx
	je	.L21
	movsd	%xmm2, 64(%rsp)
.L18:
	movapd	%xmm1, %xmm0
	movsd	%xmm1, (%rsp)
	call	tan@PLT
	movsd	(%rsp), %xmm1
	movapd	%xmm1, %xmm2
.L19:
	mulsd	8(%rsp), %xmm0
	movsd	.LC5(%rip), %xmm4
	mulsd	.LC3(%rip), %xmm0
	movsd	%xmm0, (%rsp)
	fldl	(%rsp)
	fld	%st(0)
	fldt	16(%rsp)
	faddp	%st, %st(2)
	fxch	%st(1)
	fstpl	(%rsp)
	movsd	(%rsp), %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	%xmm0, %xmm4
	ja	.L26
	fldt	32(%rsp)
	fsubp	%st, %st(1)
	fldt	48(%rsp)
	fxch	%st(1)
	fcomip	%st(1), %st
	fstp	%st(0)
	ja	.L25
	movsd	64(%rsp), %xmm1
	addsd	%xmm2, %xmm1
	mulsd	.LC3(%rip), %xmm1
	subl	$1, %ebx
	je	.L21
	movsd	%xmm2, 72(%rsp)
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L21:
	movapd	%xmm1, %xmm2
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	fstp	%st(0)
.L14:
	addq	$80, %rsp
	.cfi_def_cfa_offset 16
	movapd	%xmm2, %xmm0
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	nibutan2, .-nibutan2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC8:
	.string	"%lf %lf %lf"
.LC10:
	.string	"%.10f"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$72, %rsp
	.cfi_def_cfa_offset 80
	leaq	.LC8(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rcx
	leaq	40(%rsp), %rdx
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsd	32(%rsp), %xmm4
	movsd	48(%rsp), %xmm2
	movsd	40(%rsp), %xmm1
	movapd	%xmm4, %xmm0
	movsd	%xmm2, 24(%rsp)
	movsd	%xmm1, 16(%rsp)
	movsd	%xmm4, 8(%rsp)
	call	nibutan1
	movapd	%xmm0, %xmm3
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm3, (%rsp)
	subsd	%xmm3, %xmm0
	call	tan@PLT
	movsd	16(%rsp), %xmm1
	movsd	(%rsp), %xmm3
	movsd	8(%rsp), %xmm4
	movsd	24(%rsp), %xmm2
	mulsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm4
	jnb	.L35
	movapd	%xmm4, %xmm0
	call	nibutan2
	movl	$1, %edi
	leaq	.LC10(%rip), %rsi
	movl	$1, %eax
	mulsd	.LC9(%rip), %xmm0
	divsd	.LC2(%rip), %xmm0
	call	__printf_chk@PLT
.L30:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	mulsd	.LC9(%rip), %xmm3
	movl	$1, %edi
	movl	$1, %eax
	divsd	.LC2(%rip), %xmm3
	leaq	.LC10(%rip), %rsi
	movapd	%xmm3, %xmm0
	call	__printf_chk@PLT
	jmp	.L30
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1413754136
	.long	1073291771
	.align 8
.LC2:
	.long	1413754136
	.long	1074340347
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC5:
	.long	-500134854
	.long	1044740494
	.align 8
.LC6:
	.long	2083638709
	.long	1129120406
	.align 8
.LC9:
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	nibutan1
	.type	nibutan1, @function
nibutan1:
.LFB24:
	.cfi_startproc
	endbr64
	mulsd	%xmm1, %xmm0
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	$1000000, %ebx
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	movq	.LC1(%rip), %rax
	movsd	.LC2(%rip), %xmm6
	movsd	%xmm2, 24(%rsp)
	mulsd	%xmm1, %xmm0
	movq	%rax, %xmm2
	movsd	%xmm6, 40(%rsp)
	movsd	%xmm0, 16(%rsp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, 32(%rsp)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	movsd	40(%rsp), %xmm1
	addsd	%xmm2, %xmm1
	mulsd	.LC3(%rip), %xmm1
	subl	$1, %ebx
	je	.L8
	movsd	%xmm2, 32(%rsp)
.L5:
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm1, 8(%rsp)
	subsd	%xmm1, %xmm0
	call	tan@PLT
	movsd	8(%rsp), %xmm1
	movapd	%xmm1, %xmm2
.L6:
	mulsd	16(%rsp), %xmm0
	movsd	24(%rsp), %xmm3
	mulsd	.LC3(%rip), %xmm0
	movsd	.LC5(%rip), %xmm5
	movapd	%xmm3, %xmm1
	subsd	%xmm0, %xmm1
	andpd	.LC4(%rip), %xmm1
	comisd	%xmm1, %xmm5
	ja	.L1
	comisd	%xmm3, %xmm0
	ja	.L13
	movsd	32(%rsp), %xmm1
	addsd	%xmm2, %xmm1
	mulsd	.LC3(%rip), %xmm1
	subl	$1, %ebx
	je	.L8
	movsd	%xmm2, 40(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	movapd	%xmm1, %xmm2
.L1:
	addq	$48, %rsp
	.cfi_def_cfa_offset 16
	movapd	%xmm2, %xmm0
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE24:
	.size	nibutan1, .-nibutan1
	.p2align 4
	.globl	nibutan2
	.type	nibutan2, @function
nibutan2:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	pxor	%xmm6, %xmm6
	movl	$1000000, %ebx
	subq	$80, %rsp
	.cfi_def_cfa_offset 96
	movsd	.LC2(%rip), %xmm5
	movsd	%xmm2, (%rsp)
	movapd	%xmm0, %xmm2
	fldl	(%rsp)
	mulsd	%xmm0, %xmm2
	movsd	%xmm5, 72(%rsp)
	movsd	%xmm6, 64(%rsp)
	mulsd	%xmm2, %xmm1
	mulsd	%xmm0, %xmm2
	movsd	.LC6(%rip), %xmm0
	movsd	%xmm1, (%rsp)
	fldl	(%rsp)
	movsd	%xmm2, 8(%rsp)
	movsd	.LC1(%rip), %xmm2
	fstpt	32(%rsp)
	fldt	32(%rsp)
	fxch	%st(1)
	fstpt	48(%rsp)
	fldt	48(%rsp)
	fsubp	%st, %st(1)
	fstpt	16(%rsp)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L25:
	movsd	72(%rsp), %xmm1
	addsd	%xmm2, %xmm1
	mulsd	.LC3(%rip), %xmm1
	subl	$1, %ebx
	je	.L21
	movsd	%xmm2, 64(%rsp)
.L18:
	movapd	%xmm1, %xmm0
	movsd	%xmm1, (%rsp)
	call	tan@PLT
	movsd	(%rsp), %xmm1
	movapd	%xmm1, %xmm2
.L19:
	mulsd	8(%rsp), %xmm0
	movsd	.LC5(%rip), %xmm4
	mulsd	.LC3(%rip), %xmm0
	movsd	%xmm0, (%rsp)
	fldl	(%rsp)
	fld	%st(0)
	fldt	16(%rsp)
	faddp	%st, %st(2)
	fxch	%st(1)
	fstpl	(%rsp)
	movsd	(%rsp), %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	%xmm0, %xmm4
	ja	.L26
	fldt	32(%rsp)
	fsubp	%st, %st(1)
	fldt	48(%rsp)
	fxch	%st(1)
	fcomip	%st(1), %st
	fstp	%st(0)
	ja	.L25
	movsd	64(%rsp), %xmm1
	addsd	%xmm2, %xmm1
	mulsd	.LC3(%rip), %xmm1
	subl	$1, %ebx
	je	.L21
	movsd	%xmm2, 72(%rsp)
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L21:
	movapd	%xmm1, %xmm2
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	fstp	%st(0)
.L14:
	addq	$80, %rsp
	.cfi_def_cfa_offset 16
	movapd	%xmm2, %xmm0
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	nibutan2, .-nibutan2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC8:
	.string	"%lf %lf %lf"
.LC10:
	.string	"%.10f"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$72, %rsp
	.cfi_def_cfa_offset 80
	leaq	.LC8(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rcx
	leaq	40(%rsp), %rdx
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsd	32(%rsp), %xmm4
	movsd	48(%rsp), %xmm2
	movsd	40(%rsp), %xmm1
	movapd	%xmm4, %xmm0
	movsd	%xmm2, 24(%rsp)
	movsd	%xmm1, 16(%rsp)
	movsd	%xmm4, 8(%rsp)
	call	nibutan1
	movapd	%xmm0, %xmm3
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm3, (%rsp)
	subsd	%xmm3, %xmm0
	call	tan@PLT
	movsd	16(%rsp), %xmm1
	movsd	(%rsp), %xmm3
	movsd	8(%rsp), %xmm4
	movsd	24(%rsp), %xmm2
	mulsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm4
	jnb	.L35
	movapd	%xmm4, %xmm0
	call	nibutan2
	movl	$1, %edi
	leaq	.LC10(%rip), %rsi
	movl	$1, %eax
	mulsd	.LC9(%rip), %xmm0
	divsd	.LC2(%rip), %xmm0
	call	__printf_chk@PLT
.L30:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	xorl	%eax, %eax
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	mulsd	.LC9(%rip), %xmm3
	movl	$1, %edi
	movl	$1, %eax
	divsd	.LC2(%rip), %xmm3
	leaq	.LC10(%rip), %rsi
	movapd	%xmm3, %xmm0
	call	__printf_chk@PLT
	jmp	.L30
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1413754136
	.long	1073291771
	.align 8
.LC2:
	.long	1413754136
	.long	1074340347
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC5:
	.long	-500134854
	.long	1044740494
	.align 8
.LC6:
	.long	2083638709
	.long	1129120406
	.align 8
.LC9:
	.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:

#include <stdio.h>
#include <math.h>

double nibutan1(double a, double b, double x);
double nibutan2(double a, double b, double x);

int main(void)
{
    double a, b, x;

    double theta;//角度
    double ans;

    scanf("%lf %lf %lf",&a, &b, &x);

    //場合分けする（図１の時）

    
    theta = nibutan1(a, b, x);
    if(a >= b*tan(M_PI/2-theta)){
        printf("%.10f",theta*180/M_PI);
        return 0;
    }
        //引き算する方（図２）
    theta = nibutan2(a, b, x);
    printf("%.10f",theta*180/M_PI);
    return 0;
}




double nibutan1(double a, double b, double x)
{
    double small = 0;
    double big = M_PI;
    double half = M_PI/2;

    for(int i=0; i<1000000; i++){
        if(fabs(x - (a*b*b*tan(M_PI/2-half))/2) < 0.00000001){
            return half;
        } else if(x < (a*b*b*tan(M_PI/2-half))/2){
            small = half;
        } else {
            big = half;
        }
        half = (big + small)/2;
    }

    return half;

}


double nibutan2(double a, double b, double x)
{
    double small = 0;
    double big = M_PI;
    double half = M_PI/2;

    long double volume = a*a*b;

    for(int i=0; i<1000000; i++){
        if(fabs(x - volume + (a*a*a*tan(half))/2) < 0.00000001){
            return half;
        } else if(x < volume - (a*a*a*tan(half))/2){
            small = half;
        } else {
            big = half;
        }
        half = (big + small)/2;
    }

    return half;

}
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.9637565631 89.8938968259 36.8698976655 89.7453537675 71.5650511673 89.3634064245 82.8749836609 88.2321729435 86.8201698802 85.4120218742
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

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

double nibutan1(double a, double b, double x);
double nibutan2(double a, double b, double x);

int main(void)
{
    double a, b, x;

    double theta;//角度
    double ans;

    scanf("%lf %lf %lf",&a, &b, &x);

    //場合分けする（図１の時）

    
    theta = nibutan1(a, b, x);
    if(a >= b*tan(M_PI/2-theta)){
        printf("%.10f",theta*180/M_PI);
        return 0;
    }
        //引き算する方（図２）
    theta = nibutan2(a, b, x);
    printf("%.10f",theta*180/M_PI);
    return 0;
}




double nibutan1(double a, double b, double x)
{
    double small = 0;
    double big = M_PI;
    double half = M_PI/2;

    for(int i=0; i<1000000; i++){
        if(fabs(x - (a*b*b*tan(M_PI/2-half))/2) < 0.00000001){
            return half;
        } else if(x < (a*b*b*tan(M_PI/2-half))/2){
            small = half;
        } else {
            big = half;
        }
        half = (big + small)/2;
    }

    return half;

}


double nibutan2(double a, double b, double x)
{
    double small = 0;
    double big = M_PI;
    double half = M_PI/2;

    long double volume = a*a*b;

    for(int i=0; i<1000000; i++){
        if(fabs(x - volume + (a*a*a*tan(half))/2) < 0.00000001){
            return half;
        } else if(x < volume - (a*a*a*tan(half))/2){
            small = half;
        } else {
            big = half;
        }
        half = (big + small)/2;
    }

    return half;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lf %lf %lf"
.LC4:
	.string	"%.10f"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	-24(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	movq	-40(%rbp), %rax
	movapd	%xmm1, %xmm2
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	nibutan1
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	movsd	.LC1(%rip), %xmm0
	subsd	-16(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	tan@PLT
	movsd	-32(%rbp), %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-40(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L8
	movsd	-16(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L5
.L8:
	movsd	-24(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	movq	-40(%rbp), %rax
	movapd	%xmm1, %xmm2
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	nibutan2
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
.L5:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	nibutan1
	.type	nibutan1, @function
nibutan1:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movsd	%xmm0, -40(%rbp)
	movsd	%xmm1, -48(%rbp)
	movsd	%xmm2, -56(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L10
.L17:
	movsd	-40(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	.LC1(%rip), %xmm0
	movapd	%xmm0, %xmm4
	subsd	-8(%rbp), %xmm4
	movq	%xmm4, %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-64(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	-56(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	movq	.LC7(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC8(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L20
	movsd	-8(%rbp), %xmm0
	jmp	.L13
.L20:
	movsd	-40(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	.LC1(%rip), %xmm0
	movapd	%xmm0, %xmm6
	subsd	-8(%rbp), %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-64(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	comisd	-56(%rbp), %xmm0
	jbe	.L21
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	jmp	.L16
.L21:
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
.L16:
	movsd	-16(%rbp), %xmm0
	addsd	-24(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	addl	$1, -28(%rbp)
.L10:
	cmpl	$999999, -28(%rbp)
	jle	.L17
	movsd	-8(%rbp), %xmm0
.L13:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nibutan1, .-nibutan1
	.globl	nibutan2
	.type	nibutan2, @function
nibutan2:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movsd	%xmm0, -56(%rbp)
	movsd	%xmm1, -64(%rbp)
	movsd	%xmm2, -72(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -40(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	mulsd	-64(%rbp), %xmm0
	movsd	%xmm0, -96(%rbp)
	fldl	-96(%rbp)
	fstpt	-16(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L23
.L30:
	fldl	-72(%rbp)
	fldt	-16(%rbp)
	fsubrp	%st, %st(1)
	fstpt	-96(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	mulsd	-56(%rbp), %xmm0
	movsd	%xmm0, -80(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-80(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -80(%rbp)
	fldl	-80(%rbp)
	fldt	-96(%rbp)
	faddp	%st, %st(1)
	fstpl	-96(%rbp)
	movsd	-96(%rbp), %xmm1
	movq	.LC7(%rip), %xmm0
	andpd	%xmm0, %xmm1
	movsd	.LC8(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L33
	movsd	-24(%rbp), %xmm0
	jmp	.L26
.L33:
	fldl	-72(%rbp)
	fstpt	-96(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	mulsd	-56(%rbp), %xmm0
	movsd	%xmm0, -80(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-80(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -80(%rbp)
	fldl	-80(%rbp)
	fldt	-16(%rbp)
	fsubp	%st, %st(1)
	fldt	-96(%rbp)
	fxch	%st(1)
	fcomip	%st(1), %st
	fstp	%st(0)
	jbe	.L34
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	jmp	.L29
.L34:
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L29:
	movsd	-32(%rbp), %xmm0
	addsd	-40(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	addl	$1, -44(%rbp)
.L23:
	cmpl	$999999, -44(%rbp)
	jle	.L30
	movsd	-24(%rbp), %xmm0
.L26:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	nibutan2, .-nibutan2
	.section	.rodata
	.align 8
.LC1:
	.long	1413754136
	.long	1073291771
	.align 8
.LC2:
	.long	0
	.long	1080459264
	.align 8
.LC3:
	.long	1413754136
	.long	1074340347
	.align 8
.LC6:
	.long	0
	.long	1073741824
	.align 16
.LC7:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC8:
	.long	-500134854
	.long	1044740494
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lf %lf %lf"
.LC4:
	.string	"%.10f"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	-24(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	movq	-40(%rbp), %rax
	movapd	%xmm1, %xmm2
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	nibutan1
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	movsd	.LC1(%rip), %xmm0
	subsd	-16(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	tan@PLT
	movsd	-32(%rbp), %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-40(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L8
	movsd	-16(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L5
.L8:
	movsd	-24(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	movq	-40(%rbp), %rax
	movapd	%xmm1, %xmm2
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	nibutan2
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	movsd	-16(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
.L5:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	nibutan1
	.type	nibutan1, @function
nibutan1:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movsd	%xmm0, -40(%rbp)
	movsd	%xmm1, -48(%rbp)
	movsd	%xmm2, -56(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L10
.L17:
	movsd	-40(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	.LC1(%rip), %xmm0
	movapd	%xmm0, %xmm4
	subsd	-8(%rbp), %xmm4
	movq	%xmm4, %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-64(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	-56(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	movq	.LC7(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC8(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L20
	movsd	-8(%rbp), %xmm0
	jmp	.L13
.L20:
	movsd	-40(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	mulsd	-48(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	.LC1(%rip), %xmm0
	movapd	%xmm0, %xmm6
	subsd	-8(%rbp), %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-64(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	comisd	-56(%rbp), %xmm0
	jbe	.L21
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	jmp	.L16
.L21:
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
.L16:
	movsd	-16(%rbp), %xmm0
	addsd	-24(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	addl	$1, -28(%rbp)
.L10:
	cmpl	$999999, -28(%rbp)
	jle	.L17
	movsd	-8(%rbp), %xmm0
.L13:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nibutan1, .-nibutan1
	.globl	nibutan2
	.type	nibutan2, @function
nibutan2:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movsd	%xmm0, -56(%rbp)
	movsd	%xmm1, -64(%rbp)
	movsd	%xmm2, -72(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -40(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	mulsd	-64(%rbp), %xmm0
	movsd	%xmm0, -96(%rbp)
	fldl	-96(%rbp)
	fstpt	-16(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L23
.L30:
	fldl	-72(%rbp)
	fldt	-16(%rbp)
	fsubrp	%st, %st(1)
	fstpt	-96(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	mulsd	-56(%rbp), %xmm0
	movsd	%xmm0, -80(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-80(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -80(%rbp)
	fldl	-80(%rbp)
	fldt	-96(%rbp)
	faddp	%st, %st(1)
	fstpl	-96(%rbp)
	movsd	-96(%rbp), %xmm1
	movq	.LC7(%rip), %xmm0
	andpd	%xmm0, %xmm1
	movsd	.LC8(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L33
	movsd	-24(%rbp), %xmm0
	jmp	.L26
.L33:
	fldl	-72(%rbp)
	fstpt	-96(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	mulsd	-56(%rbp), %xmm0
	movsd	%xmm0, -80(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %xmm0
	call	tan@PLT
	mulsd	-80(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -80(%rbp)
	fldl	-80(%rbp)
	fldt	-16(%rbp)
	fsubp	%st, %st(1)
	fldt	-96(%rbp)
	fxch	%st(1)
	fcomip	%st(1), %st
	fstp	%st(0)
	jbe	.L34
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	jmp	.L29
.L34:
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L29:
	movsd	-32(%rbp), %xmm0
	addsd	-40(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	addl	$1, -44(%rbp)
.L23:
	cmpl	$999999, -44(%rbp)
	jle	.L30
	movsd	-24(%rbp), %xmm0
.L26:
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	nibutan2, .-nibutan2
	.section	.rodata
	.align 8
.LC1:
	.long	1413754136
	.long	1073291771
	.align 8
.LC2:
	.long	0
	.long	1080459264
	.align 8
.LC3:
	.long	1413754136
	.long	1074340347
	.align 8
.LC6:
	.long	0
	.long	1073741824
	.align 16
.LC7:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC8:
	.long	-500134854
	.long	1044740494
	.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:
