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

```c
// AtCoder165 C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <memory.h>
#include <malloc.h>
#include <stdlib.h>

// qsortで用いる比較用関数．*a<*bならaが先になる．
int compare(const void* a, const void* b) {
    return *(int*)a - *(int*)b;
}

int main() {
    int i,j;
    int n;
    int* x;
    double avg = 0;
    int sum = 0;

    scanf("%d", &n);

    x = (int*)malloc(sizeof(int) * n);

    for(i=0;i<n;i++){
        scanf("%d", x + i);
        avg += *(x+i);
    }
    avg = round(avg / n);

    for(i=0;i<n;i++){
        sum += pow(*(x+i)-avg, 2);
    }

    printf("%d", sum);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare, .-compare
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r15, %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$2, %rdi
	call	malloc@PLT
	testl	%ebx, %ebx
	jle	.L7
	movq	%rax, %r14
	movq	%rax, %rbx
	movq	%rax, %rbp
	xorl	%r12d, %r12d
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	movsd	%xmm0, 8(%rsp)
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	movsd	8(%rsp), %xmm0
	movl	20(%rsp), %r13d
	cvtsi2sdl	0(%rbp), %xmm1
	addl	$1, %r12d
	addq	$4, %rbp
	addsd	%xmm1, %xmm0
	cmpl	%r12d, %r13d
	jg	.L6
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r13d, %xmm1
	divsd	%xmm1, %xmm0
	call	round@PLT
	testl	%r13d, %r13d
	jle	.L7
	leaq	(%r14,%r13,4), %rax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	addq	$4, %rbx
	cvtsi2sdl	-4(%rbx), %xmm1
	cvtsi2sdl	%edx, %xmm2
	subsd	%xmm0, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm2
	cvttsd2sil	%xmm2, %edx
	cmpq	%rbx, %rax
	jne	.L8
.L5:
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$40, %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
.L7:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L5
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.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
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare, .-compare
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r15, %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$2, %rdi
	call	malloc@PLT
	testl	%ebx, %ebx
	jle	.L7
	movq	%rax, %r14
	movq	%rax, %rbx
	movq	%rax, %rbp
	xorl	%r12d, %r12d
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	movsd	%xmm0, 8(%rsp)
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	movsd	8(%rsp), %xmm0
	movl	20(%rsp), %r13d
	cvtsi2sdl	0(%rbp), %xmm1
	addl	$1, %r12d
	addq	$4, %rbp
	addsd	%xmm1, %xmm0
	cmpl	%r12d, %r13d
	jg	.L6
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r13d, %xmm1
	divsd	%xmm1, %xmm0
	call	round@PLT
	testl	%r13d, %r13d
	jle	.L7
	leaq	(%r14,%r13,4), %rax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	addq	$4, %rbx
	cvtsi2sdl	-4(%rbx), %xmm1
	cvtsi2sdl	%edx, %xmm2
	subsd	%xmm0, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm2
	cvttsd2sil	%xmm2, %edx
	cmpq	%rbx, %rax
	jne	.L8
.L5:
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$40, %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
.L7:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L5
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.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
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare, .-compare
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r15, %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$2, %rdi
	call	malloc@PLT
	testl	%ebx, %ebx
	jle	.L7
	movq	%rax, %r14
	movq	%rax, %rbx
	movq	%rax, %rbp
	xorl	%r12d, %r12d
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	movsd	%xmm0, 8(%rsp)
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	movsd	8(%rsp), %xmm0
	movl	20(%rsp), %r13d
	cvtsi2sdl	0(%rbp), %xmm1
	addl	$1, %r12d
	addq	$4, %rbp
	addsd	%xmm1, %xmm0
	cmpl	%r12d, %r13d
	jg	.L6
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r13d, %xmm1
	divsd	%xmm1, %xmm0
	call	round@PLT
	testl	%r13d, %r13d
	jle	.L7
	leaq	(%r14,%r13,4), %rax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	addq	$4, %rbx
	cvtsi2sdl	-4(%rbx), %xmm1
	cvtsi2sdl	%edx, %xmm2
	subsd	%xmm0, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm2
	cvttsd2sil	%xmm2, %edx
	cmpq	%rbx, %rax
	jne	.L8
.L5:
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$40, %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
.L7:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L5
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.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
// AtCoder165 C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <memory.h>
#include <malloc.h>
#include <stdlib.h>

// qsortで用いる比較用関数．*a<*bならaが先になる．
int compare(const void* a, const void* b) {
    return *(int*)a - *(int*)b;
}

int main() {
    int i,j;
    int n;
    int* x;
    double avg = 0;
    int sum = 0;

    scanf("%d", &n);

    x = (int*)malloc(sizeof(int) * n);

    for(i=0;i<n;i++){
        scanf("%d", x + i);
        avg += *(x+i);
    }
    avg = round(avg / n);

    for(i=0;i<n;i++){
        sum += pow(*(x+i)-avg, 2);
    }

    printf("%d", sum);
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
// AtCoder165 C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <memory.h>
#include <malloc.h>
#include <stdlib.h>

// qsortで用いる比較用関数．*a<*bならaが先になる．
int compare(const void* a, const void* b) {
    return *(int*)a - *(int*)b;
}

int main() {
    int i,j;
    int n;
    int* x;
    double avg = 0;
    int sum = 0;

    scanf("%d", &n);

    x = (int*)malloc(sizeof(int) * n);

    for(i=0;i<n;i++){
        scanf("%d", x + i);
        avg += *(x+i);
    }
    avg = round(avg / n);

    for(i=0;i<n;i++){
        sum += pow(*(x+i)-avg, 2);
    }

    printf("%d", sum);
    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:

7
14 14 3 13 56 2 37
 2
0 4
 7
14 14 3 13 56 2 0
 2
0 1
 7
14 14 3 12 56 2 0
 7
19 14 3 12 56 2 0
 7
19 14 3 24 56 2 0
 7
11 14 3 24 56 2 0
 7
11 14 3 24 56 1 0
 7
11 14 3 33 56 1 0

2319 8 2225 1 2229 2245 2293 2314 2343 2563
Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
// AtCoder165 C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <memory.h>
#include <malloc.h>
#include <stdlib.h>

// qsortで用いる比較用関数．*a<*bならaが先になる．
int compare(const void* a, const void* b) {
    return *(int*)a - *(int*)b;
}

int main() {
    int i,j;
    int n;
    int* x;
    double avg = 0;
    int sum = 0;

    scanf("%d", &n);

    x = (int*)malloc(sizeof(int) * n);

    for(i=0;i<n;i++){
        scanf("%d", x + i);
        avg += *(x+i);
    }
    avg = round(avg / n);

    for(i=0;i<n;i++){
        sum += pow(*(x+i)-avg, 2);
    }

    printf("%d", sum);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare, .-compare
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r15, %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$2, %rdi
	call	malloc@PLT
	testl	%ebx, %ebx
	jle	.L7
	movq	%rax, %r14
	movq	%rax, %rbx
	movq	%rax, %rbp
	xorl	%r12d, %r12d
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	movsd	%xmm0, 8(%rsp)
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	movsd	8(%rsp), %xmm0
	movl	20(%rsp), %r13d
	cvtsi2sdl	0(%rbp), %xmm1
	addl	$1, %r12d
	addq	$4, %rbp
	addsd	%xmm1, %xmm0
	cmpl	%r12d, %r13d
	jg	.L6
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r13d, %xmm1
	divsd	%xmm1, %xmm0
	call	round@PLT
	testl	%r13d, %r13d
	jle	.L7
	leaq	(%r14,%r13,4), %rax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	addq	$4, %rbx
	cvtsi2sdl	-4(%rbx), %xmm1
	cvtsi2sdl	%edx, %xmm2
	subsd	%xmm0, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm2
	cvttsd2sil	%xmm2, %edx
	cmpq	%rbx, %rax
	jne	.L8
.L5:
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$40, %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
.L7:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L5
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.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
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare, .-compare
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r15, %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$2, %rdi
	call	malloc@PLT
	testl	%ebx, %ebx
	jle	.L7
	movq	%rax, %r14
	movq	%rax, %rbx
	movq	%rax, %rbp
	xorl	%r12d, %r12d
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	movsd	%xmm0, 8(%rsp)
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	movsd	8(%rsp), %xmm0
	movl	20(%rsp), %r13d
	cvtsi2sdl	0(%rbp), %xmm1
	addl	$1, %r12d
	addq	$4, %rbp
	addsd	%xmm1, %xmm0
	cmpl	%r12d, %r13d
	jg	.L6
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r13d, %xmm1
	divsd	%xmm1, %xmm0
	call	round@PLT
	testl	%r13d, %r13d
	jle	.L7
	leaq	(%r14,%r13,4), %rax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	addq	$4, %rbx
	cvtsi2sdl	-4(%rbx), %xmm1
	cvtsi2sdl	%edx, %xmm2
	subsd	%xmm0, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm2
	cvttsd2sil	%xmm2, %edx
	cmpq	%rbx, %rax
	jne	.L8
.L5:
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$40, %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
.L7:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L5
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.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:
```