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>

#define QQQ 1000000007
#define MAXN 100000

typedef unsigned long long ull;

typedef struct CCC {
  int c;
  struct CCC *next;
} IT;

typedef struct AAA {
  ull b,w;
} DP;

IT *top[MAXN+1];
DP S[MAXN+1];

DP indset ( int no, int p )
{
  if ( S[no].w != -1 ) return S[no];
  DP ans,tmp;
  ans.b = ans.w = 1;

  IT *pos;
  for (  pos = top[no]; pos != NULL; pos = pos->next )
  {
    if ( pos->c == p ) continue;
    tmp = indset( pos->c, no );
    ans.b *= tmp.w;
    ans.b %= QQQ;
    ans.w *= (tmp.w+tmp.b);
    ans.w %= QQQ;
  }

  return S[no] = ans;
}

void init (void )
{
  int i;
  for ( i = 0; i <= MAXN; i++ ) top[i] = NULL;
}

void add( int p, int c )
{
  IT *new;
  new = (IT*)malloc(sizeof(IT));
  new->c = c;
  new->next = NULL;

  if ( top[p] == NULL ) top[p] = new;
  else {
    new->next = top[p];
    top[p] = new;
  }
}



int main(void)
{
  int n,i,j,x,y;
  DP ans;

  scanf("%d", &n);
  for ( i = 0; i < n-1; i++ ) {
    scanf("%d%d", &x, &y);
    add(x,y);
    add(y,x);
  }
  for ( i = 1; i <= n; i++ ) S[i].w = -1;

  ans = indset(1,0);

  printf("%d\n",(ans.w+ans.b)%QQQ);

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	top
	.bss
	.align 32
	.type	top, @object
	.size	top, 800008
top:
	.zero	800008
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 1600016
S:
	.zero	1600016
	.text
	.globl	indset
	.type	indset, @function
indset:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+S(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$-1, %rax
	je	.L2
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	S(%rip), %rax
	leaq	(%rdx,%rax), %rdx
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
	jmp	.L8
.L2:
	movq	$1, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -40(%rbp)
	jmp	.L4
.L7:
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -56(%rbp)
	je	.L9
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	movl	-52(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	indset
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-32(%rbp), %rdx
	movq	-8(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	-8(%rbp), %rcx
	movq	-16(%rbp), %rdx
	addq	%rcx, %rdx
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
	jmp	.L6
.L9:
	nop
.L6:
	movq	-40(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -40(%rbp)
.L4:
	cmpq	$0, -40(%rbp)
	jne	.L7
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rsi
	leaq	S(%rip), %rcx
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, (%rsi,%rcx)
	movq	%rdx, 8(%rsi,%rcx)
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	S(%rip), %rax
	leaq	(%rdx,%rax), %rdx
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	indset, .-indset
	.globl	init
	.type	init, @function
init:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -4(%rbp)
	jmp	.L11
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L11:
	cmpl	$100000, -4(%rbp)
	jle	.L12
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init, .-init
	.globl	add
	.type	add, @function
add:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$16, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	jne	.L14
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	top(%rip), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L16
.L14:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	top(%rip), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add, .-add
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L18
.L19:
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add
	addl	$1, -36(%rbp)
.L18:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jl	.L19
	movl	$1, -36(%rbp)
	jmp	.L20
.L21:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+S(%rip), %rax
	movq	$-1, (%rdx,%rax)
	addl	$1, -36(%rbp)
.L20:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L21
	movl	$0, %esi
	movl	$1, %edi
	call	indset
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	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	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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
	.type	indset.part.0, @function
indset.part.0:
.LFB43:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	S(%rip), %r11
	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	top(%rip), %rbx
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%rax, 152(%rsp)
	movq	(%rbx,%rax,8), %rax
	movl	%edi, 92(%rsp)
	movl	%esi, 160(%rsp)
	movq	%rax, 8(%rsp)
	movq	$1, 64(%rsp)
	movq	$1, 56(%rsp)
	testq	%rax, %rax
	je	.L2
	movabsq	$-8543223828751151131, %r14
.L26:
	movq	8(%rsp), %rax
	movslq	(%rax), %rax
	movl	%eax, 36(%rsp)
	cmpl	160(%rsp), %eax
	je	.L3
	movq	%rax, 104(%rsp)
	salq	$4, %rax
	addq	%r11, %rax
	cmpq	$-1, 8(%rax)
	movq	%rax, 120(%rsp)
	jne	.L41
	movq	104(%rsp), %rbx
	leaq	top(%rip), %rax
	movq	$1, 48(%rsp)
	movq	$1, 40(%rsp)
	movq	(%rax,%rbx,8), %r15
	testq	%r15, %r15
	je	.L6
	movq	%r11, %r8
.L25:
	movslq	(%r15), %rax
	movl	%eax, 32(%rsp)
	cmpl	%eax, 92(%rsp)
	je	.L7
	movq	%rax, 80(%rsp)
	salq	$4, %rax
	addq	%r8, %rax
	cmpq	$-1, 8(%rax)
	movq	%rax, 112(%rsp)
	jne	.L40
	movq	80(%rsp), %rbx
	leaq	top(%rip), %rax
	movq	$1, 24(%rsp)
	movq	$1, 16(%rsp)
	movq	(%rax,%rbx,8), %r10
	testq	%r10, %r10
	je	.L10
	movq	%r15, 144(%rsp)
	movq	%r10, %r11
	movq	%r8, %r15
.L24:
	movl	(%r11), %r10d
	cmpl	%r10d, 36(%rsp)
	je	.L11
	movslq	%r10d, %rax
	movq	%rax, 72(%rsp)
	salq	$4, %rax
	addq	%r15, %rax
	cmpq	$-1, 8(%rax)
	movq	%rax, 96(%rsp)
	jne	.L39
	movq	72(%rsp), %rbx
	leaq	top(%rip), %rax
	movq	(%rax,%rbx,8), %r13
	testq	%r13, %r13
	je	.L30
	movl	$1, %ebx
	movl	$1, %eax
	movl	%r10d, 88(%rsp)
	movq	%r15, %r10
	movq	%r11, 136(%rsp)
	movq	%rax, %r15
	movq	%rbx, %r11
.L23:
	movl	0(%r13), %esi
	cmpl	%esi, 32(%rsp)
	je	.L15
	movslq	%esi, %r9
	movq	%r9, %r8
	salq	$4, %r8
	addq	%r10, %r8
	cmpq	$-1, 8(%r8)
	jne	.L38
	leaq	top(%rip), %rax
	movl	$1, %ebp
	movl	$1, %r12d
	movq	(%rax,%r9,8), %rbx
	testq	%rbx, %rbx
	je	.L18
	movq	%r8, 128(%rsp)
	movl	%esi, %r8d
.L22:
	movl	(%rbx), %edi
	cmpl	%edi, 88(%rsp)
	je	.L19
	movslq	%edi, %rax
	salq	$4, %rax
	addq	%r10, %rax
	cmpq	$-1, 8(%rax)
	jne	.L43
	movl	%r8d, %esi
	movq	%r9, 184(%rsp)
	movq	%r10, 176(%rsp)
	movq	%r11, 168(%rsp)
	movl	%r8d, 164(%rsp)
	call	indset.part.0
	movq	184(%rsp), %r9
	movq	176(%rsp), %r10
	movq	168(%rsp), %r11
	movl	164(%rsp), %r8d
	movq	%rax, %rdi
	movq	%rdx, %rcx
.L21:
	movq	%r12, %rsi
	imulq	%rcx, %rsi
	addq	%rdi, %rcx
	imulq	%rbp, %rcx
	movq	%rsi, %rax
	mulq	%r14
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rcx, %rax
	mulq	%r14
	movq	%rsi, %r12
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rbp
.L19:
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L22
	movq	128(%rsp), %r8
.L18:
	salq	$4, %r9
	addq	%r10, %r9
	movq	%r12, (%r9)
	movq	%rbp, 8(%r9)
.L38:
	movq	8(%r8), %rcx
	movq	%r15, %rsi
	movq	(%r8), %rdi
	imulq	%rcx, %rsi
	addq	%rdi, %rcx
	imulq	%r11, %rcx
	movq	%rsi, %rax
	mulq	%r14
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rcx, %rax
	mulq	%r14
	movq	%rsi, %r15
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %r11
.L15:
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L23
	movq	%r11, %rdi
	movq	136(%rsp), %r11
	movq	%r15, %rbx
	movq	%r10, %r15
.L14:
	movq	72(%rsp), %rax
	salq	$4, %rax
	addq	%r15, %rax
	movq	%rbx, (%rax)
	movq	%rdi, 8(%rax)
	movq	96(%rsp), %rax
.L39:
	movq	8(%rax), %rsi
	movq	16(%rsp), %rdi
	movq	(%rax), %rcx
	imulq	%rsi, %rdi
	addq	%rsi, %rcx
	imulq	24(%rsp), %rcx
	movq	%rdi, %rax
	mulq	%r14
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rdi
	movq	%rcx, %rax
	mulq	%r14
	movq	%rdi, 16(%rsp)
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, 24(%rsp)
.L11:
	movq	8(%r11), %r11
	testq	%r11, %r11
	jne	.L24
	movq	%r15, %r8
	movq	144(%rsp), %r15
.L10:
	movq	80(%rsp), %rax
	movq	16(%rsp), %rbx
	salq	$4, %rax
	addq	%r8, %rax
	movq	%rbx, (%rax)
	movq	24(%rsp), %rbx
	movq	%rbx, 8(%rax)
	movq	112(%rsp), %rax
.L40:
	movq	8(%rax), %rdi
	movq	40(%rsp), %rsi
	movq	(%rax), %rcx
	imulq	%rdi, %rsi
	addq	%rdi, %rcx
	imulq	48(%rsp), %rcx
	movq	%rsi, %rax
	mulq	%r14
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rcx, %rax
	mulq	%r14
	movq	%rsi, 40(%rsp)
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, 48(%rsp)
.L7:
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L25
	movq	%r8, %r11
.L6:
	movq	104(%rsp), %rax
	movq	40(%rsp), %rbx
	salq	$4, %rax
	addq	%r11, %rax
	movq	%rbx, (%rax)
	movq	48(%rsp), %rbx
	movq	%rbx, 8(%rax)
	movq	120(%rsp), %rax
.L41:
	movq	8(%rax), %rcx
	movq	56(%rsp), %rsi
	movq	(%rax), %rdi
	imulq	%rcx, %rsi
	addq	%rdi, %rcx
	imulq	64(%rsp), %rcx
	movq	%rsi, %rax
	mulq	%r14
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rcx, %rax
	mulq	%r14
	movq	%rsi, 56(%rsp)
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, 64(%rsp)
.L3:
	movq	8(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L26
.L2:
	movq	152(%rsp), %rax
	movq	56(%rsp), %rbx
	salq	$4, %rax
	addq	%r11, %rax
	movq	%rbx, (%rax)
	movq	64(%rsp), %rbx
	movq	%rbx, 8(%rax)
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	addq	$200, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L43:
	.cfi_restore_state
	movq	(%rax), %rdi
	movq	8(%rax), %rcx
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L30:
	movl	$1, %edi
	movl	$1, %ebx
	jmp	.L14
	.cfi_endproc
.LFE43:
	.size	indset.part.0, .-indset.part.0
	.p2align 4
	.globl	indset
	.type	indset, @function
indset:
.LFB39:
	.cfi_startproc
	endbr64
	movslq	%edi, %r8
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%r8, %rdx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	salq	$4, %rdx
	leaq	S(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	addq	%r13, %rdx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpq	$-1, 8(%rdx)
	je	.L45
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L45:
	.cfi_restore_state
	leaq	top(%rip), %rax
	movq	(%rax,%r8,8), %r12
	testq	%r12, %r12
	je	.L52
	movq	%r8, %r15
	movl	%esi, %r14d
	movl	$1, %ebx
	movl	$1, %ebp
	movabsq	$-8543223828751151131, %r9
.L51:
	movl	(%r12), %edi
	cmpl	%edi, %r14d
	je	.L48
	movslq	%edi, %rax
	salq	$4, %rax
	addq	%r13, %rax
	cmpq	$-1, 8(%rax)
	je	.L49
	movq	(%rax), %rsi
	movq	8(%rax), %rcx
.L50:
	movq	%rbp, %rdi
	imulq	%rcx, %rdi
	addq	%rsi, %rcx
	imulq	%rbx, %rcx
	movq	%rdi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rdi
	movq	%rcx, %rax
	mulq	%r9
	movq	%rdi, %rbp
	movq	%rdx, %rbx
	shrq	$29, %rbx
	imulq	$1000000007, %rbx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rbx
.L48:
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L51
.L47:
	salq	$4, %r8
	movq	%rbp, %rax
	movq	%rbx, %rdx
	addq	%r8, %r13
	movq	%rbp, 0(%r13)
	movq	%rbx, 8(%r13)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L49:
	.cfi_restore_state
	movl	%r15d, %esi
	movq	%r8, 8(%rsp)
	call	indset.part.0
	movq	8(%rsp), %r8
	movabsq	$-8543223828751151131, %r9
	movq	%rax, %rsi
	movq	%rdx, %rcx
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L52:
	movl	$1, %ebx
	movl	$1, %ebp
	jmp	.L47
	.cfi_endproc
.LFE39:
	.size	indset, .-indset
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB40:
	.cfi_startproc
	endbr64
	movl	$800008, %edx
	xorl	%esi, %esi
	leaq	top(%rip), %rdi
	jmp	memset@PLT
	.cfi_endproc
.LFE40:
	.size	init, .-init
	.p2align 4
	.globl	add
	.type	add, @function
add:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	movl	$16, %edi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	malloc@PLT
	movslq	%ebx, %rdi
	leaq	top(%rip), %rdx
	movq	(%rdx,%rdi,8), %rcx
	movl	%ebp, (%rax)
	movq	%rax, (%rdx,%rdi,8)
	movq	%rcx, 8(%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE41:
	.size	add, .-add
	.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:
.LFB42:
	.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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	cmpl	$1, %edx
	jle	.L62
	xorl	%r12d, %r12d
	leaq	20(%rsp), %r14
	leaq	16(%rsp), %r13
	leaq	top(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L66:
	movq	%r14, %rdx
	movq	%r13, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %ebp
	movl	$16, %edi
	movslq	20(%rsp), %rbx
	call	malloc@PLT
	movl	$16, %edi
	movslq	%ebp, %rdx
	movl	%ebx, (%rax)
	movq	(%r15,%rdx,8), %rsi
	movq	%rax, (%r15,%rdx,8)
	movq	%rsi, 8(%rax)
	call	malloc@PLT
	movq	(%r15,%rbx,8), %rdx
	movl	%ebp, (%rax)
	movq	$0, 8(%rax)
	testq	%rdx, %rdx
	je	.L64
	movq	%rdx, 8(%rax)
	movl	12(%rsp), %edx
	addl	$1, %r12d
	movq	%rax, (%r15,%rbx,8)
	leal	-1(%rdx), %eax
	cmpl	%eax, %r12d
	jl	.L66
.L62:
	testl	%edx, %edx
	jle	.L67
	leaq	24+S(%rip), %rax
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rax), %rcx
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L68:
	movq	$-1, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L68
.L67:
	movq	24+S(%rip), %rdx
	movq	16+S(%rip), %rcx
	cmpq	$-1, %rdx
	jne	.L70
	xorl	%esi, %esi
	movl	$1, %edi
	call	indset.part.0
	movq	%rax, %rcx
.L70:
	addq	%rdx, %rcx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	movq	%rcx, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$40, %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
.L64:
	.cfi_restore_state
	movl	12(%rsp), %edx
	movq	%rax, (%r15,%rbx,8)
	addl	$1, %r12d
	leal	-1(%rdx), %eax
	cmpl	%r12d, %eax
	jg	.L66
	jmp	.L62
.L76:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE42:
	.size	main, .-main
	.globl	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 1600016
S:
	.zero	1600016
	.globl	top
	.align 32
	.type	top, @object
	.size	top, 800008
top:
	.zero	800008
	.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
	.type	indset.part.0, @function
indset.part.0:
.LFB43:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	S(%rip), %r11
	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	top(%rip), %rbx
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%rax, 152(%rsp)
	movq	(%rbx,%rax,8), %rax
	movl	%edi, 92(%rsp)
	movl	%esi, 160(%rsp)
	movq	%rax, 8(%rsp)
	movq	$1, 64(%rsp)
	movq	$1, 56(%rsp)
	testq	%rax, %rax
	je	.L2
	movabsq	$-8543223828751151131, %r14
.L26:
	movq	8(%rsp), %rax
	movslq	(%rax), %rax
	movl	%eax, 36(%rsp)
	cmpl	160(%rsp), %eax
	je	.L3
	movq	%rax, 104(%rsp)
	salq	$4, %rax
	addq	%r11, %rax
	cmpq	$-1, 8(%rax)
	movq	%rax, 120(%rsp)
	jne	.L41
	movq	104(%rsp), %rbx
	leaq	top(%rip), %rax
	movq	$1, 48(%rsp)
	movq	$1, 40(%rsp)
	movq	(%rax,%rbx,8), %r15
	testq	%r15, %r15
	je	.L6
	movq	%r11, %r8
.L25:
	movslq	(%r15), %rax
	movl	%eax, 32(%rsp)
	cmpl	%eax, 92(%rsp)
	je	.L7
	movq	%rax, 80(%rsp)
	salq	$4, %rax
	addq	%r8, %rax
	cmpq	$-1, 8(%rax)
	movq	%rax, 112(%rsp)
	jne	.L40
	movq	80(%rsp), %rbx
	leaq	top(%rip), %rax
	movq	$1, 24(%rsp)
	movq	$1, 16(%rsp)
	movq	(%rax,%rbx,8), %r10
	testq	%r10, %r10
	je	.L10
	movq	%r15, 144(%rsp)
	movq	%r10, %r11
	movq	%r8, %r15
.L24:
	movl	(%r11), %r10d
	cmpl	%r10d, 36(%rsp)
	je	.L11
	movslq	%r10d, %rax
	movq	%rax, 72(%rsp)
	salq	$4, %rax
	addq	%r15, %rax
	cmpq	$-1, 8(%rax)
	movq	%rax, 96(%rsp)
	jne	.L39
	movq	72(%rsp), %rbx
	leaq	top(%rip), %rax
	movq	(%rax,%rbx,8), %r13
	testq	%r13, %r13
	je	.L30
	movl	$1, %ebx
	movl	$1, %eax
	movl	%r10d, 88(%rsp)
	movq	%r15, %r10
	movq	%r11, 136(%rsp)
	movq	%rax, %r15
	movq	%rbx, %r11
.L23:
	movl	0(%r13), %esi
	cmpl	%esi, 32(%rsp)
	je	.L15
	movslq	%esi, %r9
	movq	%r9, %r8
	salq	$4, %r8
	addq	%r10, %r8
	cmpq	$-1, 8(%r8)
	jne	.L38
	leaq	top(%rip), %rax
	movl	$1, %ebp
	movl	$1, %r12d
	movq	(%rax,%r9,8), %rbx
	testq	%rbx, %rbx
	je	.L18
	movq	%r8, 128(%rsp)
	movl	%esi, %r8d
.L22:
	movl	(%rbx), %edi
	cmpl	%edi, 88(%rsp)
	je	.L19
	movslq	%edi, %rax
	salq	$4, %rax
	addq	%r10, %rax
	cmpq	$-1, 8(%rax)
	jne	.L43
	movl	%r8d, %esi
	movq	%r9, 184(%rsp)
	movq	%r10, 176(%rsp)
	movq	%r11, 168(%rsp)
	movl	%r8d, 164(%rsp)
	call	indset.part.0
	movq	184(%rsp), %r9
	movq	176(%rsp), %r10
	movq	168(%rsp), %r11
	movl	164(%rsp), %r8d
	movq	%rax, %rdi
	movq	%rdx, %rcx
.L21:
	movq	%r12, %rsi
	imulq	%rcx, %rsi
	addq	%rdi, %rcx
	imulq	%rbp, %rcx
	movq	%rsi, %rax
	mulq	%r14
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rcx, %rax
	mulq	%r14
	movq	%rsi, %r12
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rbp
.L19:
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L22
	movq	128(%rsp), %r8
.L18:
	salq	$4, %r9
	addq	%r10, %r9
	movq	%r12, (%r9)
	movq	%rbp, 8(%r9)
.L38:
	movq	8(%r8), %rcx
	movq	%r15, %rsi
	movq	(%r8), %rdi
	imulq	%rcx, %rsi
	addq	%rdi, %rcx
	imulq	%r11, %rcx
	movq	%rsi, %rax
	mulq	%r14
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rcx, %rax
	mulq	%r14
	movq	%rsi, %r15
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %r11
.L15:
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L23
	movq	%r11, %rdi
	movq	136(%rsp), %r11
	movq	%r15, %rbx
	movq	%r10, %r15
.L14:
	movq	72(%rsp), %rax
	salq	$4, %rax
	addq	%r15, %rax
	movq	%rbx, (%rax)
	movq	%rdi, 8(%rax)
	movq	96(%rsp), %rax
.L39:
	movq	8(%rax), %rsi
	movq	16(%rsp), %rdi
	movq	(%rax), %rcx
	imulq	%rsi, %rdi
	addq	%rsi, %rcx
	imulq	24(%rsp), %rcx
	movq	%rdi, %rax
	mulq	%r14
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rdi
	movq	%rcx, %rax
	mulq	%r14
	movq	%rdi, 16(%rsp)
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, 24(%rsp)
.L11:
	movq	8(%r11), %r11
	testq	%r11, %r11
	jne	.L24
	movq	%r15, %r8
	movq	144(%rsp), %r15
.L10:
	movq	80(%rsp), %rax
	movq	16(%rsp), %rbx
	salq	$4, %rax
	addq	%r8, %rax
	movq	%rbx, (%rax)
	movq	24(%rsp), %rbx
	movq	%rbx, 8(%rax)
	movq	112(%rsp), %rax
.L40:
	movq	8(%rax), %rdi
	movq	40(%rsp), %rsi
	movq	(%rax), %rcx
	imulq	%rdi, %rsi
	addq	%rdi, %rcx
	imulq	48(%rsp), %rcx
	movq	%rsi, %rax
	mulq	%r14
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rcx, %rax
	mulq	%r14
	movq	%rsi, 40(%rsp)
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, 48(%rsp)
.L7:
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L25
	movq	%r8, %r11
.L6:
	movq	104(%rsp), %rax
	movq	40(%rsp), %rbx
	salq	$4, %rax
	addq	%r11, %rax
	movq	%rbx, (%rax)
	movq	48(%rsp), %rbx
	movq	%rbx, 8(%rax)
	movq	120(%rsp), %rax
.L41:
	movq	8(%rax), %rcx
	movq	56(%rsp), %rsi
	movq	(%rax), %rdi
	imulq	%rcx, %rsi
	addq	%rdi, %rcx
	imulq	64(%rsp), %rcx
	movq	%rsi, %rax
	mulq	%r14
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rcx, %rax
	mulq	%r14
	movq	%rsi, 56(%rsp)
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, 64(%rsp)
.L3:
	movq	8(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L26
.L2:
	movq	152(%rsp), %rax
	movq	56(%rsp), %rbx
	salq	$4, %rax
	addq	%r11, %rax
	movq	%rbx, (%rax)
	movq	64(%rsp), %rbx
	movq	%rbx, 8(%rax)
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	addq	$200, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L43:
	.cfi_restore_state
	movq	(%rax), %rdi
	movq	8(%rax), %rcx
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L30:
	movl	$1, %edi
	movl	$1, %ebx
	jmp	.L14
	.cfi_endproc
.LFE43:
	.size	indset.part.0, .-indset.part.0
	.p2align 4
	.globl	indset
	.type	indset, @function
indset:
.LFB39:
	.cfi_startproc
	endbr64
	movslq	%edi, %r8
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%r8, %rdx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	salq	$4, %rdx
	leaq	S(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	addq	%r13, %rdx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpq	$-1, 8(%rdx)
	je	.L45
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L45:
	.cfi_restore_state
	leaq	top(%rip), %rax
	movq	(%rax,%r8,8), %r12
	testq	%r12, %r12
	je	.L52
	movq	%r8, %r15
	movl	%esi, %r14d
	movl	$1, %ebx
	movl	$1, %ebp
	movabsq	$-8543223828751151131, %r9
.L51:
	movl	(%r12), %edi
	cmpl	%edi, %r14d
	je	.L48
	movslq	%edi, %rax
	salq	$4, %rax
	addq	%r13, %rax
	cmpq	$-1, 8(%rax)
	je	.L49
	movq	(%rax), %rsi
	movq	8(%rax), %rcx
.L50:
	movq	%rbp, %rdi
	imulq	%rcx, %rdi
	addq	%rsi, %rcx
	imulq	%rbx, %rcx
	movq	%rdi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rdi
	movq	%rcx, %rax
	mulq	%r9
	movq	%rdi, %rbp
	movq	%rdx, %rbx
	shrq	$29, %rbx
	imulq	$1000000007, %rbx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rbx
.L48:
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L51
.L47:
	salq	$4, %r8
	movq	%rbp, %rax
	movq	%rbx, %rdx
	addq	%r8, %r13
	movq	%rbp, 0(%r13)
	movq	%rbx, 8(%r13)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L49:
	.cfi_restore_state
	movl	%r15d, %esi
	movq	%r8, 8(%rsp)
	call	indset.part.0
	movq	8(%rsp), %r8
	movabsq	$-8543223828751151131, %r9
	movq	%rax, %rsi
	movq	%rdx, %rcx
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L52:
	movl	$1, %ebx
	movl	$1, %ebp
	jmp	.L47
	.cfi_endproc
.LFE39:
	.size	indset, .-indset
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB40:
	.cfi_startproc
	endbr64
	movl	$800008, %edx
	xorl	%esi, %esi
	leaq	top(%rip), %rdi
	jmp	memset@PLT
	.cfi_endproc
.LFE40:
	.size	init, .-init
	.p2align 4
	.globl	add
	.type	add, @function
add:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	movl	$16, %edi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	malloc@PLT
	movslq	%ebx, %rdi
	leaq	top(%rip), %rdx
	movq	(%rdx,%rdi,8), %rcx
	movl	%ebp, (%rax)
	movq	%rax, (%rdx,%rdi,8)
	movq	%rcx, 8(%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE41:
	.size	add, .-add
	.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:
.LFB42:
	.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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	cmpl	$1, %edx
	jle	.L62
	xorl	%r12d, %r12d
	leaq	20(%rsp), %r14
	leaq	16(%rsp), %r13
	leaq	top(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L66:
	movq	%r14, %rdx
	movq	%r13, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %ebp
	movl	$16, %edi
	movslq	20(%rsp), %rbx
	call	malloc@PLT
	movl	$16, %edi
	movslq	%ebp, %rdx
	movl	%ebx, (%rax)
	movq	(%r15,%rdx,8), %rsi
	movq	%rax, (%r15,%rdx,8)
	movq	%rsi, 8(%rax)
	call	malloc@PLT
	movq	(%r15,%rbx,8), %rdx
	movl	%ebp, (%rax)
	movq	$0, 8(%rax)
	testq	%rdx, %rdx
	je	.L64
	movq	%rdx, 8(%rax)
	movl	12(%rsp), %edx
	addl	$1, %r12d
	movq	%rax, (%r15,%rbx,8)
	leal	-1(%rdx), %eax
	cmpl	%eax, %r12d
	jl	.L66
.L62:
	testl	%edx, %edx
	jle	.L67
	leaq	24+S(%rip), %rax
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rax), %rcx
	addq	%rcx, %rdx
	.p2align 4,,10
	.p2align 3
.L68:
	movq	$-1, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L68
.L67:
	movq	24+S(%rip), %rdx
	movq	16+S(%rip), %rcx
	cmpq	$-1, %rdx
	jne	.L70
	xorl	%esi, %esi
	movl	$1, %edi
	call	indset.part.0
	movq	%rax, %rcx
.L70:
	addq	%rdx, %rcx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	movq	%rcx, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$40, %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
.L64:
	.cfi_restore_state
	movl	12(%rsp), %edx
	movq	%rax, (%r15,%rbx,8)
	addl	$1, %r12d
	leal	-1(%rdx), %eax
	cmpl	%r12d, %eax
	jg	.L66
	jmp	.L62
.L76:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE42:
	.size	main, .-main
	.globl	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 1600016
S:
	.zero	1600016
	.globl	top
	.align 32
	.type	top, @object
	.size	top, 800008
top:
	.zero	800008
	.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>

#define QQQ 1000000007
#define MAXN 100000

typedef unsigned long long ull;

typedef struct CCC {
  int c;
  struct CCC *next;
} IT;

typedef struct AAA {
  ull b,w;
} DP;

IT *top[MAXN+1];
DP S[MAXN+1];

DP indset ( int no, int p )
{
  if ( S[no].w != -1 ) return S[no];
  DP ans,tmp;
  ans.b = ans.w = 1;

  IT *pos;
  for (  pos = top[no]; pos != NULL; pos = pos->next )
  {
    if ( pos->c == p ) continue;
    tmp = indset( pos->c, no );
    ans.b *= tmp.w;
    ans.b %= QQQ;
    ans.w *= (tmp.w+tmp.b);
    ans.w %= QQQ;
  }

  return S[no] = ans;
}

void init (void )
{
  int i;
  for ( i = 0; i <= MAXN; i++ ) top[i] = NULL;
}

void add( int p, int c )
{
  IT *new;
  new = (IT*)malloc(sizeof(IT));
  new->c = c;
  new->next = NULL;

  if ( top[p] == NULL ) top[p] = new;
  else {
    new->next = top[p];
    top[p] = new;
  }
}



int main(void)
{
  int n,i,j,x,y;
  DP ans;

  scanf("%d", &n);
  for ( i = 0; i < n-1; i++ ) {
    scanf("%d%d", &x, &y);
    add(x,y);
    add(y,x);
  }
  for ( i = 1; i <= n; i++ ) S[i].w = -1;

  ans = indset(1,0);

  printf("%d\n",(ans.w+ans.b)%QQQ);

  return 0;
}

10
8 5
10 8
6 7
1 5
4 8
2 10
3 6
9 2
1 7
 10
8 3
10 8
6 7
1 5
4 8
2 10
3 6
9 2
1 3
 10
8 5
10 8
6 7
1 5
4 8
2 10
3 6
9 2
2 7
 10
8 5
10 8
6 7
1 5
4 10
2 10
3 6
9 2
2 7
 10
8 5
10 8
6 7
1 5
4 10
2 10
3 7
9 2
2 7
 10
8 5
10 8
6 7
1 5
4 8
2 10
3 6
9 3
2 7
 10
8 5
10 8
6 5
1 5
4 8
2 10
3 5
9 2
1 7
 10
8 5
10 8
6 7
1 5
4 8
2 10
3 4
9 3
2 7
 10
3 5
10 8
6 7
1 5
4 10
2 10
3 6
9 2
2 7
 10
3 5
10 8
6 10
1 5
4 10
2 10
3 6
9 2
2 7

154
 157
 164
 160
 170
 152
 176
 150
 162
 180

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>

#define QQQ 1000000007
#define MAXN 100000

typedef unsigned long long ull;

typedef struct CCC {
  int c;
  struct CCC *next;
} IT;

typedef struct AAA {
  ull b,w;
} DP;

IT *top[MAXN+1];
DP S[MAXN+1];

DP indset ( int no, int p )
{
  if ( S[no].w != -1 ) return S[no];
  DP ans,tmp;
  ans.b = ans.w = 1;

  IT *pos;
  for (  pos = top[no]; pos != NULL; pos = pos->next )
  {
    if ( pos->c == p ) continue;
    tmp = indset( pos->c, no );
    ans.b *= tmp.w;
    ans.b %= QQQ;
    ans.w *= (tmp.w+tmp.b);
    ans.w %= QQQ;
  }

  return S[no] = ans;
}

void init (void )
{
  int i;
  for ( i = 0; i <= MAXN; i++ ) top[i] = NULL;
}

void add( int p, int c )
{
  IT *new;
  new = (IT*)malloc(sizeof(IT));
  new->c = c;
  new->next = NULL;

  if ( top[p] == NULL ) top[p] = new;
  else {
    new->next = top[p];
    top[p] = new;
  }
}



int main(void)
{
  int n,i,j,x,y;
  DP ans;

  scanf("%d", &n);
  for ( i = 0; i < n-1; i++ ) {
    scanf("%d%d", &x, &y);
    add(x,y);
    add(y,x);
  }
  for ( i = 1; i <= n; i++ ) S[i].w = -1;

  ans = indset(1,0);

  printf("%d\n",(ans.w+ans.b)%QQQ);

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	top
	.bss
	.align 32
	.type	top, @object
	.size	top, 800008
top:
	.zero	800008
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 1600016
S:
	.zero	1600016
	.text
	.globl	indset
	.type	indset, @function
indset:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+S(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$-1, %rax
	je	.L2
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	S(%rip), %rax
	leaq	(%rdx,%rax), %rdx
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
	jmp	.L8
.L2:
	movq	$1, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -40(%rbp)
	jmp	.L4
.L7:
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -56(%rbp)
	je	.L9
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	movl	-52(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	indset
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-32(%rbp), %rdx
	movq	-8(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	-8(%rbp), %rcx
	movq	-16(%rbp), %rdx
	addq	%rcx, %rdx
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
	jmp	.L6
.L9:
	nop
.L6:
	movq	-40(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -40(%rbp)
.L4:
	cmpq	$0, -40(%rbp)
	jne	.L7
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rsi
	leaq	S(%rip), %rcx
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, (%rsi,%rcx)
	movq	%rdx, 8(%rsi,%rcx)
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	S(%rip), %rax
	leaq	(%rdx,%rax), %rdx
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	indset, .-indset
	.globl	init
	.type	init, @function
init:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -4(%rbp)
	jmp	.L11
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L11:
	cmpl	$100000, -4(%rbp)
	jle	.L12
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init, .-init
	.globl	add
	.type	add, @function
add:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$16, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	jne	.L14
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	top(%rip), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L16
.L14:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	top(%rip), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add, .-add
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L18
.L19:
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add
	addl	$1, -36(%rbp)
.L18:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jl	.L19
	movl	$1, -36(%rbp)
	jmp	.L20
.L21:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+S(%rip), %rax
	movq	$-1, (%rdx,%rax)
	addl	$1, -36(%rbp)
.L20:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L21
	movl	$0, %esi
	movl	$1, %edi
	call	indset
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	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	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	top
	.bss
	.align 32
	.type	top, @object
	.size	top, 800008
top:
	.zero	800008
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 1600016
S:
	.zero	1600016
	.text
	.globl	indset
	.type	indset, @function
indset:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+S(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$-1, %rax
	je	.L2
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	S(%rip), %rax
	leaq	(%rdx,%rax), %rdx
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
	jmp	.L8
.L2:
	movq	$1, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -40(%rbp)
	jmp	.L4
.L7:
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -56(%rbp)
	je	.L9
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	movl	-52(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	indset
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-32(%rbp), %rdx
	movq	-8(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	-8(%rbp), %rcx
	movq	-16(%rbp), %rdx
	addq	%rcx, %rdx
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
	jmp	.L6
.L9:
	nop
.L6:
	movq	-40(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -40(%rbp)
.L4:
	cmpq	$0, -40(%rbp)
	jne	.L7
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rsi
	leaq	S(%rip), %rcx
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, (%rsi,%rcx)
	movq	%rdx, 8(%rsi,%rcx)
	movl	-52(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	S(%rip), %rax
	leaq	(%rdx,%rax), %rdx
	movq	(%rdx), %rax
	movq	8(%rdx), %rdx
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	indset, .-indset
	.globl	init
	.type	init, @function
init:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -4(%rbp)
	jmp	.L11
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L11:
	cmpl	$100000, -4(%rbp)
	jle	.L12
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init, .-init
	.globl	add
	.type	add, @function
add:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$16, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	jne	.L14
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	top(%rip), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L16
.L14:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	top(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	top(%rip), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add, .-add
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L18
.L19:
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add
	addl	$1, -36(%rbp)
.L18:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jl	.L19
	movl	$1, -36(%rbp)
	jmp	.L20
.L21:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+S(%rip), %rax
	movq	$-1, (%rdx,%rax)
	addl	$1, -36(%rbp)
.L20:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L21
	movl	$0, %esi
	movl	$1, %edi
	call	indset
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	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	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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:
