Given the following C code and 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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.
Optimized Assembly Code:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```