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,j,n,a,num;
    int data[200][3];
    int sum[200] = {};
    scanf("%d",&n);
    for(k = 0;k<n;k++){
        for(i = 0;i<3;i++){
            scanf("%d",&data[k][i]);
        }
    }
    for(i = 0;i<3;i++){
        for(j = 0;j<n;j++){
            a = j;
            num = data[a][i];
            for(k = j+1;k<n;k++){
                if(data[k][i] == num){
                    data[k][i] = 0;
                    data[a][i] = 0;
                }
            }
        }
    }
    for(k = 0;k<n;k++){
        for(i = 0;i<3;i++){
            sum[k] = sum[k] + data[k][i];
        }
    }
    for(k = 0;k<n;k++){
        printf("%d\n",sum[k]);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%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
	subq	$3248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3216(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-3240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3232(%rbp)
	jmp	.L2
.L5:
	movl	$0, -3236(%rbp)
	jmp	.L3
.L4:
	leaq	-2416(%rbp), %rcx
	movl	-3236(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3236(%rbp)
.L3:
	cmpl	$2, -3236(%rbp)
	jle	.L4
	addl	$1, -3232(%rbp)
.L2:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L5
	movl	$0, -3236(%rbp)
	jmp	.L6
.L12:
	movl	$0, -3228(%rbp)
	jmp	.L7
.L11:
	movl	-3228(%rbp), %eax
	movl	%eax, -3224(%rbp)
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3224(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-2416(%rbp,%rax,4), %eax
	movl	%eax, -3220(%rbp)
	movl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3232(%rbp)
	jmp	.L8
.L10:
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-2416(%rbp,%rax,4), %eax
	cmpl	%eax, -3220(%rbp)
	jne	.L9
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -2416(%rbp,%rax,4)
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3224(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -2416(%rbp,%rax,4)
.L9:
	addl	$1, -3232(%rbp)
.L8:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L10
	addl	$1, -3228(%rbp)
.L7:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L11
	addl	$1, -3236(%rbp)
.L6:
	cmpl	$2, -3236(%rbp)
	jle	.L12
	movl	$0, -3232(%rbp)
	jmp	.L13
.L16:
	movl	$0, -3236(%rbp)
	jmp	.L14
.L15:
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %ecx
	movl	-3236(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-2416(%rbp,%rax,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -3216(%rbp,%rax,4)
	addl	$1, -3236(%rbp)
.L14:
	cmpl	$2, -3236(%rbp)
	jle	.L15
	addl	$1, -3232(%rbp)
.L13:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L16
	movl	$0, -3232(%rbp)
	jmp	.L17
.L18:
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3232(%rbp)
.L17:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L18
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$100, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$3232, %rsp
	.cfi_def_cfa_offset 3280
	movq	%fs:40, %rax
	movq	%rax, 3224(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	rep stosq
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	leaq	816(%rsp), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	leaq	4(%r12), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	8(%r12), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$12, %r12
	cmpl	%r14d, %ecx
	jg	.L3
	testl	%ecx, %ecx
	jle	.L14
	leaq	828(%rsp), %r11
	xorl	%r10d, %r10d
.L9:
	movl	-12(%r11), %esi
	movq	%r11, %rdi
	movl	$1, %r8d
	movslq	%r10d, %r9
	cmpl	$1, %ecx
	je	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%rdi, %rax
	movl	%r8d, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%esi, (%rax)
	jne	.L6
	movl	$0, (%rax)
	movl	$0, -12(%rdi)
.L6:
	addl	$1, %edx
	addq	$12, %rax
	cmpl	%edx, %ecx
	jg	.L7
	movslq	%r8d, %rax
	addl	$1, %r8d
	addq	$12, %rdi
	leaq	(%rax,%rax,2), %rax
	addq	%r9, %rax
	movl	816(%rsp,%rax,4), %esi
	cmpl	%r8d, %ecx
	jne	.L11
.L5:
	addq	$1, %r10
	addq	$4, %r11
	cmpq	$3, %r10
	jne	.L9
	leal	-1(%rcx), %eax
	movq	%rbp, %rdx
	leaq	20(%rsp,%rax,4), %rcx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rbx), %eax
	addl	(%rdx), %eax
	addq	$4, %rdx
	addq	$12, %rbx
	addl	-8(%rbx), %eax
	addl	-4(%rbx), %eax
	movl	%eax, -4(%rdx)
	cmpq	%rdx, %rcx
	jne	.L12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L13:
	movl	0(%rbp,%rbx,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L13
.L14:
	movq	3224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$3232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L29:
	.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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$100, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$3232, %rsp
	.cfi_def_cfa_offset 3280
	movq	%fs:40, %rax
	movq	%rax, 3224(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	rep stosq
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	leaq	816(%rsp), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	leaq	4(%r12), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	8(%r12), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$12, %r12
	cmpl	%r14d, %ecx
	jg	.L3
	testl	%ecx, %ecx
	jle	.L14
	leaq	828(%rsp), %r11
	xorl	%r10d, %r10d
.L9:
	movl	-12(%r11), %esi
	movq	%r11, %rdi
	movl	$1, %r8d
	movslq	%r10d, %r9
	cmpl	$1, %ecx
	je	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%rdi, %rax
	movl	%r8d, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%esi, (%rax)
	jne	.L6
	movl	$0, (%rax)
	movl	$0, -12(%rdi)
.L6:
	addl	$1, %edx
	addq	$12, %rax
	cmpl	%edx, %ecx
	jg	.L7
	movslq	%r8d, %rax
	addl	$1, %r8d
	addq	$12, %rdi
	leaq	(%rax,%rax,2), %rax
	addq	%r9, %rax
	movl	816(%rsp,%rax,4), %esi
	cmpl	%r8d, %ecx
	jne	.L11
.L5:
	addq	$1, %r10
	addq	$4, %r11
	cmpq	$3, %r10
	jne	.L9
	leal	-1(%rcx), %eax
	movq	%rbp, %rdx
	leaq	20(%rsp,%rax,4), %rcx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rbx), %eax
	addl	(%rdx), %eax
	addq	$4, %rdx
	addq	$12, %rbx
	addl	-8(%rbx), %eax
	addl	-4(%rbx), %eax
	movl	%eax, -4(%rdx)
	cmpq	%rdx, %rcx
	jne	.L12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L13:
	movl	0(%rbp,%rbx,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L13
.L14:
	movq	3224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$3232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L29:
	.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(){
    int i,k,j,n,a,num;
    int data[200][3];
    int sum[200] = {};
    scanf("%d",&n);
    for(k = 0;k<n;k++){
        for(i = 0;i<3;i++){
            scanf("%d",&data[k][i]);
        }
    }
    for(i = 0;i<3;i++){
        for(j = 0;j<n;j++){
            a = j;
            num = data[a][i];
            for(k = j+1;k<n;k++){
                if(data[k][i] == num){
                    data[k][i] = 0;
                    data[a][i] = 0;
                }
            }
        }
    }
    for(k = 0;k<n;k++){
        for(i = 0;i<3;i++){
            sum[k] = sum[k] + data[k][i];
        }
    }
    for(k = 0;k<n;k++){
        printf("%d\n",sum[k]);
    }
    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(){
    int i,k,j,n,a,num;
    int data[200][3];
    int sum[200] = {};
    scanf("%d",&n);
    for(k = 0;k<n;k++){
        for(i = 0;i<3;i++){
            scanf("%d",&data[k][i]);
        }
    }
    for(i = 0;i<3;i++){
        for(j = 0;j<n;j++){
            a = j;
            num = data[a][i];
            for(k = j+1;k<n;k++){
                if(data[k][i] == num){
                    data[k][i] = 0;
                    data[a][i] = 0;
                }
            }
        }
    }
    for(k = 0;k<n;k++){
        for(i = 0;i<3;i++){
            sum[k] = sum[k] + data[k][i];
        }
    }
    for(k = 0;k<n;k++){
        printf("%d\n",sum[k]);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%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
	subq	$3248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3216(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-3240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3232(%rbp)
	jmp	.L2
.L5:
	movl	$0, -3236(%rbp)
	jmp	.L3
.L4:
	leaq	-2416(%rbp), %rcx
	movl	-3236(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3236(%rbp)
.L3:
	cmpl	$2, -3236(%rbp)
	jle	.L4
	addl	$1, -3232(%rbp)
.L2:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L5
	movl	$0, -3236(%rbp)
	jmp	.L6
.L12:
	movl	$0, -3228(%rbp)
	jmp	.L7
.L11:
	movl	-3228(%rbp), %eax
	movl	%eax, -3224(%rbp)
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3224(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-2416(%rbp,%rax,4), %eax
	movl	%eax, -3220(%rbp)
	movl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3232(%rbp)
	jmp	.L8
.L10:
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-2416(%rbp,%rax,4), %eax
	cmpl	%eax, -3220(%rbp)
	jne	.L9
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -2416(%rbp,%rax,4)
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3224(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -2416(%rbp,%rax,4)
.L9:
	addl	$1, -3232(%rbp)
.L8:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L10
	addl	$1, -3228(%rbp)
.L7:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L11
	addl	$1, -3236(%rbp)
.L6:
	cmpl	$2, -3236(%rbp)
	jle	.L12
	movl	$0, -3232(%rbp)
	jmp	.L13
.L16:
	movl	$0, -3236(%rbp)
	jmp	.L14
.L15:
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %ecx
	movl	-3236(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-2416(%rbp,%rax,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -3216(%rbp,%rax,4)
	addl	$1, -3236(%rbp)
.L14:
	cmpl	$2, -3236(%rbp)
	jle	.L15
	addl	$1, -3232(%rbp)
.L13:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L16
	movl	$0, -3232(%rbp)
	jmp	.L17
.L18:
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3232(%rbp)
.L17:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L18
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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\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	$3248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3216(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-3240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3232(%rbp)
	jmp	.L2
.L5:
	movl	$0, -3236(%rbp)
	jmp	.L3
.L4:
	leaq	-2416(%rbp), %rcx
	movl	-3236(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3236(%rbp)
.L3:
	cmpl	$2, -3236(%rbp)
	jle	.L4
	addl	$1, -3232(%rbp)
.L2:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L5
	movl	$0, -3236(%rbp)
	jmp	.L6
.L12:
	movl	$0, -3228(%rbp)
	jmp	.L7
.L11:
	movl	-3228(%rbp), %eax
	movl	%eax, -3224(%rbp)
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3224(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-2416(%rbp,%rax,4), %eax
	movl	%eax, -3220(%rbp)
	movl	-3228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -3232(%rbp)
	jmp	.L8
.L10:
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-2416(%rbp,%rax,4), %eax
	cmpl	%eax, -3220(%rbp)
	jne	.L9
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -2416(%rbp,%rax,4)
	movl	-3236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3224(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -2416(%rbp,%rax,4)
.L9:
	addl	$1, -3232(%rbp)
.L8:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L10
	addl	$1, -3228(%rbp)
.L7:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L11
	addl	$1, -3236(%rbp)
.L6:
	cmpl	$2, -3236(%rbp)
	jle	.L12
	movl	$0, -3232(%rbp)
	jmp	.L13
.L16:
	movl	$0, -3236(%rbp)
	jmp	.L14
.L15:
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %ecx
	movl	-3236(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-2416(%rbp,%rax,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -3216(%rbp,%rax,4)
	addl	$1, -3236(%rbp)
.L14:
	cmpl	$2, -3236(%rbp)
	jle	.L15
	addl	$1, -3232(%rbp)
.L13:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L16
	movl	$0, -3232(%rbp)
	jmp	.L17
.L18:
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3232(%rbp)
.L17:
	movl	-3240(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L18
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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:
