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>
int a1,a2,a3,a4,d[16],n;;
char node[20],s[100];
evaluate(char s[],int d[])
{ int ret,d1[16],d2[16],lv,len;
  int i,j;
  char *p,*q; 
  memset(d,0,sizeof(d1));
  memset(d1,0,sizeof(d1));
  memset(d2,0,sizeof(d2));
  if((ret=atoi(s))>0) 
    { d[node[ret]]=1;
      return;
    }
  lv=0;len=strlen(s);
  for(p=s;*p;p++)
     if(*p=='(')
	lv++;
      else if(*p==')')
	lv--;
      else if(lv==1 && *p==' ')
	{ q=p;
	  break;
	}
  *q='\0';
  evaluate(s+1,d1); 
  s[len-1]='\0';
  evaluate(p+1,d2);     
  for(i=0;i<16;i++)
    for(j=0;j<16;j++)
      d[i&j]+=d1[i]*d2[j],d[i|j]+=d1[i]*d2[j],d[i^j]+=d1[i]*d2[j];
}
main()
{
  int i,ret;
  while(fgets(s,100,stdin) && *s != 'E')
    { scanf("%d",&n);
      for(i=1;i<=n;i++)
	{ scanf("%d %d %d %d ",&a1,&a2,&a3,&a4);
	  node[i]=8*a1+4*a2+2*a3+a4;
	}
      evaluate(s,d);
      printf("%d\n",d[15]);
      memset(s,0,sizeof(s));
    }
  return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a1
	.bss
	.align 4
	.type	a1, @object
	.size	a1, 4
a1:
	.zero	4
	.globl	a2
	.align 4
	.type	a2, @object
	.size	a2, 4
a2:
	.zero	4
	.globl	a3
	.align 4
	.type	a3, @object
	.size	a3, 4
a3:
	.zero	4
	.globl	a4
	.align 4
	.type	a4, @object
	.size	a4, 4
a4:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 64
d:
	.zero	64
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	node
	.align 16
	.type	node, @object
	.size	node, 20
node:
	.zero	20
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100
s:
	.zero	100
	.text
	.globl	evaluate
	.type	evaluate, @function
evaluate:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$208, %rsp
	movq	%rdi, -200(%rbp)
	movq	%rsi, -208(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-208(%rbp), %rax
	movl	$64, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-144(%rbp), %rax
	movl	$64, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-80(%rbp), %rax
	movl	$64, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	-200(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	atoi@PLT
	movl	%eax, -168(%rbp)
	cmpl	$0, -168(%rbp)
	jle	.L2
	movl	-168(%rbp), %eax
	cltq
	leaq	node(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbq	%al, %rax
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	jmp	.L3
.L2:
	movl	$0, -180(%rbp)
	movq	-200(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -164(%rbp)
	movq	-200(%rbp), %rax
	movq	%rax, -160(%rbp)
	jmp	.L4
.L9:
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$40, %al
	jne	.L5
	addl	$1, -180(%rbp)
	jmp	.L6
.L5:
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$41, %al
	jne	.L7
	subl	$1, -180(%rbp)
	jmp	.L6
.L7:
	cmpl	$1, -180(%rbp)
	jne	.L6
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$32, %al
	jne	.L6
	movq	-160(%rbp), %rax
	movq	%rax, -152(%rbp)
	jmp	.L8
.L6:
	addq	$1, -160(%rbp)
.L4:
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L9
.L8:
	movq	-152(%rbp), %rax
	movb	$0, (%rax)
	movq	-200(%rbp), %rax
	leaq	1(%rax), %rdx
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	evaluate
	movl	-164(%rbp), %eax
	cltq
	leaq	-1(%rax), %rdx
	movq	-200(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movq	-160(%rbp), %rax
	leaq	1(%rax), %rdx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	evaluate
	movl	$0, -176(%rbp)
	jmp	.L10
.L13:
	movl	$0, -172(%rbp)
	jmp	.L11
.L12:
	movl	-176(%rbp), %eax
	andl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-176(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	imull	%eax, %edx
	movl	-176(%rbp), %eax
	andl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-208(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-176(%rbp), %eax
	orl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-176(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	imull	%eax, %edx
	movl	-176(%rbp), %eax
	orl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-208(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-176(%rbp), %eax
	xorl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-176(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	imull	%eax, %edx
	movl	-176(%rbp), %eax
	xorl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-208(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -172(%rbp)
.L11:
	cmpl	$15, -172(%rbp)
	jle	.L12
	addl	$1, -176(%rbp)
.L10:
	cmpl	$15, -176(%rbp)
	jle	.L13
.L3:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	evaluate, .-evaluate
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %d "
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L16
.L20:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -4(%rbp)
	jmp	.L17
.L18:
	leaq	a4(%rip), %r8
	leaq	a3(%rip), %rax
	movq	%rax, %rcx
	leaq	a2(%rip), %rax
	movq	%rax, %rdx
	leaq	a1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	a1(%rip), %eax
	leal	(%rax,%rax), %edx
	movl	a2(%rip), %eax
	addl	%edx, %eax
	leal	(%rax,%rax), %edx
	movl	a3(%rip), %eax
	addl	%edx, %eax
	leal	(%rax,%rax), %edx
	movl	a4(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	node(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -4(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L18
	leaq	d(%rip), %rax
	movq	%rax, %rsi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	evaluate
	movl	60+d(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$100, %edx
	movl	$0, %esi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
.L16:
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$100, %esi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L19
	movzbl	s(%rip), %eax
	cmpb	$69, %al
	jne	.L20
.L19:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	evaluate
	.type	evaluate, @function
evaluate:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rsi, %rbx
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movups	%xmm0, (%rsi)
	movups	%xmm0, 16(%rsi)
	movups	%xmm0, 32(%rsi)
	movups	%xmm0, 48(%rsi)
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	call	atoi@PLT
	testl	%eax, %eax
	jg	.L21
	movq	%r14, %rdi
	movq	%r14, %r13
	call	strlen@PLT
	movq	%rax, %r12
	movzbl	(%r14), %eax
	testb	%al, %al
	je	.L4
	xorl	%edx, %edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	$41, %al
	je	.L22
	cmpl	$1, %edx
	je	.L23
.L6:
	movzbl	1(%r13), %eax
	addq	$1, %r13
	testb	%al, %al
	je	.L4
.L8:
	cmpb	$40, %al
	jne	.L5
	movzbl	1(%r13), %eax
	addq	$1, %r13
	addl	$1, %edx
	testb	%al, %al
	jne	.L8
.L4:
	movb	$0, 0(%rbp)
	movq	%rsp, %rbp
	leaq	1(%r14), %rdi
	movslq	%r12d, %r12
	movq	%rbp, %rsi
	call	evaluate
	movb	$0, -1(%r14,%r12)
	leaq	64(%rsp), %r12
	leaq	1(%r13), %rdi
	movq	%r12, %rsi
	call	evaluate
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L9:
	movl	0(%rbp,%r8,4), %edi
	movl	%r8d, %esi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%esi, %edx
	movl	(%r12,%rax,4), %ecx
	andl	%eax, %edx
	movslq	%edx, %rdx
	imull	%edi, %ecx
	addl	%ecx, (%rbx,%rdx,4)
	movl	%esi, %edx
	orl	%eax, %edx
	movslq	%edx, %rdx
	addl	%ecx, (%rbx,%rdx,4)
	movl	%esi, %edx
	xorl	%eax, %edx
	addq	$1, %rax
	movslq	%edx, %rdx
	addl	%ecx, (%rbx,%rdx,4)
	cmpq	$16, %rax
	jne	.L10
	addq	$1, %r8
	cmpq	$16, %r8
	jne	.L9
.L3:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	subl	$1, %edx
	jmp	.L6
.L23:
	cmpb	$32, %al
	jne	.L6
	movq	%r13, %rbp
	jmp	.L4
.L21:
	cltq
	leaq	node(%rip), %rdx
	movsbq	(%rdx,%rax), %rax
	movl	$1, (%rbx,%rax,4)
	jmp	.L3
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	evaluate, .-evaluate
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %d "
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	a3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	a2(%rip), %r13
	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	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L26:
	movq	stdin(%rip), %rdx
	movl	$100, %esi
	leaq	s(%rip), %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L29
	leaq	s(%rip), %rax
	cmpb	$69, (%rax)
	je	.L29
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L27
	movl	$1, %ebx
	leaq	a1(%rip), %r15
	leaq	.LC1(%rip), %r12
	leaq	a4(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%r14, %rcx
	movq	%r13, %rdx
	xorl	%eax, %eax
	movq	%rbp, %r8
	movq	%r15, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movl	a2(%rip), %eax
	movl	a1(%rip), %edx
	leaq	node(%rip), %rcx
	leal	(%rax,%rdx,2), %edx
	movl	a3(%rip), %eax
	leal	(%rax,%rdx,2), %eax
	movl	a4(%rip), %edx
	leal	(%rdx,%rax,2), %eax
	movb	%al, (%rcx,%rbx)
	addq	$1, %rbx
	cmpl	%ebx, n(%rip)
	jge	.L28
.L27:
	leaq	d(%rip), %rsi
	leaq	s(%rip), %rdi
	call	evaluate
	movl	60+d(%rip), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movl	$12, %ecx
	xorl	%eax, %eax
	leaq	s(%rip), %rdi
	rep stosq
	movl	$0, (%rdi)
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L29:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100
s:
	.zero	100
	.globl	node
	.align 16
	.type	node, @object
	.size	node, 20
node:
	.zero	20
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 64
d:
	.zero	64
	.globl	a4
	.align 4
	.type	a4, @object
	.size	a4, 4
a4:
	.zero	4
	.globl	a3
	.align 4
	.type	a3, @object
	.size	a3, 4
a3:
	.zero	4
	.globl	a2
	.align 4
	.type	a2, @object
	.size	a2, 4
a2:
	.zero	4
	.globl	a1
	.align 4
	.type	a1, @object
	.size	a1, 4
a1:
	.zero	4
	.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	evaluate
	.type	evaluate, @function
evaluate:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rsi, %rbx
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movups	%xmm0, (%rsi)
	movups	%xmm0, 16(%rsi)
	movups	%xmm0, 32(%rsi)
	movups	%xmm0, 48(%rsi)
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	call	atoi@PLT
	testl	%eax, %eax
	jg	.L21
	movq	%r14, %rdi
	movq	%r14, %r13
	call	strlen@PLT
	movq	%rax, %r12
	movzbl	(%r14), %eax
	testb	%al, %al
	je	.L4
	xorl	%edx, %edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	$41, %al
	je	.L22
	cmpl	$1, %edx
	je	.L23
.L6:
	movzbl	1(%r13), %eax
	addq	$1, %r13
	testb	%al, %al
	je	.L4
.L8:
	cmpb	$40, %al
	jne	.L5
	movzbl	1(%r13), %eax
	addq	$1, %r13
	addl	$1, %edx
	testb	%al, %al
	jne	.L8
.L4:
	movb	$0, 0(%rbp)
	movq	%rsp, %rbp
	leaq	1(%r14), %rdi
	movslq	%r12d, %r12
	movq	%rbp, %rsi
	call	evaluate
	movb	$0, -1(%r14,%r12)
	leaq	64(%rsp), %r12
	leaq	1(%r13), %rdi
	movq	%r12, %rsi
	call	evaluate
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L9:
	movl	0(%rbp,%r8,4), %edi
	movl	%r8d, %esi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%esi, %edx
	movl	(%r12,%rax,4), %ecx
	andl	%eax, %edx
	movslq	%edx, %rdx
	imull	%edi, %ecx
	addl	%ecx, (%rbx,%rdx,4)
	movl	%esi, %edx
	orl	%eax, %edx
	movslq	%edx, %rdx
	addl	%ecx, (%rbx,%rdx,4)
	movl	%esi, %edx
	xorl	%eax, %edx
	addq	$1, %rax
	movslq	%edx, %rdx
	addl	%ecx, (%rbx,%rdx,4)
	cmpq	$16, %rax
	jne	.L10
	addq	$1, %r8
	cmpq	$16, %r8
	jne	.L9
.L3:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	subl	$1, %edx
	jmp	.L6
.L23:
	cmpb	$32, %al
	jne	.L6
	movq	%r13, %rbp
	jmp	.L4
.L21:
	cltq
	leaq	node(%rip), %rdx
	movsbq	(%rdx,%rax), %rax
	movl	$1, (%rbx,%rax,4)
	jmp	.L3
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	evaluate, .-evaluate
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %d "
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	a3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	a2(%rip), %r13
	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	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L26:
	movq	stdin(%rip), %rdx
	movl	$100, %esi
	leaq	s(%rip), %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L29
	leaq	s(%rip), %rax
	cmpb	$69, (%rax)
	je	.L29
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L27
	movl	$1, %ebx
	leaq	a1(%rip), %r15
	leaq	.LC1(%rip), %r12
	leaq	a4(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%r14, %rcx
	movq	%r13, %rdx
	xorl	%eax, %eax
	movq	%rbp, %r8
	movq	%r15, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movl	a2(%rip), %eax
	movl	a1(%rip), %edx
	leaq	node(%rip), %rcx
	leal	(%rax,%rdx,2), %edx
	movl	a3(%rip), %eax
	leal	(%rax,%rdx,2), %eax
	movl	a4(%rip), %edx
	leal	(%rdx,%rax,2), %eax
	movb	%al, (%rcx,%rbx)
	addq	$1, %rbx
	cmpl	%ebx, n(%rip)
	jge	.L28
.L27:
	leaq	d(%rip), %rsi
	leaq	s(%rip), %rdi
	call	evaluate
	movl	60+d(%rip), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movl	$12, %ecx
	xorl	%eax, %eax
	leaq	s(%rip), %rdi
	rep stosq
	movl	$0, (%rdi)
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L29:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100
s:
	.zero	100
	.globl	node
	.align 16
	.type	node, @object
	.size	node, 20
node:
	.zero	20
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 64
d:
	.zero	64
	.globl	a4
	.align 4
	.type	a4, @object
	.size	a4, 4
a4:
	.zero	4
	.globl	a3
	.align 4
	.type	a3, @object
	.size	a3, 4
a3:
	.zero	4
	.globl	a2
	.align 4
	.type	a2, @object
	.size	a2, 4
a2:
	.zero	4
	.globl	a1
	.align 4
	.type	a1, @object
	.size	a1, 4
a1:
	.zero	4
	.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>
int a1,a2,a3,a4,d[16],n;;
char node[20],s[100];
evaluate(char s[],int d[])
{ int ret,d1[16],d2[16],lv,len;
  int i,j;
  char *p,*q; 
  memset(d,0,sizeof(d1));
  memset(d1,0,sizeof(d1));
  memset(d2,0,sizeof(d2));
  if((ret=atoi(s))>0) 
    { d[node[ret]]=1;
      return;
    }
  lv=0;len=strlen(s);
  for(p=s;*p;p++)
     if(*p=='(')
	lv++;
      else if(*p==')')
	lv--;
      else if(lv==1 && *p==' ')
	{ q=p;
	  break;
	}
  *q='\0';
  evaluate(s+1,d1); 
  s[len-1]='\0';
  evaluate(p+1,d2);     
  for(i=0;i<16;i++)
    for(j=0;j<16;j++)
      d[i&j]+=d1[i]*d2[j],d[i|j]+=d1[i]*d2[j],d[i^j]+=d1[i]*d2[j];
}
main()
{
  int i,ret;
  while(fgets(s,100,stdin) && *s != 'E')
    { scanf("%d",&n);
      for(i=1;i<=n;i++)
	{ scanf("%d %d %d %d ",&a1,&a2,&a3,&a4);
	  node[i]=8*a1+4*a2+2*a3+a4;
	}
      evaluate(s,d);
      printf("%d\n",d[15]);
      memset(s,0,sizeof(s));
    }
  return(0);
}
(1 2)
2
0 1 0 1
1 0 1 0
((1 2) 3)
3
1 1 0 0
1 0 1 0
0 0 0 1
END

2
2

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

```c
#include <stdio.h>
#include <string.h>
int a1,a2,a3,a4,d[16],n;;
char node[20],s[100];
evaluate(char s[],int d[])
{ int ret,d1[16],d2[16],lv,len;
  int i,j;
  char *p,*q; 
  memset(d,0,sizeof(d1));
  memset(d1,0,sizeof(d1));
  memset(d2,0,sizeof(d2));
  if((ret=atoi(s))>0) 
    { d[node[ret]]=1;
      return;
    }
  lv=0;len=strlen(s);
  for(p=s;*p;p++)
     if(*p=='(')
	lv++;
      else if(*p==')')
	lv--;
      else if(lv==1 && *p==' ')
	{ q=p;
	  break;
	}
  *q='\0';
  evaluate(s+1,d1); 
  s[len-1]='\0';
  evaluate(p+1,d2);     
  for(i=0;i<16;i++)
    for(j=0;j<16;j++)
      d[i&j]+=d1[i]*d2[j],d[i|j]+=d1[i]*d2[j],d[i^j]+=d1[i]*d2[j];
}
main()
{
  int i,ret;
  while(fgets(s,100,stdin) && *s != 'E')
    { scanf("%d",&n);
      for(i=1;i<=n;i++)
	{ scanf("%d %d %d %d ",&a1,&a2,&a3,&a4);
	  node[i]=8*a1+4*a2+2*a3+a4;
	}
      evaluate(s,d);
      printf("%d\n",d[15]);
      memset(s,0,sizeof(s));
    }
  return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a1
	.bss
	.align 4
	.type	a1, @object
	.size	a1, 4
a1:
	.zero	4
	.globl	a2
	.align 4
	.type	a2, @object
	.size	a2, 4
a2:
	.zero	4
	.globl	a3
	.align 4
	.type	a3, @object
	.size	a3, 4
a3:
	.zero	4
	.globl	a4
	.align 4
	.type	a4, @object
	.size	a4, 4
a4:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 64
d:
	.zero	64
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	node
	.align 16
	.type	node, @object
	.size	node, 20
node:
	.zero	20
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100
s:
	.zero	100
	.text
	.globl	evaluate
	.type	evaluate, @function
evaluate:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$208, %rsp
	movq	%rdi, -200(%rbp)
	movq	%rsi, -208(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-208(%rbp), %rax
	movl	$64, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-144(%rbp), %rax
	movl	$64, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-80(%rbp), %rax
	movl	$64, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	-200(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	atoi@PLT
	movl	%eax, -168(%rbp)
	cmpl	$0, -168(%rbp)
	jle	.L2
	movl	-168(%rbp), %eax
	cltq
	leaq	node(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbq	%al, %rax
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	jmp	.L3
.L2:
	movl	$0, -180(%rbp)
	movq	-200(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -164(%rbp)
	movq	-200(%rbp), %rax
	movq	%rax, -160(%rbp)
	jmp	.L4
.L9:
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$40, %al
	jne	.L5
	addl	$1, -180(%rbp)
	jmp	.L6
.L5:
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$41, %al
	jne	.L7
	subl	$1, -180(%rbp)
	jmp	.L6
.L7:
	cmpl	$1, -180(%rbp)
	jne	.L6
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$32, %al
	jne	.L6
	movq	-160(%rbp), %rax
	movq	%rax, -152(%rbp)
	jmp	.L8
.L6:
	addq	$1, -160(%rbp)
.L4:
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L9
.L8:
	movq	-152(%rbp), %rax
	movb	$0, (%rax)
	movq	-200(%rbp), %rax
	leaq	1(%rax), %rdx
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	evaluate
	movl	-164(%rbp), %eax
	cltq
	leaq	-1(%rax), %rdx
	movq	-200(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movq	-160(%rbp), %rax
	leaq	1(%rax), %rdx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	evaluate
	movl	$0, -176(%rbp)
	jmp	.L10
.L13:
	movl	$0, -172(%rbp)
	jmp	.L11
.L12:
	movl	-176(%rbp), %eax
	andl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-176(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	imull	%eax, %edx
	movl	-176(%rbp), %eax
	andl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-208(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-176(%rbp), %eax
	orl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-176(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	imull	%eax, %edx
	movl	-176(%rbp), %eax
	orl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-208(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-176(%rbp), %eax
	xorl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-176(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	imull	%eax, %edx
	movl	-176(%rbp), %eax
	xorl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-208(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -172(%rbp)
.L11:
	cmpl	$15, -172(%rbp)
	jle	.L12
	addl	$1, -176(%rbp)
.L10:
	cmpl	$15, -176(%rbp)
	jle	.L13
.L3:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	evaluate, .-evaluate
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %d "
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L16
.L20:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -4(%rbp)
	jmp	.L17
.L18:
	leaq	a4(%rip), %r8
	leaq	a3(%rip), %rax
	movq	%rax, %rcx
	leaq	a2(%rip), %rax
	movq	%rax, %rdx
	leaq	a1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	a1(%rip), %eax
	leal	(%rax,%rax), %edx
	movl	a2(%rip), %eax
	addl	%edx, %eax
	leal	(%rax,%rax), %edx
	movl	a3(%rip), %eax
	addl	%edx, %eax
	leal	(%rax,%rax), %edx
	movl	a4(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	node(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -4(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L18
	leaq	d(%rip), %rax
	movq	%rax, %rsi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	evaluate
	movl	60+d(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$100, %edx
	movl	$0, %esi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
.L16:
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$100, %esi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L19
	movzbl	s(%rip), %eax
	cmpb	$69, %al
	jne	.L20
.L19:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	a1
	.bss
	.align 4
	.type	a1, @object
	.size	a1, 4
a1:
	.zero	4
	.globl	a2
	.align 4
	.type	a2, @object
	.size	a2, 4
a2:
	.zero	4
	.globl	a3
	.align 4
	.type	a3, @object
	.size	a3, 4
a3:
	.zero	4
	.globl	a4
	.align 4
	.type	a4, @object
	.size	a4, 4
a4:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 64
d:
	.zero	64
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	node
	.align 16
	.type	node, @object
	.size	node, 20
node:
	.zero	20
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100
s:
	.zero	100
	.text
	.globl	evaluate
	.type	evaluate, @function
evaluate:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$208, %rsp
	movq	%rdi, -200(%rbp)
	movq	%rsi, -208(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-208(%rbp), %rax
	movl	$64, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-144(%rbp), %rax
	movl	$64, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-80(%rbp), %rax
	movl	$64, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	-200(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	atoi@PLT
	movl	%eax, -168(%rbp)
	cmpl	$0, -168(%rbp)
	jle	.L2
	movl	-168(%rbp), %eax
	cltq
	leaq	node(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbq	%al, %rax
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	jmp	.L3
.L2:
	movl	$0, -180(%rbp)
	movq	-200(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -164(%rbp)
	movq	-200(%rbp), %rax
	movq	%rax, -160(%rbp)
	jmp	.L4
.L9:
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$40, %al
	jne	.L5
	addl	$1, -180(%rbp)
	jmp	.L6
.L5:
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$41, %al
	jne	.L7
	subl	$1, -180(%rbp)
	jmp	.L6
.L7:
	cmpl	$1, -180(%rbp)
	jne	.L6
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$32, %al
	jne	.L6
	movq	-160(%rbp), %rax
	movq	%rax, -152(%rbp)
	jmp	.L8
.L6:
	addq	$1, -160(%rbp)
.L4:
	movq	-160(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L9
.L8:
	movq	-152(%rbp), %rax
	movb	$0, (%rax)
	movq	-200(%rbp), %rax
	leaq	1(%rax), %rdx
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	evaluate
	movl	-164(%rbp), %eax
	cltq
	leaq	-1(%rax), %rdx
	movq	-200(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movq	-160(%rbp), %rax
	leaq	1(%rax), %rdx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	evaluate
	movl	$0, -176(%rbp)
	jmp	.L10
.L13:
	movl	$0, -172(%rbp)
	jmp	.L11
.L12:
	movl	-176(%rbp), %eax
	andl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-176(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	imull	%eax, %edx
	movl	-176(%rbp), %eax
	andl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-208(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-176(%rbp), %eax
	orl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-176(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	imull	%eax, %edx
	movl	-176(%rbp), %eax
	orl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-208(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-176(%rbp), %eax
	xorl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-208(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-176(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	imull	%eax, %edx
	movl	-176(%rbp), %eax
	xorl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-208(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -172(%rbp)
.L11:
	cmpl	$15, -172(%rbp)
	jle	.L12
	addl	$1, -176(%rbp)
.L10:
	cmpl	$15, -176(%rbp)
	jle	.L13
.L3:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	evaluate, .-evaluate
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %d "
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L16
.L20:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -4(%rbp)
	jmp	.L17
.L18:
	leaq	a4(%rip), %r8
	leaq	a3(%rip), %rax
	movq	%rax, %rcx
	leaq	a2(%rip), %rax
	movq	%rax, %rdx
	leaq	a1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	a1(%rip), %eax
	leal	(%rax,%rax), %edx
	movl	a2(%rip), %eax
	addl	%edx, %eax
	leal	(%rax,%rax), %edx
	movl	a3(%rip), %eax
	addl	%edx, %eax
	leal	(%rax,%rax), %edx
	movl	a4(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	node(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -4(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L18
	leaq	d(%rip), %rax
	movq	%rax, %rsi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	evaluate
	movl	60+d(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$100, %edx
	movl	$0, %esi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
.L16:
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$100, %esi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L19
	movzbl	s(%rip), %eax
	cmpb	$69, %al
	jne	.L20
.L19:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
