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

```c
#define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
//#include<stdlib.h>
#include<math.h>
//#include<string.h>
//#include<time.h>
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
int main() {
	int n, num, ans;
	double t, h, w, b;
	for (; ~fscanf(stdin, "%d", &n), n; P(d, ans)) {
		fscanf(stdin, "%d%lf%lf", &num, &h, &w);
		ans = num;
		h /= 100.0;
		b = w / (h*h);
		t = fabs(22.0 - b);
		n--;
		while (n--) {
			fscanf(stdin, "%d%lf%lf", &num, &h, &w);
			h /= 100.0;
			b = w / (h*h);
			if (fabs(22.0 - b) < t) t = fabs(22.0 - b), ans = num;
			else if (fabs(22.0 - b == t)) ans = ans < num ? ans : num;
		}
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%lf%lf"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	movq	%r15, %rdx
	leaq	.LC5(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L20
	leaq	32(%rsp), %r14
	leaq	24(%rsp), %rbp
	movq	%r13, %rsi
	xorl	%eax, %eax
	movq	stdin(%rip), %rdi
	leaq	20(%rsp), %rbx
	movq	%r14, %r8
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	call	__isoc99_fscanf@PLT
	movsd	24(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	mulsd	%xmm0, %xmm0
	movsd	32(%rsp), %xmm1
	movl	16(%rsp), %eax
	movsd	.LC2(%rip), %xmm2
	movl	20(%rsp), %r12d
	leal	-2(%rax), %edx
	movl	%edx, 16(%rsp)
	divsd	%xmm0, %xmm1
	subsd	%xmm1, %xmm2
	andpd	.LC3(%rip), %xmm2
	cmpl	$1, %eax
	jne	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	movl	20(%rsp), %r12d
	movapd	%xmm1, %xmm2
.L6:
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	je	.L3
.L8:
	movq	stdin(%rip), %rdi
	xorl	%eax, %eax
	movq	%r14, %r8
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movq	%r13, %rsi
	movsd	%xmm2, 8(%rsp)
	call	__isoc99_fscanf@PLT
	movsd	24(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	mulsd	%xmm0, %xmm0
	movsd	32(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	divsd	%xmm0, %xmm1
	movsd	.LC2(%rip), %xmm0
	subsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	andpd	.LC3(%rip), %xmm1
	comisd	%xmm1, %xmm2
	ja	.L21
	ucomisd	%xmm2, %xmm0
	jp	.L6
	jne	.L6
	movl	20(%rsp), %eax
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	jne	.L8
.L3:
	movq	stdout(%rip), %rdi
	movl	%r12d, %ecx
	movl	$1, %esi
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rdx
	call	__fprintf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1079574528
	.align 8
.LC2:
	.long	0
	.long	1077280768
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.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
.LC0:
	.string	"%d%lf%lf"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	movq	%r15, %rdx
	leaq	.LC5(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L20
	leaq	32(%rsp), %r14
	leaq	24(%rsp), %rbp
	movq	%r13, %rsi
	xorl	%eax, %eax
	movq	stdin(%rip), %rdi
	leaq	20(%rsp), %rbx
	movq	%r14, %r8
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	call	__isoc99_fscanf@PLT
	movsd	24(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	mulsd	%xmm0, %xmm0
	movsd	32(%rsp), %xmm1
	movl	16(%rsp), %eax
	movsd	.LC2(%rip), %xmm2
	movl	20(%rsp), %r12d
	leal	-2(%rax), %edx
	movl	%edx, 16(%rsp)
	divsd	%xmm0, %xmm1
	subsd	%xmm1, %xmm2
	andpd	.LC3(%rip), %xmm2
	cmpl	$1, %eax
	jne	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	movl	20(%rsp), %r12d
	movapd	%xmm1, %xmm2
.L6:
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	je	.L3
.L8:
	movq	stdin(%rip), %rdi
	xorl	%eax, %eax
	movq	%r14, %r8
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movq	%r13, %rsi
	movsd	%xmm2, 8(%rsp)
	call	__isoc99_fscanf@PLT
	movsd	24(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	mulsd	%xmm0, %xmm0
	movsd	32(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	divsd	%xmm0, %xmm1
	movsd	.LC2(%rip), %xmm0
	subsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	andpd	.LC3(%rip), %xmm1
	comisd	%xmm1, %xmm2
	ja	.L21
	ucomisd	%xmm2, %xmm0
	jp	.L6
	jne	.L6
	movl	20(%rsp), %eax
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	jne	.L8
.L3:
	movq	stdout(%rip), %rdi
	movl	%r12d, %ecx
	movl	$1, %esi
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rdx
	call	__fprintf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1079574528
	.align 8
.LC2:
	.long	0
	.long	1077280768
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.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
.LC0:
	.string	"%d%lf%lf"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	movq	%r15, %rdx
	leaq	.LC5(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L20
	leaq	32(%rsp), %r14
	leaq	24(%rsp), %rbp
	movq	%r13, %rsi
	xorl	%eax, %eax
	movq	stdin(%rip), %rdi
	leaq	20(%rsp), %rbx
	movq	%r14, %r8
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	call	__isoc99_fscanf@PLT
	movsd	24(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	mulsd	%xmm0, %xmm0
	movsd	32(%rsp), %xmm1
	movl	16(%rsp), %eax
	movsd	.LC2(%rip), %xmm2
	movl	20(%rsp), %r12d
	leal	-2(%rax), %edx
	movl	%edx, 16(%rsp)
	divsd	%xmm0, %xmm1
	subsd	%xmm1, %xmm2
	andpd	.LC3(%rip), %xmm2
	cmpl	$1, %eax
	jne	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	movl	20(%rsp), %r12d
	movapd	%xmm1, %xmm2
.L6:
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	je	.L3
.L8:
	movq	stdin(%rip), %rdi
	xorl	%eax, %eax
	movq	%r14, %r8
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movq	%r13, %rsi
	movsd	%xmm2, 8(%rsp)
	call	__isoc99_fscanf@PLT
	movsd	24(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	mulsd	%xmm0, %xmm0
	movsd	32(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	divsd	%xmm0, %xmm1
	movsd	.LC2(%rip), %xmm0
	subsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	andpd	.LC3(%rip), %xmm1
	comisd	%xmm1, %xmm2
	ja	.L21
	ucomisd	%xmm2, %xmm0
	jp	.L6
	jne	.L6
	movl	20(%rsp), %eax
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	jne	.L8
.L3:
	movq	stdout(%rip), %rdi
	movl	%r12d, %ecx
	movl	$1, %esi
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rdx
	call	__fprintf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1079574528
	.align 8
.LC2:
	.long	0
	.long	1077280768
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.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
#define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
//#include<stdlib.h>
#include<math.h>
//#include<string.h>
//#include<time.h>
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
int main() {
	int n, num, ans;
	double t, h, w, b;
	for (; ~fscanf(stdin, "%d", &n), n; P(d, ans)) {
		fscanf(stdin, "%d%lf%lf", &num, &h, &w);
		ans = num;
		h /= 100.0;
		b = w / (h*h);
		t = fabs(22.0 - b);
		n--;
		while (n--) {
			fscanf(stdin, "%d%lf%lf", &num, &h, &w);
			h /= 100.0;
			b = w / (h*h);
			if (fabs(22.0 - b) < t) t = fabs(22.0 - b), ans = num;
			else if (fabs(22.0 - b == t)) ans = ans < num ? ans : num;
		}
	}
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
//#include<stdlib.h>
#include<math.h>
//#include<string.h>
//#include<time.h>
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
int main() {
	int n, num, ans;
	double t, h, w, b;
	for (; ~fscanf(stdin, "%d", &n), n; P(d, ans)) {
		fscanf(stdin, "%d%lf%lf", &num, &h, &w);
		ans = num;
		h /= 100.0;
		b = w / (h*h);
		t = fabs(22.0 - b);
		n--;
		while (n--) {
			fscanf(stdin, "%d%lf%lf", &num, &h, &w);
			h /= 100.0;
			b = w / (h*h);
			if (fabs(22.0 - b) < t) t = fabs(22.0 - b), ans = num;
			else if (fabs(22.0 - b == t)) ans = ans < num ? ans : num;
		}
	}
	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:

6
1 165 66
2 178 60
3 180 72
4 160 65
5 185 62
6 182 62
3
3 160 65
2 180 32
1 170 75
0
 6
1 165 66
2 178 60
3 180 72
4 160 65
5 185 62
6 182 62
3
3 160 65
2 180 70
1 170 103
0
 6
1 165 93
0 178 60
3 180 72
4 160 65
5 185 62
6 182 62
3
3 160 94
2 180 32
1 170 75
0
 6
1 165 93
0 178 60
3 115 72
4 160 65
5 185 62
6 182 62
3
3 160 94
2 180 32
1 170 75
0
 6
1 151 28
0 178 60
3 115 72
4 160 65
7 185 62
11 182 62
3
3 37 94
2 180 32
1 140 75
0
 6
2 95 40
-1 178 60
3 68 72
4 160 65
7 185 62
11 182 62
3
3 37 94
0 180 4
1 140 75
0
 6
2 95 40
-1 317 60
1 68 72
4 160 65
7 185 62
11 182 115
3
3 37 94
0 180 6
1 204 75
0
 6
2 95 40
-1 317 60
1 68 72
8 160 65
7 185 62
11 182 115
3
3 37 94
0 180 6
1 204 75
0
 6
2 95 40
-1 317 60
1 68 72
8 160 65
7 185 62
11 182 115
3
3 37 94
0 180 6
2 204 75
0
 6
2 32 66
1 178 118
3 180 72
4 116 65
5 101 62
6 47 50
3
0 147 129
1 3 14
0 80 24
0

3
3
 3
2
 3
1
 0
1
 0
2
 -1
1
 4
1
 8
1
 8
2
 3
0

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

```c
#define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
//#include<stdlib.h>
#include<math.h>
//#include<string.h>
//#include<time.h>
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
int main() {
	int n, num, ans;
	double t, h, w, b;
	for (; ~fscanf(stdin, "%d", &n), n; P(d, ans)) {
		fscanf(stdin, "%d%lf%lf", &num, &h, &w);
		ans = num;
		h /= 100.0;
		b = w / (h*h);
		t = fabs(22.0 - b);
		n--;
		while (n--) {
			fscanf(stdin, "%d%lf%lf", &num, &h, &w);
			h /= 100.0;
			b = w / (h*h);
			if (fabs(22.0 - b) < t) t = fabs(22.0 - b), ans = num;
			else if (fabs(22.0 - b == t)) ans = ans < num ? ans : num;
		}
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%lf%lf"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	movq	%r15, %rdx
	leaq	.LC5(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L20
	leaq	32(%rsp), %r14
	leaq	24(%rsp), %rbp
	movq	%r13, %rsi
	xorl	%eax, %eax
	movq	stdin(%rip), %rdi
	leaq	20(%rsp), %rbx
	movq	%r14, %r8
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	call	__isoc99_fscanf@PLT
	movsd	24(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	mulsd	%xmm0, %xmm0
	movsd	32(%rsp), %xmm1
	movl	16(%rsp), %eax
	movsd	.LC2(%rip), %xmm2
	movl	20(%rsp), %r12d
	leal	-2(%rax), %edx
	movl	%edx, 16(%rsp)
	divsd	%xmm0, %xmm1
	subsd	%xmm1, %xmm2
	andpd	.LC3(%rip), %xmm2
	cmpl	$1, %eax
	jne	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	movl	20(%rsp), %r12d
	movapd	%xmm1, %xmm2
.L6:
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	je	.L3
.L8:
	movq	stdin(%rip), %rdi
	xorl	%eax, %eax
	movq	%r14, %r8
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movq	%r13, %rsi
	movsd	%xmm2, 8(%rsp)
	call	__isoc99_fscanf@PLT
	movsd	24(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	mulsd	%xmm0, %xmm0
	movsd	32(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	divsd	%xmm0, %xmm1
	movsd	.LC2(%rip), %xmm0
	subsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	andpd	.LC3(%rip), %xmm1
	comisd	%xmm1, %xmm2
	ja	.L21
	ucomisd	%xmm2, %xmm0
	jp	.L6
	jne	.L6
	movl	20(%rsp), %eax
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	jne	.L8
.L3:
	movq	stdout(%rip), %rdi
	movl	%r12d, %ecx
	movl	$1, %esi
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rdx
	call	__fprintf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1079574528
	.align 8
.LC2:
	.long	0
	.long	1077280768
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.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
.LC0:
	.string	"%d%lf%lf"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	movq	%r15, %rdx
	leaq	.LC5(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L20
	leaq	32(%rsp), %r14
	leaq	24(%rsp), %rbp
	movq	%r13, %rsi
	xorl	%eax, %eax
	movq	stdin(%rip), %rdi
	leaq	20(%rsp), %rbx
	movq	%r14, %r8
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	call	__isoc99_fscanf@PLT
	movsd	24(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	mulsd	%xmm0, %xmm0
	movsd	32(%rsp), %xmm1
	movl	16(%rsp), %eax
	movsd	.LC2(%rip), %xmm2
	movl	20(%rsp), %r12d
	leal	-2(%rax), %edx
	movl	%edx, 16(%rsp)
	divsd	%xmm0, %xmm1
	subsd	%xmm1, %xmm2
	andpd	.LC3(%rip), %xmm2
	cmpl	$1, %eax
	jne	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	movl	20(%rsp), %r12d
	movapd	%xmm1, %xmm2
.L6:
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	je	.L3
.L8:
	movq	stdin(%rip), %rdi
	xorl	%eax, %eax
	movq	%r14, %r8
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movq	%r13, %rsi
	movsd	%xmm2, 8(%rsp)
	call	__isoc99_fscanf@PLT
	movsd	24(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	mulsd	%xmm0, %xmm0
	movsd	32(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	divsd	%xmm0, %xmm1
	movsd	.LC2(%rip), %xmm0
	subsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	andpd	.LC3(%rip), %xmm1
	comisd	%xmm1, %xmm2
	ja	.L21
	ucomisd	%xmm2, %xmm0
	jp	.L6
	jne	.L6
	movl	20(%rsp), %eax
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	movl	16(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 16(%rsp)
	testl	%eax, %eax
	jne	.L8
.L3:
	movq	stdout(%rip), %rdi
	movl	%r12d, %ecx
	movl	$1, %esi
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rdx
	call	__fprintf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1079574528
	.align 8
.LC2:
	.long	0
	.long	1077280768
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.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:
```