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(void)
{
    int n;
    int score[256][3] = {0};
    int i, j;

    scanf("%d", &n);
    for (i = 0; i < n; i++){
        scanf("%d %d %d", score[i], score[i] + 1, score[i] + 2);
    }
    for (i = 0; i < 3; i++){
        int num[128] = {0};
        for (j = 0; j < n; j++){
            num[score[j][i]]++;
        }
        for (j = 0; j < n; j++){
            if (num[score[j][i]] > 1){
                score[j][i] = 0;
            }
        }
    }
    for (i = 0; i < n; i++){
        printf("%d\n", score[i][0] + score[i][1] + score[i][2]);
    }

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %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
	subq	$3616, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3088(%rbp), %rdx
	movl	$0, %eax
	movl	$384, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-3612(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3608(%rbp)
	jmp	.L2
.L3:
	leaq	-3088(%rbp), %rcx
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	8(%rax), %rcx
	leaq	-3088(%rbp), %rsi
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	4(%rax), %rdx
	leaq	-3088(%rbp), %rdi
	movl	-3608(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3608(%rbp)
.L2:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3608(%rbp)
	jl	.L3
	movl	$0, -3608(%rbp)
	jmp	.L4
.L10:
	leaq	-3600(%rbp), %rdx
	movl	$0, %eax
	movl	$64, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3604(%rbp)
	jmp	.L5
.L6:
	movl	-3608(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3604(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-3088(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-3600(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -3600(%rbp,%rax,4)
	addl	$1, -3604(%rbp)
.L5:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3604(%rbp)
	jl	.L6
	movl	$0, -3604(%rbp)
	jmp	.L7
.L9:
	movl	-3608(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3604(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-3088(%rbp,%rax,4), %eax
	cltq
	movl	-3600(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L8
	movl	-3608(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3604(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -3088(%rbp,%rax,4)
.L8:
	addl	$1, -3604(%rbp)
.L7:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3604(%rbp)
	jl	.L9
	addl	$1, -3608(%rbp)
.L4:
	cmpl	$2, -3608(%rbp)
	jle	.L10
	movl	$0, -3608(%rbp)
	jmp	.L11
.L12:
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$3088, %rax
	movl	(%rax), %ecx
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$3084, %rax
	movl	(%rax), %eax
	addl	%eax, %ecx
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$3080, %rax
	movl	(%rax), %eax
	addl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3608(%rbp)
.L11:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3608(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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"
.LC1:
	.string	"%d %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
	movl	$384, %ecx
	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
	subq	$3624, %rsp
	.cfi_def_cfa_offset 3664
	movq	%fs:40, %rax
	movq	%rax, 3608(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rbp), %rcx
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	cmpl	%r12d, %r8d
	jg	.L3
.L2:
	leal	-1(%r8), %eax
	leaq	540(%rsp), %r11
	movq	%rbx, %r9
	leaq	(%rax,%rax,2), %rax
	leaq	16(%rsp), %r10
	leaq	(%r11,%rax,4), %rsi
	xorl	%eax, %eax
.L5:
	movl	$64, %ecx
	movq	%r10, %rdi
	movq	%r9, %rdx
	rep stosq
	testl	%r8d, %r8d
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	(%rdx), %rcx
	addq	$12, %rdx
	addl	$1, 16(%rsp,%rcx,4)
	cmpq	%rdx, %rsi
	jne	.L4
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	(%rdx), %rcx
	cmpl	$1, 16(%rsp,%rcx,4)
	jle	.L7
	movl	$0, (%rdx)
.L7:
	addq	$12, %rdx
	cmpq	%rdx, %rsi
	jne	.L8
.L9:
	addq	$4, %r9
	addq	$4, %rsi
	cmpq	%r11, %r9
	jne	.L5
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r12
	testl	%r8d, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	4(%rbx), %edx
	movq	%r12, %rsi
	addl	(%rbx), %edx
	movl	$1, %edi
	addl	8(%rbx), %edx
	xorl	%eax, %eax
	addl	$1, %ebp
	addq	$12, %rbx
	call	__printf_chk@PLT
	cmpl	%ebp, 12(%rsp)
	jg	.L10
.L11:
	movq	3608(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$3624, %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
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.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"
.LC1:
	.string	"%d %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
	movl	$384, %ecx
	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
	subq	$3624, %rsp
	.cfi_def_cfa_offset 3664
	movq	%fs:40, %rax
	movq	%rax, 3608(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rbp), %rcx
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	cmpl	%r12d, %r8d
	jg	.L3
.L2:
	leal	-1(%r8), %eax
	leaq	540(%rsp), %r11
	movq	%rbx, %r9
	leaq	(%rax,%rax,2), %rax
	leaq	16(%rsp), %r10
	leaq	(%r11,%rax,4), %rsi
	xorl	%eax, %eax
.L5:
	movl	$64, %ecx
	movq	%r10, %rdi
	movq	%r9, %rdx
	rep stosq
	testl	%r8d, %r8d
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	(%rdx), %rcx
	addq	$12, %rdx
	addl	$1, 16(%rsp,%rcx,4)
	cmpq	%rdx, %rsi
	jne	.L4
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	(%rdx), %rcx
	cmpl	$1, 16(%rsp,%rcx,4)
	jle	.L7
	movl	$0, (%rdx)
.L7:
	addq	$12, %rdx
	cmpq	%rdx, %rsi
	jne	.L8
.L9:
	addq	$4, %r9
	addq	$4, %rsi
	cmpq	%r11, %r9
	jne	.L5
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r12
	testl	%r8d, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	4(%rbx), %edx
	movq	%r12, %rsi
	addl	(%rbx), %edx
	movl	$1, %edi
	addl	8(%rbx), %edx
	xorl	%eax, %eax
	addl	$1, %ebp
	addq	$12, %rbx
	call	__printf_chk@PLT
	cmpl	%ebp, 12(%rsp)
	jg	.L10
.L11:
	movq	3608(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$3624, %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
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.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(void)
{
    int n;
    int score[256][3] = {0};
    int i, j;

    scanf("%d", &n);
    for (i = 0; i < n; i++){
        scanf("%d %d %d", score[i], score[i] + 1, score[i] + 2);
    }
    for (i = 0; i < 3; i++){
        int num[128] = {0};
        for (j = 0; j < n; j++){
            num[score[j][i]]++;
        }
        for (j = 0; j < n; j++){
            if (num[score[j][i]] > 1){
                score[j][i] = 0;
            }
        }
    }
    for (i = 0; i < n; i++){
        printf("%d\n", score[i][0] + score[i][1] + score[i][2]);
    }

    return 0;
}
5
100 99 98
100 97 68
63 89 63
99 99 99
89 97 98
 5
100 99 98
100 97 68
63 89 63
68 99 99
89 97 98
 5
100 99 98
100 97 92
63 53 63
99 99 99
89 97 98
 5
100 99 98
100 97 68
63 89 63
68 99 79
89 97 98
 5
100 99 98
100 97 92
63 32 63
99 99 99
89 97 98
 5
100 99 98
100 97 68
63 89 25
68 99 79
89 97 98
 5
100 99 98
000 97 92
63 32 63
99 99 99
89 97 98
 5
100 1 98
100 97 68
63 89 25
68 99 79
89 97 98
 5
100 1 98
100 97 68
44 89 25
68 99 79
89 97 98
 5
100 1 98
100 97 68
16 89 25
68 99 79
89 97 98

0
68
215
198
89
 0
68
215
167
89
 0
92
179
198
89
 0
68
215
147
89
 0
92
158
198
89
 0
68
177
147
89
 100
92
158
198
89
 1
68
177
246
89
 1
68
158
246
89
 1
68
130
246
89

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(void)
{
    int n;
    int score[256][3] = {0};
    int i, j;

    scanf("%d", &n);
    for (i = 0; i < n; i++){
        scanf("%d %d %d", score[i], score[i] + 1, score[i] + 2);
    }
    for (i = 0; i < 3; i++){
        int num[128] = {0};
        for (j = 0; j < n; j++){
            num[score[j][i]]++;
        }
        for (j = 0; j < n; j++){
            if (num[score[j][i]] > 1){
                score[j][i] = 0;
            }
        }
    }
    for (i = 0; i < n; i++){
        printf("%d\n", score[i][0] + score[i][1] + score[i][2]);
    }

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %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
	subq	$3616, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3088(%rbp), %rdx
	movl	$0, %eax
	movl	$384, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-3612(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3608(%rbp)
	jmp	.L2
.L3:
	leaq	-3088(%rbp), %rcx
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	8(%rax), %rcx
	leaq	-3088(%rbp), %rsi
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	4(%rax), %rdx
	leaq	-3088(%rbp), %rdi
	movl	-3608(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3608(%rbp)
.L2:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3608(%rbp)
	jl	.L3
	movl	$0, -3608(%rbp)
	jmp	.L4
.L10:
	leaq	-3600(%rbp), %rdx
	movl	$0, %eax
	movl	$64, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3604(%rbp)
	jmp	.L5
.L6:
	movl	-3608(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3604(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-3088(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-3600(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -3600(%rbp,%rax,4)
	addl	$1, -3604(%rbp)
.L5:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3604(%rbp)
	jl	.L6
	movl	$0, -3604(%rbp)
	jmp	.L7
.L9:
	movl	-3608(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3604(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-3088(%rbp,%rax,4), %eax
	cltq
	movl	-3600(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L8
	movl	-3608(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3604(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -3088(%rbp,%rax,4)
.L8:
	addl	$1, -3604(%rbp)
.L7:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3604(%rbp)
	jl	.L9
	addl	$1, -3608(%rbp)
.L4:
	cmpl	$2, -3608(%rbp)
	jle	.L10
	movl	$0, -3608(%rbp)
	jmp	.L11
.L12:
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$3088, %rax
	movl	(%rax), %ecx
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$3084, %rax
	movl	(%rax), %eax
	addl	%eax, %ecx
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$3080, %rax
	movl	(%rax), %eax
	addl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3608(%rbp)
.L11:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3608(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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"
.LC1:
	.string	"%d %d %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
	subq	$3616, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3088(%rbp), %rdx
	movl	$0, %eax
	movl	$384, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-3612(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3608(%rbp)
	jmp	.L2
.L3:
	leaq	-3088(%rbp), %rcx
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	8(%rax), %rcx
	leaq	-3088(%rbp), %rsi
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	4(%rax), %rdx
	leaq	-3088(%rbp), %rdi
	movl	-3608(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3608(%rbp)
.L2:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3608(%rbp)
	jl	.L3
	movl	$0, -3608(%rbp)
	jmp	.L4
.L10:
	leaq	-3600(%rbp), %rdx
	movl	$0, %eax
	movl	$64, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3604(%rbp)
	jmp	.L5
.L6:
	movl	-3608(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3604(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-3088(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-3600(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -3600(%rbp,%rax,4)
	addl	$1, -3604(%rbp)
.L5:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3604(%rbp)
	jl	.L6
	movl	$0, -3604(%rbp)
	jmp	.L7
.L9:
	movl	-3608(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3604(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-3088(%rbp,%rax,4), %eax
	cltq
	movl	-3600(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L8
	movl	-3608(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3604(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -3088(%rbp,%rax,4)
.L8:
	addl	$1, -3604(%rbp)
.L7:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3604(%rbp)
	jl	.L9
	addl	$1, -3608(%rbp)
.L4:
	cmpl	$2, -3608(%rbp)
	jle	.L10
	movl	$0, -3608(%rbp)
	jmp	.L11
.L12:
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$3088, %rax
	movl	(%rax), %ecx
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$3084, %rax
	movl	(%rax), %eax
	addl	%eax, %ecx
	movl	-3608(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$3080, %rax
	movl	(%rax), %eax
	addl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3608(%rbp)
.L11:
	movl	-3612(%rbp), %eax
	cmpl	%eax, -3608(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
