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 <stdlib.h>

int main()
{
	int i, j, N, A[16], x[16][16], y[16][16];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) {
		scanf("%d", &(A[i]));
		for (j = 1; j <= A[i]; j++) scanf("%d %d", &(x[i][j]), &(y[i][j]));
	}
	
	int honest[16] = {}, max = 0, count;
	while (1) {
		for (i = 1; i <= N; i++) if (honest[i] == 0) break;
		if (i > N) break;
		for (honest[i--] = 1; i >= 1; i--) honest[i] = 0;
		
		for (i = 1; i <= N; i++) {
			if (honest[i] == 0) continue;
			for (j = 1; j <= A[i]; j++) {
				if (honest[x[i][j]] != y[i][j]) break;
			}
			if (j <= A[i]) break;
		}
		
		if (i <= N) continue;
		count = 0;
		for (i = 1; i <= N; i++) count += honest[i];
		if (count > max) max = count;
	}
	
	printf("%d\n", max);
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2212(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -2208(%rbp)
	jmp	.L2
.L5:
	leaq	-2192(%rbp), %rdx
	movl	-2208(%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
	movl	$1, -2204(%rbp)
	jmp	.L3
.L4:
	leaq	-1040(%rbp), %rdx
	movl	-2204(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-2064(%rbp), %rcx
	movl	-2204(%rbp), %eax
	movslq	%eax, %rsi
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2204(%rbp)
.L3:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2192(%rbp,%rax,4), %eax
	cmpl	%eax, -2204(%rbp)
	jle	.L4
	addl	$1, -2208(%rbp)
.L2:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L5
	movq	$0, -2128(%rbp)
	movq	$0, -2120(%rbp)
	movq	$0, -2112(%rbp)
	movq	$0, -2104(%rbp)
	movq	$0, -2096(%rbp)
	movq	$0, -2088(%rbp)
	movq	$0, -2080(%rbp)
	movq	$0, -2072(%rbp)
	movl	$0, -2200(%rbp)
.L27:
	movl	$1, -2208(%rbp)
	jmp	.L6
.L9:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L31
	addl	$1, -2208(%rbp)
.L6:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L9
	jmp	.L8
.L31:
	nop
.L8:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jg	.L32
	movl	-2208(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -2208(%rbp)
	cltq
	movl	$1, -2128(%rbp,%rax,4)
	jmp	.L12
.L13:
	movl	-2208(%rbp), %eax
	cltq
	movl	$0, -2128(%rbp,%rax,4)
	subl	$1, -2208(%rbp)
.L12:
	cmpl	$0, -2208(%rbp)
	jg	.L13
	movl	$1, -2208(%rbp)
	jmp	.L14
.L22:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L33
	movl	$1, -2204(%rbp)
	jmp	.L17
.L20:
	movl	-2204(%rbp), %eax
	movslq	%eax, %rdx
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rdx, %rax
	movl	-2064(%rbp,%rax,4), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %edx
	movl	-2204(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	movl	-1040(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L34
	addl	$1, -2204(%rbp)
.L17:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2192(%rbp,%rax,4), %eax
	cmpl	%eax, -2204(%rbp)
	jle	.L20
	jmp	.L19
.L34:
	nop
.L19:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2192(%rbp,%rax,4), %eax
	cmpl	%eax, -2204(%rbp)
	jle	.L35
	jmp	.L16
.L33:
	nop
.L16:
	addl	$1, -2208(%rbp)
.L14:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L22
	jmp	.L21
.L35:
	nop
.L21:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L36
	movl	$0, -2196(%rbp)
	movl	$1, -2208(%rbp)
	jmp	.L25
.L26:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	addl	%eax, -2196(%rbp)
	addl	$1, -2208(%rbp)
.L25:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L26
	movl	-2196(%rbp), %eax
	cmpl	-2200(%rbp), %eax
	jle	.L27
	movl	-2196(%rbp), %eax
	movl	%eax, -2200(%rbp)
	jmp	.L27
.L36:
	nop
	jmp	.L27
.L32:
	nop
	movl	-2200(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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 %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$2232, %rsp
	.cfi_def_cfa_offset 2288
	movq	%fs:40, %rax
	movq	%rax, 2216(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	movq	$1, 8(%rsp)
	leaq	36(%rsp), %rbx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	.L6
	movq	8(%rsp), %rcx
	movl	$1, %r15d
	leaq	1184(%rsp), %r12
	leaq	160(%rsp), %rbp
	salq	$6, %rcx
	leaq	4(%rcx), %r14
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%r12,%r14), %rdx
	leaq	0(%rbp,%r14), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r15d
	addq	$4, %r14
	cmpl	%r15d, (%rbx)
	jge	.L5
.L6:
	addq	$1, 8(%rsp)
	movl	28(%rsp), %edi
	addq	$4, %rbx
	movq	8(%rsp), %rax
	cmpl	%eax, %edi
	jge	.L4
.L2:
	movl	%edi, %r12d
	pxor	%xmm0, %xmm0
	movl	%edi, %ebx
	xorl	%r11d, %r11d
	andl	$-4, %r12d
	movaps	%xmm0, 96(%rsp)
	leal	-1(%rdi), %r13d
	shrl	$2, %ebx
	movaps	%xmm0, 112(%rsp)
	leal	1(%r12), %r14d
	leaq	96(%rsp), %r8
	xorl	%ebp, %ebp
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 144(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%edi, %edi
	jle	.L8
	movl	100(%rsp), %eax
	testl	%eax, %eax
	je	.L9
	cmpl	$1, %edi
	je	.L8
	movl	104(%rsp), %r15d
	testl	%r15d, %r15d
	je	.L27
	cmpl	$2, %edi
	je	.L8
	movl	108(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L28
	cmpl	$3, %edi
	je	.L8
	movl	112(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L29
	cmpl	$4, %edi
	je	.L8
	movl	116(%rsp), %esi
	testl	%esi, %esi
	je	.L30
	cmpl	$5, %edi
	je	.L8
	movl	120(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L31
	cmpl	$6, %edi
	je	.L8
	movl	124(%rsp), %edx
	testl	%edx, %edx
	je	.L32
	cmpl	$7, %edi
	je	.L8
	movl	128(%rsp), %eax
	testl	%eax, %eax
	je	.L33
	cmpl	$8, %edi
	je	.L8
	movl	132(%rsp), %eax
	testl	%eax, %eax
	je	.L34
	cmpl	$9, %edi
	je	.L8
	movl	136(%rsp), %eax
	testl	%eax, %eax
	je	.L35
	cmpl	$10, %edi
	je	.L8
	movl	140(%rsp), %eax
	testl	%eax, %eax
	je	.L36
	cmpl	$11, %edi
	je	.L8
	movl	144(%rsp), %eax
	testl	%eax, %eax
	je	.L37
	cmpl	$12, %edi
	je	.L8
	movl	148(%rsp), %r15d
	testl	%r15d, %r15d
	je	.L38
	cmpl	$13, %edi
	je	.L8
	movl	152(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L39
	cmpl	$14, %edi
	je	.L8
	movl	156(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L136
.L8:
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	2216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L137
	addq	$2232, %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
.L9:
	.cfi_restore_state
	movl	$1, 100(%rsp)
	.p2align 4,,10
	.p2align 3
.L25:
	leaq	228(%rsp), %rcx
	leaq	1252(%rsp), %rdx
	movl	$1, %eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rax
	addq	$64, %rcx
	addq	$64, %rdx
	cmpl	%eax, %edi
	jl	.L14
.L13:
	movl	(%r8,%rax,4), %esi
	movl	%eax, %r9d
	testl	%esi, %esi
	je	.L11
	movl	32(%rsp,%rax,4), %esi
	testl	%esi, %esi
	jle	.L11
	movslq	(%rcx), %r10
	movl	(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$1, %esi
	je	.L11
	movslq	4(%rcx), %r10
	movl	4(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$2, %esi
	je	.L11
	movslq	8(%rcx), %r10
	movl	8(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$3, %esi
	je	.L11
	movslq	12(%rcx), %r10
	movl	12(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$4, %esi
	je	.L11
	movslq	16(%rcx), %r10
	movl	16(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$5, %esi
	je	.L11
	movslq	20(%rcx), %r10
	movl	20(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$6, %esi
	je	.L11
	movslq	24(%rcx), %r10
	movl	24(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$7, %esi
	je	.L11
	movslq	28(%rcx), %r10
	movl	28(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$8, %esi
	je	.L11
	movslq	32(%rcx), %r10
	movl	32(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$9, %esi
	je	.L11
	movslq	36(%rcx), %r10
	movl	36(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$10, %esi
	je	.L11
	movslq	40(%rcx), %r10
	movl	40(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$11, %esi
	je	.L11
	movslq	44(%rcx), %r10
	movl	44(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$12, %esi
	je	.L11
	movslq	48(%rcx), %r10
	movl	48(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$13, %esi
	je	.L11
	movslq	52(%rcx), %r10
	movl	52(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$14, %esi
	je	.L11
	movslq	56(%rcx), %rsi
	movl	56(%rdx), %r10d
	cmpl	%r10d, 96(%rsp,%rsi,4)
	je	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	cmpl	%r9d, %edi
	jge	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	$2, %r13d
	jbe	.L41
	movdqu	100(%rsp), %xmm0
	cmpl	$1, %ebx
	jbe	.L17
	movdqu	116(%rsp), %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$2, %ebx
	je	.L17
	movdqu	132(%rsp), %xmm3
	paddd	%xmm3, %xmm0
.L17:
	movdqa	%xmm0, %xmm1
	movl	%r14d, %edx
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%edi, %r12d
	je	.L18
.L16:
	movslq	%edx, %rcx
	addl	96(%rsp,%rcx,4), %eax
	leal	1(%rdx), %ecx
	cmpl	%ecx, %edi
	jl	.L18
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	96(%rsp,%rcx,4), %eax
	cmpl	%edx, %edi
	jl	.L18
	movslq	%edx, %rdx
	addl	96(%rsp,%rdx,4), %eax
.L18:
	cmpl	%eax, %r11d
	cmovl	%eax, %r11d
	jmp	.L7
.L41:
	xorl	%eax, %eax
	movl	$1, %edx
	jmp	.L16
.L27:
	movl	$2, %eax
.L10:
	movslq	%eax, %rdx
	leal	-2(%rax), %ecx
	subl	$1, %eax
	movslq	%ecx, %rcx
	cltq
	movl	$1, 96(%rsp,%rdx,4)
	subq	%rcx, %rax
	leaq	4(,%rcx,4), %rdx
	leaq	(%r8,%rax,4), %rax
	cmpl	$8, %edx
	jnb	.L19
	testb	$4, %dl
	jne	.L138
	testl	%edx, %edx
	je	.L25
	movb	$0, (%rax)
	jmp	.L25
.L19:
	movl	%edx, %ecx
	movq	$0, (%rax)
	movq	$0, -8(%rax,%rcx)
	leaq	8(%rax), %rcx
	andq	$-8, %rcx
	subq	%rcx, %rax
	addl	%eax, %edx
	andl	$-8, %edx
	cmpl	$8, %edx
	jb	.L25
	andl	$-8, %edx
	xorl	%eax, %eax
.L23:
	movl	%eax, %esi
	addl	$8, %eax
	movq	%rbp, (%rcx,%rsi)
	cmpl	%edx, %eax
	jb	.L23
	jmp	.L25
.L28:
	movl	$3, %eax
	jmp	.L10
.L138:
	movl	%edx, %edx
	movl	$0, (%rax)
	movl	$0, -4(%rax,%rdx)
	jmp	.L25
.L30:
	movl	$5, %eax
	jmp	.L10
.L29:
	movl	$4, %eax
	jmp	.L10
.L31:
	movl	$6, %eax
	jmp	.L10
.L32:
	movl	$7, %eax
	jmp	.L10
.L33:
	movl	$8, %eax
	jmp	.L10
.L34:
	movl	$9, %eax
	jmp	.L10
.L35:
	movl	$10, %eax
	jmp	.L10
.L36:
	movl	$11, %eax
	jmp	.L10
.L37:
	movl	$12, %eax
	jmp	.L10
.L38:
	movl	$13, %eax
	jmp	.L10
.L39:
	movl	$14, %eax
	jmp	.L10
.L136:
	movl	$15, %eax
	jmp	.L10
.L137:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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 %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$2232, %rsp
	.cfi_def_cfa_offset 2288
	movq	%fs:40, %rax
	movq	%rax, 2216(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	movq	$1, 8(%rsp)
	leaq	36(%rsp), %rbx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	.L6
	movq	8(%rsp), %rcx
	movl	$1, %r15d
	leaq	1184(%rsp), %r12
	leaq	160(%rsp), %rbp
	salq	$6, %rcx
	leaq	4(%rcx), %r14
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%r12,%r14), %rdx
	leaq	0(%rbp,%r14), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r15d
	addq	$4, %r14
	cmpl	%r15d, (%rbx)
	jge	.L5
.L6:
	addq	$1, 8(%rsp)
	movl	28(%rsp), %edi
	addq	$4, %rbx
	movq	8(%rsp), %rax
	cmpl	%eax, %edi
	jge	.L4
.L2:
	movl	%edi, %r12d
	pxor	%xmm0, %xmm0
	movl	%edi, %ebx
	xorl	%r11d, %r11d
	andl	$-4, %r12d
	movaps	%xmm0, 96(%rsp)
	leal	-1(%rdi), %r13d
	shrl	$2, %ebx
	movaps	%xmm0, 112(%rsp)
	leal	1(%r12), %r14d
	leaq	96(%rsp), %r8
	xorl	%ebp, %ebp
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 144(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%edi, %edi
	jle	.L8
	movl	100(%rsp), %eax
	testl	%eax, %eax
	je	.L9
	cmpl	$1, %edi
	je	.L8
	movl	104(%rsp), %r15d
	testl	%r15d, %r15d
	je	.L27
	cmpl	$2, %edi
	je	.L8
	movl	108(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L28
	cmpl	$3, %edi
	je	.L8
	movl	112(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L29
	cmpl	$4, %edi
	je	.L8
	movl	116(%rsp), %esi
	testl	%esi, %esi
	je	.L30
	cmpl	$5, %edi
	je	.L8
	movl	120(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L31
	cmpl	$6, %edi
	je	.L8
	movl	124(%rsp), %edx
	testl	%edx, %edx
	je	.L32
	cmpl	$7, %edi
	je	.L8
	movl	128(%rsp), %eax
	testl	%eax, %eax
	je	.L33
	cmpl	$8, %edi
	je	.L8
	movl	132(%rsp), %eax
	testl	%eax, %eax
	je	.L34
	cmpl	$9, %edi
	je	.L8
	movl	136(%rsp), %eax
	testl	%eax, %eax
	je	.L35
	cmpl	$10, %edi
	je	.L8
	movl	140(%rsp), %eax
	testl	%eax, %eax
	je	.L36
	cmpl	$11, %edi
	je	.L8
	movl	144(%rsp), %eax
	testl	%eax, %eax
	je	.L37
	cmpl	$12, %edi
	je	.L8
	movl	148(%rsp), %r15d
	testl	%r15d, %r15d
	je	.L38
	cmpl	$13, %edi
	je	.L8
	movl	152(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L39
	cmpl	$14, %edi
	je	.L8
	movl	156(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L136
.L8:
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	2216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L137
	addq	$2232, %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
.L9:
	.cfi_restore_state
	movl	$1, 100(%rsp)
	.p2align 4,,10
	.p2align 3
.L25:
	leaq	228(%rsp), %rcx
	leaq	1252(%rsp), %rdx
	movl	$1, %eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rax
	addq	$64, %rcx
	addq	$64, %rdx
	cmpl	%eax, %edi
	jl	.L14
.L13:
	movl	(%r8,%rax,4), %esi
	movl	%eax, %r9d
	testl	%esi, %esi
	je	.L11
	movl	32(%rsp,%rax,4), %esi
	testl	%esi, %esi
	jle	.L11
	movslq	(%rcx), %r10
	movl	(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$1, %esi
	je	.L11
	movslq	4(%rcx), %r10
	movl	4(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$2, %esi
	je	.L11
	movslq	8(%rcx), %r10
	movl	8(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$3, %esi
	je	.L11
	movslq	12(%rcx), %r10
	movl	12(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$4, %esi
	je	.L11
	movslq	16(%rcx), %r10
	movl	16(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$5, %esi
	je	.L11
	movslq	20(%rcx), %r10
	movl	20(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$6, %esi
	je	.L11
	movslq	24(%rcx), %r10
	movl	24(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$7, %esi
	je	.L11
	movslq	28(%rcx), %r10
	movl	28(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$8, %esi
	je	.L11
	movslq	32(%rcx), %r10
	movl	32(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$9, %esi
	je	.L11
	movslq	36(%rcx), %r10
	movl	36(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$10, %esi
	je	.L11
	movslq	40(%rcx), %r10
	movl	40(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$11, %esi
	je	.L11
	movslq	44(%rcx), %r10
	movl	44(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$12, %esi
	je	.L11
	movslq	48(%rcx), %r10
	movl	48(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$13, %esi
	je	.L11
	movslq	52(%rcx), %r10
	movl	52(%rdx), %r15d
	cmpl	%r15d, 96(%rsp,%r10,4)
	jne	.L12
	cmpl	$14, %esi
	je	.L11
	movslq	56(%rcx), %rsi
	movl	56(%rdx), %r10d
	cmpl	%r10d, 96(%rsp,%rsi,4)
	je	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	cmpl	%r9d, %edi
	jge	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	$2, %r13d
	jbe	.L41
	movdqu	100(%rsp), %xmm0
	cmpl	$1, %ebx
	jbe	.L17
	movdqu	116(%rsp), %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$2, %ebx
	je	.L17
	movdqu	132(%rsp), %xmm3
	paddd	%xmm3, %xmm0
.L17:
	movdqa	%xmm0, %xmm1
	movl	%r14d, %edx
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%edi, %r12d
	je	.L18
.L16:
	movslq	%edx, %rcx
	addl	96(%rsp,%rcx,4), %eax
	leal	1(%rdx), %ecx
	cmpl	%ecx, %edi
	jl	.L18
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	96(%rsp,%rcx,4), %eax
	cmpl	%edx, %edi
	jl	.L18
	movslq	%edx, %rdx
	addl	96(%rsp,%rdx,4), %eax
.L18:
	cmpl	%eax, %r11d
	cmovl	%eax, %r11d
	jmp	.L7
.L41:
	xorl	%eax, %eax
	movl	$1, %edx
	jmp	.L16
.L27:
	movl	$2, %eax
.L10:
	movslq	%eax, %rdx
	leal	-2(%rax), %ecx
	subl	$1, %eax
	movslq	%ecx, %rcx
	cltq
	movl	$1, 96(%rsp,%rdx,4)
	subq	%rcx, %rax
	leaq	4(,%rcx,4), %rdx
	leaq	(%r8,%rax,4), %rax
	cmpl	$8, %edx
	jnb	.L19
	testb	$4, %dl
	jne	.L138
	testl	%edx, %edx
	je	.L25
	movb	$0, (%rax)
	jmp	.L25
.L19:
	movl	%edx, %ecx
	movq	$0, (%rax)
	movq	$0, -8(%rax,%rcx)
	leaq	8(%rax), %rcx
	andq	$-8, %rcx
	subq	%rcx, %rax
	addl	%eax, %edx
	andl	$-8, %edx
	cmpl	$8, %edx
	jb	.L25
	andl	$-8, %edx
	xorl	%eax, %eax
.L23:
	movl	%eax, %esi
	addl	$8, %eax
	movq	%rbp, (%rcx,%rsi)
	cmpl	%edx, %eax
	jb	.L23
	jmp	.L25
.L28:
	movl	$3, %eax
	jmp	.L10
.L138:
	movl	%edx, %edx
	movl	$0, (%rax)
	movl	$0, -4(%rax,%rdx)
	jmp	.L25
.L30:
	movl	$5, %eax
	jmp	.L10
.L29:
	movl	$4, %eax
	jmp	.L10
.L31:
	movl	$6, %eax
	jmp	.L10
.L32:
	movl	$7, %eax
	jmp	.L10
.L33:
	movl	$8, %eax
	jmp	.L10
.L34:
	movl	$9, %eax
	jmp	.L10
.L35:
	movl	$10, %eax
	jmp	.L10
.L36:
	movl	$11, %eax
	jmp	.L10
.L37:
	movl	$12, %eax
	jmp	.L10
.L38:
	movl	$13, %eax
	jmp	.L10
.L39:
	movl	$14, %eax
	jmp	.L10
.L136:
	movl	$15, %eax
	jmp	.L10
.L137:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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 <stdlib.h>

int main()
{
	int i, j, N, A[16], x[16][16], y[16][16];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) {
		scanf("%d", &(A[i]));
		for (j = 1; j <= A[i]; j++) scanf("%d %d", &(x[i][j]), &(y[i][j]));
	}
	
	int honest[16] = {}, max = 0, count;
	while (1) {
		for (i = 1; i <= N; i++) if (honest[i] == 0) break;
		if (i > N) break;
		for (honest[i--] = 1; i >= 1; i--) honest[i] = 0;
		
		for (i = 1; i <= N; i++) {
			if (honest[i] == 0) continue;
			for (j = 1; j <= A[i]; j++) {
				if (honest[x[i][j]] != y[i][j]) break;
			}
			if (j <= A[i]) break;
		}
		
		if (i <= N) continue;
		count = 0;
		for (i = 1; i <= N; i++) count += honest[i];
		if (count > max) max = count;
	}
	
	printf("%d\n", max);
	fflush(stdout);
	return 0;
}
3
2
2 1
3 0
2
3 1
1 0
2
1 1
2 -1
 2
1
2 0
1
1 1
 3
1
3 1
1
1 1
1
2 0
 3
1
3 1
1
1 1
0
2 0
 3
2
2 1
3 0
2
3 1
1 0
2
1 0
2 0
 3
1
1 1
1
1 1
0
2 0
 3
2
2 0
3 0
2
3 1
1 0
2
1 1
2 0
 3
1
2 1
1
2 1
1
2 0
 3
2
2 0
3 0
2
3 1
1 0
2
1 1
2 -1
 3
1
3 0
1
1 1
1
2 0

0
 1
 2
 3
 1
 3
 1
 2
 1
 2

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 <stdlib.h>

int main()
{
	int i, j, N, A[16], x[16][16], y[16][16];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) {
		scanf("%d", &(A[i]));
		for (j = 1; j <= A[i]; j++) scanf("%d %d", &(x[i][j]), &(y[i][j]));
	}
	
	int honest[16] = {}, max = 0, count;
	while (1) {
		for (i = 1; i <= N; i++) if (honest[i] == 0) break;
		if (i > N) break;
		for (honest[i--] = 1; i >= 1; i--) honest[i] = 0;
		
		for (i = 1; i <= N; i++) {
			if (honest[i] == 0) continue;
			for (j = 1; j <= A[i]; j++) {
				if (honest[x[i][j]] != y[i][j]) break;
			}
			if (j <= A[i]) break;
		}
		
		if (i <= N) continue;
		count = 0;
		for (i = 1; i <= N; i++) count += honest[i];
		if (count > max) max = count;
	}
	
	printf("%d\n", max);
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2212(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -2208(%rbp)
	jmp	.L2
.L5:
	leaq	-2192(%rbp), %rdx
	movl	-2208(%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
	movl	$1, -2204(%rbp)
	jmp	.L3
.L4:
	leaq	-1040(%rbp), %rdx
	movl	-2204(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-2064(%rbp), %rcx
	movl	-2204(%rbp), %eax
	movslq	%eax, %rsi
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2204(%rbp)
.L3:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2192(%rbp,%rax,4), %eax
	cmpl	%eax, -2204(%rbp)
	jle	.L4
	addl	$1, -2208(%rbp)
.L2:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L5
	movq	$0, -2128(%rbp)
	movq	$0, -2120(%rbp)
	movq	$0, -2112(%rbp)
	movq	$0, -2104(%rbp)
	movq	$0, -2096(%rbp)
	movq	$0, -2088(%rbp)
	movq	$0, -2080(%rbp)
	movq	$0, -2072(%rbp)
	movl	$0, -2200(%rbp)
.L27:
	movl	$1, -2208(%rbp)
	jmp	.L6
.L9:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L31
	addl	$1, -2208(%rbp)
.L6:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L9
	jmp	.L8
.L31:
	nop
.L8:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jg	.L32
	movl	-2208(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -2208(%rbp)
	cltq
	movl	$1, -2128(%rbp,%rax,4)
	jmp	.L12
.L13:
	movl	-2208(%rbp), %eax
	cltq
	movl	$0, -2128(%rbp,%rax,4)
	subl	$1, -2208(%rbp)
.L12:
	cmpl	$0, -2208(%rbp)
	jg	.L13
	movl	$1, -2208(%rbp)
	jmp	.L14
.L22:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L33
	movl	$1, -2204(%rbp)
	jmp	.L17
.L20:
	movl	-2204(%rbp), %eax
	movslq	%eax, %rdx
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rdx, %rax
	movl	-2064(%rbp,%rax,4), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %edx
	movl	-2204(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	movl	-1040(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L34
	addl	$1, -2204(%rbp)
.L17:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2192(%rbp,%rax,4), %eax
	cmpl	%eax, -2204(%rbp)
	jle	.L20
	jmp	.L19
.L34:
	nop
.L19:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2192(%rbp,%rax,4), %eax
	cmpl	%eax, -2204(%rbp)
	jle	.L35
	jmp	.L16
.L33:
	nop
.L16:
	addl	$1, -2208(%rbp)
.L14:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L22
	jmp	.L21
.L35:
	nop
.L21:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L36
	movl	$0, -2196(%rbp)
	movl	$1, -2208(%rbp)
	jmp	.L25
.L26:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	addl	%eax, -2196(%rbp)
	addl	$1, -2208(%rbp)
.L25:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L26
	movl	-2196(%rbp), %eax
	cmpl	-2200(%rbp), %eax
	jle	.L27
	movl	-2196(%rbp), %eax
	movl	%eax, -2200(%rbp)
	jmp	.L27
.L36:
	nop
	jmp	.L27
.L32:
	nop
	movl	-2200(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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 %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2212(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -2208(%rbp)
	jmp	.L2
.L5:
	leaq	-2192(%rbp), %rdx
	movl	-2208(%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
	movl	$1, -2204(%rbp)
	jmp	.L3
.L4:
	leaq	-1040(%rbp), %rdx
	movl	-2204(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-2064(%rbp), %rcx
	movl	-2204(%rbp), %eax
	movslq	%eax, %rsi
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2204(%rbp)
.L3:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2192(%rbp,%rax,4), %eax
	cmpl	%eax, -2204(%rbp)
	jle	.L4
	addl	$1, -2208(%rbp)
.L2:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L5
	movq	$0, -2128(%rbp)
	movq	$0, -2120(%rbp)
	movq	$0, -2112(%rbp)
	movq	$0, -2104(%rbp)
	movq	$0, -2096(%rbp)
	movq	$0, -2088(%rbp)
	movq	$0, -2080(%rbp)
	movq	$0, -2072(%rbp)
	movl	$0, -2200(%rbp)
.L27:
	movl	$1, -2208(%rbp)
	jmp	.L6
.L9:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L31
	addl	$1, -2208(%rbp)
.L6:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L9
	jmp	.L8
.L31:
	nop
.L8:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jg	.L32
	movl	-2208(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -2208(%rbp)
	cltq
	movl	$1, -2128(%rbp,%rax,4)
	jmp	.L12
.L13:
	movl	-2208(%rbp), %eax
	cltq
	movl	$0, -2128(%rbp,%rax,4)
	subl	$1, -2208(%rbp)
.L12:
	cmpl	$0, -2208(%rbp)
	jg	.L13
	movl	$1, -2208(%rbp)
	jmp	.L14
.L22:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L33
	movl	$1, -2204(%rbp)
	jmp	.L17
.L20:
	movl	-2204(%rbp), %eax
	movslq	%eax, %rdx
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rdx, %rax
	movl	-2064(%rbp,%rax,4), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %edx
	movl	-2204(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2208(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	movl	-1040(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L34
	addl	$1, -2204(%rbp)
.L17:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2192(%rbp,%rax,4), %eax
	cmpl	%eax, -2204(%rbp)
	jle	.L20
	jmp	.L19
.L34:
	nop
.L19:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2192(%rbp,%rax,4), %eax
	cmpl	%eax, -2204(%rbp)
	jle	.L35
	jmp	.L16
.L33:
	nop
.L16:
	addl	$1, -2208(%rbp)
.L14:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L22
	jmp	.L21
.L35:
	nop
.L21:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L36
	movl	$0, -2196(%rbp)
	movl	$1, -2208(%rbp)
	jmp	.L25
.L26:
	movl	-2208(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	addl	%eax, -2196(%rbp)
	addl	$1, -2208(%rbp)
.L25:
	movl	-2212(%rbp), %eax
	cmpl	%eax, -2208(%rbp)
	jle	.L26
	movl	-2196(%rbp), %eax
	cmpl	-2200(%rbp), %eax
	jle	.L27
	movl	-2196(%rbp), %eax
	movl	%eax, -2200(%rbp)
	jmp	.L27
.L36:
	nop
	jmp	.L27
.L32:
	nop
	movl	-2200(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
