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

```c
#include <stdio.h>
#include <math.h>
#include <stdlib.h>

double h,w,bmi,best;
int n,i,num;

int main(){
	while(scanf("%d",&n)*n){
		best=9999999;
		for(;n>0;n--){
			scanf("%d %lf %lf",&i,&h,&w);
			bmi=fabs(22-w*10000/h/h);
			if(bmi<best || (bmi==best && i<num)){
				best=bmi;
				num=i;
			}
		}
		printf("%d\n",num);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	h
	.bss
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.globl	w
	.align 8
	.type	w, @object
	.size	w, 8
w:
	.zero	8
	.globl	bmi
	.align 8
	.type	bmi, @object
	.size	bmi, 8
bmi:
	.zero	8
	.globl	best
	.align 8
	.type	best, @object
	.size	best, 8
best:
	.zero	8
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	num
	.align 4
	.type	num, @object
	.size	num, 4
num:
	.zero	4
	.section	.rodata
.LC1:
	.string	"%d %lf %lf"
.LC5:
	.string	"%d\n"
.LC6:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L2
.L8:
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, best(%rip)
	jmp	.L3
.L7:
	leaq	w(%rip), %rax
	movq	%rax, %rcx
	leaq	h(%rip), %rax
	movq	%rax, %rdx
	leaq	i(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	w(%rip), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	h(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	h(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC3(%rip), %xmm0
	subsd	%xmm1, %xmm0
	movq	.LC4(%rip), %xmm1
	andpd	%xmm1, %xmm0
	movsd	%xmm0, bmi(%rip)
	movsd	bmi(%rip), %xmm1
	movsd	best(%rip), %xmm0
	comisd	%xmm1, %xmm0
	ja	.L4
	movsd	bmi(%rip), %xmm0
	movsd	best(%rip), %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L5
	ucomisd	%xmm1, %xmm0
	jne	.L5
	movl	i(%rip), %edx
	movl	num(%rip), %eax
	cmpl	%eax, %edx
	jge	.L5
.L4:
	movsd	bmi(%rip), %xmm0
	movsd	%xmm0, best(%rip)
	movl	i(%rip), %eax
	movl	%eax, num(%rip)
.L5:
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
.L3:
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L7
	movl	num(%rip), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-536870912
	.long	1097011919
	.align 8
.LC2:
	.long	0
	.long	1086556160
	.align 8
.LC3:
	.long	0
	.long	1077280768
	.align 16
.LC4:
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %lf %lf"
.LC6:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC6(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	w(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	h(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	je	.L18
	movq	.LC0(%rip), %rax
	leaq	i(%rip), %rbp
	leaq	.LC2(%rip), %rbx
	movq	%rax, best(%rip)
	testl	%edx, %edx
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movsd	w(%rip), %xmm1
	mulsd	.LC3(%rip), %xmm1
	movsd	h(%rip), %xmm0
	movl	i(%rip), %eax
	divsd	%xmm0, %xmm1
	divsd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	subsd	%xmm1, %xmm0
	movsd	best(%rip), %xmm1
	andpd	.LC5(%rip), %xmm0
	comisd	%xmm0, %xmm1
	movsd	%xmm0, bmi(%rip)
	ja	.L6
	ucomisd	%xmm1, %xmm0
	jp	.L7
	jne	.L7
	movl	i(%rip), %eax
	cmpl	num(%rip), %eax
	jge	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%eax, num(%rip)
	movsd	%xmm0, best(%rip)
.L7:
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
	testl	%eax, %eax
	jg	.L3
.L9:
	movl	num(%rip), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	num
	.bss
	.align 4
	.type	num, @object
	.size	num, 4
num:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	best
	.align 8
	.type	best, @object
	.size	best, 8
best:
	.zero	8
	.globl	bmi
	.align 8
	.type	bmi, @object
	.size	bmi, 8
bmi:
	.zero	8
	.globl	w
	.align 8
	.type	w, @object
	.size	w, 8
w:
	.zero	8
	.globl	h
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-536870912
	.long	1097011919
	.align 8
.LC3:
	.long	0
	.long	1086556160
	.align 8
.LC4:
	.long	0
	.long	1077280768
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %lf %lf"
.LC6:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC6(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	w(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	h(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	je	.L18
	movq	.LC0(%rip), %rax
	leaq	i(%rip), %rbp
	leaq	.LC2(%rip), %rbx
	movq	%rax, best(%rip)
	testl	%edx, %edx
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movsd	w(%rip), %xmm1
	mulsd	.LC3(%rip), %xmm1
	movsd	h(%rip), %xmm0
	movl	i(%rip), %eax
	divsd	%xmm0, %xmm1
	divsd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	subsd	%xmm1, %xmm0
	movsd	best(%rip), %xmm1
	andpd	.LC5(%rip), %xmm0
	comisd	%xmm0, %xmm1
	movsd	%xmm0, bmi(%rip)
	ja	.L6
	ucomisd	%xmm1, %xmm0
	jp	.L7
	jne	.L7
	movl	i(%rip), %eax
	cmpl	num(%rip), %eax
	jge	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%eax, num(%rip)
	movsd	%xmm0, best(%rip)
.L7:
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
	testl	%eax, %eax
	jg	.L3
.L9:
	movl	num(%rip), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	num
	.bss
	.align 4
	.type	num, @object
	.size	num, 4
num:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	best
	.align 8
	.type	best, @object
	.size	best, 8
best:
	.zero	8
	.globl	bmi
	.align 8
	.type	bmi, @object
	.size	bmi, 8
bmi:
	.zero	8
	.globl	w
	.align 8
	.type	w, @object
	.size	w, 8
w:
	.zero	8
	.globl	h
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-536870912
	.long	1097011919
	.align 8
.LC3:
	.long	0
	.long	1086556160
	.align 8
.LC4:
	.long	0
	.long	1077280768
	.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:

#include <stdio.h>
#include <math.h>
#include <stdlib.h>

double h,w,bmi,best;
int n,i,num;

int main(){
	while(scanf("%d",&n)*n){
		best=9999999;
		for(;n>0;n--){
			scanf("%d %lf %lf",&i,&h,&w);
			bmi=fabs(22-w*10000/h/h);
			if(bmi<best || (bmi==best && i<num)){
				best=bmi;
				num=i;
			}
		}
		printf("%d\n",num);
	}
	return 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 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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <math.h>
#include <stdlib.h>

double h,w,bmi,best;
int n,i,num;

int main(){
	while(scanf("%d",&n)*n){
		best=9999999;
		for(;n>0;n--){
			scanf("%d %lf %lf",&i,&h,&w);
			bmi=fabs(22-w*10000/h/h);
			if(bmi<best || (bmi==best && i<num)){
				best=bmi;
				num=i;
			}
		}
		printf("%d\n",num);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	h
	.bss
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.globl	w
	.align 8
	.type	w, @object
	.size	w, 8
w:
	.zero	8
	.globl	bmi
	.align 8
	.type	bmi, @object
	.size	bmi, 8
bmi:
	.zero	8
	.globl	best
	.align 8
	.type	best, @object
	.size	best, 8
best:
	.zero	8
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	num
	.align 4
	.type	num, @object
	.size	num, 4
num:
	.zero	4
	.section	.rodata
.LC1:
	.string	"%d %lf %lf"
.LC5:
	.string	"%d\n"
.LC6:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L2
.L8:
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, best(%rip)
	jmp	.L3
.L7:
	leaq	w(%rip), %rax
	movq	%rax, %rcx
	leaq	h(%rip), %rax
	movq	%rax, %rdx
	leaq	i(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	w(%rip), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	h(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	h(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC3(%rip), %xmm0
	subsd	%xmm1, %xmm0
	movq	.LC4(%rip), %xmm1
	andpd	%xmm1, %xmm0
	movsd	%xmm0, bmi(%rip)
	movsd	bmi(%rip), %xmm1
	movsd	best(%rip), %xmm0
	comisd	%xmm1, %xmm0
	ja	.L4
	movsd	bmi(%rip), %xmm0
	movsd	best(%rip), %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L5
	ucomisd	%xmm1, %xmm0
	jne	.L5
	movl	i(%rip), %edx
	movl	num(%rip), %eax
	cmpl	%eax, %edx
	jge	.L5
.L4:
	movsd	bmi(%rip), %xmm0
	movsd	%xmm0, best(%rip)
	movl	i(%rip), %eax
	movl	%eax, num(%rip)
.L5:
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
.L3:
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L7
	movl	num(%rip), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-536870912
	.long	1097011919
	.align 8
.LC2:
	.long	0
	.long	1086556160
	.align 8
.LC3:
	.long	0
	.long	1077280768
	.align 16
.LC4:
	.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.
train
	.file	"temp.c"
	.text
	.globl	h
	.bss
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.globl	w
	.align 8
	.type	w, @object
	.size	w, 8
w:
	.zero	8
	.globl	bmi
	.align 8
	.type	bmi, @object
	.size	bmi, 8
bmi:
	.zero	8
	.globl	best
	.align 8
	.type	best, @object
	.size	best, 8
best:
	.zero	8
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	num
	.align 4
	.type	num, @object
	.size	num, 4
num:
	.zero	4
	.section	.rodata
.LC1:
	.string	"%d %lf %lf"
.LC5:
	.string	"%d\n"
.LC6:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L2
.L8:
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, best(%rip)
	jmp	.L3
.L7:
	leaq	w(%rip), %rax
	movq	%rax, %rcx
	leaq	h(%rip), %rax
	movq	%rax, %rdx
	leaq	i(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	w(%rip), %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	h(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	h(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC3(%rip), %xmm0
	subsd	%xmm1, %xmm0
	movq	.LC4(%rip), %xmm1
	andpd	%xmm1, %xmm0
	movsd	%xmm0, bmi(%rip)
	movsd	bmi(%rip), %xmm1
	movsd	best(%rip), %xmm0
	comisd	%xmm1, %xmm0
	ja	.L4
	movsd	bmi(%rip), %xmm0
	movsd	best(%rip), %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L5
	ucomisd	%xmm1, %xmm0
	jne	.L5
	movl	i(%rip), %edx
	movl	num(%rip), %eax
	cmpl	%eax, %edx
	jge	.L5
.L4:
	movsd	bmi(%rip), %xmm0
	movsd	%xmm0, best(%rip)
	movl	i(%rip), %eax
	movl	%eax, num(%rip)
.L5:
	movl	n(%rip), %eax
	subl	$1, %eax
	movl	%eax, n(%rip)
.L3:
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L7
	movl	num(%rip), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-536870912
	.long	1097011919
	.align 8
.LC2:
	.long	0
	.long	1086556160
	.align 8
.LC3:
	.long	0
	.long	1077280768
	.align 16
.LC4:
	.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:
