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>
#include<stdlib.h>
int main(){
  double T,A,H,temp,min=1000;
  int N,i,count;
  scanf("%d",&N);
  scanf("%lf %lf",&T,&A);
  for(i=1;i<=N;i++){
    scanf("%lf",&H);
    temp=T-H*0.006;
    if(fabs(A-temp)<min){
      min=fabs(A-temp);
      count=i;
    }
  }
  printf("%d",count);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%lf %lf"
.LC3:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	40(%rsp), %rdx
	leaq	32(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movsd	.LC0(%rip), %xmm2
	movl	$1, %ebx
	leaq	48(%rsp), %r13
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	movsd	%xmm2, 8(%rsp)
	call	__isoc99_scanf@PLT
	movsd	.LC4(%rip), %xmm0
	mulsd	48(%rsp), %xmm0
	movsd	32(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	subsd	%xmm0, %xmm1
	movsd	40(%rsp), %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC5(%rip), %xmm0
	comisd	%xmm0, %xmm2
	minsd	%xmm2, %xmm0
	cmova	%ebx, %r12d
	movapd	%xmm0, %xmm2
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jge	.L5
.L2:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1083129856
	.align 8
.LC4:
	.long	-1133871366
	.long	1064866676
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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	"%lf %lf"
.LC3:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	40(%rsp), %rdx
	leaq	32(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movsd	.LC0(%rip), %xmm2
	movl	$1, %ebx
	leaq	48(%rsp), %r13
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	movsd	%xmm2, 8(%rsp)
	call	__isoc99_scanf@PLT
	movsd	.LC4(%rip), %xmm0
	mulsd	48(%rsp), %xmm0
	movsd	32(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	subsd	%xmm0, %xmm1
	movsd	40(%rsp), %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC5(%rip), %xmm0
	comisd	%xmm0, %xmm2
	minsd	%xmm2, %xmm0
	cmova	%ebx, %r12d
	movapd	%xmm0, %xmm2
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jge	.L5
.L2:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1083129856
	.align 8
.LC4:
	.long	-1133871366
	.long	1064866676
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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	"%lf %lf"
.LC3:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	40(%rsp), %rdx
	leaq	32(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movsd	.LC0(%rip), %xmm2
	movl	$1, %ebx
	leaq	48(%rsp), %r13
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	movsd	%xmm2, 8(%rsp)
	call	__isoc99_scanf@PLT
	movsd	.LC4(%rip), %xmm0
	mulsd	48(%rsp), %xmm0
	movsd	32(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	subsd	%xmm0, %xmm1
	movsd	40(%rsp), %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC5(%rip), %xmm0
	comisd	%xmm0, %xmm2
	minsd	%xmm2, %xmm0
	cmova	%ebx, %r12d
	movapd	%xmm0, %xmm2
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jge	.L5
.L2:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1083129856
	.align 8
.LC4:
	.long	-1133871366
	.long	1064866676
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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>
#include<stdlib.h>
int main(){
  double T,A,H,temp,min=1000;
  int N,i,count;
  scanf("%d",&N);
  scanf("%lf %lf",&T,&A);
  for(i=1;i<=N;i++){
    scanf("%lf",&H);
    temp=T-H*0.006;
    if(fabs(A-temp)<min){
      min=fabs(A-temp);
      count=i;
    }
  }
  printf("%d",count);
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>
int main(){
  double T,A,H,temp,min=1000;
  int N,i,count;
  scanf("%d",&N);
  scanf("%lf %lf",&T,&A);
  for(i=1;i<=N;i++){
    scanf("%lf",&H);
    temp=T-H*0.006;
    if(fabs(A-temp)<min){
      min=fabs(A-temp);
      count=i;
    }
  }
  printf("%d",count);
}
```

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:

2
12 5
1000 2000

1
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>
#include<stdlib.h>
int main(){
  double T,A,H,temp,min=1000;
  int N,i,count;
  scanf("%d",&N);
  scanf("%lf %lf",&T,&A);
  for(i=1;i<=N;i++){
    scanf("%lf",&H);
    temp=T-H*0.006;
    if(fabs(A-temp)<min){
      min=fabs(A-temp);
      count=i;
    }
  }
  printf("%d",count);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%lf %lf"
.LC3:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	40(%rsp), %rdx
	leaq	32(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movsd	.LC0(%rip), %xmm2
	movl	$1, %ebx
	leaq	48(%rsp), %r13
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	movsd	%xmm2, 8(%rsp)
	call	__isoc99_scanf@PLT
	movsd	.LC4(%rip), %xmm0
	mulsd	48(%rsp), %xmm0
	movsd	32(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	subsd	%xmm0, %xmm1
	movsd	40(%rsp), %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC5(%rip), %xmm0
	comisd	%xmm0, %xmm2
	minsd	%xmm2, %xmm0
	cmova	%ebx, %r12d
	movapd	%xmm0, %xmm2
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jge	.L5
.L2:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1083129856
	.align 8
.LC4:
	.long	-1133871366
	.long	1064866676
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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	"%lf %lf"
.LC3:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	40(%rsp), %rdx
	leaq	32(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movsd	.LC0(%rip), %xmm2
	movl	$1, %ebx
	leaq	48(%rsp), %r13
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	movsd	%xmm2, 8(%rsp)
	call	__isoc99_scanf@PLT
	movsd	.LC4(%rip), %xmm0
	mulsd	48(%rsp), %xmm0
	movsd	32(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	subsd	%xmm0, %xmm1
	movsd	40(%rsp), %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC5(%rip), %xmm0
	comisd	%xmm0, %xmm2
	minsd	%xmm2, %xmm0
	cmova	%ebx, %r12d
	movapd	%xmm0, %xmm2
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jge	.L5
.L2:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1083129856
	.align 8
.LC4:
	.long	-1133871366
	.long	1064866676
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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:
```