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

```c
#define minupd(v,x)((x)<v?v=(x):0)
D[101][101],b1,b2,c,i,j,k,t,ans;
main(n,m,s,g1,g2){
	for(;scanf("%d%d%d%d%d",&n,&m,&s,&g1,&g2)*n;){
		memset(D,1,sizeof(D));
		for(;m--;){
			scanf("%d%d%d",&b1,&b2,&c);
			D[b1][b2]=c;
			D[b1][b1]=0;
		}
		for(k=n;k;k--)
			for(i=n;i;i--)
				for(j=n;j;j--)
					minupd(D[i][j],D[i][k]+D[k][j]);
		ans=1e9;
		for(i=n;i;i--)
			minupd(ans,D[s][i]+D[i][g1]+D[i][g2]);
		printf("%d\n",ans);
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	D
	.bss
	.align 32
	.type	D, @object
	.size	D, 40804
D:
	.zero	40804
	.globl	b1
	.align 4
	.type	b1, @object
	.size	b1, 4
b1:
	.zero	4
	.globl	b2
	.align 4
	.type	b2, @object
	.size	b2, 4
b2:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.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
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	jmp	.L2
.L17:
	movl	$40804, %edx
	movl	$1, %esi
	leaq	D(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L3
.L4:
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b2(%rip), %rax
	movq	%rax, %rdx
	leaq	b1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	b1(%rip), %eax
	movl	b2(%rip), %edx
	movl	c(%rip), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	b1(%rip), %eax
	movl	b1(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	$0, (%rdx,%rax)
.L3:
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -8(%rbp)
	testl	%eax, %eax
	jne	.L4
	movl	-4(%rbp), %eax
	movl	%eax, k(%rip)
	jmp	.L5
.L12:
	movl	-4(%rbp), %eax
	movl	%eax, i(%rip)
	jmp	.L6
.L11:
	movl	-4(%rbp), %eax
	movl	%eax, j(%rip)
	jmp	.L7
.L10:
	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), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	jge	.L9
	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), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %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), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	i(%rip), %ecx
	movl	j(%rip), %eax
	addl	%edx, %esi
	movslq	%eax, %rdi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	%esi, (%rdx,%rax)
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
.L9:
	movl	j(%rip), %eax
	subl	$1, %eax
	movl	%eax, j(%rip)
.L7:
	movl	j(%rip), %eax
	testl	%eax, %eax
	jne	.L10
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L6:
	movl	i(%rip), %eax
	testl	%eax, %eax
	jne	.L11
	movl	k(%rip), %eax
	subl	$1, %eax
	movl	%eax, k(%rip)
.L5:
	movl	k(%rip), %eax
	testl	%eax, %eax
	jne	.L12
	movl	$1000000000, ans(%rip)
	movl	-4(%rbp), %eax
	movl	%eax, i(%rip)
	jmp	.L13
.L16:
	movl	-12(%rbp), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edi
	movl	i(%rip), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rdi,%rax), %edx
	movl	ans(%rip), %eax
	cmpl	%eax, %edx
	jge	.L15
	movl	-12(%rbp), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edi
	movl	i(%rip), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%edi, %eax
	movl	%eax, ans(%rip)
.L15:
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L13:
	movl	i(%rip), %eax
	testl	%eax, %eax
	jne	.L16
	movl	ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-20(%rbp), %rdi
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rcx
	leaq	-8(%rbp), %rdx
	leaq	-4(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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%d%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	c(%rip), %r15
	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
	leaq	D(%rip), %rbx
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	leaq	60(%rsp), %rax
	movl	%edi, 76(%rsp)
	movq	%rax, 40(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	76(%rsp), %rax
	movl	%esi, 72(%rsp)
	movl	%edx, 68(%rsp)
	movl	%ecx, 64(%rsp)
	movl	%r8d, 60(%rsp)
	movq	%rax, 32(%rsp)
.L2:
	movq	40(%rsp), %r9
	movq	48(%rsp), %r8
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	movq	16(%rsp), %rcx
	movq	24(%rsp), %rdx
	movq	32(%rsp), %rsi
	call	scanf@PLT
	movl	76(%rsp), %r12d
	imull	%r12d, %eax
	testl	%eax, %eax
	je	.L27
	movl	$40804, %edx
	movl	$1, %esi
	movq	%rbx, %rdi
	call	memset@PLT
	movl	72(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 72(%rsp)
	testl	%eax, %eax
	je	.L3
	leaq	b2(%rip), %r13
	leaq	b1(%rip), %r12
	leaq	.LC0(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	b1(%rip), %rax
	movslq	b2(%rip), %rcx
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rdx
	imulq	$408, %rax, %rax
	addq	%rcx, %rdx
	movl	c(%rip), %ecx
	movl	%ecx, (%rbx,%rdx,4)
	movl	$0, (%rbx,%rax)
	movl	72(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 72(%rsp)
	testl	%eax, %eax
	jne	.L4
	movl	76(%rsp), %r12d
.L3:
	movl	%r12d, k(%rip)
	testl	%r12d, %r12d
	je	.L5
	movslq	%r12d, %r11
	leal	-1(%r12), %ecx
	imulq	$102, %r11, %rdx
	movq	%r11, %rax
	leaq	0(,%r11,4), %r10
	subq	%rcx, %rax
	imulq	$404, %r11, %r8
	imulq	$408, %r11, %rbp
	subq	%rcx, %rdx
	leaq	-4+D(%rip), %rcx
	imulq	$404, %rax, %r14
	leaq	(%rcx,%rdx,4), %r13
	movq	%r8, %r12
	leaq	(%r10,%r11), %rdx
	addq	%rbx, %rbp
	negq	%r12
	addq	%rbx, %r10
	imulq	$408, %rax, %rax
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r11,%rdx,4), %rsi
	leaq	-404(%rcx), %rdx
	movq	%rsi, 8(%rsp)
	leaq	(%rax,%rdx), %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rcx
	movq	%rbp, %rdi
	movq	%r13, %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r10, %rax
	subq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	(%rax,%rcx), %rdx
	movl	(%rdx,%r8), %edx
	addl	(%rdi), %edx
	cmpl	(%rax), %edx
	jge	.L6
	movl	%edx, (%rax)
.L6:
	subq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L7
	leaq	-404(%rax), %rsi
	subq	$404, %rdi
	addq	$404, %rcx
	cmpq	%r9, %rsi
	jne	.L8
	leaq	-404(%r8), %rax
	subq	$4, %rbp
	cmpq	%r14, %r8
	je	.L28
	movq	%rax, %r8
	jmp	.L9
.L28:
	movslq	68(%rsp), %rcx
	movslq	64(%rsp), %r9
	xorl	%r8d, %r8d
	movl	$1000000000, %esi
	movq	8(%rsp), %rax
	movslq	60(%rsp), %rdi
	movl	$0, j(%rip)
	imulq	$404, %rcx, %rcx
	movl	$0, k(%rip)
	movl	$1000000000, ans(%rip)
	addq	%r9, %rax
	subq	%r9, %rdi
	leaq	(%rbx,%rax,4), %rdx
	addq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rdx), %eax
	addl	(%rcx,%r11,4), %eax
	addl	(%rdx,%rdi,4), %eax
	cmpl	%esi, %eax
	jge	.L10
	movl	%eax, %esi
	movl	$1, %r8d
.L10:
	subq	$1, %r11
	subq	$404, %rdx
	testl	%r11d, %r11d
	jne	.L11
	movl	$0, i(%rip)
	testb	%r8b, %r8b
	je	.L16
	movl	%esi, ans(%rip)
.L12:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L16:
	movl	$1000000000, %esi
	jmp	.L12
.L5:
	movl	$1000000000, ans(%rip)
	movl	$1000000000, %esi
	movl	$0, i(%rip)
	jmp	.L12
.L27:
	addq	$88, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	ans
	.bss
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	k
	.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	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	b2
	.align 4
	.type	b2, @object
	.size	b2, 4
b2:
	.zero	4
	.globl	b1
	.align 4
	.type	b1, @object
	.size	b1, 4
b1:
	.zero	4
	.globl	D
	.align 32
	.type	D, @object
	.size	D, 40804
D:
	.zero	40804
	.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%d%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	c(%rip), %r15
	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
	leaq	D(%rip), %rbx
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	leaq	60(%rsp), %rax
	movl	%edi, 76(%rsp)
	movq	%rax, 40(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	76(%rsp), %rax
	movl	%esi, 72(%rsp)
	movl	%edx, 68(%rsp)
	movl	%ecx, 64(%rsp)
	movl	%r8d, 60(%rsp)
	movq	%rax, 32(%rsp)
.L2:
	movq	40(%rsp), %r9
	movq	48(%rsp), %r8
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	movq	16(%rsp), %rcx
	movq	24(%rsp), %rdx
	movq	32(%rsp), %rsi
	call	scanf@PLT
	movl	76(%rsp), %r12d
	imull	%r12d, %eax
	testl	%eax, %eax
	je	.L27
	movl	$40804, %edx
	movl	$1, %esi
	movq	%rbx, %rdi
	call	memset@PLT
	movl	72(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 72(%rsp)
	testl	%eax, %eax
	je	.L3
	leaq	b2(%rip), %r13
	leaq	b1(%rip), %r12
	leaq	.LC0(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	b1(%rip), %rax
	movslq	b2(%rip), %rcx
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rdx
	imulq	$408, %rax, %rax
	addq	%rcx, %rdx
	movl	c(%rip), %ecx
	movl	%ecx, (%rbx,%rdx,4)
	movl	$0, (%rbx,%rax)
	movl	72(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 72(%rsp)
	testl	%eax, %eax
	jne	.L4
	movl	76(%rsp), %r12d
.L3:
	movl	%r12d, k(%rip)
	testl	%r12d, %r12d
	je	.L5
	movslq	%r12d, %r11
	leal	-1(%r12), %ecx
	imulq	$102, %r11, %rdx
	movq	%r11, %rax
	leaq	0(,%r11,4), %r10
	subq	%rcx, %rax
	imulq	$404, %r11, %r8
	imulq	$408, %r11, %rbp
	subq	%rcx, %rdx
	leaq	-4+D(%rip), %rcx
	imulq	$404, %rax, %r14
	leaq	(%rcx,%rdx,4), %r13
	movq	%r8, %r12
	leaq	(%r10,%r11), %rdx
	addq	%rbx, %rbp
	negq	%r12
	addq	%rbx, %r10
	imulq	$408, %rax, %rax
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r11,%rdx,4), %rsi
	leaq	-404(%rcx), %rdx
	movq	%rsi, 8(%rsp)
	leaq	(%rax,%rdx), %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rcx
	movq	%rbp, %rdi
	movq	%r13, %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r10, %rax
	subq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	(%rax,%rcx), %rdx
	movl	(%rdx,%r8), %edx
	addl	(%rdi), %edx
	cmpl	(%rax), %edx
	jge	.L6
	movl	%edx, (%rax)
.L6:
	subq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L7
	leaq	-404(%rax), %rsi
	subq	$404, %rdi
	addq	$404, %rcx
	cmpq	%r9, %rsi
	jne	.L8
	leaq	-404(%r8), %rax
	subq	$4, %rbp
	cmpq	%r14, %r8
	je	.L28
	movq	%rax, %r8
	jmp	.L9
.L28:
	movslq	68(%rsp), %rcx
	movslq	64(%rsp), %r9
	xorl	%r8d, %r8d
	movl	$1000000000, %esi
	movq	8(%rsp), %rax
	movslq	60(%rsp), %rdi
	movl	$0, j(%rip)
	imulq	$404, %rcx, %rcx
	movl	$0, k(%rip)
	movl	$1000000000, ans(%rip)
	addq	%r9, %rax
	subq	%r9, %rdi
	leaq	(%rbx,%rax,4), %rdx
	addq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rdx), %eax
	addl	(%rcx,%r11,4), %eax
	addl	(%rdx,%rdi,4), %eax
	cmpl	%esi, %eax
	jge	.L10
	movl	%eax, %esi
	movl	$1, %r8d
.L10:
	subq	$1, %r11
	subq	$404, %rdx
	testl	%r11d, %r11d
	jne	.L11
	movl	$0, i(%rip)
	testb	%r8b, %r8b
	je	.L16
	movl	%esi, ans(%rip)
.L12:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L16:
	movl	$1000000000, %esi
	jmp	.L12
.L5:
	movl	$1000000000, ans(%rip)
	movl	$1000000000, %esi
	movl	$0, i(%rip)
	jmp	.L12
.L27:
	addq	$88, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	ans
	.bss
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	k
	.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	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	b2
	.align 4
	.type	b2, @object
	.size	b2, 4
b2:
	.zero	4
	.globl	b1
	.align 4
	.type	b1, @object
	.size	b1, 4
b1:
	.zero	4
	.globl	D
	.align 32
	.type	D, @object
	.size	D, 40804
D:
	.zero	40804
	.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:

#define minupd(v,x)((x)<v?v=(x):0)
D[101][101],b1,b2,c,i,j,k,t,ans;
main(n,m,s,g1,g2){
	for(;scanf("%d%d%d%d%d",&n,&m,&s,&g1,&g2)*n;){
		memset(D,1,sizeof(D));
		for(;m--;){
			scanf("%d%d%d",&b1,&b2,&c);
			D[b1][b2]=c;
			D[b1][b1]=0;
		}
		for(k=n;k;k--)
			for(i=n;i;i--)
				for(j=n;j;j--)
					minupd(D[i][j],D[i][k]+D[k][j]);
		ans=1e9;
		for(i=n;i;i--)
			minupd(ans,D[s][i]+D[i][g1]+D[i][g2]);
		printf("%d\n",ans);
	}
}
4 5 1 3 4
1 2 5
2 3 9
2 4 5
1 3 8
1 4 8
0 0 0 0 0
 4 5 1 3 4
1 2 5
2 3 9
2 4 5
1 3 3
1 4 8
0 0 0 0 0
 6 5 1 3 4
1 2 5
4 3 5
2 3 5
1 3 8
1 4 8
0 0 0 0 0
 4 5 1 3 4
1 2 5
2 3 5
2 4 5
1 3 8
2 4 8
0 0 0 0 0
 4 5 1 3 4
0 2 5
2 3 9
2 4 5
1 2 3
1 4 8
0 0 0 0 0
 4 5 1 3 4
0 2 5
2 3 9
2 4 5
1 2 3
1 2 8
0 0 0 0 0
 6 5 1 3 4
1 2 7
2 0 5
2 3 5
1 3 8
2 4 8
0 0 0 0 0
 4 5 1 3 4
1 2 5
2 3 4
2 1 5
1 3 8
1 4 1
0 0 0 0 0
 6 5 1 3 4
1 2 5
3 3 5
2 3 5
1 3 8
1 4 11
0 0 0 0 0
 6 5 1 1 4
1 2 7
2 0 11
2 3 5
1 3 8
1 4 8
0 0 0 0 0

16
 11
 13
 18
 17
 22
 20
 9
 19
 8

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

```c
#define minupd(v,x)((x)<v?v=(x):0)
D[101][101],b1,b2,c,i,j,k,t,ans;
main(n,m,s,g1,g2){
	for(;scanf("%d%d%d%d%d",&n,&m,&s,&g1,&g2)*n;){
		memset(D,1,sizeof(D));
		for(;m--;){
			scanf("%d%d%d",&b1,&b2,&c);
			D[b1][b2]=c;
			D[b1][b1]=0;
		}
		for(k=n;k;k--)
			for(i=n;i;i--)
				for(j=n;j;j--)
					minupd(D[i][j],D[i][k]+D[k][j]);
		ans=1e9;
		for(i=n;i;i--)
			minupd(ans,D[s][i]+D[i][g1]+D[i][g2]);
		printf("%d\n",ans);
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	D
	.bss
	.align 32
	.type	D, @object
	.size	D, 40804
D:
	.zero	40804
	.globl	b1
	.align 4
	.type	b1, @object
	.size	b1, 4
b1:
	.zero	4
	.globl	b2
	.align 4
	.type	b2, @object
	.size	b2, 4
b2:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.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
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	jmp	.L2
.L17:
	movl	$40804, %edx
	movl	$1, %esi
	leaq	D(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L3
.L4:
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b2(%rip), %rax
	movq	%rax, %rdx
	leaq	b1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	b1(%rip), %eax
	movl	b2(%rip), %edx
	movl	c(%rip), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	b1(%rip), %eax
	movl	b1(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	$0, (%rdx,%rax)
.L3:
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -8(%rbp)
	testl	%eax, %eax
	jne	.L4
	movl	-4(%rbp), %eax
	movl	%eax, k(%rip)
	jmp	.L5
.L12:
	movl	-4(%rbp), %eax
	movl	%eax, i(%rip)
	jmp	.L6
.L11:
	movl	-4(%rbp), %eax
	movl	%eax, j(%rip)
	jmp	.L7
.L10:
	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), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	jge	.L9
	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), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %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), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	i(%rip), %ecx
	movl	j(%rip), %eax
	addl	%edx, %esi
	movslq	%eax, %rdi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	%esi, (%rdx,%rax)
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
.L9:
	movl	j(%rip), %eax
	subl	$1, %eax
	movl	%eax, j(%rip)
.L7:
	movl	j(%rip), %eax
	testl	%eax, %eax
	jne	.L10
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L6:
	movl	i(%rip), %eax
	testl	%eax, %eax
	jne	.L11
	movl	k(%rip), %eax
	subl	$1, %eax
	movl	%eax, k(%rip)
.L5:
	movl	k(%rip), %eax
	testl	%eax, %eax
	jne	.L12
	movl	$1000000000, ans(%rip)
	movl	-4(%rbp), %eax
	movl	%eax, i(%rip)
	jmp	.L13
.L16:
	movl	-12(%rbp), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edi
	movl	i(%rip), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rdi,%rax), %edx
	movl	ans(%rip), %eax
	cmpl	%eax, %edx
	jge	.L15
	movl	-12(%rbp), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edi
	movl	i(%rip), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%edi, %eax
	movl	%eax, ans(%rip)
.L15:
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L13:
	movl	i(%rip), %eax
	testl	%eax, %eax
	jne	.L16
	movl	ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-20(%rbp), %rdi
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rcx
	leaq	-8(%rbp), %rdx
	leaq	-4(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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, 40804
D:
	.zero	40804
	.globl	b1
	.align 4
	.type	b1, @object
	.size	b1, 4
b1:
	.zero	4
	.globl	b2
	.align 4
	.type	b2, @object
	.size	b2, 4
b2:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.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
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	jmp	.L2
.L17:
	movl	$40804, %edx
	movl	$1, %esi
	leaq	D(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L3
.L4:
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b2(%rip), %rax
	movq	%rax, %rdx
	leaq	b1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	b1(%rip), %eax
	movl	b2(%rip), %edx
	movl	c(%rip), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	b1(%rip), %eax
	movl	b1(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	$0, (%rdx,%rax)
.L3:
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -8(%rbp)
	testl	%eax, %eax
	jne	.L4
	movl	-4(%rbp), %eax
	movl	%eax, k(%rip)
	jmp	.L5
.L12:
	movl	-4(%rbp), %eax
	movl	%eax, i(%rip)
	jmp	.L6
.L11:
	movl	-4(%rbp), %eax
	movl	%eax, j(%rip)
	jmp	.L7
.L10:
	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), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	k(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	jge	.L9
	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), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %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), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	i(%rip), %ecx
	movl	j(%rip), %eax
	addl	%edx, %esi
	movslq	%eax, %rdi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	%esi, (%rdx,%rax)
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
.L9:
	movl	j(%rip), %eax
	subl	$1, %eax
	movl	%eax, j(%rip)
.L7:
	movl	j(%rip), %eax
	testl	%eax, %eax
	jne	.L10
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L6:
	movl	i(%rip), %eax
	testl	%eax, %eax
	jne	.L11
	movl	k(%rip), %eax
	subl	$1, %eax
	movl	%eax, k(%rip)
.L5:
	movl	k(%rip), %eax
	testl	%eax, %eax
	jne	.L12
	movl	$1000000000, ans(%rip)
	movl	-4(%rbp), %eax
	movl	%eax, i(%rip)
	jmp	.L13
.L16:
	movl	-12(%rbp), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edi
	movl	i(%rip), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rdi,%rax), %edx
	movl	ans(%rip), %eax
	cmpl	%eax, %edx
	jge	.L15
	movl	-12(%rbp), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	i(%rip), %eax
	movl	-16(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edi
	movl	i(%rip), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	D(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%edi, %eax
	movl	%eax, ans(%rip)
.L15:
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
.L13:
	movl	i(%rip), %eax
	testl	%eax, %eax
	jne	.L16
	movl	ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-20(%rbp), %rdi
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rcx
	leaq	-8(%rbp), %rdx
	leaq	-4(%rbp), %rax
	movq	%rdi, %r9
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
