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

```c
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#define ll long long int
#define MIN(x,y) (x)>(y)?(y):(x)
#define MAX(x,y) (x)>(y)?(x):(y)
#define ABS(x) (x)>0?(x):(-x)

//ばなな

int main(void){
	const ll INF = (ll)1<<50;
	int n,m;
	scanf("%d%d",&n,&m);
	int a[m],b[m];
	ll c[m];
	for(int i=0;i<m;i++){
		scanf("%d%d%lld",&a[i],&b[i],&c[i]);
		c[i] = -c[i];
		a[i]--;
		b[i]--;
	}
	ll dist[n];
	dist[0]=0;
	for(int i=1;i<n;i++)dist[i]=INF;
	
	for(int loop=0;loop<n-1;loop++){
		for(int i=0;i<m;i++){
			if(dist[a[i]]==INF)continue;
			if(dist[b[i]] > dist[a[i]]+c[i])
			dist[b[i]] = dist[a[i]]+c[i];
		}
	}
	ll ans=dist[n-1];
	
	bool negative[n];
	for(int i=0;i<n;i++)negative[i]=false;
	for(int loop=0;loop<n;loop++){
		for(int i=0;i<m;i++){
			if(dist[a[i]]==INF)continue;
			if(dist[b[i]] >dist[a[i]]+c[i]){
				dist[b[i]]=dist[a[i]]+c[i];
				negative[b[i]]=true;
			}
			if(negative[a[i]])negative[b[i]]=true;
		}
	}
	if(negative[n-1])printf("inf");
	else printf("%lld",-ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%d%lld"
.LC2:
	.string	"inf"
.LC3:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$280, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movabsq	$1125899906842624, %rax
	movq	%rax, -152(%rbp)
	leaq	-184(%rbp), %rdx
	leaq	-188(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-184(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -144(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -136(%rbp)
	movl	-184(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -120(%rbp)
	movl	-184(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -104(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L11
.L12:
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	addq	%rax, %rdx
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-136(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	negq	%rax
	movq	%rax, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-136(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-136(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-120(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-120(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -180(%rbp)
.L11:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L12
	movl	-188(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -96(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L13:
	cmpq	%rdx, %rsp
	je	.L14
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L13
.L14:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L15
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L15:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	$0, (%rax)
	movl	$1, -176(%rbp)
	jmp	.L16
.L17:
	movq	-88(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rdx
	movq	-152(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -176(%rbp)
.L16:
	movl	-188(%rbp), %eax
	cmpl	%eax, -176(%rbp)
	jl	.L17
	movl	$0, -172(%rbp)
	jmp	.L18
.L23:
	movl	$0, -168(%rbp)
	jmp	.L19
.L22:
	movq	-136(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -152(%rbp)
	je	.L40
	movq	-120(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-136(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rsi, %rax
	cmpq	%rax, %rcx
	jle	.L21
	movq	-136(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-120(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	addq	%rsi, %rcx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	jmp	.L21
.L40:
	nop
.L21:
	addl	$1, -168(%rbp)
.L19:
	movl	-184(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L22
	addl	$1, -172(%rbp)
.L18:
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -172(%rbp)
	jl	.L23
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -80(%rbp)
	movl	-188(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L24:
	cmpq	%rdx, %rsp
	je	.L25
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L24
.L25:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L26
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L26:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -164(%rbp)
	jmp	.L27
.L28:
	movq	-64(%rbp), %rdx
	movl	-164(%rbp), %eax
	cltq
	movb	$0, (%rdx,%rax)
	addl	$1, -164(%rbp)
.L27:
	movl	-188(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L28
	movl	$0, -160(%rbp)
	jmp	.L29
.L35:
	movl	$0, -156(%rbp)
	jmp	.L30
.L34:
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -152(%rbp)
	je	.L41
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rsi, %rax
	cmpq	%rax, %rcx
	jle	.L33
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	addq	%rsi, %rcx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$1, (%rdx,%rax)
.L33:
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	testb	%al, %al
	je	.L32
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$1, (%rdx,%rax)
	jmp	.L32
.L41:
	nop
.L32:
	addl	$1, -156(%rbp)
.L30:
	movl	-184(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L34
	addl	$1, -160(%rbp)
.L29:
	movl	-188(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L35
	movl	-188(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	testb	%al, %al
	je	.L36
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L37
.L36:
	movq	-80(%rbp), %rax
	negq	%rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L37:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
.LC1:
	.string	"%d%d%lld"
.LC3:
	.string	"inf"
.LC4:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rax
	movq	%rsi, %rcx
	movq	%rax, %r8
	movq	%rax, %rdx
	andq	$-4096, %r8
	andq	$-16, %rdx
	subq	%r8, %rdi
	cmpq	%rdi, %rsp
	je	.L3
.L66:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L66
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L67
.L4:
	movq	%rax, %rdx
	movq	%rsp, %rdi
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rdi
.L5:
	cmpq	%rdi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L67:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L68
.L7:
	leaq	15(,%rsi,8), %rdx
	movq	%rsp, %rsi
	movq	%rsp, %r14
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rsi
.L8:
	cmpq	%rsi, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L68:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L9:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L10
	orq	$0, -8(%rsp,%rax)
.L10:
	movq	%rsp, %r15
	testl	%ecx, %ecx
	jle	.L11
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %r13
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r13, %rcx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rdx, -80(%rbp)
	movq	%rsi, -72(%rbp)
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdx
	movl	-60(%rbp), %ecx
	negq	0(%r13)
	addq	$8, %r13
	subl	$1, (%rsi)
	addq	$4, %rsi
	subl	$1, (%rdx)
	addq	$4, %rdx
	cmpl	%ebx, %ecx
	jg	.L12
.L11:
	movslq	-64(%rbp), %r10
	movq	%rsp, %rsi
	leaq	15(,%r10,8), %rax
	movq	%r10, %r9
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L14
.L69:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L69
.L14:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L15
	orq	$0, -8(%rsp,%rdx)
.L15:
	leaq	7(%rsp), %rbx
	leal	-1(%r9), %r8d
	movq	%rbx, %rax
	andq	$-8, %rbx
	shrq	$3, %rax
	movq	$0, 0(,%rax,8)
	cmpl	$1, %r9d
	jle	.L16
	cmpl	$2, %r9d
	je	.L40
	movl	%r8d, %edx
	movdqa	.LC2(%rip), %xmm0
	leaq	8(%rbx), %rax
	shrl	%edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	24(%rbx,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L18:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L18
	movl	%r8d, %eax
	orl	$1, %eax
	testb	$1, %r8b
	je	.L20
.L17:
	movabsq	$1125899906842624, %rdi
	cltq
	movq	%rdi, (%rbx,%rax,8)
.L20:
	testl	%ecx, %ecx
	jle	.L21
	movabsq	$1125899906842624, %rdi
	xorl	%r11d, %r11d
	movslq	%ecx, %rsi
	.p2align 4,,10
	.p2align 3
.L24:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L23:
	movslq	(%r12,%rax,4), %rdx
	movq	(%rbx,%rdx,8), %rdx
	cmpq	%rdi, %rdx
	je	.L22
	movslq	(%r14,%rax,4), %r13
	addq	(%r15,%rax,8), %rdx
	cmpq	%rdx, (%rbx,%r13,8)
	jle	.L22
	movq	%rdx, (%rbx,%r13,8)
.L22:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L23
	addl	$1, %r11d
	cmpl	%r8d, %r11d
	jl	.L24
.L21:
	movslq	%r8d, %r8
	movq	%rsp, %rsi
	movq	(%rbx,%r8,8), %rax
	movq	%rax, -80(%rbp)
	leaq	15(%r10), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L27
.L70:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L70
.L27:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L28
	orq	$0, -8(%rsp,%rdx)
.L28:
	testl	%r9d, %r9d
	movl	%ecx, -88(%rbp)
	movq	%rsp, %r13
	movl	%r9d, -84(%rbp)
	jle	.L29
	xorl	%esi, %esi
	movq	%r10, %rdx
	movq	%rsp, %rdi
	movq	%r8, -72(%rbp)
	call	memset@PLT
	movslq	-88(%rbp), %rsi
	xorl	%r10d, %r10d
	movq	-72(%rbp), %r8
	movabsq	$1125899906842624, %rdi
	movl	-84(%rbp), %r9d
	testl	%esi, %esi
	jle	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L36:
	movslq	(%r12,%rax,4), %rcx
	movq	(%rbx,%rcx,8), %rdx
	cmpq	%rdi, %rdx
	je	.L33
	movslq	(%r14,%rax,4), %r11
	addq	(%r15,%rax,8), %rdx
	cmpq	%rdx, (%rbx,%r11,8)
	jle	.L34
	movq	%rdx, (%rbx,%r11,8)
	movb	$1, 0(%r13,%r11)
.L34:
	cmpb	$0, 0(%r13,%rcx)
	je	.L33
	movb	$1, 0(%r13,%r11)
.L33:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L36
	addl	$1, %r10d
	cmpl	%r10d, %r9d
	jne	.L30
.L29:
	cmpb	$0, 0(%r13,%r8)
	je	.L37
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L38:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L71
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L37:
	.cfi_restore_state
	movq	-80(%rbp), %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	negq	%rdx
	call	__printf_chk@PLT
	jmp	.L38
.L16:
	testl	%r8d, %r8d
	jle	.L21
	jmp	.L20
.L40:
	movl	$1, %eax
	jmp	.L17
.L71:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1125899906842624
	.quad	1125899906842624
	.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"
.LC1:
	.string	"%d%d%lld"
.LC3:
	.string	"inf"
.LC4:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rax
	movq	%rsi, %rcx
	movq	%rax, %r8
	movq	%rax, %rdx
	andq	$-4096, %r8
	andq	$-16, %rdx
	subq	%r8, %rdi
	cmpq	%rdi, %rsp
	je	.L3
.L66:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L66
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L67
.L4:
	movq	%rax, %rdx
	movq	%rsp, %rdi
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rdi
.L5:
	cmpq	%rdi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L67:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L68
.L7:
	leaq	15(,%rsi,8), %rdx
	movq	%rsp, %rsi
	movq	%rsp, %r14
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rsi
.L8:
	cmpq	%rsi, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L68:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L9:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L10
	orq	$0, -8(%rsp,%rax)
.L10:
	movq	%rsp, %r15
	testl	%ecx, %ecx
	jle	.L11
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %r13
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r13, %rcx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rdx, -80(%rbp)
	movq	%rsi, -72(%rbp)
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdx
	movl	-60(%rbp), %ecx
	negq	0(%r13)
	addq	$8, %r13
	subl	$1, (%rsi)
	addq	$4, %rsi
	subl	$1, (%rdx)
	addq	$4, %rdx
	cmpl	%ebx, %ecx
	jg	.L12
.L11:
	movslq	-64(%rbp), %r10
	movq	%rsp, %rsi
	leaq	15(,%r10,8), %rax
	movq	%r10, %r9
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L14
.L69:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L69
.L14:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L15
	orq	$0, -8(%rsp,%rdx)
.L15:
	leaq	7(%rsp), %rbx
	leal	-1(%r9), %r8d
	movq	%rbx, %rax
	andq	$-8, %rbx
	shrq	$3, %rax
	movq	$0, 0(,%rax,8)
	cmpl	$1, %r9d
	jle	.L16
	cmpl	$2, %r9d
	je	.L40
	movl	%r8d, %edx
	movdqa	.LC2(%rip), %xmm0
	leaq	8(%rbx), %rax
	shrl	%edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	24(%rbx,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L18:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L18
	movl	%r8d, %eax
	orl	$1, %eax
	testb	$1, %r8b
	je	.L20
.L17:
	movabsq	$1125899906842624, %rdi
	cltq
	movq	%rdi, (%rbx,%rax,8)
.L20:
	testl	%ecx, %ecx
	jle	.L21
	movabsq	$1125899906842624, %rdi
	xorl	%r11d, %r11d
	movslq	%ecx, %rsi
	.p2align 4,,10
	.p2align 3
.L24:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L23:
	movslq	(%r12,%rax,4), %rdx
	movq	(%rbx,%rdx,8), %rdx
	cmpq	%rdi, %rdx
	je	.L22
	movslq	(%r14,%rax,4), %r13
	addq	(%r15,%rax,8), %rdx
	cmpq	%rdx, (%rbx,%r13,8)
	jle	.L22
	movq	%rdx, (%rbx,%r13,8)
.L22:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L23
	addl	$1, %r11d
	cmpl	%r8d, %r11d
	jl	.L24
.L21:
	movslq	%r8d, %r8
	movq	%rsp, %rsi
	movq	(%rbx,%r8,8), %rax
	movq	%rax, -80(%rbp)
	leaq	15(%r10), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L27
.L70:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L70
.L27:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L28
	orq	$0, -8(%rsp,%rdx)
.L28:
	testl	%r9d, %r9d
	movl	%ecx, -88(%rbp)
	movq	%rsp, %r13
	movl	%r9d, -84(%rbp)
	jle	.L29
	xorl	%esi, %esi
	movq	%r10, %rdx
	movq	%rsp, %rdi
	movq	%r8, -72(%rbp)
	call	memset@PLT
	movslq	-88(%rbp), %rsi
	xorl	%r10d, %r10d
	movq	-72(%rbp), %r8
	movabsq	$1125899906842624, %rdi
	movl	-84(%rbp), %r9d
	testl	%esi, %esi
	jle	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L36:
	movslq	(%r12,%rax,4), %rcx
	movq	(%rbx,%rcx,8), %rdx
	cmpq	%rdi, %rdx
	je	.L33
	movslq	(%r14,%rax,4), %r11
	addq	(%r15,%rax,8), %rdx
	cmpq	%rdx, (%rbx,%r11,8)
	jle	.L34
	movq	%rdx, (%rbx,%r11,8)
	movb	$1, 0(%r13,%r11)
.L34:
	cmpb	$0, 0(%r13,%rcx)
	je	.L33
	movb	$1, 0(%r13,%r11)
.L33:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L36
	addl	$1, %r10d
	cmpl	%r10d, %r9d
	jne	.L30
.L29:
	cmpb	$0, 0(%r13,%r8)
	je	.L37
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L38:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L71
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L37:
	.cfi_restore_state
	movq	-80(%rbp), %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	negq	%rdx
	call	__printf_chk@PLT
	jmp	.L38
.L16:
	testl	%r8d, %r8d
	jle	.L21
	jmp	.L20
.L40:
	movl	$1, %eax
	jmp	.L17
.L71:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1125899906842624
	.quad	1125899906842624
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#define ll long long int
#define MIN(x,y) (x)>(y)?(y):(x)
#define MAX(x,y) (x)>(y)?(x):(y)
#define ABS(x) (x)>0?(x):(-x)

//ばなな

int main(void){
	const ll INF = (ll)1<<50;
	int n,m;
	scanf("%d%d",&n,&m);
	int a[m],b[m];
	ll c[m];
	for(int i=0;i<m;i++){
		scanf("%d%d%lld",&a[i],&b[i],&c[i]);
		c[i] = -c[i];
		a[i]--;
		b[i]--;
	}
	ll dist[n];
	dist[0]=0;
	for(int i=1;i<n;i++)dist[i]=INF;
	
	for(int loop=0;loop<n-1;loop++){
		for(int i=0;i<m;i++){
			if(dist[a[i]]==INF)continue;
			if(dist[b[i]] > dist[a[i]]+c[i])
			dist[b[i]] = dist[a[i]]+c[i];
		}
	}
	ll ans=dist[n-1];
	
	bool negative[n];
	for(int i=0;i<n;i++)negative[i]=false;
	for(int loop=0;loop<n;loop++){
		for(int i=0;i<m;i++){
			if(dist[a[i]]==INF)continue;
			if(dist[b[i]] >dist[a[i]]+c[i]){
				dist[b[i]]=dist[a[i]]+c[i];
				negative[b[i]]=true;
			}
			if(negative[a[i]])negative[b[i]]=true;
		}
	}
	if(negative[n-1])printf("inf");
	else printf("%lld",-ans);
	return 0;
}
3 3
1 2 4
2 2 3
1 3 5
 6 5
1 2 -1000000000
2 3 -1000000000
3 5 -1000000000
4 5 -1000000000
5 6 -1000000000
 6 5
1 2 -1000000000
2 3 -798288204
3 5 -1000000000
4 5 -1000000000
5 6 -1000000000
 2 2
1 2 2
2 1 1
 6 5
1 2 -1000000000
2 3 -798288204
3 5 -672240474
4 5 -1000000000
5 6 -1000000000
 6 5
1 2 -1000000000
2 3 -798288204
3 5 -672240474
4 5 -378110944
1 6 -1000000000
 6 5
1 2 -1000000000
3 6 -798288204
3 1 -544098556
4 5 -372194891
1 6 -1131281113
 6 5
1 2 -1000000000
3 6 -798288204
3 1 -544098556
4 5 -372194891
1 6 -7948408
 6 5
1 2 -1000000000
2 3 -798288204
3 5 -908858863
4 5 -378110944
5 6 -1000000000
 6 5
1 2 -1000000000
3 6 -798288204
3 1 -544098556
4 5 -372194891
1 6 -678095

5 -4000000000 -3798288204 inf -3470528678 -1000000000 -1131281113 -7948408 -3707147067 -678095
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#define ll long long int
#define MIN(x,y) (x)>(y)?(y):(x)
#define MAX(x,y) (x)>(y)?(x):(y)
#define ABS(x) (x)>0?(x):(-x)

//ばなな

int main(void){
	const ll INF = (ll)1<<50;
	int n,m;
	scanf("%d%d",&n,&m);
	int a[m],b[m];
	ll c[m];
	for(int i=0;i<m;i++){
		scanf("%d%d%lld",&a[i],&b[i],&c[i]);
		c[i] = -c[i];
		a[i]--;
		b[i]--;
	}
	ll dist[n];
	dist[0]=0;
	for(int i=1;i<n;i++)dist[i]=INF;
	
	for(int loop=0;loop<n-1;loop++){
		for(int i=0;i<m;i++){
			if(dist[a[i]]==INF)continue;
			if(dist[b[i]] > dist[a[i]]+c[i])
			dist[b[i]] = dist[a[i]]+c[i];
		}
	}
	ll ans=dist[n-1];
	
	bool negative[n];
	for(int i=0;i<n;i++)negative[i]=false;
	for(int loop=0;loop<n;loop++){
		for(int i=0;i<m;i++){
			if(dist[a[i]]==INF)continue;
			if(dist[b[i]] >dist[a[i]]+c[i]){
				dist[b[i]]=dist[a[i]]+c[i];
				negative[b[i]]=true;
			}
			if(negative[a[i]])negative[b[i]]=true;
		}
	}
	if(negative[n-1])printf("inf");
	else printf("%lld",-ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%d%lld"
.LC2:
	.string	"inf"
.LC3:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$280, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movabsq	$1125899906842624, %rax
	movq	%rax, -152(%rbp)
	leaq	-184(%rbp), %rdx
	leaq	-188(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-184(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -144(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -136(%rbp)
	movl	-184(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -120(%rbp)
	movl	-184(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -104(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L11
.L12:
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	addq	%rax, %rdx
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-136(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	negq	%rax
	movq	%rax, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-136(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-136(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-120(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-120(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -180(%rbp)
.L11:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L12
	movl	-188(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -96(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L13:
	cmpq	%rdx, %rsp
	je	.L14
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L13
.L14:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L15
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L15:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	$0, (%rax)
	movl	$1, -176(%rbp)
	jmp	.L16
.L17:
	movq	-88(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rdx
	movq	-152(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -176(%rbp)
.L16:
	movl	-188(%rbp), %eax
	cmpl	%eax, -176(%rbp)
	jl	.L17
	movl	$0, -172(%rbp)
	jmp	.L18
.L23:
	movl	$0, -168(%rbp)
	jmp	.L19
.L22:
	movq	-136(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -152(%rbp)
	je	.L40
	movq	-120(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-136(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rsi, %rax
	cmpq	%rax, %rcx
	jle	.L21
	movq	-136(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-120(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	addq	%rsi, %rcx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	jmp	.L21
.L40:
	nop
.L21:
	addl	$1, -168(%rbp)
.L19:
	movl	-184(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L22
	addl	$1, -172(%rbp)
.L18:
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -172(%rbp)
	jl	.L23
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -80(%rbp)
	movl	-188(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L24:
	cmpq	%rdx, %rsp
	je	.L25
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L24
.L25:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L26
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L26:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -164(%rbp)
	jmp	.L27
.L28:
	movq	-64(%rbp), %rdx
	movl	-164(%rbp), %eax
	cltq
	movb	$0, (%rdx,%rax)
	addl	$1, -164(%rbp)
.L27:
	movl	-188(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L28
	movl	$0, -160(%rbp)
	jmp	.L29
.L35:
	movl	$0, -156(%rbp)
	jmp	.L30
.L34:
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -152(%rbp)
	je	.L41
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rsi, %rax
	cmpq	%rax, %rcx
	jle	.L33
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	addq	%rsi, %rcx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$1, (%rdx,%rax)
.L33:
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	testb	%al, %al
	je	.L32
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$1, (%rdx,%rax)
	jmp	.L32
.L41:
	nop
.L32:
	addl	$1, -156(%rbp)
.L30:
	movl	-184(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L34
	addl	$1, -160(%rbp)
.L29:
	movl	-188(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L35
	movl	-188(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	testb	%al, %al
	je	.L36
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L37
.L36:
	movq	-80(%rbp), %rax
	negq	%rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L37:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
.LC1:
	.string	"%d%d%lld"
.LC2:
	.string	"inf"
.LC3:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$280, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movabsq	$1125899906842624, %rax
	movq	%rax, -152(%rbp)
	leaq	-184(%rbp), %rdx
	leaq	-188(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-184(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -144(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -136(%rbp)
	movl	-184(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -120(%rbp)
	movl	-184(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -104(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L11
.L12:
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-120(%rbp), %rax
	addq	%rax, %rdx
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-136(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	negq	%rax
	movq	%rax, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-136(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-136(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-120(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-120(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -180(%rbp)
.L11:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L12
	movl	-188(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -96(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L13:
	cmpq	%rdx, %rsp
	je	.L14
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L13
.L14:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L15
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L15:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	$0, (%rax)
	movl	$1, -176(%rbp)
	jmp	.L16
.L17:
	movq	-88(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rdx
	movq	-152(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -176(%rbp)
.L16:
	movl	-188(%rbp), %eax
	cmpl	%eax, -176(%rbp)
	jl	.L17
	movl	$0, -172(%rbp)
	jmp	.L18
.L23:
	movl	$0, -168(%rbp)
	jmp	.L19
.L22:
	movq	-136(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -152(%rbp)
	je	.L40
	movq	-120(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-136(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rsi, %rax
	cmpq	%rax, %rcx
	jle	.L21
	movq	-136(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-120(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	addq	%rsi, %rcx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	jmp	.L21
.L40:
	nop
.L21:
	addl	$1, -168(%rbp)
.L19:
	movl	-184(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L22
	addl	$1, -172(%rbp)
.L18:
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -172(%rbp)
	jl	.L23
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -80(%rbp)
	movl	-188(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L24:
	cmpq	%rdx, %rsp
	je	.L25
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L24
.L25:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L26
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L26:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -164(%rbp)
	jmp	.L27
.L28:
	movq	-64(%rbp), %rdx
	movl	-164(%rbp), %eax
	cltq
	movb	$0, (%rdx,%rax)
	addl	$1, -164(%rbp)
.L27:
	movl	-188(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L28
	movl	$0, -160(%rbp)
	jmp	.L29
.L35:
	movl	$0, -156(%rbp)
	jmp	.L30
.L34:
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -152(%rbp)
	je	.L41
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rsi, %rax
	cmpq	%rax, %rcx
	jle	.L33
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	-104(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	addq	%rsi, %rcx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$1, (%rdx,%rax)
.L33:
	movq	-136(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	testb	%al, %al
	je	.L32
	movq	-120(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-64(%rbp), %rdx
	cltq
	movb	$1, (%rdx,%rax)
	jmp	.L32
.L41:
	nop
.L32:
	addl	$1, -156(%rbp)
.L30:
	movl	-184(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L34
	addl	$1, -160(%rbp)
.L29:
	movl	-188(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L35
	movl	-188(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	testb	%al, %al
	je	.L36
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L37
.L36:
	movq	-80(%rbp), %rax
	negq	%rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L37:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
