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>

int main(){
  int n,m,x,y,f[100010]={},cnt[100010],ans=0;
  scanf("%d %d",&n,&m);
  f[1]=1;
  for(int i=1;i<=n;i++)
    cnt[i]=1;
  for(int i=0;i<m;i++){
    scanf("%d %d",&x,&y);
    if(f[x]==1)
      f[y]=1;
    if(cnt[x]==1)
      f[x]=0;
    cnt[x]--;
    cnt[y]++;
  }
  for(int i=1;i<=n;i++)
    ans+=f[i];
  printf("%d\n",ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1408, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800096(%rbp), %rax
	movl	$400040, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -800112(%rbp)
	leaq	-800124(%rbp), %rdx
	leaq	-800128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -800092(%rbp)
	movl	$1, -800108(%rbp)
	jmp	.L2
.L3:
	movl	-800108(%rbp), %eax
	cltq
	movl	$1, -400048(%rbp,%rax,4)
	addl	$1, -800108(%rbp)
.L2:
	movl	-800128(%rbp), %eax
	cmpl	%eax, -800108(%rbp)
	jle	.L3
	movl	$0, -800104(%rbp)
	jmp	.L4
.L7:
	leaq	-800116(%rbp), %rdx
	leaq	-800120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800120(%rbp), %eax
	cltq
	movl	-800096(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L5
	movl	-800116(%rbp), %eax
	cltq
	movl	$1, -800096(%rbp,%rax,4)
.L5:
	movl	-800120(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-800120(%rbp), %eax
	cltq
	movl	$0, -800096(%rbp,%rax,4)
.L6:
	movl	-800120(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	subl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	movl	-800116(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	addl	$1, -800104(%rbp)
.L4:
	movl	-800124(%rbp), %eax
	cmpl	%eax, -800104(%rbp)
	jl	.L7
	movl	$1, -800100(%rbp)
	jmp	.L8
.L9:
	movl	-800100(%rbp), %eax
	cltq
	movl	-800096(%rbp,%rax,4), %eax
	addl	%eax, -800112(%rbp)
	addl	$1, -800100(%rbp)
.L8:
	movl	-800128(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jle	.L9
	movl	-800112(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1400, %rsp
	.cfi_def_cfa_offset 800160
	movl	$400040, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 800104(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	call	memset@PLT
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %ecx
	movl	$1, 20(%rsp)
	testl	%ecx, %ecx
	jle	.L2
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L23
	movl	%ecx, %edx
	movdqa	.LC1(%rip), %xmm0
	leaq	400068(%rsp), %rax
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	400084(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L4
	movl	%ecx, %edx
	andl	$-4, %edx
	leal	1(%rdx), %eax
	cmpl	%edx, %ecx
	je	.L31
.L3:
	movslq	%eax, %rdx
	movl	$1, 400064(%rsp,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ecx
	jl	.L6
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	$1, 400064(%rsp,%rdx,4)
	cmpl	%eax, %ecx
	jl	.L6
	cltq
	movl	$1, 400064(%rsp,%rax,4)
.L6:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L13
.L18:
	xorl	%r13d, %r13d
	leaq	12(%rsp), %r12
	leaq	8(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rax
	movslq	12(%rsp), %rcx
	cmpl	$1, 16(%rsp,%rax,4)
	jne	.L8
	movl	$1, 16(%rsp,%rcx,4)
.L8:
	movl	400064(%rsp,%rax,4), %edx
	cmpl	$1, %edx
	je	.L9
	subl	$1, %edx
	addl	$1, %r13d
	movl	%edx, 400064(%rsp,%rax,4)
	addl	$1, 400064(%rsp,%rcx,4)
	cmpl	4(%rsp), %r13d
	jl	.L12
.L11:
	movl	(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L19
.L13:
	testl	%ecx, %ecx
	movl	$1, %esi
	cmovg	%ecx, %esi
	cmpl	$3, %ecx
	jle	.L24
.L20:
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	movl	%esi, %edx
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	36(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L16:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L16
	movdqa	%xmm0, %xmm1
	movl	%esi, %edi
	psrldq	$8, %xmm1
	andl	$-4, %edi
	paddd	%xmm1, %xmm0
	leal	1(%rdi), %eax
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%esi, %edi
	je	.L14
.L15:
	movslq	%eax, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rax), %esi
	cmpl	%ecx, %esi
	jg	.L14
	movslq	%esi, %rsi
	addl	$2, %eax
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jg	.L14
	cltq
	addl	16(%rsp,%rax,4), %edx
.L14:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$800120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movl	$0, 400064(%rsp,%rax,4)
	addl	$1, %r13d
	addl	$1, 400064(%rsp,%rcx,4)
	movl	$0, 16(%rsp,%rax,4)
	cmpl	%r13d, 4(%rsp)
	jg	.L12
	jmp	.L11
.L31:
	cmpl	$0, 4(%rsp)
	jg	.L18
	testl	%ecx, %ecx
	movl	$1, %esi
	cmovg	%ecx, %esi
	jmp	.L20
.L2:
	cmpl	$0, 4(%rsp)
	jg	.L18
.L19:
	xorl	%edx, %edx
	jmp	.L14
.L23:
	movl	$1, %eax
	jmp	.L3
.L24:
	movl	$1, %eax
	xorl	%edx, %edx
	jmp	.L15
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	1
	.long	1
	.long	1
	.long	1
	.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"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1400, %rsp
	.cfi_def_cfa_offset 800160
	movl	$400040, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 800104(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	call	memset@PLT
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %ecx
	movl	$1, 20(%rsp)
	testl	%ecx, %ecx
	jle	.L2
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L23
	movl	%ecx, %edx
	movdqa	.LC1(%rip), %xmm0
	leaq	400068(%rsp), %rax
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	400084(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L4
	movl	%ecx, %edx
	andl	$-4, %edx
	leal	1(%rdx), %eax
	cmpl	%edx, %ecx
	je	.L31
.L3:
	movslq	%eax, %rdx
	movl	$1, 400064(%rsp,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ecx
	jl	.L6
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	$1, 400064(%rsp,%rdx,4)
	cmpl	%eax, %ecx
	jl	.L6
	cltq
	movl	$1, 400064(%rsp,%rax,4)
.L6:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L13
.L18:
	xorl	%r13d, %r13d
	leaq	12(%rsp), %r12
	leaq	8(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rax
	movslq	12(%rsp), %rcx
	cmpl	$1, 16(%rsp,%rax,4)
	jne	.L8
	movl	$1, 16(%rsp,%rcx,4)
.L8:
	movl	400064(%rsp,%rax,4), %edx
	cmpl	$1, %edx
	je	.L9
	subl	$1, %edx
	addl	$1, %r13d
	movl	%edx, 400064(%rsp,%rax,4)
	addl	$1, 400064(%rsp,%rcx,4)
	cmpl	4(%rsp), %r13d
	jl	.L12
.L11:
	movl	(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L19
.L13:
	testl	%ecx, %ecx
	movl	$1, %esi
	cmovg	%ecx, %esi
	cmpl	$3, %ecx
	jle	.L24
.L20:
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	movl	%esi, %edx
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	36(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L16:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L16
	movdqa	%xmm0, %xmm1
	movl	%esi, %edi
	psrldq	$8, %xmm1
	andl	$-4, %edi
	paddd	%xmm1, %xmm0
	leal	1(%rdi), %eax
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%esi, %edi
	je	.L14
.L15:
	movslq	%eax, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rax), %esi
	cmpl	%ecx, %esi
	jg	.L14
	movslq	%esi, %rsi
	addl	$2, %eax
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jg	.L14
	cltq
	addl	16(%rsp,%rax,4), %edx
.L14:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$800120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movl	$0, 400064(%rsp,%rax,4)
	addl	$1, %r13d
	addl	$1, 400064(%rsp,%rcx,4)
	movl	$0, 16(%rsp,%rax,4)
	cmpl	%r13d, 4(%rsp)
	jg	.L12
	jmp	.L11
.L31:
	cmpl	$0, 4(%rsp)
	jg	.L18
	testl	%ecx, %ecx
	movl	$1, %esi
	cmovg	%ecx, %esi
	jmp	.L20
.L2:
	cmpl	$0, 4(%rsp)
	jg	.L18
.L19:
	xorl	%edx, %edx
	jmp	.L14
.L23:
	movl	$1, %eax
	jmp	.L3
.L24:
	movl	$1, %eax
	xorl	%edx, %edx
	jmp	.L15
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	1
	.long	1
	.long	1
	.long	1
	.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>

int main(){
  int n,m,x,y,f[100010]={},cnt[100010],ans=0;
  scanf("%d %d",&n,&m);
  f[1]=1;
  for(int i=1;i<=n;i++)
    cnt[i]=1;
  for(int i=0;i<m;i++){
    scanf("%d %d",&x,&y);
    if(f[x]==1)
      f[y]=1;
    if(cnt[x]==1)
      f[x]=0;
    cnt[x]--;
    cnt[y]++;
  }
  for(int i=1;i<=n;i++)
    ans+=f[i];
  printf("%d\n",ans);
}
6 2
1 2
2 3
 4 4
1 2
2 3
4 1
3 0
 6 2
1 0
2 6
 6 2
1 2
2 6
 6 2
2 0
2 6
 3 2
1 0
2 3
 4 4
2 2
2 3
4 1
3 4
 4 4
1 2
2 3
4 1
1 0
 6 2
1 2
4 6
 3 2
2 0
2 3

2
 2
 0
 2
 1
 0
 1
 2
 1
 1

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>

int main(){
  int n,m,x,y,f[100010]={},cnt[100010],ans=0;
  scanf("%d %d",&n,&m);
  f[1]=1;
  for(int i=1;i<=n;i++)
    cnt[i]=1;
  for(int i=0;i<m;i++){
    scanf("%d %d",&x,&y);
    if(f[x]==1)
      f[y]=1;
    if(cnt[x]==1)
      f[x]=0;
    cnt[x]--;
    cnt[y]++;
  }
  for(int i=1;i<=n;i++)
    ans+=f[i];
  printf("%d\n",ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1408, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800096(%rbp), %rax
	movl	$400040, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -800112(%rbp)
	leaq	-800124(%rbp), %rdx
	leaq	-800128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -800092(%rbp)
	movl	$1, -800108(%rbp)
	jmp	.L2
.L3:
	movl	-800108(%rbp), %eax
	cltq
	movl	$1, -400048(%rbp,%rax,4)
	addl	$1, -800108(%rbp)
.L2:
	movl	-800128(%rbp), %eax
	cmpl	%eax, -800108(%rbp)
	jle	.L3
	movl	$0, -800104(%rbp)
	jmp	.L4
.L7:
	leaq	-800116(%rbp), %rdx
	leaq	-800120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800120(%rbp), %eax
	cltq
	movl	-800096(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L5
	movl	-800116(%rbp), %eax
	cltq
	movl	$1, -800096(%rbp,%rax,4)
.L5:
	movl	-800120(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-800120(%rbp), %eax
	cltq
	movl	$0, -800096(%rbp,%rax,4)
.L6:
	movl	-800120(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	subl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	movl	-800116(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	addl	$1, -800104(%rbp)
.L4:
	movl	-800124(%rbp), %eax
	cmpl	%eax, -800104(%rbp)
	jl	.L7
	movl	$1, -800100(%rbp)
	jmp	.L8
.L9:
	movl	-800100(%rbp), %eax
	cltq
	movl	-800096(%rbp,%rax,4), %eax
	addl	%eax, -800112(%rbp)
	addl	$1, -800100(%rbp)
.L8:
	movl	-800128(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jle	.L9
	movl	-800112(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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.
val
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1408, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800096(%rbp), %rax
	movl	$400040, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -800112(%rbp)
	leaq	-800124(%rbp), %rdx
	leaq	-800128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -800092(%rbp)
	movl	$1, -800108(%rbp)
	jmp	.L2
.L3:
	movl	-800108(%rbp), %eax
	cltq
	movl	$1, -400048(%rbp,%rax,4)
	addl	$1, -800108(%rbp)
.L2:
	movl	-800128(%rbp), %eax
	cmpl	%eax, -800108(%rbp)
	jle	.L3
	movl	$0, -800104(%rbp)
	jmp	.L4
.L7:
	leaq	-800116(%rbp), %rdx
	leaq	-800120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800120(%rbp), %eax
	cltq
	movl	-800096(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L5
	movl	-800116(%rbp), %eax
	cltq
	movl	$1, -800096(%rbp,%rax,4)
.L5:
	movl	-800120(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-800120(%rbp), %eax
	cltq
	movl	$0, -800096(%rbp,%rax,4)
.L6:
	movl	-800120(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	subl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	movl	-800116(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400048(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	addl	$1, -800104(%rbp)
.L4:
	movl	-800124(%rbp), %eax
	cmpl	%eax, -800104(%rbp)
	jl	.L7
	movl	$1, -800100(%rbp)
	jmp	.L8
.L9:
	movl	-800100(%rbp), %eax
	cltq
	movl	-800096(%rbp,%rax,4), %eax
	addl	%eax, -800112(%rbp)
	addl	$1, -800100(%rbp)
.L8:
	movl	-800128(%rbp), %eax
	cmpl	%eax, -800100(%rbp)
	jle	.L9
	movl	-800112(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
