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>
#include <string.h>

int main (void){

	int number=0;
	int i=0;
	int j=0;
	int input_first[200]={0};
	int input_second[200]={0};
	int input_third[200]={0};
	int check_num=0;
	int result[200]={0};
	int count=0;


	scanf("%d", &number);
	while(i < number){
		
		scanf("%d",&input_first[i]);
		scanf("%d",&input_second[i]);
		scanf("%d",&input_third[i]);
		i++;

	}

	i=0;
	while(i < number){
		j=0;
			check_num = input_first[i];
			while(j < number){	
				if( i == j){
					j++;
					continue;
				}
				if(check_num == input_first[j]){
					input_first[j] = 0;
					input_first[i] = 0;
				}
				j++;
			}

			check_num = input_second[i];
			j=0;
			while(j < number){
				if( i == j){
					j++;
					continue;
				}
				if(check_num == input_second[j]){
					input_second[j] = 0;
					input_second[i] = 0;
				}
				j++;
			}

			check_num = input_third[i];
			j=0;
			while(j < number){
				if( i == j){
					j++;
					continue;
				}
				if(check_num == input_third[j]){
					input_third[j] = 0;
					input_third[i] = 0;
				}
				j++;
			}
	i++;
	}
	for ( i=0; i < number; i++){
		result[i] += input_first[i];
		result[i] += input_second[i];
		result[i] += input_third[i];
	}


	for ( i=0; i < number; i++){
		printf("%d\n",result[i] );
	}




	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
	movl	$0, -3236(%rbp)
	movl	$0, -3232(%rbp)
	movl	$0, -3228(%rbp)
	leaq	-3216(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2416(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3224(%rbp)
	leaq	-816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3220(%rbp)
	leaq	-3236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L3:
	leaq	-3216(%rbp), %rdx
	movl	-3232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-2416(%rbp), %rdx
	movl	-3232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1616(%rbp), %rdx
	movl	-3232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3232(%rbp)
.L2:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L3
	movl	$0, -3232(%rbp)
	jmp	.L4
.L17:
	movl	$0, -3228(%rbp)
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	%eax, -3224(%rbp)
	jmp	.L5
.L8:
	movl	-3232(%rbp), %eax
	cmpl	-3228(%rbp), %eax
	jne	.L6
	addl	$1, -3228(%rbp)
	jmp	.L5
.L6:
	movl	-3228(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cmpl	%eax, -3224(%rbp)
	jne	.L7
	movl	-3228(%rbp), %eax
	cltq
	movl	$0, -3216(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	$0, -3216(%rbp,%rax,4)
.L7:
	addl	$1, -3228(%rbp)
.L5:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L8
	movl	-3232(%rbp), %eax
	cltq
	movl	-2416(%rbp,%rax,4), %eax
	movl	%eax, -3224(%rbp)
	movl	$0, -3228(%rbp)
	jmp	.L9
.L12:
	movl	-3232(%rbp), %eax
	cmpl	-3228(%rbp), %eax
	jne	.L10
	addl	$1, -3228(%rbp)
	jmp	.L9
.L10:
	movl	-3228(%rbp), %eax
	cltq
	movl	-2416(%rbp,%rax,4), %eax
	cmpl	%eax, -3224(%rbp)
	jne	.L11
	movl	-3228(%rbp), %eax
	cltq
	movl	$0, -2416(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	$0, -2416(%rbp,%rax,4)
.L11:
	addl	$1, -3228(%rbp)
.L9:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L12
	movl	-3232(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -3224(%rbp)
	movl	$0, -3228(%rbp)
	jmp	.L13
.L16:
	movl	-3232(%rbp), %eax
	cmpl	-3228(%rbp), %eax
	jne	.L14
	addl	$1, -3228(%rbp)
	jmp	.L13
.L14:
	movl	-3228(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -3224(%rbp)
	jne	.L15
	movl	-3228(%rbp), %eax
	cltq
	movl	$0, -1616(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	$0, -1616(%rbp,%rax,4)
.L15:
	addl	$1, -3228(%rbp)
.L13:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L16
	addl	$1, -3232(%rbp)
.L4:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L17
	movl	$0, -3232(%rbp)
	jmp	.L18
.L19:
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	-2416(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -3232(%rbp)
.L18:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L19
	movl	$0, -3232(%rbp)
	jmp	.L20
.L21:
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3232(%rbp)
.L20:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L21
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$100, %ecx
	leaq	.LC0(%rip), %r15
	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
	subq	$3272, %rsp
	.cfi_def_cfa_offset 3328
	movq	%fs:40, %rax
	movq	%rax, 3256(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %r13
	leaq	848(%rsp), %rbp
	movl	$0, 44(%rsp)
	movq	%r13, %rdi
	leaq	1648(%rsp), %rbx
	leaq	44(%rsp), %rsi
	leaq	2448(%rsp), %r12
	rep stosq
	movl	$100, %ecx
	movq	%rbp, %rdi
	rep stosq
	movl	$100, %ecx
	movq	%rbx, %rdi
	rep stosq
	movl	$100, %ecx
	movq	%r12, %rdi
	rep stosq
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r14d, %r14d
	xorl	%r10d, %r10d
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	0(%r13,%r14), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	movl	%r10d, 28(%rsp)
	movq	%r13, 16(%rsp)
	call	__isoc99_scanf@PLT
	leaq	0(%rbp,%r14), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	movq	%rbp, 8(%rsp)
	call	__isoc99_scanf@PLT
	leaq	(%rbx,%r14), %rsi
	xorl	%eax, %eax
	movq	%r15, %rdi
	movq	%rbx, (%rsp)
	addq	$4, %r14
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r10d
	movl	44(%rsp), %r9d
	movq	(%rsp), %rcx
	movq	8(%rsp), %r8
	addl	$1, %r10d
	movq	16(%rsp), %rdx
	cmpl	%r10d, %r9d
	jg	.L3
	testl	%r9d, %r9d
	jle	.L2
	xorl	%esi, %esi
	leal	-1(%r9), %r11d
	movl	%r9d, %edi
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rdx), %r10d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%eax, %esi
	je	.L4
	cmpl	%r10d, 0(%r13,%rax,4)
	jne	.L4
	movl	$0, 0(%r13,%rax,4)
	movl	$0, (%rdx)
.L4:
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L5
	movl	(%r8), %r10d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%eax, %esi
	je	.L6
	cmpl	%r10d, 0(%rbp,%rax,4)
	jne	.L6
	movl	$0, 0(%rbp,%rax,4)
	movl	$0, (%r8)
.L6:
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L7
	movl	(%rcx), %r10d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%eax, %esi
	je	.L8
	cmpl	%r10d, (%rbx,%rax,4)
	jne	.L8
	movl	$0, (%rbx,%rax,4)
	movl	$0, (%rcx)
.L8:
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L9
	addl	$1, %esi
	addq	$4, %rdx
	addq	$4, %rcx
	addq	$4, %r8
	cmpl	%esi, %r9d
	jne	.L10
	cmpl	$2, %r11d
	jbe	.L20
	movl	%r9d, %edx
	xorl	%eax, %eax
	shrl	$2, %edx
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movdqa	0(%r13,%rax), %xmm0
	paddd	(%r12,%rax), %xmm0
	paddd	0(%rbp,%rax), %xmm0
	paddd	(%rbx,%rax), %xmm0
	movaps	%xmm0, (%r12,%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L12
	movl	%r9d, %eax
	andl	$-4, %eax
	movl	%eax, %edx
	cmpl	%eax, %r9d
	je	.L16
.L11:
	subl	%eax, %r9d
	cmpl	$1, %r9d
	je	.L14
	salq	$2, %rax
	leaq	(%r12,%rax), %rcx
	movq	48(%rsp,%rax), %xmm0
	movq	(%rcx), %xmm1
	paddd	%xmm1, %xmm0
	movq	848(%rsp,%rax), %xmm1
	paddd	%xmm1, %xmm0
	movq	1648(%rsp,%rax), %xmm1
	movl	%r9d, %eax
	andl	$-2, %eax
	addl	%eax, %edx
	paddd	%xmm1, %xmm0
	movq	%xmm0, (%rcx)
	cmpl	%eax, %r9d
	je	.L16
.L14:
	movslq	%edx, %rdx
	movl	48(%rsp,%rdx,4), %eax
	addl	2448(%rsp,%rdx,4), %eax
	addl	848(%rsp,%rdx,4), %eax
	addl	1648(%rsp,%rdx,4), %eax
	movl	%eax, 2448(%rsp,%rdx,4)
.L16:
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L17:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 44(%rsp)
	jg	.L17
.L18:
	movq	3256(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$3272, %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
.L2:
	.cfi_restore_state
	cmpl	$0, 44(%rsp)
	jle	.L18
	jmp	.L16
.L20:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L11
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$100, %ecx
	leaq	.LC0(%rip), %r15
	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
	subq	$3272, %rsp
	.cfi_def_cfa_offset 3328
	movq	%fs:40, %rax
	movq	%rax, 3256(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %r13
	leaq	848(%rsp), %rbp
	movl	$0, 44(%rsp)
	movq	%r13, %rdi
	leaq	1648(%rsp), %rbx
	leaq	44(%rsp), %rsi
	leaq	2448(%rsp), %r12
	rep stosq
	movl	$100, %ecx
	movq	%rbp, %rdi
	rep stosq
	movl	$100, %ecx
	movq	%rbx, %rdi
	rep stosq
	movl	$100, %ecx
	movq	%r12, %rdi
	rep stosq
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r14d, %r14d
	xorl	%r10d, %r10d
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	0(%r13,%r14), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	movl	%r10d, 28(%rsp)
	movq	%r13, 16(%rsp)
	call	__isoc99_scanf@PLT
	leaq	0(%rbp,%r14), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	movq	%rbp, 8(%rsp)
	call	__isoc99_scanf@PLT
	leaq	(%rbx,%r14), %rsi
	xorl	%eax, %eax
	movq	%r15, %rdi
	movq	%rbx, (%rsp)
	addq	$4, %r14
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r10d
	movl	44(%rsp), %r9d
	movq	(%rsp), %rcx
	movq	8(%rsp), %r8
	addl	$1, %r10d
	movq	16(%rsp), %rdx
	cmpl	%r10d, %r9d
	jg	.L3
	testl	%r9d, %r9d
	jle	.L2
	xorl	%esi, %esi
	leal	-1(%r9), %r11d
	movl	%r9d, %edi
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rdx), %r10d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%eax, %esi
	je	.L4
	cmpl	%r10d, 0(%r13,%rax,4)
	jne	.L4
	movl	$0, 0(%r13,%rax,4)
	movl	$0, (%rdx)
.L4:
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L5
	movl	(%r8), %r10d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%eax, %esi
	je	.L6
	cmpl	%r10d, 0(%rbp,%rax,4)
	jne	.L6
	movl	$0, 0(%rbp,%rax,4)
	movl	$0, (%r8)
.L6:
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L7
	movl	(%rcx), %r10d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%eax, %esi
	je	.L8
	cmpl	%r10d, (%rbx,%rax,4)
	jne	.L8
	movl	$0, (%rbx,%rax,4)
	movl	$0, (%rcx)
.L8:
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L9
	addl	$1, %esi
	addq	$4, %rdx
	addq	$4, %rcx
	addq	$4, %r8
	cmpl	%esi, %r9d
	jne	.L10
	cmpl	$2, %r11d
	jbe	.L20
	movl	%r9d, %edx
	xorl	%eax, %eax
	shrl	$2, %edx
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movdqa	0(%r13,%rax), %xmm0
	paddd	(%r12,%rax), %xmm0
	paddd	0(%rbp,%rax), %xmm0
	paddd	(%rbx,%rax), %xmm0
	movaps	%xmm0, (%r12,%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L12
	movl	%r9d, %eax
	andl	$-4, %eax
	movl	%eax, %edx
	cmpl	%eax, %r9d
	je	.L16
.L11:
	subl	%eax, %r9d
	cmpl	$1, %r9d
	je	.L14
	salq	$2, %rax
	leaq	(%r12,%rax), %rcx
	movq	48(%rsp,%rax), %xmm0
	movq	(%rcx), %xmm1
	paddd	%xmm1, %xmm0
	movq	848(%rsp,%rax), %xmm1
	paddd	%xmm1, %xmm0
	movq	1648(%rsp,%rax), %xmm1
	movl	%r9d, %eax
	andl	$-2, %eax
	addl	%eax, %edx
	paddd	%xmm1, %xmm0
	movq	%xmm0, (%rcx)
	cmpl	%eax, %r9d
	je	.L16
.L14:
	movslq	%edx, %rdx
	movl	48(%rsp,%rdx,4), %eax
	addl	2448(%rsp,%rdx,4), %eax
	addl	848(%rsp,%rdx,4), %eax
	addl	1648(%rsp,%rdx,4), %eax
	movl	%eax, 2448(%rsp,%rdx,4)
.L16:
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L17:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 44(%rsp)
	jg	.L17
.L18:
	movq	3256(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$3272, %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
.L2:
	.cfi_restore_state
	cmpl	$0, 44(%rsp)
	jle	.L18
	jmp	.L16
.L20:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L11
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include <string.h>

int main (void){

	int number=0;
	int i=0;
	int j=0;
	int input_first[200]={0};
	int input_second[200]={0};
	int input_third[200]={0};
	int check_num=0;
	int result[200]={0};
	int count=0;


	scanf("%d", &number);
	while(i < number){
		
		scanf("%d",&input_first[i]);
		scanf("%d",&input_second[i]);
		scanf("%d",&input_third[i]);
		i++;

	}

	i=0;
	while(i < number){
		j=0;
			check_num = input_first[i];
			while(j < number){	
				if( i == j){
					j++;
					continue;
				}
				if(check_num == input_first[j]){
					input_first[j] = 0;
					input_first[i] = 0;
				}
				j++;
			}

			check_num = input_second[i];
			j=0;
			while(j < number){
				if( i == j){
					j++;
					continue;
				}
				if(check_num == input_second[j]){
					input_second[j] = 0;
					input_second[i] = 0;
				}
				j++;
			}

			check_num = input_third[i];
			j=0;
			while(j < number){
				if( i == j){
					j++;
					continue;
				}
				if(check_num == input_third[j]){
					input_third[j] = 0;
					input_third[i] = 0;
				}
				j++;
			}
	i++;
	}
	for ( i=0; i < number; i++){
		result[i] += input_first[i];
		result[i] += input_second[i];
		result[i] += input_third[i];
	}


	for ( i=0; i < number; i++){
		printf("%d\n",result[i] );
	}




	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>
#include <string.h>

int main (void){

	int number=0;
	int i=0;
	int j=0;
	int input_first[200]={0};
	int input_second[200]={0};
	int input_third[200]={0};
	int check_num=0;
	int result[200]={0};
	int count=0;


	scanf("%d", &number);
	while(i < number){
		
		scanf("%d",&input_first[i]);
		scanf("%d",&input_second[i]);
		scanf("%d",&input_third[i]);
		i++;

	}

	i=0;
	while(i < number){
		j=0;
			check_num = input_first[i];
			while(j < number){	
				if( i == j){
					j++;
					continue;
				}
				if(check_num == input_first[j]){
					input_first[j] = 0;
					input_first[i] = 0;
				}
				j++;
			}

			check_num = input_second[i];
			j=0;
			while(j < number){
				if( i == j){
					j++;
					continue;
				}
				if(check_num == input_second[j]){
					input_second[j] = 0;
					input_second[i] = 0;
				}
				j++;
			}

			check_num = input_third[i];
			j=0;
			while(j < number){
				if( i == j){
					j++;
					continue;
				}
				if(check_num == input_third[j]){
					input_third[j] = 0;
					input_third[i] = 0;
				}
				j++;
			}
	i++;
	}
	for ( i=0; i < number; i++){
		result[i] += input_first[i];
		result[i] += input_second[i];
		result[i] += input_third[i];
	}


	for ( i=0; i < number; i++){
		printf("%d\n",result[i] );
	}




	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
	movl	$0, -3236(%rbp)
	movl	$0, -3232(%rbp)
	movl	$0, -3228(%rbp)
	leaq	-3216(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2416(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3224(%rbp)
	leaq	-816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3220(%rbp)
	leaq	-3236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L3:
	leaq	-3216(%rbp), %rdx
	movl	-3232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-2416(%rbp), %rdx
	movl	-3232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1616(%rbp), %rdx
	movl	-3232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3232(%rbp)
.L2:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L3
	movl	$0, -3232(%rbp)
	jmp	.L4
.L17:
	movl	$0, -3228(%rbp)
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	%eax, -3224(%rbp)
	jmp	.L5
.L8:
	movl	-3232(%rbp), %eax
	cmpl	-3228(%rbp), %eax
	jne	.L6
	addl	$1, -3228(%rbp)
	jmp	.L5
.L6:
	movl	-3228(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cmpl	%eax, -3224(%rbp)
	jne	.L7
	movl	-3228(%rbp), %eax
	cltq
	movl	$0, -3216(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	$0, -3216(%rbp,%rax,4)
.L7:
	addl	$1, -3228(%rbp)
.L5:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L8
	movl	-3232(%rbp), %eax
	cltq
	movl	-2416(%rbp,%rax,4), %eax
	movl	%eax, -3224(%rbp)
	movl	$0, -3228(%rbp)
	jmp	.L9
.L12:
	movl	-3232(%rbp), %eax
	cmpl	-3228(%rbp), %eax
	jne	.L10
	addl	$1, -3228(%rbp)
	jmp	.L9
.L10:
	movl	-3228(%rbp), %eax
	cltq
	movl	-2416(%rbp,%rax,4), %eax
	cmpl	%eax, -3224(%rbp)
	jne	.L11
	movl	-3228(%rbp), %eax
	cltq
	movl	$0, -2416(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	$0, -2416(%rbp,%rax,4)
.L11:
	addl	$1, -3228(%rbp)
.L9:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L12
	movl	-3232(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -3224(%rbp)
	movl	$0, -3228(%rbp)
	jmp	.L13
.L16:
	movl	-3232(%rbp), %eax
	cmpl	-3228(%rbp), %eax
	jne	.L14
	addl	$1, -3228(%rbp)
	jmp	.L13
.L14:
	movl	-3228(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -3224(%rbp)
	jne	.L15
	movl	-3228(%rbp), %eax
	cltq
	movl	$0, -1616(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	$0, -1616(%rbp,%rax,4)
.L15:
	addl	$1, -3228(%rbp)
.L13:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L16
	addl	$1, -3232(%rbp)
.L4:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L17
	movl	$0, -3232(%rbp)
	jmp	.L18
.L19:
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	-2416(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -3232(%rbp)
.L18:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L19
	movl	$0, -3232(%rbp)
	jmp	.L20
.L21:
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3232(%rbp)
.L20:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L21
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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
	movl	$0, -3236(%rbp)
	movl	$0, -3232(%rbp)
	movl	$0, -3228(%rbp)
	leaq	-3216(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2416(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-1616(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3224(%rbp)
	leaq	-816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3220(%rbp)
	leaq	-3236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L3:
	leaq	-3216(%rbp), %rdx
	movl	-3232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-2416(%rbp), %rdx
	movl	-3232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1616(%rbp), %rdx
	movl	-3232(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3232(%rbp)
.L2:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L3
	movl	$0, -3232(%rbp)
	jmp	.L4
.L17:
	movl	$0, -3228(%rbp)
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	movl	%eax, -3224(%rbp)
	jmp	.L5
.L8:
	movl	-3232(%rbp), %eax
	cmpl	-3228(%rbp), %eax
	jne	.L6
	addl	$1, -3228(%rbp)
	jmp	.L5
.L6:
	movl	-3228(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	cmpl	%eax, -3224(%rbp)
	jne	.L7
	movl	-3228(%rbp), %eax
	cltq
	movl	$0, -3216(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	$0, -3216(%rbp,%rax,4)
.L7:
	addl	$1, -3228(%rbp)
.L5:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L8
	movl	-3232(%rbp), %eax
	cltq
	movl	-2416(%rbp,%rax,4), %eax
	movl	%eax, -3224(%rbp)
	movl	$0, -3228(%rbp)
	jmp	.L9
.L12:
	movl	-3232(%rbp), %eax
	cmpl	-3228(%rbp), %eax
	jne	.L10
	addl	$1, -3228(%rbp)
	jmp	.L9
.L10:
	movl	-3228(%rbp), %eax
	cltq
	movl	-2416(%rbp,%rax,4), %eax
	cmpl	%eax, -3224(%rbp)
	jne	.L11
	movl	-3228(%rbp), %eax
	cltq
	movl	$0, -2416(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	$0, -2416(%rbp,%rax,4)
.L11:
	addl	$1, -3228(%rbp)
.L9:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L12
	movl	-3232(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -3224(%rbp)
	movl	$0, -3228(%rbp)
	jmp	.L13
.L16:
	movl	-3232(%rbp), %eax
	cmpl	-3228(%rbp), %eax
	jne	.L14
	addl	$1, -3228(%rbp)
	jmp	.L13
.L14:
	movl	-3228(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -3224(%rbp)
	jne	.L15
	movl	-3228(%rbp), %eax
	cltq
	movl	$0, -1616(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	$0, -1616(%rbp,%rax,4)
.L15:
	addl	$1, -3228(%rbp)
.L13:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3228(%rbp)
	jl	.L16
	addl	$1, -3232(%rbp)
.L4:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L17
	movl	$0, -3232(%rbp)
	jmp	.L18
.L19:
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	-3216(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	-2416(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-3232(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -3232(%rbp)
.L18:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L19
	movl	$0, -3232(%rbp)
	jmp	.L20
.L21:
	movl	-3232(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3232(%rbp)
.L20:
	movl	-3236(%rbp), %eax
	cmpl	%eax, -3232(%rbp)
	jl	.L21
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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:
