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>
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;
}```

Assembly Code:

```assembly
	.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%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:
```