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 a[100],b[100],c[100],n,x,y,z,i,j,k,d,e,f;
	d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		a[i]=0;
		b[i]=0;
		c[i]=0;
	}
	scanf("%d",&x);
	for(i=0;i<x;i++){
		scanf("%d",&a[i]);
	}
	scanf("%d",&y);
	for(i=0;i<y;i++){
		scanf("%d",&b[i]);
	}
	scanf("%d",&z);
		for(i=0;i<z;i++){
			scanf("%d",&c[i]);
		}
		d=z;
	for(i=0;i<x;i++){
		for(j=0;j<z;j++){
			if(a[i]==c[j]) d=d-1;
			for(k=0;k<y;k++){
				if(c[j]==b[k] && a[i]==c[j]) d=d+1;
			}
		}
	}
	printf("%d\n",d);
	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	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1220(%rbp)
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L2
.L3:
	movl	-1232(%rbp), %eax
	cltq
	movl	$0, -1216(%rbp,%rax,4)
	movl	-1232(%rbp), %eax
	cltq
	movl	$0, -816(%rbp,%rax,4)
	movl	-1232(%rbp), %eax
	cltq
	movl	$0, -416(%rbp,%rax,4)
	addl	$1, -1232(%rbp)
.L2:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L3
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L4
.L5:
	leaq	-1216(%rbp), %rdx
	movl	-1232(%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, -1232(%rbp)
.L4:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L5
	leaq	-1240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L6
.L7:
	leaq	-816(%rbp), %rdx
	movl	-1232(%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, -1232(%rbp)
.L6:
	movl	-1240(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L7
	leaq	-1236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L8
.L9:
	leaq	-416(%rbp), %rdx
	movl	-1232(%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, -1232(%rbp)
.L8:
	movl	-1236(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L9
	movl	-1236(%rbp), %eax
	movl	%eax, -1220(%rbp)
	movl	$0, -1232(%rbp)
	jmp	.L10
.L17:
	movl	$0, -1228(%rbp)
	jmp	.L11
.L16:
	movl	-1232(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %edx
	movl	-1228(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L12
	subl	$1, -1220(%rbp)
.L12:
	movl	$0, -1224(%rbp)
	jmp	.L13
.L15:
	movl	-1228(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-1224(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L14
	movl	-1232(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %edx
	movl	-1228(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L14
	addl	$1, -1220(%rbp)
.L14:
	addl	$1, -1224(%rbp)
.L13:
	movl	-1240(%rbp), %eax
	cmpl	%eax, -1224(%rbp)
	jl	.L15
	addl	$1, -1228(%rbp)
.L11:
	movl	-1236(%rbp), %eax
	cmpl	%eax, -1228(%rbp)
	jl	.L16
	addl	$1, -1232(%rbp)
.L10:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L17
	movl	-1220(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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"
.LC1:
	.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	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$1256, %rsp
	.cfi_def_cfa_offset 1312
	movq	%fs:40, %rax
	movq	%rax, 1240(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rax
	testl	%eax, %eax
	jle	.L5
	leaq	0(,%rax,4), %r12
	leaq	32(%rsp), %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	call	memset@PLT
	leaq	432(%rsp), %rdi
	movq	%r12, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	leaq	832(%rsp), %rdi
	movq	%r12, %rdx
	xorl	%esi, %esi
	call	memset@PLT
.L5:
	leaq	20(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	leaq	32(%rsp), %r12
	testl	%edx, %edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebp, 20(%rsp)
	jg	.L8
.L4:
	leaq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	leaq	432(%rsp), %r12
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebp, 24(%rsp)
	jg	.L11
.L7:
	leaq	28(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r15d
	leaq	832(%rsp), %r12
	testl	%r15d, %r15d
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r15d
	addq	$4, %r12
	cmpl	%ebp, %r15d
	jg	.L12
.L10:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L30
	subl	$1, %eax
	movl	24(%rsp), %r9d
	leaq	32(%rsp), %r14
	movl	%r15d, %edx
	leaq	36(%rsp,%rax,4), %rax
	leaq	432(%rsp), %r13
	movq	%rax, (%rsp)
	leaq	832(%rsp), %rax
	movl	%r9d, %ebx
	leal	-1(%r9), %r12d
	movq	%rax, 8(%rsp)
	leal	-1(%r15), %eax
	andl	$-4, %ebx
	leaq	836(%rsp,%rax,4), %rbp
	movl	%r9d, %eax
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	448(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L14:
	testl	%r15d, %r15d
	jle	.L28
	movl	(%r14), %r11d
	movq	8(%rsp), %rdi
	.p2align 4,,10
	.p2align 3
.L26:
	movl	(%rdi), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r11d
	sete	%al
	subl	%eax, %edx
	testl	%r9d, %r9d
	jle	.L16
	cmpl	%ecx, %r11d
	sete	%r8b
	cmpl	$2, %r12d
	jbe	.L31
	movl	%r8d, %eax
	movd	%ecx, %xmm4
	pxor	%xmm1, %xmm1
	sall	$31, %eax
	pshufd	$0, %xmm4, %xmm3
	sarl	$31, %eax
	movd	%eax, %xmm5
	movq	%r13, %rax
	pshufd	$0, %xmm5, %xmm2
	.p2align 4,,10
	.p2align 3
.L18:
	movdqa	%xmm3, %xmm0
	addq	$16, %rax
	pcmpeqd	-16(%rax), %xmm0
	pand	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rax, %rsi
	jne	.L18
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %edx
	movl	%ebx, %eax
	cmpl	%ebx, %r9d
	je	.L16
.L17:
	movslq	%eax, %r10
	cmpl	%ecx, 432(%rsp,%r10,4)
	jne	.L21
	cmpb	$1, %r8b
	sbbl	$-1, %edx
.L21:
	leal	1(%rax), %r10d
	cmpl	%r9d, %r10d
	jge	.L16
	movslq	%r10d, %r10
	cmpl	%ecx, 432(%rsp,%r10,4)
	jne	.L22
	cmpb	$1, %r8b
	sbbl	$-1, %edx
.L22:
	addl	$2, %eax
	cmpl	%r9d, %eax
	jge	.L16
	cltq
	cmpl	%ecx, 432(%rsp,%rax,4)
	jne	.L16
	cmpb	$1, %r8b
	sbbl	$-1, %edx
.L16:
	addq	$4, %rdi
	cmpq	%rbp, %rdi
	jne	.L26
.L28:
	addq	$4, %r14
	cmpq	(%rsp), %r14
	jne	.L14
.L13:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$1256, %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
.L31:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L17
.L30:
	movl	%r15d, %edx
	jmp	.L13
.L59:
	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	%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	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$1256, %rsp
	.cfi_def_cfa_offset 1312
	movq	%fs:40, %rax
	movq	%rax, 1240(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rax
	testl	%eax, %eax
	jle	.L5
	leaq	0(,%rax,4), %r12
	leaq	32(%rsp), %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	call	memset@PLT
	leaq	432(%rsp), %rdi
	movq	%r12, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	leaq	832(%rsp), %rdi
	movq	%r12, %rdx
	xorl	%esi, %esi
	call	memset@PLT
.L5:
	leaq	20(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	leaq	32(%rsp), %r12
	testl	%edx, %edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebp, 20(%rsp)
	jg	.L8
.L4:
	leaq	24(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	leaq	432(%rsp), %r12
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebp, 24(%rsp)
	jg	.L11
.L7:
	leaq	28(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r15d
	leaq	832(%rsp), %r12
	testl	%r15d, %r15d
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %r15d
	addq	$4, %r12
	cmpl	%ebp, %r15d
	jg	.L12
.L10:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L30
	subl	$1, %eax
	movl	24(%rsp), %r9d
	leaq	32(%rsp), %r14
	movl	%r15d, %edx
	leaq	36(%rsp,%rax,4), %rax
	leaq	432(%rsp), %r13
	movq	%rax, (%rsp)
	leaq	832(%rsp), %rax
	movl	%r9d, %ebx
	leal	-1(%r9), %r12d
	movq	%rax, 8(%rsp)
	leal	-1(%r15), %eax
	andl	$-4, %ebx
	leaq	836(%rsp,%rax,4), %rbp
	movl	%r9d, %eax
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	448(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L14:
	testl	%r15d, %r15d
	jle	.L28
	movl	(%r14), %r11d
	movq	8(%rsp), %rdi
	.p2align 4,,10
	.p2align 3
.L26:
	movl	(%rdi), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r11d
	sete	%al
	subl	%eax, %edx
	testl	%r9d, %r9d
	jle	.L16
	cmpl	%ecx, %r11d
	sete	%r8b
	cmpl	$2, %r12d
	jbe	.L31
	movl	%r8d, %eax
	movd	%ecx, %xmm4
	pxor	%xmm1, %xmm1
	sall	$31, %eax
	pshufd	$0, %xmm4, %xmm3
	sarl	$31, %eax
	movd	%eax, %xmm5
	movq	%r13, %rax
	pshufd	$0, %xmm5, %xmm2
	.p2align 4,,10
	.p2align 3
.L18:
	movdqa	%xmm3, %xmm0
	addq	$16, %rax
	pcmpeqd	-16(%rax), %xmm0
	pand	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rax, %rsi
	jne	.L18
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %edx
	movl	%ebx, %eax
	cmpl	%ebx, %r9d
	je	.L16
.L17:
	movslq	%eax, %r10
	cmpl	%ecx, 432(%rsp,%r10,4)
	jne	.L21
	cmpb	$1, %r8b
	sbbl	$-1, %edx
.L21:
	leal	1(%rax), %r10d
	cmpl	%r9d, %r10d
	jge	.L16
	movslq	%r10d, %r10
	cmpl	%ecx, 432(%rsp,%r10,4)
	jne	.L22
	cmpb	$1, %r8b
	sbbl	$-1, %edx
.L22:
	addl	$2, %eax
	cmpl	%r9d, %eax
	jge	.L16
	cltq
	cmpl	%ecx, 432(%rsp,%rax,4)
	jne	.L16
	cmpb	$1, %r8b
	sbbl	$-1, %edx
.L16:
	addq	$4, %rdi
	cmpq	%rbp, %rdi
	jne	.L26
.L28:
	addq	$4, %r14
	cmpq	(%rsp), %r14
	jne	.L14
.L13:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1240(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$1256, %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
.L31:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L17
.L30:
	movl	%r15d, %edx
	jmp	.L13
.L59:
	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 a[100],b[100],c[100],n,x,y,z,i,j,k,d,e,f;
	d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		a[i]=0;
		b[i]=0;
		c[i]=0;
	}
	scanf("%d",&x);
	for(i=0;i<x;i++){
		scanf("%d",&a[i]);
	}
	scanf("%d",&y);
	for(i=0;i<y;i++){
		scanf("%d",&b[i]);
	}
	scanf("%d",&z);
		for(i=0;i<z;i++){
			scanf("%d",&c[i]);
		}
		d=z;
	for(i=0;i<x;i++){
		for(j=0;j<z;j++){
			if(a[i]==c[j]) d=d-1;
			for(k=0;k<y;k++){
				if(c[j]==b[k] && a[i]==c[j]) d=d+1;
			}
		}
	}
	printf("%d\n",d);
	return 0;
}

5
3 1 2 3
2 4 5
2 2 4
 5
3 1 2 1
2 4 5
2 3 4
 5
3 1 2 3
2 4 5
2 3 2
 5
3 1 4 3
2 4 5
2 3 4
 100
3 1 100 4
0
2 4 3
 5
3 2 4 3
2 4 5
2 3 4
 100
3 0 100 4
0
2 4 3
 100
3 0 000 4
0
2 4 3
 100
3 1 100 4
-1
2 2 3
 5
3 1 2 5
2 4 5
2 2 4

1
 2
 0
 1
 1
 1
 1
 1
 2
 1

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 a[100],b[100],c[100],n,x,y,z,i,j,k,d,e,f;
	d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		a[i]=0;
		b[i]=0;
		c[i]=0;
	}
	scanf("%d",&x);
	for(i=0;i<x;i++){
		scanf("%d",&a[i]);
	}
	scanf("%d",&y);
	for(i=0;i<y;i++){
		scanf("%d",&b[i]);
	}
	scanf("%d",&z);
		for(i=0;i<z;i++){
			scanf("%d",&c[i]);
		}
		d=z;
	for(i=0;i<x;i++){
		for(j=0;j<z;j++){
			if(a[i]==c[j]) d=d-1;
			for(k=0;k<y;k++){
				if(c[j]==b[k] && a[i]==c[j]) d=d+1;
			}
		}
	}
	printf("%d\n",d);
	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	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1220(%rbp)
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L2
.L3:
	movl	-1232(%rbp), %eax
	cltq
	movl	$0, -1216(%rbp,%rax,4)
	movl	-1232(%rbp), %eax
	cltq
	movl	$0, -816(%rbp,%rax,4)
	movl	-1232(%rbp), %eax
	cltq
	movl	$0, -416(%rbp,%rax,4)
	addl	$1, -1232(%rbp)
.L2:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L3
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L4
.L5:
	leaq	-1216(%rbp), %rdx
	movl	-1232(%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, -1232(%rbp)
.L4:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L5
	leaq	-1240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L6
.L7:
	leaq	-816(%rbp), %rdx
	movl	-1232(%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, -1232(%rbp)
.L6:
	movl	-1240(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L7
	leaq	-1236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L8
.L9:
	leaq	-416(%rbp), %rdx
	movl	-1232(%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, -1232(%rbp)
.L8:
	movl	-1236(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L9
	movl	-1236(%rbp), %eax
	movl	%eax, -1220(%rbp)
	movl	$0, -1232(%rbp)
	jmp	.L10
.L17:
	movl	$0, -1228(%rbp)
	jmp	.L11
.L16:
	movl	-1232(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %edx
	movl	-1228(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L12
	subl	$1, -1220(%rbp)
.L12:
	movl	$0, -1224(%rbp)
	jmp	.L13
.L15:
	movl	-1228(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-1224(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L14
	movl	-1232(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %edx
	movl	-1228(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L14
	addl	$1, -1220(%rbp)
.L14:
	addl	$1, -1224(%rbp)
.L13:
	movl	-1240(%rbp), %eax
	cmpl	%eax, -1224(%rbp)
	jl	.L15
	addl	$1, -1228(%rbp)
.L11:
	movl	-1236(%rbp), %eax
	cmpl	%eax, -1228(%rbp)
	jl	.L16
	addl	$1, -1232(%rbp)
.L10:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L17
	movl	-1220(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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.
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	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1220(%rbp)
	leaq	-1248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L2
.L3:
	movl	-1232(%rbp), %eax
	cltq
	movl	$0, -1216(%rbp,%rax,4)
	movl	-1232(%rbp), %eax
	cltq
	movl	$0, -816(%rbp,%rax,4)
	movl	-1232(%rbp), %eax
	cltq
	movl	$0, -416(%rbp,%rax,4)
	addl	$1, -1232(%rbp)
.L2:
	movl	-1248(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L3
	leaq	-1244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L4
.L5:
	leaq	-1216(%rbp), %rdx
	movl	-1232(%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, -1232(%rbp)
.L4:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L5
	leaq	-1240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L6
.L7:
	leaq	-816(%rbp), %rdx
	movl	-1232(%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, -1232(%rbp)
.L6:
	movl	-1240(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L7
	leaq	-1236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1232(%rbp)
	jmp	.L8
.L9:
	leaq	-416(%rbp), %rdx
	movl	-1232(%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, -1232(%rbp)
.L8:
	movl	-1236(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L9
	movl	-1236(%rbp), %eax
	movl	%eax, -1220(%rbp)
	movl	$0, -1232(%rbp)
	jmp	.L10
.L17:
	movl	$0, -1228(%rbp)
	jmp	.L11
.L16:
	movl	-1232(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %edx
	movl	-1228(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L12
	subl	$1, -1220(%rbp)
.L12:
	movl	$0, -1224(%rbp)
	jmp	.L13
.L15:
	movl	-1228(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-1224(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L14
	movl	-1232(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %edx
	movl	-1228(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L14
	addl	$1, -1220(%rbp)
.L14:
	addl	$1, -1224(%rbp)
.L13:
	movl	-1240(%rbp), %eax
	cmpl	%eax, -1224(%rbp)
	jl	.L15
	addl	$1, -1228(%rbp)
.L11:
	movl	-1236(%rbp), %eax
	cmpl	%eax, -1228(%rbp)
	jl	.L16
	addl	$1, -1232(%rbp)
.L10:
	movl	-1244(%rbp), %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L17
	movl	-1220(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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:
