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 <string.h>

#define INF 1e10
#define ABS(a) ((a)>=0?(a):-(a))
#define MAX 32768

int s[16], d[16], v[16];
double dp[16][MAX];
int w[16][MAX];
short prev[16][MAX][2];
int ord[16];

int main()
{
	int n, i, j, k, t, ii, lim;
	double x, y;

	scanf("%d", &n);
	for (i = 0; i < n; ++i)
		scanf("%d%d%d", &s[i], &d[i], &v[i]);

	memset(prev, -1, sizeof(prev));
	for (ii = 1, i = 0; i < n; ++i, ii <<= 1)
		w[i][ii] = v[i];

	lim = 1 << n;
	for (k = 0; k < lim; ++k)
	{
		for (ii = 1, i = 0; i < n; ++i, ii <<= 1)
		{
			if (k & ii)
				continue;

			t = k | ii;
			for (j = 0; j < n; ++j)
			{
				if (i == j || w[j][k] == 0)
					continue;

				int dd = d[i] - d[j];
				if (dd < 0)
					dd = -dd;

				x = dp[j][k] + (dd * (7 + 2 * w[j][k])) / 200.0;
				if (dp[i][t] == 0 || x < dp[i][t])
				{
					dp[i][t] = x, w[i][t] = w[j][k] + v[i];
					prev[i][t][0] = j;
					prev[i][t][1] = k;
				}
			}
		}
	}

	for (x = INF, ii = 0, i = 0; i < n; ++i)
	{
		y = dp[i][lim-1];
		if (y == 0)
			continue;

		if (y < x)
			x = y, ii = i;
	}

	for (ord[0] = ii, i = ii, j = lim-1, k = 1; k < n; ++k)
	{
		ord[k] = prev[i][j][0];
		j = prev[i][j][1];
		i = ord[k];
	}

	printf("%d", s[ord[n-1]]);
	for (i = 1; i < n; ++i)
		printf(" %d", s[ord[n-i-1]]);

	putchar('\n');
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 64
s:
	.zero	64
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 64
d:
	.zero	64
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 64
v:
	.zero	64
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 4194304
dp:
	.zero	4194304
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 2097152
w:
	.zero	2097152
	.globl	prev
	.align 32
	.type	prev, @object
	.size	prev, 2097152
prev:
	.zero	2097152
	.globl	ord
	.align 32
	.type	ord, @object
	.size	ord, 64
ord:
	.zero	64
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
.LC5:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L3:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rax, %rdx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	s(%rip), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
.L2:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L3
	movl	$2097152, %edx
	movl	$-1, %esi
	leaq	prev(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L4
.L5:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	w(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -52(%rbp)
	sall	-40(%rbp)
.L4:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L5
	movl	-56(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movl	%eax, -32(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L6
.L20:
	movl	$1, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L7
.L19:
	movl	-44(%rbp), %eax
	andl	-40(%rbp), %eax
	testl	%eax, %eax
	jne	.L35
	movl	-44(%rbp), %eax
	orl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L10
.L18:
	movl	-52(%rbp), %eax
	cmpl	-48(%rbp), %eax
	je	.L36
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L36
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -36(%rbp)
	cmpl	$0, -36(%rbp)
	jns	.L14
	negl	-36(%rbp)
.L14:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	addl	$7, %eax
	imull	-36(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC2(%rip), %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L33
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	je	.L15
.L33:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L13
.L15:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-48(%rbp), %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	prev(%rip), %rax
	movw	%cx, (%rdx,%rax)
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	2+prev(%rip), %rax
	movw	%cx, (%rdx,%rax)
	jmp	.L13
.L36:
	nop
.L13:
	addl	$1, -48(%rbp)
.L10:
	movl	-56(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L18
	jmp	.L9
.L35:
	nop
.L9:
	addl	$1, -52(%rbp)
	sall	-40(%rbp)
.L7:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L19
	addl	$1, -44(%rbp)
.L6:
	movl	-44(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jl	.L20
	movsd	.LC4(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L21
.L26:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -16(%rbp)
	pxor	%xmm0, %xmm0
	ucomisd	-16(%rbp), %xmm0
	jp	.L22
	pxor	%xmm0, %xmm0
	ucomisd	-16(%rbp), %xmm0
	je	.L37
.L22:
	movsd	-24(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L24
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L24
.L37:
	nop
.L24:
	addl	$1, -52(%rbp)
.L21:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L26
	movl	-40(%rbp), %eax
	movl	%eax, ord(%rip)
	movl	-40(%rbp), %eax
	movl	%eax, -52(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -48(%rbp)
	movl	$1, -44(%rbp)
	jmp	.L27
.L28:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	prev(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cwtl
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ord(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	2+prev(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cwtl
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ord(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -52(%rbp)
	addl	$1, -44(%rbp)
.L27:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L28
	movl	-56(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ord(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -52(%rbp)
	jmp	.L29
.L30:
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ord(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -52(%rbp)
.L29:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L30
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1080623104
	.align 8
.LC4:
	.long	536870912
	.long	1107468383
	.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"
.LC2:
	.string	"%d%d%d"
.LC5:
	.string	" %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%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	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	52(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	movl	%eax, 36(%rsp)
	testl	%eax, %eax
	jle	.L2
	leaq	s(%rip), %r14
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%r14, 40(%rsp)
	leaq	d(%rip), %rbx
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%rbx,%r12), %rdx
	leaq	(%r14,%r12), %rsi
	movq	%rbp, %rdi
	addl	$1, %r13d
	leaq	v(%rip), %rax
	leaq	(%rax,%r12), %rcx
	xorl	%eax, %eax
	addq	$4, %r12
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	cmpl	%r13d, %eax
	jg	.L3
	leaq	prev(%rip), %r15
	movl	%eax, %r14d
	movl	$2097152, %edx
	movl	$-1, %esi
	movq	%r15, %rdi
	movl	%eax, 36(%rsp)
	call	memset@PLT
	testl	%r14d, %r14d
	jle	.L4
	leaq	v(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4+w(%rip)
	cmpl	$1, %r14d
	je	.L5
	movl	4+v(%rip), %eax
	movl	%eax, 131080+w(%rip)
	cmpl	$2, %r14d
	je	.L5
	movl	8+v(%rip), %eax
	movl	%eax, 262160+w(%rip)
	cmpl	$3, %r14d
	je	.L5
	movl	12+v(%rip), %eax
	movl	%eax, 393248+w(%rip)
	cmpl	$4, %r14d
	je	.L5
	movl	16+v(%rip), %eax
	movl	%eax, 524352+w(%rip)
	cmpl	$5, %r14d
	je	.L5
	movl	20+v(%rip), %eax
	movl	%eax, 655488+w(%rip)
	cmpl	$6, %r14d
	je	.L5
	movl	24+v(%rip), %eax
	movl	%eax, 786688+w(%rip)
	cmpl	$7, %r14d
	je	.L5
	movl	28+v(%rip), %eax
	movl	%eax, 918016+w(%rip)
	cmpl	$8, %r14d
	je	.L5
	movl	32+v(%rip), %eax
	movl	%eax, 1049600+w(%rip)
	cmpl	$9, %r14d
	je	.L5
	movl	36+v(%rip), %eax
	movl	%eax, 1181696+w(%rip)
	cmpl	$10, %r14d
	je	.L5
	movl	40+v(%rip), %eax
	movl	%eax, 1314816+w(%rip)
	cmpl	$11, %r14d
	je	.L5
	movl	44+v(%rip), %eax
	movl	%eax, 1449984+w(%rip)
	cmpl	$12, %r14d
	je	.L5
	movl	48+v(%rip), %eax
	movl	%eax, 1589248+w(%rip)
	cmpl	$13, %r14d
	je	.L5
	movl	52+v(%rip), %eax
	movl	%eax, 1736704+w(%rip)
	cmpl	$14, %r14d
	je	.L5
	movl	56+v(%rip), %eax
	movl	%eax, 1900544+w(%rip)
	cmpl	$15, %r14d
	je	.L5
	movl	60+v(%rip), %eax
	movl	%eax, 2097152+w(%rip)
.L5:
	movslq	36(%rsp), %r11
	movl	$1, %eax
	leaq	dp(%rip), %r13
	movl	$0, 8(%rsp)
	movq	%r13, 24(%rsp)
	movsd	.LC3(%rip), %xmm3
	pxor	%xmm2, %xmm2
	movl	%r11d, %ecx
	sall	%cl, %eax
	movl	%eax, 32(%rsp)
	leaq	w(%rip), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L26:
	movl	8(%rsp), %eax
	xorl	%esi, %esi
	movl	$1, %r12d
	sall	$16, %eax
	movl	%eax, 12(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L131:
	addq	$1, %rsi
	addl	%r12d, %r12d
	cmpq	%r11, %rsi
	je	.L130
.L7:
	movslq	%esi, %r9
	testl	%r12d, 8(%rsp)
	jne	.L131
	movl	8(%rsp), %edx
	salq	$15, %r9
	movq	24(%rsp), %r8
	xorl	%eax, %eax
	movq	16(%rsp), %rdi
	orl	%r12d, %edx
	movslq	%edx, %rdx
	addq	%rdx, %r9
	leaq	0(,%r9,4), %r14
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%esi, %eax
	je	.L9
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	.L9
	movl	(%rbx,%rax,4), %r10d
	movl	(%rbx,%rsi,4), %edx
	pxor	%xmm0, %xmm0
	movsd	0(%r13,%r9,8), %xmm1
	movl	%r10d, %ebp
	subl	%edx, %ebp
	subl	%r10d, %edx
	leal	7(%rcx,%rcx), %r10d
	cmovs	%ebp, %edx
	imull	%r10d, %edx
	ucomisd	%xmm2, %xmm1
	cvtsi2sdl	%edx, %xmm0
	divsd	%xmm3, %xmm0
	addsd	(%r8), %xmm0
	jp	.L29
	je	.L11
.L29:
	comisd	%xmm0, %xmm1
	jbe	.L9
.L11:
	leaq	v(%rip), %rdx
	movsd	%xmm0, 0(%r13,%r9,8)
	addl	(%rdx,%rsi,4), %ecx
	leaq	w(%rip), %rdx
	movl	%ecx, (%rdx,%r9,4)
	movzwl	%ax, %edx
	orl	12(%rsp), %edx
	movl	%edx, (%r15,%r14)
.L9:
	addq	$1, %rax
	addq	$131072, %rdi
	addq	$262144, %r8
	cmpq	%r11, %rax
	jne	.L14
	addq	$1, %rsi
	addl	%r12d, %r12d
	cmpq	%r11, %rsi
	jne	.L7
.L130:
	addl	$1, 8(%rsp)
	movl	8(%rsp), %eax
	addq	$4, 16(%rsp)
	addq	$8, 24(%rsp)
	cmpl	32(%rsp), %eax
	jne	.L26
	movl	%eax, %esi
	movsd	.LC0(%rip), %xmm1
	movl	36(%rsp), %edi
	xorl	%ecx, %ecx
	subl	$1, %esi
	xorl	%eax, %eax
	movslq	%esi, %rsi
	leaq	0(%r13,%rsi,8), %rdx
	.p2align 4,,10
	.p2align 3
.L20:
	movsd	(%rdx), %xmm0
	ucomisd	%xmm2, %xmm0
	jp	.L30
	je	.L17
.L30:
	comisd	%xmm0, %xmm1
	minsd	%xmm1, %xmm0
	cmova	%eax, %ecx
	movapd	%xmm0, %xmm1
.L17:
	addl	$1, %eax
	addq	$262144, %rdx
	cmpl	%edi, %eax
	jne	.L20
	cmpl	$1, 36(%rsp)
	movl	%ecx, ord(%rip)
	jle	.L24
	movslq	%ecx, %rax
	movl	36(%rsp), %ebx
	salq	$15, %rax
	addq	%rsi, %rax
	movswl	(%r15,%rax,4), %edx
	movswq	2(%r15,%rax,4), %rcx
	movl	%edx, 4+ord(%rip)
	cmpl	$2, %ebx
	je	.L24
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	movswl	(%r15,%rax,4), %edx
	movswl	2(%r15,%rax,4), %eax
	movl	%edx, 8+ord(%rip)
	cmpl	$3, %ebx
	je	.L24
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	movswq	(%r15,%rax,4), %rdx
	movswq	2(%r15,%rax,4), %rax
	movl	%edx, 12+ord(%rip)
	cmpl	$4, %ebx
	je	.L24
	salq	$15, %rdx
	addq	%rax, %rdx
	movswq	(%r15,%rdx,4), %rax
	movswq	2(%r15,%rdx,4), %rdx
	movl	%eax, 16+ord(%rip)
	cmpl	$5, %ebx
	je	.L24
	salq	$15, %rax
	addq	%rdx, %rax
	movswl	(%r15,%rax,4), %edx
	movswl	2(%r15,%rax,4), %eax
	movl	%edx, 20+ord(%rip)
	cmpl	$6, %ebx
	je	.L24
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	movswq	(%r15,%rax,4), %rdx
	movswq	2(%r15,%rax,4), %rax
	movl	%edx, 24+ord(%rip)
	cmpl	$7, %ebx
	je	.L24
	salq	$15, %rdx
	addq	%rax, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 28+ord(%rip)
	cmpl	$8, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 32+ord(%rip)
	cmpl	$9, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 36+ord(%rip)
	cmpl	$10, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 40+ord(%rip)
	cmpl	$11, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 44+ord(%rip)
	cmpl	$12, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 48+ord(%rip)
	cmpl	$13, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswq	(%r15,%rdx,4), %rax
	movswq	2(%r15,%rdx,4), %rdx
	movl	%eax, 52+ord(%rip)
	cmpl	$14, %ebx
	je	.L24
	salq	$15, %rax
	addq	%rdx, %rax
	movswl	(%r15,%rax,4), %edx
	movswq	2(%r15,%rax,4), %rcx
	movl	%edx, 56+ord(%rip)
	cmpl	$16, %ebx
	jne	.L24
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	movswl	(%r15,%rax,4), %eax
	movl	%eax, 60+ord(%rip)
.L24:
	movl	36(%rsp), %eax
	leaq	ord(%rip), %rbx
	movq	40(%rsp), %rdi
	leaq	.LC1(%rip), %rsi
	movl	$1, %r12d
	leaq	.LC5(%rip), %rbp
	subl	$1, %eax
	cltq
	movslq	(%rbx,%rax,4), %rax
	movl	(%rdi,%rax,4), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	52(%rsp), %eax
	movq	40(%rsp), %r13
	cmpl	$1, %eax
	jle	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	subl	%r12d, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addl	$1, %r12d
	subl	$1, %eax
	cltq
	movslq	(%rbx,%rax,4), %rax
	movl	0(%r13,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	52(%rsp), %eax
	cmpl	%r12d, %eax
	jg	.L22
.L23:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L132
	addq	$72, %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
.L2:
	.cfi_restore_state
	movl	$2097152, %edx
	orl	$-1, %esi
	leaq	prev(%rip), %rdi
	call	memset@PLT
	leaq	s(%rip), %rax
	movq	%rax, 40(%rsp)
.L4:
	movl	$0, ord(%rip)
	jmp	.L24
.L132:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	ord
	.bss
	.align 32
	.type	ord, @object
	.size	ord, 64
ord:
	.zero	64
	.globl	prev
	.align 32
	.type	prev, @object
	.size	prev, 2097152
prev:
	.zero	2097152
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 2097152
w:
	.zero	2097152
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 4194304
dp:
	.zero	4194304
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 64
v:
	.zero	64
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 64
d:
	.zero	64
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 64
s:
	.zero	64
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	536870912
	.long	1107468383
	.align 8
.LC3:
	.long	0
	.long	1080623104
	.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"
.LC2:
	.string	"%d%d%d"
.LC5:
	.string	" %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%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	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	52(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	movl	%eax, 36(%rsp)
	testl	%eax, %eax
	jle	.L2
	leaq	s(%rip), %r14
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%r14, 40(%rsp)
	leaq	d(%rip), %rbx
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%rbx,%r12), %rdx
	leaq	(%r14,%r12), %rsi
	movq	%rbp, %rdi
	addl	$1, %r13d
	leaq	v(%rip), %rax
	leaq	(%rax,%r12), %rcx
	xorl	%eax, %eax
	addq	$4, %r12
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	cmpl	%r13d, %eax
	jg	.L3
	leaq	prev(%rip), %r15
	movl	%eax, %r14d
	movl	$2097152, %edx
	movl	$-1, %esi
	movq	%r15, %rdi
	movl	%eax, 36(%rsp)
	call	memset@PLT
	testl	%r14d, %r14d
	jle	.L4
	leaq	v(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4+w(%rip)
	cmpl	$1, %r14d
	je	.L5
	movl	4+v(%rip), %eax
	movl	%eax, 131080+w(%rip)
	cmpl	$2, %r14d
	je	.L5
	movl	8+v(%rip), %eax
	movl	%eax, 262160+w(%rip)
	cmpl	$3, %r14d
	je	.L5
	movl	12+v(%rip), %eax
	movl	%eax, 393248+w(%rip)
	cmpl	$4, %r14d
	je	.L5
	movl	16+v(%rip), %eax
	movl	%eax, 524352+w(%rip)
	cmpl	$5, %r14d
	je	.L5
	movl	20+v(%rip), %eax
	movl	%eax, 655488+w(%rip)
	cmpl	$6, %r14d
	je	.L5
	movl	24+v(%rip), %eax
	movl	%eax, 786688+w(%rip)
	cmpl	$7, %r14d
	je	.L5
	movl	28+v(%rip), %eax
	movl	%eax, 918016+w(%rip)
	cmpl	$8, %r14d
	je	.L5
	movl	32+v(%rip), %eax
	movl	%eax, 1049600+w(%rip)
	cmpl	$9, %r14d
	je	.L5
	movl	36+v(%rip), %eax
	movl	%eax, 1181696+w(%rip)
	cmpl	$10, %r14d
	je	.L5
	movl	40+v(%rip), %eax
	movl	%eax, 1314816+w(%rip)
	cmpl	$11, %r14d
	je	.L5
	movl	44+v(%rip), %eax
	movl	%eax, 1449984+w(%rip)
	cmpl	$12, %r14d
	je	.L5
	movl	48+v(%rip), %eax
	movl	%eax, 1589248+w(%rip)
	cmpl	$13, %r14d
	je	.L5
	movl	52+v(%rip), %eax
	movl	%eax, 1736704+w(%rip)
	cmpl	$14, %r14d
	je	.L5
	movl	56+v(%rip), %eax
	movl	%eax, 1900544+w(%rip)
	cmpl	$15, %r14d
	je	.L5
	movl	60+v(%rip), %eax
	movl	%eax, 2097152+w(%rip)
.L5:
	movslq	36(%rsp), %r11
	movl	$1, %eax
	leaq	dp(%rip), %r13
	movl	$0, 8(%rsp)
	movq	%r13, 24(%rsp)
	movsd	.LC3(%rip), %xmm3
	pxor	%xmm2, %xmm2
	movl	%r11d, %ecx
	sall	%cl, %eax
	movl	%eax, 32(%rsp)
	leaq	w(%rip), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L26:
	movl	8(%rsp), %eax
	xorl	%esi, %esi
	movl	$1, %r12d
	sall	$16, %eax
	movl	%eax, 12(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L131:
	addq	$1, %rsi
	addl	%r12d, %r12d
	cmpq	%r11, %rsi
	je	.L130
.L7:
	movslq	%esi, %r9
	testl	%r12d, 8(%rsp)
	jne	.L131
	movl	8(%rsp), %edx
	salq	$15, %r9
	movq	24(%rsp), %r8
	xorl	%eax, %eax
	movq	16(%rsp), %rdi
	orl	%r12d, %edx
	movslq	%edx, %rdx
	addq	%rdx, %r9
	leaq	0(,%r9,4), %r14
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%esi, %eax
	je	.L9
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	.L9
	movl	(%rbx,%rax,4), %r10d
	movl	(%rbx,%rsi,4), %edx
	pxor	%xmm0, %xmm0
	movsd	0(%r13,%r9,8), %xmm1
	movl	%r10d, %ebp
	subl	%edx, %ebp
	subl	%r10d, %edx
	leal	7(%rcx,%rcx), %r10d
	cmovs	%ebp, %edx
	imull	%r10d, %edx
	ucomisd	%xmm2, %xmm1
	cvtsi2sdl	%edx, %xmm0
	divsd	%xmm3, %xmm0
	addsd	(%r8), %xmm0
	jp	.L29
	je	.L11
.L29:
	comisd	%xmm0, %xmm1
	jbe	.L9
.L11:
	leaq	v(%rip), %rdx
	movsd	%xmm0, 0(%r13,%r9,8)
	addl	(%rdx,%rsi,4), %ecx
	leaq	w(%rip), %rdx
	movl	%ecx, (%rdx,%r9,4)
	movzwl	%ax, %edx
	orl	12(%rsp), %edx
	movl	%edx, (%r15,%r14)
.L9:
	addq	$1, %rax
	addq	$131072, %rdi
	addq	$262144, %r8
	cmpq	%r11, %rax
	jne	.L14
	addq	$1, %rsi
	addl	%r12d, %r12d
	cmpq	%r11, %rsi
	jne	.L7
.L130:
	addl	$1, 8(%rsp)
	movl	8(%rsp), %eax
	addq	$4, 16(%rsp)
	addq	$8, 24(%rsp)
	cmpl	32(%rsp), %eax
	jne	.L26
	movl	%eax, %esi
	movsd	.LC0(%rip), %xmm1
	movl	36(%rsp), %edi
	xorl	%ecx, %ecx
	subl	$1, %esi
	xorl	%eax, %eax
	movslq	%esi, %rsi
	leaq	0(%r13,%rsi,8), %rdx
	.p2align 4,,10
	.p2align 3
.L20:
	movsd	(%rdx), %xmm0
	ucomisd	%xmm2, %xmm0
	jp	.L30
	je	.L17
.L30:
	comisd	%xmm0, %xmm1
	minsd	%xmm1, %xmm0
	cmova	%eax, %ecx
	movapd	%xmm0, %xmm1
.L17:
	addl	$1, %eax
	addq	$262144, %rdx
	cmpl	%edi, %eax
	jne	.L20
	cmpl	$1, 36(%rsp)
	movl	%ecx, ord(%rip)
	jle	.L24
	movslq	%ecx, %rax
	movl	36(%rsp), %ebx
	salq	$15, %rax
	addq	%rsi, %rax
	movswl	(%r15,%rax,4), %edx
	movswq	2(%r15,%rax,4), %rcx
	movl	%edx, 4+ord(%rip)
	cmpl	$2, %ebx
	je	.L24
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	movswl	(%r15,%rax,4), %edx
	movswl	2(%r15,%rax,4), %eax
	movl	%edx, 8+ord(%rip)
	cmpl	$3, %ebx
	je	.L24
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	movswq	(%r15,%rax,4), %rdx
	movswq	2(%r15,%rax,4), %rax
	movl	%edx, 12+ord(%rip)
	cmpl	$4, %ebx
	je	.L24
	salq	$15, %rdx
	addq	%rax, %rdx
	movswq	(%r15,%rdx,4), %rax
	movswq	2(%r15,%rdx,4), %rdx
	movl	%eax, 16+ord(%rip)
	cmpl	$5, %ebx
	je	.L24
	salq	$15, %rax
	addq	%rdx, %rax
	movswl	(%r15,%rax,4), %edx
	movswl	2(%r15,%rax,4), %eax
	movl	%edx, 20+ord(%rip)
	cmpl	$6, %ebx
	je	.L24
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	movswq	(%r15,%rax,4), %rdx
	movswq	2(%r15,%rax,4), %rax
	movl	%edx, 24+ord(%rip)
	cmpl	$7, %ebx
	je	.L24
	salq	$15, %rdx
	addq	%rax, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 28+ord(%rip)
	cmpl	$8, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 32+ord(%rip)
	cmpl	$9, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 36+ord(%rip)
	cmpl	$10, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 40+ord(%rip)
	cmpl	$11, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 44+ord(%rip)
	cmpl	$12, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswl	(%r15,%rdx,4), %eax
	movswq	2(%r15,%rdx,4), %rcx
	movl	%eax, 48+ord(%rip)
	cmpl	$13, %ebx
	je	.L24
	movslq	%eax, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	movswq	(%r15,%rdx,4), %rax
	movswq	2(%r15,%rdx,4), %rdx
	movl	%eax, 52+ord(%rip)
	cmpl	$14, %ebx
	je	.L24
	salq	$15, %rax
	addq	%rdx, %rax
	movswl	(%r15,%rax,4), %edx
	movswq	2(%r15,%rax,4), %rcx
	movl	%edx, 56+ord(%rip)
	cmpl	$16, %ebx
	jne	.L24
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	movswl	(%r15,%rax,4), %eax
	movl	%eax, 60+ord(%rip)
.L24:
	movl	36(%rsp), %eax
	leaq	ord(%rip), %rbx
	movq	40(%rsp), %rdi
	leaq	.LC1(%rip), %rsi
	movl	$1, %r12d
	leaq	.LC5(%rip), %rbp
	subl	$1, %eax
	cltq
	movslq	(%rbx,%rax,4), %rax
	movl	(%rdi,%rax,4), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	52(%rsp), %eax
	movq	40(%rsp), %r13
	cmpl	$1, %eax
	jle	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	subl	%r12d, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addl	$1, %r12d
	subl	$1, %eax
	cltq
	movslq	(%rbx,%rax,4), %rax
	movl	0(%r13,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	52(%rsp), %eax
	cmpl	%r12d, %eax
	jg	.L22
.L23:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L132
	addq	$72, %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
.L2:
	.cfi_restore_state
	movl	$2097152, %edx
	orl	$-1, %esi
	leaq	prev(%rip), %rdi
	call	memset@PLT
	leaq	s(%rip), %rax
	movq	%rax, 40(%rsp)
.L4:
	movl	$0, ord(%rip)
	jmp	.L24
.L132:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	ord
	.bss
	.align 32
	.type	ord, @object
	.size	ord, 64
ord:
	.zero	64
	.globl	prev
	.align 32
	.type	prev, @object
	.size	prev, 2097152
prev:
	.zero	2097152
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 2097152
w:
	.zero	2097152
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 4194304
dp:
	.zero	4194304
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 64
v:
	.zero	64
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 64
d:
	.zero	64
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 64
s:
	.zero	64
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	536870912
	.long	1107468383
	.align 8
.LC3:
	.long	0
	.long	1080623104
	.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 <string.h>

#define INF 1e10
#define ABS(a) ((a)>=0?(a):-(a))
#define MAX 32768

int s[16], d[16], v[16];
double dp[16][MAX];
int w[16][MAX];
short prev[16][MAX][2];
int ord[16];

int main()
{
	int n, i, j, k, t, ii, lim;
	double x, y;

	scanf("%d", &n);
	for (i = 0; i < n; ++i)
		scanf("%d%d%d", &s[i], &d[i], &v[i]);

	memset(prev, -1, sizeof(prev));
	for (ii = 1, i = 0; i < n; ++i, ii <<= 1)
		w[i][ii] = v[i];

	lim = 1 << n;
	for (k = 0; k < lim; ++k)
	{
		for (ii = 1, i = 0; i < n; ++i, ii <<= 1)
		{
			if (k & ii)
				continue;

			t = k | ii;
			for (j = 0; j < n; ++j)
			{
				if (i == j || w[j][k] == 0)
					continue;

				int dd = d[i] - d[j];
				if (dd < 0)
					dd = -dd;

				x = dp[j][k] + (dd * (7 + 2 * w[j][k])) / 200.0;
				if (dp[i][t] == 0 || x < dp[i][t])
				{
					dp[i][t] = x, w[i][t] = w[j][k] + v[i];
					prev[i][t][0] = j;
					prev[i][t][1] = k;
				}
			}
		}
	}

	for (x = INF, ii = 0, i = 0; i < n; ++i)
	{
		y = dp[i][lim-1];
		if (y == 0)
			continue;

		if (y < x)
			x = y, ii = i;
	}

	for (ord[0] = ii, i = ii, j = lim-1, k = 1; k < n; ++k)
	{
		ord[k] = prev[i][j][0];
		j = prev[i][j][1];
		i = ord[k];
	}

	printf("%d", s[ord[n-1]]);
	for (i = 1; i < n; ++i)
		printf(" %d", s[ord[n-i-1]]);

	putchar('\n');
	return 0;
}
5
13 199 1
93 1000 1
37 350 10
27 300 2
99 200 1000
 3
9 100 1
13 200 20
12 300 3
 2
2 100 1
2 200 2
 5
13 199 1
93 1000 1
37 350 10
27 300 2
82 200 1000
 3
9 100 1
13 200 20
19 300 3
 5
13 199 1
93 1000 1
37 350 10
27 300 2
123 200 1100
 3
9 100 0
13 200 20
24 300 3
 3
9 100 0
26 200 20
24 300 3
 5
11 199 0
93 1000 1
37 350 10
27 300 2
123 200 1100
 3
9 100 0
26 30 20
24 300 3

93 37 27 13 99
 9 12 13
 2 2
 93 37 27 13 82
 9 19 13
 93 37 27 13 123
 24 9 13
 24 9 26
 93 37 27 11 123
 24 9 26

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 <string.h>

#define INF 1e10
#define ABS(a) ((a)>=0?(a):-(a))
#define MAX 32768

int s[16], d[16], v[16];
double dp[16][MAX];
int w[16][MAX];
short prev[16][MAX][2];
int ord[16];

int main()
{
	int n, i, j, k, t, ii, lim;
	double x, y;

	scanf("%d", &n);
	for (i = 0; i < n; ++i)
		scanf("%d%d%d", &s[i], &d[i], &v[i]);

	memset(prev, -1, sizeof(prev));
	for (ii = 1, i = 0; i < n; ++i, ii <<= 1)
		w[i][ii] = v[i];

	lim = 1 << n;
	for (k = 0; k < lim; ++k)
	{
		for (ii = 1, i = 0; i < n; ++i, ii <<= 1)
		{
			if (k & ii)
				continue;

			t = k | ii;
			for (j = 0; j < n; ++j)
			{
				if (i == j || w[j][k] == 0)
					continue;

				int dd = d[i] - d[j];
				if (dd < 0)
					dd = -dd;

				x = dp[j][k] + (dd * (7 + 2 * w[j][k])) / 200.0;
				if (dp[i][t] == 0 || x < dp[i][t])
				{
					dp[i][t] = x, w[i][t] = w[j][k] + v[i];
					prev[i][t][0] = j;
					prev[i][t][1] = k;
				}
			}
		}
	}

	for (x = INF, ii = 0, i = 0; i < n; ++i)
	{
		y = dp[i][lim-1];
		if (y == 0)
			continue;

		if (y < x)
			x = y, ii = i;
	}

	for (ord[0] = ii, i = ii, j = lim-1, k = 1; k < n; ++k)
	{
		ord[k] = prev[i][j][0];
		j = prev[i][j][1];
		i = ord[k];
	}

	printf("%d", s[ord[n-1]]);
	for (i = 1; i < n; ++i)
		printf(" %d", s[ord[n-i-1]]);

	putchar('\n');
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 64
s:
	.zero	64
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 64
d:
	.zero	64
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 64
v:
	.zero	64
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 4194304
dp:
	.zero	4194304
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 2097152
w:
	.zero	2097152
	.globl	prev
	.align 32
	.type	prev, @object
	.size	prev, 2097152
prev:
	.zero	2097152
	.globl	ord
	.align 32
	.type	ord, @object
	.size	ord, 64
ord:
	.zero	64
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
.LC5:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L3:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rax, %rdx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	s(%rip), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
.L2:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L3
	movl	$2097152, %edx
	movl	$-1, %esi
	leaq	prev(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L4
.L5:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	w(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -52(%rbp)
	sall	-40(%rbp)
.L4:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L5
	movl	-56(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movl	%eax, -32(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L6
.L20:
	movl	$1, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L7
.L19:
	movl	-44(%rbp), %eax
	andl	-40(%rbp), %eax
	testl	%eax, %eax
	jne	.L35
	movl	-44(%rbp), %eax
	orl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L10
.L18:
	movl	-52(%rbp), %eax
	cmpl	-48(%rbp), %eax
	je	.L36
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L36
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -36(%rbp)
	cmpl	$0, -36(%rbp)
	jns	.L14
	negl	-36(%rbp)
.L14:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	addl	$7, %eax
	imull	-36(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC2(%rip), %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L33
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	je	.L15
.L33:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L13
.L15:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-48(%rbp), %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	prev(%rip), %rax
	movw	%cx, (%rdx,%rax)
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	2+prev(%rip), %rax
	movw	%cx, (%rdx,%rax)
	jmp	.L13
.L36:
	nop
.L13:
	addl	$1, -48(%rbp)
.L10:
	movl	-56(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L18
	jmp	.L9
.L35:
	nop
.L9:
	addl	$1, -52(%rbp)
	sall	-40(%rbp)
.L7:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L19
	addl	$1, -44(%rbp)
.L6:
	movl	-44(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jl	.L20
	movsd	.LC4(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L21
.L26:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -16(%rbp)
	pxor	%xmm0, %xmm0
	ucomisd	-16(%rbp), %xmm0
	jp	.L22
	pxor	%xmm0, %xmm0
	ucomisd	-16(%rbp), %xmm0
	je	.L37
.L22:
	movsd	-24(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L24
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L24
.L37:
	nop
.L24:
	addl	$1, -52(%rbp)
.L21:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L26
	movl	-40(%rbp), %eax
	movl	%eax, ord(%rip)
	movl	-40(%rbp), %eax
	movl	%eax, -52(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -48(%rbp)
	movl	$1, -44(%rbp)
	jmp	.L27
.L28:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	prev(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cwtl
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ord(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	2+prev(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cwtl
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ord(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -52(%rbp)
	addl	$1, -44(%rbp)
.L27:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L28
	movl	-56(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ord(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -52(%rbp)
	jmp	.L29
.L30:
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ord(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -52(%rbp)
.L29:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L30
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1080623104
	.align 8
.LC4:
	.long	536870912
	.long	1107468383
	.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	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 64
s:
	.zero	64
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 64
d:
	.zero	64
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 64
v:
	.zero	64
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 4194304
dp:
	.zero	4194304
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 2097152
w:
	.zero	2097152
	.globl	prev
	.align 32
	.type	prev, @object
	.size	prev, 2097152
prev:
	.zero	2097152
	.globl	ord
	.align 32
	.type	ord, @object
	.size	ord, 64
ord:
	.zero	64
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
.LC5:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L3:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rax, %rdx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	s(%rip), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
.L2:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L3
	movl	$2097152, %edx
	movl	$-1, %esi
	leaq	prev(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L4
.L5:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	w(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -52(%rbp)
	sall	-40(%rbp)
.L4:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L5
	movl	-56(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movl	%eax, -32(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L6
.L20:
	movl	$1, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L7
.L19:
	movl	-44(%rbp), %eax
	andl	-40(%rbp), %eax
	testl	%eax, %eax
	jne	.L35
	movl	-44(%rbp), %eax
	orl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L10
.L18:
	movl	-52(%rbp), %eax
	cmpl	-48(%rbp), %eax
	je	.L36
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L36
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-48(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -36(%rbp)
	cmpl	$0, -36(%rbp)
	jns	.L14
	negl	-36(%rbp)
.L14:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	addl	$7, %eax
	imull	-36(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC2(%rip), %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L33
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	je	.L15
.L33:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L13
.L15:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-48(%rbp), %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	prev(%rip), %rax
	movw	%cx, (%rdx,%rax)
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	2+prev(%rip), %rax
	movw	%cx, (%rdx,%rax)
	jmp	.L13
.L36:
	nop
.L13:
	addl	$1, -48(%rbp)
.L10:
	movl	-56(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L18
	jmp	.L9
.L35:
	nop
.L9:
	addl	$1, -52(%rbp)
	sall	-40(%rbp)
.L7:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L19
	addl	$1, -44(%rbp)
.L6:
	movl	-44(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jl	.L20
	movsd	.LC4(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L21
.L26:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -16(%rbp)
	pxor	%xmm0, %xmm0
	ucomisd	-16(%rbp), %xmm0
	jp	.L22
	pxor	%xmm0, %xmm0
	ucomisd	-16(%rbp), %xmm0
	je	.L37
.L22:
	movsd	-24(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L24
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L24
.L37:
	nop
.L24:
	addl	$1, -52(%rbp)
.L21:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L26
	movl	-40(%rbp), %eax
	movl	%eax, ord(%rip)
	movl	-40(%rbp), %eax
	movl	%eax, -52(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -48(%rbp)
	movl	$1, -44(%rbp)
	jmp	.L27
.L28:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	prev(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cwtl
	movl	-44(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ord(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-52(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	2+prev(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cwtl
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ord(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -52(%rbp)
	addl	$1, -44(%rbp)
.L27:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L28
	movl	-56(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ord(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -52(%rbp)
	jmp	.L29
.L30:
	movl	-56(%rbp), %eax
	subl	-52(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ord(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -52(%rbp)
.L29:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L30
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1080623104
	.align 8
.LC4:
	.long	536870912
	.long	1107468383
	.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:
