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

```c
D[100][100],F[100],I=1<<29,N,M,L,K,A,H,i,j,k;
W(){for(k=0;k<N;k++)for(i=0;i<N;i++)for(j=0;j<N;j++)if(D[i][j]>D[i][k]+D[k][j])D[i][j]=D[i][k]+D[k][j];}
main(l){for(;scanf("%d%d%d%d%d%d",&N,&M,&L,&K,&A,&H),N;){
	for(memset(D,i=0,sizeof(D));i<N;i++)for(j=i+1;j<N;j++)D[i][j]=D[j][i]=I;
	for(memset(F,i=0,sizeof(F));i<L;i++)scanf("%d",&j),F[j]=1;
	F[A]=F[H]=1;
	for(i=0;i<K;i++)scanf("%d%d%d",&j,&k,&l),D[j][k]=D[k][j]=l;
	W();
	for(i=0;i<N;i++)for(j=0;j<N;j++)if(!F[i]||!F[j]||D[i][j]>M)D[i][j]=I;
	W();
	l=D[A][H];
	printf(l==I?"Help!\n":"%d\n",2*l-(l<M?l:M));
}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	D
	.bss
	.align 32
	.type	D, @object
	.size	D, 40000
D:
	.zero	40000
	.globl	F
	.align 32
	.type	F, @object
	.size	F, 400
F:
	.zero	400
	.globl	I
	.data
	.align 4
	.type	I, @object
	.size	I, 4
I:
	.long	536870912
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	L
	.align 4
	.type	L, @object
	.size	L, 4
L:
	.zero	4
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	H
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.text
	.globl	W
	.type	W, @function
W:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, k(%rip)
	jmp	.L2
.L8:
	movl	$0, i(%rip)
	jmp	.L3
.L7:
	movl	$0, j(%rip)
	jmp	.L4
.L6:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rdi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jle	.L5
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	addl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L5:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L4:
	movl	j(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L6
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L2:
	movl	k(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L8
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	W, .-W
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"Help!\n"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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)
	jmp	.L10
.L27:
	movl	$0, i(%rip)
	movl	i(%rip), %eax
	movl	$40000, %edx
	movl	%eax, %esi
	leaq	D(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L11
.L14:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
	jmp	.L12
.L13:
	movl	j(%rip), %edx
	movl	i(%rip), %ecx
	movl	I(%rip), %esi
	movslq	%ecx, %r8
	movslq	%edx, %rdi
	movq	%rdi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdi
	leaq	D(%rip), %rax
	movl	%esi, (%rdi,%rax)
	movl	i(%rip), %esi
	movl	j(%rip), %edi
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edi, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	D(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L12:
	movl	j(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L13
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L11:
	movl	i(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L14
	movl	$0, i(%rip)
	movl	i(%rip), %eax
	movl	$400, %edx
	movl	%eax, %esi
	leaq	F(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L15
.L16:
	leaq	j(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L15:
	movl	i(%rip), %edx
	movl	L(%rip), %eax
	cmpl	%eax, %edx
	jl	.L16
	movl	H(%rip), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	F(%rip), %rdx
	movl	$1, (%rcx,%rdx)
	movl	A(%rip), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	F(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	F(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, i(%rip)
	jmp	.L17
.L18:
	leaq	-4(%rbp), %rax
	movq	%rax, %rcx
	leaq	k(%rip), %rax
	movq	%rax, %rdx
	leaq	j(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	k(%rip), %edx
	movl	j(%rip), %ecx
	movl	-4(%rbp), %esi
	movslq	%ecx, %r8
	movslq	%edx, %rdi
	movq	%rdi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdi
	leaq	D(%rip), %rax
	movl	%esi, (%rdi,%rax)
	movl	j(%rip), %esi
	movl	k(%rip), %edi
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edi, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	D(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L17:
	movl	i(%rip), %edx
	movl	K(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	$0, %eax
	call	W
	movl	$0, i(%rip)
	jmp	.L19
.L24:
	movl	$0, j(%rip)
	jmp	.L20
.L23:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L21
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L21
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	M(%rip), %eax
	cmpl	%eax, %edx
	jle	.L22
.L21:
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	I(%rip), %edx
	movslq	%ecx, %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	D(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L22:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L20:
	movl	j(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L23
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L19:
	movl	i(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L24
	movl	$0, %eax
	call	W
	movl	A(%rip), %eax
	movl	H(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	leal	(%rax,%rax), %ecx
	movl	M(%rip), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movl	-4(%rbp), %ecx
	movl	I(%rip), %eax
	cmpl	%eax, %ecx
	jne	.L25
	leaq	.LC2(%rip), %rax
	jmp	.L26
.L25:
	leaq	.LC3(%rip), %rax
.L26:
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	subq	$8, %rsp
	leaq	H(%rip), %rax
	pushq	%rax
	leaq	A(%rip), %r9
	leaq	K(%rip), %r8
	leaq	L(%rip), %rax
	movq	%rax, %rcx
	leaq	M(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addq	$16, %rsp
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L27
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	W
	.type	W, @function
W:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	N(%rip), %r13d
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movl	$0, k(%rip)
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	testl	%r13d, %r13d
	jle	.L2
	movl	%r13d, %r11d
	leaq	D(%rip), %r12
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	movq	%r11, %rbx
	imulq	$-400, %r11, %r11
	leal	-1(%r13), %eax
	negq	%rbx
	leaq	4(%r12), %rdx
	salq	$2, %rbx
	leaq	(%rdx,%rax,4), %rbp
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rdi
	movq	%rbp, %r8
	xorl	%esi, %esi
	subq	%r10, %rdi
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%rdi,%r10), %rax
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%rax,%rsi), %rcx
	movl	(%rdi), %edx
	addl	(%rcx,%r9), %edx
	cmpl	%edx, (%rax)
	jle	.L3
	movl	%edx, (%rax)
.L3:
	addq	$4, %rax
	cmpq	%r8, %rax
	jne	.L4
	subq	$400, %rsi
	leaq	400(%rax), %r8
	addq	$400, %rdi
	cmpq	%r11, %rsi
	jne	.L5
	subq	$4, %r10
	addq	$400, %r9
	cmpq	%rbx, %r10
	jne	.L6
	movl	%r13d, i(%rip)
	movl	%r13d, k(%rip)
	movl	%r13d, j(%rip)
.L2:
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	W, .-W
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Help!\n"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d%d%d"
.LC4:
	.string	"%d%d%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	F(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	D(%rip), %r14
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 28(%rsp)
	.p2align 4,,10
	.p2align 3
.L13:
	subq	$8, %rsp
	.cfi_def_cfa_offset 104
	leaq	H(%rip), %rax
	leaq	M(%rip), %rdx
	pushq	%rax
	.cfi_def_cfa_offset 112
	leaq	A(%rip), %r9
	xorl	%eax, %eax
	leaq	K(%rip), %r8
	leaq	L(%rip), %rcx
	leaq	N(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	scanf@PLT
	movl	N(%rip), %ebx
	popq	%rax
	.cfi_def_cfa_offset 104
	popq	%rdx
	.cfi_def_cfa_offset 96
	testl	%ebx, %ebx
	je	.L67
	xorl	%esi, %esi
	movl	$40000, %edx
	movq	%r14, %rdi
	call	memset@PLT
	testl	%ebx, %ebx
	jle	.L19
	movl	I(%rip), %edx
	cmpl	$1, %ebx
	je	.L68
	leaq	400+D(%rip), %rax
	movd	%edx, %xmm2
	movl	$1, %esi
	movl	$4, %ebp
	movq	%rax, 8(%rsp)
	leaq	-400(%rax), %r12
	pshufd	$0, %xmm2, %xmm0
	leaq	-396(%rax), %r13
	movslq	%ebx, %rax
	movl	$400, %r11d
	movq	%rax, 16(%rsp)
	leal	-1(%rbx), %eax
	movl	%eax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%ebx, %r8d
	movl	$4, %r9d
	leal	-1(%rsi), %r10d
	movl	%esi, %edi
	subl	%esi, %r8d
	movl	%r8d, %eax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rax,4), %rax
	salq	$4, %rax
	subq	$396, %rax
	cmpl	%ebx, %esi
	cmovge	%r9, %rax
	addq	%r11, %rax
	cmpq	%rbp, %rax
	setle	%al
	cmpl	%ebx, %esi
	cmovge	%r9, %rcx
	addq	%rbp, %rcx
	cmpq	%r11, %rcx
	setle	%cl
	orb	%al, %cl
	je	.L42
	movl	24(%rsp), %eax
	subl	%esi, %eax
	cmpl	$8, %eax
	seta	%cl
	cmpl	%esi, %ebx
	setg	%al
	testb	%al, %cl
	je	.L42
	cmpl	%ebx, %esi
	movl	$1, %eax
	movq	%r13, %rcx
	cmovge	%eax, %r8d
	movl	%r8d, %eax
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%r13,%rax), %r9
	movq	8(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%edx, (%rax)
	addq	$16, %rcx
	addq	$1600, %rax
	movl	%edx, -1200(%rax)
	movl	%edx, -800(%rax)
	movl	%edx, -400(%rax)
	movups	%xmm0, -16(%rcx)
	cmpq	%r9, %rcx
	jne	.L21
	movl	%r8d, %eax
	andl	$-4, %eax
	addl	%eax, %edi
	cmpl	%eax, %r8d
	je	.L23
	movslq	%edi, %rax
	movslq	%r10d, %r10
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r10,%rcx,4), %rcx
	movl	%edx, (%r14,%rcx,4)
	leaq	(%r10,%r10,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	salq	$2, %rcx
	addq	%rcx, %rax
	movl	%edx, (%r14,%rax,4)
	leal	1(%rdi), %eax
	cmpl	%eax, %ebx
	jle	.L23
	cltq
	addl	$2, %edi
	leaq	(%rax,%rax,4), %r8
	addq	%rcx, %rax
	leaq	(%r8,%r8,4), %r8
	leaq	(%r10,%r8,4), %r8
	movl	%edx, (%r14,%r8,4)
	movl	%edx, (%r14,%rax,4)
	cmpl	%edi, %ebx
	jle	.L23
	movslq	%edi, %rdi
	leaq	(%rdi,%rdi,4), %rax
	addq	%rdi, %rcx
	leaq	(%rax,%rax,4), %rax
	leaq	(%r10,%rax,4), %rax
	movl	%edx, (%r14,%rax,4)
	movl	%edx, (%r14,%rcx,4)
.L23:
	addq	$404, 8(%rsp)
	addq	$404, %r11
	addq	$1, %rsi
	addq	$404, %rbp
	addq	$400, %r12
	addq	$404, %r13
	cmpq	16(%rsp), %rsi
	jne	.L17
	movl	%ebx, j(%rip)
.L19:
	xorl	%eax, %eax
	movl	$50, %ecx
	movq	%r15, %rdi
	movl	$0, i(%rip)
	rep stosq
	movl	L(%rip), %eax
	leaq	j(%rip), %rbx
	leaq	.LC2(%rip), %rbp
	testl	%eax, %eax
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L24:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	scanf@PLT
	movslq	j(%rip), %rax
	movl	$1, (%r15,%rax,4)
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	L(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L24
.L27:
	movslq	H(%rip), %rax
	leaq	j(%rip), %rbx
	movl	$0, i(%rip)
	leaq	28(%rsp), %r13
	leaq	k(%rip), %r12
	leaq	.LC3(%rip), %rbp
	movl	$1, (%r15,%rax,4)
	movslq	A(%rip), %rax
	movl	$1, (%r15,%rax,4)
	movl	K(%rip), %eax
	testl	%eax, %eax
	jle	.L26
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	call	scanf@PLT
	movslq	k(%rip), %rax
	movslq	j(%rip), %rdx
	movl	28(%rsp), %ecx
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%rdx,%rsi,4), %rsi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	movl	%ecx, (%r14,%rsi,4)
	leaq	(%rax,%rdx,4), %rax
	movl	%ecx, (%r14,%rax,4)
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	K(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L25
.L26:
	xorl	%eax, %eax
	call	W
	movl	N(%rip), %r9d
	movl	$0, i(%rip)
	testl	%r9d, %r9d
	jle	.L29
	movl	%r9d, %eax
	movl	I(%rip), %esi
	leal	-1(%r9), %edx
	movl	%r9d, %ebp
	shrl	$2, %eax
	movl	M(%rip), %r10d
	movq	%rdx, %r12
	movl	%r9d, %r11d
	leal	-1(%rax), %ebx
	movd	%esi, %xmm1
	leaq	4+F(%rip), %rax
	xorl	%ecx, %ecx
	addq	$1, %rbx
	leaq	(%rax,%rdx,4), %rdi
	pshufd	$0, %xmm1, %xmm0
	andl	$-4, %ebp
	leaq	D(%rip), %r8
	salq	$4, %rbx
	.p2align 4,,10
	.p2align 3
.L39:
	movl	(%r15,%rcx,4), %eax
	movslq	%ecx, %rdx
	testl	%eax, %eax
	je	.L30
	movq	%r8, %rdx
	movq	%r15, %rax
	.p2align 4,,10
	.p2align 3
.L34:
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	je	.L33
	cmpl	(%rdx), %r10d
	jge	.L32
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%esi, (%rdx)
.L32:
	addq	$4, %rax
	addq	$4, %rdx
	cmpq	%rdi, %rax
	jne	.L34
.L35:
	addq	$1, %rcx
	addq	$400, %r8
	cmpq	%r11, %rcx
	jne	.L39
.L69:
	movl	%r9d, j(%rip)
	movl	%r9d, i(%rip)
.L29:
	xorl	%eax, %eax
	call	W
	movslq	A(%rip), %rax
	movslq	H(%rip), %rdx
	leaq	.LC0(%rip), %rdi
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rax
	movl	M(%rip), %edx
	movl	(%r14,%rax,4), %eax
	cmpl	%edx, %eax
	leal	(%rax,%rax), %esi
	movl	%eax, 28(%rsp)
	cmovle	%eax, %edx
	subl	%edx, %esi
	cmpl	I(%rip), %eax
	leaq	.LC1(%rip), %rax
	cmovne	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	$2, %r12d
	jbe	.L36
	leaq	(%rbx,%r8), %r13
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L37:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%r13, %rax
	jne	.L37
	cmpl	%r9d, %ebp
	je	.L35
	movl	%ebp, %eax
.L36:
	leaq	(%rdx,%rdx,4), %rdx
	movslq	%eax, %r13
	leaq	(%rdx,%rdx,4), %rdx
	salq	$2, %rdx
	addq	%rdx, %r13
	movl	%esi, (%r14,%r13,4)
	leal	1(%rax), %r13d
	cmpl	%r13d, %r9d
	jle	.L35
	movslq	%r13d, %r13
	addl	$2, %eax
	addq	%rdx, %r13
	movl	%esi, (%r14,%r13,4)
	cmpl	%eax, %r9d
	jle	.L35
	cltq
	addq	$1, %rcx
	addq	$400, %r8
	addq	%rax, %rdx
	movl	%esi, (%r14,%rdx,4)
	cmpq	%r11, %rcx
	jne	.L39
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L42:
	movq	8(%rsp), %rcx
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%edx, (%rcx)
	addq	$400, %rcx
	movl	%edx, (%r12,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %ebx
	jg	.L20
	jmp	.L23
.L67:
	xorl	%edi, %edi
	call	exit@PLT
.L68:
	movl	$1, j(%rip)
	jmp	.L19
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	k
	.bss
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	H
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.globl	L
	.align 4
	.type	L, @object
	.size	L, 4
L:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	I
	.data
	.align 4
	.type	I, @object
	.size	I, 4
I:
	.long	536870912
	.globl	F
	.bss
	.align 32
	.type	F, @object
	.size	F, 400
F:
	.zero	400
	.globl	D
	.align 32
	.type	D, @object
	.size	D, 40000
D:
	.zero	40000
	.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
	.p2align 4
	.globl	W
	.type	W, @function
W:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	N(%rip), %r13d
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movl	$0, k(%rip)
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	testl	%r13d, %r13d
	jle	.L2
	movl	%r13d, %r11d
	leaq	D(%rip), %r12
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	movq	%r11, %rbx
	imulq	$-400, %r11, %r11
	leal	-1(%r13), %eax
	negq	%rbx
	leaq	4(%r12), %rdx
	salq	$2, %rbx
	leaq	(%rdx,%rax,4), %rbp
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rdi
	movq	%rbp, %r8
	xorl	%esi, %esi
	subq	%r10, %rdi
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%rdi,%r10), %rax
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%rax,%rsi), %rcx
	movl	(%rdi), %edx
	addl	(%rcx,%r9), %edx
	cmpl	%edx, (%rax)
	jle	.L3
	movl	%edx, (%rax)
.L3:
	addq	$4, %rax
	cmpq	%r8, %rax
	jne	.L4
	subq	$400, %rsi
	leaq	400(%rax), %r8
	addq	$400, %rdi
	cmpq	%r11, %rsi
	jne	.L5
	subq	$4, %r10
	addq	$400, %r9
	cmpq	%rbx, %r10
	jne	.L6
	movl	%r13d, i(%rip)
	movl	%r13d, k(%rip)
	movl	%r13d, j(%rip)
.L2:
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	W, .-W
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Help!\n"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d%d%d"
.LC4:
	.string	"%d%d%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	F(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	D(%rip), %r14
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 28(%rsp)
	.p2align 4,,10
	.p2align 3
.L13:
	subq	$8, %rsp
	.cfi_def_cfa_offset 104
	leaq	H(%rip), %rax
	leaq	M(%rip), %rdx
	pushq	%rax
	.cfi_def_cfa_offset 112
	leaq	A(%rip), %r9
	xorl	%eax, %eax
	leaq	K(%rip), %r8
	leaq	L(%rip), %rcx
	leaq	N(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	scanf@PLT
	movl	N(%rip), %ebx
	popq	%rax
	.cfi_def_cfa_offset 104
	popq	%rdx
	.cfi_def_cfa_offset 96
	testl	%ebx, %ebx
	je	.L67
	xorl	%esi, %esi
	movl	$40000, %edx
	movq	%r14, %rdi
	call	memset@PLT
	testl	%ebx, %ebx
	jle	.L19
	movl	I(%rip), %edx
	cmpl	$1, %ebx
	je	.L68
	leaq	400+D(%rip), %rax
	movd	%edx, %xmm2
	movl	$1, %esi
	movl	$4, %ebp
	movq	%rax, 8(%rsp)
	leaq	-400(%rax), %r12
	pshufd	$0, %xmm2, %xmm0
	leaq	-396(%rax), %r13
	movslq	%ebx, %rax
	movl	$400, %r11d
	movq	%rax, 16(%rsp)
	leal	-1(%rbx), %eax
	movl	%eax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%ebx, %r8d
	movl	$4, %r9d
	leal	-1(%rsi), %r10d
	movl	%esi, %edi
	subl	%esi, %r8d
	movl	%r8d, %eax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rax,4), %rax
	salq	$4, %rax
	subq	$396, %rax
	cmpl	%ebx, %esi
	cmovge	%r9, %rax
	addq	%r11, %rax
	cmpq	%rbp, %rax
	setle	%al
	cmpl	%ebx, %esi
	cmovge	%r9, %rcx
	addq	%rbp, %rcx
	cmpq	%r11, %rcx
	setle	%cl
	orb	%al, %cl
	je	.L42
	movl	24(%rsp), %eax
	subl	%esi, %eax
	cmpl	$8, %eax
	seta	%cl
	cmpl	%esi, %ebx
	setg	%al
	testb	%al, %cl
	je	.L42
	cmpl	%ebx, %esi
	movl	$1, %eax
	movq	%r13, %rcx
	cmovge	%eax, %r8d
	movl	%r8d, %eax
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%r13,%rax), %r9
	movq	8(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%edx, (%rax)
	addq	$16, %rcx
	addq	$1600, %rax
	movl	%edx, -1200(%rax)
	movl	%edx, -800(%rax)
	movl	%edx, -400(%rax)
	movups	%xmm0, -16(%rcx)
	cmpq	%r9, %rcx
	jne	.L21
	movl	%r8d, %eax
	andl	$-4, %eax
	addl	%eax, %edi
	cmpl	%eax, %r8d
	je	.L23
	movslq	%edi, %rax
	movslq	%r10d, %r10
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r10,%rcx,4), %rcx
	movl	%edx, (%r14,%rcx,4)
	leaq	(%r10,%r10,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	salq	$2, %rcx
	addq	%rcx, %rax
	movl	%edx, (%r14,%rax,4)
	leal	1(%rdi), %eax
	cmpl	%eax, %ebx
	jle	.L23
	cltq
	addl	$2, %edi
	leaq	(%rax,%rax,4), %r8
	addq	%rcx, %rax
	leaq	(%r8,%r8,4), %r8
	leaq	(%r10,%r8,4), %r8
	movl	%edx, (%r14,%r8,4)
	movl	%edx, (%r14,%rax,4)
	cmpl	%edi, %ebx
	jle	.L23
	movslq	%edi, %rdi
	leaq	(%rdi,%rdi,4), %rax
	addq	%rdi, %rcx
	leaq	(%rax,%rax,4), %rax
	leaq	(%r10,%rax,4), %rax
	movl	%edx, (%r14,%rax,4)
	movl	%edx, (%r14,%rcx,4)
.L23:
	addq	$404, 8(%rsp)
	addq	$404, %r11
	addq	$1, %rsi
	addq	$404, %rbp
	addq	$400, %r12
	addq	$404, %r13
	cmpq	16(%rsp), %rsi
	jne	.L17
	movl	%ebx, j(%rip)
.L19:
	xorl	%eax, %eax
	movl	$50, %ecx
	movq	%r15, %rdi
	movl	$0, i(%rip)
	rep stosq
	movl	L(%rip), %eax
	leaq	j(%rip), %rbx
	leaq	.LC2(%rip), %rbp
	testl	%eax, %eax
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L24:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	scanf@PLT
	movslq	j(%rip), %rax
	movl	$1, (%r15,%rax,4)
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	L(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L24
.L27:
	movslq	H(%rip), %rax
	leaq	j(%rip), %rbx
	movl	$0, i(%rip)
	leaq	28(%rsp), %r13
	leaq	k(%rip), %r12
	leaq	.LC3(%rip), %rbp
	movl	$1, (%r15,%rax,4)
	movslq	A(%rip), %rax
	movl	$1, (%r15,%rax,4)
	movl	K(%rip), %eax
	testl	%eax, %eax
	jle	.L26
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	call	scanf@PLT
	movslq	k(%rip), %rax
	movslq	j(%rip), %rdx
	movl	28(%rsp), %ecx
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%rdx,%rsi,4), %rsi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	movl	%ecx, (%r14,%rsi,4)
	leaq	(%rax,%rdx,4), %rax
	movl	%ecx, (%r14,%rax,4)
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	K(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L25
.L26:
	xorl	%eax, %eax
	call	W
	movl	N(%rip), %r9d
	movl	$0, i(%rip)
	testl	%r9d, %r9d
	jle	.L29
	movl	%r9d, %eax
	movl	I(%rip), %esi
	leal	-1(%r9), %edx
	movl	%r9d, %ebp
	shrl	$2, %eax
	movl	M(%rip), %r10d
	movq	%rdx, %r12
	movl	%r9d, %r11d
	leal	-1(%rax), %ebx
	movd	%esi, %xmm1
	leaq	4+F(%rip), %rax
	xorl	%ecx, %ecx
	addq	$1, %rbx
	leaq	(%rax,%rdx,4), %rdi
	pshufd	$0, %xmm1, %xmm0
	andl	$-4, %ebp
	leaq	D(%rip), %r8
	salq	$4, %rbx
	.p2align 4,,10
	.p2align 3
.L39:
	movl	(%r15,%rcx,4), %eax
	movslq	%ecx, %rdx
	testl	%eax, %eax
	je	.L30
	movq	%r8, %rdx
	movq	%r15, %rax
	.p2align 4,,10
	.p2align 3
.L34:
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	je	.L33
	cmpl	(%rdx), %r10d
	jge	.L32
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%esi, (%rdx)
.L32:
	addq	$4, %rax
	addq	$4, %rdx
	cmpq	%rdi, %rax
	jne	.L34
.L35:
	addq	$1, %rcx
	addq	$400, %r8
	cmpq	%r11, %rcx
	jne	.L39
.L69:
	movl	%r9d, j(%rip)
	movl	%r9d, i(%rip)
.L29:
	xorl	%eax, %eax
	call	W
	movslq	A(%rip), %rax
	movslq	H(%rip), %rdx
	leaq	.LC0(%rip), %rdi
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rax
	movl	M(%rip), %edx
	movl	(%r14,%rax,4), %eax
	cmpl	%edx, %eax
	leal	(%rax,%rax), %esi
	movl	%eax, 28(%rsp)
	cmovle	%eax, %edx
	subl	%edx, %esi
	cmpl	I(%rip), %eax
	leaq	.LC1(%rip), %rax
	cmovne	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	$2, %r12d
	jbe	.L36
	leaq	(%rbx,%r8), %r13
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L37:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%r13, %rax
	jne	.L37
	cmpl	%r9d, %ebp
	je	.L35
	movl	%ebp, %eax
.L36:
	leaq	(%rdx,%rdx,4), %rdx
	movslq	%eax, %r13
	leaq	(%rdx,%rdx,4), %rdx
	salq	$2, %rdx
	addq	%rdx, %r13
	movl	%esi, (%r14,%r13,4)
	leal	1(%rax), %r13d
	cmpl	%r13d, %r9d
	jle	.L35
	movslq	%r13d, %r13
	addl	$2, %eax
	addq	%rdx, %r13
	movl	%esi, (%r14,%r13,4)
	cmpl	%eax, %r9d
	jle	.L35
	cltq
	addq	$1, %rcx
	addq	$400, %r8
	addq	%rax, %rdx
	movl	%esi, (%r14,%rdx,4)
	cmpq	%r11, %rcx
	jne	.L39
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L42:
	movq	8(%rsp), %rcx
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%edx, (%rcx)
	addq	$400, %rcx
	movl	%edx, (%r12,%rax,4)
	addq	$1, %rax
	cmpl	%eax, %ebx
	jg	.L20
	jmp	.L23
.L67:
	xorl	%edi, %edi
	call	exit@PLT
.L68:
	movl	$1, j(%rip)
	jmp	.L19
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	k
	.bss
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	H
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.globl	L
	.align 4
	.type	L, @object
	.size	L, 4
L:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	I
	.data
	.align 4
	.type	I, @object
	.size	I, 4
I:
	.long	536870912
	.globl	F
	.bss
	.align 32
	.type	F, @object
	.size	F, 400
F:
	.zero	400
	.globl	D
	.align 32
	.type	D, @object
	.size	D, 40000
D:
	.zero	40000
	.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:

D[100][100],F[100],I=1<<29,N,M,L,K,A,H,i,j,k;
W(){for(k=0;k<N;k++)for(i=0;i<N;i++)for(j=0;j<N;j++)if(D[i][j]>D[i][k]+D[k][j])D[i][j]=D[i][k]+D[k][j];}
main(l){for(;scanf("%d%d%d%d%d%d",&N,&M,&L,&K,&A,&H),N;){
	for(memset(D,i=0,sizeof(D));i<N;i++)for(j=i+1;j<N;j++)D[i][j]=D[j][i]=I;
	for(memset(F,i=0,sizeof(F));i<L;i++)scanf("%d",&j),F[j]=1;
	F[A]=F[H]=1;
	for(i=0;i<K;i++)scanf("%d%d%d",&j,&k,&l),D[j][k]=D[k][j]=l;
	W();
	for(i=0;i<N;i++)for(j=0;j<N;j++)if(!F[i]||!F[j]||D[i][j]>M)D[i][j]=I;
	W();
	l=D[A][H];
	printf(l==I?"Help!\n":"%d\n",2*l-(l<M?l:M));
}exit(0);}
2 1 0 1 0 1
0 1 2
3 1 1 2 0 1
2
0 2 1
1 2 1
3 2 1 2 0 1
2
0 2 1
1 2 1
4 4 1 4 1 3
2
0 1 2
1 2 4
0 2 1
3 0 3
5 3 2 6 0 3
1 2
2 1 2
1 0 1
3 4 1
2 4 1
4 1 2
2 0 2
5 4 2 6 0 3
1 2
4 2 4
2 2 2
4 3 1
0 1 5
1 4 2
2 0 3
0 0 0 0 0 0
 2 1 0 1 0 1
0 1 2
3 1 1 2 0 1
2
0 2 1
1 2 1
3 4 1 2 0 1
2
0 2 1
1 2 1
4 4 1 4 1 3
0
0 1 2
1 2 4
0 2 1
3 0 3
5 3 2 6 0 3
1 2
2 1 2
1 1 1
3 4 1
2 4 1
4 1 3
2 0 2
5 4 2 6 0 3
1 2
4 2 4
2 2 4
4 3 1
0 0 5
1 4 2
2 0 3
0 0 0 0 0 0
 2 1 0 1 0 1
0 1 2
3 1 1 2 0 1
2
0 2 1
1 2 1
3 4 1 2 0 1
2
0 2 1
1 2 1
4 6 1 4 1 3
0
0 1 2
1 2 4
0 2 1
3 0 3
5 3 2 6 0 3
1 2
2 1 2
1 1 2
3 4 1
2 4 1
1 1 3
2 0 2
5 4 2 6 0 3
1 2
4 2 8
2 2 4
4 3 1
0 0 5
1 4 2
2 0 3
0 0 0 0 0 0
 2 1 0 1 0 1
0 1 2
3 1 1 2 0 1
2
0 2 1
1 2 1
3 2 1 2 0 1
2
0 2 1
1 2 1
4 4 1 4 1 3
2
1 1 2
1 2 4
0 2 1
3 0 3
5 3 2 6 0 3
1 2
2 1 2
1 0 1
3 4 1
2 4 1
4 1 2
2 0 2
5 4 2 6 0 3
1 2
4 2 4
2 1 2
4 3 1
0 1 5
1 4 2
2 0 3
0 0 0 0 0 0
 2 1 0 1 0 1
0 1 2
3 1 1 2 0 1
2
0 2 1
1 2 1
3 4 1 2 0 1
2
0 2 1
1 2 1
4 4 1 4 1 3
2
0 1 2
1 2 4
0 2 1
3 0 3
5 3 2 6 0 3
1 2
2 1 2
1 1 1
3 5 1
2 4 1
4 1 3
2 0 2
5 4 2 6 0 3
1 2
4 2 4
2 2 4
4 3 1
0 0 5
1 4 2
2 0 3
0 0 0 0 0 0
 2 2 0 1 0 1
0 1 2
3 1 1 2 0 1
2
0 2 1
1 2 1
3 4 1 2 0 1
2
0 2 1
1 2 1
4 4 1 4 1 3
0
0 1 2
1 2 4
0 2 1
3 0 3
5 3 2 6 0 3
1 2
2 1 2
1 1 1
3 4 1
2 4 1
4 1 3
2 0 2
5 4 2 6 0 3
1 2
4 2 4
2 2 4
4 3 1
0 0 5
1 4 2
2 0 3
0 0 0 0 0 0
 2 1 0 1 0 1
0 1 2
3 1 1 2 0 1
2
0 2 1
2 2 1
3 2 1 2 0 1
2
0 2 1
1 2 1
4 4 1 4 1 3
2
1 1 2
1 2 4
0 2 1
3 0 3
5 3 2 6 0 3
1 2
2 1 2
1 0 1
3 4 1
2 4 1
4 1 2
2 0 2
5 4 2 6 0 3
1 2
4 2 4
2 1 2
4 3 1
0 1 5
1 4 2
2 0 3
0 0 0 0 0 0
 2 1 0 1 0 1
0 1 2
3 1 1 2 0 1
2
1 2 1
1 2 1
3 2 1 2 0 1
2
0 2 1
1 2 1
4 4 1 4 1 3
2
0 1 2
1 2 4
0 2 1
3 0 3
5 3 2 6 0 3
1 2
2 1 2
1 0 1
3 4 1
2 4 1
4 1 2
2 0 2
5 1 2 6 0 3
1 2
4 2 4
2 2 2
4 3 1
0 0 5
1 4 2
2 0 3
0 0 0 0 0 0
 2 1 0 1 0 1
0 1 3
3 1 1 2 0 1
2
0 2 1
1 2 1
3 4 1 2 0 1
2
0 2 1
1 2 2
4 4 1 4 1 3
0
0 1 2
1 2 4
0 2 1
3 0 3
5 3 2 6 0 3
1 2
2 1 2
1 1 2
3 4 1
2 4 1
1 1 3
2 0 2
5 4 2 6 0 3
1 2
4 2 8
2 2 4
4 3 1
0 0 5
1 4 2
2 0 3
0 0 0 0 0 0
 2 1 0 1 0 1
0 1 2
3 1 1 2 0 1
2
0 2 1
2 2 1
3 2 1 2 0 1
2
0 2 1
1 2 1
4 4 1 4 1 3
2
1 1 2
1 4 4
0 2 1
3 0 3
5 3 2 6 0 3
1 2
2 1 2
1 0 1
3 4 1
2 4 1
4 1 2
2 0 2
5 4 2 6 0 3
1 2
4 2 4
2 1 2
4 3 1
0 1 5
1 4 2
2 0 3
0 0 0 0 0 0

Help!
3
2
10
5
Help!
 Help!
3
2
6
5
Help!
 Help!
3
2
5
5
Help!
 Help!
3
2
12
5
12
 Help!
3
2
10
Help!
Help!
 2
3
2
6
5
Help!
 Help!
Help!
2
12
5
12
 Help!
Help!
2
10
5
Help!
 Help!
3
3
6
5
Help!
 Help!
Help!
2
Help!
5
12

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

```c
D[100][100],F[100],I=1<<29,N,M,L,K,A,H,i,j,k;
W(){for(k=0;k<N;k++)for(i=0;i<N;i++)for(j=0;j<N;j++)if(D[i][j]>D[i][k]+D[k][j])D[i][j]=D[i][k]+D[k][j];}
main(l){for(;scanf("%d%d%d%d%d%d",&N,&M,&L,&K,&A,&H),N;){
	for(memset(D,i=0,sizeof(D));i<N;i++)for(j=i+1;j<N;j++)D[i][j]=D[j][i]=I;
	for(memset(F,i=0,sizeof(F));i<L;i++)scanf("%d",&j),F[j]=1;
	F[A]=F[H]=1;
	for(i=0;i<K;i++)scanf("%d%d%d",&j,&k,&l),D[j][k]=D[k][j]=l;
	W();
	for(i=0;i<N;i++)for(j=0;j<N;j++)if(!F[i]||!F[j]||D[i][j]>M)D[i][j]=I;
	W();
	l=D[A][H];
	printf(l==I?"Help!\n":"%d\n",2*l-(l<M?l:M));
}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	D
	.bss
	.align 32
	.type	D, @object
	.size	D, 40000
D:
	.zero	40000
	.globl	F
	.align 32
	.type	F, @object
	.size	F, 400
F:
	.zero	400
	.globl	I
	.data
	.align 4
	.type	I, @object
	.size	I, 4
I:
	.long	536870912
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	L
	.align 4
	.type	L, @object
	.size	L, 4
L:
	.zero	4
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	H
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.text
	.globl	W
	.type	W, @function
W:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, k(%rip)
	jmp	.L2
.L8:
	movl	$0, i(%rip)
	jmp	.L3
.L7:
	movl	$0, j(%rip)
	jmp	.L4
.L6:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rdi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jle	.L5
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	addl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L5:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L4:
	movl	j(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L6
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L2:
	movl	k(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L8
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	W, .-W
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"Help!\n"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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)
	jmp	.L10
.L27:
	movl	$0, i(%rip)
	movl	i(%rip), %eax
	movl	$40000, %edx
	movl	%eax, %esi
	leaq	D(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L11
.L14:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
	jmp	.L12
.L13:
	movl	j(%rip), %edx
	movl	i(%rip), %ecx
	movl	I(%rip), %esi
	movslq	%ecx, %r8
	movslq	%edx, %rdi
	movq	%rdi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdi
	leaq	D(%rip), %rax
	movl	%esi, (%rdi,%rax)
	movl	i(%rip), %esi
	movl	j(%rip), %edi
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edi, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	D(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L12:
	movl	j(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L13
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L11:
	movl	i(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L14
	movl	$0, i(%rip)
	movl	i(%rip), %eax
	movl	$400, %edx
	movl	%eax, %esi
	leaq	F(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L15
.L16:
	leaq	j(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L15:
	movl	i(%rip), %edx
	movl	L(%rip), %eax
	cmpl	%eax, %edx
	jl	.L16
	movl	H(%rip), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	F(%rip), %rdx
	movl	$1, (%rcx,%rdx)
	movl	A(%rip), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	F(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	F(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, i(%rip)
	jmp	.L17
.L18:
	leaq	-4(%rbp), %rax
	movq	%rax, %rcx
	leaq	k(%rip), %rax
	movq	%rax, %rdx
	leaq	j(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	k(%rip), %edx
	movl	j(%rip), %ecx
	movl	-4(%rbp), %esi
	movslq	%ecx, %r8
	movslq	%edx, %rdi
	movq	%rdi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdi
	leaq	D(%rip), %rax
	movl	%esi, (%rdi,%rax)
	movl	j(%rip), %esi
	movl	k(%rip), %edi
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edi, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	D(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L17:
	movl	i(%rip), %edx
	movl	K(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	$0, %eax
	call	W
	movl	$0, i(%rip)
	jmp	.L19
.L24:
	movl	$0, j(%rip)
	jmp	.L20
.L23:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L21
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L21
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	M(%rip), %eax
	cmpl	%eax, %edx
	jle	.L22
.L21:
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	I(%rip), %edx
	movslq	%ecx, %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	D(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L22:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L20:
	movl	j(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L23
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L19:
	movl	i(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L24
	movl	$0, %eax
	call	W
	movl	A(%rip), %eax
	movl	H(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	leal	(%rax,%rax), %ecx
	movl	M(%rip), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movl	-4(%rbp), %ecx
	movl	I(%rip), %eax
	cmpl	%eax, %ecx
	jne	.L25
	leaq	.LC2(%rip), %rax
	jmp	.L26
.L25:
	leaq	.LC3(%rip), %rax
.L26:
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	subq	$8, %rsp
	leaq	H(%rip), %rax
	pushq	%rax
	leaq	A(%rip), %r9
	leaq	K(%rip), %r8
	leaq	L(%rip), %rax
	movq	%rax, %rcx
	leaq	M(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addq	$16, %rsp
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L27
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.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	D
	.bss
	.align 32
	.type	D, @object
	.size	D, 40000
D:
	.zero	40000
	.globl	F
	.align 32
	.type	F, @object
	.size	F, 400
F:
	.zero	400
	.globl	I
	.data
	.align 4
	.type	I, @object
	.size	I, 4
I:
	.long	536870912
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	L
	.align 4
	.type	L, @object
	.size	L, 4
L:
	.zero	4
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	H
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.text
	.globl	W
	.type	W, @function
W:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, k(%rip)
	jmp	.L2
.L8:
	movl	$0, i(%rip)
	jmp	.L3
.L7:
	movl	$0, j(%rip)
	jmp	.L4
.L6:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rdi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jle	.L5
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	addl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L5:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L4:
	movl	j(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L6
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L2:
	movl	k(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L8
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	W, .-W
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"Help!\n"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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)
	jmp	.L10
.L27:
	movl	$0, i(%rip)
	movl	i(%rip), %eax
	movl	$40000, %edx
	movl	%eax, %esi
	leaq	D(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L11
.L14:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
	jmp	.L12
.L13:
	movl	j(%rip), %edx
	movl	i(%rip), %ecx
	movl	I(%rip), %esi
	movslq	%ecx, %r8
	movslq	%edx, %rdi
	movq	%rdi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdi
	leaq	D(%rip), %rax
	movl	%esi, (%rdi,%rax)
	movl	i(%rip), %esi
	movl	j(%rip), %edi
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edi, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	D(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L12:
	movl	j(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L13
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L11:
	movl	i(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L14
	movl	$0, i(%rip)
	movl	i(%rip), %eax
	movl	$400, %edx
	movl	%eax, %esi
	leaq	F(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L15
.L16:
	leaq	j(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L15:
	movl	i(%rip), %edx
	movl	L(%rip), %eax
	cmpl	%eax, %edx
	jl	.L16
	movl	H(%rip), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	F(%rip), %rdx
	movl	$1, (%rcx,%rdx)
	movl	A(%rip), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	F(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	F(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, i(%rip)
	jmp	.L17
.L18:
	leaq	-4(%rbp), %rax
	movq	%rax, %rcx
	leaq	k(%rip), %rax
	movq	%rax, %rdx
	leaq	j(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	k(%rip), %edx
	movl	j(%rip), %ecx
	movl	-4(%rbp), %esi
	movslq	%ecx, %r8
	movslq	%edx, %rdi
	movq	%rdi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdi
	leaq	D(%rip), %rax
	movl	%esi, (%rdi,%rax)
	movl	j(%rip), %esi
	movl	k(%rip), %edi
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edi, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	D(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L17:
	movl	i(%rip), %edx
	movl	K(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	$0, %eax
	call	W
	movl	$0, i(%rip)
	jmp	.L19
.L24:
	movl	$0, j(%rip)
	jmp	.L20
.L23:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L21
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	F(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L21
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	M(%rip), %eax
	cmpl	%eax, %edx
	jle	.L22
.L21:
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	I(%rip), %edx
	movslq	%ecx, %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	D(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L22:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L20:
	movl	j(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L23
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L19:
	movl	i(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L24
	movl	$0, %eax
	call	W
	movl	A(%rip), %eax
	movl	H(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	leal	(%rax,%rax), %ecx
	movl	M(%rip), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movl	-4(%rbp), %ecx
	movl	I(%rip), %eax
	cmpl	%eax, %ecx
	jne	.L25
	leaq	.LC2(%rip), %rax
	jmp	.L26
.L25:
	leaq	.LC3(%rip), %rax
.L26:
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	subq	$8, %rsp
	leaq	H(%rip), %rax
	pushq	%rax
	leaq	A(%rip), %r9
	leaq	K(%rip), %r8
	leaq	L(%rip), %rax
	movq	%rax, %rcx
	leaq	M(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addq	$16, %rsp
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L27
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.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:
