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 n, i, b, x, count, answer;
        double s;
	double a[200];
	scanf("%d", &n);
	for (i = 0; i<n; i++){
            scanf("%lf", &a[i]);  //ここまで配列の準備
            b =  b + a[i];
        }
        b = b*1000;
        s = b;
 	x = b / n; //平均の１００倍
        
        for(i = 0; i<n; i++){
            count = (a[i]*1000)-x;
            if (count<0){
                  count = -1 * count;
            }
            if (count<s){
                    answer = i;
                    s = count;
            }
        }
 
	printf("%d\n", answer);
 
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC3:
	.string	"%d\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	.LC0(%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	$1640, %rsp
	.cfi_def_cfa_offset 1696
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	leaq	16(%rsp), %rbp
	xorl	%r15d, %r15d
	leaq	.LC1(%rip), %r13
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	movl	12(%rsp), %ecx
	addq	$8, %rbx
	cvtsi2sdl	%r14d, %xmm0
	addsd	-8(%rbx), %xmm0
	cvttsd2sil	%xmm0, %r14d
	cmpl	%r15d, %ecx
	jg	.L4
	imull	$1000, %r14d, %eax
	pxor	%xmm1, %xmm1
	cltd
	cvtsi2sdl	%eax, %xmm1
	idivl	%ecx
	testl	%ecx, %ecx
	jle	.L3
	pxor	%xmm3, %xmm3
	movsd	.LC2(%rip), %xmm2
	movslq	%ecx, %rsi
	cvtsi2sdl	%eax, %xmm3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	movsd	0(%rbp,%rax,8), %xmm0
	mulsd	%xmm2, %xmm0
	subsd	%xmm3, %xmm0
	cvttsd2sil	%xmm0, %ecx
	pxor	%xmm0, %xmm0
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	cvtsi2sdl	%edx, %xmm0
	comisd	%xmm0, %xmm1
	minsd	%xmm1, %xmm0
	cmova	%eax, %r12d
	addq	$1, %rax
	movapd	%xmm0, %xmm1
	cmpq	%rax, %rsi
	jne	.L7
.L3:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$1640, %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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1083129856
	.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
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC3:
	.string	"%d\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	.LC0(%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	$1640, %rsp
	.cfi_def_cfa_offset 1696
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	leaq	16(%rsp), %rbp
	xorl	%r15d, %r15d
	leaq	.LC1(%rip), %r13
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	movl	12(%rsp), %ecx
	addq	$8, %rbx
	cvtsi2sdl	%r14d, %xmm0
	addsd	-8(%rbx), %xmm0
	cvttsd2sil	%xmm0, %r14d
	cmpl	%r15d, %ecx
	jg	.L4
	imull	$1000, %r14d, %eax
	pxor	%xmm1, %xmm1
	cltd
	cvtsi2sdl	%eax, %xmm1
	idivl	%ecx
	testl	%ecx, %ecx
	jle	.L3
	pxor	%xmm3, %xmm3
	movsd	.LC2(%rip), %xmm2
	movslq	%ecx, %rsi
	cvtsi2sdl	%eax, %xmm3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	movsd	0(%rbp,%rax,8), %xmm0
	mulsd	%xmm2, %xmm0
	subsd	%xmm3, %xmm0
	cvttsd2sil	%xmm0, %ecx
	pxor	%xmm0, %xmm0
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	cvtsi2sdl	%edx, %xmm0
	comisd	%xmm0, %xmm1
	minsd	%xmm1, %xmm0
	cmova	%eax, %r12d
	addq	$1, %rax
	movapd	%xmm0, %xmm1
	cmpq	%rax, %rsi
	jne	.L7
.L3:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$1640, %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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1083129856
	.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
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC3:
	.string	"%d\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	.LC0(%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	$1640, %rsp
	.cfi_def_cfa_offset 1696
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	leaq	16(%rsp), %rbp
	xorl	%r15d, %r15d
	leaq	.LC1(%rip), %r13
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	movl	12(%rsp), %ecx
	addq	$8, %rbx
	cvtsi2sdl	%r14d, %xmm0
	addsd	-8(%rbx), %xmm0
	cvttsd2sil	%xmm0, %r14d
	cmpl	%r15d, %ecx
	jg	.L4
	imull	$1000, %r14d, %eax
	pxor	%xmm1, %xmm1
	cltd
	cvtsi2sdl	%eax, %xmm1
	idivl	%ecx
	testl	%ecx, %ecx
	jle	.L3
	pxor	%xmm3, %xmm3
	movsd	.LC2(%rip), %xmm2
	movslq	%ecx, %rsi
	cvtsi2sdl	%eax, %xmm3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	movsd	0(%rbp,%rax,8), %xmm0
	mulsd	%xmm2, %xmm0
	subsd	%xmm3, %xmm0
	cvttsd2sil	%xmm0, %ecx
	pxor	%xmm0, %xmm0
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	cvtsi2sdl	%edx, %xmm0
	comisd	%xmm0, %xmm1
	minsd	%xmm1, %xmm0
	cmova	%eax, %r12d
	addq	$1, %rax
	movapd	%xmm0, %xmm1
	cmpq	%rax, %rsi
	jne	.L7
.L3:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$1640, %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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1083129856
	.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 n, i, b, x, count, answer;
        double s;
	double a[200];
	scanf("%d", &n);
	for (i = 0; i<n; i++){
            scanf("%lf", &a[i]);  //ここまで配列の準備
            b =  b + a[i];
        }
        b = b*1000;
        s = b;
 	x = b / n; //平均の１００倍
        
        for(i = 0; i<n; i++){
            count = (a[i]*1000)-x;
            if (count<0){
                  count = -1 * count;
            }
            if (count<s){
                    answer = i;
                    s = count;
            }
        }
 
	printf("%d\n", answer);
 
	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 n, i, b, x, count, answer;
        double s;
	double a[200];
	scanf("%d", &n);
	for (i = 0; i<n; i++){
            scanf("%lf", &a[i]);  //ここまで配列の準備
            b =  b + a[i];
        }
        b = b*1000;
        s = b;
 	x = b / n; //平均の１００倍
        
        for(i = 0; i<n; i++){
            count = (a[i]*1000)-x;
            if (count<0){
                  count = -1 * count;
            }
            if (count<s){
                    answer = i;
                    s = count;
            }
        }
 
	printf("%d\n", answer);
 
	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
0 2 3
 4
2 5 3 5
 3
0 0 3
 4
3 9 3 5
 4
3 5 3 5
 3
0 0 1
 4
5 9 3 5
 4
5 14 3 5
 4
5 14 6 5
 4
0 14 6 5

2
 1
 1736415839
 1
 1
 1736415839
 1736415839
 1736415839
 1
 1736415839

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 n, i, b, x, count, answer;
        double s;
	double a[200];
	scanf("%d", &n);
	for (i = 0; i<n; i++){
            scanf("%lf", &a[i]);  //ここまで配列の準備
            b =  b + a[i];
        }
        b = b*1000;
        s = b;
 	x = b / n; //平均の１００倍
        
        for(i = 0; i<n; i++){
            count = (a[i]*1000)-x;
            if (count<0){
                  count = -1 * count;
            }
            if (count<s){
                    answer = i;
                    s = count;
            }
        }
 
	printf("%d\n", answer);
 
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC3:
	.string	"%d\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	.LC0(%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	$1640, %rsp
	.cfi_def_cfa_offset 1696
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	leaq	16(%rsp), %rbp
	xorl	%r15d, %r15d
	leaq	.LC1(%rip), %r13
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	movl	12(%rsp), %ecx
	addq	$8, %rbx
	cvtsi2sdl	%r14d, %xmm0
	addsd	-8(%rbx), %xmm0
	cvttsd2sil	%xmm0, %r14d
	cmpl	%r15d, %ecx
	jg	.L4
	imull	$1000, %r14d, %eax
	pxor	%xmm1, %xmm1
	cltd
	cvtsi2sdl	%eax, %xmm1
	idivl	%ecx
	testl	%ecx, %ecx
	jle	.L3
	pxor	%xmm3, %xmm3
	movsd	.LC2(%rip), %xmm2
	movslq	%ecx, %rsi
	cvtsi2sdl	%eax, %xmm3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	movsd	0(%rbp,%rax,8), %xmm0
	mulsd	%xmm2, %xmm0
	subsd	%xmm3, %xmm0
	cvttsd2sil	%xmm0, %ecx
	pxor	%xmm0, %xmm0
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	cvtsi2sdl	%edx, %xmm0
	comisd	%xmm0, %xmm1
	minsd	%xmm1, %xmm0
	cmova	%eax, %r12d
	addq	$1, %rax
	movapd	%xmm0, %xmm1
	cmpq	%rax, %rsi
	jne	.L7
.L3:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$1640, %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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1083129856
	.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
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC3:
	.string	"%d\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	.LC0(%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	$1640, %rsp
	.cfi_def_cfa_offset 1696
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	leaq	16(%rsp), %rbp
	xorl	%r15d, %r15d
	leaq	.LC1(%rip), %r13
	movq	%rbp, %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	movl	12(%rsp), %ecx
	addq	$8, %rbx
	cvtsi2sdl	%r14d, %xmm0
	addsd	-8(%rbx), %xmm0
	cvttsd2sil	%xmm0, %r14d
	cmpl	%r15d, %ecx
	jg	.L4
	imull	$1000, %r14d, %eax
	pxor	%xmm1, %xmm1
	cltd
	cvtsi2sdl	%eax, %xmm1
	idivl	%ecx
	testl	%ecx, %ecx
	jle	.L3
	pxor	%xmm3, %xmm3
	movsd	.LC2(%rip), %xmm2
	movslq	%ecx, %rsi
	cvtsi2sdl	%eax, %xmm3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	movsd	0(%rbp,%rax,8), %xmm0
	mulsd	%xmm2, %xmm0
	subsd	%xmm3, %xmm0
	cvttsd2sil	%xmm0, %ecx
	pxor	%xmm0, %xmm0
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	cvtsi2sdl	%edx, %xmm0
	comisd	%xmm0, %xmm1
	minsd	%xmm1, %xmm0
	cmova	%eax, %r12d
	addq	$1, %rax
	movapd	%xmm0, %xmm1
	cmpq	%rax, %rsi
	jne	.L7
.L3:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$1640, %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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1083129856
	.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:
```