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

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

int int_pow(int a, int x)
{
	int i = 0;
	int r = 1;
	while (i < x)
	{
		r = r*a;
		i++;
	}
	return (r);
}
int main (void)
{
	int n, m;
	scanf("%d %d",&n,&m);
	int *k;
	k = (int *)malloc(sizeof(int)*(m));
	int **s;
	s = (int **)malloc(sizeof(int *)*(m));
	int i = 0;
	int j = 0;
	while (i < m)
	{
		j = 0;
		scanf("%d", &(k[i]));
		s[i] = (int *)malloc(sizeof(int)*(k[i]));
		while (j < k[i])
		{
			scanf("%d",&(s[i][j]));
			j++;
		}
		i++;
	}
	i = 0;
	j = 0;
	int *p;
	int on = 0;
	int l = 0;
	p = (int *)malloc(sizeof(int)*(m));
	while (i < m)
	{
		scanf("%d",&p[i]);
		i++;
	}
	int sum = 0;
	i = 0;
	int dig[10];
	//printf("debug0002000\n");
	while (i < int_pow(2,n))
	{
		j = 0;
		//printf("i:%d, j:%d\n",i,j);
		while (j < 10)
		{
			//printf("debug 00090 j:%d\n",j);
			dig[j] = (i/int_pow(2,j))%2;
			j++;
		}
		j = 0;
		//printf("debug 00100 i:%d, j:%d\n",i,j);
		while (j < m)
		{
			l = 0;
			on = 0;
			while (l < k[j])
			{
				if (dig[s[j][l]-1] == 1 )
					on++;
				l++;
			}
			if(on%2 != p[j])
				break;
			j++;
		}
		if (j == m)
			sum++;
		//printf("sum:%d, i:%d\n",sum,i);
		i++;
	}
	printf("%d\n",sum);
	return (0);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	int_pow
	.type	int_pow, @function
int_pow:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -8(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	imull	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	int_pow, .-int_pow
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -88(%rbp)
	movl	-112(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -80(%rbp)
	movl	$0, -108(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L6
.L9:
	movl	$0, -104(%rbp)
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	salq	$2, %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-80(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	jmp	.L7
.L8:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-104(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -104(%rbp)
.L7:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L8
	addl	$1, -108(%rbp)
.L6:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L9
	movl	$0, -108(%rbp)
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	movl	$0, -96(%rbp)
	movl	-112(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -72(%rbp)
	jmp	.L10
.L11:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L10:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L11
	movl	$0, -92(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L12
.L23:
	movl	$0, -104(%rbp)
	jmp	.L13
.L14:
	movl	-104(%rbp), %eax
	movl	%eax, %esi
	movl	$2, %edi
	call	int_pow
	movl	%eax, %ebx
	movl	-108(%rbp), %eax
	cltd
	idivl	%ebx
	movl	%eax, %edx
	movl	%edx, %eax
	sarl	$31, %eax
	shrl	$31, %eax
	movl	%eax, %ecx
	leal	(%rdx,%rcx), %eax
	andl	$1, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-104(%rbp), %eax
	cltq
	movl	%edx, -64(%rbp,%rax,4)
	addl	$1, -104(%rbp)
.L13:
	cmpl	$9, -104(%rbp)
	jle	.L14
	movl	$0, -104(%rbp)
	jmp	.L15
.L21:
	movl	$0, -96(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L16
.L18:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-96(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	subl	$1, %eax
	cltq
	movl	-64(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L17
	addl	$1, -100(%rbp)
.L17:
	addl	$1, -96(%rbp)
.L16:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L18
	movl	-100(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-72(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jne	.L26
	addl	$1, -104(%rbp)
.L15:
	movl	-112(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L21
	jmp	.L20
.L26:
	nop
.L20:
	movl	-112(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jne	.L22
	addl	$1, -92(%rbp)
.L22:
	addl	$1, -108(%rbp)
.L12:
	movl	-116(%rbp), %eax
	movl	%eax, %esi
	movl	$2, %edi
	call	int_pow
	cmpl	%eax, -108(%rbp)
	jl	.L23
	movl	-92(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.p2align 4
	.globl	int_pow
	.type	int_pow, @function
int_pow:
.LFB51:
	.cfi_startproc
	endbr64
	movl	$1, %r8d
	testl	%esi, %esi
	jle	.L1
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, %eax
	imull	%edi, %r8d
	cmpl	%eax, %esi
	jne	.L3
.L1:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	int_pow, .-int_pow
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%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	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rbp
	leaq	0(,%rbp,4), %r13
	movq	%rbp, %r12
	movq	%r13, %rdi
	call	malloc@PLT
	leaq	0(,%rbp,8), %rdi
	movq	%rax, %rbx
	call	malloc@PLT
	movq	%rax, %rbp
	testl	%r12d, %r12d
	jle	.L8
	movq	$0, (%rsp)
	movq	%rbx, %r13
	leaq	.LC2(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movslq	0(%r13), %rdi
	movl	%edi, 12(%rsp)
	salq	$2, %rdi
	call	malloc@PLT
	movl	12(%rsp), %ecx
	movq	%rax, %r12
	movq	(%rsp), %rax
	movq	%r12, 0(%rbp,%rax,8)
	testl	%ecx, %ecx
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%r15d, 0(%r13)
	jg	.L12
.L13:
	addq	$1, (%rsp)
	movl	28(%rsp), %r12d
	addq	$4, %r13
	movq	(%rsp), %rax
	cmpl	%eax, %r12d
	jg	.L10
	movslq	%r12d, %rdi
	salq	$2, %rdi
	call	malloc@PLT
	movq	%rax, %r13
	testl	%r12d, %r12d
	jle	.L14
	movq	%rax, %rdx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rdx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movq	%rdx, (%rsp)
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdx
	movl	28(%rsp), %r12d
	addl	$1, %r15d
	addq	$4, %rdx
	cmpl	%r15d, %r12d
	jg	.L15
.L14:
	movl	24(%rsp), %r11d
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	leal	1(%r12), %r9d
	movdqa	.LC3(%rip), %xmm2
	movl	%r11d, %r10d
	movl	%r11d, %r15d
	shrl	%r10d
	andl	$-2, %r15d
	testl	%r11d, %r11d
	jle	.L31
	.p2align 4,,10
	.p2align 3
.L45:
	cmpl	$1, %r11d
	je	.L32
	movq	.LC0(%rip), %xmm0
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L26:
	addl	$1, %eax
	pslld	$1, %xmm0
	cmpl	%eax, %r10d
	jne	.L26
	movd	%xmm0, %eax
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm7, %edx
	imull	%edx, %eax
	cmpl	%r15d, %r11d
	je	.L24
.L25:
	addl	%eax, %eax
.L24:
	cmpl	%eax, %edi
	jge	.L28
.L46:
	movl	%edi, %eax
	movl	%edi, %ecx
	movl	%edi, %edx
	movl	%edi, %esi
	sarl	%eax
	sarl	$3, %edx
	movd	%edi, %xmm0
	movl	$1, %r8d
	sarl	$2, %ecx
	movd	%edx, %xmm3
	movd	%eax, %xmm4
	movl	%edi, %eax
	movd	%ecx, %xmm1
	punpckldq	%xmm4, %xmm0
	sarl	$4, %eax
	movl	%edi, %edx
	sarl	$6, %esi
	punpckldq	%xmm3, %xmm1
	sarl	$7, %edx
	punpcklqdq	%xmm1, %xmm0
	movd	%edx, %xmm5
	movd	%esi, %xmm1
	pand	%xmm2, %xmm0
	punpckldq	%xmm5, %xmm1
	movaps	%xmm0, 32(%rsp)
	movd	%eax, %xmm0
	movl	%edi, %eax
	sarl	$5, %eax
	movd	%eax, %xmm6
	movl	%edi, %eax
	sarl	$8, %eax
	punpckldq	%xmm6, %xmm0
	andl	$1, %eax
	punpcklqdq	%xmm1, %xmm0
	movl	%eax, 64(%rsp)
	movl	%edi, %eax
	pand	%xmm2, %xmm0
	sarl	$9, %eax
	movaps	%xmm0, 48(%rsp)
	andl	$1, %eax
	movl	%eax, 68(%rsp)
	xorl	%eax, %eax
	testl	%r12d, %r12d
	jle	.L21
.L17:
	movl	-4(%rbx,%r8,4), %edx
	xorl	%ecx, %ecx
	testl	%edx, %edx
	jle	.L23
	movq	-8(%rbp,%r8,8), %rax
	leal	-1(%rdx), %ecx
	leaq	4(%rax), %rdx
	leaq	(%rdx,%rcx,4), %rsi
	xorl	%ecx, %ecx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L44:
	addq	$4, %rdx
.L19:
	movl	(%rax), %eax
	subl	$1, %eax
	cltq
	cmpl	$1, 32(%rsp,%rax,4)
	jne	.L18
	addl	$1, %ecx
.L18:
	movq	%rdx, %rax
	cmpq	%rdx, %rsi
	jne	.L44
	andl	$1, %ecx
.L23:
	cmpl	%ecx, -4(%r13,%r8,4)
	jne	.L20
	movl	%r8d, %eax
	addq	$1, %r8
	cmpq	%r9, %r8
	jne	.L17
.L21:
	cmpl	%r12d, %eax
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %r14d
.L20:
	addl	$1, %edi
	testl	%r11d, %r11d
	jg	.L45
.L31:
	movl	$1, %eax
	cmpl	%eax, %edi
	jl	.L46
.L28:
	xorl	%eax, %eax
	movl	%r14d, %edx
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L47
	addq	$88, %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
.L32:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L25
.L8:
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%rax, %r13
	jmp	.L14
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.set	.LC0,.LC3
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.p2align 4
	.globl	int_pow
	.type	int_pow, @function
int_pow:
.LFB51:
	.cfi_startproc
	endbr64
	movl	$1, %r8d
	testl	%esi, %esi
	jle	.L1
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, %eax
	imull	%edi, %r8d
	cmpl	%eax, %esi
	jne	.L3
.L1:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	int_pow, .-int_pow
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%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	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rbp
	leaq	0(,%rbp,4), %r13
	movq	%rbp, %r12
	movq	%r13, %rdi
	call	malloc@PLT
	leaq	0(,%rbp,8), %rdi
	movq	%rax, %rbx
	call	malloc@PLT
	movq	%rax, %rbp
	testl	%r12d, %r12d
	jle	.L8
	movq	$0, (%rsp)
	movq	%rbx, %r13
	leaq	.LC2(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movslq	0(%r13), %rdi
	movl	%edi, 12(%rsp)
	salq	$2, %rdi
	call	malloc@PLT
	movl	12(%rsp), %ecx
	movq	%rax, %r12
	movq	(%rsp), %rax
	movq	%r12, 0(%rbp,%rax,8)
	testl	%ecx, %ecx
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%r15d, 0(%r13)
	jg	.L12
.L13:
	addq	$1, (%rsp)
	movl	28(%rsp), %r12d
	addq	$4, %r13
	movq	(%rsp), %rax
	cmpl	%eax, %r12d
	jg	.L10
	movslq	%r12d, %rdi
	salq	$2, %rdi
	call	malloc@PLT
	movq	%rax, %r13
	testl	%r12d, %r12d
	jle	.L14
	movq	%rax, %rdx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rdx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movq	%rdx, (%rsp)
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdx
	movl	28(%rsp), %r12d
	addl	$1, %r15d
	addq	$4, %rdx
	cmpl	%r15d, %r12d
	jg	.L15
.L14:
	movl	24(%rsp), %r11d
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	leal	1(%r12), %r9d
	movdqa	.LC3(%rip), %xmm2
	movl	%r11d, %r10d
	movl	%r11d, %r15d
	shrl	%r10d
	andl	$-2, %r15d
	testl	%r11d, %r11d
	jle	.L31
	.p2align 4,,10
	.p2align 3
.L45:
	cmpl	$1, %r11d
	je	.L32
	movq	.LC0(%rip), %xmm0
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L26:
	addl	$1, %eax
	pslld	$1, %xmm0
	cmpl	%eax, %r10d
	jne	.L26
	movd	%xmm0, %eax
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm7, %edx
	imull	%edx, %eax
	cmpl	%r15d, %r11d
	je	.L24
.L25:
	addl	%eax, %eax
.L24:
	cmpl	%eax, %edi
	jge	.L28
.L46:
	movl	%edi, %eax
	movl	%edi, %ecx
	movl	%edi, %edx
	movl	%edi, %esi
	sarl	%eax
	sarl	$3, %edx
	movd	%edi, %xmm0
	movl	$1, %r8d
	sarl	$2, %ecx
	movd	%edx, %xmm3
	movd	%eax, %xmm4
	movl	%edi, %eax
	movd	%ecx, %xmm1
	punpckldq	%xmm4, %xmm0
	sarl	$4, %eax
	movl	%edi, %edx
	sarl	$6, %esi
	punpckldq	%xmm3, %xmm1
	sarl	$7, %edx
	punpcklqdq	%xmm1, %xmm0
	movd	%edx, %xmm5
	movd	%esi, %xmm1
	pand	%xmm2, %xmm0
	punpckldq	%xmm5, %xmm1
	movaps	%xmm0, 32(%rsp)
	movd	%eax, %xmm0
	movl	%edi, %eax
	sarl	$5, %eax
	movd	%eax, %xmm6
	movl	%edi, %eax
	sarl	$8, %eax
	punpckldq	%xmm6, %xmm0
	andl	$1, %eax
	punpcklqdq	%xmm1, %xmm0
	movl	%eax, 64(%rsp)
	movl	%edi, %eax
	pand	%xmm2, %xmm0
	sarl	$9, %eax
	movaps	%xmm0, 48(%rsp)
	andl	$1, %eax
	movl	%eax, 68(%rsp)
	xorl	%eax, %eax
	testl	%r12d, %r12d
	jle	.L21
.L17:
	movl	-4(%rbx,%r8,4), %edx
	xorl	%ecx, %ecx
	testl	%edx, %edx
	jle	.L23
	movq	-8(%rbp,%r8,8), %rax
	leal	-1(%rdx), %ecx
	leaq	4(%rax), %rdx
	leaq	(%rdx,%rcx,4), %rsi
	xorl	%ecx, %ecx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L44:
	addq	$4, %rdx
.L19:
	movl	(%rax), %eax
	subl	$1, %eax
	cltq
	cmpl	$1, 32(%rsp,%rax,4)
	jne	.L18
	addl	$1, %ecx
.L18:
	movq	%rdx, %rax
	cmpq	%rdx, %rsi
	jne	.L44
	andl	$1, %ecx
.L23:
	cmpl	%ecx, -4(%r13,%r8,4)
	jne	.L20
	movl	%r8d, %eax
	addq	$1, %r8
	cmpq	%r9, %r8
	jne	.L17
.L21:
	cmpl	%r12d, %eax
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %r14d
.L20:
	addl	$1, %edi
	testl	%r11d, %r11d
	jg	.L45
.L31:
	movl	$1, %eax
	cmpl	%eax, %edi
	jl	.L46
.L28:
	xorl	%eax, %eax
	movl	%r14d, %edx
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L47
	addq	$88, %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
.L32:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L25
.L8:
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%rax, %r13
	jmp	.L14
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.set	.LC0,.LC3
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	1
	.long	1
	.long	1
	.long	1
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int int_pow(int a, int x)
{
	int i = 0;
	int r = 1;
	while (i < x)
	{
		r = r*a;
		i++;
	}
	return (r);
}
int main (void)
{
	int n, m;
	scanf("%d %d",&n,&m);
	int *k;
	k = (int *)malloc(sizeof(int)*(m));
	int **s;
	s = (int **)malloc(sizeof(int *)*(m));
	int i = 0;
	int j = 0;
	while (i < m)
	{
		j = 0;
		scanf("%d", &(k[i]));
		s[i] = (int *)malloc(sizeof(int)*(k[i]));
		while (j < k[i])
		{
			scanf("%d",&(s[i][j]));
			j++;
		}
		i++;
	}
	i = 0;
	j = 0;
	int *p;
	int on = 0;
	int l = 0;
	p = (int *)malloc(sizeof(int)*(m));
	while (i < m)
	{
		scanf("%d",&p[i]);
		i++;
	}
	int sum = 0;
	i = 0;
	int dig[10];
	//printf("debug0002000\n");
	while (i < int_pow(2,n))
	{
		j = 0;
		//printf("i:%d, j:%d\n",i,j);
		while (j < 10)
		{
			//printf("debug 00090 j:%d\n",j);
			dig[j] = (i/int_pow(2,j))%2;
			j++;
		}
		j = 0;
		//printf("debug 00100 i:%d, j:%d\n",i,j);
		while (j < m)
		{
			l = 0;
			on = 0;
			while (l < k[j])
			{
				if (dig[s[j][l]-1] == 1 )
					on++;
				l++;
			}
			if(on%2 != p[j])
				break;
			j++;
		}
		if (j == m)
			sum++;
		//printf("sum:%d, i:%d\n",sum,i);
		i++;
	}
	printf("%d\n",sum);
	return (0);
}

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

int int_pow(int a, int x)
{
	int i = 0;
	int r = 1;
	while (i < x)
	{
		r = r*a;
		i++;
	}
	return (r);
}
int main (void)
{
	int n, m;
	scanf("%d %d",&n,&m);
	int *k;
	k = (int *)malloc(sizeof(int)*(m));
	int **s;
	s = (int **)malloc(sizeof(int *)*(m));
	int i = 0;
	int j = 0;
	while (i < m)
	{
		j = 0;
		scanf("%d", &(k[i]));
		s[i] = (int *)malloc(sizeof(int)*(k[i]));
		while (j < k[i])
		{
			scanf("%d",&(s[i][j]));
			j++;
		}
		i++;
	}
	i = 0;
	j = 0;
	int *p;
	int on = 0;
	int l = 0;
	p = (int *)malloc(sizeof(int)*(m));
	while (i < m)
	{
		scanf("%d",&p[i]);
		i++;
	}
	int sum = 0;
	i = 0;
	int dig[10];
	//printf("debug0002000\n");
	while (i < int_pow(2,n))
	{
		j = 0;
		//printf("i:%d, j:%d\n",i,j);
		while (j < 10)
		{
			//printf("debug 00090 j:%d\n",j);
			dig[j] = (i/int_pow(2,j))%2;
			j++;
		}
		j = 0;
		//printf("debug 00100 i:%d, j:%d\n",i,j);
		while (j < m)
		{
			l = 0;
			on = 0;
			while (l < k[j])
			{
				if (dig[s[j][l]-1] == 1 )
					on++;
				l++;
			}
			if(on%2 != p[j])
				break;
			j++;
		}
		if (j == m)
			sum++;
		//printf("sum:%d, i:%d\n",sum,i);
		i++;
	}
	printf("%d\n",sum);
	return (0);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	int_pow
	.type	int_pow, @function
int_pow:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -8(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	imull	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	int_pow, .-int_pow
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -88(%rbp)
	movl	-112(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -80(%rbp)
	movl	$0, -108(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L6
.L9:
	movl	$0, -104(%rbp)
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	salq	$2, %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-80(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	jmp	.L7
.L8:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-104(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -104(%rbp)
.L7:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L8
	addl	$1, -108(%rbp)
.L6:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L9
	movl	$0, -108(%rbp)
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	movl	$0, -96(%rbp)
	movl	-112(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -72(%rbp)
	jmp	.L10
.L11:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L10:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L11
	movl	$0, -92(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L12
.L23:
	movl	$0, -104(%rbp)
	jmp	.L13
.L14:
	movl	-104(%rbp), %eax
	movl	%eax, %esi
	movl	$2, %edi
	call	int_pow
	movl	%eax, %ebx
	movl	-108(%rbp), %eax
	cltd
	idivl	%ebx
	movl	%eax, %edx
	movl	%edx, %eax
	sarl	$31, %eax
	shrl	$31, %eax
	movl	%eax, %ecx
	leal	(%rdx,%rcx), %eax
	andl	$1, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-104(%rbp), %eax
	cltq
	movl	%edx, -64(%rbp,%rax,4)
	addl	$1, -104(%rbp)
.L13:
	cmpl	$9, -104(%rbp)
	jle	.L14
	movl	$0, -104(%rbp)
	jmp	.L15
.L21:
	movl	$0, -96(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L16
.L18:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-96(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	subl	$1, %eax
	cltq
	movl	-64(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L17
	addl	$1, -100(%rbp)
.L17:
	addl	$1, -96(%rbp)
.L16:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L18
	movl	-100(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-72(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jne	.L26
	addl	$1, -104(%rbp)
.L15:
	movl	-112(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L21
	jmp	.L20
.L26:
	nop
.L20:
	movl	-112(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jne	.L22
	addl	$1, -92(%rbp)
.L22:
	addl	$1, -108(%rbp)
.L12:
	movl	-116(%rbp), %eax
	movl	%eax, %esi
	movl	$2, %edi
	call	int_pow
	cmpl	%eax, -108(%rbp)
	jl	.L23
	movl	-92(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.globl	int_pow
	.type	int_pow, @function
int_pow:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -8(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	imull	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	int_pow, .-int_pow
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -88(%rbp)
	movl	-112(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -80(%rbp)
	movl	$0, -108(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L6
.L9:
	movl	$0, -104(%rbp)
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	salq	$2, %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-80(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	jmp	.L7
.L8:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-104(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -104(%rbp)
.L7:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L8
	addl	$1, -108(%rbp)
.L6:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L9
	movl	$0, -108(%rbp)
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	movl	$0, -96(%rbp)
	movl	-112(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -72(%rbp)
	jmp	.L10
.L11:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L10:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L11
	movl	$0, -92(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L12
.L23:
	movl	$0, -104(%rbp)
	jmp	.L13
.L14:
	movl	-104(%rbp), %eax
	movl	%eax, %esi
	movl	$2, %edi
	call	int_pow
	movl	%eax, %ebx
	movl	-108(%rbp), %eax
	cltd
	idivl	%ebx
	movl	%eax, %edx
	movl	%edx, %eax
	sarl	$31, %eax
	shrl	$31, %eax
	movl	%eax, %ecx
	leal	(%rdx,%rcx), %eax
	andl	$1, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-104(%rbp), %eax
	cltq
	movl	%edx, -64(%rbp,%rax,4)
	addl	$1, -104(%rbp)
.L13:
	cmpl	$9, -104(%rbp)
	jle	.L14
	movl	$0, -104(%rbp)
	jmp	.L15
.L21:
	movl	$0, -96(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L16
.L18:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-96(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	subl	$1, %eax
	cltq
	movl	-64(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L17
	addl	$1, -100(%rbp)
.L17:
	addl	$1, -96(%rbp)
.L16:
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L18
	movl	-100(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-72(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jne	.L26
	addl	$1, -104(%rbp)
.L15:
	movl	-112(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L21
	jmp	.L20
.L26:
	nop
.L20:
	movl	-112(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jne	.L22
	addl	$1, -92(%rbp)
.L22:
	addl	$1, -108(%rbp)
.L12:
	movl	-116(%rbp), %eax
	movl	%eax, %esi
	movl	$2, %edi
	call	int_pow
	cmpl	%eax, -108(%rbp)
	jl	.L23
	movl	-92(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
