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>
int main(void){
    int px[50],py[50],np,i,sign,cnt = 1;
    double area;
    scanf("%d", &np);
    while( np > 0 ){
        for(i = 0; i < np; i++){
            scanf( "%d %d", &px[i], &py[i] );
        }
        area = 0;
        for(i = 2; i < np; i++){
            area += (double)( (px[i] - px[0])*(py[i-1] - py[0])
                              - (px[i-1] - px[0])*(py[i] - py[0]) )/2;

        }
        printf("%d %.1lf\n",cnt++, area);
        scanf("%d", &np);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC4:
	.string	"%d %.1lf\n"
	.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	$448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -428(%rbp)
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L7:
	movl	$0, -432(%rbp)
	jmp	.L3
.L4:
	leaq	-208(%rbp), %rdx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-416(%rbp), %rcx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -432(%rbp)
.L3:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L4
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -424(%rbp)
	movl	$2, -432(%rbp)
	jmp	.L5
.L6:
	movl	-432(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	-416(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	movl	-208(%rbp), %ecx
	subl	%ecx, %eax
	imull	%eax, %edx
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	-416(%rbp), %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	-432(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	movl	-208(%rbp), %esi
	subl	%esi, %eax
	imull	%ecx, %eax
	subl	%eax, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-424(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	addl	$1, -432(%rbp)
.L5:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L6
	movl	-428(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -428(%rbp)
	movq	-424(%rbp), %rdx
	movq	%rdx, %xmm0
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-436(%rbp), %eax
	testl	%eax, %eax
	jg	.L7
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d"
.LC4:
	.string	"%d %.1lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	testl	%edx, %edx
	jle	.L3
	movl	$1, %r12d
	leaq	240(%rsp), %rbx
	leaq	32(%rsp), %r14
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %r13
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%rbx,%r15,4), %rdx
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edi
	addq	$1, %r15
	addq	$4, %r13
	cmpl	%r15d, %edi
	jg	.L4
	cmpl	$2, %edi
	jle	.L11
	movl	32(%rsp), %r8d
	movl	240(%rsp), %r9d
	cmpl	$4, %edi
	jle	.L12
	leal	-5(%rdi), %edx
	movl	36(%rsp), %esi
	movl	$4, %ecx
	pxor	%xmm1, %xmm1
	shrl	%edx
	movl	244(%rsp), %eax
	leal	3(%rdx), %r11d
	movq	.LC3(%rip), %rdx
	addq	%r11, %r11
	movq	%rdx, %xmm2
.L7:
	movl	-8(%r14,%rcx,4), %r10d
	movl	-8(%rbx,%rcx,4), %r13d
	subl	%r9d, %eax
	subl	%r8d, %esi
	pxor	%xmm0, %xmm0
	subl	%r9d, %r13d
	subl	%r8d, %r10d
	imull	%r13d, %esi
	imull	%r10d, %eax
	subl	%esi, %eax
	movl	-4(%r14,%rcx,4), %esi
	cvtsi2sdl	%eax, %xmm0
	movl	-4(%rbx,%rcx,4), %eax
	mulsd	.LC3(%rip), %xmm0
	movl	%esi, %edx
	subl	%r8d, %edx
	imull	%r13d, %edx
	movl	%eax, %r13d
	subl	%r9d, %r13d
	imull	%r13d, %r10d
	addsd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	subl	%r10d, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	movslq	%ecx, %rdx
	addq	$2, %rcx
	addsd	%xmm0, %xmm1
	cmpq	%rcx, %r11
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	movl	-4(%rbx,%rdx,4), %eax
	movl	(%r14,%rdx,4), %ecx
	pxor	%xmm0, %xmm0
	movl	-4(%r14,%rdx,4), %esi
	subl	%r8d, %ecx
	subl	%r9d, %eax
	imull	%ecx, %eax
	movl	(%rbx,%rdx,4), %ecx
	subl	%r8d, %esi
	addq	$1, %rdx
	subl	%r9d, %ecx
	imull	%esi, %ecx
	subl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	cmpl	%edx, %edi
	jg	.L8
.L5:
	movapd	%xmm1, %xmm0
	movl	%r12d, %edx
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	leal	1(%r12), %r15d
	call	__printf_chk@PLT
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	%r15d, %r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$456, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	jmp	.L5
.L12:
	movq	.LC3(%rip), %rax
	pxor	%xmm1, %xmm1
	movl	$2, %edx
	movq	%rax, %xmm2
	jmp	.L8
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d"
.LC4:
	.string	"%d %.1lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	testl	%edx, %edx
	jle	.L3
	movl	$1, %r12d
	leaq	240(%rsp), %rbx
	leaq	32(%rsp), %r14
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %r13
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%rbx,%r15,4), %rdx
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edi
	addq	$1, %r15
	addq	$4, %r13
	cmpl	%r15d, %edi
	jg	.L4
	cmpl	$2, %edi
	jle	.L11
	movl	32(%rsp), %r8d
	movl	240(%rsp), %r9d
	cmpl	$4, %edi
	jle	.L12
	leal	-5(%rdi), %edx
	movl	36(%rsp), %esi
	movl	$4, %ecx
	pxor	%xmm1, %xmm1
	shrl	%edx
	movl	244(%rsp), %eax
	leal	3(%rdx), %r11d
	movq	.LC3(%rip), %rdx
	addq	%r11, %r11
	movq	%rdx, %xmm2
.L7:
	movl	-8(%r14,%rcx,4), %r10d
	movl	-8(%rbx,%rcx,4), %r13d
	subl	%r9d, %eax
	subl	%r8d, %esi
	pxor	%xmm0, %xmm0
	subl	%r9d, %r13d
	subl	%r8d, %r10d
	imull	%r13d, %esi
	imull	%r10d, %eax
	subl	%esi, %eax
	movl	-4(%r14,%rcx,4), %esi
	cvtsi2sdl	%eax, %xmm0
	movl	-4(%rbx,%rcx,4), %eax
	mulsd	.LC3(%rip), %xmm0
	movl	%esi, %edx
	subl	%r8d, %edx
	imull	%r13d, %edx
	movl	%eax, %r13d
	subl	%r9d, %r13d
	imull	%r13d, %r10d
	addsd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	subl	%r10d, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	movslq	%ecx, %rdx
	addq	$2, %rcx
	addsd	%xmm0, %xmm1
	cmpq	%rcx, %r11
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	movl	-4(%rbx,%rdx,4), %eax
	movl	(%r14,%rdx,4), %ecx
	pxor	%xmm0, %xmm0
	movl	-4(%r14,%rdx,4), %esi
	subl	%r8d, %ecx
	subl	%r9d, %eax
	imull	%ecx, %eax
	movl	(%rbx,%rdx,4), %ecx
	subl	%r8d, %esi
	addq	$1, %rdx
	subl	%r9d, %ecx
	imull	%esi, %ecx
	subl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
	cmpl	%edx, %edi
	jg	.L8
.L5:
	movapd	%xmm1, %xmm0
	movl	%r12d, %edx
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	leal	1(%r12), %r15d
	call	__printf_chk@PLT
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	%r15d, %r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$456, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	jmp	.L5
.L12:
	movq	.LC3(%rip), %rax
	pxor	%xmm1, %xmm1
	movl	$2, %edx
	movq	%rax, %xmm2
	jmp	.L8
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.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>
int main(void){
    int px[50],py[50],np,i,sign,cnt = 1;
    double area;
    scanf("%d", &np);
    while( np > 0 ){
        for(i = 0; i < np; i++){
            scanf( "%d %d", &px[i], &py[i] );
        }
        area = 0;
        for(i = 2; i < np; i++){
            area += (double)( (px[i] - px[0])*(py[i-1] - py[0])
                              - (px[i-1] - px[0])*(py[i] - py[0]) )/2;

        }
        printf("%d %.1lf\n",cnt++, area);
        scanf("%d", &np);
    }
    return 0;
}
3
1 1
3 4
6 0

7
0 0
10 10
0 20
10 33
0 40
100 40
100 0

0
 3
1 1
3 4
6 0

7
0 0
10 10
0 20
10 33
0 40
110 40
100 0

0
 3
1 1
3 4
6 0

7
0 0
10 10
0 20
10 30
0 40
100 40
100 1

0
 3
1 1
3 4
6 0

7
0 0
10 10
0 20
3 33
0 40
100 40
100 0

0
 3
1 1
3 1
6 0

7
0 0
10 10
0 20
10 30
0 40
100 40
100 1

0
 3
1 1
3 4
6 0

7
1 0
10 10
0 20
3 33
0 40
100 40
100 0

0
 3
1 1
3 4
2 0

7
0 0
10 15
0 20
10 33
0 40
110 40
100 0

0
 3
1 1
3 4
6 0

7
1 -1
10 10
0 20
3 33
0 40
100 40
100 0

0
 3
1 1
3 4
2 0

7
0 0
10 15
0 20
10 33
0 40
110 1
100 0

0
 3
1 1
3 4
6 -1

7
1 -1
10 10
0 20
3 33
0 40
100 40
100 0

0

1 8.5
2 3800.0
 1 8.5
2 4000.0
 1 8.5
2 3750.0
 1 8.5
2 3870.0
 1 1.0
2 3750.0
 1 8.5
2 3865.0
 1 2.5
2 4000.0
 1 8.5
2 3910.0
 1 2.5
2 2050.0
 1 9.5
2 3910.0

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>
int main(void){
    int px[50],py[50],np,i,sign,cnt = 1;
    double area;
    scanf("%d", &np);
    while( np > 0 ){
        for(i = 0; i < np; i++){
            scanf( "%d %d", &px[i], &py[i] );
        }
        area = 0;
        for(i = 2; i < np; i++){
            area += (double)( (px[i] - px[0])*(py[i-1] - py[0])
                              - (px[i-1] - px[0])*(py[i] - py[0]) )/2;

        }
        printf("%d %.1lf\n",cnt++, area);
        scanf("%d", &np);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC4:
	.string	"%d %.1lf\n"
	.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	$448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -428(%rbp)
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L7:
	movl	$0, -432(%rbp)
	jmp	.L3
.L4:
	leaq	-208(%rbp), %rdx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-416(%rbp), %rcx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -432(%rbp)
.L3:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L4
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -424(%rbp)
	movl	$2, -432(%rbp)
	jmp	.L5
.L6:
	movl	-432(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	-416(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	movl	-208(%rbp), %ecx
	subl	%ecx, %eax
	imull	%eax, %edx
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	-416(%rbp), %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	-432(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	movl	-208(%rbp), %esi
	subl	%esi, %eax
	imull	%ecx, %eax
	subl	%eax, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-424(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	addl	$1, -432(%rbp)
.L5:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L6
	movl	-428(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -428(%rbp)
	movq	-424(%rbp), %rdx
	movq	%rdx, %xmm0
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-436(%rbp), %eax
	testl	%eax, %eax
	jg	.L7
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.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	"%d"
.LC1:
	.string	"%d %d"
.LC4:
	.string	"%d %.1lf\n"
	.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	$448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -428(%rbp)
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L7:
	movl	$0, -432(%rbp)
	jmp	.L3
.L4:
	leaq	-208(%rbp), %rdx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-416(%rbp), %rcx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -432(%rbp)
.L3:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L4
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -424(%rbp)
	movl	$2, -432(%rbp)
	jmp	.L5
.L6:
	movl	-432(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	-416(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	movl	-208(%rbp), %ecx
	subl	%ecx, %eax
	imull	%eax, %edx
	movl	-432(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	-416(%rbp), %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	-432(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	movl	-208(%rbp), %esi
	subl	%esi, %eax
	imull	%ecx, %eax
	subl	%eax, %edx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	movsd	.LC3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-424(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -424(%rbp)
	addl	$1, -432(%rbp)
.L5:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L6
	movl	-428(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -428(%rbp)
	movq	-424(%rbp), %rdx
	movq	%rdx, %xmm0
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-436(%rbp), %eax
	testl	%eax, %eax
	jg	.L7
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.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:
