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<stdlib.h>
#define MAXN 15
n,N,i[MAXN],d[MAXN],w[MAXN],W[1<<MAXN],DP[MAXN][1<<MAXN];
K,k,k0,p;
long long DT[MAXN][1<<MAXN],t,t0,t1,tmin;
P(k,K){
	if(K&(1<<k)){
		K-=1<<k;
		P(DP[k][K],K);
		K+=1<<k;
		printf("%d%c",i[k],K==N-1?'\n':' ');
	}
}
main(){
	scanf("%d",&n);
	N=1<<n;
	for(k=0;k<n;k++)
		scanf("%d%d%d",i+k,d+k,w+k);
	for(K=0;K<N;K++){
		W[K]=70;
		for(k=0;k<n;k++){
			if(K&(1<<k))
				W[K]+=w[k]*20;
		}
	}
	for(K=1;K<N-1;K++){
		for(k=0;k<n;k++){
			if(!(K&(1<<k))){
				tmin=1e18;
				for(k0=0;k0<n;k0++){
					if(K&(1<<k0)){
						t0=DT[k0][K-(1<<k0)];
						t1=(long long)abs(d[k0]-d[k])*W[K];
						t=t1+t0;
						if(t<tmin){
							tmin=t;
							p=k0;
						}
					}
				}
				DT[k][K]=tmin;
				DP[k][K]=p;
			}
		}
	}
	tmin=1e18;
	for(k=0;k<n;k++){
		t=DT[k][N-1-(1<<k)];
		if(t<tmin){
			tmin=t;
			k0=k;
		}
	}
	P(k0,N-1);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	i
	.align 32
	.type	i, @object
	.size	i, 60
i:
	.zero	60
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 60
d:
	.zero	60
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 60
w:
	.zero	60
	.globl	W
	.align 32
	.type	W, @object
	.size	W, 131072
W:
	.zero	131072
	.globl	DP
	.align 32
	.type	DP, @object
	.size	DP, 1966080
DP:
	.zero	1966080
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	k0
	.align 4
	.type	k0, @object
	.size	k0, 4
k0:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	DT
	.align 32
	.type	DT, @object
	.size	DT, 3932160
DT:
	.zero	3932160
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.zero	8
	.globl	t0
	.align 8
	.type	t0, @object
	.size	t0, 8
t0:
	.zero	8
	.globl	t1
	.align 8
	.type	t1, @object
	.size	t1, 8
t1:
	.zero	8
	.globl	tmin
	.align 8
	.type	tmin, @object
	.size	tmin, 8
tmin:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d%c"
	.text
	.globl	P
	.type	P, @function
P:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	movl	-8(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L2
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	%eax, -8(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	DP(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	P
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	addl	%eax, -8(%rbp)
	movl	N(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -8(%rbp)
	jne	.L3
	movl	$10, %ecx
	jmp	.L4
.L3:
	movl	$32, %ecx
.L4:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	i(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %edx
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	P, .-P
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movl	%eax, N(%rip)
	movl	$0, k(%rip)
	jmp	.L6
.L7:
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rax, %rdx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	i(%rip), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L6:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	$0, K(%rip)
	jmp	.L8
.L12:
	movl	K(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	W(%rip), %rax
	movl	$70, (%rdx,%rax)
	movl	$0, k(%rip)
	jmp	.L9
.L11:
	movl	K(%rip), %edx
	movl	k(%rip), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L10
	movl	K(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	W(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	movl	%eax, %edx
	movl	K(%rip), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	W(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L10:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L9:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L11
	movl	K(%rip), %eax
	addl	$1, %eax
	movl	%eax, K(%rip)
.L8:
	movl	K(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L12
	movl	$1, K(%rip)
	jmp	.L13
.L20:
	movl	$0, k(%rip)
	jmp	.L14
.L19:
	movl	K(%rip), %edx
	movl	k(%rip), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L15
	movabsq	$1000000000000000000, %rax
	movq	%rax, tmin(%rip)
	movl	$0, k0(%rip)
	jmp	.L16
.L18:
	movl	K(%rip), %edx
	movl	k0(%rip), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L17
	movl	k0(%rip), %edx
	movl	K(%rip), %esi
	movl	k0(%rip), %eax
	movl	$1, %edi
	movl	%eax, %ecx
	sall	%cl, %edi
	movl	%edi, %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	DT(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, t0(%rip)
	movl	k0(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movslq	%eax, %rdx
	movl	K(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	W(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	imulq	%rdx, %rax
	movq	%rax, t1(%rip)
	movq	t1(%rip), %rdx
	movq	t0(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, t(%rip)
	movq	t(%rip), %rdx
	movq	tmin(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L17
	movq	t(%rip), %rax
	movq	%rax, tmin(%rip)
	movl	k0(%rip), %eax
	movl	%eax, p(%rip)
.L17:
	movl	k0(%rip), %eax
	addl	$1, %eax
	movl	%eax, k0(%rip)
.L16:
	movl	k0(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	k(%rip), %edx
	movl	K(%rip), %ecx
	movq	tmin(%rip), %rax
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	DT(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	k(%rip), %edx
	movl	K(%rip), %ecx
	movl	p(%rip), %eax
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	DP(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L15:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L14:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	K(%rip), %eax
	addl	$1, %eax
	movl	%eax, K(%rip)
.L13:
	movl	N(%rip), %eax
	leal	-1(%rax), %edx
	movl	K(%rip), %eax
	cmpl	%eax, %edx
	jg	.L20
	movabsq	$1000000000000000000, %rax
	movq	%rax, tmin(%rip)
	movl	$0, k(%rip)
	jmp	.L21
.L23:
	movl	k(%rip), %edx
	movl	N(%rip), %eax
	leal	-1(%rax), %esi
	movl	k(%rip), %eax
	movl	$1, %edi
	movl	%eax, %ecx
	sall	%cl, %edi
	movl	%edi, %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	DT(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, t(%rip)
	movq	t(%rip), %rdx
	movq	tmin(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L22
	movq	t(%rip), %rax
	movq	%rax, tmin(%rip)
	movl	k(%rip), %eax
	movl	%eax, k0(%rip)
.L22:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L21:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L23
	movl	N(%rip), %eax
	leal	-1(%rax), %edx
	movl	k0(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	P
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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
.LC0:
	.string	"%d%c"
	.text
	.p2align 4
	.type	P.part.0.isra.0, @function
P.part.0.isra.0:
.LFB42:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$1, %edx
	leaq	.LC0(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edx, %eax
	leaq	i(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	leaq	DP(%rip), %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	movq	%rbx, %rcx
	sall	%cl, %eax
	subl	%eax, %r12d
	movq	%rbx, %rax
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	salq	$15, %rax
	movslq	%r12d, %rdi
	addq	%rdi, %rax
	movl	(%rsi,%rax,4), %ecx
	btl	%ecx, %r12d
	jc	.L22
.L2:
	movl	N(%rip), %eax
	movl	$10, %ecx
	movl	(%r14,%rbx,4), %edx
	movq	%r15, %rsi
	movl	$1, %edi
	subl	$1, %eax
	cmpl	%eax, %ebp
	movl	$32, %eax
	cmovne	%eax, %ecx
	addq	$24, %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
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movl	%edx, %eax
	movslq	%ecx, %r13
	movl	%r12d, %r8d
	sall	%cl, %eax
	subl	%eax, %r8d
	movq	%r13, %rax
	salq	$15, %rax
	movslq	%r8d, %rdi
	addq	%rdi, %rax
	movl	(%rsi,%rax,4), %ecx
	btl	%ecx, %r8d
	jc	.L23
.L3:
	movl	N(%rip), %eax
	movl	$10, %ecx
	movl	(%r14,%r13,4), %edx
	movq	%r15, %rsi
	movl	$1, %edi
	subl	$1, %eax
	cmpl	%eax, %r12d
	movl	$32, %eax
	cmovne	%eax, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L23:
	sall	%cl, %edx
	movl	%r8d, %r9d
	movslq	%ecx, %r15
	subl	%edx, %r9d
	movq	%r15, %rax
	salq	$15, %rax
	movslq	%r9d, %rdx
	addq	%rdx, %rax
	movl	(%rsi,%rax,4), %edi
	btl	%edi, %r9d
	jc	.L24
.L4:
	movl	N(%rip), %eax
	movl	$10, %ecx
	movl	$1, %edi
	leaq	i(%rip), %r14
	movl	(%r14,%r15,4), %edx
	leaq	.LC0(%rip), %r15
	subl	$1, %eax
	movq	%r15, %rsi
	cmpl	%eax, %r8d
	movl	$32, %eax
	cmovne	%eax, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%r9d, %esi
	xorl	%eax, %eax
	movl	%r8d, 12(%rsp)
	call	P.part.0.isra.0
	movl	12(%rsp), %r8d
	jmp	.L4
	.cfi_endproc
.LFE42:
	.size	P.part.0.isra.0, .-P.part.0.isra.0
	.p2align 4
	.globl	P
	.type	P, @function
P:
.LFB39:
	.cfi_startproc
	endbr64
	btl	%edi, %esi
	jc	.L42
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	movl	$1, %edx
	movl	%edi, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	i(%rip), %r14
	movl	%edx, %eax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	sall	%cl, %eax
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movslq	%ecx, %rbp
	subl	%eax, %r12d
	movq	%rbp, %rax
	movslq	%r12d, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%esi, %ebx
	salq	$15, %rax
	leaq	DP(%rip), %rsi
	addq	%rdi, %rax
	movl	(%rsi,%rax,4), %ecx
	btl	%ecx, %r12d
	jc	.L43
.L27:
	movl	N(%rip), %eax
	movl	$10, %ecx
	movl	(%r14,%rbp,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	subl	$1, %eax
	cmpl	%eax, %ebx
	movl	$32, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	cmovne	%eax, %ecx
	popq	%r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	sall	%cl, %edx
	movl	%r12d, %r8d
	movslq	%ecx, %r13
	subl	%edx, %r8d
	movq	%r13, %rax
	salq	$15, %rax
	movslq	%r8d, %rdx
	addq	%rdx, %rax
	movl	(%rsi,%rax,4), %edi
	btl	%edi, %r8d
	jc	.L44
.L28:
	movl	N(%rip), %eax
	movl	$10, %ecx
	movl	$1, %edi
	leaq	i(%rip), %r14
	movl	(%r14,%r13,4), %edx
	leaq	.LC0(%rip), %r13
	subl	$1, %eax
	movq	%r13, %rsi
	cmpl	%eax, %r12d
	movl	$32, %eax
	cmovne	%eax, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L44:
	movl	%r8d, %esi
	xorl	%eax, %eax
	call	P.part.0.isra.0
	jmp	.L28
	.cfi_endproc
.LFE39:
	.size	P, .-P
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%r8, 8(%rsp)
	call	__isoc99_scanf@PLT
	movl	$1, %eax
	movq	8(%rsp), %r8
	movl	n(%rip), %r14d
	movl	$0, k(%rip)
	movl	%r14d, %ecx
	sall	%cl, %eax
	testl	%r14d, %r14d
	movl	%eax, N(%rip)
	jle	.L46
	xorl	%eax, %eax
	leaq	w(%rip), %r15
	movq	%r8, %r14
	leaq	i(%rip), %r13
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L47:
	movslq	%eax, %rsi
	leaq	d(%rip), %rax
	movq	%r12, %rdi
	salq	$2, %rsi
	leaq	(%rax,%rsi), %rdx
	leaq	(%r15,%rsi), %rcx
	xorl	%eax, %eax
	addq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movl	k(%rip), %eax
	movl	n(%rip), %edx
	addl	$1, %eax
	movl	%eax, k(%rip)
	cmpl	%edx, %eax
	jl	.L47
	movq	%r14, %r8
	movl	%edx, %r14d
.L46:
	movl	N(%rip), %eax
	movl	%eax, 36(%rsp)
	testl	%eax, %eax
	jle	.L48
	leaq	W(%rip), %rcx
	movslq	%eax, %r11
	xorl	%r10d, %r10d
	movslq	%r14d, %rdi
	leaq	w(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L52:
	movl	$70, (%rcx)
	movl	%r10d, %esi
	testl	%r14d, %r14d
	jle	.L49
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L51:
	btl	%eax, %esi
	jnc	.L50
	movl	(%r9,%rax,4), %edx
	leal	(%rdx,%rdx,4), %edx
	sall	$2, %edx
	addl	%edx, (%rcx)
.L50:
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L51
.L49:
	addq	$1, %r10
	addq	$4, %rcx
	cmpq	%r11, %r10
	jne	.L52
.L48:
	movl	$1, K(%rip)
	movl	36(%rsp), %edi
	leal	-1(%rdi), %eax
	movl	%eax, 40(%rsp)
	cmpl	$1, %eax
	jle	.L54
	leal	-3(%rdi), %eax
	movl	p(%rip), %esi
	movb	$0, 8(%rsp)
	xorl	%ecx, %ecx
	addq	$2, %rax
	movl	44(%rsp), %r11d
	movl	%r14d, 32(%rsp)
	xorl	%r15d, %r15d
	movq	%rax, 24(%rsp)
	leaq	4+W(%rip), %r12
	movl	%esi, %r14d
	leaq	DT(%rip), %r13
	movq	$1, 16(%rsp)
	leaq	d(%rip), %r10
	.p2align 4,,10
	.p2align 3
.L60:
	movq	16(%rsp), %rdi
	movslq	32(%rsp), %rsi
	movl	%edi, %edx
	testl	%esi, %esi
	jle	.L55
	leaq	DP(%rip), %rax
	leaq	0(%r13,%rdi,8), %r9
	leaq	(%rax,%rdi,4), %rdi
	xorl	%eax, %eax
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L56:
	addq	$1, %rax
	addq	$262144, %r9
	addq	$131072, %rdi
	cmpq	%rsi, %rax
	je	.L55
.L59:
	btl	%eax, %edx
	jc	.L56
	movabsq	$1000000000000000000, %r11
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L58:
	btl	%ecx, %edx
	jnc	.L57
	movl	$1, %r8d
	movl	%edx, %ebx
	movl	(%r10,%rcx,4), %ebp
	subl	(%r10,%rax,4), %ebp
	sall	%cl, %r8d
	movl	$1, %r15d
	subl	%r8d, %ebx
	movslq	%ecx, %r8
	movslq	%ebx, %rbx
	salq	$15, %r8
	addq	%rbx, %r8
	movl	%ebp, %ebx
	negl	%ebx
	movq	0(%r13,%r8,8), %r8
	cmovs	%ebp, %ebx
	movslq	(%r12), %rbp
	movslq	%ebx, %rbx
	imulq	%rbp, %rbx
	leaq	(%r8,%rbx), %rbp
	cmpq	%r11, %rbp
	jge	.L57
	movb	$1, 8(%rsp)
	movl	%ecx, %r14d
	movq	%rbp, %r11
.L57:
	addq	$1, %rcx
	cmpq	%rcx, %rsi
	jne	.L58
	movq	%r11, (%r9)
	movl	$1, %ecx
	movl	32(%rsp), %r11d
	movl	%r14d, (%rdi)
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L55:
	addq	$1, 16(%rsp)
	addq	$4, %r12
	movq	16(%rsp), %rax
	cmpq	%rax, 24(%rsp)
	jne	.L60
	movl	40(%rsp), %eax
	cmpb	$0, 8(%rsp)
	movl	%r14d, %edi
	movl	%r11d, 44(%rsp)
	movl	32(%rsp), %r14d
	movl	%eax, K(%rip)
	je	.L61
	movl	%edi, p(%rip)
.L61:
	testb	%r15b, %r15b
	je	.L62
	movq	%rbx, t1(%rip)
	movq	%r8, t0(%rip)
.L62:
	testb	%cl, %cl
	je	.L63
	movl	44(%rsp), %eax
	movl	%eax, k0(%rip)
.L63:
	testb	%r15b, %r15b
	je	.L54
	movq	%rbp, t(%rip)
.L54:
	movabsq	$1000000000000000000, %rdx
	movl	$0, k(%rip)
	movq	%rdx, tmin(%rip)
	testl	%r14d, %r14d
	jle	.L66
	movl	36(%rsp), %ebx
	leaq	DT(%rip), %rsi
	movabsq	$999999999999999999, %rcx
	leal	-2(%rbx), %eax
	cltq
	movq	(%rsi,%rax,8), %rax
	cmpq	%rcx, %rax
	cmovle	%rax, %rdx
	setle	%dil
	cmpl	$1, %r14d
	je	.L88
	leal	-3(%rbx), %eax
	xorl	%ecx, %ecx
	cltq
	movq	262144(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L172
.L69:
	cmpl	$2, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$5, %eax
	cltq
	movq	524288(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L173
.L70:
	cmpl	$3, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$9, %eax
	cltq
	movq	786432(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L174
.L71:
	cmpl	$4, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$17, %eax
	cltq
	movq	1048576(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L72
	movq	%rax, %rdx
	movl	$4, %ecx
	movl	$1, %edi
.L72:
	cmpl	$5, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$33, %eax
	cltq
	movq	1310720(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L73
	movq	%rax, %rdx
	movl	$5, %ecx
	movl	$1, %edi
.L73:
	cmpl	$6, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$65, %eax
	cltq
	movq	1572864(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L74
	movq	%rax, %rdx
	movl	$6, %ecx
	movl	$1, %edi
.L74:
	cmpl	$7, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$129, %eax
	cltq
	movq	1835008(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L175
.L75:
	cmpl	$8, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$257, %eax
	cltq
	movq	2097152(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L176
.L76:
	cmpl	$9, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$513, %eax
	cltq
	movq	2359296(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L177
.L77:
	cmpl	$10, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$1025, %eax
	cltq
	movq	2621440(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L178
.L78:
	cmpl	$11, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$2049, %eax
	cltq
	movq	2883584(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L179
.L79:
	cmpl	$12, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$4097, %eax
	cltq
	movq	3145728(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L80
	movq	%rax, %rdx
	movl	$12, %ecx
	movl	$1, %edi
.L80:
	cmpl	$13, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$8193, %eax
	cltq
	movq	3407872(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L81
	movq	%rax, %rdx
	movl	$13, %ecx
	movl	$1, %edi
.L81:
	cmpl	$14, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$16385, %eax
	cltq
	movq	3670016(%rsi,%rax,8), %rax
	cmpq	%rdx, %rax
	jge	.L68
	movl	%r14d, k(%rip)
	movq	%rax, %rdx
	movl	$14, %ecx
	movq	%rax, t(%rip)
	jmp	.L82
.L88:
	xorl	%ecx, %ecx
.L68:
	movl	%r14d, k(%rip)
	movq	%rax, t(%rip)
	testb	%dil, %dil
	je	.L66
.L82:
	movl	%ecx, k0(%rip)
	movq	%rdx, tmin(%rip)
.L66:
	movl	k0(%rip), %edi
	movl	40(%rsp), %eax
	btl	%edi, %eax
	jc	.L180
.L84:
	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
.L172:
	.cfi_restore_state
	movq	%rax, %rdx
	movl	$1, %ecx
	movl	$1, %edi
	jmp	.L69
.L173:
	movq	%rax, %rdx
	movl	$2, %ecx
	movl	$1, %edi
	jmp	.L70
.L174:
	movq	%rax, %rdx
	movl	$3, %ecx
	movl	$1, %edi
	jmp	.L71
.L180:
	movl	%eax, %esi
	xorl	%eax, %eax
	call	P.part.0.isra.0
	jmp	.L84
.L175:
	movq	%rax, %rdx
	movl	$7, %ecx
	movl	$1, %edi
	jmp	.L75
.L176:
	movq	%rax, %rdx
	movl	$8, %ecx
	movl	$1, %edi
	jmp	.L76
.L177:
	movq	%rax, %rdx
	movl	$9, %ecx
	movl	$1, %edi
	jmp	.L77
.L178:
	movq	%rax, %rdx
	movl	$10, %ecx
	movl	$1, %edi
	jmp	.L78
.L179:
	movq	%rax, %rdx
	movl	$11, %ecx
	movl	$1, %edi
	jmp	.L79
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	tmin
	.bss
	.align 8
	.type	tmin, @object
	.size	tmin, 8
tmin:
	.zero	8
	.globl	t1
	.align 8
	.type	t1, @object
	.size	t1, 8
t1:
	.zero	8
	.globl	t0
	.align 8
	.type	t0, @object
	.size	t0, 8
t0:
	.zero	8
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.zero	8
	.globl	DT
	.align 32
	.type	DT, @object
	.size	DT, 3932160
DT:
	.zero	3932160
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	k0
	.align 4
	.type	k0, @object
	.size	k0, 4
k0:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.globl	DP
	.align 32
	.type	DP, @object
	.size	DP, 1966080
DP:
	.zero	1966080
	.globl	W
	.align 32
	.type	W, @object
	.size	W, 131072
W:
	.zero	131072
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 60
w:
	.zero	60
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 60
d:
	.zero	60
	.globl	i
	.align 32
	.type	i, @object
	.size	i, 60
i:
	.zero	60
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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
.LC0:
	.string	"%d%c"
	.text
	.p2align 4
	.type	P.part.0.isra.0, @function
P.part.0.isra.0:
.LFB42:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$1, %edx
	leaq	.LC0(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edx, %eax
	leaq	i(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	leaq	DP(%rip), %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	movq	%rbx, %rcx
	sall	%cl, %eax
	subl	%eax, %r12d
	movq	%rbx, %rax
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	salq	$15, %rax
	movslq	%r12d, %rdi
	addq	%rdi, %rax
	movl	(%rsi,%rax,4), %ecx
	btl	%ecx, %r12d
	jc	.L22
.L2:
	movl	N(%rip), %eax
	movl	$10, %ecx
	movl	(%r14,%rbx,4), %edx
	movq	%r15, %rsi
	movl	$1, %edi
	subl	$1, %eax
	cmpl	%eax, %ebp
	movl	$32, %eax
	cmovne	%eax, %ecx
	addq	$24, %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
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movl	%edx, %eax
	movslq	%ecx, %r13
	movl	%r12d, %r8d
	sall	%cl, %eax
	subl	%eax, %r8d
	movq	%r13, %rax
	salq	$15, %rax
	movslq	%r8d, %rdi
	addq	%rdi, %rax
	movl	(%rsi,%rax,4), %ecx
	btl	%ecx, %r8d
	jc	.L23
.L3:
	movl	N(%rip), %eax
	movl	$10, %ecx
	movl	(%r14,%r13,4), %edx
	movq	%r15, %rsi
	movl	$1, %edi
	subl	$1, %eax
	cmpl	%eax, %r12d
	movl	$32, %eax
	cmovne	%eax, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L23:
	sall	%cl, %edx
	movl	%r8d, %r9d
	movslq	%ecx, %r15
	subl	%edx, %r9d
	movq	%r15, %rax
	salq	$15, %rax
	movslq	%r9d, %rdx
	addq	%rdx, %rax
	movl	(%rsi,%rax,4), %edi
	btl	%edi, %r9d
	jc	.L24
.L4:
	movl	N(%rip), %eax
	movl	$10, %ecx
	movl	$1, %edi
	leaq	i(%rip), %r14
	movl	(%r14,%r15,4), %edx
	leaq	.LC0(%rip), %r15
	subl	$1, %eax
	movq	%r15, %rsi
	cmpl	%eax, %r8d
	movl	$32, %eax
	cmovne	%eax, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%r9d, %esi
	xorl	%eax, %eax
	movl	%r8d, 12(%rsp)
	call	P.part.0.isra.0
	movl	12(%rsp), %r8d
	jmp	.L4
	.cfi_endproc
.LFE42:
	.size	P.part.0.isra.0, .-P.part.0.isra.0
	.p2align 4
	.globl	P
	.type	P, @function
P:
.LFB39:
	.cfi_startproc
	endbr64
	btl	%edi, %esi
	jc	.L42
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	movl	$1, %edx
	movl	%edi, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	i(%rip), %r14
	movl	%edx, %eax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	sall	%cl, %eax
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movslq	%ecx, %rbp
	subl	%eax, %r12d
	movq	%rbp, %rax
	movslq	%r12d, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%esi, %ebx
	salq	$15, %rax
	leaq	DP(%rip), %rsi
	addq	%rdi, %rax
	movl	(%rsi,%rax,4), %ecx
	btl	%ecx, %r12d
	jc	.L43
.L27:
	movl	N(%rip), %eax
	movl	$10, %ecx
	movl	(%r14,%rbp,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	subl	$1, %eax
	cmpl	%eax, %ebx
	movl	$32, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	cmovne	%eax, %ecx
	popq	%r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	sall	%cl, %edx
	movl	%r12d, %r8d
	movslq	%ecx, %r13
	subl	%edx, %r8d
	movq	%r13, %rax
	salq	$15, %rax
	movslq	%r8d, %rdx
	addq	%rdx, %rax
	movl	(%rsi,%rax,4), %edi
	btl	%edi, %r8d
	jc	.L44
.L28:
	movl	N(%rip), %eax
	movl	$10, %ecx
	movl	$1, %edi
	leaq	i(%rip), %r14
	movl	(%r14,%r13,4), %edx
	leaq	.LC0(%rip), %r13
	subl	$1, %eax
	movq	%r13, %rsi
	cmpl	%eax, %r12d
	movl	$32, %eax
	cmovne	%eax, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L44:
	movl	%r8d, %esi
	xorl	%eax, %eax
	call	P.part.0.isra.0
	jmp	.L28
	.cfi_endproc
.LFE39:
	.size	P, .-P
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%r8, 8(%rsp)
	call	__isoc99_scanf@PLT
	movl	$1, %eax
	movq	8(%rsp), %r8
	movl	n(%rip), %r14d
	movl	$0, k(%rip)
	movl	%r14d, %ecx
	sall	%cl, %eax
	testl	%r14d, %r14d
	movl	%eax, N(%rip)
	jle	.L46
	xorl	%eax, %eax
	leaq	w(%rip), %r15
	movq	%r8, %r14
	leaq	i(%rip), %r13
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L47:
	movslq	%eax, %rsi
	leaq	d(%rip), %rax
	movq	%r12, %rdi
	salq	$2, %rsi
	leaq	(%rax,%rsi), %rdx
	leaq	(%r15,%rsi), %rcx
	xorl	%eax, %eax
	addq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movl	k(%rip), %eax
	movl	n(%rip), %edx
	addl	$1, %eax
	movl	%eax, k(%rip)
	cmpl	%edx, %eax
	jl	.L47
	movq	%r14, %r8
	movl	%edx, %r14d
.L46:
	movl	N(%rip), %eax
	movl	%eax, 36(%rsp)
	testl	%eax, %eax
	jle	.L48
	leaq	W(%rip), %rcx
	movslq	%eax, %r11
	xorl	%r10d, %r10d
	movslq	%r14d, %rdi
	leaq	w(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L52:
	movl	$70, (%rcx)
	movl	%r10d, %esi
	testl	%r14d, %r14d
	jle	.L49
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L51:
	btl	%eax, %esi
	jnc	.L50
	movl	(%r9,%rax,4), %edx
	leal	(%rdx,%rdx,4), %edx
	sall	$2, %edx
	addl	%edx, (%rcx)
.L50:
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L51
.L49:
	addq	$1, %r10
	addq	$4, %rcx
	cmpq	%r11, %r10
	jne	.L52
.L48:
	movl	$1, K(%rip)
	movl	36(%rsp), %edi
	leal	-1(%rdi), %eax
	movl	%eax, 40(%rsp)
	cmpl	$1, %eax
	jle	.L54
	leal	-3(%rdi), %eax
	movl	p(%rip), %esi
	movb	$0, 8(%rsp)
	xorl	%ecx, %ecx
	addq	$2, %rax
	movl	44(%rsp), %r11d
	movl	%r14d, 32(%rsp)
	xorl	%r15d, %r15d
	movq	%rax, 24(%rsp)
	leaq	4+W(%rip), %r12
	movl	%esi, %r14d
	leaq	DT(%rip), %r13
	movq	$1, 16(%rsp)
	leaq	d(%rip), %r10
	.p2align 4,,10
	.p2align 3
.L60:
	movq	16(%rsp), %rdi
	movslq	32(%rsp), %rsi
	movl	%edi, %edx
	testl	%esi, %esi
	jle	.L55
	leaq	DP(%rip), %rax
	leaq	0(%r13,%rdi,8), %r9
	leaq	(%rax,%rdi,4), %rdi
	xorl	%eax, %eax
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L56:
	addq	$1, %rax
	addq	$262144, %r9
	addq	$131072, %rdi
	cmpq	%rsi, %rax
	je	.L55
.L59:
	btl	%eax, %edx
	jc	.L56
	movabsq	$1000000000000000000, %r11
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L58:
	btl	%ecx, %edx
	jnc	.L57
	movl	$1, %r8d
	movl	%edx, %ebx
	movl	(%r10,%rcx,4), %ebp
	subl	(%r10,%rax,4), %ebp
	sall	%cl, %r8d
	movl	$1, %r15d
	subl	%r8d, %ebx
	movslq	%ecx, %r8
	movslq	%ebx, %rbx
	salq	$15, %r8
	addq	%rbx, %r8
	movl	%ebp, %ebx
	negl	%ebx
	movq	0(%r13,%r8,8), %r8
	cmovs	%ebp, %ebx
	movslq	(%r12), %rbp
	movslq	%ebx, %rbx
	imulq	%rbp, %rbx
	leaq	(%r8,%rbx), %rbp
	cmpq	%r11, %rbp
	jge	.L57
	movb	$1, 8(%rsp)
	movl	%ecx, %r14d
	movq	%rbp, %r11
.L57:
	addq	$1, %rcx
	cmpq	%rcx, %rsi
	jne	.L58
	movq	%r11, (%r9)
	movl	$1, %ecx
	movl	32(%rsp), %r11d
	movl	%r14d, (%rdi)
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L55:
	addq	$1, 16(%rsp)
	addq	$4, %r12
	movq	16(%rsp), %rax
	cmpq	%rax, 24(%rsp)
	jne	.L60
	movl	40(%rsp), %eax
	cmpb	$0, 8(%rsp)
	movl	%r14d, %edi
	movl	%r11d, 44(%rsp)
	movl	32(%rsp), %r14d
	movl	%eax, K(%rip)
	je	.L61
	movl	%edi, p(%rip)
.L61:
	testb	%r15b, %r15b
	je	.L62
	movq	%rbx, t1(%rip)
	movq	%r8, t0(%rip)
.L62:
	testb	%cl, %cl
	je	.L63
	movl	44(%rsp), %eax
	movl	%eax, k0(%rip)
.L63:
	testb	%r15b, %r15b
	je	.L54
	movq	%rbp, t(%rip)
.L54:
	movabsq	$1000000000000000000, %rdx
	movl	$0, k(%rip)
	movq	%rdx, tmin(%rip)
	testl	%r14d, %r14d
	jle	.L66
	movl	36(%rsp), %ebx
	leaq	DT(%rip), %rsi
	movabsq	$999999999999999999, %rcx
	leal	-2(%rbx), %eax
	cltq
	movq	(%rsi,%rax,8), %rax
	cmpq	%rcx, %rax
	cmovle	%rax, %rdx
	setle	%dil
	cmpl	$1, %r14d
	je	.L88
	leal	-3(%rbx), %eax
	xorl	%ecx, %ecx
	cltq
	movq	262144(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L172
.L69:
	cmpl	$2, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$5, %eax
	cltq
	movq	524288(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L173
.L70:
	cmpl	$3, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$9, %eax
	cltq
	movq	786432(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L174
.L71:
	cmpl	$4, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$17, %eax
	cltq
	movq	1048576(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L72
	movq	%rax, %rdx
	movl	$4, %ecx
	movl	$1, %edi
.L72:
	cmpl	$5, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$33, %eax
	cltq
	movq	1310720(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L73
	movq	%rax, %rdx
	movl	$5, %ecx
	movl	$1, %edi
.L73:
	cmpl	$6, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$65, %eax
	cltq
	movq	1572864(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L74
	movq	%rax, %rdx
	movl	$6, %ecx
	movl	$1, %edi
.L74:
	cmpl	$7, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$129, %eax
	cltq
	movq	1835008(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L175
.L75:
	cmpl	$8, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$257, %eax
	cltq
	movq	2097152(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L176
.L76:
	cmpl	$9, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$513, %eax
	cltq
	movq	2359296(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L177
.L77:
	cmpl	$10, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$1025, %eax
	cltq
	movq	2621440(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L178
.L78:
	cmpl	$11, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$2049, %eax
	cltq
	movq	2883584(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jg	.L179
.L79:
	cmpl	$12, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$4097, %eax
	cltq
	movq	3145728(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L80
	movq	%rax, %rdx
	movl	$12, %ecx
	movl	$1, %edi
.L80:
	cmpl	$13, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$8193, %eax
	cltq
	movq	3407872(%rsi,%rax,8), %rax
	cmpq	%rax, %rdx
	jle	.L81
	movq	%rax, %rdx
	movl	$13, %ecx
	movl	$1, %edi
.L81:
	cmpl	$14, %r14d
	je	.L68
	movl	36(%rsp), %eax
	subl	$16385, %eax
	cltq
	movq	3670016(%rsi,%rax,8), %rax
	cmpq	%rdx, %rax
	jge	.L68
	movl	%r14d, k(%rip)
	movq	%rax, %rdx
	movl	$14, %ecx
	movq	%rax, t(%rip)
	jmp	.L82
.L88:
	xorl	%ecx, %ecx
.L68:
	movl	%r14d, k(%rip)
	movq	%rax, t(%rip)
	testb	%dil, %dil
	je	.L66
.L82:
	movl	%ecx, k0(%rip)
	movq	%rdx, tmin(%rip)
.L66:
	movl	k0(%rip), %edi
	movl	40(%rsp), %eax
	btl	%edi, %eax
	jc	.L180
.L84:
	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
.L172:
	.cfi_restore_state
	movq	%rax, %rdx
	movl	$1, %ecx
	movl	$1, %edi
	jmp	.L69
.L173:
	movq	%rax, %rdx
	movl	$2, %ecx
	movl	$1, %edi
	jmp	.L70
.L174:
	movq	%rax, %rdx
	movl	$3, %ecx
	movl	$1, %edi
	jmp	.L71
.L180:
	movl	%eax, %esi
	xorl	%eax, %eax
	call	P.part.0.isra.0
	jmp	.L84
.L175:
	movq	%rax, %rdx
	movl	$7, %ecx
	movl	$1, %edi
	jmp	.L75
.L176:
	movq	%rax, %rdx
	movl	$8, %ecx
	movl	$1, %edi
	jmp	.L76
.L177:
	movq	%rax, %rdx
	movl	$9, %ecx
	movl	$1, %edi
	jmp	.L77
.L178:
	movq	%rax, %rdx
	movl	$10, %ecx
	movl	$1, %edi
	jmp	.L78
.L179:
	movq	%rax, %rdx
	movl	$11, %ecx
	movl	$1, %edi
	jmp	.L79
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	tmin
	.bss
	.align 8
	.type	tmin, @object
	.size	tmin, 8
tmin:
	.zero	8
	.globl	t1
	.align 8
	.type	t1, @object
	.size	t1, 8
t1:
	.zero	8
	.globl	t0
	.align 8
	.type	t0, @object
	.size	t0, 8
t0:
	.zero	8
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.zero	8
	.globl	DT
	.align 32
	.type	DT, @object
	.size	DT, 3932160
DT:
	.zero	3932160
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	k0
	.align 4
	.type	k0, @object
	.size	k0, 4
k0:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.globl	DP
	.align 32
	.type	DP, @object
	.size	DP, 1966080
DP:
	.zero	1966080
	.globl	W
	.align 32
	.type	W, @object
	.size	W, 131072
W:
	.zero	131072
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 60
w:
	.zero	60
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 60
d:
	.zero	60
	.globl	i
	.align 32
	.type	i, @object
	.size	i, 60
i:
	.zero	60
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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<stdlib.h>
#define MAXN 15
n,N,i[MAXN],d[MAXN],w[MAXN],W[1<<MAXN],DP[MAXN][1<<MAXN];
K,k,k0,p;
long long DT[MAXN][1<<MAXN],t,t0,t1,tmin;
P(k,K){
	if(K&(1<<k)){
		K-=1<<k;
		P(DP[k][K],K);
		K+=1<<k;
		printf("%d%c",i[k],K==N-1?'\n':' ');
	}
}
main(){
	scanf("%d",&n);
	N=1<<n;
	for(k=0;k<n;k++)
		scanf("%d%d%d",i+k,d+k,w+k);
	for(K=0;K<N;K++){
		W[K]=70;
		for(k=0;k<n;k++){
			if(K&(1<<k))
				W[K]+=w[k]*20;
		}
	}
	for(K=1;K<N-1;K++){
		for(k=0;k<n;k++){
			if(!(K&(1<<k))){
				tmin=1e18;
				for(k0=0;k0<n;k0++){
					if(K&(1<<k0)){
						t0=DT[k0][K-(1<<k0)];
						t1=(long long)abs(d[k0]-d[k])*W[K];
						t=t1+t0;
						if(t<tmin){
							tmin=t;
							p=k0;
						}
					}
				}
				DT[k][K]=tmin;
				DP[k][K]=p;
			}
		}
	}
	tmin=1e18;
	for(k=0;k<n;k++){
		t=DT[k][N-1-(1<<k)];
		if(t<tmin){
			tmin=t;
			k0=k;
		}
	}
	P(k0,N-1);
	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
 9 24 13
 9 24 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<stdlib.h>
#define MAXN 15
n,N,i[MAXN],d[MAXN],w[MAXN],W[1<<MAXN],DP[MAXN][1<<MAXN];
K,k,k0,p;
long long DT[MAXN][1<<MAXN],t,t0,t1,tmin;
P(k,K){
	if(K&(1<<k)){
		K-=1<<k;
		P(DP[k][K],K);
		K+=1<<k;
		printf("%d%c",i[k],K==N-1?'\n':' ');
	}
}
main(){
	scanf("%d",&n);
	N=1<<n;
	for(k=0;k<n;k++)
		scanf("%d%d%d",i+k,d+k,w+k);
	for(K=0;K<N;K++){
		W[K]=70;
		for(k=0;k<n;k++){
			if(K&(1<<k))
				W[K]+=w[k]*20;
		}
	}
	for(K=1;K<N-1;K++){
		for(k=0;k<n;k++){
			if(!(K&(1<<k))){
				tmin=1e18;
				for(k0=0;k0<n;k0++){
					if(K&(1<<k0)){
						t0=DT[k0][K-(1<<k0)];
						t1=(long long)abs(d[k0]-d[k])*W[K];
						t=t1+t0;
						if(t<tmin){
							tmin=t;
							p=k0;
						}
					}
				}
				DT[k][K]=tmin;
				DP[k][K]=p;
			}
		}
	}
	tmin=1e18;
	for(k=0;k<n;k++){
		t=DT[k][N-1-(1<<k)];
		if(t<tmin){
			tmin=t;
			k0=k;
		}
	}
	P(k0,N-1);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	i
	.align 32
	.type	i, @object
	.size	i, 60
i:
	.zero	60
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 60
d:
	.zero	60
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 60
w:
	.zero	60
	.globl	W
	.align 32
	.type	W, @object
	.size	W, 131072
W:
	.zero	131072
	.globl	DP
	.align 32
	.type	DP, @object
	.size	DP, 1966080
DP:
	.zero	1966080
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	k0
	.align 4
	.type	k0, @object
	.size	k0, 4
k0:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	DT
	.align 32
	.type	DT, @object
	.size	DT, 3932160
DT:
	.zero	3932160
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.zero	8
	.globl	t0
	.align 8
	.type	t0, @object
	.size	t0, 8
t0:
	.zero	8
	.globl	t1
	.align 8
	.type	t1, @object
	.size	t1, 8
t1:
	.zero	8
	.globl	tmin
	.align 8
	.type	tmin, @object
	.size	tmin, 8
tmin:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d%c"
	.text
	.globl	P
	.type	P, @function
P:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	movl	-8(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L2
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	%eax, -8(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	DP(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	P
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	addl	%eax, -8(%rbp)
	movl	N(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -8(%rbp)
	jne	.L3
	movl	$10, %ecx
	jmp	.L4
.L3:
	movl	$32, %ecx
.L4:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	i(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %edx
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	P, .-P
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movl	%eax, N(%rip)
	movl	$0, k(%rip)
	jmp	.L6
.L7:
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rax, %rdx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	i(%rip), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L6:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	$0, K(%rip)
	jmp	.L8
.L12:
	movl	K(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	W(%rip), %rax
	movl	$70, (%rdx,%rax)
	movl	$0, k(%rip)
	jmp	.L9
.L11:
	movl	K(%rip), %edx
	movl	k(%rip), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L10
	movl	K(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	W(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	movl	%eax, %edx
	movl	K(%rip), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	W(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L10:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L9:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L11
	movl	K(%rip), %eax
	addl	$1, %eax
	movl	%eax, K(%rip)
.L8:
	movl	K(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L12
	movl	$1, K(%rip)
	jmp	.L13
.L20:
	movl	$0, k(%rip)
	jmp	.L14
.L19:
	movl	K(%rip), %edx
	movl	k(%rip), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L15
	movabsq	$1000000000000000000, %rax
	movq	%rax, tmin(%rip)
	movl	$0, k0(%rip)
	jmp	.L16
.L18:
	movl	K(%rip), %edx
	movl	k0(%rip), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L17
	movl	k0(%rip), %edx
	movl	K(%rip), %esi
	movl	k0(%rip), %eax
	movl	$1, %edi
	movl	%eax, %ecx
	sall	%cl, %edi
	movl	%edi, %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	DT(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, t0(%rip)
	movl	k0(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movslq	%eax, %rdx
	movl	K(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	W(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	imulq	%rdx, %rax
	movq	%rax, t1(%rip)
	movq	t1(%rip), %rdx
	movq	t0(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, t(%rip)
	movq	t(%rip), %rdx
	movq	tmin(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L17
	movq	t(%rip), %rax
	movq	%rax, tmin(%rip)
	movl	k0(%rip), %eax
	movl	%eax, p(%rip)
.L17:
	movl	k0(%rip), %eax
	addl	$1, %eax
	movl	%eax, k0(%rip)
.L16:
	movl	k0(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	k(%rip), %edx
	movl	K(%rip), %ecx
	movq	tmin(%rip), %rax
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	DT(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	k(%rip), %edx
	movl	K(%rip), %ecx
	movl	p(%rip), %eax
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	DP(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L15:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L14:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	K(%rip), %eax
	addl	$1, %eax
	movl	%eax, K(%rip)
.L13:
	movl	N(%rip), %eax
	leal	-1(%rax), %edx
	movl	K(%rip), %eax
	cmpl	%eax, %edx
	jg	.L20
	movabsq	$1000000000000000000, %rax
	movq	%rax, tmin(%rip)
	movl	$0, k(%rip)
	jmp	.L21
.L23:
	movl	k(%rip), %edx
	movl	N(%rip), %eax
	leal	-1(%rax), %esi
	movl	k(%rip), %eax
	movl	$1, %edi
	movl	%eax, %ecx
	sall	%cl, %edi
	movl	%edi, %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	DT(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, t(%rip)
	movq	t(%rip), %rdx
	movq	tmin(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L22
	movq	t(%rip), %rax
	movq	%rax, tmin(%rip)
	movl	k(%rip), %eax
	movl	%eax, k0(%rip)
.L22:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L21:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L23
	movl	N(%rip), %eax
	leal	-1(%rax), %edx
	movl	k0(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	P
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	i
	.align 32
	.type	i, @object
	.size	i, 60
i:
	.zero	60
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 60
d:
	.zero	60
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 60
w:
	.zero	60
	.globl	W
	.align 32
	.type	W, @object
	.size	W, 131072
W:
	.zero	131072
	.globl	DP
	.align 32
	.type	DP, @object
	.size	DP, 1966080
DP:
	.zero	1966080
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	k0
	.align 4
	.type	k0, @object
	.size	k0, 4
k0:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	DT
	.align 32
	.type	DT, @object
	.size	DT, 3932160
DT:
	.zero	3932160
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.zero	8
	.globl	t0
	.align 8
	.type	t0, @object
	.size	t0, 8
t0:
	.zero	8
	.globl	t1
	.align 8
	.type	t1, @object
	.size	t1, 8
t1:
	.zero	8
	.globl	tmin
	.align 8
	.type	tmin, @object
	.size	tmin, 8
tmin:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d%c"
	.text
	.globl	P
	.type	P, @function
P:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	movl	-8(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L2
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	%eax, -8(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$15, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	DP(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	P
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	addl	%eax, -8(%rbp)
	movl	N(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -8(%rbp)
	jne	.L3
	movl	$10, %ecx
	jmp	.L4
.L3:
	movl	$32, %ecx
.L4:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	i(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %edx
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	P, .-P
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movl	%eax, N(%rip)
	movl	$0, k(%rip)
	jmp	.L6
.L7:
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rax, %rdx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	i(%rip), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L6:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	$0, K(%rip)
	jmp	.L8
.L12:
	movl	K(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	W(%rip), %rax
	movl	$70, (%rdx,%rax)
	movl	$0, k(%rip)
	jmp	.L9
.L11:
	movl	K(%rip), %edx
	movl	k(%rip), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L10
	movl	K(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	W(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	movl	%eax, %edx
	movl	K(%rip), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	W(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L10:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L9:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L11
	movl	K(%rip), %eax
	addl	$1, %eax
	movl	%eax, K(%rip)
.L8:
	movl	K(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L12
	movl	$1, K(%rip)
	jmp	.L13
.L20:
	movl	$0, k(%rip)
	jmp	.L14
.L19:
	movl	K(%rip), %edx
	movl	k(%rip), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L15
	movabsq	$1000000000000000000, %rax
	movq	%rax, tmin(%rip)
	movl	$0, k0(%rip)
	jmp	.L16
.L18:
	movl	K(%rip), %edx
	movl	k0(%rip), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L17
	movl	k0(%rip), %edx
	movl	K(%rip), %esi
	movl	k0(%rip), %eax
	movl	$1, %edi
	movl	%eax, %ecx
	sall	%cl, %edi
	movl	%edi, %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	DT(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, t0(%rip)
	movl	k0(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movslq	%eax, %rdx
	movl	K(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	W(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	imulq	%rdx, %rax
	movq	%rax, t1(%rip)
	movq	t1(%rip), %rdx
	movq	t0(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, t(%rip)
	movq	t(%rip), %rdx
	movq	tmin(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L17
	movq	t(%rip), %rax
	movq	%rax, tmin(%rip)
	movl	k0(%rip), %eax
	movl	%eax, p(%rip)
.L17:
	movl	k0(%rip), %eax
	addl	$1, %eax
	movl	%eax, k0(%rip)
.L16:
	movl	k0(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	k(%rip), %edx
	movl	K(%rip), %ecx
	movq	tmin(%rip), %rax
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	DT(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	k(%rip), %edx
	movl	K(%rip), %ecx
	movl	p(%rip), %eax
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	salq	$15, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	DP(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L15:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L14:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	K(%rip), %eax
	addl	$1, %eax
	movl	%eax, K(%rip)
.L13:
	movl	N(%rip), %eax
	leal	-1(%rax), %edx
	movl	K(%rip), %eax
	cmpl	%eax, %edx
	jg	.L20
	movabsq	$1000000000000000000, %rax
	movq	%rax, tmin(%rip)
	movl	$0, k(%rip)
	jmp	.L21
.L23:
	movl	k(%rip), %edx
	movl	N(%rip), %eax
	leal	-1(%rax), %esi
	movl	k(%rip), %eax
	movl	$1, %edi
	movl	%eax, %ecx
	sall	%cl, %edi
	movl	%edi, %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	salq	$15, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	DT(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, t(%rip)
	movq	t(%rip), %rdx
	movq	tmin(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L22
	movq	t(%rip), %rax
	movq	%rax, tmin(%rip)
	movl	k(%rip), %eax
	movl	%eax, k0(%rip)
.L22:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L21:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L23
	movl	N(%rip), %eax
	leal	-1(%rax), %edx
	movl	k0(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	P
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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:
