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

```c
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){
	int n, m, i, j, k;
	char s[10][10]; //m, n
	char p[10];
	memset(s, 0, sizeof(s));
	scanf("%d%d", &n, &m);
	for(i=0; i<m; i++){
		scanf("%d", &k);
		for(j=0; j<k; j++){
			int S;
			scanf("%d", &S);
			s[i][S-1]=1;
		}
	}
	for(i=0; i<m; i++){
		int P;
		scanf("%d", &P);
		p[i]=P;
	}
	int ans=0;
	int l=(1<<n);
	for(i=0; i<l; i++){
		char f=1;
		for(j=0; j<m; j++){
			int g=p[j];
			for(k=0; k<n; k++){
				if((i&(1<<k))!=0 && s[j][k]!=0) g++;
			}
			if(g%2!=0){f=0; break;}
		}
		if(f!=0) ans++;
	}
	printf("%d\n", ans);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%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	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-128(%rbp), %rax
	movl	$100, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-160(%rbp), %rdx
	leaq	-164(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -148(%rbp)
	jmp	.L2
.L5:
	leaq	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -144(%rbp)
	jmp	.L3
.L4:
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-152(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	addq	$-128, %rax
	movb	$1, (%rax)
	addl	$1, -144(%rbp)
.L3:
	movl	-156(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L4
	addl	$1, -148(%rbp)
.L2:
	movl	-160(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L5
	movl	$0, -148(%rbp)
	jmp	.L6
.L7:
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-152(%rbp), %eax
	movl	%eax, %edx
	movl	-148(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	addl	$1, -148(%rbp)
.L6:
	movl	-160(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L7
	movl	$0, -140(%rbp)
	movl	-164(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movl	%eax, -132(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L8
.L17:
	movb	$1, -165(%rbp)
	movl	$0, -144(%rbp)
	jmp	.L9
.L15:
	movl	-144(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, -136(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L10
.L12:
	movl	-156(%rbp), %eax
	movl	-148(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L11
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movl	-144(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	addq	$-128, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L11
	addl	$1, -136(%rbp)
.L11:
	movl	-156(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -156(%rbp)
.L10:
	movl	-156(%rbp), %edx
	movl	-164(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L12
	movl	-136(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L13
	movb	$0, -165(%rbp)
	jmp	.L14
.L13:
	addl	$1, -144(%rbp)
.L9:
	movl	-160(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L15
.L14:
	cmpb	$0, -165(%rbp)
	je	.L16
	addl	$1, -140(%rbp)
.L16:
	addl	$1, -148(%rbp)
.L8:
	movl	-148(%rbp), %eax
	cmpl	-132(%rbp), %eax
	jl	.L17
	movl	-140(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%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
.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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$12, %ecx
	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	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	leaq	20(%rsp), %rdx
	movq	%rdi, (%rsp)
	leaq	16(%rsp), %rsi
	rep stosq
	movl	$0, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L2
	leaq	24(%rsp), %rax
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	movq	%rax, 8(%rsp)
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	movslq	%r14d, %rax
	testl	%edx, %edx
	jle	.L6
	leaq	(%rax,%rax,4), %rax
	leaq	160(%rsp,%rax,2), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	subl	$1, %eax
	cltq
	movb	$1, -128(%rax,%r12)
	cmpl	%r15d, 24(%rsp)
	jg	.L3
.L6:
	movl	20(%rsp), %r10d
	addl	$1, %r14d
	cmpl	%r14d, %r10d
	jg	.L4
	testl	%r10d, %r10d
	jle	.L2
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	leaq	142(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	movl	20(%rsp), %r10d
	movb	%al, (%r12,%r14)
	addq	$1, %r14
	cmpl	%r14d, %r10d
	jg	.L7
.L2:
	movl	16(%rsp), %ecx
	movl	$1, %ebx
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	sall	%cl, %ebx
	testl	%ebx, %ebx
	jle	.L9
	leal	-1(%r10), %edx
	movslq	%ecx, %rdi
	leaq	143(%rsp,%rdx), %r11
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rsp), %r8
	leaq	142(%rsp), %r9
	testl	%r10d, %r10d
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	movsbl	(%r9), %edx
	testl	%ecx, %ecx
	jle	.L22
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L12:
	btl	%eax, %esi
	jnc	.L11
	cmpb	$1, (%r8,%rax)
	sbbl	$-1, %edx
.L11:
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L12
	andl	$1, %edx
	movl	%ecx, %r13d
	jne	.L23
.L42:
	addq	$1, %r9
	addq	$10, %r8
	cmpq	%r11, %r9
	jne	.L14
	movl	$1, %eax
.L15:
	addl	$1, %r12d
.L13:
	addl	$1, %esi
	cmpl	%esi, %ebx
	jne	.L8
	testb	%al, %al
	je	.L9
	movl	%r13d, 24(%rsp)
.L9:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$168, %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
.L22:
	.cfi_restore_state
	xorl	%r13d, %r13d
	andl	$1, %edx
	je	.L42
.L23:
	movl	$1, %eax
	jmp	.L13
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$12, %ecx
	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	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	leaq	20(%rsp), %rdx
	movq	%rdi, (%rsp)
	leaq	16(%rsp), %rsi
	rep stosq
	movl	$0, (%rdi)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L2
	leaq	24(%rsp), %rax
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	movq	%rax, 8(%rsp)
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	movslq	%r14d, %rax
	testl	%edx, %edx
	jle	.L6
	leaq	(%rax,%rax,4), %rax
	leaq	160(%rsp,%rax,2), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	subl	$1, %eax
	cltq
	movb	$1, -128(%rax,%r12)
	cmpl	%r15d, 24(%rsp)
	jg	.L3
.L6:
	movl	20(%rsp), %r10d
	addl	$1, %r14d
	cmpl	%r14d, %r10d
	jg	.L4
	testl	%r10d, %r10d
	jle	.L2
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	leaq	142(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	movl	20(%rsp), %r10d
	movb	%al, (%r12,%r14)
	addq	$1, %r14
	cmpl	%r14d, %r10d
	jg	.L7
.L2:
	movl	16(%rsp), %ecx
	movl	$1, %ebx
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	sall	%cl, %ebx
	testl	%ebx, %ebx
	jle	.L9
	leal	-1(%r10), %edx
	movslq	%ecx, %rdi
	leaq	143(%rsp,%rdx), %r11
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rsp), %r8
	leaq	142(%rsp), %r9
	testl	%r10d, %r10d
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	movsbl	(%r9), %edx
	testl	%ecx, %ecx
	jle	.L22
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L12:
	btl	%eax, %esi
	jnc	.L11
	cmpb	$1, (%r8,%rax)
	sbbl	$-1, %edx
.L11:
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L12
	andl	$1, %edx
	movl	%ecx, %r13d
	jne	.L23
.L42:
	addq	$1, %r9
	addq	$10, %r8
	cmpq	%r11, %r9
	jne	.L14
	movl	$1, %eax
.L15:
	addl	$1, %r12d
.L13:
	addl	$1, %esi
	cmpl	%esi, %ebx
	jne	.L8
	testb	%al, %al
	je	.L9
	movl	%r13d, 24(%rsp)
.L9:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$168, %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
.L22:
	.cfi_restore_state
	xorl	%r13d, %r13d
	andl	$1, %edx
	je	.L42
.L23:
	movl	$1, %eax
	jmp	.L13
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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 <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){
	int n, m, i, j, k;
	char s[10][10]; //m, n
	char p[10];
	memset(s, 0, sizeof(s));
	scanf("%d%d", &n, &m);
	for(i=0; i<m; i++){
		scanf("%d", &k);
		for(j=0; j<k; j++){
			int S;
			scanf("%d", &S);
			s[i][S-1]=1;
		}
	}
	for(i=0; i<m; i++){
		int P;
		scanf("%d", &P);
		p[i]=P;
	}
	int ans=0;
	int l=(1<<n);
	for(i=0; i<l; i++){
		char f=1;
		for(j=0; j<m; j++){
			int g=p[j];
			for(k=0; k<n; k++){
				if((i&(1<<k))!=0 && s[j][k]!=0) g++;
			}
			if(g%2!=0){f=0; break;}
		}
		if(f!=0) ans++;
	}
	printf("%d\n", ans);
}

2 2
2 1 2
1 2
0 0
 4 2
2 1 2
1 2
0 1
 5 2
1 1 2 5
2 2 3
1 0
 2 3
2 1 2
1 1
1 2
0 0 -1
 4 0
1 1 2
1 2
0 1
 1 0
0 1 4
1 1
0 1
0 0 -1
 9 2
3 1 2 5
2 2 3
1 0
 7 2
2 1 2
1 1
0 1
 8 0
2 1 2
1 1
1 2
0 0 -1
 6 0
-4 0 2
-1 4
1 0
0 0 -2

1
 4
 8
 0
 16
 2
 128
 32
 256
 64

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

```c
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){
	int n, m, i, j, k;
	char s[10][10]; //m, n
	char p[10];
	memset(s, 0, sizeof(s));
	scanf("%d%d", &n, &m);
	for(i=0; i<m; i++){
		scanf("%d", &k);
		for(j=0; j<k; j++){
			int S;
			scanf("%d", &S);
			s[i][S-1]=1;
		}
	}
	for(i=0; i<m; i++){
		int P;
		scanf("%d", &P);
		p[i]=P;
	}
	int ans=0;
	int l=(1<<n);
	for(i=0; i<l; i++){
		char f=1;
		for(j=0; j<m; j++){
			int g=p[j];
			for(k=0; k<n; k++){
				if((i&(1<<k))!=0 && s[j][k]!=0) g++;
			}
			if(g%2!=0){f=0; break;}
		}
		if(f!=0) ans++;
	}
	printf("%d\n", ans);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%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	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-128(%rbp), %rax
	movl	$100, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-160(%rbp), %rdx
	leaq	-164(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -148(%rbp)
	jmp	.L2
.L5:
	leaq	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -144(%rbp)
	jmp	.L3
.L4:
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-152(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	addq	$-128, %rax
	movb	$1, (%rax)
	addl	$1, -144(%rbp)
.L3:
	movl	-156(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L4
	addl	$1, -148(%rbp)
.L2:
	movl	-160(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L5
	movl	$0, -148(%rbp)
	jmp	.L6
.L7:
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-152(%rbp), %eax
	movl	%eax, %edx
	movl	-148(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	addl	$1, -148(%rbp)
.L6:
	movl	-160(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L7
	movl	$0, -140(%rbp)
	movl	-164(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movl	%eax, -132(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L8
.L17:
	movb	$1, -165(%rbp)
	movl	$0, -144(%rbp)
	jmp	.L9
.L15:
	movl	-144(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, -136(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L10
.L12:
	movl	-156(%rbp), %eax
	movl	-148(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L11
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movl	-144(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	addq	$-128, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L11
	addl	$1, -136(%rbp)
.L11:
	movl	-156(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -156(%rbp)
.L10:
	movl	-156(%rbp), %edx
	movl	-164(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L12
	movl	-136(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L13
	movb	$0, -165(%rbp)
	jmp	.L14
.L13:
	addl	$1, -144(%rbp)
.L9:
	movl	-160(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L15
.L14:
	cmpb	$0, -165(%rbp)
	je	.L16
	addl	$1, -140(%rbp)
.L16:
	addl	$1, -148(%rbp)
.L8:
	movl	-148(%rbp), %eax
	cmpl	-132(%rbp), %eax
	jl	.L17
	movl	-140(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%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
.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%d"
.LC1:
	.string	"%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	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-128(%rbp), %rax
	movl	$100, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-160(%rbp), %rdx
	leaq	-164(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -148(%rbp)
	jmp	.L2
.L5:
	leaq	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -144(%rbp)
	jmp	.L3
.L4:
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-152(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	addq	$-128, %rax
	movb	$1, (%rax)
	addl	$1, -144(%rbp)
.L3:
	movl	-156(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L4
	addl	$1, -148(%rbp)
.L2:
	movl	-160(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L5
	movl	$0, -148(%rbp)
	jmp	.L6
.L7:
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-152(%rbp), %eax
	movl	%eax, %edx
	movl	-148(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	addl	$1, -148(%rbp)
.L6:
	movl	-160(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L7
	movl	$0, -140(%rbp)
	movl	-164(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movl	%eax, -132(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L8
.L17:
	movb	$1, -165(%rbp)
	movl	$0, -144(%rbp)
	jmp	.L9
.L15:
	movl	-144(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, -136(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L10
.L12:
	movl	-156(%rbp), %eax
	movl	-148(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L11
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movl	-144(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	addq	$-128, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L11
	addl	$1, -136(%rbp)
.L11:
	movl	-156(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -156(%rbp)
.L10:
	movl	-156(%rbp), %edx
	movl	-164(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L12
	movl	-136(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L13
	movb	$0, -165(%rbp)
	jmp	.L14
.L13:
	addl	$1, -144(%rbp)
.L9:
	movl	-160(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L15
.L14:
	cmpb	$0, -165(%rbp)
	je	.L16
	addl	$1, -140(%rbp)
.L16:
	addl	$1, -148(%rbp)
.L8:
	movl	-148(%rbp), %eax
	cmpl	-132(%rbp), %eax
	jl	.L17
	movl	-140(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%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
.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:
