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 i, k, n, m, target[100], point[100], game[100][100];
	scanf("%d %d", &n, &m);
	for( i = 0; i < m; i++) scanf("%d", &target[i]);
	for( i = 0; i < n; i++) point[i] = 0;
	for( i = 0; i < m; i++) {
		for( k = 0; k < n; k++) {
			scanf("%d", &game[i][k]);
		}
	}
	// ????¨?
	for( i = 0; i < m; i++) {
		for( k = 0; k < n; k++) {
			if(target[i] == game[i][k]) {
				point[k]++;
			} else {
				point[target[i] - 1]++;
			}
		}
	}
	for( i = 0; i < n; i++) printf("%d\n", point[i]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40828(%rbp), %rdx
	leaq	-40832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40824(%rbp)
	jmp	.L2
.L3:
	leaq	-40816(%rbp), %rdx
	movl	-40824(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40824(%rbp)
.L2:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L3
	movl	$0, -40824(%rbp)
	jmp	.L4
.L5:
	movl	-40824(%rbp), %eax
	cltq
	movl	$0, -40416(%rbp,%rax,4)
	addl	$1, -40824(%rbp)
.L4:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L5
	movl	$0, -40824(%rbp)
	jmp	.L6
.L9:
	movl	$0, -40820(%rbp)
	jmp	.L7
.L8:
	leaq	-40016(%rbp), %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40820(%rbp)
.L7:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L8
	addl	$1, -40824(%rbp)
.L6:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L9
	movl	$0, -40824(%rbp)
	jmp	.L10
.L15:
	movl	$0, -40820(%rbp)
	jmp	.L11
.L14:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-40016(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-40820(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-40820(%rbp), %eax
	cltq
	movl	%edx, -40416(%rbp,%rax,4)
	jmp	.L13
.L12:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40816(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-40416(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -40416(%rbp,%rax,4)
.L13:
	addl	$1, -40820(%rbp)
.L11:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L14
	addl	$1, -40824(%rbp)
.L10:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L15
	movl	$0, -40824(%rbp)
	jmp	.L16
.L17:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40824(%rbp)
.L16:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3976, %rsp
	.cfi_def_cfa_offset 40896
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L3
.L2:
	movl	8(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L35
	movslq	%r12d, %rdx
	leaq	416(%rsp), %rbp
	xorl	%esi, %esi
	salq	$2, %rdx
	movq	%rbp, %rdi
	call	memset@PLT
	testl	%ebx, %ebx
	jg	.L7
.L8:
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L21:
	movl	0(%rbp,%rbx,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L21
.L22:
	movq	40824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$40840, %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
.L35:
	.cfi_restore_state
	testl	%ebx, %ebx
	jle	.L22
.L7:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %r13
	testl	%r12d, %r12d
	jle	.L37
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	816(%rsp,%r15,4), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r12d
	addq	$4, %rbp
	cmpl	%ebx, %r12d
	jg	.L9
	movl	12(%rsp), %ebx
	addl	$1, %r14d
	cmpl	%r14d, %ebx
	jle	.L38
	addq	$100, %r15
	testl	%r12d, %r12d
	jg	.L14
.L37:
	addl	$1, %r14d
	cmpl	%ebx, %r14d
	jl	.L22
.L13:
	testl	%r12d, %r12d
	jle	.L22
	leal	-1(%rbx), %eax
	leaq	16(%rsp), %r8
	leaq	20(%rsp,%rax,4), %r10
	leal	-1(%r12), %eax
	leaq	816(%rsp), %r9
	leaq	416(%rsp), %rbp
	leaq	420(%rsp,%rax,4), %rdi
	.p2align 4,,10
	.p2align 3
.L17:
	movl	(%r8), %esi
	movq	%rbp, %rax
	movq	%r9, %rdx
	leal	-1(%rsi), %ecx
	movslq	%ecx, %rcx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L18:
	addq	$4, %rax
	addl	$1, 416(%rsp,%rcx,4)
	addq	$4, %rdx
	cmpq	%rdi, %rax
	je	.L39
.L20:
	cmpl	(%rdx), %esi
	jne	.L18
	addl	$1, (%rax)
	addq	$4, %rax
	addq	$4, %rdx
	cmpq	%rdi, %rax
	jne	.L20
.L39:
	addq	$4, %r8
	addq	$400, %r9
	cmpq	%r10, %r8
	jne	.L17
	jmp	.L8
.L36:
	call	__stack_chk_fail@PLT
.L38:
	testl	%ebx, %ebx
	jg	.L13
	leaq	416(%rsp), %rbp
	testl	%r12d, %r12d
	jle	.L22
	jmp	.L8
	.cfi_endproc
.LFE23:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3976, %rsp
	.cfi_def_cfa_offset 40896
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	addq	$4, %r12
	cmpl	%ebp, %ebx
	jg	.L3
.L2:
	movl	8(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L35
	movslq	%r12d, %rdx
	leaq	416(%rsp), %rbp
	xorl	%esi, %esi
	salq	$2, %rdx
	movq	%rbp, %rdi
	call	memset@PLT
	testl	%ebx, %ebx
	jg	.L7
.L8:
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L21:
	movl	0(%rbp,%rbx,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L21
.L22:
	movq	40824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$40840, %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
.L35:
	.cfi_restore_state
	testl	%ebx, %ebx
	jle	.L22
.L7:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %r13
	testl	%r12d, %r12d
	jle	.L37
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	816(%rsp,%r15,4), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r12d
	addq	$4, %rbp
	cmpl	%ebx, %r12d
	jg	.L9
	movl	12(%rsp), %ebx
	addl	$1, %r14d
	cmpl	%r14d, %ebx
	jle	.L38
	addq	$100, %r15
	testl	%r12d, %r12d
	jg	.L14
.L37:
	addl	$1, %r14d
	cmpl	%ebx, %r14d
	jl	.L22
.L13:
	testl	%r12d, %r12d
	jle	.L22
	leal	-1(%rbx), %eax
	leaq	16(%rsp), %r8
	leaq	20(%rsp,%rax,4), %r10
	leal	-1(%r12), %eax
	leaq	816(%rsp), %r9
	leaq	416(%rsp), %rbp
	leaq	420(%rsp,%rax,4), %rdi
	.p2align 4,,10
	.p2align 3
.L17:
	movl	(%r8), %esi
	movq	%rbp, %rax
	movq	%r9, %rdx
	leal	-1(%rsi), %ecx
	movslq	%ecx, %rcx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L18:
	addq	$4, %rax
	addl	$1, 416(%rsp,%rcx,4)
	addq	$4, %rdx
	cmpq	%rdi, %rax
	je	.L39
.L20:
	cmpl	(%rdx), %esi
	jne	.L18
	addl	$1, (%rax)
	addq	$4, %rax
	addq	$4, %rdx
	cmpq	%rdi, %rax
	jne	.L20
.L39:
	addq	$4, %r8
	addq	$400, %r9
	cmpq	%r10, %r8
	jne	.L17
	jmp	.L8
.L36:
	call	__stack_chk_fail@PLT
.L38:
	testl	%ebx, %ebx
	jg	.L13
	leaq	416(%rsp), %rbp
	testl	%r12d, %r12d
	jle	.L22
	jmp	.L8
	.cfi_endproc
.LFE23:
	.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:

#include <stdio.h>

int main() {
	int i, k, n, m, target[100], point[100], game[100][100];
	scanf("%d %d", &n, &m);
	for( i = 0; i < m; i++) scanf("%d", &target[i]);
	for( i = 0; i < n; i++) point[i] = 0;
	for( i = 0; i < m; i++) {
		for( k = 0; k < n; k++) {
			scanf("%d", &game[i][k]);
		}
	}
	// ????¨?
	for( i = 0; i < m; i++) {
		for( k = 0; k < n; k++) {
			if(target[i] == game[i][k]) {
				point[k]++;
			} else {
				point[target[i] - 1]++;
			}
		}
	}
	for( i = 0; i < n; i++) printf("%d\n", point[i]);
	return 0;
}
3
4
1 2 3 2
1 1 2
3 2 2
1 1 3
2 2 2

3
4
5

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 i, k, n, m, target[100], point[100], game[100][100];
	scanf("%d %d", &n, &m);
	for( i = 0; i < m; i++) scanf("%d", &target[i]);
	for( i = 0; i < n; i++) point[i] = 0;
	for( i = 0; i < m; i++) {
		for( k = 0; k < n; k++) {
			scanf("%d", &game[i][k]);
		}
	}
	// ????¨?
	for( i = 0; i < m; i++) {
		for( k = 0; k < n; k++) {
			if(target[i] == game[i][k]) {
				point[k]++;
			} else {
				point[target[i] - 1]++;
			}
		}
	}
	for( i = 0; i < n; i++) printf("%d\n", point[i]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40828(%rbp), %rdx
	leaq	-40832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40824(%rbp)
	jmp	.L2
.L3:
	leaq	-40816(%rbp), %rdx
	movl	-40824(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40824(%rbp)
.L2:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L3
	movl	$0, -40824(%rbp)
	jmp	.L4
.L5:
	movl	-40824(%rbp), %eax
	cltq
	movl	$0, -40416(%rbp,%rax,4)
	addl	$1, -40824(%rbp)
.L4:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L5
	movl	$0, -40824(%rbp)
	jmp	.L6
.L9:
	movl	$0, -40820(%rbp)
	jmp	.L7
.L8:
	leaq	-40016(%rbp), %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40820(%rbp)
.L7:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L8
	addl	$1, -40824(%rbp)
.L6:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L9
	movl	$0, -40824(%rbp)
	jmp	.L10
.L15:
	movl	$0, -40820(%rbp)
	jmp	.L11
.L14:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-40016(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-40820(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-40820(%rbp), %eax
	cltq
	movl	%edx, -40416(%rbp,%rax,4)
	jmp	.L13
.L12:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40816(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-40416(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -40416(%rbp,%rax,4)
.L13:
	addl	$1, -40820(%rbp)
.L11:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L14
	addl	$1, -40824(%rbp)
.L10:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L15
	movl	$0, -40824(%rbp)
	jmp	.L16
.L17:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40824(%rbp)
.L16:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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"
.LC2:
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40828(%rbp), %rdx
	leaq	-40832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40824(%rbp)
	jmp	.L2
.L3:
	leaq	-40816(%rbp), %rdx
	movl	-40824(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40824(%rbp)
.L2:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L3
	movl	$0, -40824(%rbp)
	jmp	.L4
.L5:
	movl	-40824(%rbp), %eax
	cltq
	movl	$0, -40416(%rbp,%rax,4)
	addl	$1, -40824(%rbp)
.L4:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L5
	movl	$0, -40824(%rbp)
	jmp	.L6
.L9:
	movl	$0, -40820(%rbp)
	jmp	.L7
.L8:
	leaq	-40016(%rbp), %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40820(%rbp)
.L7:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L8
	addl	$1, -40824(%rbp)
.L6:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L9
	movl	$0, -40824(%rbp)
	jmp	.L10
.L15:
	movl	$0, -40820(%rbp)
	jmp	.L11
.L14:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-40016(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-40820(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-40820(%rbp), %eax
	cltq
	movl	%edx, -40416(%rbp,%rax,4)
	jmp	.L13
.L12:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40816(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-40416(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -40416(%rbp,%rax,4)
.L13:
	addl	$1, -40820(%rbp)
.L11:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L14
	addl	$1, -40824(%rbp)
.L10:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L15
	movl	$0, -40824(%rbp)
	jmp	.L16
.L17:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40824(%rbp)
.L16:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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:
