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 <assert.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define NDEBUG

#ifdef NDEBUG
#define DEBUG_PRINT(fmt, ...) ((void)0)
#else
#define DEBUG_PRINT(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)
#endif
#define ASSERT_RANGE(min,x,max) assert(((x)>=(min)) && ((x)<=(max)))


#define N_MIN 1
#define N_MAX 100

int sort_int(int *a, int N) {// {{{
	int i;
	for (i = 0; i < N-1; i++) {
		int j;
		for (j = i + 1; j < N; j++) {
			if (a[i] > a[j]) {
				int tmp = a[i];
				a[i] = a[j];
				a[j] = tmp;
			}
		}
	}
	return 0;
}// }}}

int main(int argc, char **argv) {
	int a,b,x;
	fscanf(stdin,"%d%d%d",&a,&b,&x);
	ASSERT_RANGE(N_MIN,a,N_MAX);
	ASSERT_RANGE(N_MIN,b,N_MAX);
	ASSERT_RANGE(N_MIN,b,a*a*b);

	double h = (double)x / (double)a / (double)a;
	if (h < (double)b/2) {
		double l = (double)x / (double)a / (double)b * 2.0;
		double rad = atan((double)b/(double)l);
		fprintf(stdout,"%.10lf\n",rad / M_PI * 180.0);
	} else {
		double l = (double)b - h;
		double rad = atan((double)l/(double)a*2.0);
		fprintf(stdout,"%.10lf\n",rad / M_PI * 180.0);
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	sort_int
	.type	sort_int, @function
sort_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
.L4:
	addl	$1, -8(%rbp)
.L3:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L5
	addl	$1, -12(%rbp)
.L2:
	movl	-28(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sort_int, .-sort_int
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"/tmp/tmpx_4zltw1/temp.c"
.LC2:
	.string	"((a)>=(1)) && ((a)<=(100))"
.LC3:
	.string	"((b)>=(1)) && ((b)<=(100))"
.LC4:
	.string	"((b)>=(1)) && ((b)<=(a*a*b))"
.LC8:
	.string	"%.10lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movl	%edi, -68(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	leaq	-52(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	movq	%rsi, %r8
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	jle	.L9
	movl	-60(%rbp), %eax
	cmpl	$100, %eax
	jle	.L21
.L9:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rax
	movq	%rax, %rcx
	movl	$38, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L21:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jle	.L11
	movl	-56(%rbp), %eax
	cmpl	$100, %eax
	jle	.L22
.L11:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rax
	movq	%rax, %rcx
	movl	$39, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L22:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jle	.L13
	movl	-60(%rbp), %edx
	movl	-60(%rbp), %eax
	imull	%eax, %edx
	movl	-56(%rbp), %eax
	imull	%eax, %edx
	movl	-56(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L23
.L13:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rax
	movq	%rax, %rcx
	movl	$40, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L23:
	movl	-52(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC5(%rip), %xmm1
	divsd	%xmm1, %xmm0
	comisd	-48(%rbp), %xmm0
	jbe	.L24
	movl	-52(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movl	-56(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	addsd	%xmm0, %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	divsd	-24(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	atan@PLT
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC7(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rdx
	movq	stdout(%rip), %rax
	movq	%rdx, %xmm0
	leaq	.LC8(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	movl	$1, %eax
	call	fprintf@PLT
	jmp	.L17
.L24:
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-48(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-40(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	addsd	%xmm0, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	atan@PLT
	movq	%xmm0, %rax
	movq	%rax, -32(%rbp)
	movsd	-32(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC7(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rdx
	movq	stdout(%rip), %rax
	movq	%rdx, %xmm0
	leaq	.LC8(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	movl	$1, %eax
	call	fprintf@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.align 8
.LC5:
	.long	0
	.long	1073741824
	.align 8
.LC6:
	.long	1413754136
	.long	1074340347
	.align 8
.LC7:
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sort_int
	.type	sort_int, @function
sort_int:
.LFB51:
	.cfi_startproc
	endbr64
	cmpl	$1, %esi
	jle	.L10
	leal	-2(%rsi), %r11d
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	4(%rdi), %r8
	movl	$1, %r9d
	addq	$2, %r11
	leal	-1(%rsi), %ebx
	leaq	8(%rdi), %r10
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%r9d, %esi
	jle	.L3
	movl	%ebx, %eax
	subl	%r9d, %eax
	leaq	-1(%r9,%rax), %rax
	leaq	(%r10,%rax,4), %rdi
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movl	-4(%r8), %edx
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jle	.L4
	movl	%ecx, -4(%r8)
	movl	%edx, (%rax)
.L4:
	addq	$4, %rax
	cmpq	%rdi, %rax
	jne	.L5
.L3:
	addq	$1, %r9
	addq	$4, %r8
	cmpq	%r11, %r9
	jne	.L6
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore 3
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	sort_int, .-sort_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"/tmp/tmpx_4zltw1/temp.c"
.LC2:
	.string	"((a)>=(1)) && ((a)<=(100))"
.LC3:
	.string	"((b)>=(1)) && ((b)<=(100))"
.LC4:
	.string	"((b)>=(1)) && ((b)<=(a*a*b))"
.LC8:
	.string	"%.10lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rsi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	stdin(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	20(%rsp), %r8
	call	__isoc99_fscanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	cmpl	$99, %edx
	ja	.L26
	movl	16(%rsp), %edx
	leal	-1(%rdx), %ecx
	cmpl	$99, %ecx
	ja	.L27
	movl	%eax, %ecx
	imull	%eax, %ecx
	imull	%edx, %ecx
	cmpl	%ecx, %edx
	jg	.L28
	pxor	%xmm2, %xmm2
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movsd	.LC5(%rip), %xmm4
	cvtsi2sdl	%eax, %xmm2
	movq	stdout(%rip), %rbp
	cvtsi2sdl	20(%rsp), %xmm1
	cvtsi2sdl	%edx, %xmm0
	divsd	%xmm2, %xmm1
	mulsd	%xmm0, %xmm4
	movapd	%xmm1, %xmm3
	divsd	%xmm2, %xmm3
	comisd	%xmm3, %xmm4
	ja	.L29
	subsd	%xmm3, %xmm0
	divsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm0
.L25:
	call	atan@PLT
	divsd	.LC6(%rip), %xmm0
	movl	$1, %esi
	movq	%rbp, %rdi
	mulsd	.LC7(%rip), %xmm0
	leaq	.LC8(%rip), %rdx
	movl	$1, %eax
	call	__fprintf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	divsd	%xmm0, %xmm1
	addsd	%xmm1, %xmm1
	divsd	%xmm1, %xmm0
	jmp	.L25
.L30:
	call	__stack_chk_fail@PLT
.L28:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rcx
	movl	$40, %edx
	leaq	.LC1(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	__assert_fail@PLT
.L27:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rcx
	movl	$39, %edx
	leaq	.LC1(%rip), %rsi
	leaq	.LC3(%rip), %rdi
	call	__assert_fail@PLT
.L26:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rcx
	movl	$38, %edx
	leaq	.LC1(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	call	__assert_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC5:
	.long	0
	.long	1071644672
	.align 8
.LC6:
	.long	1413754136
	.long	1074340347
	.align 8
.LC7:
	.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	sort_int
	.type	sort_int, @function
sort_int:
.LFB51:
	.cfi_startproc
	endbr64
	cmpl	$1, %esi
	jle	.L10
	leal	-2(%rsi), %r11d
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	4(%rdi), %r8
	movl	$1, %r9d
	addq	$2, %r11
	leal	-1(%rsi), %ebx
	leaq	8(%rdi), %r10
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%r9d, %esi
	jle	.L3
	movl	%ebx, %eax
	subl	%r9d, %eax
	leaq	-1(%r9,%rax), %rax
	leaq	(%r10,%rax,4), %rdi
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movl	-4(%r8), %edx
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jle	.L4
	movl	%ecx, -4(%r8)
	movl	%edx, (%rax)
.L4:
	addq	$4, %rax
	cmpq	%rdi, %rax
	jne	.L5
.L3:
	addq	$1, %r9
	addq	$4, %r8
	cmpq	%r11, %r9
	jne	.L6
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore 3
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	sort_int, .-sort_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"/tmp/tmpx_4zltw1/temp.c"
.LC2:
	.string	"((a)>=(1)) && ((a)<=(100))"
.LC3:
	.string	"((b)>=(1)) && ((b)<=(100))"
.LC4:
	.string	"((b)>=(1)) && ((b)<=(a*a*b))"
.LC8:
	.string	"%.10lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rsi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	stdin(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	20(%rsp), %r8
	call	__isoc99_fscanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	cmpl	$99, %edx
	ja	.L26
	movl	16(%rsp), %edx
	leal	-1(%rdx), %ecx
	cmpl	$99, %ecx
	ja	.L27
	movl	%eax, %ecx
	imull	%eax, %ecx
	imull	%edx, %ecx
	cmpl	%ecx, %edx
	jg	.L28
	pxor	%xmm2, %xmm2
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movsd	.LC5(%rip), %xmm4
	cvtsi2sdl	%eax, %xmm2
	movq	stdout(%rip), %rbp
	cvtsi2sdl	20(%rsp), %xmm1
	cvtsi2sdl	%edx, %xmm0
	divsd	%xmm2, %xmm1
	mulsd	%xmm0, %xmm4
	movapd	%xmm1, %xmm3
	divsd	%xmm2, %xmm3
	comisd	%xmm3, %xmm4
	ja	.L29
	subsd	%xmm3, %xmm0
	divsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm0
.L25:
	call	atan@PLT
	divsd	.LC6(%rip), %xmm0
	movl	$1, %esi
	movq	%rbp, %rdi
	mulsd	.LC7(%rip), %xmm0
	leaq	.LC8(%rip), %rdx
	movl	$1, %eax
	call	__fprintf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	divsd	%xmm0, %xmm1
	addsd	%xmm1, %xmm1
	divsd	%xmm1, %xmm0
	jmp	.L25
.L30:
	call	__stack_chk_fail@PLT
.L28:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rcx
	movl	$40, %edx
	leaq	.LC1(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	__assert_fail@PLT
.L27:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rcx
	movl	$39, %edx
	leaq	.LC1(%rip), %rsi
	leaq	.LC3(%rip), %rdi
	call	__assert_fail@PLT
.L26:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rcx
	movl	$38, %edx
	leaq	.LC1(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	call	__assert_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC5:
	.long	0
	.long	1071644672
	.align 8
.LC6:
	.long	1413754136
	.long	1074340347
	.align 8
.LC7:
	.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 <assert.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define NDEBUG

#ifdef NDEBUG
#define DEBUG_PRINT(fmt, ...) ((void)0)
#else
#define DEBUG_PRINT(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)
#endif
#define ASSERT_RANGE(min,x,max) assert(((x)>=(min)) && ((x)<=(max)))


#define N_MIN 1
#define N_MAX 100

int sort_int(int *a, int N) {// {{{
	int i;
	for (i = 0; i < N-1; i++) {
		int j;
		for (j = i + 1; j < N; j++) {
			if (a[i] > a[j]) {
				int tmp = a[i];
				a[i] = a[j];
				a[j] = tmp;
			}
		}
	}
	return 0;
}// }}}

int main(int argc, char **argv) {
	int a,b,x;
	fscanf(stdin,"%d%d%d",&a,&b,&x);
	ASSERT_RANGE(N_MIN,a,N_MAX);
	ASSERT_RANGE(N_MIN,b,N_MAX);
	ASSERT_RANGE(N_MIN,b,a*a*b);

	double h = (double)x / (double)a / (double)a;
	if (h < (double)b/2) {
		double l = (double)x / (double)a / (double)b * 2.0;
		double rad = atan((double)b/(double)l);
		fprintf(stdout,"%.10lf\n",rad / M_PI * 180.0);
	} else {
		double l = (double)b - h;
		double rad = atan((double)l/(double)a*2.0);
		fprintf(stdout,"%.10lf\n",rad / M_PI * 180.0);
	}
	return 0;
}


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.9637565321
 89.8938968259
 36.8698976458
 89.7453537677
 71.5650511771
 89.3634064240
 82.8749836511
 88.2321729441
 86.8201698801
 85.4120218759

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 <assert.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define NDEBUG

#ifdef NDEBUG
#define DEBUG_PRINT(fmt, ...) ((void)0)
#else
#define DEBUG_PRINT(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)
#endif
#define ASSERT_RANGE(min,x,max) assert(((x)>=(min)) && ((x)<=(max)))


#define N_MIN 1
#define N_MAX 100

int sort_int(int *a, int N) {// {{{
	int i;
	for (i = 0; i < N-1; i++) {
		int j;
		for (j = i + 1; j < N; j++) {
			if (a[i] > a[j]) {
				int tmp = a[i];
				a[i] = a[j];
				a[j] = tmp;
			}
		}
	}
	return 0;
}// }}}

int main(int argc, char **argv) {
	int a,b,x;
	fscanf(stdin,"%d%d%d",&a,&b,&x);
	ASSERT_RANGE(N_MIN,a,N_MAX);
	ASSERT_RANGE(N_MIN,b,N_MAX);
	ASSERT_RANGE(N_MIN,b,a*a*b);

	double h = (double)x / (double)a / (double)a;
	if (h < (double)b/2) {
		double l = (double)x / (double)a / (double)b * 2.0;
		double rad = atan((double)b/(double)l);
		fprintf(stdout,"%.10lf\n",rad / M_PI * 180.0);
	} else {
		double l = (double)b - h;
		double rad = atan((double)l/(double)a*2.0);
		fprintf(stdout,"%.10lf\n",rad / M_PI * 180.0);
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	sort_int
	.type	sort_int, @function
sort_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
.L4:
	addl	$1, -8(%rbp)
.L3:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L5
	addl	$1, -12(%rbp)
.L2:
	movl	-28(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sort_int, .-sort_int
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"/tmp/tmpx_4zltw1/temp.c"
.LC2:
	.string	"((a)>=(1)) && ((a)<=(100))"
.LC3:
	.string	"((b)>=(1)) && ((b)<=(100))"
.LC4:
	.string	"((b)>=(1)) && ((b)<=(a*a*b))"
.LC8:
	.string	"%.10lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movl	%edi, -68(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	leaq	-52(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	movq	%rsi, %r8
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	jle	.L9
	movl	-60(%rbp), %eax
	cmpl	$100, %eax
	jle	.L21
.L9:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rax
	movq	%rax, %rcx
	movl	$38, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L21:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jle	.L11
	movl	-56(%rbp), %eax
	cmpl	$100, %eax
	jle	.L22
.L11:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rax
	movq	%rax, %rcx
	movl	$39, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L22:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jle	.L13
	movl	-60(%rbp), %edx
	movl	-60(%rbp), %eax
	imull	%eax, %edx
	movl	-56(%rbp), %eax
	imull	%eax, %edx
	movl	-56(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L23
.L13:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rax
	movq	%rax, %rcx
	movl	$40, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L23:
	movl	-52(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC5(%rip), %xmm1
	divsd	%xmm1, %xmm0
	comisd	-48(%rbp), %xmm0
	jbe	.L24
	movl	-52(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movl	-56(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	addsd	%xmm0, %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	divsd	-24(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	atan@PLT
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC7(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rdx
	movq	stdout(%rip), %rax
	movq	%rdx, %xmm0
	leaq	.LC8(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	movl	$1, %eax
	call	fprintf@PLT
	jmp	.L17
.L24:
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-48(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-40(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	addsd	%xmm0, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	atan@PLT
	movq	%xmm0, %rax
	movq	%rax, -32(%rbp)
	movsd	-32(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC7(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rdx
	movq	stdout(%rip), %rax
	movq	%rdx, %xmm0
	leaq	.LC8(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	movl	$1, %eax
	call	fprintf@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.align 8
.LC5:
	.long	0
	.long	1073741824
	.align 8
.LC6:
	.long	1413754136
	.long	1074340347
	.align 8
.LC7:
	.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.
train
	.file	"temp.c"
	.text
	.globl	sort_int
	.type	sort_int, @function
sort_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
.L4:
	addl	$1, -8(%rbp)
.L3:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L5
	addl	$1, -12(%rbp)
.L2:
	movl	-28(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sort_int, .-sort_int
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"/tmp/tmpx_4zltw1/temp.c"
.LC2:
	.string	"((a)>=(1)) && ((a)<=(100))"
.LC3:
	.string	"((b)>=(1)) && ((b)<=(100))"
.LC4:
	.string	"((b)>=(1)) && ((b)<=(a*a*b))"
.LC8:
	.string	"%.10lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movl	%edi, -68(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	leaq	-52(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	movq	%rsi, %r8
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	jle	.L9
	movl	-60(%rbp), %eax
	cmpl	$100, %eax
	jle	.L21
.L9:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rax
	movq	%rax, %rcx
	movl	$38, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L21:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jle	.L11
	movl	-56(%rbp), %eax
	cmpl	$100, %eax
	jle	.L22
.L11:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rax
	movq	%rax, %rcx
	movl	$39, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L22:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jle	.L13
	movl	-60(%rbp), %edx
	movl	-60(%rbp), %eax
	imull	%eax, %edx
	movl	-56(%rbp), %eax
	imull	%eax, %edx
	movl	-56(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L23
.L13:
	leaq	__PRETTY_FUNCTION__.0(%rip), %rax
	movq	%rax, %rcx
	movl	$40, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	__assert_fail@PLT
.L23:
	movl	-52(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC5(%rip), %xmm1
	divsd	%xmm1, %xmm0
	comisd	-48(%rbp), %xmm0
	jbe	.L24
	movl	-52(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movl	-56(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	addsd	%xmm0, %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	divsd	-24(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	atan@PLT
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC7(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rdx
	movq	stdout(%rip), %rax
	movq	%rdx, %xmm0
	leaq	.LC8(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	movl	$1, %eax
	call	fprintf@PLT
	jmp	.L17
.L24:
	movl	-56(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-48(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-60(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-40(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	addsd	%xmm0, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	atan@PLT
	movq	%xmm0, %rax
	movq	%rax, -32(%rbp)
	movsd	-32(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC7(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rdx
	movq	stdout(%rip), %rax
	movq	%rdx, %xmm0
	leaq	.LC8(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	movl	$1, %eax
	call	fprintf@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.align 8
.LC5:
	.long	0
	.long	1073741824
	.align 8
.LC6:
	.long	1413754136
	.long	1074340347
	.align 8
.LC7:
	.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:
