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>
#define min(x,y) ((x<y)?(x):(y))
int main(){
	int n,m,c[105][105],i,j,a,b,x;
	int used[105],v[105],ans;
	while(scanf("%d%d",&n,&m)!=EOF){
		if(n==0 && m==0)break;
		for(i=0;i<n;i++)for(j=0;j<n;j++)c[i][j]=10000000;
		for(i=0;i<m;i++){
			scanf("%d%d%d",&a,&b,&x);
			c[a][b]=c[b][a]=x;
		}
		for(i=0;i<n;i++){
			v[i]=10000000;
			used[i]=0;
		}
		ans=0;v[0]=0;
		while(1){
			x=-1;
			for(i=0;i<n;i++){
				if(used[i]==0 && (x==-1 || v[i]<v[x]))x=i;
			}
			if(x==-1)break;
			used[x]=1;
			ans+=v[x];
			for(i=0;i<n;i++){
				v[i]=min(v[i],c[x][i]);
			}
		}
		printf("%d\n",ans);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%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
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L22:
	movl	-45008(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-45004(%rbp), %eax
	testl	%eax, %eax
	je	.L26
.L3:
	movl	$0, -44988(%rbp)
	jmp	.L5
.L8:
	movl	$0, -44984(%rbp)
	jmp	.L6
.L7:
	movl	-44984(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44988(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$10000000, -44112(%rbp,%rax,4)
	addl	$1, -44984(%rbp)
.L6:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44984(%rbp)
	jl	.L7
	addl	$1, -44988(%rbp)
.L5:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L8
	movl	$0, -44988(%rbp)
	jmp	.L9
.L10:
	leaq	-44992(%rbp), %rcx
	leaq	-44996(%rbp), %rdx
	leaq	-45000(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44996(%rbp), %ecx
	movl	-45000(%rbp), %esi
	movl	-44992(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	movl	%edi, -44112(%rbp,%rax,4)
	movl	-45000(%rbp), %edi
	movl	-44996(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-44112(%rbp,%rax,4), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -44112(%rbp,%rax,4)
	addl	$1, -44988(%rbp)
.L9:
	movl	-45004(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L10
	movl	$0, -44988(%rbp)
	jmp	.L11
.L12:
	movl	-44988(%rbp), %eax
	cltq
	movl	$10000000, -44544(%rbp,%rax,4)
	movl	-44988(%rbp), %eax
	cltq
	movl	$0, -44976(%rbp,%rax,4)
	addl	$1, -44988(%rbp)
.L11:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L12
	movl	$0, -44980(%rbp)
	movl	$0, -44544(%rbp)
.L21:
	movl	$-1, -44992(%rbp)
	movl	$0, -44988(%rbp)
	jmp	.L13
.L16:
	movl	-44988(%rbp), %eax
	cltq
	movl	-44976(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-44992(%rbp), %eax
	cmpl	$-1, %eax
	je	.L15
	movl	-44988(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %edx
	movl	-44992(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L14
.L15:
	movl	-44988(%rbp), %eax
	movl	%eax, -44992(%rbp)
.L14:
	addl	$1, -44988(%rbp)
.L13:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L16
	movl	-44992(%rbp), %eax
	cmpl	$-1, %eax
	je	.L27
	movl	-44992(%rbp), %eax
	cltq
	movl	$1, -44976(%rbp,%rax,4)
	movl	-44992(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %eax
	addl	%eax, -44980(%rbp)
	movl	$0, -44988(%rbp)
	jmp	.L19
.L20:
	movl	-44992(%rbp), %eax
	movl	-44988(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-44112(%rbp,%rax,4), %edx
	movl	-44988(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-44988(%rbp), %eax
	cltq
	movl	%edx, -44544(%rbp,%rax,4)
	addl	$1, -44988(%rbp)
.L19:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L20
	jmp	.L21
.L27:
	nop
	movl	-44980(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-45004(%rbp), %rdx
	leaq	-45008(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L22
	jmp	.L4
.L26:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	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
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	-40960(%rsp), %r11
	.cfi_def_cfa 11, 41016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4072, %rsp
	.cfi_def_cfa_offset 45088
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 45016(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	32(%rsp), %r12
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r12, %rdx
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movdqa	.LC0(%rip), %xmm2
	cmpl	$-1, %eax
	je	.L6
	movl	28(%rsp), %ebx
	movl	32(%rsp), %r9d
	testl	%ebx, %ebx
	jne	.L58
	testl	%r9d, %r9d
	je	.L6
.L5:
	leal	-1(%rbx), %r13d
	testl	%r9d, %r9d
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L28:
	xorl	%r15d, %r15d
	leaq	44(%rsp), %r14
	leaq	40(%rsp), %r13
	leaq	36(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %rax
	movslq	36(%rsp), %rdx
	movl	44(%rsp), %esi
	movdqa	.LC0(%rip), %xmm2
	leaq	(%rax,%rax,2), %rcx
	leaq	(%rax,%rcx,4), %rcx
	leaq	(%rax,%rcx,8), %rcx
	addq	%rdx, %rcx
	movl	%esi, 912(%rsp,%rcx,4)
	leaq	(%rdx,%rdx,2), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,8), %rdx
	addq	%rdx, %rax
	cmpl	%r15d, 32(%rsp)
	movl	%esi, 912(%rsp,%rax,4)
	jg	.L12
	movl	28(%rsp), %ebx
	leal	-1(%rbx), %r13d
	testl	%ebx, %ebx
	jle	.L13
	testl	%ebx, %ebx
	movl	$1, %ecx
	cmovg	%ebx, %ecx
	cmpl	$3, %ebx
	jle	.L32
.L62:
	movl	%ecx, %edx
	leaq	480(%rsp), %rax
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	496(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L15:
	movaps	%xmm2, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L15
	movl	%ecx, %eax
	andl	$-4, %eax
	andl	$3, %ecx
	je	.L16
.L14:
	movslq	%eax, %rdx
	movl	$10000000, 480(%rsp,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%ebx, %edx
	jge	.L16
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	$10000000, 480(%rsp,%rdx,4)
	cmpl	%eax, %ebx
	jle	.L16
	cltq
	movl	$10000000, 480(%rsp,%rax,4)
.L16:
	movslq	%ebx, %rdx
	movl	$4, %eax
	leaq	48(%rsp), %rdi
	salq	$2, %rdx
	testl	%ebx, %ebx
	cmovle	%rax, %rdx
	xorl	%esi, %esi
	call	memset@PLT
.L13:
	movl	%ebx, %eax
	movl	%ebx, %r10d
	xorl	%r9d, %r9d
	movl	%r13d, %edx
	shrl	$2, %eax
	andl	$-4, %r10d
	movl	$0, 480(%rsp)
	leaq	912(%rsp), %r14
	leal	-1(%rax), %r11d
	leaq	48(%rsp), %rax
	addq	$1, %r11
	salq	$4, %r11
.L24:
	testl	%ebx, %ebx
	jle	.L17
.L61:
	xorl	%ecx, %ecx
	movl	$-1, %esi
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L60:
	movslq	%esi, %rdi
	movl	480(%rsp,%rdi,4), %edi
	cmpl	%edi, 480(%rsp,%rcx,4)
	cmovl	%ecx, %esi
.L18:
	leaq	1(%rcx), %rdi
	cmpq	%rdx, %rcx
	je	.L59
.L35:
	movq	%rdi, %rcx
.L19:
	movl	(%rax,%rcx,4), %edi
	testl	%edi, %edi
	jne	.L18
	cmpl	$-1, %esi
	jne	.L60
	movl	%ecx, %esi
	leaq	1(%rcx), %rdi
	cmpq	%rdx, %rcx
	jne	.L35
	.p2align 4,,10
	.p2align 3
.L59:
	cmpl	$-1, %esi
	je	.L17
	movslq	%esi, %rsi
	movl	$1, 48(%rsp,%rsi,4)
	addl	480(%rsp,%rsi,4), %r9d
	cmpl	$2, %r13d
	jbe	.L36
	imulq	$420, %rsi, %rcx
	leaq	480(%rsp), %rdi
	addq	%r14, %rcx
	leaq	(%r11,%rcx), %r8
	.p2align 4,,10
	.p2align 3
.L22:
	movdqu	(%rcx), %xmm3
	movdqa	(%rdi), %xmm0
	addq	$16, %rcx
	addq	$16, %rdi
	pcmpgtd	%xmm3, %xmm0
	movdqa	%xmm3, %xmm1
	pand	%xmm0, %xmm1
	pandn	-16(%rdi), %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, -16(%rdi)
	cmpq	%rcx, %r8
	jne	.L22
	movl	%r10d, %ecx
	cmpl	%ebx, %r10d
	je	.L24
.L26:
	leaq	(%rsi,%rsi,2), %rdi
	movslq	%ecx, %r8
	leaq	(%rsi,%rdi,4), %rdi
	leaq	(%rsi,%rdi,8), %rdi
	movl	480(%rsp,%r8,4), %esi
	leaq	(%rdi,%r8), %r15
	movl	912(%rsp,%r15,4), %r15d
	cmpl	%r15d, %esi
	cmovg	%r15d, %esi
	movl	%esi, 480(%rsp,%r8,4)
	leal	1(%rcx), %esi
	cmpl	%ebx, %esi
	jge	.L24
	movslq	%esi, %rsi
	leaq	(%rdi,%rsi), %r8
	movl	480(%rsp,%rsi,4), %r15d
	movl	912(%rsp,%r8,4), %r8d
	cmpl	%r15d, %r8d
	cmovg	%r15d, %r8d
	addl	$2, %ecx
	movl	%r8d, 480(%rsp,%rsi,4)
	cmpl	%ecx, %ebx
	jle	.L24
	movslq	%ecx, %rcx
	addq	%rcx, %rdi
	movl	480(%rsp,%rcx,4), %esi
	movl	912(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	movl	%esi, 480(%rsp,%rcx,4)
	testl	%ebx, %ebx
	jg	.L61
.L17:
	movl	%r9d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	$-1, 44(%rsp)
	call	__printf_chk@PLT
	jmp	.L2
.L58:
	jle	.L5
	movl	%ebx, %eax
	movl	%ebx, %edi
	leaq	912(%rsp), %rcx
	xorl	%esi, %esi
	shrl	$2, %eax
	leal	-1(%rbx), %r13d
	andl	$-4, %edi
	leal	-1(%rax), %r8d
	addq	$1, %r8
	salq	$4, %r8
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$2, %r13d
	jbe	.L31
	leaq	(%r8,%rcx), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movups	%xmm2, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L8
	movl	%edi, %eax
	cmpl	%edi, %ebx
	je	.L9
.L7:
	movslq	%esi, %r10
	movslq	%eax, %rdx
	leaq	(%r10,%r10,2), %r11
	leaq	(%r10,%r11,4), %r11
	leaq	(%r10,%r11,8), %r10
	addq	%r10, %rdx
	movl	$10000000, 912(%rsp,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ebx
	jle	.L9
	movslq	%edx, %rdx
	addl	$2, %eax
	addq	%r10, %rdx
	movl	$10000000, 912(%rsp,%rdx,4)
	cmpl	%eax, %ebx
	jle	.L9
	cltq
	addq	%rax, %r10
	movl	$10000000, 912(%rsp,%r10,4)
.L9:
	addl	$1, %esi
	addq	$420, %rcx
	cmpl	%esi, %ebx
	jne	.L10
	testl	%r9d, %r9d
	jg	.L28
	testl	%ebx, %ebx
	movl	$1, %ecx
	cmovg	%ebx, %ecx
	cmpl	$3, %ebx
	jg	.L62
.L32:
	xorl	%eax, %eax
	jmp	.L14
.L31:
	xorl	%eax, %eax
	jmp	.L7
.L36:
	xorl	%ecx, %ecx
	jmp	.L26
.L6:
	movq	45016(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L63
	addq	$45032, %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
.L63:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	10000000
	.long	10000000
	.long	10000000
	.long	10000000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	-40960(%rsp), %r11
	.cfi_def_cfa 11, 41016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4072, %rsp
	.cfi_def_cfa_offset 45088
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 45016(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	32(%rsp), %r12
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r12, %rdx
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movdqa	.LC0(%rip), %xmm2
	cmpl	$-1, %eax
	je	.L6
	movl	28(%rsp), %ebx
	movl	32(%rsp), %r9d
	testl	%ebx, %ebx
	jne	.L58
	testl	%r9d, %r9d
	je	.L6
.L5:
	leal	-1(%rbx), %r13d
	testl	%r9d, %r9d
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L28:
	xorl	%r15d, %r15d
	leaq	44(%rsp), %r14
	leaq	40(%rsp), %r13
	leaq	36(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %rax
	movslq	36(%rsp), %rdx
	movl	44(%rsp), %esi
	movdqa	.LC0(%rip), %xmm2
	leaq	(%rax,%rax,2), %rcx
	leaq	(%rax,%rcx,4), %rcx
	leaq	(%rax,%rcx,8), %rcx
	addq	%rdx, %rcx
	movl	%esi, 912(%rsp,%rcx,4)
	leaq	(%rdx,%rdx,2), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,8), %rdx
	addq	%rdx, %rax
	cmpl	%r15d, 32(%rsp)
	movl	%esi, 912(%rsp,%rax,4)
	jg	.L12
	movl	28(%rsp), %ebx
	leal	-1(%rbx), %r13d
	testl	%ebx, %ebx
	jle	.L13
	testl	%ebx, %ebx
	movl	$1, %ecx
	cmovg	%ebx, %ecx
	cmpl	$3, %ebx
	jle	.L32
.L62:
	movl	%ecx, %edx
	leaq	480(%rsp), %rax
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	496(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L15:
	movaps	%xmm2, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L15
	movl	%ecx, %eax
	andl	$-4, %eax
	andl	$3, %ecx
	je	.L16
.L14:
	movslq	%eax, %rdx
	movl	$10000000, 480(%rsp,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%ebx, %edx
	jge	.L16
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	$10000000, 480(%rsp,%rdx,4)
	cmpl	%eax, %ebx
	jle	.L16
	cltq
	movl	$10000000, 480(%rsp,%rax,4)
.L16:
	movslq	%ebx, %rdx
	movl	$4, %eax
	leaq	48(%rsp), %rdi
	salq	$2, %rdx
	testl	%ebx, %ebx
	cmovle	%rax, %rdx
	xorl	%esi, %esi
	call	memset@PLT
.L13:
	movl	%ebx, %eax
	movl	%ebx, %r10d
	xorl	%r9d, %r9d
	movl	%r13d, %edx
	shrl	$2, %eax
	andl	$-4, %r10d
	movl	$0, 480(%rsp)
	leaq	912(%rsp), %r14
	leal	-1(%rax), %r11d
	leaq	48(%rsp), %rax
	addq	$1, %r11
	salq	$4, %r11
.L24:
	testl	%ebx, %ebx
	jle	.L17
.L61:
	xorl	%ecx, %ecx
	movl	$-1, %esi
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L60:
	movslq	%esi, %rdi
	movl	480(%rsp,%rdi,4), %edi
	cmpl	%edi, 480(%rsp,%rcx,4)
	cmovl	%ecx, %esi
.L18:
	leaq	1(%rcx), %rdi
	cmpq	%rdx, %rcx
	je	.L59
.L35:
	movq	%rdi, %rcx
.L19:
	movl	(%rax,%rcx,4), %edi
	testl	%edi, %edi
	jne	.L18
	cmpl	$-1, %esi
	jne	.L60
	movl	%ecx, %esi
	leaq	1(%rcx), %rdi
	cmpq	%rdx, %rcx
	jne	.L35
	.p2align 4,,10
	.p2align 3
.L59:
	cmpl	$-1, %esi
	je	.L17
	movslq	%esi, %rsi
	movl	$1, 48(%rsp,%rsi,4)
	addl	480(%rsp,%rsi,4), %r9d
	cmpl	$2, %r13d
	jbe	.L36
	imulq	$420, %rsi, %rcx
	leaq	480(%rsp), %rdi
	addq	%r14, %rcx
	leaq	(%r11,%rcx), %r8
	.p2align 4,,10
	.p2align 3
.L22:
	movdqu	(%rcx), %xmm3
	movdqa	(%rdi), %xmm0
	addq	$16, %rcx
	addq	$16, %rdi
	pcmpgtd	%xmm3, %xmm0
	movdqa	%xmm3, %xmm1
	pand	%xmm0, %xmm1
	pandn	-16(%rdi), %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, -16(%rdi)
	cmpq	%rcx, %r8
	jne	.L22
	movl	%r10d, %ecx
	cmpl	%ebx, %r10d
	je	.L24
.L26:
	leaq	(%rsi,%rsi,2), %rdi
	movslq	%ecx, %r8
	leaq	(%rsi,%rdi,4), %rdi
	leaq	(%rsi,%rdi,8), %rdi
	movl	480(%rsp,%r8,4), %esi
	leaq	(%rdi,%r8), %r15
	movl	912(%rsp,%r15,4), %r15d
	cmpl	%r15d, %esi
	cmovg	%r15d, %esi
	movl	%esi, 480(%rsp,%r8,4)
	leal	1(%rcx), %esi
	cmpl	%ebx, %esi
	jge	.L24
	movslq	%esi, %rsi
	leaq	(%rdi,%rsi), %r8
	movl	480(%rsp,%rsi,4), %r15d
	movl	912(%rsp,%r8,4), %r8d
	cmpl	%r15d, %r8d
	cmovg	%r15d, %r8d
	addl	$2, %ecx
	movl	%r8d, 480(%rsp,%rsi,4)
	cmpl	%ecx, %ebx
	jle	.L24
	movslq	%ecx, %rcx
	addq	%rcx, %rdi
	movl	480(%rsp,%rcx,4), %esi
	movl	912(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	movl	%esi, 480(%rsp,%rcx,4)
	testl	%ebx, %ebx
	jg	.L61
.L17:
	movl	%r9d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	$-1, 44(%rsp)
	call	__printf_chk@PLT
	jmp	.L2
.L58:
	jle	.L5
	movl	%ebx, %eax
	movl	%ebx, %edi
	leaq	912(%rsp), %rcx
	xorl	%esi, %esi
	shrl	$2, %eax
	leal	-1(%rbx), %r13d
	andl	$-4, %edi
	leal	-1(%rax), %r8d
	addq	$1, %r8
	salq	$4, %r8
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$2, %r13d
	jbe	.L31
	leaq	(%r8,%rcx), %rdx
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movups	%xmm2, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L8
	movl	%edi, %eax
	cmpl	%edi, %ebx
	je	.L9
.L7:
	movslq	%esi, %r10
	movslq	%eax, %rdx
	leaq	(%r10,%r10,2), %r11
	leaq	(%r10,%r11,4), %r11
	leaq	(%r10,%r11,8), %r10
	addq	%r10, %rdx
	movl	$10000000, 912(%rsp,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ebx
	jle	.L9
	movslq	%edx, %rdx
	addl	$2, %eax
	addq	%r10, %rdx
	movl	$10000000, 912(%rsp,%rdx,4)
	cmpl	%eax, %ebx
	jle	.L9
	cltq
	addq	%rax, %r10
	movl	$10000000, 912(%rsp,%r10,4)
.L9:
	addl	$1, %esi
	addq	$420, %rcx
	cmpl	%esi, %ebx
	jne	.L10
	testl	%r9d, %r9d
	jg	.L28
	testl	%ebx, %ebx
	movl	$1, %ecx
	cmovg	%ebx, %ecx
	cmpl	$3, %ebx
	jg	.L62
.L32:
	xorl	%eax, %eax
	jmp	.L14
.L31:
	xorl	%eax, %eax
	jmp	.L7
.L36:
	xorl	%ecx, %ecx
	jmp	.L26
.L6:
	movq	45016(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L63
	addq	$45032, %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
.L63:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	10000000
	.long	10000000
	.long	10000000
	.long	10000000
	.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>
#define min(x,y) ((x<y)?(x):(y))
int main(){
	int n,m,c[105][105],i,j,a,b,x;
	int used[105],v[105],ans;
	while(scanf("%d%d",&n,&m)!=EOF){
		if(n==0 && m==0)break;
		for(i=0;i<n;i++)for(j=0;j<n;j++)c[i][j]=10000000;
		for(i=0;i<m;i++){
			scanf("%d%d%d",&a,&b,&x);
			c[a][b]=c[b][a]=x;
		}
		for(i=0;i<n;i++){
			v[i]=10000000;
			used[i]=0;
		}
		ans=0;v[0]=0;
		while(1){
			x=-1;
			for(i=0;i<n;i++){
				if(used[i]==0 && (x==-1 || v[i]<v[x]))x=i;
			}
			if(x==-1)break;
			used[x]=1;
			ans+=v[x];
			for(i=0;i<n;i++){
				v[i]=min(v[i],c[x][i]);
			}
		}
		printf("%d\n",ans);
	}
	return 0;
}
5 6
0 2 1
2 1 3
2 3 8
1 3 1
3 4 5
1 4 4
3 3
1 2 3
2 0 3
0 1 3
0 0
 5 6
0 2 1
2 1 3
2 3 8
1 3 3
3 4 5
1 4 4
3 3
1 2 3
2 0 3
0 1 3
0 0
 5 6
0 2 1
2 1 3
2 3 8
1 3 0
3 4 5
1 4 4
3 3
1 2 3
2 0 3
0 1 3
0 0
 5 6
0 2 1
2 1 3
2 3 6
0 3 1
3 4 8
1 3 4
3 3
1 2 3
2 0 3
0 1 3
0 0
 5 6
0 2 1
2 1 3
2 3 8
1 3 2
3 4 5
1 4 4
3 3
1 2 3
2 0 4
0 1 3
0 0
 5 6
0 2 1
2 1 3
2 3 8
1 3 1
3 4 2
1 4 4
3 3
1 2 3
2 0 3
0 1 3
0 0
 5 6
0 2 1
2 1 3
2 3 6
0 3 1
3 4 8
1 3 4
3 3
1 2 3
2 0 3
0 1 1
0 0
 5 6
0 1 1
2 1 3
2 3 8
1 3 2
3 4 5
1 4 5
3 3
1 2 2
2 0 4
0 1 3
0 0
 5 6
0 2 1
2 1 3
2 3 6
0 3 1
3 4 8
1 3 4
3 3
1 2 3
2 0 3
0 1 0
0 0
 5 6
0 2 1
2 1 3
2 3 6
0 3 2
3 4 8
1 3 4
3 3
1 2 3
2 0 3
0 1 1
0 0

9
6
 11
6
 8
6
 13
6
 10
6
 7
6
 13
4
 11
5
 13
3
 14
4

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>
#define min(x,y) ((x<y)?(x):(y))
int main(){
	int n,m,c[105][105],i,j,a,b,x;
	int used[105],v[105],ans;
	while(scanf("%d%d",&n,&m)!=EOF){
		if(n==0 && m==0)break;
		for(i=0;i<n;i++)for(j=0;j<n;j++)c[i][j]=10000000;
		for(i=0;i<m;i++){
			scanf("%d%d%d",&a,&b,&x);
			c[a][b]=c[b][a]=x;
		}
		for(i=0;i<n;i++){
			v[i]=10000000;
			used[i]=0;
		}
		ans=0;v[0]=0;
		while(1){
			x=-1;
			for(i=0;i<n;i++){
				if(used[i]==0 && (x==-1 || v[i]<v[x]))x=i;
			}
			if(x==-1)break;
			used[x]=1;
			ans+=v[x];
			for(i=0;i<n;i++){
				v[i]=min(v[i],c[x][i]);
			}
		}
		printf("%d\n",ans);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%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
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L22:
	movl	-45008(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-45004(%rbp), %eax
	testl	%eax, %eax
	je	.L26
.L3:
	movl	$0, -44988(%rbp)
	jmp	.L5
.L8:
	movl	$0, -44984(%rbp)
	jmp	.L6
.L7:
	movl	-44984(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44988(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$10000000, -44112(%rbp,%rax,4)
	addl	$1, -44984(%rbp)
.L6:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44984(%rbp)
	jl	.L7
	addl	$1, -44988(%rbp)
.L5:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L8
	movl	$0, -44988(%rbp)
	jmp	.L9
.L10:
	leaq	-44992(%rbp), %rcx
	leaq	-44996(%rbp), %rdx
	leaq	-45000(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44996(%rbp), %ecx
	movl	-45000(%rbp), %esi
	movl	-44992(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	movl	%edi, -44112(%rbp,%rax,4)
	movl	-45000(%rbp), %edi
	movl	-44996(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-44112(%rbp,%rax,4), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -44112(%rbp,%rax,4)
	addl	$1, -44988(%rbp)
.L9:
	movl	-45004(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L10
	movl	$0, -44988(%rbp)
	jmp	.L11
.L12:
	movl	-44988(%rbp), %eax
	cltq
	movl	$10000000, -44544(%rbp,%rax,4)
	movl	-44988(%rbp), %eax
	cltq
	movl	$0, -44976(%rbp,%rax,4)
	addl	$1, -44988(%rbp)
.L11:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L12
	movl	$0, -44980(%rbp)
	movl	$0, -44544(%rbp)
.L21:
	movl	$-1, -44992(%rbp)
	movl	$0, -44988(%rbp)
	jmp	.L13
.L16:
	movl	-44988(%rbp), %eax
	cltq
	movl	-44976(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-44992(%rbp), %eax
	cmpl	$-1, %eax
	je	.L15
	movl	-44988(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %edx
	movl	-44992(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L14
.L15:
	movl	-44988(%rbp), %eax
	movl	%eax, -44992(%rbp)
.L14:
	addl	$1, -44988(%rbp)
.L13:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L16
	movl	-44992(%rbp), %eax
	cmpl	$-1, %eax
	je	.L27
	movl	-44992(%rbp), %eax
	cltq
	movl	$1, -44976(%rbp,%rax,4)
	movl	-44992(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %eax
	addl	%eax, -44980(%rbp)
	movl	$0, -44988(%rbp)
	jmp	.L19
.L20:
	movl	-44992(%rbp), %eax
	movl	-44988(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-44112(%rbp,%rax,4), %edx
	movl	-44988(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-44988(%rbp), %eax
	cltq
	movl	%edx, -44544(%rbp,%rax,4)
	addl	$1, -44988(%rbp)
.L19:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L20
	jmp	.L21
.L27:
	nop
	movl	-44980(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-45004(%rbp), %rdx
	leaq	-45008(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L22
	jmp	.L4
.L26:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	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
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%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
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L22:
	movl	-45008(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-45004(%rbp), %eax
	testl	%eax, %eax
	je	.L26
.L3:
	movl	$0, -44988(%rbp)
	jmp	.L5
.L8:
	movl	$0, -44984(%rbp)
	jmp	.L6
.L7:
	movl	-44984(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44988(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$10000000, -44112(%rbp,%rax,4)
	addl	$1, -44984(%rbp)
.L6:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44984(%rbp)
	jl	.L7
	addl	$1, -44988(%rbp)
.L5:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L8
	movl	$0, -44988(%rbp)
	jmp	.L9
.L10:
	leaq	-44992(%rbp), %rcx
	leaq	-44996(%rbp), %rdx
	leaq	-45000(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44996(%rbp), %ecx
	movl	-45000(%rbp), %esi
	movl	-44992(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	movl	%edi, -44112(%rbp,%rax,4)
	movl	-45000(%rbp), %edi
	movl	-44996(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-44112(%rbp,%rax,4), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -44112(%rbp,%rax,4)
	addl	$1, -44988(%rbp)
.L9:
	movl	-45004(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L10
	movl	$0, -44988(%rbp)
	jmp	.L11
.L12:
	movl	-44988(%rbp), %eax
	cltq
	movl	$10000000, -44544(%rbp,%rax,4)
	movl	-44988(%rbp), %eax
	cltq
	movl	$0, -44976(%rbp,%rax,4)
	addl	$1, -44988(%rbp)
.L11:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L12
	movl	$0, -44980(%rbp)
	movl	$0, -44544(%rbp)
.L21:
	movl	$-1, -44992(%rbp)
	movl	$0, -44988(%rbp)
	jmp	.L13
.L16:
	movl	-44988(%rbp), %eax
	cltq
	movl	-44976(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-44992(%rbp), %eax
	cmpl	$-1, %eax
	je	.L15
	movl	-44988(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %edx
	movl	-44992(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L14
.L15:
	movl	-44988(%rbp), %eax
	movl	%eax, -44992(%rbp)
.L14:
	addl	$1, -44988(%rbp)
.L13:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L16
	movl	-44992(%rbp), %eax
	cmpl	$-1, %eax
	je	.L27
	movl	-44992(%rbp), %eax
	cltq
	movl	$1, -44976(%rbp,%rax,4)
	movl	-44992(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %eax
	addl	%eax, -44980(%rbp)
	movl	$0, -44988(%rbp)
	jmp	.L19
.L20:
	movl	-44992(%rbp), %eax
	movl	-44988(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-44112(%rbp,%rax,4), %edx
	movl	-44988(%rbp), %eax
	cltq
	movl	-44544(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-44988(%rbp), %eax
	cltq
	movl	%edx, -44544(%rbp,%rax,4)
	addl	$1, -44988(%rbp)
.L19:
	movl	-45008(%rbp), %eax
	cmpl	%eax, -44988(%rbp)
	jl	.L20
	jmp	.L21
.L27:
	nop
	movl	-44980(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-45004(%rbp), %rdx
	leaq	-45008(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L22
	jmp	.L4
.L26:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	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:
