Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*

????????? ???????????? ????????????
?§???????????????¢????????¢???????????£??????(AiZu AnalyticS)???????\??§?????????????????§??????????
???????????????????????£?????????????????? N ????????????1 ?????? N ????????\????????????????????????
?????????AZAS ?????±?????\?????????????????§?????????????????????????????????????????????????????\??????
?????¶????°?????????¨?????????????????????????????°????????????????????¨????????????

??? ?????????????±???????????????????????????£???????????????????????????
??? ????????¢????±????????????????????????£???????????????????????????

??????
?????????????±???????????????????????????¢????±???????????????????????????£??????????????????????????????
??\???????????\?????¨???????????????????????¨???????????¶???????????????????????°???????????????????????°
?????????????????????????????????????????????????????¶???????????????????????????????????°???????????????
?????¨????????????

????£??¶????????¨?????????¶???????????????
	?????????????????§????????¶??°?????????????????????????????????????´??????????????????????????????¢???
	??£??¨??????????????¶???????????????????????°??????(A? ??? C) ??? (B ??? C??????????????????
	?????¨??? ) )????????????????´?????????°??§?????????????????????A?????????????????£?????????¨?????????

??\???
??\????????\????????¢?????§??????????????????

N
X a1 a2 ??? aX
Y b1 b2 ??? bY
Z c1 c2 ??? cZ

??\??????????????§?????????
	??????????????????????±?????????°N(1???N???100)?????????????????????
	????????????????????????????±?????????????????????°X(0???X???N)??¨???
		??????????¶????????????????????±????????????????????????\??????ai(1???ai???N)?????????????????????
	???????????????????????¢????±?????????????????????°Y(0???Y???N)??¨???
		??????????¶???????????????¢????±????????????????????????\??????bi(1???bi???N)?????????????????????
	???????????????????????£?????????????????????????????°Z(0???Z???N)??¨???
		??????????¶???????????????£????????????????????????????????\??????ci(1???ci???N)?????????????????????

??????
?????¶???????????????????????°???????????????????????????

*/

#include <stdio.h>

#define NUM 10000
#define A 0
#define B 1
#define C 2

int main( void )
{
	int n;						// ??????????±?????????°N(1???N???100)
	int d[ NUM ][ 3 ];			// 2???4??????????????????
	int t = 0;					// ?????¶????????´???????????°
	int i, j;
	int w, m;

	scanf( "%d ", &n );

	for ( i = 0 ; i < n ; i++ ) {
		d[ i ][ A ] = 0;
		d[ i ][ B ] = 0;
		d[ i ][ C ] = 0;
	}

	for ( j = 0 ; j < 3 ; j++) {
		scanf("%d ", &m );
		for ( i = 0 ; i < m ; i++) {
			scanf("%d ", &w );
			d[ w - 1 ][ j ] = 1;
		}
	}

	t = 0;
	for ( i = 0 ; i < n ; i++ ) {
		if      ( ( d[ i ][ C ] == 1 ) && ( d[ i ][ A ] == 0 ) && ( d[ i ][ B ] == 0 ) ) {
			t++;
		}
		else if ( ( d[ i ][ C ] == 1 ) && ( d[ i ][ A ] == 1 ) && ( d[ i ][ B ] == 1 ) ) {
			t++;
		}
		else if ( ( d[ i ][ C ] == 1 ) && ( d[ i ][ A ] == 0 ) && ( d[ i ][ B ] == 1 ) ) {
			t++;
		}
	}

	printf( "%d\n", t );

	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
	leaq	-118784(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1264, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -120028(%rbp)
	leaq	-120040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -120024(%rbp)
	jmp	.L2
.L3:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	$0, (%rax)
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	$0, (%rax)
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	$0, (%rax)
	addl	$1, -120024(%rbp)
.L2:
	movl	-120040(%rbp), %eax
	cmpl	%eax, -120024(%rbp)
	jl	.L3
	movl	$0, -120020(%rbp)
	jmp	.L4
.L7:
	leaq	-120032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -120024(%rbp)
	jmp	.L5
.L6:
	leaq	-120036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-120036(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-120020(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -120016(%rbp,%rax,4)
	addl	$1, -120024(%rbp)
.L5:
	movl	-120032(%rbp), %eax
	cmpl	%eax, -120024(%rbp)
	jl	.L6
	addl	$1, -120020(%rbp)
.L4:
	cmpl	$2, -120020(%rbp)
	jle	.L7
	movl	$0, -120028(%rbp)
	movl	$0, -120024(%rbp)
	jmp	.L8
.L12:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L9
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L9
	addl	$1, -120028(%rbp)
	jmp	.L10
.L9:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	addl	$1, -120028(%rbp)
	jmp	.L10
.L11:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L10
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L10
	addl	$1, -120028(%rbp)
.L10:
	addl	$1, -120024(%rbp)
.L8:
	movl	-120040(%rbp), %eax
	cmpl	%eax, -120024(%rbp)
	jl	.L12
	movl	-120028(%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	.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\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	-118784(%rsp), %r11
	.cfi_def_cfa 11, 118840
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1256, %rsp
	.cfi_def_cfa_offset 120096
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	movq	%fs:40, %rax
	movq	%rax, 120024(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L7
	leal	-1(%rdx), %eax
	cmpl	$2, %eax
	jbe	.L19
	movl	%edx, %ecx
	leaq	16(%rsp), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %ecx
	subl	$1, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	salq	$4, %rcx
	leaq	64(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movaps	%xmm0, (%rax)
	addq	$48, %rax
	movaps	%xmm0, -32(%rax)
	movaps	%xmm0, -16(%rax)
	cmpq	%rcx, %rax
	jne	.L5
	movl	%edx, %eax
	andl	$-4, %eax
	testb	$3, %dl
	je	.L7
.L4:
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	salq	$2, %rcx
	movq	$0, 16(%rsp,%rcx)
	movl	$0, 24(%rsp,%rcx)
	leal	1(%rax), %ecx
	cmpl	%edx, %ecx
	jge	.L7
	movslq	%ecx, %rcx
	addl	$2, %eax
	imulq	$12, %rcx, %rcx
	movq	$0, 16(%rsp,%rcx)
	movl	$0, 24(%rsp,%rcx)
	cmpl	%eax, %edx
	jle	.L7
	cltq
	imulq	$12, %rax, %rax
	movq	$0, 16(%rsp,%rax)
	movl	$0, 24(%rsp,%rax)
.L7:
	xorl	%r13d, %r13d
	leaq	12(%rsp), %r14
	leaq	8(%rsp), %r12
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movslq	%r13d, %rbp
	testl	%eax, %eax
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,2), %rax
	addq	%rbp, %rax
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r15d, 12(%rsp)
	jg	.L9
.L11:
	addl	$1, %r13d
	cmpl	$3, %r13d
	jne	.L3
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L21
	subl	$1, %edx
	leaq	16(%rsp), %rax
	xorl	%r8d, %r8d
	leaq	(%rdx,%rdx,2), %rdx
	leaq	28(%rsp,%rdx,4), %rdx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$12, %rax
	cmpq	%rdx, %rax
	je	.L12
.L16:
	cmpl	$1, 8(%rax)
	jne	.L13
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jne	.L14
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	jne	.L15
	addq	$12, %rax
	addl	$1, %r8d
	cmpq	%rdx, %rax
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	120024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$120040, %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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmpl	$1, %ecx
	jne	.L13
	xorl	%ecx, %ecx
	cmpl	$1, 4(%rax)
	sete	%cl
	addl	%ecx, %r8d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L15:
	cmpl	$1, %ecx
	sete	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %r8d
	jmp	.L13
.L21:
	xorl	%r8d, %r8d
	jmp	.L12
.L19:
	xorl	%eax, %eax
	jmp	.L4
.L31:
	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	-118784(%rsp), %r11
	.cfi_def_cfa 11, 118840
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1256, %rsp
	.cfi_def_cfa_offset 120096
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	movq	%fs:40, %rax
	movq	%rax, 120024(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L7
	leal	-1(%rdx), %eax
	cmpl	$2, %eax
	jbe	.L19
	movl	%edx, %ecx
	leaq	16(%rsp), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %ecx
	subl	$1, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	salq	$4, %rcx
	leaq	64(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movaps	%xmm0, (%rax)
	addq	$48, %rax
	movaps	%xmm0, -32(%rax)
	movaps	%xmm0, -16(%rax)
	cmpq	%rcx, %rax
	jne	.L5
	movl	%edx, %eax
	andl	$-4, %eax
	testb	$3, %dl
	je	.L7
.L4:
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	salq	$2, %rcx
	movq	$0, 16(%rsp,%rcx)
	movl	$0, 24(%rsp,%rcx)
	leal	1(%rax), %ecx
	cmpl	%edx, %ecx
	jge	.L7
	movslq	%ecx, %rcx
	addl	$2, %eax
	imulq	$12, %rcx, %rcx
	movq	$0, 16(%rsp,%rcx)
	movl	$0, 24(%rsp,%rcx)
	cmpl	%eax, %edx
	jle	.L7
	cltq
	imulq	$12, %rax, %rax
	movq	$0, 16(%rsp,%rax)
	movl	$0, 24(%rsp,%rax)
.L7:
	xorl	%r13d, %r13d
	leaq	12(%rsp), %r14
	leaq	8(%rsp), %r12
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movslq	%r13d, %rbp
	testl	%eax, %eax
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,2), %rax
	addq	%rbp, %rax
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r15d, 12(%rsp)
	jg	.L9
.L11:
	addl	$1, %r13d
	cmpl	$3, %r13d
	jne	.L3
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L21
	subl	$1, %edx
	leaq	16(%rsp), %rax
	xorl	%r8d, %r8d
	leaq	(%rdx,%rdx,2), %rdx
	leaq	28(%rsp,%rdx,4), %rdx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$12, %rax
	cmpq	%rdx, %rax
	je	.L12
.L16:
	cmpl	$1, 8(%rax)
	jne	.L13
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jne	.L14
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	jne	.L15
	addq	$12, %rax
	addl	$1, %r8d
	cmpq	%rdx, %rax
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	120024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$120040, %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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmpl	$1, %ecx
	jne	.L13
	xorl	%ecx, %ecx
	cmpl	$1, 4(%rax)
	sete	%cl
	addl	%ecx, %r8d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L15:
	cmpl	$1, %ecx
	sete	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %r8d
	jmp	.L13
.L21:
	xorl	%r8d, %r8d
	jmp	.L12
.L19:
	xorl	%eax, %eax
	jmp	.L4
.L31:
	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:

/*

????????? ???????????? ????????????
?§???????????????¢????????¢???????????£??????(AiZu AnalyticS)???????\??§?????????????????§??????????
???????????????????????£?????????????????? N ????????????1 ?????? N ????????\????????????????????????
?????????AZAS ?????±?????\?????????????????§?????????????????????????????????????????????????????\??????
?????¶????°?????????¨?????????????????????????????°????????????????????¨????????????

??? ?????????????±???????????????????????????£???????????????????????????
??? ????????¢????±????????????????????????£???????????????????????????

??????
?????????????±???????????????????????????¢????±???????????????????????????£??????????????????????????????
??\???????????\?????¨???????????????????????¨???????????¶???????????????????????°???????????????????????°
?????????????????????????????????????????????????????¶???????????????????????????????????°???????????????
?????¨????????????

????£??¶????????¨?????????¶???????????????
	?????????????????§????????¶??°?????????????????????????????????????´??????????????????????????????¢???
	??£??¨??????????????¶???????????????????????°??????(A? ??? C) ??? (B ??? C??????????????????
	?????¨??? ) )????????????????´?????????°??§?????????????????????A?????????????????£?????????¨?????????

??\???
??\????????\????????¢?????§??????????????????

N
X a1 a2 ??? aX
Y b1 b2 ??? bY
Z c1 c2 ??? cZ

??\??????????????§?????????
	??????????????????????±?????????°N(1???N???100)?????????????????????
	????????????????????????????±?????????????????????°X(0???X???N)??¨???
		??????????¶????????????????????±????????????????????????\??????ai(1???ai???N)?????????????????????
	???????????????????????¢????±?????????????????????°Y(0???Y???N)??¨???
		??????????¶???????????????¢????±????????????????????????\??????bi(1???bi???N)?????????????????????
	???????????????????????£?????????????????????????????°Z(0???Z???N)??¨???
		??????????¶???????????????£????????????????????????????????\??????ci(1???ci???N)?????????????????????

??????
?????¶???????????????????????°???????????????????????????

*/

#include <stdio.h>

#define NUM 10000
#define A 0
#define B 1
#define C 2

int main( void )
{
	int n;						// ??????????±?????????°N(1???N???100)
	int d[ NUM ][ 3 ];			// 2???4??????????????????
	int t = 0;					// ?????¶????????´???????????°
	int i, j;
	int w, m;

	scanf( "%d ", &n );

	for ( i = 0 ; i < n ; i++ ) {
		d[ i ][ A ] = 0;
		d[ i ][ B ] = 0;
		d[ i ][ C ] = 0;
	}

	for ( j = 0 ; j < 3 ; j++) {
		scanf("%d ", &m );
		for ( i = 0 ; i < m ; i++) {
			scanf("%d ", &w );
			d[ w - 1 ][ j ] = 1;
		}
	}

	t = 0;
	for ( i = 0 ; i < n ; i++ ) {
		if      ( ( d[ i ][ C ] == 1 ) && ( d[ i ][ A ] == 0 ) && ( d[ i ][ B ] == 0 ) ) {
			t++;
		}
		else if ( ( d[ i ][ C ] == 1 ) && ( d[ i ][ A ] == 1 ) && ( d[ i ][ B ] == 1 ) ) {
			t++;
		}
		else if ( ( d[ i ][ C ] == 1 ) && ( d[ i ][ A ] == 0 ) && ( d[ i ][ B ] == 1 ) ) {
			t++;
		}
	}

	printf( "%d\n", t );

	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
/*

????????? ???????????? ????????????
?§???????????????¢????????¢???????????£??????(AiZu AnalyticS)???????\??§?????????????????§??????????
???????????????????????£?????????????????? N ????????????1 ?????? N ????????\????????????????????????
?????????AZAS ?????±?????\?????????????????§?????????????????????????????????????????????????????\??????
?????¶????°?????????¨?????????????????????????????°????????????????????¨????????????

??? ?????????????±???????????????????????????£???????????????????????????
??? ????????¢????±????????????????????????£???????????????????????????

??????
?????????????±???????????????????????????¢????±???????????????????????????£??????????????????????????????
??\???????????\?????¨???????????????????????¨???????????¶???????????????????????°???????????????????????°
?????????????????????????????????????????????????????¶???????????????????????????????????°???????????????
?????¨????????????

????£??¶????????¨?????????¶???????????????
	?????????????????§????????¶??°?????????????????????????????????????´??????????????????????????????¢???
	??£??¨??????????????¶???????????????????????°??????(A? ??? C) ??? (B ??? C??????????????????
	?????¨??? ) )????????????????´?????????°??§?????????????????????A?????????????????£?????????¨?????????

??\???
??\????????\????????¢?????§??????????????????

N
X a1 a2 ??? aX
Y b1 b2 ??? bY
Z c1 c2 ??? cZ

??\??????????????§?????????
	??????????????????????±?????????°N(1???N???100)?????????????????????
	????????????????????????????±?????????????????????°X(0???X???N)??¨???
		??????????¶????????????????????±????????????????????????\??????ai(1???ai???N)?????????????????????
	???????????????????????¢????±?????????????????????°Y(0???Y???N)??¨???
		??????????¶???????????????¢????±????????????????????????\??????bi(1???bi???N)?????????????????????
	???????????????????????£?????????????????????????????°Z(0???Z???N)??¨???
		??????????¶???????????????£????????????????????????????????\??????ci(1???ci???N)?????????????????????

??????
?????¶???????????????????????°???????????????????????????

*/

#include <stdio.h>

#define NUM 10000
#define A 0
#define B 1
#define C 2

int main( void )
{
	int n;						// ??????????±?????????°N(1???N???100)
	int d[ NUM ][ 3 ];			// 2???4??????????????????
	int t = 0;					// ?????¶????????´???????????°
	int i, j;
	int w, m;

	scanf( "%d ", &n );

	for ( i = 0 ; i < n ; i++ ) {
		d[ i ][ A ] = 0;
		d[ i ][ B ] = 0;
		d[ i ][ C ] = 0;
	}

	for ( j = 0 ; j < 3 ; j++) {
		scanf("%d ", &m );
		for ( i = 0 ; i < m ; i++) {
			scanf("%d ", &w );
			d[ w - 1 ][ j ] = 1;
		}
	}

	t = 0;
	for ( i = 0 ; i < n ; i++ ) {
		if      ( ( d[ i ][ C ] == 1 ) && ( d[ i ][ A ] == 0 ) && ( d[ i ][ B ] == 0 ) ) {
			t++;
		}
		else if ( ( d[ i ][ C ] == 1 ) && ( d[ i ][ A ] == 1 ) && ( d[ i ][ B ] == 1 ) ) {
			t++;
		}
		else if ( ( d[ i ][ C ] == 1 ) && ( d[ i ][ A ] == 0 ) && ( d[ i ][ B ] == 1 ) ) {
			t++;
		}
	}

	printf( "%d\n", t );

	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
	leaq	-118784(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1264, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -120028(%rbp)
	leaq	-120040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -120024(%rbp)
	jmp	.L2
.L3:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	$0, (%rax)
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	$0, (%rax)
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	$0, (%rax)
	addl	$1, -120024(%rbp)
.L2:
	movl	-120040(%rbp), %eax
	cmpl	%eax, -120024(%rbp)
	jl	.L3
	movl	$0, -120020(%rbp)
	jmp	.L4
.L7:
	leaq	-120032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -120024(%rbp)
	jmp	.L5
.L6:
	leaq	-120036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-120036(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-120020(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -120016(%rbp,%rax,4)
	addl	$1, -120024(%rbp)
.L5:
	movl	-120032(%rbp), %eax
	cmpl	%eax, -120024(%rbp)
	jl	.L6
	addl	$1, -120020(%rbp)
.L4:
	cmpl	$2, -120020(%rbp)
	jle	.L7
	movl	$0, -120028(%rbp)
	movl	$0, -120024(%rbp)
	jmp	.L8
.L12:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L9
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L9
	addl	$1, -120028(%rbp)
	jmp	.L10
.L9:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	addl	$1, -120028(%rbp)
	jmp	.L10
.L11:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L10
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L10
	addl	$1, -120028(%rbp)
.L10:
	addl	$1, -120024(%rbp)
.L8:
	movl	-120040(%rbp), %eax
	cmpl	%eax, -120024(%rbp)
	jl	.L12
	movl	-120028(%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	.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\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
	leaq	-118784(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1264, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -120028(%rbp)
	leaq	-120040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -120024(%rbp)
	jmp	.L2
.L3:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	$0, (%rax)
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	$0, (%rax)
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	$0, (%rax)
	addl	$1, -120024(%rbp)
.L2:
	movl	-120040(%rbp), %eax
	cmpl	%eax, -120024(%rbp)
	jl	.L3
	movl	$0, -120020(%rbp)
	jmp	.L4
.L7:
	leaq	-120032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -120024(%rbp)
	jmp	.L5
.L6:
	leaq	-120036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-120036(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-120020(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -120016(%rbp,%rax,4)
	addl	$1, -120024(%rbp)
.L5:
	movl	-120032(%rbp), %eax
	cmpl	%eax, -120024(%rbp)
	jl	.L6
	addl	$1, -120020(%rbp)
.L4:
	cmpl	$2, -120020(%rbp)
	jle	.L7
	movl	$0, -120028(%rbp)
	movl	$0, -120024(%rbp)
	jmp	.L8
.L12:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L9
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L9
	addl	$1, -120028(%rbp)
	jmp	.L10
.L9:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L11
	addl	$1, -120028(%rbp)
	jmp	.L10
.L11:
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120008, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L10
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120016, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-120024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$120012, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	.L10
	addl	$1, -120028(%rbp)
.L10:
	addl	$1, -120024(%rbp)
.L8:
	movl	-120040(%rbp), %eax
	cmpl	%eax, -120024(%rbp)
	jl	.L12
	movl	-120028(%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	.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:
